2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for TiMidity++ 2.13.2.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='TiMidity++'
576 PACKAGE_TARNAME='TiMidity++'
577 PACKAGE_VERSION='2.13.2'
578 PACKAGE_STRING='TiMidity++ 2.13.2'
579 PACKAGE_BUGREPORT='root@mput.dip.jp'
581 ac_unique_file="timidity/timidity.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
681 INSTALL_STRIP_PROGRAM
686 MAINTAINER_MODE_FALSE
688 XAW_INSTALL_RESOURCE_FILES_TRUE
689 XAW_INSTALL_RESOURCE_FILES_FALSE
758 ENABLE_DYNAMIC_TCLTK_TRUE
759 ENABLE_DYNAMIC_TCLTK_FALSE
769 ENABLE_DYNAMIC_XAW_TRUE
770 ENABLE_DYNAMIC_XAW_FALSE
790 ENABLE_PORTMIDISYN_TRUE
791 ENABLE_PORTMIDISYN_FALSE
796 ENABLE_W32G_SYN_FALSE
805 ENABLE_SOUND_SPEC_TRUE
806 ENABLE_SOUND_SPEC_FALSE
851 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
875 program_transform_name=s,x,x,
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
967 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
968 { (exit 1); exit 1; }; }
969 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
970 eval enable_$ac_feature=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 -enable-* | --enable-*)
983 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
986 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
987 { (exit 1); exit 1; }; }
988 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
989 eval enable_$ac_feature=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1153 -site=* | --site=* | --sit=*)
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1180 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1186 eval with_$ac_package=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=no ;;
1198 # Obsolete; use --with-x.
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1215 -*) { echo "$as_me: error: unrecognized option: $ac_option
1216 Try \`$0 --help' for more information." >&2
1217 { (exit 1); exit 1; }; }
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1225 { (exit 1); exit 1; }; }
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1230 # FIXME: should be removed in autoconf 3.0.
1231 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 { echo "$as_me: error: missing argument to $ac_option" >&2
1243 { (exit 1); exit 1; }; }
1246 # Be sure to have absolute directory names.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1258 { (exit 1); exit 1; }; }
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 { echo "$as_me: error: Working directory cannot be determined" >&2
1289 { (exit 1); exit 1; }; }
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 { echo "$as_me: error: pwd does not report name of working directory" >&2
1292 { (exit 1); exit 1; }; }
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$0" ||
1300 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$0" : 'X\(//\)[^/]' \| \
1302 X"$0" : 'X\(//\)$' \| \
1303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1327 ac_srcdir_defaulted=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1332 { (exit 1); exit 1; }; }
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1337 { (exit 1); exit 1; }; }
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/TiMidity++]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --x-includes=DIR X include files are in DIR
1427 --x-libraries=DIR X library files are in DIR
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing) to the casual installer
1447 --enable-debug Build a debugging version.
1448 --disable-dependency-tracking Speeds up one-time builds
1449 --enable-dependency-tracking Do not reject slow dependency extractors
1450 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
1451 default: Automatically select audio device.
1453 sun: SunOS /dev/audio
1454 hpux: HPUX /dev/audio
1455 irix: IRIX audio library
1457 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
1459 darwin: Darwin CoreAudio
1460 alsa: ALSA pcm device
1461 alib: HPUX network audio (Alib)
1462 nas: NAS - Network Audio System
1464 esd: EsounD - Enlightened Sound Daemon
1465 portaudio: PortAudio
1466 npipe: Named Pipe(windows)
1470 flac: FLAC / OggFLAC
1472 gogo: MP3 GOGO (Only Windows is supported)
1473 --disable-alsatest Do not try to compile and run a test Alsa program
1474 --disable-esdtest Do not try to compile and run a test ESD program
1475 --disable-aotest Do not try to compile and run a test ao program
1476 --disable-oggtest Do not try to compile and run a test Ogg program
1477 --disable-vorbistest Do not try to compile and run a test Vorbis program
1478 --disable-libFLACtest Do not try to compile and run a test libFLAC program
1479 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
1480 --enable-interface=interface_list
1481 Comma separated interface list
1482 --enable-dynamic Enable dynamic link interface (default is no)
1483 --enable-dynamic=dynamic_list
1484 Comma separated dynamic interface list
1485 --enable-xdnd Enable xdnd support (default is no)
1486 --enable-ncurses Enable ncurses interface (default is no)
1487 --enable-slang Enable slang interface (default is no)
1488 --enable-motif Enable motif interface (default is no)
1489 --enable-tcltk Enable tcltk interface (default is no)
1490 --enable-emacs Enable emacs interface (default is no)
1491 --enable-vt100 Enable VT100 interface (default is no)
1492 --enable-xaw Enable athena interface (default is no)
1493 --enable-xskin Enable X skin interface (default is no)
1494 --enable-gtk Enable GTK+ interface (default is no)
1495 --disable-gtktest do not try to compile and run a test GTK+ program
1496 --disable-gtktest Do not try to compile and run a test GTK program
1497 --enable-server Enable server interface (default is no)
1498 --enable-alsaseq Enable ALSA sequencer server interface
1500 --enable-winsyn Enable Windows Synthesizer interface
1502 --enable-portmidisyn Enable PortMIDI Synthesizer interface
1504 --enable-npsyn Enable Windows Named Pipe Synthesizer interface
1506 --enable-winsyng Enable Windows GUI Synthesizer interface
1508 --enable-w32gui Enable Windows GUI interface (default is no)
1509 --enable-ump UMP configuration (default is no)
1510 --enable-windrv Windows Driver interface(requires winsyn)
1511 --enable-offix Enable offix support (default is no)
1512 --enable-network Enable network support (default is no)
1513 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
1514 --enable-spline=method Specify spline method.
1515 one of no,linear,cubic,lagrange,newton,gauss
1517 --enable-wrd Enable WRD interface for X (default is no)
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-includes=DIR Specify include directories (colon separated)
1523 --with-libraries=DIR Specify library directories (colon separated)
1524 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
1525 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
1526 --with-xaw-resource-prefix=DIR What prefix to install XAW's resource files to
1528 --with-lispdir Override the default lisp directory
1529 --with-elf create ELF shared object instead of AOUT
1530 --with-x use the X Window System
1531 --with-xawlib=lib Try to link to these xaw widget libraries by the
1532 order specified by the comma separated value list:
1537 default is --with-xawlib=xaw3d,xaw
1538 --with-tcl-includes=DIR Tcl include file path
1539 --with-tcl-libs=DIR Tcl library file path
1540 --with-tk-includes=DIR Tk include file path
1541 --with-tk-libs=DIR Tk library file path
1542 --with-offix-includes=DIR Offix include file path
1543 --with-offix-libs=DIR Offix include file path
1544 --with-nas-library=library NAS absolute library path(Don't use -laudio)
1545 --with-nas-includes=DIR NAS include files are in dir
1546 --with-default-output=<mode> Specify default output mode (optional):
1547 (default|alsa|alib|arts|nas|
1548 esd|wav|au|aiff|list|vorbis|flac|speex|
1549 gogo|portaudio|npipe|jack|ao)
1550 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1551 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1552 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1553 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1554 --with-ao=PFX Prefix where libao is installed (optional)
1555 --with-ao-libraries=DIR Directory where libao library is installed (optional)
1556 --with-ao-includes=DIR Directory where libao header files are installed (optional)
1557 --with-ogg=PFX Prefix where libogg is installed (optional)
1558 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
1559 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
1560 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
1561 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
1562 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
1563 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
1564 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
1565 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
1566 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
1567 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
1568 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
1569 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1570 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1581 XMKMF Path to xmkmf, Makefile generator for X Window System
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1586 Report bugs to <root@mput.dip.jp>.
1591 if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" || continue
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1614 .) # We are building in place.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1638 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1647 TiMidity++ configure 2.13.2
1648 generated by GNU Autoconf 2.61
1650 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1651 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1661 It was created by TiMidity++ $as_me 2.13.2, which was
1662 generated by GNU Autoconf 2.61. Invocation command line was
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 echo "PATH: $as_dir"
1714 # Keep a trace of the command line.
1715 # Strip out --no-create and --no-recursion so they do not pile up.
1716 # Strip out --silent because we don't want to record it for future runs.
1717 # Also quote any args containing shell meta-characters.
1718 # Make two passes to allow for proper duplicate-argument suppression.
1722 ac_must_keep_next=false
1728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730 | -silent | --silent | --silen | --sile | --sil)
1733 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1736 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1738 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739 if test $ac_must_keep_next = true; then
1740 ac_must_keep_next=false # Got value, back to normal.
1743 *=* | --config-cache | -C | -disable-* | --disable-* \
1744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746 | -with-* | --with-* | -without-* | --without-* | --x)
1747 case "$ac_configure_args0 " in
1748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1751 -* ) ac_must_keep_next=true ;;
1754 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1762 # When interrupted or exit'd, cleanup temporary files, and complete
1763 # config.log. We remove comments because anyway the quotes in there
1764 # would cause problems or look ugly.
1765 # WARNING: Use '\'' to represent an apostrophe within the trap.
1766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767 trap 'exit_status=$?
1768 # Save into config.log some information that might help in debugging.
1773 ## ---------------- ##
1774 ## Cache variables. ##
1775 ## ---------------- ##
1778 # The following way of writing the cache mishandles newlines in values,
1780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781 eval ac_val=\$$ac_var
1785 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1786 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1789 _ | IFS | as_nl) ;; #(
1790 *) $as_unset $ac_var ;;
1795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796 *${as_nl}ac_space=\ *)
1798 "s/'\''/'\''\\\\'\'''\''/g;
1799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810 ## ----------------- ##
1811 ## Output variables. ##
1812 ## ----------------- ##
1815 for ac_var in $ac_subst_vars
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 echo "$ac_var='\''$ac_val'\''"
1825 if test -n "$ac_subst_files"; then
1827 ## ------------------- ##
1828 ## File substitutions. ##
1829 ## ------------------- ##
1832 for ac_var in $ac_subst_files
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 echo "$ac_var='\''$ac_val'\''"
1843 if test -s confdefs.h; then
1853 test "$ac_signal" != 0 &&
1854 echo "$as_me: caught signal $ac_signal"
1855 echo "$as_me: exit $exit_status"
1857 rm -f core *.core core.conftest.* &&
1858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1861 for ac_signal in 1 2 13 15; do
1862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1867 rm -f -r conftest* confdefs.h
1869 # Predefined preprocessor variables.
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_STRING "$PACKAGE_STRING"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer explicitly selected file to automatically selected ones.
1898 if test -n "$CONFIG_SITE"; then
1899 set x "$CONFIG_SITE"
1900 elif test "x$prefix" != xNONE; then
1901 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1903 set x "$ac_default_prefix/share/config.site" \
1904 "$ac_default_prefix/etc/config.site"
1909 if test -r "$ac_site_file"; then
1910 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911 echo "$as_me: loading site script $ac_site_file" >&6;}
1912 sed 's/^/| /' "$ac_site_file" >&5
1917 if test -r "$cache_file"; then
1918 # Some versions of bash will fail to source /dev/null (special
1919 # files actually), so we avoid doing that.
1920 if test -f "$cache_file"; then
1921 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 echo "$as_me: loading cache $cache_file" >&6;}
1924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925 *) . "./$cache_file";;
1929 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 echo "$as_me: creating cache $cache_file" >&6;}
1934 # Check that the precious variables saved in the cache have kept the same
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1944 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1948 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
1954 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1957 echo "$as_me: former value: $ac_old_val" >&2;}
1958 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1959 echo "$as_me: current value: $ac_new_val" >&2;}
1960 ac_cache_corrupted=:
1963 # Pass precious variables to config.status.
1964 if test "$ac_new_set" = set; then
1966 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 *) ac_arg=$ac_var=$ac_new_val ;;
1969 case " $ac_configure_args " in
1970 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1971 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1975 if $ac_cache_corrupted; then
1976 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 for ac_dir in autoconf "$srcdir"/autoconf; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049 { (exit 1); exit 1; }; }
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062 { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075 { (exit 1); exit 1; }; };;
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test "x$host_alias" = x; then
2097 ac_cv_host=$ac_cv_build
2099 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102 { (exit 1); exit 1; }; }
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112 { (exit 1); exit 1; }; };;
2115 ac_save_IFS=$IFS; IFS='-'
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2128 { echo "$as_me:$LINENO: checking target system type" >&5
2129 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_target+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test "x$target_alias" = x; then
2134 ac_cv_target=$ac_cv_host
2136 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2137 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2139 { (exit 1); exit 1; }; }
2143 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2144 echo "${ECHO_T}$ac_cv_target" >&6; }
2145 case $ac_cv_target in
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2148 echo "$as_me: error: invalid value of canonical target" >&2;}
2149 { (exit 1); exit 1; }; };;
2151 target=$ac_cv_target
2152 ac_save_IFS=$IFS; IFS='-'
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2162 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2165 # The aliases save the names the user supplied, while $host etc.
2166 # will get canonicalized.
2167 test -n "$target_alias" &&
2168 test "$program_prefix$program_suffix$program_transform_name" = \
2170 program_prefix=${target_alias}-
2171 am__api_version="1.7"
2172 # Find a good install program. We prefer a C program (faster),
2173 # so one script is as good as another. But avoid the broken or
2174 # incompatible versions:
2175 # SysV /etc/install, /usr/sbin/install
2176 # SunOS /usr/etc/install
2177 # IRIX /sbin/install
2179 # AmigaOS /C/install, which installs bootblocks on floppy discs
2180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2183 # OS/2's system install, which has a completely different semantic
2184 # ./install, which can be erroneously created by make from ./install.sh.
2185 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2186 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2187 if test -z "$INSTALL"; then
2188 if test "${ac_cv_path_install+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 # Account for people who put trailing slashes in PATH elements.
2198 ./ | .// | /cC/* | \
2199 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2200 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2203 # OSF1 and SCO ODT 3.0 have their own names for install.
2204 # Don't use installbsd from OSF since it installs stuff as root
2206 for ac_prog in ginstall scoinst install; do
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2209 if test $ac_prog = install &&
2210 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211 # AIX install. It has an incompatible calling convention.
2213 elif test $ac_prog = install &&
2214 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215 # program-specific install script used by HP pwplus--don't use.
2218 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2231 if test "${ac_cv_path_install+set}" = set; then
2232 INSTALL=$ac_cv_path_install
2234 # As a last resort, use the slow shell script. Don't cache a
2235 # value for INSTALL within a source directory, because that will
2236 # break other packages using the cache if that directory is
2237 # removed, or if the value is a relative name.
2238 INSTALL=$ac_install_sh
2241 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2242 echo "${ECHO_T}$INSTALL" >&6; }
2244 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2245 # It thinks the first close brace ends the variable substitution.
2246 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2248 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2250 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2252 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2253 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2256 echo timestamp > conftest.file
2257 # Do `set' in a subshell so we don't clobber the current shell's
2258 # arguments. Must try -L first in case configure is actually a
2259 # symlink; some systems play weird games with the mod time of symlinks
2260 # (eg FreeBSD returns the mod time of the symlink's containing
2263 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2264 if test "$*" = "X"; then
2266 set X `ls -t $srcdir/configure conftest.file`
2269 if test "$*" != "X $srcdir/configure conftest.file" \
2270 && test "$*" != "X conftest.file $srcdir/configure"; then
2272 # If neither matched, then we have a broken ls. This can happen
2273 # if, for instance, CONFIG_SHELL is bash and it inherits a
2274 # broken ls alias from the environment. This has actually
2275 # happened. Such a system could not be considered "sane".
2276 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2277 alias in your environment" >&5
2278 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2279 alias in your environment" >&2;}
2280 { (exit 1); exit 1; }; }
2283 test "$2" = conftest.file
2289 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2290 Check your system clock" >&5
2291 echo "$as_me: error: newly created file is older than distributed files!
2292 Check your system clock" >&2;}
2293 { (exit 1); exit 1; }; }
2295 { echo "$as_me:$LINENO: result: yes" >&5
2296 echo "${ECHO_T}yes" >&6; }
2297 test "$program_prefix" != NONE &&
2298 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2299 # Use a double $ so make ignores it.
2300 test "$program_suffix" != NONE &&
2301 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2302 # Double any \ or $. echo might interpret backslashes.
2303 # By default was `s,x,x', remove it if useless.
2304 cat <<\_ACEOF >conftest.sed
2305 s/[\\$]/&&/g;s/;s,x,x,$//
2307 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2311 # expand $ac_aux_dir to an absolute path
2312 am_aux_dir=`cd $ac_aux_dir && pwd`
2314 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2315 # Use eval to expand $SHELL
2316 if eval "$MISSING --run true"; then
2317 am_missing_run="$MISSING --run "
2320 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2321 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2324 for ac_prog in gawk mawk nawk awk
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_AWK+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$AWK"; then
2334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_AWK="$ac_prog"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 if test -n "$AWK"; then
2355 { echo "$as_me:$LINENO: result: $AWK" >&5
2356 echo "${ECHO_T}$AWK" >&6; }
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2363 test -n "$AWK" && break
2366 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2367 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2368 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2369 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 cat >conftest.make <<\_ACEOF
2375 @echo '@@@%%%=$(MAKE)=@@@%%%'
2377 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2378 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2380 eval ac_cv_prog_make_${ac_make}_set=yes;;
2382 eval ac_cv_prog_make_${ac_make}_set=no;;
2386 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2387 { echo "$as_me:$LINENO: result: yes" >&5
2388 echo "${ECHO_T}yes" >&6; }
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 SET_MAKE="MAKE=${MAKE-make}"
2396 rm -rf .tst 2>/dev/null
2397 mkdir .tst 2>/dev/null
2398 if test -d .tst; then
2403 rmdir .tst 2>/dev/null
2405 # test to see if srcdir already configured
2406 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2407 test -f $srcdir/config.status; then
2408 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2409 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2410 { (exit 1); exit 1; }; }
2413 # test whether we have cygpath
2414 if test -z "$CYGPATH_W"; then
2415 if (cygpath --version) >/dev/null 2>/dev/null; then
2416 CYGPATH_W='cygpath -w'
2423 # Define the identity of the package.
2424 PACKAGE='TiMidity++'
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE "$PACKAGE"
2433 cat >>confdefs.h <<_ACEOF
2434 #define VERSION "$VERSION"
2437 # Some tools Automake needs.
2439 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2442 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2445 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2448 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2451 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2454 AMTAR=${AMTAR-"${am_missing_run}tar"}
2456 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2458 # Installed binaries are usually stripped using `strip' when the user
2459 # run `make install-strip'. However `strip' might not be the right
2460 # tool to use in cross-compilation environments, therefore Automake
2461 # will honor the `STRIP' environment variable to overrule this program.
2462 if test "$cross_compiling" != no; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}strip; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_STRIP+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$STRIP"; then
2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 STRIP=$ac_cv_prog_STRIP
2492 if test -n "$STRIP"; then
2493 { echo "$as_me:$LINENO: result: $STRIP" >&5
2494 echo "${ECHO_T}$STRIP" >&6; }
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2502 if test -z "$ac_cv_prog_STRIP"; then
2504 # Extract the first word of "strip", so it can be a program name with args.
2505 set dummy strip; ac_word=$2
2506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 if test -n "$ac_ct_STRIP"; then
2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_STRIP="strip"
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532 if test -n "$ac_ct_STRIP"; then
2533 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2534 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2536 { echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6; }
2540 if test "x$ac_ct_STRIP" = x; then
2543 case $cross_compiling:$ac_tool_warned in
2545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2546 whose name does not start with the host triplet. If you think this
2547 configuration is useful to you, please write to autoconf@gnu.org." >&5
2548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2549 whose name does not start with the host triplet. If you think this
2550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2551 ac_tool_warned=yes ;;
2556 STRIP="$ac_cv_prog_STRIP"
2560 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2562 # We need awk for the "check" target. The system "awk" is bad on
2568 ac_config_headers="$ac_config_headers config.h interface.h"
2570 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2572 # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2576 USE_MAINTAINER_MODE=no
2579 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2583 if test $USE_MAINTAINER_MODE = yes; then
2584 MAINTAINER_MODE_TRUE=
2585 MAINTAINER_MODE_FALSE='#'
2587 MAINTAINER_MODE_TRUE='#'
2588 MAINTAINER_MODE_FALSE=
2591 MAINT=$MAINTAINER_MODE_TRUE
2595 SHELL=${CONFIG_SHELL-"/bin/sh"}
2598 { echo "$as_me:$LINENO: checking whether grep returns status" >&5
2599 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6; }
2600 echo "grimblepritz" >grimble
2601 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2602 contains="./contains"
2603 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2606 contains="./contains"
2610 grep) { echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6; }
2614 { echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
2615 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6; }
2616 cat >./contains <<'EOSS'
2617 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2619 chmod +x "./contains"
2624 # Check for compiler options -- such as debug flags.
2626 { echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2627 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
2628 # Check whether --enable-debug was given.
2629 if test "${enable_debug+set}" = set; then
2630 enableval=$enable_debug; timidity_cv_debug="yes"
2632 timidity_cv_debug="no"
2635 if test "x$timidity_cv_debug" = "xyes"; then
2637 cat >>confdefs.h <<\_ACEOF
2641 CFLAGS=${CFLAGS-"-g"}
2643 if test "x$timidity_cv_debug" = "xno"; then
2645 cat >>confdefs.h <<\_ACEOF
2650 { echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2651 echo "${ECHO_T}$timidity_cv_debug" >&6; }
2653 if test "x$CFLAGS" = "x"; then
2657 if test "x$with_x" = x; then
2663 # Checking gcc environment
2664 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2665 LDFLAGS="$LDFLAGS -L${i}"
2667 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2668 CPPFLAGS="$CPPFLAGS -I${i}"
2671 # add $prefix if specified.
2672 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2673 LDFLAGS="-L$prefix/lib $LDFLAGS"
2674 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2675 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2679 # Check whether --with-includes was given.
2680 if test "${with_includes+set}" = set; then
2681 withval=$with_includes; j=' '
2682 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2685 CPPFLAGS="$j$CPPFLAGS"
2691 # Check whether --with-libraries was given.
2692 if test "${with_libraries+set}" = set; then
2693 withval=$with_libraries; j=' '
2694 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2697 LDFLAGS="$j$LDFLAGS"
2704 # Check whether --with-default-path was given.
2705 if test "${with_default_path+set}" = set; then
2706 withval=$with_default_path; pkgdatadir=$withval
2709 if test "x$prefix" != "xNONE"; then
2710 pkgdatadir='${prefix}/share/timidity'
2712 pkgdatadir='/usr/local/share/timidity'
2717 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2719 cat >>confdefs.h <<_ACEOF
2720 #define DEFAULT_PATH "$tmpdefpath"
2724 cat >>confdefs.h <<\_ACEOF
2725 #define PKGDATADIR DEFAULT_PATH
2730 # Check whether --with-module-dir was given.
2731 if test "${with_module_dir+set}" = set; then
2732 withval=$with_module_dir; pkglibdir=$withval
2735 if test "x$prefix" != "xNONE"; then
2736 pkglibdir='${prefix}/lib/timidity'
2738 pkglibdir='/usr/local/lib/timidity'
2743 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2745 cat >>confdefs.h <<_ACEOF
2746 #define PKGLIBDIR "$tmplibdir"
2751 # Check whether --with-xaw-resource-prefix was given.
2752 if test "${with_xaw_resource_prefix+set}" = set; then
2753 withval=$with_xaw_resource_prefix; xawresdir=$withval
2758 if test "x$xawresdir" != "x"; then
2759 XAW_INSTALL_RESOURCE_FILES_TRUE=
2760 XAW_INSTALL_RESOURCE_FILES_FALSE='#'
2762 XAW_INSTALL_RESOURCE_FILES_TRUE='#'
2763 XAW_INSTALL_RESOURCE_FILES_FALSE=
2768 # Checks for programs.
2770 # Check whether --with-lispdir was given.
2771 if test "${with_lispdir+set}" = set; then
2772 withval=$with_lispdir; lispdir="$withval"
2773 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2774 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2775 { echo "$as_me:$LINENO: result: $lispdir" >&5
2776 echo "${ECHO_T}$lispdir" >&6; }
2779 # If set to t, that means we are running in a shell under Emacs.
2780 # If you have an Emacs named "t", then use the full path.
2781 test x"$EMACS" = xt && EMACS=
2782 for ac_prog in emacs xemacs
2784 # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_EMACS+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 if test -n "$EMACS"; then
2792 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_EMACS="$ac_prog"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 EMACS=$ac_cv_prog_EMACS
2812 if test -n "$EMACS"; then
2813 { echo "$as_me:$LINENO: result: $EMACS" >&5
2814 echo "${ECHO_T}$EMACS" >&6; }
2816 { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2821 test -n "$EMACS" && break
2823 test -n "$EMACS" || EMACS="no"
2825 if test $EMACS != "no"; then
2826 if test x${lispdir+set} != xset; then
2827 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2828 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2829 if test "${am_cv_lispdir+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2833 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2834 # which is non-obvious for non-emacs users.
2835 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2836 # emacsen earlier and avoid running this altogether.
2837 { (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
2838 ($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
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }
2842 am_cv_lispdir=`sed -n \
2844 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2845 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2848 if test -z "$am_cv_lispdir"; then
2849 am_cv_lispdir='${datadir}/emacs/site-lisp'
2853 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2854 echo "${ECHO_T}$am_cv_lispdir" >&6; }
2855 lispdir="$am_cv_lispdir"
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CC"; then
2898 { echo "$as_me:$LINENO: result: $CC" >&5
2899 echo "${ECHO_T}$CC" >&6; }
2901 { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2907 if test -z "$ac_cv_prog_CC"; then
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2939 echo "${ECHO_T}$ac_ct_CC" >&6; }
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2945 if test "x$ac_ct_CC" = x; then
2948 case $cross_compiling:$ac_tool_warned in
2950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2951 whose name does not start with the host triplet. If you think this
2952 configuration is useful to you, please write to autoconf@gnu.org." >&5
2953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet. If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2956 ac_tool_warned=yes ;;
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}cc; ac_word=$2
2968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}cc"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { echo "$as_me:$LINENO: result: $CC" >&5
2996 echo "${ECHO_T}$CC" >&6; }
2998 { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3005 if test -z "$CC"; then
3006 # Extract the first word of "cc", so it can be a program name with args.
3007 set dummy cc; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025 ac_prog_rejected=yes
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 if test $ac_prog_rejected = yes; then
3037 # We found a bogon in the path, so make sure we never use it.
3038 set dummy $ac_cv_prog_CC
3040 if test $# != 0; then
3041 # We chose a different compiler from the bogus one.
3042 # However, it has the same basename, so the bogon will be chosen
3043 # first if we set CC to just the basename; use the full file name.
3045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3051 if test -n "$CC"; then
3052 { echo "$as_me:$LINENO: result: $CC" >&5
3053 echo "${ECHO_T}$CC" >&6; }
3055 { echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6; }
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 for ac_prog in cl.exe
3065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CC"; then
3094 { echo "$as_me:$LINENO: result: $CC" >&5
3095 echo "${ECHO_T}$CC" >&6; }
3097 { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3102 test -n "$CC" && break
3105 if test -z "$CC"; then
3107 for ac_prog in cl.exe
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if test -n "$ac_ct_CC"; then
3117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_ac_ct_CC="$ac_prog"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3137 if test -n "$ac_ct_CC"; then
3138 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3139 echo "${ECHO_T}$ac_ct_CC" >&6; }
3141 { echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6; }
3146 test -n "$ac_ct_CC" && break
3149 if test "x$ac_ct_CC" = x; then
3152 case $cross_compiling:$ac_tool_warned in
3154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet. If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&5
3157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet. If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3160 ac_tool_warned=yes ;;
3169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3170 See \`config.log' for more details." >&5
3171 echo "$as_me: error: no acceptable C compiler found in \$PATH
3172 See \`config.log' for more details." >&2;}
3173 { (exit 1); exit 1; }; }
3175 # Provide some information about the compiler.
3176 echo "$as_me:$LINENO: checking for C compiler version" >&5
3177 ac_compiler=`set X $ac_compile; echo $2`
3178 { (ac_try="$ac_compiler --version >&5"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compiler --version >&5") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }
3188 { (ac_try="$ac_compiler -v >&5"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compiler -v >&5") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }
3198 { (ac_try="$ac_compiler -V >&5"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compiler -V >&5") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3233 # List of possible output files, starting from the most likely.
3234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3235 # only as a last resort. b.out is created by i960 compilers.
3236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3238 # The IRIX 6 linker writes into existing files which may not be
3239 # executable, retaining their permissions. Remove them first so a
3240 # subsequent execution test works.
3242 for ac_file in $ac_files
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3251 if { (ac_try="$ac_link_default"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_link_default") 2>&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; then
3261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3264 # so that the user can short-circuit this test for compilers unknown to
3266 for ac_file in $ac_files ''
3268 test -f "$ac_file" || continue
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3273 # We found the default executable, but exeext='' is most
3277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 # We set ac_cv_exeext here because the later test for it is not
3282 # safe: cross compilers may not add the suffix if given an `-o'
3283 # argument, so we may need to know it at that point already.
3284 # Even if this section looks crufty: it has the advantage of
3291 test "$ac_cv_exeext" = no && ac_cv_exeext=
3297 { echo "$as_me:$LINENO: result: $ac_file" >&5
3298 echo "${ECHO_T}$ac_file" >&6; }
3299 if test -z "$ac_file"; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3304 See \`config.log' for more details." >&5
3305 echo "$as_me: error: C compiler cannot create executables
3306 See \`config.log' for more details." >&2;}
3307 { (exit 77); exit 77; }; }
3310 ac_exeext=$ac_cv_exeext
3312 # Check that the compiler produces executables we can run. If not, either
3313 # the compiler is broken, or we cross compile.
3314 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3315 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3316 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3317 # If not cross compiling, check that we can run a simple program.
3318 if test "$cross_compiling" != yes; then
3319 if { ac_try='./$ac_file'
3320 { (case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_try") 2>&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3331 if test "$cross_compiling" = maybe; then
3334 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3335 If you meant to cross compile, use \`--host'.
3336 See \`config.log' for more details." >&5
3337 echo "$as_me: error: cannot run C compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details." >&2;}
3340 { (exit 1); exit 1; }; }
3344 { echo "$as_me:$LINENO: result: yes" >&5
3345 echo "${ECHO_T}yes" >&6; }
3347 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3348 ac_clean_files=$ac_clean_files_save
3349 # Check that the compiler produces executables we can run. If not, either
3350 # the compiler is broken, or we cross compile.
3351 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3353 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3354 echo "${ECHO_T}$cross_compiling" >&6; }
3356 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3358 if { (ac_try="$ac_link"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_link") 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; then
3368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3370 # work properly (i.e., refer to `conftest.exe'), while it won't with
3372 for ac_file in conftest.exe conftest conftest.*; do
3373 test -f "$ac_file" || continue
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }
3389 rm -f conftest$ac_cv_exeext
3390 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3391 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3393 rm -f conftest.$ac_ext
3394 EXEEXT=$ac_cv_exeext
3396 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3397 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3398 if test "${ac_cv_objext+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3416 rm -f conftest.o conftest.obj
3417 if { (ac_try="$ac_compile"
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_compile") 2>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; then
3427 for ac_file in conftest.o conftest.obj conftest.*; do
3428 test -f "$ac_file" || continue;
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3431 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3440 See \`config.log' for more details." >&5
3441 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3442 See \`config.log' for more details." >&2;}
3443 { (exit 1); exit 1; }; }
3446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3448 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3449 echo "${ECHO_T}$ac_cv_objext" >&6; }
3450 OBJEXT=$ac_cv_objext
3452 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3453 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3454 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_compile") 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && {
3489 test -z "$ac_c_werror_flag" ||
3490 test ! -s conftest.err
3491 } && test -s conftest.$ac_objext; then
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3504 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3506 GCC=`test $ac_compiler_gnu = yes && echo yes`
3507 ac_test_CFLAGS=${CFLAGS+set}
3508 ac_save_CFLAGS=$CFLAGS
3509 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3510 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3511 if test "${ac_cv_prog_cc_g+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 ac_save_c_werror_flag=$ac_c_werror_flag
3515 ac_c_werror_flag=yes
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_compile") 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } && {
3547 test -z "$ac_c_werror_flag" ||
3548 test ! -s conftest.err
3549 } && test -s conftest.$ac_objext; then
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } && {
3585 test -z "$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 } && test -s conftest.$ac_objext; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 ac_c_werror_flag=$ac_save_c_werror_flag
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } && {
3624 test -z "$ac_c_werror_flag" ||
3625 test ! -s conftest.err
3626 } && test -s conftest.$ac_objext; then
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3646 if test "$ac_test_CFLAGS" = set; then
3647 CFLAGS=$ac_save_CFLAGS
3648 elif test $ac_cv_prog_cc_g = yes; then
3649 if test "$GCC" = yes; then
3655 if test "$GCC" = yes; then
3661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3663 if test "${ac_cv_prog_cc_c89+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 ac_cv_prog_cc_c89=no
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3676 #include <sys/types.h>
3677 #include <sys/stat.h>
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3692 s = g (p, va_arg (v,int));
3697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3698 function prototypes and stuff, but not '\xHH' hex character constants.
3699 These don't provoke an error unfortunately, instead are silently treated
3700 as 'x'. The following induces an error, until -std is added to get
3701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3702 array size at least. It's necessary to write '\x00'==0 to get something
3703 that's true only with -std. */
3704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707 inside strings and character constants. */
3709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3711 int test (int i, double x);
3712 struct s1 {int (*f) (int a);};
3713 struct s2 {int (*f) (double a);};
3714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728 CC="$ac_save_CC $ac_arg"
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compile") 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } && {
3743 test -z "$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3745 } && test -s conftest.$ac_objext; then
3746 ac_cv_prog_cc_c89=$ac_arg
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3754 rm -f core conftest.err conftest.$ac_objext
3755 test "x$ac_cv_prog_cc_c89" != "xno" && break
3757 rm -f conftest.$ac_ext
3762 case "x$ac_cv_prog_cc_c89" in
3764 { echo "$as_me:$LINENO: result: none needed" >&5
3765 echo "${ECHO_T}none needed" >&6; } ;;
3767 { echo "$as_me:$LINENO: result: unsupported" >&5
3768 echo "${ECHO_T}unsupported" >&6; } ;;
3770 CC="$CC $ac_cv_prog_cc_c89"
3771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3772 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 DEPDIR="${am__leading_dot}deps"
3783 ac_config_commands="$ac_config_commands depfiles"
3786 am_make=${MAKE-make}
3787 cat > confinc << 'END'
3792 # If we don't find an include directive, just comment out the code.
3793 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3794 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3798 # First try GNU make style include.
3799 echo "include confinc" > confmf
3800 # We grep out `Entering directory' and `Leaving directory'
3801 # messages which can occur if `w' ends up in MAKEFLAGS.
3802 # In particular we don't look at `^make:' because GNU make might
3803 # be invoked under some other name (usually "gmake"), in which
3804 # case it prints its new name instead of `make'.
3805 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3810 # Now try BSD make style include.
3811 if test "$am__include" = "#"; then
3812 echo '.include "confinc"' > confmf
3813 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3814 am__include=.include
3821 { echo "$as_me:$LINENO: result: $_am_result" >&5
3822 echo "${ECHO_T}$_am_result" >&6; }
3823 rm -f confinc confmf
3825 # Check whether --enable-dependency-tracking was given.
3826 if test "${enable_dependency_tracking+set}" = set; then
3827 enableval=$enable_dependency_tracking;
3830 if test "x$enable_dependency_tracking" != xno; then
3831 am_depcomp="$ac_aux_dir/depcomp"
3836 if test "x$enable_dependency_tracking" != xno; then
3847 depcc="$CC" am_compiler_list=
3849 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3850 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3851 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855 # We make a subdir and do the tests there. Otherwise we can end up
3856 # making bogus files that we don't know about and never remove. For
3857 # instance it was reported that on HP-UX the gcc test will end up
3858 # making a dummy file named `D' -- because `-MD' means `put the output
3861 # Copy depcomp to subdir because otherwise we won't find it if we're
3862 # using a relative directory.
3863 cp "$am_depcomp" conftest.dir
3865 # We will build objects and dependencies in a subdirectory because
3866 # it helps to detect inapplicable dependency modes. For instance
3867 # both Tru64's cc and ICC support -MD to output dependencies as a
3868 # side effect of compilation, but ICC will put the dependencies in
3869 # the current directory while Tru64 will put them in the object
3873 am_cv_CC_dependencies_compiler_type=none
3874 if test "$am_compiler_list" = ""; then
3875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877 for depmode in $am_compiler_list; do
3878 # Setup a source with many dependencies, because some compilers
3879 # like to wrap large dependency lists on column 80 (with \), and
3880 # we should not choose a depcomp mode which is confused by this.
3882 # We need to recreate these files for each test, as the compiler may
3883 # overwrite some of them when testing with obscure command lines.
3884 # This happens at least with the AIX C compiler.
3886 for i in 1 2 3 4 5 6; do
3887 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3890 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3894 # after this tag, mechanisms are not by side-effect, so they'll
3895 # only be used when explicitly requested
3896 if test "x$enable_dependency_tracking" = xyes; then
3904 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3905 # mode. It turns out that the SunPro C++ compiler does not properly
3906 # handle `-M -o', and we need to detect this.
3907 if depmode=$depmode \
3908 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3910 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3911 >/dev/null 2>conftest.err &&
3912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored.
3918 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3919 am_cv_CC_dependencies_compiler_type=$depmode
3928 am_cv_CC_dependencies_compiler_type=none
3932 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3933 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3939 test "x$enable_dependency_tracking" != xno \
3940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3942 am__fastdepCC_FALSE='#'
3944 am__fastdepCC_TRUE='#'
3945 am__fastdepCC_FALSE=
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3956 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3957 # On Suns, sometimes $CPP names a directory.
3958 if test -n "$CPP" && test -d "$CPP"; then
3961 if test -z "$CPP"; then
3962 if test "${ac_cv_prog_CPP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 # Double quotes because CPP needs to be expanded
3966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3969 for ac_c_preproc_warn_flag in '' yes
3971 # Use a header file that comes with gcc, so configuring glibc
3972 # with a fresh cross-compiler works.
3973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974 # <limits.h> exists even on freestanding compilers.
3975 # On the NeXT, cc -E runs the code through the compiler's parser,
3976 # not just through cpp. "Syntax error" is here to catch this case.
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3984 # include <limits.h>
3986 # include <assert.h>
3990 if { (ac_try="$ac_cpp conftest.$ac_ext"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } >/dev/null && {
4003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4004 test ! -s conftest.err
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4011 # Broken: fails on valid input.
4015 rm -f conftest.err conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether nonexistent headers
4018 # can be detected and how.
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #include <ac_nonexistent.h>
4027 if { (ac_try="$ac_cpp conftest.$ac_ext"
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } >/dev/null && {
4040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4041 test ! -s conftest.err
4043 # Broken: success on invalid input.
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 # Passes both tests.
4054 rm -f conftest.err conftest.$ac_ext
4057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058 rm -f conftest.err conftest.$ac_ext
4059 if $ac_preproc_ok; then
4071 { echo "$as_me:$LINENO: result: $CPP" >&5
4072 echo "${ECHO_T}$CPP" >&6; }
4074 for ac_c_preproc_warn_flag in '' yes
4076 # Use a header file that comes with gcc, so configuring glibc
4077 # with a fresh cross-compiler works.
4078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4079 # <limits.h> exists even on freestanding compilers.
4080 # On the NeXT, cc -E runs the code through the compiler's parser,
4081 # not just through cpp. "Syntax error" is here to catch this case.
4082 cat >conftest.$ac_ext <<_ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4089 # include <limits.h>
4091 # include <assert.h>
4095 if { (ac_try="$ac_cpp conftest.$ac_ext"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } >/dev/null && {
4108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4109 test ! -s conftest.err
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 # Broken: fails on valid input.
4120 rm -f conftest.err conftest.$ac_ext
4122 # OK, works on sane cases. Now check whether nonexistent headers
4123 # can be detected and how.
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4130 #include <ac_nonexistent.h>
4132 if { (ac_try="$ac_cpp conftest.$ac_ext"
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } >/dev/null && {
4145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4148 # Broken: success on invalid input.
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 # Passes both tests.
4159 rm -f conftest.err conftest.$ac_ext
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4167 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4168 See \`config.log' for more details." >&5
4169 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4170 See \`config.log' for more details." >&2;}
4171 { (exit 1); exit 1; }; }
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4182 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4183 if test "${ac_cv_path_GREP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 # Extract the first word of "grep ggrep" to use in msg output
4187 if test -z "$GREP"; then
4188 set dummy grep ggrep; ac_prog_name=$2
4189 if test "${ac_cv_path_GREP+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 ac_path_GREP_found=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 test -z "$as_dir" && as_dir=.
4199 for ac_prog in grep ggrep; do
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4202 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4203 # Check for GNU ac_path_GREP and select it if it is found.
4204 # Check for GNU $ac_path_GREP
4205 case `"$ac_path_GREP" --version 2>&1` in
4207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4210 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
4216 echo 'GREP' >> "conftest.nl"
4217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219 ac_count=`expr $ac_count + 1`
4220 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_GREP="$ac_path_GREP"
4223 ac_path_GREP_max=$ac_count
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 $ac_path_GREP_found && break 3
4242 GREP="$ac_cv_path_GREP"
4243 if test -z "$GREP"; then
4244 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4245 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4246 { (exit 1); exit 1; }; }
4250 ac_cv_path_GREP=$GREP
4255 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4256 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4257 GREP="$ac_cv_path_GREP"
4260 { echo "$as_me:$LINENO: checking for egrep" >&5
4261 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4262 if test "${ac_cv_path_EGREP+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4266 then ac_cv_path_EGREP="$GREP -E"
4268 # Extract the first word of "egrep" to use in msg output
4269 if test -z "$EGREP"; then
4270 set dummy egrep; ac_prog_name=$2
4271 if test "${ac_cv_path_EGREP+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_path_EGREP_found=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 test -z "$as_dir" && as_dir=.
4281 for ac_prog in egrep; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4284 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4285 # Check for GNU ac_path_EGREP and select it if it is found.
4286 # Check for GNU $ac_path_EGREP
4287 case `"$ac_path_EGREP" --version 2>&1` in
4289 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 echo 'EGREP' >> "conftest.nl"
4299 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301 ac_count=`expr $ac_count + 1`
4302 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_EGREP="$ac_path_EGREP"
4305 ac_path_EGREP_max=$ac_count
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314 $ac_path_EGREP_found && break 3
4324 EGREP="$ac_cv_path_EGREP"
4325 if test -z "$EGREP"; then
4326 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328 { (exit 1); exit 1; }; }
4332 ac_cv_path_EGREP=$EGREP
4338 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4339 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4340 EGREP="$ac_cv_path_EGREP"
4343 if test $ac_cv_c_compiler_gnu = yes; then
4344 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4345 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 ac_pattern="Autoconf.*'x'"
4350 cat >conftest.$ac_ext <<_ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4361 ac_cv_prog_gcc_traditional=yes
4363 ac_cv_prog_gcc_traditional=no
4368 if test $ac_cv_prog_gcc_traditional = no; then
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4380 ac_cv_prog_gcc_traditional=yes
4386 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4387 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4388 if test $ac_cv_prog_gcc_traditional = yes; then
4389 CC="$CC -traditional"
4393 # Find a good install program. We prefer a C program (faster),
4394 # so one script is as good as another. But avoid the broken or
4395 # incompatible versions:
4396 # SysV /etc/install, /usr/sbin/install
4397 # SunOS /usr/etc/install
4398 # IRIX /sbin/install
4400 # AmigaOS /C/install, which installs bootblocks on floppy discs
4401 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4402 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4403 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4404 # OS/2's system install, which has a completely different semantic
4405 # ./install, which can be erroneously created by make from ./install.sh.
4406 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4408 if test -z "$INSTALL"; then
4409 if test "${ac_cv_path_install+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 # Account for people who put trailing slashes in PATH elements.
4419 ./ | .// | /cC/* | \
4420 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4421 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4424 # OSF1 and SCO ODT 3.0 have their own names for install.
4425 # Don't use installbsd from OSF since it installs stuff as root
4427 for ac_prog in ginstall scoinst install; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4430 if test $ac_prog = install &&
4431 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4432 # AIX install. It has an incompatible calling convention.
4434 elif test $ac_prog = install &&
4435 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4436 # program-specific install script used by HP pwplus--don't use.
4439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4452 if test "${ac_cv_path_install+set}" = set; then
4453 INSTALL=$ac_cv_path_install
4455 # As a last resort, use the slow shell script. Don't cache a
4456 # value for INSTALL within a source directory, because that will
4457 # break other packages using the cache if that directory is
4458 # removed, or if the value is a relative name.
4459 INSTALL=$ac_install_sh
4462 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4463 echo "${ECHO_T}$INSTALL" >&6; }
4465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4466 # It thinks the first close brace ends the variable substitution.
4467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4473 for ac_prog in gawk mawk nawk awk
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476 set dummy $ac_prog; ac_word=$2
4477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4479 if test "${ac_cv_prog_AWK+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 if test -n "$AWK"; then
4483 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_AWK="$ac_prog"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 if test -n "$AWK"; then
4504 { echo "$as_me:$LINENO: result: $AWK" >&5
4505 echo "${ECHO_T}$AWK" >&6; }
4507 { echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6; }
4512 test -n "$AWK" && break
4515 if test -n "$ac_tool_prefix"; then
4516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_RANLIB+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 if test -n "$RANLIB"; then
4524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 RANLIB=$ac_cv_prog_RANLIB
4544 if test -n "$RANLIB"; then
4545 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4546 echo "${ECHO_T}$RANLIB" >&6; }
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4554 if test -z "$ac_cv_prog_RANLIB"; then
4555 ac_ct_RANLIB=$RANLIB
4556 # Extract the first word of "ranlib", so it can be a program name with args.
4557 set dummy ranlib; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$ac_ct_RANLIB"; then
4564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_ac_ct_RANLIB="ranlib"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4584 if test -n "$ac_ct_RANLIB"; then
4585 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4586 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4592 if test "x$ac_ct_RANLIB" = x; then
4595 case $cross_compiling:$ac_tool_warned in
4597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4598 whose name does not start with the host triplet. If you think this
4599 configuration is useful to you, please write to autoconf@gnu.org." >&5
4600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet. If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4603 ac_tool_warned=yes ;;
4605 RANLIB=$ac_ct_RANLIB
4608 RANLIB="$ac_cv_prog_RANLIB"
4611 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4612 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4614 if test "$LN_S" = "ln -s"; then
4615 { echo "$as_me:$LINENO: result: yes" >&5
4616 echo "${ECHO_T}yes" >&6; }
4618 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4619 echo "${ECHO_T}no, using $LN_S" >&6; }
4622 { echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4623 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6; }
4624 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4625 if { as_var=timidity_cv_ccoption_$ac_ccoption; eval "test \"\${$as_var+set}\" = set"; }; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 cat > conftest.$ac_ext <<EOF
4629 int main() {return 0;}
4631 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4632 if test -s conftest.out; then
4633 eval "timidity_cv_ccoption_$ac_ccoption=no"
4635 eval "timidity_cv_ccoption_$ac_ccoption=yes"
4638 eval "timidity_cv_ccoption_$ac_ccoption=no"
4643 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4644 { echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6; }
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4654 if test "x$NOCFLAGS" = "xyes"; then
4655 if test "x$GCC" = "xyes"; then
4662 # Checks for target dependencies
4665 # Check whether --with-elf was given.
4666 if test "${with_elf+set}" = set; then
4667 withval=$with_elf; ELFFORMAT=$withval
4674 # [ --with-simd create SIMD friendly binary (default is no) ],
4675 # [ SIMD=$withval ], [ SIMD="no" ])
4680 test -n "$SHLD" || SHLD="ld -b"
4684 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4685 test -n "$SHLD" || SHLD="cc -shared -all"
4689 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4694 test -n "$SHLD" || SHLD="ld -Bshareable"
4698 if test "$ELFFORMAT" = yes; then
4699 test -n "$SHLD" || SHLD="ld -Bshareable"
4702 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4703 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4709 # EXTRALIBS="$EXTRALIBS -lxpg4"
4710 # test -n "$SHLD" || SHLD="ld -Bshareable"
4714 *-*-cygwin*|*-*-mingw*)
4715 EXTRADEFS="-D__W32__"
4719 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
4720 test -n "$SHLD" || SHLD="BCC32 -WD"
4722 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4723 BORLANDC_START='C0X32.OBJ'
4724 CFLAGS="$CFLAGS -tWM -VM"
4725 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4728 test -n "$SHLD" || SHLD="polink -DLL"
4731 *" -MT "*) NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crt.lib -defaultlib:crtmt.lib" ;;
4732 *" -MD "*) NODEF="-nodefaultlib:crtmt.lib -nodefaultlib:crt.lib -defaultlib:pocrt.lib" ;;
4733 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crtmt.lib -defaultlib:crt.lib" ;;
4735 POCC_LDFLAGS="$NODEF winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib oldnames.lib"
4736 CFLAGS="$CFLAGS -Ze -D__POCC__OLDNAMES"
4737 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4740 test -n "$SHLD" || SHLD="dmc -WD"
4742 DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
4743 CFLAGS="$CFLAGS -mn -j0"
4745 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4747 "xwcc386_w.sh "*|xwcc386)
4749 CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4752 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4755 test -n "$SHLD" || SHLD="link -dll"
4758 *" -MT "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4759 *" -MD "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4760 *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4761 *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4762 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4764 VCPP_LDFLAGS="-nologo -incremental:no $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib wsock32.lib user32.lib shell32.lib"
4765 CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX -Ob2"
4766 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
4768 "x*gcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4769 *) test -n "$SHLD" || SHLD="unknown" ;;
4773 lib_user32_test=-luser32
4777 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4781 EXTRADEFS="-DSOLARIS"
4782 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4786 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4790 if test "x$SIMD" = "xyes"; then
4792 cat >>confdefs.h <<\_ACEOF
4793 #define USE_ALTIVEC 1
4796 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4797 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4800 cat >>confdefs.h <<\_ACEOF
4801 #define USE_ALTIVEC 0
4805 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4806 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4807 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4811 test -n "$SHLD" || \
4812 if test "x$GCC" = xyes; then
4815 SHLD="ld -Bdynamic -G"
4822 # Checks for libraries.
4824 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4825 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
4826 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_check_lib_save_LIBS=$LIBS
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4838 /* Override any GCC internal prototype to avoid an error.
4839 Use char because int might match the return type of a GCC
4840 builtin and then its argument prototype would still apply. */
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (ac_try="$ac_link"
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_link") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest$ac_exeext &&
4870 $as_test_x conftest$ac_exeext; then
4871 ac_cv_lib_m_sqrt=yes
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4880 conftest$ac_exeext conftest.$ac_ext
4881 LIBS=$ac_check_lib_save_LIBS
4883 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4884 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
4885 if test $ac_cv_lib_m_sqrt = yes; then
4886 cat >>confdefs.h <<_ACEOF
4895 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4896 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4897 if test "${ac_cv_lib_socket_socket+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 ac_check_lib_save_LIBS=$LIBS
4901 LIBS="-lsocket $LIBS"
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4909 /* Override any GCC internal prototype to avoid an error.
4910 Use char because int might match the return type of a GCC
4911 builtin and then its argument prototype would still apply. */
4924 rm -f conftest.$ac_objext conftest$ac_exeext
4925 if { (ac_try="$ac_link"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_link") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest$ac_exeext &&
4941 $as_test_x conftest$ac_exeext; then
4942 ac_cv_lib_socket_socket=yes
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_cv_lib_socket_socket=no
4950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4951 conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_check_lib_save_LIBS
4954 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4955 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4956 if test $ac_cv_lib_socket_socket = yes; then
4957 cat >>confdefs.h <<_ACEOF
4958 #define HAVE_LIBSOCKET 1
4961 LIBS="-lsocket $LIBS"
4965 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
4967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 ac_check_lib_save_LIBS=$LIBS
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4979 /* Override any GCC internal prototype to avoid an error.
4980 Use char because int might match the return type of a GCC
4981 builtin and then its argument prototype would still apply. */
4994 rm -f conftest.$ac_objext conftest$ac_exeext
4995 if { (ac_try="$ac_link"
4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 *) ac_try_echo=$ac_try;;
5000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001 (eval "$ac_link") 2>conftest.er1
5003 grep -v '^ *+' conftest.er1 >conftest.err
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest$ac_exeext &&
5011 $as_test_x conftest$ac_exeext; then
5012 ac_cv_lib_dl_dlopen=yes
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ac_cv_lib_dl_dlopen=no
5020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5021 conftest$ac_exeext conftest.$ac_ext
5022 LIBS=$ac_check_lib_save_LIBS
5024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5026 if test $ac_cv_lib_dl_dlopen = yes; then
5030 { echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
5031 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6; }
5032 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 ac_check_lib_save_LIBS=$LIBS
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 /* Override any GCC internal prototype to avoid an error.
5045 Use char because int might match the return type of a GCC
5046 builtin and then its argument prototype would still apply. */
5050 char NSLinkModule ();
5054 return NSLinkModule ();
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (ac_try="$ac_link"
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066 (eval "$ac_link") 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && {
5073 test -z "$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 } && test -s conftest$ac_exeext &&
5076 $as_test_x conftest$ac_exeext; then
5077 ac_cv_lib_objc_NSLinkModule=yes
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 ac_cv_lib_objc_NSLinkModule=no
5085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5086 conftest$ac_exeext conftest.$ac_ext
5087 LIBS=$ac_check_lib_save_LIBS
5089 { echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
5090 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6; }
5091 if test $ac_cv_lib_objc_NSLinkModule = yes; then
5094 # Mac OS X need this.
5095 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
5097 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
5098 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
5099 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 ac_check_lib_save_LIBS=$LIBS
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5111 /* Override any GCC internal prototype to avoid an error.
5112 Use char because int might match the return type of a GCC
5113 builtin and then its argument prototype would still apply. */
5121 return setlocale ();
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest$ac_exeext &&
5143 $as_test_x conftest$ac_exeext; then
5144 ac_cv_lib_xpg4_setlocale=yes
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 ac_cv_lib_xpg4_setlocale=no
5152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5153 conftest$ac_exeext conftest.$ac_ext
5154 LIBS=$ac_check_lib_save_LIBS
5156 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
5157 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
5158 if test $ac_cv_lib_xpg4_setlocale = yes; then
5159 cat >>confdefs.h <<_ACEOF
5160 #define HAVE_LIBXPG4 1
5166 # Mac OS X (and maybe NetBSD) need this.
5169 for ac_func in gethostbyname
5171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5185 #define $ac_func innocuous_$ac_func
5187 /* System header to define __stub macros and hopefully few prototypes,
5188 which can conflict with char $ac_func (); below.
5189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5190 <limits.h> exists even on freestanding compilers. */
5193 # include <limits.h>
5195 # include <assert.h>
5200 /* Override any GCC internal prototype to avoid an error.
5201 Use char because int might match the return type of a GCC
5202 builtin and then its argument prototype would still apply. */
5207 /* The GNU C library defines this for functions which it implements
5208 to always fail with ENOSYS. Some functions are actually named
5209 something starting with __ and the normal name is an alias. */
5210 #if defined __stub_$ac_func || defined __stub___$ac_func
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (ac_try="$ac_link"
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_link") 2>conftest.er1
5231 grep -v '^ *+' conftest.er1 >conftest.err
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest$ac_exeext &&
5239 $as_test_x conftest$ac_exeext; then
5240 eval "$as_ac_var=yes"
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 eval "$as_ac_var=no"
5248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5249 conftest$ac_exeext conftest.$ac_ext
5251 ac_res=`eval echo '${'$as_ac_var'}'`
5252 { echo "$as_me:$LINENO: result: $ac_res" >&5
5253 echo "${ECHO_T}$ac_res" >&6; }
5254 if test `eval echo '${'$as_ac_var'}'` = yes; then
5255 cat >>confdefs.h <<_ACEOF
5256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5261 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5262 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5263 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 ac_check_lib_save_LIBS=$LIBS
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5275 /* Override any GCC internal prototype to avoid an error.
5276 Use char because int might match the return type of a GCC
5277 builtin and then its argument prototype would still apply. */
5281 char gethostbyname ();
5285 return gethostbyname ();
5290 rm -f conftest.$ac_objext conftest$ac_exeext
5291 if { (ac_try="$ac_link"
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_link") 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && {
5304 test -z "$ac_c_werror_flag" ||
5305 test ! -s conftest.err
5306 } && test -s conftest$ac_exeext &&
5307 $as_test_x conftest$ac_exeext; then
5308 ac_cv_lib_nsl_gethostbyname=yes
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 ac_cv_lib_nsl_gethostbyname=no
5316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5317 conftest$ac_exeext conftest.$ac_ext
5318 LIBS=$ac_check_lib_save_LIBS
5320 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5321 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5322 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5323 cat >>confdefs.h <<_ACEOF
5324 #define HAVE_LIBNSL 1
5334 { echo "$as_me:$LINENO: checking for X" >&5
5335 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5338 # Check whether --with-x was given.
5339 if test "${with_x+set}" = set; then
5343 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5344 if test "x$with_x" = xno; then
5345 # The user explicitly disabled X.
5348 case $x_includes,$x_libraries in #(
5349 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5350 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5351 { (exit 1); exit 1; }; };; #(
5352 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 # One or both of the vars are not set, and there is no cached value.
5356 ac_x_includes=no ac_x_libraries=no
5357 rm -f -r conftest.dir
5358 if mkdir conftest.dir; then
5360 cat >Imakefile <<'_ACEOF'
5362 @echo incroot='${INCROOT}'
5364 @echo usrlibdir='${USRLIBDIR}'
5366 @echo libdir='${LIBDIR}'
5368 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5369 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5370 for ac_var in incroot usrlibdir libdir; do
5371 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5373 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5374 for ac_extension in a so sl; do
5375 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5376 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5377 ac_im_usrlibdir=$ac_im_libdir; break
5380 # Screen out bogus values from the imake configuration. They are
5381 # bogus both because they are the default anyway, and because
5382 # using them would break gcc on systems where it needs fixed includes.
5383 case $ac_im_incroot in
5384 /usr/include) ac_x_includes= ;;
5385 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5387 case $ac_im_usrlibdir in
5389 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5393 rm -f -r conftest.dir
5396 # Standard set of common directories for X headers.
5397 # Check X11 before X11Rn because it is often a symlink to the current release.
5409 /usr/local/X11/include
5410 /usr/local/X11R6/include
5411 /usr/local/X11R5/include
5412 /usr/local/X11R4/include
5414 /usr/local/include/X11
5415 /usr/local/include/X11R6
5416 /usr/local/include/X11R5
5417 /usr/local/include/X11R4
5421 /usr/XFree86/include/X11
5425 /usr/unsupported/include
5427 /usr/local/x11r5/include
5428 /usr/lpp/Xamples/include
5430 /usr/openwin/include
5431 /usr/openwin/share/include'
5433 if test "$ac_x_includes" = no; then
5434 # Guess where to find include files, by looking for Xlib.h.
5435 # First, try using that file with no special directory specified.
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <X11/Xlib.h>
5444 if { (ac_try="$ac_cpp conftest.$ac_ext"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5452 grep -v '^ *+' conftest.er1 >conftest.err
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } >/dev/null && {
5457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5458 test ! -s conftest.err
5460 # We can compile using X headers with no special include directory.
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 for ac_dir in $ac_x_header_dirs; do
5467 if test -r "$ac_dir/X11/Xlib.h"; then
5468 ac_x_includes=$ac_dir
5474 rm -f conftest.err conftest.$ac_ext
5475 fi # $ac_x_includes = no
5477 if test "$ac_x_libraries" = no; then
5478 # Check for the libraries.
5479 # See if we find them without any special options.
5480 # Don't add to $LIBS permanently.
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <X11/Xlib.h>
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (ac_try="$ac_link"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_link") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest$ac_exeext &&
5515 $as_test_x conftest$ac_exeext; then
5517 # We can link X programs with no special library path.
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5524 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5526 # Don't even attempt the hair of trying to link an X program!
5527 for ac_extension in a so sl; do
5528 if test -r "$ac_dir/libX11.$ac_extension"; then
5529 ac_x_libraries=$ac_dir
5536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5537 conftest$ac_exeext conftest.$ac_ext
5538 fi # $ac_x_libraries = no
5540 case $ac_x_includes,$ac_x_libraries in #(
5542 # Didn't find X, or a directory has "'" in its name.
5543 ac_cv_have_x="have_x=no";; #(
5545 # Record where we found X for the cache.
5546 ac_cv_have_x="have_x=yes\
5547 ac_x_includes='$ac_x_includes'\
5548 ac_x_libraries='$ac_x_libraries'"
5554 eval "$ac_cv_have_x"
5557 if test "$have_x" != yes; then
5558 { echo "$as_me:$LINENO: result: $have_x" >&5
5559 echo "${ECHO_T}$have_x" >&6; }
5562 # If each of the values was on the command line, it overrides each guess.
5563 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5564 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5565 # Update the cache value to reflect the command line values.
5566 ac_cv_have_x="have_x=yes\
5567 ac_x_includes='$x_includes'\
5568 ac_x_libraries='$x_libraries'"
5569 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5570 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5573 if test "$no_x" = yes; then
5574 # Not all programs may use this symbol, but it does not hurt to define it.
5576 cat >>confdefs.h <<\_ACEOF
5577 #define X_DISPLAY_MISSING 1
5580 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5582 if test -n "$x_includes"; then
5583 X_CFLAGS="$X_CFLAGS -I$x_includes"
5586 # It would also be nice to do this for all -L options, not just this one.
5587 if test -n "$x_libraries"; then
5588 X_LIBS="$X_LIBS -L$x_libraries"
5589 # For Solaris; some versions of Sun CC require a space after -R and
5590 # others require no space. Words are not sufficient . . . .
5591 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5592 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5593 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5594 ac_xsave_c_werror_flag=$ac_c_werror_flag
5595 ac_c_werror_flag=yes
5596 cat >conftest.$ac_ext <<_ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (ac_try="$ac_link"
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_link") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest$ac_exeext &&
5628 $as_test_x conftest$ac_exeext; then
5629 { echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6; }
5631 X_LIBS="$X_LIBS -R$x_libraries"
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 LIBS="$ac_xsave_LIBS -R $x_libraries"
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5652 rm -f conftest.$ac_objext conftest$ac_exeext
5653 if { (ac_try="$ac_link"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_link") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest$ac_exeext &&
5669 $as_test_x conftest$ac_exeext; then
5670 { echo "$as_me:$LINENO: result: yes" >&5
5671 echo "${ECHO_T}yes" >&6; }
5672 X_LIBS="$X_LIBS -R $x_libraries"
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 { echo "$as_me:$LINENO: result: neither works" >&5
5678 echo "${ECHO_T}neither works" >&6; }
5681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682 conftest$ac_exeext conftest.$ac_ext
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5687 ac_c_werror_flag=$ac_xsave_c_werror_flag
5691 # Check for system-dependent libraries X programs must link with.
5692 # Do this before checking for the system-independent R6 libraries
5693 # (-lICE), since we may need -lsocket or whatever for X linking.
5695 if test "$ISC" = yes; then
5696 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5698 # Martyn Johnson says this is needed for Ultrix, if the X
5699 # libraries were built with DECnet support. And Karl Berry says
5700 # the Alpha needs dnet_stub (dnet does not exist).
5701 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5709 /* Override any GCC internal prototype to avoid an error.
5710 Use char because int might match the return type of a GCC
5711 builtin and then its argument prototype would still apply. */
5715 char XOpenDisplay ();
5719 return XOpenDisplay ();
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (ac_try="$ac_link"
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_link") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest$ac_exeext &&
5741 $as_test_x conftest$ac_exeext; then
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5748 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5749 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 ac_check_lib_save_LIBS=$LIBS
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5761 /* Override any GCC internal prototype to avoid an error.
5762 Use char because int might match the return type of a GCC
5763 builtin and then its argument prototype would still apply. */
5771 return dnet_ntoa ();
5776 rm -f conftest.$ac_objext conftest$ac_exeext
5777 if { (ac_try="$ac_link"
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_link") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest$ac_exeext &&
5793 $as_test_x conftest$ac_exeext; then
5794 ac_cv_lib_dnet_dnet_ntoa=yes
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 ac_cv_lib_dnet_dnet_ntoa=no
5802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5803 conftest$ac_exeext conftest.$ac_ext
5804 LIBS=$ac_check_lib_save_LIBS
5806 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5807 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5808 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5812 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5813 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5814 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5815 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-ldnet_stub $LIBS"
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5827 /* Override any GCC internal prototype to avoid an error.
5828 Use char because int might match the return type of a GCC
5829 builtin and then its argument prototype would still apply. */
5837 return dnet_ntoa ();
5842 rm -f conftest.$ac_objext conftest$ac_exeext
5843 if { (ac_try="$ac_link"
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_link") 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest$ac_exeext &&
5859 $as_test_x conftest$ac_exeext; then
5860 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 ac_cv_lib_dnet_stub_dnet_ntoa=no
5868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5869 conftest$ac_exeext conftest.$ac_ext
5870 LIBS=$ac_check_lib_save_LIBS
5872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5873 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5874 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5875 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5882 conftest$ac_exeext conftest.$ac_ext
5883 LIBS="$ac_xsave_LIBS"
5885 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5886 # to get the SysV transport functions.
5887 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5889 # The nsl library prevents programs from opening the X display
5890 # on Irix 5.2, according to T.E. Dickey.
5891 # The functions gethostbyname, getservbyname, and inet_addr are
5892 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5893 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5894 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5895 if test "${ac_cv_func_gethostbyname+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5906 #define gethostbyname innocuous_gethostbyname
5908 /* System header to define __stub macros and hopefully few prototypes,
5909 which can conflict with char gethostbyname (); below.
5910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 <limits.h> exists even on freestanding compilers. */
5914 # include <limits.h>
5916 # include <assert.h>
5919 #undef gethostbyname
5921 /* Override any GCC internal prototype to avoid an error.
5922 Use char because int might match the return type of a GCC
5923 builtin and then its argument prototype would still apply. */
5927 char gethostbyname ();
5928 /* The GNU C library defines this for functions which it implements
5929 to always fail with ENOSYS. Some functions are actually named
5930 something starting with __ and the normal name is an alias. */
5931 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5938 return gethostbyname ();
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (ac_try="$ac_link"
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_link") 2>conftest.er1
5952 grep -v '^ *+' conftest.er1 >conftest.err
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest$ac_exeext &&
5960 $as_test_x conftest$ac_exeext; then
5961 ac_cv_func_gethostbyname=yes
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 ac_cv_func_gethostbyname=no
5969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5970 conftest$ac_exeext conftest.$ac_ext
5972 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5973 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5975 if test $ac_cv_func_gethostbyname = no; then
5976 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5977 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5978 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 ac_check_lib_save_LIBS=$LIBS
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
5996 char gethostbyname ();
6000 return gethostbyname ();
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (ac_try="$ac_link"
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_link") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest$ac_exeext &&
6022 $as_test_x conftest$ac_exeext; then
6023 ac_cv_lib_nsl_gethostbyname=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_cv_lib_nsl_gethostbyname=no
6031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6032 conftest$ac_exeext conftest.$ac_ext
6033 LIBS=$ac_check_lib_save_LIBS
6035 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6036 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6037 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6038 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6041 if test $ac_cv_lib_nsl_gethostbyname = no; then
6042 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6043 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6044 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 ac_check_lib_save_LIBS=$LIBS
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6056 /* Override any GCC internal prototype to avoid an error.
6057 Use char because int might match the return type of a GCC
6058 builtin and then its argument prototype would still apply. */
6062 char gethostbyname ();
6066 return gethostbyname ();
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_link") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest$ac_exeext &&
6088 $as_test_x conftest$ac_exeext; then
6089 ac_cv_lib_bsd_gethostbyname=yes
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_cv_lib_bsd_gethostbyname=no
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098 conftest$ac_exeext conftest.$ac_ext
6099 LIBS=$ac_check_lib_save_LIBS
6101 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6102 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6103 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6110 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6111 # socket/setsockopt and other routines are undefined under SCO ODT
6112 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6113 # on later versions), says Simon Leinen: it contains gethostby*
6114 # variants that don't use the name server (or something). -lsocket
6115 # must be given before -lnsl if both are needed. We assume that
6116 # if connect needs -lnsl, so does gethostbyname.
6117 { echo "$as_me:$LINENO: checking for connect" >&5
6118 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6119 if test "${ac_cv_func_connect+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6130 #define connect innocuous_connect
6132 /* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char connect (); below.
6134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135 <limits.h> exists even on freestanding compilers. */
6138 # include <limits.h>
6140 # include <assert.h>
6145 /* Override any GCC internal prototype to avoid an error.
6146 Use char because int might match the return type of a GCC
6147 builtin and then its argument prototype would still apply. */
6152 /* The GNU C library defines this for functions which it implements
6153 to always fail with ENOSYS. Some functions are actually named
6154 something starting with __ and the normal name is an alias. */
6155 #if defined __stub_connect || defined __stub___connect
6167 rm -f conftest.$ac_objext conftest$ac_exeext
6168 if { (ac_try="$ac_link"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_link") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest$ac_exeext &&
6184 $as_test_x conftest$ac_exeext; then
6185 ac_cv_func_connect=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ac_cv_func_connect=no
6193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6194 conftest$ac_exeext conftest.$ac_ext
6196 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6197 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6199 if test $ac_cv_func_connect = no; then
6200 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6201 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6202 if test "${ac_cv_lib_socket_connect+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6214 /* Override any GCC internal prototype to avoid an error.
6215 Use char because int might match the return type of a GCC
6216 builtin and then its argument prototype would still apply. */
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (ac_try="$ac_link"
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_link") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest$ac_exeext &&
6246 $as_test_x conftest$ac_exeext; then
6247 ac_cv_lib_socket_connect=yes
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 ac_cv_lib_socket_connect=no
6255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6256 conftest$ac_exeext conftest.$ac_ext
6257 LIBS=$ac_check_lib_save_LIBS
6259 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6260 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6261 if test $ac_cv_lib_socket_connect = yes; then
6262 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6267 # Guillermo Gomez says -lposix is necessary on A/UX.
6268 { echo "$as_me:$LINENO: checking for remove" >&5
6269 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6270 if test "${ac_cv_func_remove+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6281 #define remove innocuous_remove
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char remove (); below.
6285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286 <limits.h> exists even on freestanding compilers. */
6289 # include <limits.h>
6291 # include <assert.h>
6296 /* Override any GCC internal prototype to avoid an error.
6297 Use char because int might match the return type of a GCC
6298 builtin and then its argument prototype would still apply. */
6303 /* The GNU C library defines this for functions which it implements
6304 to always fail with ENOSYS. Some functions are actually named
6305 something starting with __ and the normal name is an alias. */
6306 #if defined __stub_remove || defined __stub___remove
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (ac_try="$ac_link"
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_link") 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } && {
6332 test -z "$ac_c_werror_flag" ||
6333 test ! -s conftest.err
6334 } && test -s conftest$ac_exeext &&
6335 $as_test_x conftest$ac_exeext; then
6336 ac_cv_func_remove=yes
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 ac_cv_func_remove=no
6344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6345 conftest$ac_exeext conftest.$ac_ext
6347 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6348 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6350 if test $ac_cv_func_remove = no; then
6351 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6352 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6353 if test "${ac_cv_lib_posix_remove+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 ac_check_lib_save_LIBS=$LIBS
6357 LIBS="-lposix $LIBS"
6358 cat >conftest.$ac_ext <<_ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6365 /* Override any GCC internal prototype to avoid an error.
6366 Use char because int might match the return type of a GCC
6367 builtin and then its argument prototype would still apply. */
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (ac_try="$ac_link"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_link") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest$ac_exeext &&
6397 $as_test_x conftest$ac_exeext; then
6398 ac_cv_lib_posix_remove=yes
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 ac_cv_lib_posix_remove=no
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407 conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6410 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6411 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6412 if test $ac_cv_lib_posix_remove = yes; then
6413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6418 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6419 { echo "$as_me:$LINENO: checking for shmat" >&5
6420 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6421 if test "${ac_cv_func_shmat+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 cat >conftest.$ac_ext <<_ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6432 #define shmat innocuous_shmat
6434 /* System header to define __stub macros and hopefully few prototypes,
6435 which can conflict with char shmat (); below.
6436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6437 <limits.h> exists even on freestanding compilers. */
6440 # include <limits.h>
6442 # include <assert.h>
6447 /* Override any GCC internal prototype to avoid an error.
6448 Use char because int might match the return type of a GCC
6449 builtin and then its argument prototype would still apply. */
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined __stub_shmat || defined __stub___shmat
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (ac_try="$ac_link"
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_link") 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest$ac_exeext &&
6486 $as_test_x conftest$ac_exeext; then
6487 ac_cv_func_shmat=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6496 conftest$ac_exeext conftest.$ac_ext
6498 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6499 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6501 if test $ac_cv_func_shmat = no; then
6502 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6503 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6504 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 ac_check_lib_save_LIBS=$LIBS
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6516 /* Override any GCC internal prototype to avoid an error.
6517 Use char because int might match the return type of a GCC
6518 builtin and then its argument prototype would still apply. */
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (ac_try="$ac_link"
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_link") 2>conftest.er1
6540 grep -v '^ *+' conftest.er1 >conftest.err
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest$ac_exeext &&
6548 $as_test_x conftest$ac_exeext; then
6549 ac_cv_lib_ipc_shmat=yes
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 ac_cv_lib_ipc_shmat=no
6557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6558 conftest$ac_exeext conftest.$ac_ext
6559 LIBS=$ac_check_lib_save_LIBS
6561 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6562 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6563 if test $ac_cv_lib_ipc_shmat = yes; then
6564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6570 # Check for libraries that X11R6 Xt/Xaw programs need.
6571 ac_save_LDFLAGS=$LDFLAGS
6572 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6573 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6574 # check for ICE first), but we must link in the order -lSM -lICE or
6575 # we get undefined symbols. So assume we have SM if we have ICE.
6576 # These have to be linked with before -lX11, unlike the other
6577 # libraries we check for below, so use a different variable.
6578 # John Interrante, Karl Berry
6579 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6580 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6581 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 ac_check_lib_save_LIBS=$LIBS
6585 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6593 /* Override any GCC internal prototype to avoid an error.
6594 Use char because int might match the return type of a GCC
6595 builtin and then its argument prototype would still apply. */
6599 char IceConnectionNumber ();
6603 return IceConnectionNumber ();
6608 rm -f conftest.$ac_objext conftest$ac_exeext
6609 if { (ac_try="$ac_link"
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_link") 2>conftest.er1
6617 grep -v '^ *+' conftest.er1 >conftest.err
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && {
6622 test -z "$ac_c_werror_flag" ||
6623 test ! -s conftest.err
6624 } && test -s conftest$ac_exeext &&
6625 $as_test_x conftest$ac_exeext; then
6626 ac_cv_lib_ICE_IceConnectionNumber=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_lib_ICE_IceConnectionNumber=no
6634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6635 conftest$ac_exeext conftest.$ac_ext
6636 LIBS=$ac_check_lib_save_LIBS
6638 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6639 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6640 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6641 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6644 LDFLAGS=$ac_save_LDFLAGS
6650 # Check whether --with-xawlib was given.
6651 if test "${with_xawlib+set}" = set; then
6652 withval=$with_xawlib; with_xawlib="$withval"
6654 with_xawlib="xaw3d,xaw"
6659 if test "x$with_x" = xyes; then
6660 if test "x$have_x" = xno; then
6661 if test "x$x_config_flag" = xyes; then
6662 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6663 echo "$as_me: error: Could not configure X" >&2;}
6664 { (exit 1); exit 1; }; }
6666 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6667 echo "$as_me: WARNING: Could not configure X" >&2;}
6671 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6672 if test "x$x_libraries" != x; then
6673 ldflags_x_opt="-L$x_libraries"
6674 LDFLAGS="$LDFLAGS $ldflags_x_opt"
6675 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6679 if test "x$x_includes" != x; then
6680 CPPFLAGS="$CPPFLAGS -I$x_includes"
6684 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6685 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
6686 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 ac_check_lib_save_LIBS=$LIBS
6691 cat >conftest.$ac_ext <<_ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6698 /* Override any GCC internal prototype to avoid an error.
6699 Use char because int might match the return type of a GCC
6700 builtin and then its argument prototype would still apply. */
6704 char XOpenDisplay ();
6708 return XOpenDisplay ();
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1 >conftest.err
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest$ac_exeext &&
6730 $as_test_x conftest$ac_exeext; then
6731 ac_cv_lib_X11_XOpenDisplay=yes
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 ac_cv_lib_X11_XOpenDisplay=no
6739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6740 conftest$ac_exeext conftest.$ac_ext
6741 LIBS=$ac_check_lib_save_LIBS
6743 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6744 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
6745 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6746 cat >>confdefs.h <<_ACEOF
6747 #define HAVE_LIBX11 1
6754 { echo "$as_me:$LINENO: checking X11 version 6" >&5
6755 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
6756 if test "${timidity_cv_x11_version_6+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <X11/Xlib.h>
6770 #if XlibSpecificationRelease < 6
6778 rm -f conftest.$ac_objext conftest$ac_exeext
6779 if { (ac_try="$ac_link"
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_link") 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext &&
6795 $as_test_x conftest$ac_exeext; then
6796 timidity_cv_x11_version_6=yes
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 timidity_cv_x11_version_6=no
6804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6805 conftest$ac_exeext conftest.$ac_ext
6808 if test "$timidity_cv_x11_version_6" = "yes"; then
6809 { echo "$as_me:$LINENO: result: 6 or newer" >&5
6810 echo "${ECHO_T}6 or newer" >&6; }
6812 { echo "$as_me:$LINENO: result: before 6" >&5
6813 echo "${ECHO_T}before 6" >&6; }
6817 { echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6818 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6; }
6819 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_check_lib_save_LIBS=$LIBS
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6831 /* Override any GCC internal prototype to avoid an error.
6832 Use char because int might match the return type of a GCC
6833 builtin and then its argument prototype would still apply. */
6837 char XShapeCombineMask ();
6841 return XShapeCombineMask ();
6846 rm -f conftest.$ac_objext conftest$ac_exeext
6847 if { (ac_try="$ac_link"
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_link") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest$ac_exeext &&
6863 $as_test_x conftest$ac_exeext; then
6864 ac_cv_lib_Xext_XShapeCombineMask=yes
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 ac_cv_lib_Xext_XShapeCombineMask=no
6872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873 conftest$ac_exeext conftest.$ac_ext
6874 LIBS=$ac_check_lib_save_LIBS
6876 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6877 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
6878 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6879 have_xext=yes; LIBS="-lXext $LIBS"
6885 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6886 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6887 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 ac_check_lib_save_LIBS=$LIBS
6892 cat >conftest.$ac_ext <<_ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6899 /* Override any GCC internal prototype to avoid an error.
6900 Use char because int might match the return type of a GCC
6901 builtin and then its argument prototype would still apply. */
6905 char IceConnectionNumber ();
6909 return IceConnectionNumber ();
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>conftest.er1
6923 grep -v '^ *+' conftest.er1 >conftest.err
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest$ac_exeext &&
6931 $as_test_x conftest$ac_exeext; then
6932 ac_cv_lib_ICE_IceConnectionNumber=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_cv_lib_ICE_IceConnectionNumber=no
6940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6941 conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6944 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6945 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6946 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6947 cat >>confdefs.h <<_ACEOF
6948 #define HAVE_LIBICE 1
6955 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6956 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
6957 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 ac_check_lib_save_LIBS=$LIBS
6962 cat >conftest.$ac_ext <<_ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6975 char SmcOpenConnection ();
6979 return SmcOpenConnection ();
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (ac_try="$ac_link"
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_link") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest$ac_exeext &&
7001 $as_test_x conftest$ac_exeext; then
7002 ac_cv_lib_SM_SmcOpenConnection=yes
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_cv_lib_SM_SmcOpenConnection=no
7010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7011 conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS
7014 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7015 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
7016 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7017 have_xprelibs=yes; LIBS="-lSM $LIBS"
7022 { echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
7023 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6; }
7024 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_check_lib_save_LIBS=$LIBS
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7036 /* Override any GCC internal prototype to avoid an error.
7037 Use char because int might match the return type of a GCC
7038 builtin and then its argument prototype would still apply. */
7042 char XtVaAppInitialize ();
7046 return XtVaAppInitialize ();
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (ac_try="$ac_link"
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_link") 2>conftest.er1
7060 grep -v '^ *+' conftest.er1 >conftest.err
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest$ac_exeext &&
7068 $as_test_x conftest$ac_exeext; then
7069 ac_cv_lib_Xt_XtVaAppInitialize=yes
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 ac_cv_lib_Xt_XtVaAppInitialize=no
7077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7078 conftest$ac_exeext conftest.$ac_ext
7079 LIBS=$ac_check_lib_save_LIBS
7081 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
7082 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6; }
7083 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
7084 have_xt=yes; LIBS="-lXt $LIBS"
7089 { echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
7090 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6; }
7091 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_check_lib_save_LIBS=$LIBS
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7103 /* Override any GCC internal prototype to avoid an error.
7104 Use char because int might match the return type of a GCC
7105 builtin and then its argument prototype would still apply. */
7109 char XmuInternAtom ();
7113 return XmuInternAtom ();
7118 rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_link") 2>conftest.er1
7127 grep -v '^ *+' conftest.er1 >conftest.err
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest$ac_exeext &&
7135 $as_test_x conftest$ac_exeext; then
7136 ac_cv_lib_Xmu_XmuInternAtom=yes
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_lib_Xmu_XmuInternAtom=no
7144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7145 conftest$ac_exeext conftest.$ac_ext
7146 LIBS=$ac_check_lib_save_LIBS
7148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
7149 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6; }
7150 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
7155 for ac_func in XmuRegisterExternalAgent
7157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7171 #define $ac_func innocuous_$ac_func
7173 /* System header to define __stub macros and hopefully few prototypes,
7174 which can conflict with char $ac_func (); below.
7175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176 <limits.h> exists even on freestanding compilers. */
7179 # include <limits.h>
7181 # include <assert.h>
7186 /* Override any GCC internal prototype to avoid an error.
7187 Use char because int might match the return type of a GCC
7188 builtin and then its argument prototype would still apply. */
7193 /* The GNU C library defines this for functions which it implements
7194 to always fail with ENOSYS. Some functions are actually named
7195 something starting with __ and the normal name is an alias. */
7196 #if defined __stub_$ac_func || defined __stub___$ac_func
7208 rm -f conftest.$ac_objext conftest$ac_exeext
7209 if { (ac_try="$ac_link"
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_link") 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } && {
7222 test -z "$ac_c_werror_flag" ||
7223 test ! -s conftest.err
7224 } && test -s conftest$ac_exeext &&
7225 $as_test_x conftest$ac_exeext; then
7226 eval "$as_ac_var=yes"
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 eval "$as_ac_var=no"
7234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7235 conftest$ac_exeext conftest.$ac_ext
7237 ac_res=`eval echo '${'$as_ac_var'}'`
7238 { echo "$as_me:$LINENO: result: $ac_res" >&5
7239 echo "${ECHO_T}$ac_res" >&6; }
7240 if test `eval echo '${'$as_ac_var'}'` = yes; then
7241 cat >>confdefs.h <<_ACEOF
7242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7248 for i in `echo $with_xawlib | sed 's/,/ /g'`; do
7251 { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7252 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6; }
7253 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_check_lib_save_LIBS=$LIBS
7258 cat >conftest.$ac_ext <<_ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7265 /* Override any GCC internal prototype to avoid an error.
7266 Use char because int might match the return type of a GCC
7267 builtin and then its argument prototype would still apply. */
7271 char XawInitializeWidgetSet ();
7275 return XawInitializeWidgetSet ();
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_link") 2>conftest.er1
7289 grep -v '^ *+' conftest.er1 >conftest.err
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest$ac_exeext &&
7297 $as_test_x conftest$ac_exeext; then
7298 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307 conftest$ac_exeext conftest.$ac_ext
7308 LIBS=$ac_check_lib_save_LIBS
7310 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7311 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6; }
7312 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7320 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7322 if test "${ac_cv_header_stdc+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_compile") 2>conftest.er1
7353 grep -v '^ *+' conftest.er1 >conftest.err
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } && {
7358 test -z "$ac_c_werror_flag" ||
7359 test ! -s conftest.err
7360 } && test -s conftest.$ac_objext; then
7361 ac_cv_header_stdc=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 ac_cv_header_stdc=no
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 if test $ac_cv_header_stdc = yes; then
7372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7373 cat >conftest.$ac_ext <<_ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383 $EGREP "memchr" >/dev/null 2>&1; then
7386 ac_cv_header_stdc=no
7392 if test $ac_cv_header_stdc = yes; then
7393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "free" >/dev/null 2>&1; then
7407 ac_cv_header_stdc=no
7413 if test $ac_cv_header_stdc = yes; then
7414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7415 if test "$cross_compiling" = yes; then
7418 cat >conftest.$ac_ext <<_ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7426 #if ((' ' & 0x0FF) == 0x020)
7427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7430 # define ISLOWER(c) \
7431 (('a' <= (c) && (c) <= 'i') \
7432 || ('j' <= (c) && (c) <= 'r') \
7433 || ('s' <= (c) && (c) <= 'z'))
7434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7442 for (i = 0; i < 256; i++)
7443 if (XOR (islower (i), ISLOWER (i))
7444 || toupper (i) != TOUPPER (i))
7449 rm -f conftest$ac_exeext
7450 if { (ac_try="$ac_link"
7452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453 *) ac_try_echo=$ac_try;;
7455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456 (eval "$ac_link") 2>&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7460 { (case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_try") 2>&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7471 echo "$as_me: program exited with status $ac_status" >&5
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7476 ac_cv_header_stdc=no
7478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7484 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7485 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7486 if test $ac_cv_header_stdc = yes; then
7488 cat >>confdefs.h <<\_ACEOF
7489 #define STDC_HEADERS 1
7494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7505 inttypes.h stdint.h unistd.h
7507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7521 #include <$ac_header>
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7540 eval "$as_ac_Header=yes"
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 eval "$as_ac_Header=no"
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 ac_res=`eval echo '${'$as_ac_Header'}'`
7551 { echo "$as_me:$LINENO: result: $ac_res" >&5
7552 echo "${ECHO_T}$ac_res" >&6; }
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7563 { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7564 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6; }
7565 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 ac_check_lib_save_LIBS=$LIBS
7569 LIBS="-lXaw3d $LIBS"
7570 cat >conftest.$ac_ext <<_ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7577 /* Override any GCC internal prototype to avoid an error.
7578 Use char because int might match the return type of a GCC
7579 builtin and then its argument prototype would still apply. */
7583 char XawInitializeWidgetSet ();
7587 return XawInitializeWidgetSet ();
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (ac_try="$ac_link"
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_link") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest$ac_exeext &&
7609 $as_test_x conftest$ac_exeext; then
7610 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7622 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7623 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6; }
7624 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7626 if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then
7627 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Tip.h" >&5
7628 echo $ECHO_N "checking for X11/Xaw3d/Tip.h... $ECHO_C" >&6; }
7629 if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Tip_h" >&5
7633 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Tip_h" >&6; }
7635 # Is the header compilable?
7636 { echo "$as_me:$LINENO: checking X11/Xaw3d/Tip.h usability" >&5
7637 echo $ECHO_N "checking X11/Xaw3d/Tip.h usability... $ECHO_C" >&6; }
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 #include <X11/Xaw3d/Tip.h>
7647 rm -f conftest.$ac_objext
7648 if { (ac_try="$ac_compile"
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_compile") 2>conftest.er1
7656 grep -v '^ *+' conftest.er1 >conftest.err
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && {
7661 test -z "$ac_c_werror_flag" ||
7662 test ! -s conftest.err
7663 } && test -s conftest.$ac_objext; then
7664 ac_header_compiler=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_header_compiler=no
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7674 echo "${ECHO_T}$ac_header_compiler" >&6; }
7676 # Is the header present?
7677 { echo "$as_me:$LINENO: checking X11/Xaw3d/Tip.h presence" >&5
7678 echo $ECHO_N "checking X11/Xaw3d/Tip.h presence... $ECHO_C" >&6; }
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <X11/Xaw3d/Tip.h>
7687 if { (ac_try="$ac_cpp conftest.$ac_ext"
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7695 grep -v '^ *+' conftest.er1 >conftest.err
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } >/dev/null && {
7700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7701 test ! -s conftest.err
7703 ac_header_preproc=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_header_preproc=no
7711 rm -f conftest.err conftest.$ac_ext
7712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7713 echo "${ECHO_T}$ac_header_preproc" >&6; }
7715 # So? What about this header?
7716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7718 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: accepted by the compiler, rejected by the preprocessor!" >&5
7719 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7720 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: proceeding with the compiler's result" >&5
7721 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: proceeding with the compiler's result" >&2;}
7722 ac_header_preproc=yes
7725 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: present but cannot be compiled" >&5
7726 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: present but cannot be compiled" >&2;}
7727 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: check for missing prerequisite headers?" >&5
7728 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: check for missing prerequisite headers?" >&2;}
7729 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: see the Autoconf documentation" >&5
7730 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: see the Autoconf documentation" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: section \"Present But Cannot Be Compiled\"" >&5
7732 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: section \"Present But Cannot Be Compiled\"" >&2;}
7733 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: proceeding with the preprocessor's result" >&5
7734 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: proceeding with the preprocessor's result" >&2;}
7735 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: in the future, the compiler will take precedence" >&5
7736 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: in the future, the compiler will take precedence" >&2;}
7738 ## ------------------------------- ##
7739 ## Report this to root@mput.dip.jp ##
7740 ## ------------------------------- ##
7742 ) | sed "s/^/$as_me: WARNING: /" >&2
7745 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Tip.h" >&5
7746 echo $ECHO_N "checking for X11/Xaw3d/Tip.h... $ECHO_C" >&6; }
7747 if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_cv_header_X11_Xaw3d_Tip_h=$ac_header_preproc
7752 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Tip_h" >&5
7753 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Tip_h" >&6; }
7756 if test $ac_cv_header_X11_Xaw3d_Tip_h = yes; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_XAW3D_TIP 1
7773 { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lneXtaw" >&5
7774 echo $ECHO_N "checking for XawInitializeWidgetSet in -lneXtaw... $ECHO_C" >&6; }
7775 if test "${ac_cv_lib_neXtaw_XawInitializeWidgetSet+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lneXtaw $LIBS"
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7793 char XawInitializeWidgetSet ();
7797 return XawInitializeWidgetSet ();
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (ac_try="$ac_link"
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_link") 2>conftest.er1
7811 grep -v '^ *+' conftest.er1 >conftest.err
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } && {
7816 test -z "$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7818 } && test -s conftest$ac_exeext &&
7819 $as_test_x conftest$ac_exeext; then
7820 ac_cv_lib_neXtaw_XawInitializeWidgetSet=yes
7822 echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_cv_lib_neXtaw_XawInitializeWidgetSet=no
7828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7829 conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7832 { echo "$as_me:$LINENO: result: $ac_cv_lib_neXtaw_XawInitializeWidgetSet" >&5
7833 echo "${ECHO_T}$ac_cv_lib_neXtaw_XawInitializeWidgetSet" >&6; }
7834 if test $ac_cv_lib_neXtaw_XawInitializeWidgetSet = yes; then
7843 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7844 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7845 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_check_lib_save_LIBS=$LIBS
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7857 /* Override any GCC internal prototype to avoid an error.
7858 Use char because int might match the return type of a GCC
7859 builtin and then its argument prototype would still apply. */
7863 char XpmCreatePixmapFromData ();
7867 return XpmCreatePixmapFromData ();
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (ac_try="$ac_link"
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_link") 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest$ac_exeext &&
7889 $as_test_x conftest$ac_exeext; then
7890 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7899 conftest$ac_exeext conftest.$ac_ext
7900 LIBS=$ac_check_lib_save_LIBS
7902 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7903 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7904 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define HAVE_LIBXPM 1
7913 { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXawPlus" >&5
7914 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXawPlus... $ECHO_C" >&6; }
7915 if test "${ac_cv_lib_XawPlus_XawInitializeWidgetSet+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 ac_check_lib_save_LIBS=$LIBS
7919 LIBS="-lXawPlus $LIBS"
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7927 /* Override any GCC internal prototype to avoid an error.
7928 Use char because int might match the return type of a GCC
7929 builtin and then its argument prototype would still apply. */
7933 char XawInitializeWidgetSet ();
7937 return XawInitializeWidgetSet ();
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_link") 2>conftest.er1
7951 grep -v '^ *+' conftest.er1 >conftest.err
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest$ac_exeext &&
7959 $as_test_x conftest$ac_exeext; then
7960 ac_cv_lib_XawPlus_XawInitializeWidgetSet=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_cv_lib_XawPlus_XawInitializeWidgetSet=no
7968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7972 { echo "$as_me:$LINENO: result: $ac_cv_lib_XawPlus_XawInitializeWidgetSet" >&5
7973 echo "${ECHO_T}$ac_cv_lib_XawPlus_XawInitializeWidgetSet" >&6; }
7974 if test $ac_cv_lib_XawPlus_XawInitializeWidgetSet = yes; then
7985 if test "x$have_xaw" != "xno"; then break; fi
7987 { echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7988 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6; }
7989 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_check_lib_save_LIBS=$LIBS
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8001 /* Override any GCC internal prototype to avoid an error.
8002 Use char because int might match the return type of a GCC
8003 builtin and then its argument prototype would still apply. */
8007 char XmCreateForm ();
8011 return XmCreateForm ();
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_link") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1 >conftest.err
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest$ac_exeext &&
8033 $as_test_x conftest$ac_exeext; then
8034 ac_cv_lib_Xm_XmCreateForm=yes
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 ac_cv_lib_Xm_XmCreateForm=no
8042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8043 conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8046 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
8047 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6; }
8048 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
8055 for ac_func in XShmCreatePixmap
8057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8071 #define $ac_func innocuous_$ac_func
8073 /* System header to define __stub macros and hopefully few prototypes,
8074 which can conflict with char $ac_func (); below.
8075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8076 <limits.h> exists even on freestanding compilers. */
8079 # include <limits.h>
8081 # include <assert.h>
8086 /* Override any GCC internal prototype to avoid an error.
8087 Use char because int might match the return type of a GCC
8088 builtin and then its argument prototype would still apply. */
8093 /* The GNU C library defines this for functions which it implements
8094 to always fail with ENOSYS. Some functions are actually named
8095 something starting with __ and the normal name is an alias. */
8096 #if defined __stub_$ac_func || defined __stub___$ac_func
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_link") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest$ac_exeext &&
8125 $as_test_x conftest$ac_exeext; then
8126 eval "$as_ac_var=yes"
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8131 eval "$as_ac_var=no"
8134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8135 conftest$ac_exeext conftest.$ac_ext
8137 ac_res=`eval echo '${'$as_ac_var'}'`
8138 { echo "$as_me:$LINENO: result: $ac_res" >&5
8139 echo "${ECHO_T}$ac_res" >&6; }
8140 if test `eval echo '${'$as_ac_var'}'` = yes; then
8141 cat >>confdefs.h <<_ACEOF
8142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8151 # Checks for header files.
8152 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8154 if test "${ac_cv_header_stdc+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8185 grep -v '^ *+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8193 ac_cv_header_stdc=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_header_stdc=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 if test $ac_cv_header_stdc = yes; then
8204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8205 cat >conftest.$ac_ext <<_ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8215 $EGREP "memchr" >/dev/null 2>&1; then
8218 ac_cv_header_stdc=no
8224 if test $ac_cv_header_stdc = yes; then
8225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236 $EGREP "free" >/dev/null 2>&1; then
8239 ac_cv_header_stdc=no
8245 if test $ac_cv_header_stdc = yes; then
8246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8247 if test "$cross_compiling" = yes; then
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8258 #if ((' ' & 0x0FF) == 0x020)
8259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8262 # define ISLOWER(c) \
8263 (('a' <= (c) && (c) <= 'i') \
8264 || ('j' <= (c) && (c) <= 'r') \
8265 || ('s' <= (c) && (c) <= 'z'))
8266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8274 for (i = 0; i < 256; i++)
8275 if (XOR (islower (i), ISLOWER (i))
8276 || toupper (i) != TOUPPER (i))
8281 rm -f conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_link") 2>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8303 echo "$as_me: program exited with status $ac_status" >&5
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8308 ac_cv_header_stdc=no
8310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8316 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8317 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8318 if test $ac_cv_header_stdc = yes; then
8320 cat >>confdefs.h <<\_ACEOF
8321 #define STDC_HEADERS 1
8327 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8328 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8329 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 #include <sys/types.h>
8339 #include <sys/wait.h>
8341 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8344 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_cv_header_sys_wait_h=yes
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_cv_header_sys_wait_h=no
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8385 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8386 if test $ac_cv_header_sys_wait_h = yes; then
8388 cat >>confdefs.h <<\_ACEOF
8389 #define HAVE_SYS_WAIT_H 1
8394 if test "x$WATCOM_C" != xyes ; then
8395 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8396 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8397 if test "${ac_cv_header_time+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <sys/types.h>
8407 #include <sys/time.h>
8413 if ((struct tm *) 0)
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.$ac_objext; then
8436 ac_cv_header_time=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_header_time=no
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8447 echo "${ECHO_T}$ac_cv_header_time" >&6; }
8448 if test $ac_cv_header_time = yes; then
8450 cat >>confdefs.h <<\_ACEOF
8451 #define TIME_WITH_SYS_TIME 1
8463 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8464 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8465 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8466 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <sys/types.h>
8488 rm -f conftest.$ac_objext
8489 if { (ac_try="$ac_compile"
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 eval "$as_ac_Header=yes"
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 eval "$as_ac_Header=no"
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 ac_res=`eval echo '${'$as_ac_Header'}'`
8516 { echo "$as_me:$LINENO: result: $ac_res" >&5
8517 echo "${ECHO_T}$ac_res" >&6; }
8518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8519 cat >>confdefs.h <<_ACEOF
8520 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8523 ac_header_dirent=$ac_hdr; break
8527 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8528 if test $ac_header_dirent = dirent.h; then
8529 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8531 if test "${ac_cv_search_opendir+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 ac_func_search_save_LIBS=$LIBS
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8542 /* Override any GCC internal prototype to avoid an error.
8543 Use char because int might match the return type of a GCC
8544 builtin and then its argument prototype would still apply. */
8557 for ac_lib in '' dir; do
8558 if test -z "$ac_lib"; then
8559 ac_res="none required"
8562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_link") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest$ac_exeext &&
8581 $as_test_x conftest$ac_exeext; then
8582 ac_cv_search_opendir=$ac_res
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 if test "${ac_cv_search_opendir+set}" = set; then
8596 if test "${ac_cv_search_opendir+set}" = set; then
8599 ac_cv_search_opendir=no
8602 LIBS=$ac_func_search_save_LIBS
8604 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8605 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8606 ac_res=$ac_cv_search_opendir
8607 if test "$ac_res" != no; then
8608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8613 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8615 if test "${ac_cv_search_opendir+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 ac_func_search_save_LIBS=$LIBS
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8626 /* Override any GCC internal prototype to avoid an error.
8627 Use char because int might match the return type of a GCC
8628 builtin and then its argument prototype would still apply. */
8641 for ac_lib in '' x; do
8642 if test -z "$ac_lib"; then
8643 ac_res="none required"
8646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (ac_try="$ac_link"
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_link") 2>conftest.er1
8657 grep -v '^ *+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } && {
8662 test -z "$ac_c_werror_flag" ||
8663 test ! -s conftest.err
8664 } && test -s conftest$ac_exeext &&
8665 $as_test_x conftest$ac_exeext; then
8666 ac_cv_search_opendir=$ac_res
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 if test "${ac_cv_search_opendir+set}" = set; then
8680 if test "${ac_cv_search_opendir+set}" = set; then
8683 ac_cv_search_opendir=no
8686 LIBS=$ac_func_search_save_LIBS
8688 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8689 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8690 ac_res=$ac_cv_search_opendir
8691 if test "$ac_res" != no; then
8692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 ac_res=`eval echo '${'$as_ac_Header'}'`
8784 { echo "$as_me:$LINENO: result: $ac_res" >&5
8785 echo "${ECHO_T}$ac_res" >&6; }
8787 # Is the header compilable?
8788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8790 cat >conftest.$ac_ext <<_ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 $ac_includes_default
8797 #include <$ac_header>
8799 rm -f conftest.$ac_objext
8800 if { (ac_try="$ac_compile"
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_header_compiler=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_header_compiler=no
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8826 echo "${ECHO_T}$ac_header_compiler" >&6; }
8828 # Is the header present?
8829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 #include <$ac_header>
8839 if { (ac_try="$ac_cpp conftest.$ac_ext"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } >/dev/null && {
8852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8855 ac_header_preproc=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_header_preproc=no
8863 rm -f conftest.err conftest.$ac_ext
8864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6; }
8867 # So? What about this header?
8868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8874 ac_header_preproc=yes
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8890 ## ------------------------------- ##
8891 ## Report this to root@mput.dip.jp ##
8892 ## ------------------------------- ##
8894 ) | sed "s/^/$as_me: WARNING: /" >&2
8897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 eval "$as_ac_Header=\$ac_header_preproc"
8904 ac_res=`eval echo '${'$as_ac_Header'}'`
8905 { echo "$as_me:$LINENO: result: $ac_res" >&5
8906 echo "${ECHO_T}$ac_res" >&6; }
8909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8910 cat >>confdefs.h <<_ACEOF
8911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8919 if test "x$DMC" != xyes ; then
8925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 ac_res=`eval echo '${'$as_ac_Header'}'`
8933 { echo "$as_me:$LINENO: result: $ac_res" >&5
8934 echo "${ECHO_T}$ac_res" >&6; }
8936 # Is the header compilable?
8937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 #include <$ac_header>
8948 rm -f conftest.$ac_objext
8949 if { (ac_try="$ac_compile"
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.$ac_objext; then
8965 ac_header_compiler=yes
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_header_compiler=no
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8975 echo "${ECHO_T}$ac_header_compiler" >&6; }
8977 # Is the header present?
8978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 #include <$ac_header>
8988 if { (ac_try="$ac_cpp conftest.$ac_ext"
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8996 grep -v '^ *+' conftest.er1 >conftest.err
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } >/dev/null && {
9001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9004 ac_header_preproc=yes
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_header_preproc=no
9012 rm -f conftest.err conftest.$ac_ext
9013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9014 echo "${ECHO_T}$ac_header_preproc" >&6; }
9016 # So? What about this header?
9017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9023 ac_header_preproc=yes
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9039 ## ------------------------------- ##
9040 ## Report this to root@mput.dip.jp ##
9041 ## ------------------------------- ##
9043 ) | sed "s/^/$as_me: WARNING: /" >&2
9046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 eval "$as_ac_Header=\$ac_header_preproc"
9053 ac_res=`eval echo '${'$as_ac_Header'}'`
9054 { echo "$as_me:$LINENO: result: $ac_res" >&5
9055 echo "${ECHO_T}$ac_res" >&6; }
9058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9059 cat >>confdefs.h <<_ACEOF
9060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9072 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
9074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 cat >conftest.$ac_ext <<_ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 #ifdef HAVE_X11_XLIB_H
9088 #include <X11/Xlib.h>
9092 #include <$ac_header>
9094 rm -f conftest.$ac_objext
9095 if { (ac_try="$ac_compile"
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compile") 2>conftest.er1
9103 grep -v '^ *+' conftest.er1 >conftest.err
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && {
9108 test -z "$ac_c_werror_flag" ||
9109 test ! -s conftest.err
9110 } && test -s conftest.$ac_objext; then
9111 eval "$as_ac_Header=yes"
9113 echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9116 eval "$as_ac_Header=no"
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 ac_res=`eval echo '${'$as_ac_Header'}'`
9122 { echo "$as_me:$LINENO: result: $ac_res" >&5
9123 echo "${ECHO_T}$ac_res" >&6; }
9124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9125 cat >>confdefs.h <<_ACEOF
9126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9133 if test "${ac_cv_header_string_h+set}" = set; then
9134 { echo "$as_me:$LINENO: checking for string.h" >&5
9135 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
9136 if test "${ac_cv_header_string_h+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
9140 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
9142 # Is the header compilable?
9143 { echo "$as_me:$LINENO: checking string.h usability" >&5
9144 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9154 rm -f conftest.$ac_objext
9155 if { (ac_try="$ac_compile"
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_compile") 2>conftest.er1
9163 grep -v '^ *+' conftest.er1 >conftest.err
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest.$ac_objext; then
9171 ac_header_compiler=yes
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_header_compiler=no
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9181 echo "${ECHO_T}$ac_header_compiler" >&6; }
9183 # Is the header present?
9184 { echo "$as_me:$LINENO: checking string.h presence" >&5
9185 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
9186 cat >conftest.$ac_ext <<_ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9194 if { (ac_try="$ac_cpp conftest.$ac_ext"
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev/null && {
9207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9210 ac_header_preproc=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_header_preproc=no
9218 rm -f conftest.err conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9220 echo "${ECHO_T}$ac_header_preproc" >&6; }
9222 # So? What about this header?
9223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9225 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
9226 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
9228 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
9229 ac_header_preproc=yes
9232 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
9233 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
9235 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
9237 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
9239 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
9241 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
9243 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
9245 ## ------------------------------- ##
9246 ## Report this to root@mput.dip.jp ##
9247 ## ------------------------------- ##
9249 ) | sed "s/^/$as_me: WARNING: /" >&2
9252 { echo "$as_me:$LINENO: checking for string.h" >&5
9253 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
9254 if test "${ac_cv_header_string_h+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 ac_cv_header_string_h=$ac_header_preproc
9259 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
9260 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
9263 if test $ac_cv_header_string_h = yes; then
9267 cat >>confdefs.h <<\_ACEOF
9268 #define NO_STRING_H 1
9275 # Checks for typedefs, structures, and compiler characteristics.
9276 if test "x$WATCOM_C" != xyes ; then
9277 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9278 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
9279 if test "${ac_cv_c_bigendian+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 # See if sys/param.h defines the BYTE_ORDER macro.
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289 #include <sys/types.h>
9290 #include <sys/param.h>
9295 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
9296 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
9304 rm -f conftest.$ac_objext
9305 if { (ac_try="$ac_compile"
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311 (eval "$ac_compile") 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.$ac_objext; then
9321 # It does; now see whether it defined to BIG_ENDIAN or not.
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 #include <sys/types.h>
9329 #include <sys/param.h>
9334 #if BYTE_ORDER != BIG_ENDIAN
9342 rm -f conftest.$ac_objext
9343 if { (ac_try="$ac_compile"
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_compile") 2>conftest.er1
9351 grep -v '^ *+' conftest.er1 >conftest.err
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && {
9356 test -z "$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 } && test -s conftest.$ac_objext; then
9359 ac_cv_c_bigendian=yes
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_c_bigendian=no
9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 # It does not; compile a test program.
9373 if test "$cross_compiling" = yes; then
9374 # try to guess the endianness by grepping values into an object file
9375 ac_cv_c_bigendian=unknown
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9383 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9384 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9385 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9386 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9387 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9391 _ascii (); _ebcdic ();
9396 rm -f conftest.$ac_objext
9397 if { (ac_try="$ac_compile"
9399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9400 *) ac_try_echo=$ac_try;;
9402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9403 (eval "$ac_compile") 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && {
9410 test -z "$ac_c_werror_flag" ||
9411 test ! -s conftest.err
9412 } && test -s conftest.$ac_objext; then
9413 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9414 ac_cv_c_bigendian=yes
9416 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9417 if test "$ac_cv_c_bigendian" = unknown; then
9418 ac_cv_c_bigendian=no
9420 # finding both strings is unlikely to happen, but who knows?
9421 ac_cv_c_bigendian=unknown
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 $ac_includes_default
9444 /* Are we little or big endian? From Harbison&Steele. */
9448 char c[sizeof (long int)];
9451 return u.c[sizeof (long int) - 1] == 1;
9457 rm -f conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_link") 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9468 { (case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_try") 2>&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_c_bigendian=no
9479 echo "$as_me: program exited with status $ac_status" >&5
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_c_bigendian=yes
9486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9495 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
9496 case $ac_cv_c_bigendian in
9499 cat >>confdefs.h <<\_ACEOF
9500 #define WORDS_BIGENDIAN 1
9506 { { echo "$as_me:$LINENO: error: unknown endianness
9507 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9508 echo "$as_me: error: unknown endianness
9509 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9510 { (exit 1); exit 1; }; } ;;
9515 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
9516 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
9517 if test "${ac_cv_c_char_unsigned+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9530 static int test_array [1 - 2 * !(((char) -1) < 0)];
9537 rm -f conftest.$ac_objext
9538 if { (ac_try="$ac_compile"
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_compile") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.$ac_objext; then
9554 ac_cv_c_char_unsigned=no
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_cv_c_char_unsigned=yes
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
9565 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
9566 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9567 cat >>confdefs.h <<\_ACEOF
9568 #define __CHAR_UNSIGNED__ 1
9573 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9574 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9575 if test "${ac_cv_c_const+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 cat >conftest.$ac_ext <<_ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9588 /* FIXME: Include the comments suggested by Paul. */
9590 /* Ultrix mips cc rejects this. */
9591 typedef int charset[2];
9593 /* SunOS 4.1.1 cc rejects this. */
9594 char const *const *pcpcc;
9596 /* NEC SVR4.0.2 mips cc rejects this. */
9597 struct point {int x, y;};
9598 static struct point const zero = {0,0};
9599 /* AIX XL C 1.02.0.0 rejects this.
9600 It does not let you subtract one const X* pointer from another in
9601 an arm of an if-expression whose if-part is not a constant
9603 const char *g = "string";
9604 pcpcc = &g + (g ? g-g : 0);
9605 /* HPUX 7.0 cc rejects these. */
9607 ppc = (char**) pcpcc;
9608 pcpcc = (char const *const *) ppc;
9609 { /* SCO 3.2v4 cc rejects this. */
9611 char const *s = 0 ? (char *) 0 : (char const *) 0;
9616 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9618 const int *foo = &x[0];
9621 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9622 typedef const int *iptr;
9626 { /* AIX XL C 1.02.0.0 rejects this saying
9627 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9628 struct s { int j; const int *ap[3]; };
9629 struct s *b; b->j = 5;
9631 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9635 return !cs[0] && !zero.x;
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9651 grep -v '^ *+' conftest.er1 >conftest.err
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest.$ac_objext; then
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9670 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9671 if test $ac_cv_c_const = no; then
9673 cat >>confdefs.h <<\_ACEOF
9679 { echo "$as_me:$LINENO: checking for inline" >&5
9680 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9681 if test "${ac_cv_c_inline+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 for ac_kw in inline __inline__ __inline; do
9686 cat >conftest.$ac_ext <<_ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9694 static $ac_kw foo_t static_foo () {return 0; }
9695 $ac_kw foo_t foo () {return 0; }
9699 rm -f conftest.$ac_objext
9700 if { (ac_try="$ac_compile"
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_compile") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest.$ac_objext; then
9716 ac_cv_c_inline=$ac_kw
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 test "$ac_cv_c_inline" != no && break
9729 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9730 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9733 case $ac_cv_c_inline in
9736 case $ac_cv_c_inline in
9738 *) ac_val=$ac_cv_c_inline;;
9740 cat >>confdefs.h <<_ACEOF
9742 #define inline $ac_val
9748 { echo "$as_me:$LINENO: checking for working volatile" >&5
9749 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9750 if test "${ac_cv_c_volatile+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9765 int * volatile y = (int *) 0;
9771 rm -f conftest.$ac_objext
9772 if { (ac_try="$ac_compile"
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_compile") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest.$ac_objext; then
9788 ac_cv_c_volatile=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9799 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9800 if test $ac_cv_c_volatile = no; then
9802 cat >>confdefs.h <<\_ACEOF
9808 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9809 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
9810 if test "${ac_cv_c_stringize+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9821 char *s = x(teststring);
9823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9824 $EGREP "#teststring" >/dev/null 2>&1; then
9825 ac_cv_c_stringize=no
9827 ac_cv_c_stringize=yes
9832 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9833 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
9834 if test $ac_cv_c_stringize = yes; then
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_STRINGIZE 1
9842 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9843 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9844 if test "$ac_cv_prog_cc_c89" != no; then
9845 { echo "$as_me:$LINENO: result: yes" >&5
9846 echo "${ECHO_T}yes" >&6; }
9848 cat >>confdefs.h <<\_ACEOF
9849 #define PROTOTYPES 1
9853 cat >>confdefs.h <<\_ACEOF
9854 #define __PROTOTYPES 1
9858 { echo "$as_me:$LINENO: result: no" >&5
9859 echo "${ECHO_T}no" >&6; }
9862 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9863 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9864 if test "${ac_cv_struct_tm+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <sys/types.h>
9880 int *p = &tm.tm_sec;
9886 rm -f conftest.$ac_objext
9887 if { (ac_try="$ac_compile"
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_compile") 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest.$ac_objext; then
9903 ac_cv_struct_tm=time.h
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_cv_struct_tm=sys/time.h
9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9914 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9915 if test $ac_cv_struct_tm = sys/time.h; then
9917 cat >>confdefs.h <<\_ACEOF
9918 #define TM_IN_SYS_TIME 1
9923 if test "x$DMC" != xyes ; then
9924 { echo "$as_me:$LINENO: checking for size_t" >&5
9925 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9926 if test "${ac_cv_type_size_t+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 $ac_includes_default
9936 typedef size_t ac__type_new_;
9940 if ((ac__type_new_ *) 0)
9942 if (sizeof (ac__type_new_))
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_cv_type_size_t=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_type_size_t=no
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9976 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9977 if test $ac_cv_type_size_t = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982 #define size_t unsigned int
9988 if test "x$POCC" != xyes ; then
9989 { echo "$as_me:$LINENO: checking for off_t" >&5
9990 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9991 if test "${ac_cv_type_off_t+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 typedef off_t ac__type_new_;
10005 if ((ac__type_new_ *) 0)
10007 if (sizeof (ac__type_new_))
10013 rm -f conftest.$ac_objext
10014 if { (ac_try="$ac_compile"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_compile") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest.$ac_objext; then
10030 ac_cv_type_off_t=yes
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ac_cv_type_off_t=no
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10041 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10042 if test $ac_cv_type_off_t = yes; then
10046 cat >>confdefs.h <<_ACEOF
10047 #define off_t long int
10052 { echo "$as_me:$LINENO: checking for pid_t" >&5
10053 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10054 if test "${ac_cv_type_pid_t+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 $ac_includes_default
10064 typedef pid_t ac__type_new_;
10068 if ((ac__type_new_ *) 0)
10070 if (sizeof (ac__type_new_))
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_compile") 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest.$ac_objext; then
10093 ac_cv_type_pid_t=yes
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_type_pid_t=no
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10104 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10105 if test $ac_cv_type_pid_t = yes; then
10109 cat >>confdefs.h <<_ACEOF
10117 { echo "$as_me:$LINENO: checking volatile declaration" >&5
10118 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6; }
10119 if test "${timidity_cv_type_volatile+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.$ac_objext; then
10154 timidity_cv_type_volatile=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 timidity_cv_type_volatile=no
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 { echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
10165 echo "${ECHO_T}$timidity_cv_type_volatile" >&6; }
10166 if test $timidity_cv_type_volatile = no; then
10168 cat >>confdefs.h <<\_ACEOF
10169 #define NO_VOLATILE 1
10174 { echo "$as_me:$LINENO: checking union semun declaration" >&5
10175 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6; }
10176 if test "${timidity_cv_type_union_semun+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10186 #include <sys/types.h>
10187 #include <sys/ipc.h>
10188 #include <sys/sem.h>
10198 rm -f conftest.$ac_objext
10199 if { (ac_try="$ac_compile"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_compile") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest.$ac_objext; then
10215 timidity_cv_type_union_semun=yes
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 timidity_cv_type_union_semun=no
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 { echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
10226 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6; }
10227 if test $timidity_cv_type_union_semun = yes; then
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_UNION_SEMUN 1
10235 if test "x$MSYS" = xyes ; then
10239 { echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
10240 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6; }
10241 if test -z "$ac_cv_prog_CC"; then
10244 our_gcc="$ac_cv_prog_CC"
10246 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
10248 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
10249 msnative_struct='-fnative-struct'
10253 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
10254 msnative_struct='-mms-bitfields'
10258 if test x"$msnative_struct" = x ; then
10259 { echo "$as_me:$LINENO: result: no way" >&5
10260 echo "${ECHO_T}no way" >&6; }
10261 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
10262 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
10264 CFLAGS="$CFLAGS $msnative_struct"
10265 CPPFLAGS="$CPPFLAGS $msnative_struct"
10266 { echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
10267 echo "${ECHO_T}${msnative_struct}" >&6; }
10274 if test "x$MSYS" = xyes ; then
10275 { echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
10276 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6; }
10277 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10287 #include <windows.h>
10288 #include <mmsystem.h>
10293 return WOM_OPEN != 0x3BB
10298 rm -f conftest.$ac_objext
10299 if { (ac_try="$ac_compile"
10300 case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_compile") 2>conftest.er1
10307 grep -v '^ *+' conftest.er1 >conftest.err
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } && {
10312 test -z "$ac_c_werror_flag" ||
10313 test ! -s conftest.err
10314 } && test -s conftest.$ac_objext; then
10315 timidity_cv_header_new_mmsystem=yes
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 timidity_cv_header_new_mmsystem=no
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 { echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
10326 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6; }
10327 if test $timidity_cv_header_new_mmsystem = yes; then
10329 cat >>confdefs.h <<\_ACEOF
10330 #define HAVE_NEW_MMSYSTEM 1
10336 # Checks for library functions.
10337 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10338 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10339 if test "${ac_cv_lib_error_at_line+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 cat >conftest.$ac_ext <<_ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10352 error_at_line (0, 0, "", 0, "an error occurred");
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_link") 2>conftest.er1
10366 grep -v '^ *+' conftest.er1 >conftest.err
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest$ac_exeext &&
10374 $as_test_x conftest$ac_exeext; then
10375 ac_cv_lib_error_at_line=yes
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_lib_error_at_line=no
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384 conftest$ac_exeext conftest.$ac_ext
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10387 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10388 if test $ac_cv_lib_error_at_line = no; then
10389 case " $LIBOBJS " in
10390 *" error.$ac_objext "* ) ;;
10391 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10397 if test "x$DMC" != xyes ; then
10399 for ac_header in vfork.h
10401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 ac_res=`eval echo '${'$as_ac_Header'}'`
10409 { echo "$as_me:$LINENO: result: $ac_res" >&5
10410 echo "${ECHO_T}$ac_res" >&6; }
10412 # Is the header compilable?
10413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10415 cat >conftest.$ac_ext <<_ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 $ac_includes_default
10422 #include <$ac_header>
10424 rm -f conftest.$ac_objext
10425 if { (ac_try="$ac_compile"
10426 case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_compile") 2>conftest.er1
10433 grep -v '^ *+' conftest.er1 >conftest.err
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && {
10438 test -z "$ac_c_werror_flag" ||
10439 test ! -s conftest.err
10440 } && test -s conftest.$ac_objext; then
10441 ac_header_compiler=yes
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_header_compiler=no
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10451 echo "${ECHO_T}$ac_header_compiler" >&6; }
10453 # Is the header present?
10454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10456 cat >conftest.$ac_ext <<_ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10462 #include <$ac_header>
10464 if { (ac_try="$ac_cpp conftest.$ac_ext"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10472 grep -v '^ *+' conftest.er1 >conftest.err
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } >/dev/null && {
10477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10480 ac_header_preproc=yes
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10485 ac_header_preproc=no
10488 rm -f conftest.err conftest.$ac_ext
10489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490 echo "${ECHO_T}$ac_header_preproc" >&6; }
10492 # So? What about this header?
10493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499 ac_header_preproc=yes
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10515 ## ------------------------------- ##
10516 ## Report this to root@mput.dip.jp ##
10517 ## ------------------------------- ##
10519 ) | sed "s/^/$as_me: WARNING: /" >&2
10522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 eval "$as_ac_Header=\$ac_header_preproc"
10529 ac_res=`eval echo '${'$as_ac_Header'}'`
10530 { echo "$as_me:$LINENO: result: $ac_res" >&5
10531 echo "${ECHO_T}$ac_res" >&6; }
10534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10535 cat >>confdefs.h <<_ACEOF
10536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10545 for ac_func in fork vfork
10547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10561 #define $ac_func innocuous_$ac_func
10563 /* System header to define __stub macros and hopefully few prototypes,
10564 which can conflict with char $ac_func (); below.
10565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10566 <limits.h> exists even on freestanding compilers. */
10569 # include <limits.h>
10571 # include <assert.h>
10576 /* Override any GCC internal prototype to avoid an error.
10577 Use char because int might match the return type of a GCC
10578 builtin and then its argument prototype would still apply. */
10583 /* The GNU C library defines this for functions which it implements
10584 to always fail with ENOSYS. Some functions are actually named
10585 something starting with __ and the normal name is an alias. */
10586 #if defined __stub_$ac_func || defined __stub___$ac_func
10593 return $ac_func ();
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (ac_try="$ac_link"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_link") 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest$ac_exeext &&
10615 $as_test_x conftest$ac_exeext; then
10616 eval "$as_ac_var=yes"
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 eval "$as_ac_var=no"
10624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625 conftest$ac_exeext conftest.$ac_ext
10627 ac_res=`eval echo '${'$as_ac_var'}'`
10628 { echo "$as_me:$LINENO: result: $ac_res" >&5
10629 echo "${ECHO_T}$ac_res" >&6; }
10630 if test `eval echo '${'$as_ac_var'}'` = yes; then
10631 cat >>confdefs.h <<_ACEOF
10632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 if test "x$ac_cv_func_fork" = xyes; then
10639 { echo "$as_me:$LINENO: checking for working fork" >&5
10640 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10641 if test "${ac_cv_func_fork_works+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 if test "$cross_compiling" = yes; then
10645 ac_cv_func_fork_works=cross
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 $ac_includes_default
10658 /* By Ruediger Kuhlmann. */
10659 return fork () < 0;
10665 rm -f conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_link") 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10676 { (case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_try") 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_func_fork_works=yes
10687 echo "$as_me: program exited with status $ac_status" >&5
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ( exit $ac_status )
10692 ac_cv_func_fork_works=no
10694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10699 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10700 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10703 ac_cv_func_fork_works=$ac_cv_func_fork
10705 if test "x$ac_cv_func_fork_works" = xcross; then
10707 *-*-amigaos* | *-*-msdosdjgpp*)
10708 # Override, as these systems have only a dummy fork() stub
10709 ac_cv_func_fork_works=no
10712 ac_cv_func_fork_works=yes
10715 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10716 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10718 ac_cv_func_vfork_works=$ac_cv_func_vfork
10719 if test "x$ac_cv_func_vfork" = xyes; then
10720 { echo "$as_me:$LINENO: checking for working vfork" >&5
10721 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10722 if test "${ac_cv_func_vfork_works+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 if test "$cross_compiling" = yes; then
10726 ac_cv_func_vfork_works=cross
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 /* Thanks to Paul Eggert for this test. */
10735 $ac_includes_default
10736 #include <sys/wait.h>
10737 #ifdef HAVE_VFORK_H
10738 # include <vfork.h>
10740 /* On some sparc systems, changes by the child to local and incoming
10741 argument registers are propagated back to the parent. The compiler
10742 is told about this with #include <vfork.h>, but some compilers
10743 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10744 static variable whose address is put into a register that is
10745 clobbered by the vfork. */
10748 sparc_address_test (int arg)
10750 sparc_address_test (arg) int arg;
10753 static pid_t child;
10771 pid_t parent = getpid ();
10774 sparc_address_test (0);
10779 /* Here is another test for sparc vfork register problems. This
10780 test uses lots of local variables, at least as many local
10781 variables as main has allocated so far including compiler
10782 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10783 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10784 reuse the register of parent for one of the local variables,
10785 since it will think that parent can't possibly be used any more
10786 in this routine. Assigning to the local variable will thus
10787 munge parent in the parent process. */
10789 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10790 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10791 /* Convince the compiler that p..p7 are live; otherwise, it might
10792 use the same hardware register for all 8 local variables. */
10793 if (p != p1 || p != p2 || p != p3 || p != p4
10794 || p != p5 || p != p6 || p != p7)
10797 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10798 from child file descriptors. If the child closes a descriptor
10799 before it execs or exits, this munges the parent's descriptor
10800 as well. Test for this by closing stdout in the child. */
10801 _exit(close(fileno(stdout)) != 0);
10806 while (wait(&status) != child)
10809 /* Was there some problem with vforking? */
10812 /* Did the child fail? (This shouldn't happen.) */
10815 /* Did the vfork/compiler bug occur? */
10816 || parent != getpid()
10818 /* Did the file descriptor bug occur? */
10819 || fstat(fileno(stdout), &st) != 0
10824 rm -f conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10835 { (case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_try") 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_cv_func_vfork_works=yes
10846 echo "$as_me: program exited with status $ac_status" >&5
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10850 ( exit $ac_status )
10851 ac_cv_func_vfork_works=no
10853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10858 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10859 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10862 if test "x$ac_cv_func_fork_works" = xcross; then
10863 ac_cv_func_vfork_works=$ac_cv_func_vfork
10864 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10865 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10868 if test "x$ac_cv_func_vfork_works" = xyes; then
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_WORKING_VFORK 1
10876 cat >>confdefs.h <<\_ACEOF
10881 if test "x$ac_cv_func_fork_works" = xyes; then
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_WORKING_FORK 1
10890 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10891 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10892 if test "${ac_cv_func_memcmp_working+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 if test "$cross_compiling" = yes; then
10896 ac_cv_func_memcmp_working=no
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 $ac_includes_default
10909 /* Some versions of memcmp are not 8-bit clean. */
10910 char c0 = '\100', c1 = '\200', c2 = '\201';
10911 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10914 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10915 or more and with at least one buffer not starting on a 4-byte boundary.
10916 William Lewis provided this test program. */
10921 for (i = 0; i < 4; i++)
10925 strcpy (a, "--------01111111");
10926 strcpy (b, "--------10000000");
10927 if (memcmp (a, b, 16) >= 0)
10937 rm -f conftest$ac_exeext
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_link") 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_cv_func_memcmp_working=yes
10959 echo "$as_me: program exited with status $ac_status" >&5
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ( exit $ac_status )
10964 ac_cv_func_memcmp_working=no
10966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10971 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10972 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10973 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10974 *" memcmp.$ac_objext "* ) ;;
10975 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10980 if test "x$DMC" != xyes ; then
10983 for ac_header in stdlib.h unistd.h
10985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 ac_res=`eval echo '${'$as_ac_Header'}'`
10993 { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10996 # Is the header compilable?
10997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10999 cat >conftest.$ac_ext <<_ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11005 $ac_includes_default
11006 #include <$ac_header>
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest.$ac_objext; then
11025 ac_header_compiler=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_header_compiler=no
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11035 echo "${ECHO_T}$ac_header_compiler" >&6; }
11037 # Is the header present?
11038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #include <$ac_header>
11048 if { (ac_try="$ac_cpp conftest.$ac_ext"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null && {
11061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11062 test ! -s conftest.err
11064 ac_header_preproc=yes
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_header_preproc=no
11072 rm -f conftest.err conftest.$ac_ext
11073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6; }
11076 # So? What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083 ac_header_preproc=yes
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099 ## ------------------------------- ##
11100 ## Report this to root@mput.dip.jp ##
11101 ## ------------------------------- ##
11103 ) | sed "s/^/$as_me: WARNING: /" >&2
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 eval "$as_ac_Header=\$ac_header_preproc"
11113 ac_res=`eval echo '${'$as_ac_Header'}'`
11114 { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 for ac_func in getpagesize
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11144 #define $ac_func innocuous_$ac_func
11146 /* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char $ac_func (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11152 # include <limits.h>
11154 # include <assert.h>
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11166 /* The GNU C library defines this for functions which it implements
11167 to always fail with ENOSYS. Some functions are actually named
11168 something starting with __ and the normal name is an alias. */
11169 #if defined __stub_$ac_func || defined __stub___$ac_func
11176 return $ac_func ();
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (ac_try="$ac_link"
11183 case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_link") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest$ac_exeext &&
11198 $as_test_x conftest$ac_exeext; then
11199 eval "$as_ac_var=yes"
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 eval "$as_ac_var=no"
11207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11208 conftest$ac_exeext conftest.$ac_ext
11210 ac_res=`eval echo '${'$as_ac_var'}'`
11211 { echo "$as_me:$LINENO: result: $ac_res" >&5
11212 echo "${ECHO_T}$ac_res" >&6; }
11213 if test `eval echo '${'$as_ac_var'}'` = yes; then
11214 cat >>confdefs.h <<_ACEOF
11215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11221 { echo "$as_me:$LINENO: checking for working mmap" >&5
11222 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11223 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 if test "$cross_compiling" = yes; then
11227 ac_cv_func_mmap_fixed_mapped=no
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 /* malloc might have been renamed as rpl_malloc. */
11239 /* Thanks to Mike Haertel and Jim Avera for this test.
11240 Here is a matrix of mmap possibilities:
11241 mmap private not fixed
11242 mmap private fixed at somewhere currently unmapped
11243 mmap private fixed at somewhere already mapped
11244 mmap shared not fixed
11245 mmap shared fixed at somewhere currently unmapped
11246 mmap shared fixed at somewhere already mapped
11247 For private mappings, we should verify that changes cannot be read()
11248 back from the file, nor mmap's back from the file at a different
11249 address. (There have been systems where private was not correctly
11250 implemented like the infamous i386 svr4.0, and systems where the
11251 VM page cache was not coherent with the file system buffer cache
11252 like early versions of FreeBSD and possibly contemporary NetBSD.)
11253 For shared mappings, we should conversely verify that changes get
11254 propagated back to all the places they're supposed to be.
11256 Grep wants private fixed already mapped.
11257 The main things grep needs to know about mmap are:
11258 * does it exist and is it safe to write into the mmap'd area
11259 * how to use it (BSD variants) */
11262 #include <sys/mman.h>
11264 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11268 /* This mess was copied from the GNU getpagesize.h. */
11269 #ifndef HAVE_GETPAGESIZE
11270 /* Assume that all systems that can run configure have sys/param.h. */
11271 # ifndef HAVE_SYS_PARAM_H
11272 # define HAVE_SYS_PARAM_H 1
11275 # ifdef _SC_PAGESIZE
11276 # define getpagesize() sysconf(_SC_PAGESIZE)
11277 # else /* no _SC_PAGESIZE */
11278 # ifdef HAVE_SYS_PARAM_H
11279 # include <sys/param.h>
11280 # ifdef EXEC_PAGESIZE
11281 # define getpagesize() EXEC_PAGESIZE
11282 # else /* no EXEC_PAGESIZE */
11284 # define getpagesize() NBPG * CLSIZE
11287 # endif /* no CLSIZE */
11288 # else /* no NBPG */
11290 # define getpagesize() NBPC
11291 # else /* no NBPC */
11293 # define getpagesize() PAGESIZE
11294 # endif /* PAGESIZE */
11295 # endif /* no NBPC */
11296 # endif /* no NBPG */
11297 # endif /* no EXEC_PAGESIZE */
11298 # else /* no HAVE_SYS_PARAM_H */
11299 # define getpagesize() 8192 /* punt totally */
11300 # endif /* no HAVE_SYS_PARAM_H */
11301 # endif /* no _SC_PAGESIZE */
11303 #endif /* no HAVE_GETPAGESIZE */
11308 char *data, *data2, *data3;
11312 pagesize = getpagesize ();
11314 /* First, make a file with some known garbage in it. */
11315 data = (char *) malloc (pagesize);
11318 for (i = 0; i < pagesize; ++i)
11319 *(data + i) = rand ();
11321 fd = creat ("conftest.mmap", 0600);
11324 if (write (fd, data, pagesize) != pagesize)
11328 /* Next, try to mmap the file at a fixed address which already has
11329 something else allocated at it. If we can, also make sure that
11330 we see the same garbage. */
11331 fd = open ("conftest.mmap", O_RDWR);
11334 data2 = (char *) malloc (2 * pagesize);
11337 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11338 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11339 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11341 for (i = 0; i < pagesize; ++i)
11342 if (*(data + i) != *(data2 + i))
11345 /* Finally, make sure that changes to the mapped area do not
11346 percolate back to the file as seen by read(). (This is a bug on
11347 some variants of i386 svr4.0.) */
11348 for (i = 0; i < pagesize; ++i)
11349 *(data2 + i) = *(data2 + i) + 1;
11350 data3 = (char *) malloc (pagesize);
11353 if (read (fd, data3, pagesize) != pagesize)
11355 for (i = 0; i < pagesize; ++i)
11356 if (*(data + i) != *(data3 + i))
11362 rm -f conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11373 { (case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_try") 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_cv_func_mmap_fixed_mapped=yes
11384 echo "$as_me: program exited with status $ac_status" >&5
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ( exit $ac_status )
11389 ac_cv_func_mmap_fixed_mapped=no
11391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11396 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11397 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11398 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11400 cat >>confdefs.h <<\_ACEOF
11401 #define HAVE_MMAP 1
11405 rm -f conftest.mmap
11408 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11409 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
11410 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 ac_cv_func_setvbuf_reversed=no
11414 cat >conftest.$ac_ext <<_ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11422 int (setvbuf) (FILE *, int, char *, size_t);
11427 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (ac_try="$ac_link"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_link") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } && {
11446 test -z "$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11448 } && test -s conftest$ac_exeext &&
11449 $as_test_x conftest$ac_exeext; then
11450 cat >conftest.$ac_ext <<_ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11458 int (setvbuf) (FILE *, int, char *, size_t);
11463 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (ac_try="$ac_link"
11470 case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_link") 2>conftest.er1
11477 grep -v '^ *+' conftest.er1 >conftest.err
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } && {
11482 test -z "$ac_c_werror_flag" ||
11483 test ! -s conftest.err
11484 } && test -s conftest$ac_exeext &&
11485 $as_test_x conftest$ac_exeext; then
11486 # It compiles and links either way, so it must not be declared
11487 # with a prototype and most likely this is a K&R C compiler.
11489 if test "$cross_compiling" = yes; then
11490 : # Assume setvbuf is not reversed when cross-compiling.
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 $ac_includes_default
11502 /* This call has the arguments reversed.
11503 A reversed system may check and see that the address of buf
11504 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11506 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11509 return 0; /* Non-reversed systems SEGV here. */
11514 rm -f conftest$ac_exeext
11515 if { (ac_try="$ac_link"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_link") 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_func_setvbuf_reversed=yes
11536 echo "$as_me: program exited with status $ac_status" >&5
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11545 ac_cv_func_setvbuf_reversed=yes
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11554 conftest$ac_exeext conftest.$ac_ext
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563 conftest$ac_exeext conftest.$ac_ext
11565 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11566 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
11567 if test $ac_cv_func_setvbuf_reversed = yes; then
11569 cat >>confdefs.h <<\_ACEOF
11570 #define SETVBUF_REVERSED 1
11575 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11577 if test "${ac_cv_type_signal+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 #include <sys/types.h>
11587 #include <signal.h>
11592 return *(signal (0, 0)) (0) == 1;
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && {
11611 test -z "$ac_c_werror_flag" ||
11612 test ! -s conftest.err
11613 } && test -s conftest.$ac_objext; then
11614 ac_cv_type_signal=int
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 ac_cv_type_signal=void
11622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11625 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11627 cat >>confdefs.h <<_ACEOF
11628 #define RETSIGTYPE $ac_cv_type_signal
11632 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
11634 for ac_func in vprintf
11636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11650 #define $ac_func innocuous_$ac_func
11652 /* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char $ac_func (); below.
11654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655 <limits.h> exists even on freestanding compilers. */
11658 # include <limits.h>
11660 # include <assert.h>
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11672 /* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675 #if defined __stub_$ac_func || defined __stub___$ac_func
11682 return $ac_func ();
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_link") 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && {
11701 test -z "$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11703 } && test -s conftest$ac_exeext &&
11704 $as_test_x conftest$ac_exeext; then
11705 eval "$as_ac_var=yes"
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 eval "$as_ac_var=no"
11713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11714 conftest$ac_exeext conftest.$ac_ext
11716 ac_res=`eval echo '${'$as_ac_var'}'`
11717 { echo "$as_me:$LINENO: result: $ac_res" >&5
11718 echo "${ECHO_T}$ac_res" >&6; }
11719 if test `eval echo '${'$as_ac_var'}'` = yes; then
11720 cat >>confdefs.h <<_ACEOF
11721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11724 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11725 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11726 if test "${ac_cv_func__doprnt+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11737 #define _doprnt innocuous__doprnt
11739 /* System header to define __stub macros and hopefully few prototypes,
11740 which can conflict with char _doprnt (); below.
11741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742 <limits.h> exists even on freestanding compilers. */
11745 # include <limits.h>
11747 # include <assert.h>
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined __stub__doprnt || defined __stub____doprnt
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (ac_try="$ac_link"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_link") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest$ac_exeext &&
11791 $as_test_x conftest$ac_exeext; then
11792 ac_cv_func__doprnt=yes
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_cv_func__doprnt=no
11800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11801 conftest$ac_exeext conftest.$ac_ext
11803 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11804 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11805 if test $ac_cv_func__doprnt = yes; then
11807 cat >>confdefs.h <<\_ACEOF
11808 #define HAVE_DOPRNT 1
11894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908 #define $ac_func innocuous_$ac_func
11910 /* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11916 # include <limits.h>
11918 # include <assert.h>
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11930 /* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11940 return $ac_func ();
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && {
11959 test -z "$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11961 } && test -s conftest$ac_exeext &&
11962 $as_test_x conftest$ac_exeext; then
11963 eval "$as_ac_var=yes"
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 eval "$as_ac_var=no"
11971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972 conftest$ac_exeext conftest.$ac_ext
11974 ac_res=`eval echo '${'$as_ac_var'}'`
11975 { echo "$as_me:$LINENO: result: $ac_res" >&5
11976 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 if test "x$VCPP" = xyes; then
11986 cat >>confdefs.h <<\_ACEOF
11987 #define RETSIGTYPE int
11990 cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_GETCWD 1
11995 if test "x$POCC" = xyes; then
11996 cat >>confdefs.h <<\_ACEOF
11997 #define HAVE_GETCWD 1
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_GETHOSTBYNAME 1
12004 cat >>confdefs.h <<\_ACEOF
12005 #define HAVE_POPEN 1
12008 cat >>confdefs.h <<\_ACEOF
12009 #define HAVE_SELECT 1
12012 cat >>confdefs.h <<\_ACEOF
12013 #define HAVE_SNPRINTF 1
12016 cat >>confdefs.h <<\_ACEOF
12017 #define HAVE_STRDUP 1
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_STRERROR 1
12024 cat >>confdefs.h <<\_ACEOF
12025 #define HAVE_STRCASECMP 1
12028 cat >>confdefs.h <<\_ACEOF
12029 #define HAVE_STRSTR 1
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_SOCKET 1
12036 cat >>confdefs.h <<\_ACEOF
12037 #define HAVE_VSNPRINTF 1
12040 cat >>confdefs.h <<\_ACEOF
12041 #define HAVE_GETOPT 1
12045 cat >>confdefs.h <<\_ACEOF
12046 #define TIMID_VERSION $(PACKAGE_VERSION)
12050 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
12051 cat >>confdefs.h <<\_ACEOF
12052 #define HAVE_GETHOSTBYNAME 1
12055 cat >>confdefs.h <<\_ACEOF
12056 #define HAVE_POPEN 1
12060 cat >>confdefs.h <<\_ACEOF
12061 #define popen _popen
12065 cat >>confdefs.h <<\_ACEOF
12066 #define pclose _pclose
12069 cat >>confdefs.h <<\_ACEOF
12070 #define HAVE_SELECT 1
12073 cat >>confdefs.h <<\_ACEOF
12074 #define HAVE_SNPRINTF 1
12077 cat >>confdefs.h <<\_ACEOF
12078 #define HAVE_STRDUP 1
12081 cat >>confdefs.h <<\_ACEOF
12082 #define HAVE_STRERROR 1
12085 cat >>confdefs.h <<\_ACEOF
12086 #define HAVE_STRNCASECMP 1
12089 cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_STRSTR 1
12094 cat >>confdefs.h <<\_ACEOF
12095 #define snprintf _snprintf
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_SOCKET 1
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_VSNPRINTF 1
12107 cat >>confdefs.h <<\_ACEOF
12108 #define TIMID_VERSION $(PACKAGE_VERSION)
12113 { echo "$as_me:$LINENO: checking for getopt_long" >&5
12114 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
12115 if test "${ac_cv_func_getopt_long+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
12125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12126 #define getopt_long innocuous_getopt_long
12128 /* System header to define __stub macros and hopefully few prototypes,
12129 which can conflict with char getopt_long (); below.
12130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 <limits.h> exists even on freestanding compilers. */
12134 # include <limits.h>
12136 # include <assert.h>
12141 /* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
12147 char getopt_long ();
12148 /* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151 #if defined __stub_getopt_long || defined __stub___getopt_long
12158 return getopt_long ();
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_link") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest$ac_exeext &&
12180 $as_test_x conftest$ac_exeext; then
12181 ac_cv_func_getopt_long=yes
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_cv_func_getopt_long=no
12189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12190 conftest$ac_exeext conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
12193 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
12194 if test $ac_cv_func_getopt_long = yes; then
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_GETOPT_LONG 1
12200 tm_cv_needgetopt="no"
12202 tm_cv_needgetopt="yes"
12207 if test "x$tm_cv_needgetopt" = "xyes"; then
12209 NEEDGETOPT_FALSE='#'
12211 NEEDGETOPT_TRUE='#'
12216 { echo "$as_me:$LINENO: checking for open_memstream" >&5
12217 echo $ECHO_N "checking for open_memstream... $ECHO_C" >&6; }
12218 if test "${ac_cv_func_open_memstream+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 /* Define open_memstream to an innocuous variant, in case <limits.h> declares open_memstream.
12228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12229 #define open_memstream innocuous_open_memstream
12231 /* System header to define __stub macros and hopefully few prototypes,
12232 which can conflict with char open_memstream (); below.
12233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234 <limits.h> exists even on freestanding compilers. */
12237 # include <limits.h>
12239 # include <assert.h>
12242 #undef open_memstream
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12250 char open_memstream ();
12251 /* The GNU C library defines this for functions which it implements
12252 to always fail with ENOSYS. Some functions are actually named
12253 something starting with __ and the normal name is an alias. */
12254 #if defined __stub_open_memstream || defined __stub___open_memstream
12261 return open_memstream ();
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1 >conftest.err
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest$ac_exeext &&
12283 $as_test_x conftest$ac_exeext; then
12284 ac_cv_func_open_memstream=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_func_open_memstream=no
12292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293 conftest$ac_exeext conftest.$ac_ext
12295 { echo "$as_me:$LINENO: result: $ac_cv_func_open_memstream" >&5
12296 echo "${ECHO_T}$ac_cv_func_open_memstream" >&6; }
12297 if test $ac_cv_func_open_memstream = yes; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_OPEN_MEMSTREAM 1
12309 { echo "$as_me:$LINENO: checking for an implementation of va_copy()" >&5
12310 echo $ECHO_N "checking for an implementation of va_copy()... $ECHO_C" >&6; }
12311 if test "${lib_cv_va_copy+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 if test "$cross_compiling" = yes; then
12316 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12317 See \`config.log' for more details." >&5
12318 echo "$as_me: error: cannot run test program while cross compiling
12319 See \`config.log' for more details." >&2;}
12320 { (exit 1); exit 1; }; }
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #include <stdarg.h>
12330 void f (int i, ...) {
12331 va_list args1, args2;
12332 va_start (args1, i);
12333 va_copy (args2, args1);
12334 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
12336 va_end (args1); va_end (args2);
12343 rm -f conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_link") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12365 echo "$as_me: program exited with status $ac_status" >&5
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ( exit $ac_status )
12372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12378 { echo "$as_me:$LINENO: result: $lib_cv_va_copy" >&5
12379 echo "${ECHO_T}$lib_cv_va_copy" >&6; }
12381 { echo "$as_me:$LINENO: checking for an implementation of __va_copy()" >&5
12382 echo $ECHO_N "checking for an implementation of __va_copy()... $ECHO_C" >&6; }
12383 if test "${lib_cv___va_copy+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 if test "$cross_compiling" = yes; then
12388 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12389 See \`config.log' for more details." >&5
12390 echo "$as_me: error: cannot run test program while cross compiling
12391 See \`config.log' for more details." >&2;}
12392 { (exit 1); exit 1; }; }
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12401 #include <stdarg.h>
12402 void f (int i, ...) {
12403 va_list args1, args2;
12404 va_start (args1, i);
12405 __va_copy (args2, args1);
12406 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
12408 va_end (args1); va_end (args2);
12415 rm -f conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 lib_cv___va_copy=yes
12437 echo "$as_me: program exited with status $ac_status" >&5
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ( exit $ac_status )
12442 lib_cv___va_copy=no
12444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $lib_cv___va_copy" >&5
12451 echo "${ECHO_T}$lib_cv___va_copy" >&6; }
12453 if test "x$lib_cv_va_copy" = "xyes"; then
12454 va_copy_func=va_copy
12455 else if test "x$lib_cv___va_copy" = "xyes"; then
12456 va_copy_func=__va_copy
12460 if test -n "$va_copy_func"; then
12462 cat >>confdefs.h <<_ACEOF
12463 #define VA_COPY $va_copy_func
12468 { echo "$as_me:$LINENO: checking whether va_lists can be copied by value" >&5
12469 echo $ECHO_N "checking whether va_lists can be copied by value... $ECHO_C" >&6; }
12470 if test "${lib_cv_va_val_copy+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 if test "$cross_compiling" = yes; then
12475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12476 See \`config.log' for more details." >&5
12477 echo "$as_me: error: cannot run test program while cross compiling
12478 See \`config.log' for more details." >&2;}
12479 { (exit 1); exit 1; }; }
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12488 #include <stdarg.h>
12489 void f (int i, ...) {
12490 va_list args1, args2;
12491 va_start (args1, i);
12493 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
12495 va_end (args1); va_end (args2);
12502 rm -f conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513 { (case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_try") 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 lib_cv_va_val_copy=yes
12524 echo "$as_me: program exited with status $ac_status" >&5
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 ( exit $ac_status )
12529 lib_cv_va_val_copy=no
12531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12537 { echo "$as_me:$LINENO: result: $lib_cv_va_val_copy" >&5
12538 echo "${ECHO_T}$lib_cv_va_val_copy" >&6; }
12540 if test "x$lib_cv_va_val_copy" = "xno"; then
12542 cat >>confdefs.h <<\_ACEOF
12543 #define VA_COPY_AS_ARRAY 1
12548 # Checks on cygnus and MSYS
12549 if test "x$MSYS" = xyes ; then
12550 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
12552 { echo "$as_me:$LINENO: checking for opendir" >&5
12553 echo $ECHO_N "checking for opendir... $ECHO_C" >&6; }
12554 if test "${ac_cv_func_opendir+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
12564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12565 #define opendir innocuous_opendir
12567 /* System header to define __stub macros and hopefully few prototypes,
12568 which can conflict with char opendir (); below.
12569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12570 <limits.h> exists even on freestanding compilers. */
12573 # include <limits.h>
12575 # include <assert.h>
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12587 /* The GNU C library defines this for functions which it implements
12588 to always fail with ENOSYS. Some functions are actually named
12589 something starting with __ and the normal name is an alias. */
12590 #if defined __stub_opendir || defined __stub___opendir
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_link") 2>conftest.er1
12611 grep -v '^ *+' conftest.er1 >conftest.err
12613 cat conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } && {
12616 test -z "$ac_c_werror_flag" ||
12617 test ! -s conftest.err
12618 } && test -s conftest$ac_exeext &&
12619 $as_test_x conftest$ac_exeext; then
12620 ac_cv_func_opendir=yes
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ac_cv_func_opendir=no
12628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12629 conftest$ac_exeext conftest.$ac_ext
12631 { echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
12632 echo "${ECHO_T}$ac_cv_func_opendir" >&6; }
12633 if test $ac_cv_func_opendir = yes; then
12636 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
12641 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
12645 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
12646 EXTRALIBS="$EXTRALIBS wsock32.lib"
12647 EXTRADEFS="$EXTRADEFS -DWINSOCK"
12649 { echo "$as_me:$LINENO: checking for socket" >&5
12650 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
12651 if test "${ac_cv_func_socket+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 cat >conftest.$ac_ext <<_ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
12661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12662 #define socket innocuous_socket
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char socket (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12670 # include <limits.h>
12672 # include <assert.h>
12677 /* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12684 /* The GNU C library defines this for functions which it implements
12685 to always fail with ENOSYS. Some functions are actually named
12686 something starting with __ and the normal name is an alias. */
12687 #if defined __stub_socket || defined __stub___socket
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (ac_try="$ac_link"
12701 case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_link") 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } && {
12713 test -z "$ac_c_werror_flag" ||
12714 test ! -s conftest.err
12715 } && test -s conftest$ac_exeext &&
12716 $as_test_x conftest$ac_exeext; then
12717 ac_cv_func_socket=yes
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_cv_func_socket=no
12725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12726 conftest$ac_exeext conftest.$ac_ext
12728 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
12729 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
12730 if test $ac_cv_func_socket = yes; then
12733 { echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
12734 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6; }
12735 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
12736 if { as_var=wapi_cv_lib_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 ac_save_LIBS="$LIBS"
12740 LIBS="-lwsock32 $LIBS"
12741 cat >conftest.$ac_ext <<_ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747 #include <windows.h>
12748 #include <winsock.h>
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest$ac_exeext &&
12775 $as_test_x conftest$ac_exeext; then
12776 eval "wapi_cv_lib_$ac_lib_var=yes"
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 eval "wapi_cv_lib_$ac_lib_var=no"
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS="$ac_save_LIBS"
12789 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
12790 { echo "$as_me:$LINENO: result: yes" >&5
12791 echo "${ECHO_T}yes" >&6; }
12792 EXTRALIBS="$EXTRALIBS -lwsock32"
12793 EXTRADEFS="$EXTRADEFS -DWINSOCK"
12796 { echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6; }
12806 # Checks on extra paths
12809 # Check whether --with-tcl-includes was given.
12810 if test "${with_tcl_includes+set}" = set; then
12811 withval=$with_tcl_includes; if test ! -d $withval; then
12812 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12813 echo "$as_me: WARNING: $withval is not found." >&2;}
12815 tcl_include_dir="-I$withval"
12820 # Check whether --with-tcl-libs was given.
12821 if test "${with_tcl_libs+set}" = set; then
12822 withval=$with_tcl_libs; if test ! -d $withval; then
12823 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12824 echo "$as_me: WARNING: $withval is not found." >&2;}
12826 tcl_libdir="-L$withval"
12830 # Check whether --with-tk-includes was given.
12831 if test "${with_tk_includes+set}" = set; then
12832 withval=$with_tk_includes; if test ! -d $withval; then
12833 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12834 echo "$as_me: WARNING: $withval is not found." >&2;}
12836 tk_includes="-I$withval"
12840 # Check whether --with-tk-libs was given.
12841 if test "${with_tk_libs+set}" = set; then
12842 withval=$with_tk_libs; if test ! -d $withval; then
12843 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12844 echo "$as_me: WARNING: $withval is not found." >&2;}
12846 tk_libdir="-L$withval"
12851 # Check whether --with-offix-includes was given.
12852 if test "${with_offix_includes+set}" = set; then
12853 withval=$with_offix_includes; if test ! -d $withval; then
12854 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12855 echo "$as_me: WARNING: $withval is not found." >&2;}
12857 offix_include_dir="-I$withval"
12861 # Check whether --with-offix-libs was given.
12862 if test "${with_offix_libs+set}" = set; then
12863 withval=$with_offix_libs; if test ! -d $withval; then
12864 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12865 echo "$as_me: WARNING: $withval is not found." >&2;}
12867 offix_lib_dir="-L$withval"
12876 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio npipe jack ao'
12879 # Check whether --with-nas-library was given.
12880 if test "${with_nas_library+set}" = set; then
12881 withval=$with_nas_library;
12885 # Check whether --with-nas-includes was given.
12886 if test "${with_nas_includes+set}" = set; then
12887 withval=$with_nas_includes;
12892 # Check whether --enable-audio was given.
12893 if test "${enable_audio+set}" = set; then
12894 enableval=$enable_audio; enable_audio=$enableval
12902 test "x$enable_audio" = xyes && enable_audio=default
12904 if test "x$enable_audio" != xno; then
12905 for i in `echo $enable_audio | sed 's/,/ /g'`; do
12906 eval "au_enable_$i=yes"
12912 # Check whether --with-default-output was given.
12913 if test "${with_default_output+set}" = set; then
12914 withval=$with_default_output; if test "$enable_audio" != no; then
12915 DEFAULT_PLAYMODE=$withval
12916 eval "au_enable_$DEFAULT_PLAYMODE=yes"
12918 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
12919 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
12925 if test "x$au_enable_default" = xyes; then
12927 *-*-linux*|*-*-freebsd*)
12931 au_enable_sb_dsp=yes
12933 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
12964 au_enable_darwin=yes
12967 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
12968 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
12974 # Each audio mode's configurations
12975 { echo "$as_me:$LINENO: checking enable_audio=oss" >&5
12976 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6; }
12977 if test "x$au_enable_oss" = xyes; then
12978 EXTRADEFS="$EXTRADEFS -DAU_OSS"
12979 SYSEXTRAS="$SYSEXTRAS oss_a.c"
12980 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
12981 { echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
12982 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6; }
12986 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12990 if test "x$ac_cv_header_soundcard_h" = xyes; then
12991 { echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
12992 echo "${ECHO_T}yes - <soundcard.h>" >&6; }
12994 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
12995 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
13001 { echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
13002 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6; }
13003 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 ac_check_lib_save_LIBS=$LIBS
13007 LIBS="-lossaudio $LIBS"
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13015 /* Override any GCC internal prototype to avoid an error.
13016 Use char because int might match the return type of a GCC
13017 builtin and then its argument prototype would still apply. */
13030 rm -f conftest.$ac_objext conftest$ac_exeext
13031 if { (ac_try="$ac_link"
13032 case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_link") 2>conftest.er1
13039 grep -v '^ *+' conftest.er1 >conftest.err
13041 cat conftest.err >&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && {
13044 test -z "$ac_c_werror_flag" ||
13045 test ! -s conftest.err
13046 } && test -s conftest$ac_exeext &&
13047 $as_test_x conftest$ac_exeext; then
13048 ac_cv_lib_ossaudio_open=yes
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13053 ac_cv_lib_ossaudio_open=no
13056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13057 conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13060 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
13061 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6; }
13062 if test $ac_cv_lib_ossaudio_open = yes; then
13063 cat >>confdefs.h <<_ACEOF
13064 #define HAVE_LIBOSSAUDIO 1
13067 LIBS="-lossaudio $LIBS"
13074 if test ! -e "/dev/dsp"; then
13075 oss_device=/dev/audio
13080 { echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6; }
13084 { echo "$as_me:$LINENO: checking enable_audio=sun" >&5
13085 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6; }
13086 if test "x$au_enable_sun" = xyes; then
13089 if test -f /usr/demo/SOUND/libaudio.a; then
13090 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
13091 { echo "$as_me:$LINENO: result: yes" >&5
13092 echo "${ECHO_T}yes" >&6; }
13094 { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
13095 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
13099 if test -f /usr/demo/SOUND/lib/libaudio.a; then
13100 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
13101 { echo "$as_me:$LINENO: result: yes" >&5
13102 echo "${ECHO_T}yes" >&6; }
13104 { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
13105 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
13108 *) { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13112 EXTRADEFS="$EXTRADEFS -DAU_SUN"
13113 SYSEXTRAS="$SYSEXTRAS sun_a.c"
13115 { echo "$as_me:$LINENO: result: no" >&5
13116 echo "${ECHO_T}no" >&6; }
13119 { echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
13120 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6; }
13121 if test "x$au_enable_hpux" = xyes; then
13123 *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
13124 echo "${ECHO_T}yes" >&6; } ;;
13125 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13126 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13128 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
13129 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13135 { echo "$as_me:$LINENO: checking enable_audio=irix" >&5
13136 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6; }
13137 if test "x$au_enable_irix" = xyes; then
13139 *-sgi-irix5*|*-sgi-irix6.2)
13140 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
13141 { echo "$as_me:$LINENO: result: yes" >&5
13142 echo "${ECHO_T}yes" >&6; }
13145 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
13146 { echo "$as_me:$LINENO: result: yes" >&5
13147 echo "${ECHO_T}yes" >&6; }
13149 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13150 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13152 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
13153 EXTRALIBS="$EXTRASLIBS -laudio"
13155 { echo "$as_me:$LINENO: result: no" >&5
13156 echo "${ECHO_T}no" >&6; }
13159 { echo "$as_me:$LINENO: checking enable_audio=mme" >&5
13160 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6; }
13161 if test "x$au_enable_mme" = xyes; then
13163 *-dec-*) { echo "$as_me:$LINENO: result: yes" >&5
13164 echo "${ECHO_T}yes" >&6; } ;;
13165 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13166 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13168 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
13169 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
13170 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
13171 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
13173 { echo "$as_me:$LINENO: result: no" >&5
13174 echo "${ECHO_T}no" >&6; }
13177 { echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
13178 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6; }
13179 if test "x$au_enable_sb_dsp" = xyes; then
13181 *-*-bsdi2.0) { echo "$as_me:$LINENO: result: yes" >&5
13182 echo "${ECHO_T}yes" >&6; } ;;
13183 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13184 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13186 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
13187 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
13189 { echo "$as_me:$LINENO: result: no" >&5
13190 echo "${ECHO_T}no" >&6; }
13193 { echo "$as_me:$LINENO: checking enable_audio=w32" >&5
13194 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6; }
13195 if test "x$au_enable_w32" = xyes; then
13198 { echo "$as_me:$LINENO: result: yes" >&5
13199 echo "${ECHO_T}yes" >&6; }
13202 { echo "$as_me:$LINENO: result: yes" >&5
13203 echo "${ECHO_T}yes" >&6; }
13206 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13207 echo "$as_me: WARNING: may not work on $target" >&2;}
13210 SYSEXTRAS="$SYSEXTRAS w32_a.c"
13211 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
13212 EXTRALIBS="$EXTRALIBS winmm.lib"
13214 EXTRALIBS="$EXTRALIBS -lwinmm"
13216 EXTRADEFS="$EXTRADEFS -DAU_W32"
13218 { echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6; }
13222 { echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
13223 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6; }
13224 if test "x$au_enable_darwin" = xyes; then
13225 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
13226 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
13227 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
13230 { echo "$as_me:$LINENO: result: yes" >&5
13231 echo "${ECHO_T}yes" >&6; };;
13233 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13234 echo "$as_me: WARNING: may not work on $target" >&2;}
13238 { echo "$as_me:$LINENO: result: no" >&5
13239 echo "${ECHO_T}no" >&6; }
13243 { echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
13244 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6; }
13245 if test "x$au_enable_alsa" = xyes; then
13246 { echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
13247 echo "${ECHO_T}yes, configuring alsa" >&6; }
13250 KEEPLDFLAGS=$LDFLAGS
13251 alsa_save_CFLAGS="$CFLAGS"
13252 alsa_save_LDFLAGS="$LDFLAGS"
13253 alsa_save_LIBS="$LIBS"
13257 # Check whether --with-alsa-prefix was given.
13258 if test "${with_alsa_prefix+set}" = set; then
13259 withval=$with_alsa_prefix; alsa_prefix="$withval"
13266 # Check whether --with-alsa-inc-prefix was given.
13267 if test "${with_alsa_inc_prefix+set}" = set; then
13268 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
13274 # Check whether --enable-alsatest was given.
13275 if test "${enable_alsatest+set}" = set; then
13276 enableval=$enable_alsatest; enable_alsatest=no
13278 enable_alsatest=yes
13282 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
13283 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
13284 if test "$alsa_inc_prefix" != "" ; then
13285 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
13286 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
13288 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
13289 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
13291 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
13292 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
13293 if test "$alsa_prefix" != "" ; then
13294 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
13295 LDFLAGS="$LDFLAGS $ALSA_LIBS"
13298 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
13299 LIBS=`echo $LIBS | sed 's/-lm//'`
13300 LIBS=`echo $LIBS | sed 's/-ldl//'`
13301 LIBS=`echo $LIBS | sed 's/-lpthread//'`
13302 LIBS=`echo $LIBS | sed 's/ //'`
13303 LIBS="$ALSA_LIBS $LIBS"
13304 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
13305 echo "${ECHO_T}$ALSA_LIBS" >&6; }
13307 min_alsa_version=0.1.1
13308 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
13309 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
13311 alsa_min_major_version=`echo $min_alsa_version | \
13312 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13313 alsa_min_minor_version=`echo $min_alsa_version | \
13314 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13315 alsa_min_micro_version=`echo $min_alsa_version | \
13316 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13321 ac_cpp='$CPP $CPPFLAGS'
13322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13333 #include <alsa/asoundlib.h>
13339 /* ensure backward compatibility */
13340 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
13341 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
13343 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
13344 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
13346 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
13347 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
13350 # if(SND_LIB_MAJOR > $alsa_min_major_version)
13353 # if(SND_LIB_MAJOR < $alsa_min_major_version)
13354 # error not present
13357 # if(SND_LIB_MINOR > $alsa_min_minor_version)
13360 # if(SND_LIB_MINOR < $alsa_min_minor_version)
13361 # error not present
13364 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
13365 # error not present
13375 rm -f conftest.$ac_objext
13376 if { (ac_try="$ac_compile"
13377 case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_compile") 2>conftest.er1
13384 grep -v '^ *+' conftest.er1 >conftest.err
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } && {
13389 test -z "$ac_c_werror_flag" ||
13390 test ! -s conftest.err
13391 } && test -s conftest.$ac_objext; then
13392 { echo "$as_me:$LINENO: result: found." >&5
13393 echo "${ECHO_T}found." >&6; }
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 cat >conftest.$ac_ext <<_ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13405 #include <sys/asoundlib.h>
13411 /* ensure backward compatibility */
13412 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
13413 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
13415 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
13416 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
13418 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
13419 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
13422 # if(SND_LIB_MAJOR > $alsa_min_major_version)
13425 # if(SND_LIB_MAJOR < $alsa_min_major_version)
13426 # error not present
13429 # if(SND_LIB_MINOR > $alsa_min_minor_version)
13432 # if(SND_LIB_MINOR < $alsa_min_minor_version)
13433 # error not present
13436 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
13437 # error not present
13447 rm -f conftest.$ac_objext
13448 if { (ac_try="$ac_compile"
13449 case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_compile") 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } && {
13461 test -z "$ac_c_werror_flag" ||
13462 test ! -s conftest.err
13463 } && test -s conftest.$ac_objext; then
13464 { echo "$as_me:$LINENO: result: found." >&5
13465 echo "${ECHO_T}found." >&6; }
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13470 { echo "$as_me:$LINENO: result: not present." >&5
13471 echo "${ECHO_T}not present." >&6; }
13472 { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
13473 echo "${ECHO_T}libasound was not found anywhere." >&6; }
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478 { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
13479 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
13483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 ac_cpp='$CPP $CPPFLAGS'
13486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13492 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
13493 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
13494 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lasound $LIBS"
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply. */
13512 char snd_ctl_open ();
13516 return snd_ctl_open ();
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (ac_try="$ac_link"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_link") 2>conftest.er1
13530 grep -v '^ *+' conftest.er1 >conftest.err
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest$ac_exeext &&
13538 $as_test_x conftest$ac_exeext; then
13539 ac_cv_lib_asound_snd_ctl_open=yes
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ac_cv_lib_asound_snd_ctl_open=no
13547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13548 conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13551 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
13552 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
13553 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
13554 cat >>confdefs.h <<_ACEOF
13555 #define HAVE_LIBASOUND 1
13558 LIBS="-lasound $LIBS"
13561 { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
13562 echo "${ECHO_T}No linkable libasound was found." >&6; }
13568 if test "x$alsa_found" = "xyes" ; then
13570 LIBS=`echo $LIBS | sed 's/-lasound//g'`
13571 LIBS=`echo $LIBS | sed 's/ //'`
13572 LIBS="-lasound $LIBS"
13575 CFLAGS="$alsa_save_CFLAGS"
13576 LDFLAGS="$alsa_save_LDFLAGS"
13577 LIBS="$alsa_save_LIBS"
13585 if test "x$alsa_found" = "xyes" ; then
13586 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
13587 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
13588 for f in $ALSA_CFLAGS; do
13590 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13591 *) CFLAGS="$CFLAGS $f" ;;
13595 LIBS="$LIBS $ALSA_LIBS"
13597 for ac_func in snd_seq_port_info_set_timestamping
13599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13613 #define $ac_func innocuous_$ac_func
13615 /* System header to define __stub macros and hopefully few prototypes,
13616 which can conflict with char $ac_func (); below.
13617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13618 <limits.h> exists even on freestanding compilers. */
13621 # include <limits.h>
13623 # include <assert.h>
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13635 /* The GNU C library defines this for functions which it implements
13636 to always fail with ENOSYS. Some functions are actually named
13637 something starting with __ and the normal name is an alias. */
13638 #if defined __stub_$ac_func || defined __stub___$ac_func
13645 return $ac_func ();
13650 rm -f conftest.$ac_objext conftest$ac_exeext
13651 if { (ac_try="$ac_link"
13652 case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_link") 2>conftest.er1
13659 grep -v '^ *+' conftest.er1 >conftest.err
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } && {
13664 test -z "$ac_c_werror_flag" ||
13665 test ! -s conftest.err
13666 } && test -s conftest$ac_exeext &&
13667 $as_test_x conftest$ac_exeext; then
13668 eval "$as_ac_var=yes"
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 eval "$as_ac_var=no"
13676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13677 conftest$ac_exeext conftest.$ac_ext
13679 ac_res=`eval echo '${'$as_ac_var'}'`
13680 { echo "$as_me:$LINENO: result: $ac_res" >&5
13681 echo "${ECHO_T}$ac_res" >&6; }
13682 if test `eval echo '${'$as_ac_var'}'` = yes; then
13683 cat >>confdefs.h <<_ACEOF
13684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13691 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
13692 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
13695 LDFLAGS=$KEEPLDFLAGS
13698 { echo "$as_me:$LINENO: result: no" >&5
13699 echo "${ECHO_T}no" >&6; }
13702 { echo "$as_me:$LINENO: checking enable_audio=alib" >&5
13703 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6; }
13704 if test "x$au_enable_alib" = xyes; then
13706 *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
13707 echo "${ECHO_T}yes" >&6; } ;;
13708 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13709 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13711 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
13712 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
13713 if test -d /opt/audio/include; then
13714 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
13716 if test -d /opt/audio/lib; then
13717 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
13719 EXTRALIBS="$EXTRALIBS -lAlib"
13721 { echo "$as_me:$LINENO: result: no" >&5
13722 echo "${ECHO_T}no" >&6; }
13725 { echo "$as_me:$LINENO: checking enable_audio=nas" >&5
13726 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6; }
13727 if test "x$au_enable_nas" = xyes; then
13728 if test "x$with_x" != xyes; then
13729 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
13730 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
13731 { (exit 1); exit 1; }; }
13733 EXTRADEFS="$EXTRADEFS -DAU_NAS"
13734 SYSEXTRAS="$SYSEXTRAS nas_a.c"
13737 if test "x$with_nas_library" != x; then
13738 { echo "$as_me:$LINENO: result: $with_nas_library" >&5
13739 echo "${ECHO_T}$with_nas_library" >&6; };
13740 EXTRALIBS="$EXTRALIBS $with_nas_library"
13742 { echo "$as_me:$LINENO: result: " >&5
13743 echo "${ECHO_T}" >&6; }
13744 { echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
13745 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6; }
13746 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 ac_func_search_save_LIBS="$LIBS"
13750 timidity_cv_search_AuOpenServer="no"
13751 for i in $x_libraries/libaudio.a \
13752 /usr/lib/libaudio.so \
13753 /usr/lib/libaudio.a ; do
13754 LIBS="$i $ac_func_search_save_LIBS"
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13768 char AuOpenServer ();
13772 return AuOpenServer ();
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_link") 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && {
13791 test -z "$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13793 } && test -s conftest$ac_exeext &&
13794 $as_test_x conftest$ac_exeext; then
13795 timidity_cv_search_AuOpenServer="$i"; break
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804 conftest$ac_exeext conftest.$ac_ext
13806 LIBS="$ac_func_search_save_LIBS"
13808 { echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
13809 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6; }
13810 if test "$timidity_cv_search_AuOpenServer" != "no"; then
13811 { echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
13812 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6; }
13813 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
13815 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
13816 echo "$as_me: WARNING: NAS library is not found." >&2;}
13819 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
13821 if test "x$have_xext" = xyes; then
13822 lib_xext_opt=-lXext
13824 if test "x$have_xprelibs" = xyes; then
13825 lib_xprelibs_opt='-lSM -lICE'
13828 { echo "$as_me:$LINENO: result: no" >&5
13829 echo "${ECHO_T}no" >&6; }
13832 { echo "$as_me:$LINENO: checking enable_audio=arts" >&5
13833 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6; }
13834 if test "x$au_enable_arts" = xyes; then
13835 { echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
13836 echo "${ECHO_T}yes, configuring aRts" >&6; }
13837 # Extract the first word of "artsc-config", so it can be a program name with args.
13838 set dummy artsc-config; ac_word=$2
13839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13841 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 case $ARTSCCONFIG in
13846 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13856 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
13857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
13868 if test -n "$ARTSCCONFIG"; then
13869 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
13870 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
13872 { echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6; }
13877 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
13880 for i in `$ARTSCCONFIG --cflags`
13883 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
13886 ARTSC_LIBS=`$ARTSCCONFIG --libs`
13887 save_CFLAGS="$CFLAGS"
13888 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
13889 cat >conftest.$ac_ext <<_ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13899 arts_stream_t stream;
13904 rm -f conftest.$ac_objext
13905 if { (ac_try="$ac_compile"
13906 case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_compile") 2>conftest.er1
13913 grep -v '^ *+' conftest.er1 >conftest.err
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } && {
13918 test -z "$ac_c_werror_flag" ||
13919 test ! -s conftest.err
13920 } && test -s conftest.$ac_objext; then
13921 ARTSLIBS=$ARTSC_LIBS
13923 ARTSINCL=$ARTSC_CFLAGS
13926 cat >>confdefs.h <<\_ACEOF
13927 #define HAVE_ARTS 1
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940 CFLAGS="$save_CFLAGS"
13943 if test "$have_arts" = "yes"; then
13944 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
13945 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
13946 for f in $ARTSC_CFLAGS; do
13948 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13949 *) CFLAGS="$CFLAGS $f" ;;
13953 LIBS="$LIBS $ARTSC_LIBS"
13955 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
13956 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
13959 { echo "$as_me:$LINENO: result: no" >&5
13960 echo "${ECHO_T}no" >&6; }
13963 { echo "$as_me:$LINENO: checking enable_audio=esd" >&5
13964 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6; }
13965 if test "x$au_enable_esd" = xyes; then
13966 { echo "$as_me:$LINENO: result: yes, configuring esd" >&5
13967 echo "${ECHO_T}yes, configuring esd" >&6; }
13970 KEEPLDFLAGS=$LDFLAGS
13972 # Check whether --with-esd-prefix was given.
13973 if test "${with_esd_prefix+set}" = set; then
13974 withval=$with_esd_prefix; esd_prefix="$withval"
13980 # Check whether --with-esd-exec-prefix was given.
13981 if test "${with_esd_exec_prefix+set}" = set; then
13982 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
13987 # Check whether --enable-esdtest was given.
13988 if test "${enable_esdtest+set}" = set; then
13989 enableval=$enable_esdtest;
13995 if test x$esd_exec_prefix != x ; then
13996 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13997 if test x${ESD_CONFIG+set} != xset ; then
13998 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
14001 if test x$esd_prefix != x ; then
14002 esd_args="$esd_args --prefix=$esd_prefix"
14003 if test x${ESD_CONFIG+set} != xset ; then
14004 ESD_CONFIG=$esd_prefix/bin/esd-config
14008 # Extract the first word of "esd-config", so it can be a program name with args.
14009 set dummy esd-config; ac_word=$2
14010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14012 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 case $ESD_CONFIG in
14017 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14027 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14035 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
14039 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
14040 if test -n "$ESD_CONFIG"; then
14041 { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
14042 echo "${ECHO_T}$ESD_CONFIG" >&6; }
14044 { echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6; }
14049 min_esd_version=0.2.7
14050 { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
14051 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
14053 if test "$ESD_CONFIG" = "no" ; then
14058 ac_cpp='$CPP $CPPFLAGS'
14059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14063 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
14064 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
14066 esd_major_version=`$ESD_CONFIG $esd_args --version | \
14067 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14068 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
14069 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14070 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
14071 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14072 if test "x$enable_esdtest" = "xyes" ; then
14073 ac_save_CFLAGS="$CFLAGS"
14074 ac_save_LIBS="$LIBS"
14075 CFLAGS="$CFLAGS $ESD_CFLAGS"
14076 LIBS="$LIBS $ESD_LIBS"
14078 if test "$cross_compiling" = yes; then
14079 echo $ac_n "cross compiling; assumed OK... $ac_c"
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14089 #include <stdlib.h>
14090 #include <string.h>
14094 my_strdup (char *str)
14100 new_str = malloc ((strlen (str) + 1) * sizeof(char));
14101 strcpy (new_str, str);
14111 int major, minor, micro;
14114 system ("touch conf.esdtest");
14116 /* HP/UX 9 (%@#!) writes to sscanf strings */
14117 tmp_version = my_strdup("$min_esd_version");
14118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14119 printf("%s, bad version string\n", "$min_esd_version");
14123 if (($esd_major_version > major) ||
14124 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
14125 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
14131 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
14132 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
14133 printf("*** best to upgrade to the required version.\n");
14134 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
14135 printf("*** to point to the correct copy of esd-config, and remove the file\n");
14136 printf("*** config.cache before re-running configure\n");
14143 rm -f conftest$ac_exeext
14144 if { (ac_try="$ac_link"
14145 case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_link") 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14154 { (case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159 (eval "$ac_try") 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14165 echo "$as_me: program exited with status $ac_status" >&5
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14169 ( exit $ac_status )
14172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14176 CFLAGS="$ac_save_CFLAGS"
14177 LIBS="$ac_save_LIBS"
14179 ac_cpp='$CPP $CPPFLAGS'
14180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14186 if test "x$no_esd" = x ; then
14187 { echo "$as_me:$LINENO: result: yes" >&5
14188 echo "${ECHO_T}yes" >&6; }
14191 { echo "$as_me:$LINENO: result: no" >&5
14192 echo "${ECHO_T}no" >&6; }
14193 if test "$ESD_CONFIG" = "no" ; then
14194 echo "*** The esd-config script installed by ESD could not be found"
14195 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
14196 echo "*** your path, or set the ESD_CONFIG environment variable to the"
14197 echo "*** full path to esd-config."
14199 if test -f conf.esdtest ; then
14202 echo "*** Could not run ESD test program, checking why..."
14203 CFLAGS="$CFLAGS $ESD_CFLAGS"
14204 LIBS="$LIBS $ESD_LIBS"
14207 ac_cpp='$CPP $CPPFLAGS'
14208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14212 cat >conftest.$ac_ext <<_ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14230 rm -f conftest.$ac_objext conftest$ac_exeext
14231 if { (ac_try="$ac_link"
14232 case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_link") 2>conftest.er1
14239 grep -v '^ *+' conftest.er1 >conftest.err
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } && {
14244 test -z "$ac_c_werror_flag" ||
14245 test ! -s conftest.err
14246 } && test -s conftest$ac_exeext &&
14247 $as_test_x conftest$ac_exeext; then
14248 echo "*** The test program compiled, but did not run. This usually means"
14249 echo "*** that the run-time linker is not finding ESD or finding the wrong"
14250 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
14251 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14252 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14253 echo "*** is required on your system"
14255 echo "*** If you have an old version installed, it is best to remove it, although"
14256 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 echo "*** The test program failed to compile or link. See the file config.log for the"
14262 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
14263 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
14264 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
14267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14268 conftest$ac_exeext conftest.$ac_ext
14269 CFLAGS="$ac_save_CFLAGS"
14270 LIBS="$ac_save_LIBS"
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14289 LDFLAGS=$KEEPLDFLAGS
14290 if test "x$no_esd" = x; then
14291 EXTRADEFS="$EXTRADEFS -DAU_ESD"
14292 SYSEXTRAS="$SYSEXTRAS esd_a.c"
14293 for f in $ESD_CFLAGS; do
14295 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14296 *) CFLAGS="$CFLAGS $f" ;;
14300 LIBS="$LIBS $ESD_LIBS"
14302 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
14303 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
14306 { echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6; }
14310 { echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
14311 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6; }
14312 if test "x$au_enable_portaudio" = xyes; then
14313 { echo "$as_me:$LINENO: result: yes" >&5
14314 echo "${ECHO_T}yes" >&6; }
14315 if test "x$MSYS" = xyes ; then
14316 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
14317 EXTRALIBS="$EXTRALIBS -lportaudio"
14318 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
14320 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
14321 EXTRALIBS="$EXTRALIBS -lportaudio"
14322 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
14325 { echo "$as_me:$LINENO: result: no" >&5
14326 echo "${ECHO_T}no" >&6; }
14329 { echo "$as_me:$LINENO: checking enable_audio=npipe" >&5
14330 echo $ECHO_N "checking enable_audio=npipe... $ECHO_C" >&6; }
14331 if test "x$au_enable_npipe" = xyes; then
14332 { echo "$as_me:$LINENO: result: yes" >&5
14333 echo "${ECHO_T}yes" >&6; }
14334 SYSEXTRAS="$SYSEXTRAS npipe_a.c"
14335 EXTRADEFS="$EXTRADEFS -DAU_NPIPE"
14337 { echo "$as_me:$LINENO: result: no" >&5
14338 echo "${ECHO_T}no" >&6; }
14342 { echo "$as_me:$LINENO: checking enable_audio=jack" >&5
14343 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6; }
14344 if test "x$au_enable_jack" = xyes; then
14345 { echo "$as_me:$LINENO: result: yes" >&5
14346 echo "${ECHO_T}yes" >&6; }
14347 SYSEXTRAS="$SYSEXTRAS jack_a.c"
14348 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
14349 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
14351 { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14355 { echo "$as_me:$LINENO: checking enable_audio=ao" >&5
14356 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6; }
14357 if test "x$au_enable_ao" = xyes; then
14358 { echo "$as_me:$LINENO: result: yes, configuring ao" >&5
14359 echo "${ECHO_T}yes, configuring ao" >&6; }
14361 # Check whether --with-ao was given.
14362 if test "${with_ao+set}" = set; then
14363 withval=$with_ao; ao_prefix="$withval"
14369 # Check whether --with-ao-libraries was given.
14370 if test "${with_ao_libraries+set}" = set; then
14371 withval=$with_ao_libraries; ao_libraries="$withval"
14377 # Check whether --with-ao-includes was given.
14378 if test "${with_ao_includes+set}" = set; then
14379 withval=$with_ao_includes; ao_includes="$withval"
14384 # Check whether --enable-aotest was given.
14385 if test "${enable_aotest+set}" = set; then
14386 enableval=$enable_aotest;
14393 if test "x$ao_libraries" != "x" ; then
14394 AO_LIBS="-L$ao_libraries"
14395 elif test "x$ao_prefix" != "x"; then
14396 AO_LIBS="-L$ao_prefix/lib"
14397 elif test "x$prefix" != "xNONE"; then
14398 AO_LIBS="-L$prefix/lib"
14401 if test "x$ao_includes" != "x" ; then
14402 AO_CFLAGS="-I$ao_includes"
14403 elif test "x$ao_prefix" != "x"; then
14404 AO_CFLAGS="-I$ao_prefix/include"
14405 elif test "x$prefix" != "xNONE"; then
14406 AO_CFLAGS="-I$prefix/include"
14409 # see where dl* and friends live
14411 for ac_func in dlopen
14413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14427 #define $ac_func innocuous_$ac_func
14429 /* System header to define __stub macros and hopefully few prototypes,
14430 which can conflict with char $ac_func (); below.
14431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14432 <limits.h> exists even on freestanding compilers. */
14435 # include <limits.h>
14437 # include <assert.h>
14442 /* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
14449 /* The GNU C library defines this for functions which it implements
14450 to always fail with ENOSYS. Some functions are actually named
14451 something starting with __ and the normal name is an alias. */
14452 #if defined __stub_$ac_func || defined __stub___$ac_func
14459 return $ac_func ();
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (ac_try="$ac_link"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_link") 2>conftest.er1
14473 grep -v '^ *+' conftest.er1 >conftest.err
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest$ac_exeext &&
14481 $as_test_x conftest$ac_exeext; then
14482 eval "$as_ac_var=yes"
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 eval "$as_ac_var=no"
14490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14491 conftest$ac_exeext conftest.$ac_ext
14493 ac_res=`eval echo '${'$as_ac_var'}'`
14494 { echo "$as_me:$LINENO: result: $ac_res" >&5
14495 echo "${ECHO_T}$ac_res" >&6; }
14496 if test `eval echo '${'$as_ac_var'}'` = yes; then
14497 cat >>confdefs.h <<_ACEOF
14498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14503 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14504 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 ac_check_lib_save_LIBS=$LIBS
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_link") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest$ac_exeext &&
14549 $as_test_x conftest$ac_exeext; then
14550 ac_cv_lib_dl_dlopen=yes
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_cv_lib_dl_dlopen=no
14558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14559 conftest$ac_exeext conftest.$ac_ext
14560 LIBS=$ac_check_lib_save_LIBS
14562 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14564 if test $ac_cv_lib_dl_dlopen = yes; then
14568 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
14569 your system may not be supported." >&5
14570 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
14571 your system may not be supported." >&2;}
14580 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
14582 { echo "$as_me:$LINENO: checking for ao" >&5
14583 echo $ECHO_N "checking for ao... $ECHO_C" >&6; }
14587 if test "x$enable_aotest" = "xyes" ; then
14588 ac_save_CFLAGS="$CFLAGS"
14589 ac_save_LIBS="$LIBS"
14590 CFLAGS="$CFLAGS $AO_CFLAGS"
14591 LIBS="$LIBS $AO_LIBS"
14593 if test "$cross_compiling" = yes; then
14594 echo $ac_n "cross compiling; assumed OK... $ac_c"
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14604 #include <stdlib.h>
14605 #include <string.h>
14610 system("touch conf.aotest");
14616 rm -f conftest$ac_exeext
14617 if { (ac_try="$ac_link"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_link") 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14627 { (case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_try") 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14638 echo "$as_me: program exited with status $ac_status" >&5
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ( exit $ac_status )
14645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14649 CFLAGS="$ac_save_CFLAGS"
14650 LIBS="$ac_save_LIBS"
14653 if test "x$no_ao" = "x" ; then
14654 { echo "$as_me:$LINENO: result: yes" >&5
14655 echo "${ECHO_T}yes" >&6; }
14658 { echo "$as_me:$LINENO: result: no" >&5
14659 echo "${ECHO_T}no" >&6; }
14660 if test -f conf.aotest ; then
14663 echo "*** Could not run ao test program, checking why..."
14664 CFLAGS="$CFLAGS $AO_CFLAGS"
14665 LIBS="$LIBS $AO_LIBS"
14666 cat >conftest.$ac_ext <<_ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (ac_try="$ac_link"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_link") 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest$ac_exeext &&
14701 $as_test_x conftest$ac_exeext; then
14702 echo "*** The test program compiled, but did not run. This usually means"
14703 echo "*** that the run-time linker is not finding ao or finding the wrong"
14704 echo "*** version of ao. If it is not finding ao, you'll need to set your"
14705 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14706 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14707 echo "*** is required on your system"
14709 echo "*** If you have an old version installed, it is best to remove it, although"
14710 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 echo "*** The test program failed to compile or link. See the file config.log for the"
14716 echo "*** exact error that occured. This usually means ao was incorrectly installed"
14717 echo "*** or that you have moved ao since it was installed."
14720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721 conftest$ac_exeext conftest.$ac_ext
14722 CFLAGS="$ac_save_CFLAGS"
14723 LIBS="$ac_save_LIBS"
14733 if test "x$no_ao" = "x" ; then
14734 # AC_MSG_RESULT(yes)
14735 EXTRADEFS="$EXTRADEFS -DAU_AO"
14736 SYSEXTRAS="$SYSEXTRAS ao_a.c"
14737 for f in $AO_CFLAGS; do
14739 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14740 *) CFLAGS="$CFLAGS $f" ;;
14744 LIBS="$LIBS $AO_LIBS"
14746 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
14747 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
14750 { echo "$as_me:$LINENO: result: no" >&5
14751 echo "${ECHO_T}no" >&6; }
14754 { echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
14755 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6; }
14756 if test "x$au_enable_vorbis" = xyes; then
14757 { echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
14758 echo "${ECHO_T}yes, configuring vorbis" >&6; }
14759 if test "x$MSYS" = "xyes" && test "x$MINGWGCC" != "xyes" ; then
14760 if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then
14761 { echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5
14762 echo $ECHO_N "checking for vorbis/vorbisenc.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_vorbis_vorbisenc_h" >&6; }
14769 # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking vorbis/vorbisenc.h usability" >&5
14771 echo $ECHO_N "checking vorbis/vorbisenc.h usability... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 $ac_includes_default
14779 #include <vorbis/vorbisenc.h>
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14790 grep -v '^ *+' conftest.er1 >conftest.err
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
14797 } && test -s conftest.$ac_objext; then
14798 ac_header_compiler=yes
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_header_compiler=no
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking vorbis/vorbisenc.h presence" >&5
14812 echo $ECHO_N "checking vorbis/vorbisenc.h presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <vorbis/vorbisenc.h>
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null && {
14834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14835 test ! -s conftest.err
14837 ac_header_preproc=yes
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 ac_header_preproc=no
14845 rm -f conftest.err conftest.$ac_ext
14846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14847 echo "${ECHO_T}$ac_header_preproc" >&6; }
14849 # So? What about this header?
14850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14852 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14853 echo "$as_me: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&5
14855 echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&2;}
14856 ac_header_preproc=yes
14859 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&5
14860 echo "$as_me: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: check for missing prerequisite headers?" >&5
14862 echo "$as_me: WARNING: vorbis/vorbisenc.h: check for missing prerequisite headers?" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&5
14864 echo "$as_me: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: section \"Present But Cannot Be Compiled\"" >&5
14866 echo "$as_me: WARNING: vorbis/vorbisenc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&5
14868 echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&5
14870 echo "$as_me: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&2;}
14872 ## ------------------------------- ##
14873 ## Report this to root@mput.dip.jp ##
14874 ## ------------------------------- ##
14876 ) | sed "s/^/$as_me: WARNING: /" >&2
14879 { echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5
14880 echo $ECHO_N "checking for vorbis/vorbisenc.h... $ECHO_C" >&6; }
14881 if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 ac_cv_header_vorbis_vorbisenc_h=$ac_header_preproc
14886 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5
14887 echo "${ECHO_T}$ac_cv_header_vorbis_vorbisenc_h" >&6; }
14890 if test $ac_cv_header_vorbis_vorbisenc_h = yes; then
14894 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14895 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14902 # Check whether --with-ogg was given.
14903 if test "${with_ogg+set}" = set; then
14904 withval=$with_ogg; ogg_prefix="$withval"
14910 # Check whether --with-ogg-libraries was given.
14911 if test "${with_ogg_libraries+set}" = set; then
14912 withval=$with_ogg_libraries; ogg_libraries="$withval"
14918 # Check whether --with-ogg-includes was given.
14919 if test "${with_ogg_includes+set}" = set; then
14920 withval=$with_ogg_includes; ogg_includes="$withval"
14925 # Check whether --enable-oggtest was given.
14926 if test "${enable_oggtest+set}" = set; then
14927 enableval=$enable_oggtest;
14933 if test "x$ogg_libraries" != "x" ; then
14934 OGG_LIBS="-L$ogg_libraries"
14935 elif test "x$ogg_prefix" != "x" ; then
14936 OGG_LIBS="-L$ogg_prefix/lib"
14937 elif test "x$prefix" != "xNONE" ; then
14938 OGG_LIBS="-L$prefix/lib"
14941 OGG_LIBS="$OGG_LIBS -logg"
14943 if test "x$ogg_includes" != "x" ; then
14944 OGG_CFLAGS="-I$ogg_includes"
14945 elif test "x$ogg_prefix" != "x" ; then
14946 OGG_CFLAGS="-I$ogg_prefix/include"
14947 elif test "x$prefix" != "xNONE"; then
14948 OGG_CFLAGS="-I$prefix/include"
14951 { echo "$as_me:$LINENO: checking for Ogg" >&5
14952 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
14956 if test "x$enable_oggtest" = "xyes" ; then
14957 ac_save_CFLAGS="$CFLAGS"
14958 ac_save_LIBS="$LIBS"
14959 CFLAGS="$CFLAGS $OGG_CFLAGS"
14960 LIBS="$LIBS $OGG_LIBS"
14962 if test "$cross_compiling" = yes; then
14963 echo $ac_n "cross compiling; assumed OK... $ac_c"
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14973 #include <stdlib.h>
14974 #include <string.h>
14975 #include <ogg/ogg.h>
14979 system("touch conf.oggtest");
14985 rm -f conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_link") 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14996 { (case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_try") 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15007 echo "$as_me: program exited with status $ac_status" >&5
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ( exit $ac_status )
15014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15018 CFLAGS="$ac_save_CFLAGS"
15019 LIBS="$ac_save_LIBS"
15022 if test "x$no_ogg" = "x" ; then
15023 { echo "$as_me:$LINENO: result: yes" >&5
15024 echo "${ECHO_T}yes" >&6; }
15027 # Check whether --with-vorbis was given.
15028 if test "${with_vorbis+set}" = set; then
15029 withval=$with_vorbis; vorbis_prefix="$withval"
15035 # Check whether --with-vorbis-libraries was given.
15036 if test "${with_vorbis_libraries+set}" = set; then
15037 withval=$with_vorbis_libraries; vorbis_libraries="$withval"
15039 vorbis_libraries=""
15043 # Check whether --with-vorbis-includes was given.
15044 if test "${with_vorbis_includes+set}" = set; then
15045 withval=$with_vorbis_includes; vorbis_includes="$withval"
15050 # Check whether --enable-vorbistest was given.
15051 if test "${enable_vorbistest+set}" = set; then
15052 enableval=$enable_vorbistest;
15054 enable_vorbistest=yes
15058 if test "x$vorbis_libraries" != "x" ; then
15059 VORBIS_LIBS="-L$vorbis_libraries"
15060 elif test "x$vorbis_prefix" != "x" ; then
15061 VORBIS_LIBS="-L$vorbis_prefix/lib"
15062 elif test "x$prefix" != "xNONE"; then
15063 VORBIS_LIBS="-L$prefix/lib"
15066 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
15067 VORBISFILE_LIBS="-lvorbisfile"
15068 VORBISENC_LIBS="-lvorbisenc"
15070 if test "x$vorbis_includes" != "x" ; then
15071 VORBIS_CFLAGS="-I$vorbis_includes"
15072 elif test "x$vorbis_prefix" != "x" ; then
15073 VORBIS_CFLAGS="-I$vorbis_prefix/include"
15074 elif test "x$prefix" != "xNONE"; then
15075 VORBIS_CFLAGS="-I$prefix/include"
15079 { echo "$as_me:$LINENO: checking for Vorbis" >&5
15080 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; }
15084 if test "x$enable_vorbistest" = "xyes" ; then
15085 ac_save_CFLAGS="$CFLAGS"
15086 ac_save_LIBS="$LIBS"
15087 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
15088 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
15089 rm -f conf.vorbistest
15090 if test "$cross_compiling" = yes; then
15091 echo $ac_n "cross compiling; assumed OK... $ac_c"
15093 cat >conftest.$ac_ext <<_ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15101 #include <stdlib.h>
15102 #include <string.h>
15103 #include <vorbis/codec.h>
15104 #include <vorbis/vorbisenc.h>
15109 vorbis_dsp_state vd;
15112 vorbis_info_init (&vi);
15113 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
15114 vorbis_analysis_init (&vd, &vi);
15115 vorbis_block_init (&vd, &vb);
15116 /* this function was added in 1.0rc3, so this is what we're testing for */
15117 vorbis_bitrate_addblock (&vb);
15119 system("touch conf.vorbistest");
15125 rm -f conftest$ac_exeext
15126 if { (ac_try="$ac_link"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15147 echo "$as_me: program exited with status $ac_status" >&5
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ( exit $ac_status )
15154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15158 CFLAGS="$ac_save_CFLAGS"
15159 LIBS="$ac_save_LIBS"
15162 if test "x$no_vorbis" = "x" ; then
15163 { echo "$as_me:$LINENO: result: yes" >&5
15164 echo "${ECHO_T}yes" >&6; }
15167 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
15168 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
15169 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
15170 if test "x$MSYS" = "xyes" && test "x$MINGWGCC" = "xyes" ; then
15171 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
15172 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
15176 { echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6; }
15178 if test -f conf.vorbistest ; then
15181 echo "*** Could not run Vorbis test program, checking why..."
15182 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
15183 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
15184 cat >conftest.$ac_ext <<_ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15192 #include <vorbis/codec.h>
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (ac_try="$ac_link"
15204 case "(($ac_try" in
15205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206 *) ac_try_echo=$ac_try;;
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209 (eval "$ac_link") 2>conftest.er1
15211 grep -v '^ *+' conftest.er1 >conftest.err
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } && {
15216 test -z "$ac_c_werror_flag" ||
15217 test ! -s conftest.err
15218 } && test -s conftest$ac_exeext &&
15219 $as_test_x conftest$ac_exeext; then
15220 echo "*** The test program compiled, but did not run. This usually means"
15221 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
15222 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
15223 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15224 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15225 echo "*** is required on your system"
15227 echo "*** If you have an old version installed, it is best to remove it, although"
15228 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 echo "*** The test program failed to compile or link. See the file config.log for the"
15234 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
15235 echo "*** or that you have moved Vorbis since it was installed."
15238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15239 conftest$ac_exeext conftest.$ac_ext
15240 CFLAGS="$ac_save_CFLAGS"
15241 LIBS="$ac_save_LIBS"
15248 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
15249 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
15256 rm -f conf.vorbistest
15260 { echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6; }
15262 if test -f conf.oggtest ; then
15265 echo "*** Could not run Ogg test program, checking why..."
15266 CFLAGS="$CFLAGS $OGG_CFLAGS"
15267 LIBS="$LIBS $OGG_LIBS"
15268 cat >conftest.$ac_ext <<_ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15276 #include <ogg/ogg.h>
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (ac_try="$ac_link"
15288 case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_link") 2>conftest.er1
15295 grep -v '^ *+' conftest.er1 >conftest.err
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest$ac_exeext &&
15303 $as_test_x conftest$ac_exeext; then
15304 echo "*** The test program compiled, but did not run. This usually means"
15305 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
15306 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
15307 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15308 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15309 echo "*** is required on your system"
15311 echo "*** If you have an old version installed, it is best to remove it, although"
15312 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 echo "*** The test program failed to compile or link. See the file config.log for the"
15318 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
15319 echo "*** or that you have moved Ogg since it was installed."
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323 conftest$ac_exeext conftest.$ac_ext
15324 CFLAGS="$ac_save_CFLAGS"
15325 LIBS="$ac_save_LIBS"
15330 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
15331 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
15341 { echo "$as_me:$LINENO: result: no" >&5
15342 echo "${ECHO_T}no" >&6; }
15345 if test "x$MSYS" = xyes ; then
15346 { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
15347 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
15348 if test "x$au_enable_flac" = xyes; then
15349 { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
15350 echo "${ECHO_T}yes, configuring flac" >&6; }
15351 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
15352 if test "${ac_cv_header_FLAC_all_h+set}" = set; then
15353 { echo "$as_me:$LINENO: checking for FLAC/all.h" >&5
15354 echo $ECHO_N "checking for FLAC/all.h... $ECHO_C" >&6; }
15355 if test "${ac_cv_header_FLAC_all_h+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 { echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5
15359 echo "${ECHO_T}$ac_cv_header_FLAC_all_h" >&6; }
15361 # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking FLAC/all.h usability" >&5
15363 echo $ECHO_N "checking FLAC/all.h usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 $ac_includes_default
15371 #include <FLAC/all.h>
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15382 grep -v '^ *+' conftest.er1 >conftest.err
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } && {
15387 test -z "$ac_c_werror_flag" ||
15388 test ! -s conftest.err
15389 } && test -s conftest.$ac_objext; then
15390 ac_header_compiler=yes
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_header_compiler=no
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15400 echo "${ECHO_T}$ac_header_compiler" >&6; }
15402 # Is the header present?
15403 { echo "$as_me:$LINENO: checking FLAC/all.h presence" >&5
15404 echo $ECHO_N "checking FLAC/all.h presence... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <FLAC/all.h>
15413 if { (ac_try="$ac_cpp conftest.$ac_ext"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } >/dev/null && {
15426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15429 ac_header_preproc=yes
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 ac_header_preproc=no
15437 rm -f conftest.err conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6; }
15441 # So? What about this header?
15442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15444 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&5
15445 echo "$as_me: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the compiler's result" >&5
15447 echo "$as_me: WARNING: FLAC/all.h: proceeding with the compiler's result" >&2;}
15448 ac_header_preproc=yes
15451 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: present but cannot be compiled" >&5
15452 echo "$as_me: WARNING: FLAC/all.h: present but cannot be compiled" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: check for missing prerequisite headers?" >&5
15454 echo "$as_me: WARNING: FLAC/all.h: check for missing prerequisite headers?" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: see the Autoconf documentation" >&5
15456 echo "$as_me: WARNING: FLAC/all.h: see the Autoconf documentation" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: section \"Present But Cannot Be Compiled\"" >&5
15458 echo "$as_me: WARNING: FLAC/all.h: section \"Present But Cannot Be Compiled\"" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&5
15460 echo "$as_me: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&5
15462 echo "$as_me: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&2;}
15464 ## ------------------------------- ##
15465 ## Report this to root@mput.dip.jp ##
15466 ## ------------------------------- ##
15468 ) | sed "s/^/$as_me: WARNING: /" >&2
15471 { echo "$as_me:$LINENO: checking for FLAC/all.h" >&5
15472 echo $ECHO_N "checking for FLAC/all.h... $ECHO_C" >&6; }
15473 if test "${ac_cv_header_FLAC_all_h+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 ac_cv_header_FLAC_all_h=$ac_header_preproc
15478 { echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5
15479 echo "${ECHO_T}$ac_cv_header_FLAC_all_h" >&6; }
15482 if test $ac_cv_header_FLAC_all_h = yes; then
15484 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
15489 if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then
15490 { echo "$as_me:$LINENO: checking for OggFLAC/all.h" >&5
15491 echo $ECHO_N "checking for OggFLAC/all.h... $ECHO_C" >&6; }
15492 if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 { echo "$as_me:$LINENO: result: $ac_cv_header_OggFLAC_all_h" >&5
15496 echo "${ECHO_T}$ac_cv_header_OggFLAC_all_h" >&6; }
15498 # Is the header compilable?
15499 { echo "$as_me:$LINENO: checking OggFLAC/all.h usability" >&5
15500 echo $ECHO_N "checking OggFLAC/all.h usability... $ECHO_C" >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 $ac_includes_default
15508 #include <OggFLAC/all.h>
15510 rm -f conftest.$ac_objext
15511 if { (ac_try="$ac_compile"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_compile") 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest.$ac_objext; then
15527 ac_header_compiler=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_compiler=no
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6; }
15539 # Is the header present?
15540 { echo "$as_me:$LINENO: checking OggFLAC/all.h presence" >&5
15541 echo $ECHO_N "checking OggFLAC/all.h presence... $ECHO_C" >&6; }
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 #include <OggFLAC/all.h>
15550 if { (ac_try="$ac_cpp conftest.$ac_ext"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } >/dev/null && {
15563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15566 ac_header_preproc=yes
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ac_header_preproc=no
15574 rm -f conftest.err conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6; }
15578 # So? What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: OggFLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: OggFLAC/all.h: proceeding with the compiler's result" >&2;}
15585 ac_header_preproc=yes
15588 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: OggFLAC/all.h: present but cannot be compiled" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: OggFLAC/all.h: check for missing prerequisite headers?" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: OggFLAC/all.h: see the Autoconf documentation" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: OggFLAC/all.h: section \"Present But Cannot Be Compiled\"" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: OggFLAC/all.h: proceeding with the preprocessor's result" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: OggFLAC/all.h: in the future, the compiler will take precedence" >&2;}
15601 ## ------------------------------- ##
15602 ## Report this to root@mput.dip.jp ##
15603 ## ------------------------------- ##
15605 ) | sed "s/^/$as_me: WARNING: /" >&2
15608 { echo "$as_me:$LINENO: checking for OggFLAC/all.h" >&5
15609 echo $ECHO_N "checking for OggFLAC/all.h... $ECHO_C" >&6; }
15610 if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 ac_cv_header_OggFLAC_all_h=$ac_header_preproc
15615 { echo "$as_me:$LINENO: result: $ac_cv_header_OggFLAC_all_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_OggFLAC_all_h" >&6; }
15619 if test $ac_cv_header_OggFLAC_all_h = yes; then
15621 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
15627 { echo "$as_me:$LINENO: result: no" >&5
15628 echo "${ECHO_T}no" >&6; }
15631 { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
15632 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
15633 if test "x$au_enable_flac" = xyes; then
15634 { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
15635 echo "${ECHO_T}yes, configuring flac" >&6; }
15636 SYSEXTRAS="$SYSEXTRAS flac_a.c"
15638 # Check whether --with-libFLAC was given.
15639 if test "${with_libFLAC+set}" = set; then
15640 withval=$with_libFLAC; libFLAC_prefix="$withval"
15646 # Check whether --with-libFLAC-libraries was given.
15647 if test "${with_libFLAC_libraries+set}" = set; then
15648 withval=$with_libFLAC_libraries; libFLAC_libraries="$withval"
15650 libFLAC_libraries=""
15654 # Check whether --with-libFLAC-includes was given.
15655 if test "${with_libFLAC_includes+set}" = set; then
15656 withval=$with_libFLAC_includes; libFLAC_includes="$withval"
15658 libFLAC_includes=""
15661 # Check whether --enable-libFLACtest was given.
15662 if test "${enable_libFLACtest+set}" = set; then
15663 enableval=$enable_libFLACtest;
15665 enable_libFLACtest=yes
15669 if test "x$libFLAC_libraries" != "x" ; then
15670 LIBFLAC_LIBS="-L$libFLAC_libraries"
15671 elif test "x$libFLAC_prefix" != "x" ; then
15672 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
15673 elif test "x$prefix" != "xNONE" ; then
15674 LIBFLAC_LIBS="-L$prefix/lib"
15677 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
15679 if test "x$libFLAC_includes" != "x" ; then
15680 LIBFLAC_CFLAGS="-I$libFLAC_includes"
15681 elif test "x$libFLAC_prefix" != "x" ; then
15682 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
15683 elif test "$prefix" != "xNONE"; then
15684 LIBFLAC_CFLAGS="-I$prefix/include"
15687 { echo "$as_me:$LINENO: checking for libFLAC" >&5
15688 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6; }
15692 if test "x$enable_libFLACtest" = "xyes" ; then
15693 ac_save_CFLAGS="$CFLAGS"
15694 ac_save_CXXFLAGS="$CXXFLAGS"
15695 ac_save_LIBS="$LIBS"
15696 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
15697 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
15698 LIBS="$LIBS $LIBFLAC_LIBS"
15699 rm -f conf.libFLACtest
15700 if test "$cross_compiling" = yes; then
15701 echo $ac_n "cross compiling; assumed OK... $ac_c"
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15711 #include <stdlib.h>
15712 #include <string.h>
15713 #include <FLAC/format.h>
15717 system("touch conf.libFLACtest");
15723 rm -f conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_link") 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15745 echo "$as_me: program exited with status $ac_status" >&5
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ( exit $ac_status )
15752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15756 CFLAGS="$ac_save_CFLAGS"
15757 LIBS="$ac_save_LIBS"
15760 if test "x$no_libFLAC" = "x" ; then
15761 { echo "$as_me:$LINENO: result: yes" >&5
15762 echo "${ECHO_T}yes" >&6; }
15764 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
15765 for f in $LIBFLAC_CFLAGS; do
15767 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
15768 *) CFLAGS="$CFLAGS $f" ;;
15772 LIBS="$LIBS $LIBFLAC_LIBS"
15775 { echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6; }
15777 if test -f conf.libFLACtest ; then
15780 echo "*** Could not run libFLAC test program, checking why..."
15781 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
15782 LIBS="$LIBS $LIBFLAC_LIBS"
15783 cat >conftest.$ac_ext <<_ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15791 #include <FLAC/format.h>
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (ac_try="$ac_link"
15803 case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_link") 2>conftest.er1
15810 grep -v '^ *+' conftest.er1 >conftest.err
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } && {
15815 test -z "$ac_c_werror_flag" ||
15816 test ! -s conftest.err
15817 } && test -s conftest$ac_exeext &&
15818 $as_test_x conftest$ac_exeext; then
15819 echo "*** The test program compiled, but did not run. This usually means"
15820 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
15821 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
15822 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15823 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15824 echo "*** is required on your system"
15826 echo "*** If you have an old version installed, it is best to remove it, although"
15827 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15832 echo "*** The test program failed to compile or link. See the file config.log for the"
15833 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
15834 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
15835 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
15838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15839 conftest$ac_exeext conftest.$ac_ext
15840 CFLAGS="$ac_save_CFLAGS"
15841 LIBS="$ac_save_LIBS"
15849 rm -f conf.libFLACtest
15852 # Check whether --with-libOggFLAC was given.
15853 if test "${with_libOggFLAC+set}" = set; then
15854 withval=$with_libOggFLAC; libOggFLAC_prefix="$withval"
15856 libOggFLAC_prefix=""
15860 # Check whether --with-libOggFLAC-libraries was given.
15861 if test "${with_libOggFLAC_libraries+set}" = set; then
15862 withval=$with_libOggFLAC_libraries; libOggFLAC_libraries="$withval"
15864 libOggFLAC_libraries=""
15868 # Check whether --with-libOggFLAC-includes was given.
15869 if test "${with_libOggFLAC_includes+set}" = set; then
15870 withval=$with_libOggFLAC_includes; libOggFLAC_includes="$withval"
15872 libOggFLAC_includes=""
15875 # Check whether --enable-libOggFLACtest was given.
15876 if test "${enable_libOggFLACtest+set}" = set; then
15877 enableval=$enable_libOggFLACtest;
15879 enable_libOggFLACtest=yes
15883 if test "x$libOggFLAC_libraries" != "x" ; then
15884 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
15885 elif test "x$libOggFLAC_prefix" != "x" ; then
15886 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
15887 elif test "x$prefix" != "xNONE" ; then
15888 LIBOGGFLAC_LIBS="-L$prefix/lib"
15891 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
15893 if test "x$libOggFLAC_includes" != "x" ; then
15894 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
15895 elif test "x$libOggFLAC_prefix" != "x" ; then
15896 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
15897 elif test "$prefix" != "xNONE"; then
15898 LIBOGGFLAC_CFLAGS="-I$prefix/include"
15901 { echo "$as_me:$LINENO: checking for libOggFLAC" >&5
15902 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6; }
15906 if test "x$enable_libOggFLACtest" = "xyes" ; then
15907 ac_save_CFLAGS="$CFLAGS"
15908 ac_save_CXXFLAGS="$CXXFLAGS"
15909 ac_save_LIBS="$LIBS"
15910 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15911 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
15912 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15913 rm -f conf.libOggFLACtest
15914 if test "$cross_compiling" = yes; then
15915 echo $ac_n "cross compiling; assumed OK... $ac_c"
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15925 #include <stdlib.h>
15926 #include <string.h>
15927 #include <OggFLAC/stream_decoder.h>
15931 system("touch conf.libOggFLACtest");
15937 rm -f conftest$ac_exeext
15938 if { (ac_try="$ac_link"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_link") 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15948 { (case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_try") 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15959 echo "$as_me: program exited with status $ac_status" >&5
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ( exit $ac_status )
15966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15970 CFLAGS="$ac_save_CFLAGS"
15971 LIBS="$ac_save_LIBS"
15974 if test "x$no_libOggFLAC" = "x" ; then
15975 { echo "$as_me:$LINENO: result: yes" >&5
15976 echo "${ECHO_T}yes" >&6; }
15978 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
15979 for f in $LIBOGGFLAC_CFLAGS; do
15981 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
15982 *) CFLAGS="$CFLAGS $f" ;;
15986 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15989 { echo "$as_me:$LINENO: result: no" >&5
15990 echo "${ECHO_T}no" >&6; }
15991 if test -f conf.libOggFLACtest ; then
15994 echo "*** Could not run libOggFLAC test program, checking why..."
15995 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15996 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16005 #include <OggFLAC/stream_decoder.h>
16015 rm -f conftest.$ac_objext conftest$ac_exeext
16016 if { (ac_try="$ac_link"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_link") 2>conftest.er1
16024 grep -v '^ *+' conftest.er1 >conftest.err
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } && {
16029 test -z "$ac_c_werror_flag" ||
16030 test ! -s conftest.err
16031 } && test -s conftest$ac_exeext &&
16032 $as_test_x conftest$ac_exeext; then
16033 echo "*** The test program compiled, but did not run. This usually means"
16034 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
16035 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
16036 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16037 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16038 echo "*** is required on your system"
16040 echo "*** If you have an old version installed, it is best to remove it, although"
16041 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 echo "*** The test program failed to compile or link. See the file config.log for the"
16047 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
16048 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
16049 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
16052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16053 conftest$ac_exeext conftest.$ac_ext
16054 CFLAGS="$ac_save_CFLAGS"
16055 LIBS="$ac_save_LIBS"
16057 LIBOGGFLAC_CFLAGS=""
16063 rm -f conf.libOggFLACtest
16066 { echo "$as_me:$LINENO: result: no" >&5
16067 echo "${ECHO_T}no" >&6; }
16070 { echo "$as_me:$LINENO: checking enable_audio=speex" >&5
16071 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6; }
16072 if test "x$au_enable_speex" = xyes; then
16073 if test "${have_speex+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16083 #include <speex/speex.h>
16084 #include <ogg/ogg.h>
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (ac_try="$ac_link"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_link") 2>conftest.er1
16105 grep -v '^ *+' conftest.er1 >conftest.err
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } && {
16110 test -z "$ac_c_werror_flag" ||
16111 test ! -s conftest.err
16112 } && test -s conftest$ac_exeext &&
16113 $as_test_x conftest$ac_exeext; then
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16123 conftest$ac_exeext conftest.$ac_ext
16126 { echo "$as_me:$LINENO: result: $have_speex" >&5
16127 echo "${ECHO_T}$have_speex" >&6; }
16128 if test "x$have_speex" = xyes; then
16129 SYSEXTRAS="$SYSEXTRAS speex_a.c"
16130 EXTRALIBS="$EXTRALIBS -lspeex -logg"
16131 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
16134 { echo "$as_me:$LINENO: result: no" >&5
16135 echo "${ECHO_T}no" >&6; }
16138 { echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
16139 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6; }
16140 if test "x$au_enable_gogo" = xyes; then
16141 if test "x$MSYS" = "xyes"; then
16142 { echo "$as_me:$LINENO: result: yes" >&5
16143 echo "${ECHO_T}yes" >&6; }
16145 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
16146 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
16148 if test "${ac_cv_header_gogo_gogo_h+set}" = set; then
16149 { echo "$as_me:$LINENO: checking for gogo/gogo.h" >&5
16150 echo $ECHO_N "checking for gogo/gogo.h... $ECHO_C" >&6; }
16151 if test "${ac_cv_header_gogo_gogo_h+set}" = set; then
16152 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 { echo "$as_me:$LINENO: result: $ac_cv_header_gogo_gogo_h" >&5
16155 echo "${ECHO_T}$ac_cv_header_gogo_gogo_h" >&6; }
16157 # Is the header compilable?
16158 { echo "$as_me:$LINENO: checking gogo/gogo.h usability" >&5
16159 echo $ECHO_N "checking gogo/gogo.h usability... $ECHO_C" >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 #include <gogo/gogo.h>
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && {
16183 test -z "$ac_c_werror_flag" ||
16184 test ! -s conftest.err
16185 } && test -s conftest.$ac_objext; then
16186 ac_header_compiler=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_header_compiler=no
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16196 echo "${ECHO_T}$ac_header_compiler" >&6; }
16198 # Is the header present?
16199 { echo "$as_me:$LINENO: checking gogo/gogo.h presence" >&5
16200 echo $ECHO_N "checking gogo/gogo.h presence... $ECHO_C" >&6; }
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 #include <gogo/gogo.h>
16209 if { (ac_try="$ac_cpp conftest.$ac_ext"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16217 grep -v '^ *+' conftest.er1 >conftest.err
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } >/dev/null && {
16222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16223 test ! -s conftest.err
16225 ac_header_preproc=yes
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ac_header_preproc=no
16233 rm -f conftest.err conftest.$ac_ext
16234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16235 echo "${ECHO_T}$ac_header_preproc" >&6; }
16237 # So? What about this header?
16238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16240 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: accepted by the compiler, rejected by the preprocessor!" >&5
16241 echo "$as_me: WARNING: gogo/gogo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: proceeding with the compiler's result" >&5
16243 echo "$as_me: WARNING: gogo/gogo.h: proceeding with the compiler's result" >&2;}
16244 ac_header_preproc=yes
16247 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: present but cannot be compiled" >&5
16248 echo "$as_me: WARNING: gogo/gogo.h: present but cannot be compiled" >&2;}
16249 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: check for missing prerequisite headers?" >&5
16250 echo "$as_me: WARNING: gogo/gogo.h: check for missing prerequisite headers?" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: see the Autoconf documentation" >&5
16252 echo "$as_me: WARNING: gogo/gogo.h: see the Autoconf documentation" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: section \"Present But Cannot Be Compiled\"" >&5
16254 echo "$as_me: WARNING: gogo/gogo.h: section \"Present But Cannot Be Compiled\"" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: proceeding with the preprocessor's result" >&5
16256 echo "$as_me: WARNING: gogo/gogo.h: proceeding with the preprocessor's result" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: in the future, the compiler will take precedence" >&5
16258 echo "$as_me: WARNING: gogo/gogo.h: in the future, the compiler will take precedence" >&2;}
16260 ## ------------------------------- ##
16261 ## Report this to root@mput.dip.jp ##
16262 ## ------------------------------- ##
16264 ) | sed "s/^/$as_me: WARNING: /" >&2
16267 { echo "$as_me:$LINENO: checking for gogo/gogo.h" >&5
16268 echo $ECHO_N "checking for gogo/gogo.h... $ECHO_C" >&6; }
16269 if test "${ac_cv_header_gogo_gogo_h+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 ac_cv_header_gogo_gogo_h=$ac_header_preproc
16274 { echo "$as_me:$LINENO: result: $ac_cv_header_gogo_gogo_h" >&5
16275 echo "${ECHO_T}$ac_cv_header_gogo_gogo_h" >&6; }
16278 if test $ac_cv_header_gogo_gogo_h = yes; then
16285 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
16286 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
16288 { echo "$as_me:$LINENO: result: no" >&5
16289 echo "${ECHO_T}no" >&6; }
16292 if test "x$au_enable_none" = xyes; then
16293 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
16294 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
16296 { echo "$as_me:$LINENO: checking default output mode" >&5
16297 echo $ECHO_N "checking default output mode... $ECHO_C" >&6; }
16298 if test "x$DEFAULT_PLAYMODE" = x; then
16299 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
16301 case ".$DEFAULT_PLAYMODE" in
16302 .default) TIMIDITY_OUTPUT_ID=d ;;
16303 .oss) TIMIDITY_OUTPUT_ID=d ;;
16304 .alsa) TIMIDITY_OUTPUT_ID=s ;;
16305 .sun) TIMIDITY_OUTPUT_ID=d ;;
16306 .hpux) TIMIDITY_OUTPUT_ID=d ;;
16307 .irix) TIMIDITY_OUTPUT_ID=d ;;
16308 .mme) TIMIDITY_OUTPUT_ID=d ;;
16309 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
16310 .darwin) TIMIDITY_OUTPUT_ID=d ;;
16311 .w32) TIMIDITY_OUTPUT_ID=d ;;
16312 .alib) TIMIDITY_OUTPUT_ID=A ;;
16313 .nas) TIMIDITY_OUTPUT_ID=n ;;
16314 .arts) TIMIDITY_OUTPUT_ID=R ;;
16315 .esd) TIMIDITY_OUTPUT_ID=e ;;
16316 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
16317 .npipe) TIMIDITY_OUTPUT_ID=N ;;
16318 .wav) TIMIDITY_OUTPUT_ID=w ;;
16319 .au) TIMIDITY_OUTPUT_ID=u ;;
16320 .aiff) TIMIDITY_OUTPUT_ID=a ;;
16321 .list) TIMIDITY_OUTPUT_ID=l ;;
16322 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
16323 .flac) TIMIDITY_OUTPUT_ID=F ;;
16324 .speex) TIMIDITY_OUTPUT_ID=S ;;
16325 .gogo) TIMIDITY_OUTPUT_ID=g ;;
16326 .jack) TIMIDITY_OUTPUT_ID=j ;;
16327 .ao) TIMIDITY_OUTPUT_ID=O ;;
16328 *) TIMIDITY_OUTPUT_ID= ;;
16330 { echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
16331 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6; }
16335 # Interface Section
16338 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng npsyn'
16340 # Check whether --enable-interface was given.
16341 if test "${enable_interface+set}" = set; then
16342 enableval=$enable_interface; for i in `echo $enableval | sed 's/,/ /g'`; do
16343 eval "enable_$i=yes"
16348 # Dynamic link configuration
16349 # Check whether --enable-dynamic was given.
16350 if test "${enable_dynamic+set}" = set; then
16351 enableval=$enable_dynamic; if test "x$enable_dynamic" = xyes; then
16352 enable_dynamic=dynamic
16353 elif test "x$enable_dynamic" != xno; then
16354 for i in `echo $enableval | sed 's/,/ /g'`; do
16355 eval "enable_$i=dynamic"
16362 for i in $interface_targets; do
16363 eval "join_targets=$join_targets\$enable_$i"
16366 case ".$join_targets" in
16367 .*dynamic*) NEEDDLOPEN=yes;;
16371 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
16372 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
16374 if test "$NEEDDLOPEN" = "yes"; then
16377 { echo "$as_me:$LINENO: checking for LoadLibrary" >&5
16378 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6; }
16379 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 #include <windows.h>
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_link") 2>conftest.er1
16408 grep -v '^ *+' conftest.er1 >conftest.err
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest$ac_exeext &&
16416 $as_test_x conftest$ac_exeext; then
16417 wapi_cv_func_LoadLibrary=yes
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 wapi_cv_func_LoadLibrary=no
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426 conftest$ac_exeext conftest.$ac_ext
16429 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
16430 { echo "$as_me:$LINENO: result: yes" >&5
16431 echo "${ECHO_T}yes" >&6; }
16434 { echo "$as_me:$LINENO: result: no" >&5
16435 echo "${ECHO_T}no" >&6; }
16438 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
16440 if test "$have_dl" = "no"; then
16441 { echo "$as_me:$LINENO: checking for shl_load" >&5
16442 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16443 if test "${ac_cv_func_shl_load+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 cat >conftest.$ac_ext <<_ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16454 #define shl_load innocuous_shl_load
16456 /* System header to define __stub macros and hopefully few prototypes,
16457 which can conflict with char shl_load (); below.
16458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16459 <limits.h> exists even on freestanding compilers. */
16462 # include <limits.h>
16464 # include <assert.h>
16469 /* Override any GCC internal prototype to avoid an error.
16470 Use char because int might match the return type of a GCC
16471 builtin and then its argument prototype would still apply. */
16476 /* The GNU C library defines this for functions which it implements
16477 to always fail with ENOSYS. Some functions are actually named
16478 something starting with __ and the normal name is an alias. */
16479 #if defined __stub_shl_load || defined __stub___shl_load
16486 return shl_load ();
16491 rm -f conftest.$ac_objext conftest$ac_exeext
16492 if { (ac_try="$ac_link"
16493 case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_link") 2>conftest.er1
16500 grep -v '^ *+' conftest.er1 >conftest.err
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } && {
16505 test -z "$ac_c_werror_flag" ||
16506 test ! -s conftest.err
16507 } && test -s conftest$ac_exeext &&
16508 $as_test_x conftest$ac_exeext; then
16509 ac_cv_func_shl_load=yes
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 ac_cv_func_shl_load=no
16517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16518 conftest$ac_exeext conftest.$ac_ext
16520 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16521 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16522 if test $ac_cv_func_shl_load = yes; then
16527 if test "$have_dl" = "no"; then
16528 { echo "$as_me:$LINENO: checking for NSLinkModule" >&5
16529 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6; }
16530 if test "${ac_cv_func_NSLinkModule+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
16540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16541 #define NSLinkModule innocuous_NSLinkModule
16543 /* System header to define __stub macros and hopefully few prototypes,
16544 which can conflict with char NSLinkModule (); below.
16545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16546 <limits.h> exists even on freestanding compilers. */
16549 # include <limits.h>
16551 # include <assert.h>
16554 #undef NSLinkModule
16556 /* Override any GCC internal prototype to avoid an error.
16557 Use char because int might match the return type of a GCC
16558 builtin and then its argument prototype would still apply. */
16562 char NSLinkModule ();
16563 /* The GNU C library defines this for functions which it implements
16564 to always fail with ENOSYS. Some functions are actually named
16565 something starting with __ and the normal name is an alias. */
16566 #if defined __stub_NSLinkModule || defined __stub___NSLinkModule
16573 return NSLinkModule ();
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (ac_try="$ac_link"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_link") 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } && {
16592 test -z "$ac_c_werror_flag" ||
16593 test ! -s conftest.err
16594 } && test -s conftest$ac_exeext &&
16595 $as_test_x conftest$ac_exeext; then
16596 ac_cv_func_NSLinkModule=yes
16598 echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16601 ac_cv_func_NSLinkModule=no
16604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16605 conftest$ac_exeext conftest.$ac_ext
16607 { echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
16608 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6; }
16609 if test $ac_cv_func_NSLinkModule = yes; then
16614 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
16617 if test "$have_dl" = "no"; then
16618 { echo "$as_me:$LINENO: checking for dlopen" >&5
16619 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16620 if test "${ac_cv_func_dlopen+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16631 #define dlopen innocuous_dlopen
16633 /* System header to define __stub macros and hopefully few prototypes,
16634 which can conflict with char dlopen (); below.
16635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636 <limits.h> exists even on freestanding compilers. */
16639 # include <limits.h>
16641 # include <assert.h>
16646 /* Override any GCC internal prototype to avoid an error.
16647 Use char because int might match the return type of a GCC
16648 builtin and then its argument prototype would still apply. */
16653 /* The GNU C library defines this for functions which it implements
16654 to always fail with ENOSYS. Some functions are actually named
16655 something starting with __ and the normal name is an alias. */
16656 #if defined __stub_dlopen || defined __stub___dlopen
16668 rm -f conftest.$ac_objext conftest$ac_exeext
16669 if { (ac_try="$ac_link"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_link") 2>conftest.er1
16677 grep -v '^ *+' conftest.er1 >conftest.err
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest$ac_exeext &&
16685 $as_test_x conftest$ac_exeext; then
16686 ac_cv_func_dlopen=yes
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ac_cv_func_dlopen=no
16694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16695 conftest$ac_exeext conftest.$ac_ext
16697 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16698 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16699 if test $ac_cv_func_dlopen = yes; then
16704 if test "$have_dl" = "no"; then
16705 { echo "$as_me:$LINENO: checking for dld_init" >&5
16706 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6; }
16707 if test "${ac_cv_func_dld_init+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
16717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16718 #define dld_init innocuous_dld_init
16720 /* System header to define __stub macros and hopefully few prototypes,
16721 which can conflict with char dld_init (); below.
16722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16723 <limits.h> exists even on freestanding compilers. */
16726 # include <limits.h>
16728 # include <assert.h>
16733 /* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16740 /* The GNU C library defines this for functions which it implements
16741 to always fail with ENOSYS. Some functions are actually named
16742 something starting with __ and the normal name is an alias. */
16743 #if defined __stub_dld_init || defined __stub___dld_init
16750 return dld_init ();
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (ac_try="$ac_link"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_link") 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } && {
16769 test -z "$ac_c_werror_flag" ||
16770 test ! -s conftest.err
16771 } && test -s conftest$ac_exeext &&
16772 $as_test_x conftest$ac_exeext; then
16773 ac_cv_func_dld_init=yes
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_cv_func_dld_init=no
16781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16782 conftest$ac_exeext conftest.$ac_ext
16784 { echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
16785 echo "${ECHO_T}$ac_cv_func_dld_init" >&6; }
16786 if test $ac_cv_func_dld_init = yes; then
16791 if test "$have_dl" = "no"; then
16792 { echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
16793 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6; }
16794 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 ac_check_lib_save_LIBS=$LIBS
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16816 return dld_init ();
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest$ac_exeext &&
16838 $as_test_x conftest$ac_exeext; then
16839 ac_cv_lib_dld_dld_init=yes
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_cv_lib_dld_dld_init=no
16847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16848 conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
16852 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6; }
16853 if test $ac_cv_lib_dld_dld_init = yes; then
16854 have_dl=dld;lib_dl_opt=-ldld
16859 { echo "$as_me:$LINENO: checking dynamic link method" >&5
16860 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6; }
16863 { echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
16864 echo "${ECHO_T}use dl_dlopen.c" >&6; }
16865 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
16866 { echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
16867 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6; }
16868 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 case "$ac_cv_header_dlfcn_h" in
16872 yes) i_dlfcn=define;;
16883 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
16885 #include <sys/types.h>
16890 extern int fred() ;
16899 int mode = RTLD_LAZY ;
16901 handle = dlopen("./dyna.$so", mode) ;
16902 if (handle == NULL) {
16907 symbol = dlsym(handle, "fred") ;
16908 if (symbol == NULL) {
16909 /* try putting a leading underscore */
16910 symbol = dlsym(handle, "_fred") ;
16911 if (symbol == NULL) {
16924 : Call the object file tmp-dyna.o in case dlext=o.
16925 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
16926 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
16927 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
16928 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
16931 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
16932 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
16934 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
16935 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
16937 3) timidity_cv_func_dlsym_underscore=yes
16939 4) timidity_cv_func_dlsym_underscore=no
16943 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
16944 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
16946 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
16950 case "x$timidity_cv_func_dlsym_underscore" in
16952 cat >>confdefs.h <<\_ACEOF
16953 #define DLSYM_NEEDS_UNDERSCORE 1
16956 { echo "$as_me:$LINENO: result: yes" >&5
16957 echo "${ECHO_T}yes" >&6; }
16960 { echo "$as_me:$LINENO: result: no" >&5
16961 echo "${ECHO_T}no" >&6; }
16967 { echo "$as_me:$LINENO: result: use dl_dld.c" >&5
16968 echo "${ECHO_T}use dl_dld.c" >&6; }
16969 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
16972 { echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
16973 echo "${ECHO_T}use dl_hpux.c" >&6; }
16974 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
16975 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
16978 { echo "$as_me:$LINENO: result: use dl_w32.c" >&5
16979 echo "${ECHO_T}use dl_w32.c" >&6; }
16980 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
16983 { echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
16984 echo "${ECHO_T}use dl_dyld.c" >&6; }
16985 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
16989 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
16990 echo "$as_me: WARNING: no method to open a shared object" >&2;}
16995 if test "$NEEDDLOPEN" = "yes"; then
16996 cat >> confdefs.h <<EOF
16997 #define IA_DYNAMIC 1
17001 cat >>confdefs.h <<_ACEOF
17002 #define SHARED_LIB_EXT ".$so"
17005 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
17010 if test "$NEEDDLOPEN" = "yes"; then
17012 NEEDDLOPEN_FALSE='#'
17014 NEEDDLOPEN_TRUE='#'
17019 # Check whether --enable-xdnd was given.
17020 if test "${enable_xdnd+set}" = set; then
17021 enableval=$enable_xdnd; if test "$enableval" = "yes"; then
17023 cat >>confdefs.h <<\_ACEOF
17035 if test "x$enable_xdnd" = "xyes"; then
17037 ENABLE_XDND_FALSE='#'
17039 ENABLE_XDND_TRUE='#'
17048 ENABLE_NCURSES_TRUE=
17049 ENABLE_NCURSES_FALSE='#'
17051 ENABLE_NCURSES_TRUE='#'
17052 ENABLE_NCURSES_FALSE=
17055 # Check whether --enable-ncurses was given.
17056 if test "${enable_ncurses+set}" = set; then
17057 enableval=$enable_ncurses; case "x$enable_ncurses" in xyes|xdynamic)
17060 for ac_header in ncurses.h ncurses/curses.h curses.h
17062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 ac_res=`eval echo '${'$as_ac_Header'}'`
17070 { echo "$as_me:$LINENO: result: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17073 # Is the header compilable?
17074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 $ac_includes_default
17083 #include <$ac_header>
17085 rm -f conftest.$ac_objext
17086 if { (ac_try="$ac_compile"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_compile") 2>conftest.er1
17094 grep -v '^ *+' conftest.er1 >conftest.err
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } && {
17099 test -z "$ac_c_werror_flag" ||
17100 test ! -s conftest.err
17101 } && test -s conftest.$ac_objext; then
17102 ac_header_compiler=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_header_compiler=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17112 echo "${ECHO_T}$ac_header_compiler" >&6; }
17114 # Is the header present?
17115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 #include <$ac_header>
17125 if { (ac_try="$ac_cpp conftest.$ac_ext"
17126 case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17133 grep -v '^ *+' conftest.er1 >conftest.err
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } >/dev/null && {
17138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17139 test ! -s conftest.err
17141 ac_header_preproc=yes
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 ac_header_preproc=no
17149 rm -f conftest.err conftest.$ac_ext
17150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17151 echo "${ECHO_T}$ac_header_preproc" >&6; }
17153 # So? What about this header?
17154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17160 ac_header_preproc=yes
17163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17176 ## ------------------------------- ##
17177 ## Report this to root@mput.dip.jp ##
17178 ## ------------------------------- ##
17180 ) | sed "s/^/$as_me: WARNING: /" >&2
17183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 eval "$as_ac_Header=\$ac_header_preproc"
17190 ac_res=`eval echo '${'$as_ac_Header'}'`
17191 { echo "$as_me:$LINENO: result: $ac_res" >&5
17192 echo "${ECHO_T}$ac_res" >&6; }
17195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17196 cat >>confdefs.h <<_ACEOF
17197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17206 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
17208 *) for i in /usr/include /usr/local/include; do
17209 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
17210 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
17211 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
17212 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
17219 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
17220 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
17221 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 ac_check_lib_save_LIBS=$LIBS
17225 LIBS="-lncurses $LIBS"
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } && {
17262 test -z "$ac_c_werror_flag" ||
17263 test ! -s conftest.err
17264 } && test -s conftest$ac_exeext &&
17265 $as_test_x conftest$ac_exeext; then
17266 ac_cv_lib_ncurses_initscr=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_cv_lib_ncurses_initscr=no
17274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17275 conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17278 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
17279 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
17280 if test $ac_cv_lib_ncurses_initscr = yes; then
17281 lib_curses_opt=-lncurses
17283 { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
17284 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6; }
17285 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 ac_check_lib_save_LIBS=$LIBS
17289 LIBS="-lcurses $lib_user32_test $LIBS"
17290 cat >conftest.$ac_ext <<_ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17297 /* Override any GCC internal prototype to avoid an error.
17298 Use char because int might match the return type of a GCC
17299 builtin and then its argument prototype would still apply. */
17303 char PDC_set_ctrl_break ();
17307 return PDC_set_ctrl_break ();
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (ac_try="$ac_link"
17314 case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_link") 2>conftest.er1
17321 grep -v '^ *+' conftest.er1 >conftest.err
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_c_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest$ac_exeext &&
17329 $as_test_x conftest$ac_exeext; then
17330 ac_cv_lib_curses_PDC_set_ctrl_break=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_lib_curses_PDC_set_ctrl_break=no
17338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17339 conftest$ac_exeext conftest.$ac_ext
17340 LIBS=$ac_check_lib_save_LIBS
17342 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
17343 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6; }
17344 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
17345 lib_curses_opt=-lcurses
17347 cat >>confdefs.h <<\_ACEOF
17348 #define USE_PDCURSES 1
17351 lib_user32_opt="$lib_user32_test"
17354 { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
17355 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6; }
17356 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-lpdcurses $LIBS"
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 /* Override any GCC internal prototype to avoid an error.
17369 Use char because int might match the return type of a GCC
17370 builtin and then its argument prototype would still apply. */
17374 char PDC_set_ctrl_break ();
17378 return PDC_set_ctrl_break ();
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_link") 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && {
17397 test -z "$ac_c_werror_flag" ||
17398 test ! -s conftest.err
17399 } && test -s conftest$ac_exeext &&
17400 $as_test_x conftest$ac_exeext; then
17401 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
17409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17413 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
17414 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6; }
17415 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
17416 lib_curses_opt=-lpdcurses
17418 cat >>confdefs.h <<\_ACEOF
17419 #define USE_PDCURSES 1
17422 lib_user32_opt="$lib_user32_test"
17427 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
17428 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
17429 if test "${ac_cv_lib_curses_initscr+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 ac_check_lib_save_LIBS=$LIBS
17433 LIBS="-lcurses $LIBS"
17434 cat >conftest.$ac_ext <<_ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (ac_try="$ac_link"
17458 case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_link") 2>conftest.er1
17465 grep -v '^ *+' conftest.er1 >conftest.err
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && {
17470 test -z "$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 } && test -s conftest$ac_exeext &&
17473 $as_test_x conftest$ac_exeext; then
17474 ac_cv_lib_curses_initscr=yes
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_lib_curses_initscr=no
17482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17483 conftest$ac_exeext conftest.$ac_ext
17484 LIBS=$ac_check_lib_save_LIBS
17486 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
17487 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
17488 if test $ac_cv_lib_curses_initscr = yes; then
17489 lib_curses_opt=-lcurses
17491 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
17492 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
17498 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
17499 lib_curses_opt=libpdcurses.lib
17501 cat >>confdefs.h <<\_ACEOF
17502 #define USE_PDCURSES 1
17506 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
17507 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
17524 case "x$enable_ncurses" in
17526 cat >> confdefs.h <<EOF
17527 #define IA_NCURSES 1
17533 ENABLE_NCURSES_TRUE=
17534 ENABLE_NCURSES_FALSE='#'
17536 ENABLE_NCURSES_TRUE='#'
17537 ENABLE_NCURSES_FALSE=
17540 LIBS="$LIBS $lib_curses_opt"
17543 EXTRALIBS="$EXTRALIBS -lmytinfo"
17546 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
17550 dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
17551 n_so_libs="$lib_curses_opt"
17554 EXTRALIBS="$EXTRALIBS -lmytinfo"
17569 ENABLE_SLANG_FALSE='#'
17571 ENABLE_SLANG_TRUE='#'
17572 ENABLE_SLANG_FALSE=
17575 # Check whether --enable-slang was given.
17576 if test "${enable_slang+set}" = set; then
17577 enableval=$enable_slang; case "x$enable_slang" in xyes|xdynamic) { echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
17578 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; }
17579 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-lslang $LIBS"
17584 cat >conftest.$ac_ext <<_ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17597 char SLang_init_tty ();
17601 return SLang_init_tty ();
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 ac_cv_lib_slang_SLang_init_tty=yes
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_cv_lib_slang_SLang_init_tty=no
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 LIBS=$ac_check_lib_save_LIBS
17636 { echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
17637 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; }
17638 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
17642 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
17643 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
17649 for ac_header in slang/slang.h slang.h
17651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 ac_res=`eval echo '${'$as_ac_Header'}'`
17659 { echo "$as_me:$LINENO: result: $ac_res" >&5
17660 echo "${ECHO_T}$ac_res" >&6; }
17662 # Is the header compilable?
17663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17665 cat >conftest.$ac_ext <<_ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 $ac_includes_default
17672 #include <$ac_header>
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_compile") 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest.$ac_objext; then
17691 ac_header_compiler=yes
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_header_compiler=no
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17701 echo "${ECHO_T}$ac_header_compiler" >&6; }
17703 # Is the header present?
17704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 #include <$ac_header>
17714 if { (ac_try="$ac_cpp conftest.$ac_ext"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } >/dev/null && {
17727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17730 ac_header_preproc=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_header_preproc=no
17738 rm -f conftest.err conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17740 echo "${ECHO_T}$ac_header_preproc" >&6; }
17742 # So? What about this header?
17743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17749 ac_header_preproc=yes
17752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17765 ## ------------------------------- ##
17766 ## Report this to root@mput.dip.jp ##
17767 ## ------------------------------- ##
17769 ) | sed "s/^/$as_me: WARNING: /" >&2
17772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 eval "$as_ac_Header=\$ac_header_preproc"
17779 ac_res=`eval echo '${'$as_ac_Header'}'`
17780 { echo "$as_me:$LINENO: result: $ac_res" >&5
17781 echo "${ECHO_T}$ac_res" >&6; }
17784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17785 cat >>confdefs.h <<_ACEOF
17786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17796 case "x$enable_slang" in
17798 cat >> confdefs.h <<EOF
17806 ENABLE_SLANG_FALSE='#'
17808 ENABLE_SLANG_TRUE='#'
17809 ENABLE_SLANG_FALSE=
17814 { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
17815 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
17816 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 ac_check_lib_save_LIBS=$LIBS
17820 LIBS="-ltermcap $LIBS"
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17828 /* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17843 rm -f conftest.$ac_objext conftest$ac_exeext
17844 if { (ac_try="$ac_link"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_link") 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); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest$ac_exeext &&
17860 $as_test_x conftest$ac_exeext; then
17861 ac_cv_lib_termcap_initscr=yes
17863 echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 ac_cv_lib_termcap_initscr=no
17869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870 conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17873 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
17874 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
17875 if test $ac_cv_lib_termcap_initscr = yes; then
17876 LIBS="$LIBS -lslang -ltermcap"
17877 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
17879 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
17880 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
17887 LIBS="$LIBS -lslang"
17888 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
17894 dynamic_targets="$dynamic_targets if_slang.\$(so)"
17895 s_so_libs="-lslang"
17896 { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
17897 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
17898 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 ac_check_lib_save_LIBS=$LIBS
17902 LIBS="-ltermcap $LIBS"
17903 cat >conftest.$ac_ext <<_ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17910 /* Override any GCC internal prototype to avoid an error.
17911 Use char because int might match the return type of a GCC
17912 builtin and then its argument prototype would still apply. */
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } && {
17939 test -z "$ac_c_werror_flag" ||
17940 test ! -s conftest.err
17941 } && test -s conftest$ac_exeext &&
17942 $as_test_x conftest$ac_exeext; then
17943 ac_cv_lib_termcap_initscr=yes
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 ac_cv_lib_termcap_initscr=no
17951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17955 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
17956 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
17957 if test $ac_cv_lib_termcap_initscr = yes; then
17958 s_so_libs="$s_so_libs -ltermcap"
17974 ENABLE_MOTIF_FALSE='#'
17976 ENABLE_MOTIF_TRUE='#'
17977 ENABLE_MOTIF_FALSE=
17980 # Check whether --enable-motif was given.
17981 if test "${enable_motif+set}" = set; then
17982 enableval=$enable_motif; case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
17983 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
17984 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
17985 { (exit 1); exit 1; }; }
17987 if test "x$have_xm" != xyes; then
17988 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
17989 echo "$as_me: WARNING: Motif library is not found." >&2;}
17995 case "x$enable_motif" in
17997 cat >> confdefs.h <<EOF
18005 ENABLE_MOTIF_FALSE='#'
18007 ENABLE_MOTIF_TRUE='#'
18008 ENABLE_MOTIF_FALSE=
18013 lib_xext_opt=-lXext
18014 if test "x$have_xprelibs" = xyes; then
18015 lib_xprelibs_opt='-lSM -lICE'
18017 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
18021 dynamic_targets="$dynamic_targets if_motif.\$(so)"
18022 if test x$have_xprelibs = xyes; then
18023 m_so_libs="-lXext -lSM -lICE"
18025 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
18039 ENABLE_TCLTK_FALSE='#'
18041 ENABLE_TCLTK_TRUE='#'
18042 ENABLE_TCLTK_FALSE=
18045 # Check whether --enable-tcltk was given.
18046 if test "${enable_tcltk+set}" = set; then
18047 enableval=$enable_tcltk; case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
18048 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
18049 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
18050 { (exit 1); exit 1; }; }
18053 KEEPCPPFLAGS=$CPPFLAGS
18054 KEEPLDFLAGS=$LDFLAGS
18057 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
18058 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
18059 LIBS="$LIBS $lib_dl_opt"
18063 for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
18064 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
18065 { echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
18066 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6; }
18067 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 ac_check_lib_save_LIBS=$LIBS
18072 cat >conftest.$ac_ext <<_ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18089 return Tcl_Init ();
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_link") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && {
18108 test -z "$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18110 } && test -s conftest$ac_exeext &&
18111 $as_test_x conftest$ac_exeext; then
18112 eval "$as_ac_Lib=yes"
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 eval "$as_ac_Lib=no"
18120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18121 conftest$ac_exeext conftest.$ac_ext
18122 LIBS=$ac_check_lib_save_LIBS
18124 ac_res=`eval echo '${'$as_ac_Lib'}'`
18125 { echo "$as_me:$LINENO: result: $ac_res" >&5
18126 echo "${ECHO_T}$ac_res" >&6; }
18127 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18132 LIBS="$LIBS $tcl_lib"
18133 for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
18134 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
18135 { echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
18136 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6; }
18137 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 ac_check_lib_save_LIBS=$LIBS
18142 cat >conftest.$ac_ext <<_ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18149 /* Override any GCC internal prototype to avoid an error.
18150 Use char because int might match the return type of a GCC
18151 builtin and then its argument prototype would still apply. */
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_link") 2>conftest.er1
18173 grep -v '^ *+' conftest.er1 >conftest.err
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && {
18178 test -z "$ac_c_werror_flag" ||
18179 test ! -s conftest.err
18180 } && test -s conftest$ac_exeext &&
18181 $as_test_x conftest$ac_exeext; then
18182 eval "$as_ac_Lib=yes"
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 eval "$as_ac_Lib=no"
18190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18191 conftest$ac_exeext conftest.$ac_ext
18192 LIBS=$ac_check_lib_save_LIBS
18194 ac_res=`eval echo '${'$as_ac_Lib'}'`
18195 { echo "$as_me:$LINENO: result: $ac_res" >&5
18196 echo "${ECHO_T}$ac_res" >&6; }
18197 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18204 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
18205 CPPFLAGS=$KEEPCPPFLAGS
18206 LDFLAGS=$KEEPLDFLAGS
18208 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
18209 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
18211 tcltk_dep='tclIndex'
18216 case "x$enable_tcltk" in
18218 cat >> confdefs.h <<EOF
18226 ENABLE_TCLTK_FALSE='#'
18228 ENABLE_TCLTK_TRUE='#'
18229 ENABLE_TCLTK_FALSE=
18232 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
18235 EXTRALIBS="$EXTRALIBS -lipc"
18238 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
18242 dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
18243 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
18246 k_so_libs="$k_so_libs -lipc"
18249 k_so_libs="$k_so_libs -lX11 -lm"
18260 if test "x$enable_tcltk" = "xdynamic"; then
18261 ENABLE_DYNAMIC_TCLTK_TRUE=
18262 ENABLE_DYNAMIC_TCLTK_FALSE='#'
18264 ENABLE_DYNAMIC_TCLTK_TRUE='#'
18265 ENABLE_DYNAMIC_TCLTK_FALSE=
18273 ENABLE_EMACS_FALSE='#'
18275 ENABLE_EMACS_TRUE='#'
18276 ENABLE_EMACS_FALSE=
18279 # Check whether --enable-emacs was given.
18280 if test "${enable_emacs+set}" = set; then
18281 enableval=$enable_emacs; case "x$enable_emacs" in xyes|xdynamic) ;; esac
18284 case "x$enable_emacs" in
18286 cat >> confdefs.h <<EOF
18294 ENABLE_EMACS_FALSE='#'
18296 ENABLE_EMACS_TRUE='#'
18297 ENABLE_EMACS_FALSE=
18300 ELFILES="$ELFILES timidity.el"
18301 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
18305 dynamic_targets="$dynamic_targets if_emacs.\$(so)"
18306 ELFILES="$ELFILES timidity.el"
18319 ENABLE_VT100_FALSE='#'
18321 ENABLE_VT100_TRUE='#'
18322 ENABLE_VT100_FALSE=
18325 # Check whether --enable-vt100 was given.
18326 if test "${enable_vt100+set}" = set; then
18327 enableval=$enable_vt100; case "x$enable_vt100" in xyes|xdynamic) ;; esac
18330 case "x$enable_vt100" in
18332 cat >> confdefs.h <<EOF
18340 ENABLE_VT100_FALSE='#'
18342 ENABLE_VT100_TRUE='#'
18343 ENABLE_VT100_FALSE=
18346 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
18349 dynamic_targets="$dynamic_targets if_vt100.\$(so)"
18363 ENABLE_XAW_FALSE='#'
18365 ENABLE_XAW_TRUE='#'
18369 # Check whether --enable-xaw was given.
18370 if test "${enable_xaw+set}" = set; then
18371 enableval=$enable_xaw; case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
18372 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
18373 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
18374 { (exit 1); exit 1; }; }
18376 if test "x$have_xaw" = "xno"; then
18377 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
18378 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
18383 case "x$enable_xaw" in
18385 cat >> confdefs.h <<EOF
18393 ENABLE_XAW_FALSE='#'
18395 ENABLE_XAW_TRUE='#'
18399 if test "x$have_xext" = xyes; then
18400 lib_xext_opt=-lXext
18402 if test "x$have_xprelibs" = xyes; then
18403 lib_xprelibs_opt='-lSM -lICE'
18407 case "$have_xaw" in
18413 cat >>confdefs.h <<\_ACEOF
18417 lib_xaw_opt=-lXaw3d
18421 cat >>confdefs.h <<\_ACEOF
18425 lib_xaw_opt="-lXpm -lXawPlus"
18429 cat >>confdefs.h <<\_ACEOF
18433 lib_xaw_opt=-lneXtaw
18436 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c x_trace.c $XDND_SRCS"
18440 dynamic_targets="$dynamic_targets if_xaw.\$(so)"
18441 if test "x$have_xext" = xyes; then
18442 a_so_libs="-lXext -lX11"
18448 a_so_libs="$a_so_libs -lcc_dynamic"
18451 if test "x$have_xprelibs" = xyes; then
18452 a_so_libs="-lSM -lICE $a_so_libs"
18454 if test "x$have_xaw" = xyes; then
18455 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
18456 elif test "x$have_xaw" = x3d; then
18458 cat >>confdefs.h <<\_ACEOF
18462 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
18464 a_so_libs="$ldflags_x_opt $a_so_libs"
18475 if test "x$enable_xaw" = "xdynamic"; then
18476 ENABLE_DYNAMIC_XAW_TRUE=
18477 ENABLE_DYNAMIC_XAW_FALSE='#'
18479 ENABLE_DYNAMIC_XAW_TRUE='#'
18480 ENABLE_DYNAMIC_XAW_FALSE=
18488 ENABLE_XSKIN_FALSE='#'
18490 ENABLE_XSKIN_TRUE='#'
18491 ENABLE_XSKIN_FALSE=
18494 # Check whether --enable-xskin was given.
18495 if test "${enable_xskin+set}" = set; then
18496 enableval=$enable_xskin; case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
18497 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
18498 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
18499 { (exit 1); exit 1; }; }
18504 case "x$enable_xskin" in
18506 cat >> confdefs.h <<EOF
18514 ENABLE_XSKIN_FALSE='#'
18516 ENABLE_XSKIN_TRUE='#'
18517 ENABLE_XSKIN_FALSE=
18520 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
18523 dynamic_targets="$dynamic_targets if_xskin.\$(so)"
18524 i_so_libs="$ldflags_x_opt -lX11"
18537 ENABLE_GTK_FALSE='#'
18539 ENABLE_GTK_TRUE='#'
18543 # Check whether --enable-gtk was given.
18544 if test "${enable_gtk+set}" = set; then
18545 enableval=$enable_gtk; case "x$enable_gtk" in xyes|xdynamic) # Check whether --enable-gtktest was given.
18546 if test "${enable_gtktest+set}" = set; then
18547 enableval=$enable_gtktest;
18553 pkg_config_args=gtk+-2.0
18558 pkg_config_args="$pkg_config_args gthread-2.0"
18565 # Extract the first word of "pkg-config", so it can be a program name with args.
18566 set dummy pkg-config; ac_word=$2
18567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 case $PKG_CONFIG in
18574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18578 for as_dir in $PATH
18581 test -z "$as_dir" && as_dir=.
18582 for ac_exec_ext in '' $ac_executable_extensions; do
18583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18597 if test -n "$PKG_CONFIG"; then
18598 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18599 echo "${ECHO_T}$PKG_CONFIG" >&6; }
18601 { echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6; }
18607 if test x$PKG_CONFIG != xno ; then
18608 if pkg-config --atleast-pkgconfig-version 0.7 ; then
18611 echo *** pkg-config too old; version 0.7 or better required.
18619 min_gtk_version=2.0.0
18620 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
18621 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
18623 if test x$PKG_CONFIG != xno ; then
18624 ## don't try to run the test against uninstalled libtool libs
18625 if $PKG_CONFIG --uninstalled $pkg_config_args; then
18626 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
18630 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
18637 if test x"$no_gtk" = x ; then
18638 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
18639 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
18640 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
18641 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18642 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
18643 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18644 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
18645 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18646 if test "x$enable_gtktest" = "xyes" ; then
18647 ac_save_CFLAGS="$CFLAGS"
18648 ac_save_LIBS="$LIBS"
18649 CFLAGS="$CFLAGS $GTK_CFLAGS"
18650 LIBS="$GTK_LIBS $LIBS"
18652 if test "$cross_compiling" = yes; then
18653 echo $ac_n "cross compiling; assumed OK... $ac_c"
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18662 #include <gtk/gtk.h>
18664 #include <stdlib.h>
18669 int major, minor, micro;
18672 system ("touch conf.gtktest");
18674 /* HP/UX 9 (%@#!) writes to sscanf strings */
18675 tmp_version = g_strdup("$min_gtk_version");
18676 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
18677 printf("%s, bad version string\n", "$min_gtk_version");
18681 if ((gtk_major_version != $gtk_config_major_version) ||
18682 (gtk_minor_version != $gtk_config_minor_version) ||
18683 (gtk_micro_version != $gtk_config_micro_version))
18685 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
18686 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
18687 gtk_major_version, gtk_minor_version, gtk_micro_version);
18688 printf ("*** was found! If pkg-config was correct, then it is best\n");
18689 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
18690 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18691 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18692 printf("*** required on your system.\n");
18693 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
18694 printf("*** to point to the correct configuration files\n");
18696 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
18697 (gtk_minor_version != GTK_MINOR_VERSION) ||
18698 (gtk_micro_version != GTK_MICRO_VERSION))
18700 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
18701 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
18702 printf("*** library (version %d.%d.%d)\n",
18703 gtk_major_version, gtk_minor_version, gtk_micro_version);
18707 if ((gtk_major_version > major) ||
18708 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
18709 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
18715 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
18716 gtk_major_version, gtk_minor_version, gtk_micro_version);
18717 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
18718 major, minor, micro);
18719 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
18721 printf("*** If you have already installed a sufficiently new version, this error\n");
18722 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
18723 printf("*** being found. The easiest way to fix this is to remove the old version\n");
18724 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
18725 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
18726 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18727 printf("*** so that the correct libraries are found at run-time))\n");
18734 rm -f conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18756 echo "$as_me: program exited with status $ac_status" >&5
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 ( exit $ac_status )
18763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18767 CFLAGS="$ac_save_CFLAGS"
18768 LIBS="$ac_save_LIBS"
18771 if test "x$no_gtk" = x ; then
18772 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
18773 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE_GTK_2 1
18780 { echo "$as_me:$LINENO: result: no" >&5
18781 echo "${ECHO_T}no" >&6; }
18782 if test "$PKG_CONFIG" = "no" ; then
18783 echo "*** A new enough version of pkg-config was not found."
18784 echo "*** See http://pkgconfig.sourceforge.net"
18786 if test -f conf.gtktest ; then
18789 echo "*** Could not run GTK+ test program, checking why..."
18790 ac_save_CFLAGS="$CFLAGS"
18791 ac_save_LIBS="$LIBS"
18792 CFLAGS="$CFLAGS $GTK_CFLAGS"
18793 LIBS="$LIBS $GTK_LIBS"
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18801 #include <gtk/gtk.h>
18807 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (ac_try="$ac_link"
18814 case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_link") 2>conftest.er1
18821 grep -v '^ *+' conftest.er1 >conftest.err
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } && {
18826 test -z "$ac_c_werror_flag" ||
18827 test ! -s conftest.err
18828 } && test -s conftest$ac_exeext &&
18829 $as_test_x conftest$ac_exeext; then
18830 echo "*** The test program compiled, but did not run. This usually means"
18831 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
18832 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
18833 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18834 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18835 echo "*** is required on your system"
18837 echo "*** If you have an old version installed, it is best to remove it, although"
18838 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18843 echo "*** The test program failed to compile or link. See the file config.log for the"
18844 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18849 CFLAGS="$ac_save_CFLAGS"
18850 LIBS="$ac_save_LIBS"
18856 # Check whether --with-gtk-prefix was given.
18857 if test "${with_gtk_prefix+set}" = set; then
18858 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
18860 gtk_config_prefix=""
18864 # Check whether --with-gtk-exec-prefix was given.
18865 if test "${with_gtk_exec_prefix+set}" = set; then
18866 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
18868 gtk_config_exec_prefix=""
18871 # Check whether --enable-gtktest was given.
18872 if test "${enable_gtktest+set}" = set; then
18873 enableval=$enable_gtktest;
18883 gtk_config_args="$gtk_config_args gthread"
18888 if test x$gtk_config_exec_prefix != x ; then
18889 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
18890 if test x${GTK_CONFIG+set} != xset ; then
18891 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
18894 if test x$gtk_config_prefix != x ; then
18895 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
18896 if test x${GTK_CONFIG+set} != xset ; then
18897 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
18901 # Extract the first word of "gtk-config", so it can be a program name with args.
18902 set dummy gtk-config; ac_word=$2
18903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18905 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 case $GTK_CONFIG in
18910 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
18913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18914 for as_dir in $PATH
18917 test -z "$as_dir" && as_dir=.
18918 for ac_exec_ext in '' $ac_executable_extensions; do
18919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18920 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18928 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
18932 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
18933 if test -n "$GTK_CONFIG"; then
18934 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
18935 echo "${ECHO_T}$GTK_CONFIG" >&6; }
18937 { echo "$as_me:$LINENO: result: no" >&5
18938 echo "${ECHO_T}no" >&6; }
18942 min_gtk_version=1.1.3
18943 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
18944 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
18946 if test "$GTK_CONFIG" = "no" ; then
18949 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
18950 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
18951 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
18952 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18953 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
18954 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18955 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
18956 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18957 if test "x$enable_gtktest" = "xyes" ; then
18958 ac_save_CFLAGS="$CFLAGS"
18959 ac_save_LIBS="$LIBS"
18960 CFLAGS="$CFLAGS $GTK_CFLAGS"
18961 LIBS="$GTK_LIBS $LIBS"
18963 if test "$cross_compiling" = yes; then
18964 echo $ac_n "cross compiling; assumed OK... $ac_c"
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18973 #include <gtk/gtk.h>
18975 #include <stdlib.h>
18980 int major, minor, micro;
18983 system ("touch conf.gtktest");
18985 /* HP/UX 9 (%@#!) writes to sscanf strings */
18986 tmp_version = g_strdup("$min_gtk_version");
18987 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
18988 printf("%s, bad version string\n", "$min_gtk_version");
18992 if ((gtk_major_version != $gtk_config_major_version) ||
18993 (gtk_minor_version != $gtk_config_minor_version) ||
18994 (gtk_micro_version != $gtk_config_micro_version))
18996 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
18997 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
18998 gtk_major_version, gtk_minor_version, gtk_micro_version);
18999 printf ("*** was found! If gtk-config was correct, then it is best\n");
19000 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19001 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19002 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19003 printf("*** required on your system.\n");
19004 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19005 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19006 printf("*** before re-running configure\n");
19008 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19009 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19010 (gtk_minor_version != GTK_MINOR_VERSION) ||
19011 (gtk_micro_version != GTK_MICRO_VERSION))
19013 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19014 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19015 printf("*** library (version %d.%d.%d)\n",
19016 gtk_major_version, gtk_minor_version, gtk_micro_version);
19018 #endif /* defined (GTK_MAJOR_VERSION) ... */
19021 if ((gtk_major_version > major) ||
19022 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19023 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19029 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19030 gtk_major_version, gtk_minor_version, gtk_micro_version);
19031 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19032 major, minor, micro);
19033 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19035 printf("*** If you have already installed a sufficiently new version, this error\n");
19036 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19037 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19038 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19039 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19040 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19041 printf("*** so that the correct libraries are found at run-time))\n");
19048 rm -f conftest$ac_exeext
19049 if { (ac_try="$ac_link"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_link") 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19070 echo "$as_me: program exited with status $ac_status" >&5
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ( exit $ac_status )
19077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19081 CFLAGS="$ac_save_CFLAGS"
19082 LIBS="$ac_save_LIBS"
19085 if test "x$no_gtk" = x ; then
19086 { echo "$as_me:$LINENO: result: yes" >&5
19087 echo "${ECHO_T}yes" >&6; }
19090 { echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6; }
19092 if test "$GTK_CONFIG" = "no" ; then
19093 echo "*** The gtk-config script installed by GTK could not be found"
19094 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
19095 echo "*** your path, or set the GTK_CONFIG environment variable to the"
19096 echo "*** full path to gtk-config."
19098 if test -f conf.gtktest ; then
19101 echo "*** Could not run GTK test program, checking why..."
19102 CFLAGS="$CFLAGS $GTK_CFLAGS"
19103 LIBS="$LIBS $GTK_LIBS"
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 #include <gtk/gtk.h>
19117 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_link") 2>conftest.er1
19131 grep -v '^ *+' conftest.er1 >conftest.err
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && {
19136 test -z "$ac_c_werror_flag" ||
19137 test ! -s conftest.err
19138 } && test -s conftest$ac_exeext &&
19139 $as_test_x conftest$ac_exeext; then
19140 echo "*** The test program compiled, but did not run. This usually means"
19141 echo "*** that the run-time linker is not finding GTK or finding the wrong"
19142 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
19143 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19144 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19145 echo "*** is required on your system"
19147 echo "*** If you have an old version installed, it is best to remove it, although"
19148 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19150 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
19151 echo "*** came with the system with the command"
19153 echo "*** rpm --erase --nodeps gtk gtk-devel"
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 echo "*** The test program failed to compile or link. See the file config.log for the"
19159 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
19160 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
19161 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
19164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19165 conftest$ac_exeext conftest.$ac_ext
19166 CFLAGS="$ac_save_CFLAGS"
19167 LIBS="$ac_save_LIBS"
19185 case "x$enable_gtk" in
19187 cat >> confdefs.h <<EOF
19195 ENABLE_GTK_FALSE='#'
19197 ENABLE_GTK_TRUE='#'
19201 LIBS="$LIBS $GTK_LIBS"
19202 for f in $GTK_CFLAGS; do
19204 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
19205 *) CFLAGS="$CFLAGS $f" ;;
19209 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
19213 dynamic_targets="$dynamic_targets if_gtk.\$(so)"
19214 if test "x$GCC" = xyes; then
19215 for i in $GTK_LIBS; do
19218 *) g_so_libs="$g_so_libs $i" ;;
19222 g_so_libs="$GTK_LIBS"
19224 for f in $GTK_CFLAGS; do
19226 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
19227 *) CFLAGS="$CFLAGS $f" ;;
19242 ENABLE_SERVER_TRUE=
19243 ENABLE_SERVER_FALSE='#'
19245 ENABLE_SERVER_TRUE='#'
19246 ENABLE_SERVER_FALSE=
19249 # Check whether --enable-server was given.
19250 if test "${enable_server+set}" = set; then
19251 enableval=$enable_server; case "x$enable_server" in xyes|xdynamic) ;; esac
19254 case "x$enable_server" in
19256 cat >> confdefs.h <<EOF
19257 #define IA_SERVER 1
19263 ENABLE_SERVER_TRUE=
19264 ENABLE_SERVER_FALSE='#'
19266 ENABLE_SERVER_TRUE='#'
19267 ENABLE_SERVER_FALSE=
19270 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
19272 for ac_header in sys/soundcard.h
19274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 ac_res=`eval echo '${'$as_ac_Header'}'`
19282 { echo "$as_me:$LINENO: result: $ac_res" >&5
19283 echo "${ECHO_T}$ac_res" >&6; }
19285 # Is the header compilable?
19286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19288 cat >conftest.$ac_ext <<_ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 $ac_includes_default
19295 #include <$ac_header>
19297 rm -f conftest.$ac_objext
19298 if { (ac_try="$ac_compile"
19299 case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_compile") 2>conftest.er1
19306 grep -v '^ *+' conftest.er1 >conftest.err
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } && {
19311 test -z "$ac_c_werror_flag" ||
19312 test ! -s conftest.err
19313 } && test -s conftest.$ac_objext; then
19314 ac_header_compiler=yes
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 ac_header_compiler=no
19322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19324 echo "${ECHO_T}$ac_header_compiler" >&6; }
19326 # Is the header present?
19327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19335 #include <$ac_header>
19337 if { (ac_try="$ac_cpp conftest.$ac_ext"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } >/dev/null && {
19350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19353 ac_header_preproc=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_header_preproc=no
19361 rm -f conftest.err conftest.$ac_ext
19362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19363 echo "${ECHO_T}$ac_header_preproc" >&6; }
19365 # So? What about this header?
19366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19372 ac_header_preproc=yes
19375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19388 ## ------------------------------- ##
19389 ## Report this to root@mput.dip.jp ##
19390 ## ------------------------------- ##
19392 ) | sed "s/^/$as_me: WARNING: /" >&2
19395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 eval "$as_ac_Header=\$ac_header_preproc"
19402 ac_res=`eval echo '${'$as_ac_Header'}'`
19403 { echo "$as_me:$LINENO: result: $ac_res" >&5
19404 echo "${ECHO_T}$ac_res" >&6; }
19407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19408 cat >>confdefs.h <<_ACEOF
19409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19419 dynamic_targets="$dynamic_targets if_server.\$(so)"
19432 ENABLE_ALSASEQ_TRUE=
19433 ENABLE_ALSASEQ_FALSE='#'
19435 ENABLE_ALSASEQ_TRUE='#'
19436 ENABLE_ALSASEQ_FALSE=
19439 # Check whether --enable-alsaseq was given.
19440 if test "${enable_alsaseq+set}" = set; then
19441 enableval=$enable_alsaseq; case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
19444 case "x$enable_alsaseq" in
19446 cat >> confdefs.h <<EOF
19447 #define IA_ALSASEQ 1
19453 ENABLE_ALSASEQ_TRUE=
19454 ENABLE_ALSASEQ_FALSE='#'
19456 ENABLE_ALSASEQ_TRUE='#'
19457 ENABLE_ALSASEQ_FALSE=
19460 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
19461 alsa_save_CFLAGS="$CFLAGS"
19462 alsa_save_LDFLAGS="$LDFLAGS"
19463 alsa_save_LIBS="$LIBS"
19467 # Check whether --with-alsa-prefix was given.
19468 if test "${with_alsa_prefix+set}" = set; then
19469 withval=$with_alsa_prefix; alsa_prefix="$withval"
19476 # Check whether --with-alsa-inc-prefix was given.
19477 if test "${with_alsa_inc_prefix+set}" = set; then
19478 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
19484 # Check whether --enable-alsatest was given.
19485 if test "${enable_alsatest+set}" = set; then
19486 enableval=$enable_alsatest; enable_alsatest=no
19488 enable_alsatest=yes
19492 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
19493 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
19494 if test "$alsa_inc_prefix" != "" ; then
19495 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
19496 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
19498 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
19499 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
19501 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
19502 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
19503 if test "$alsa_prefix" != "" ; then
19504 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
19505 LDFLAGS="$LDFLAGS $ALSA_LIBS"
19508 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
19509 LIBS=`echo $LIBS | sed 's/-lm//'`
19510 LIBS=`echo $LIBS | sed 's/-ldl//'`
19511 LIBS=`echo $LIBS | sed 's/-lpthread//'`
19512 LIBS=`echo $LIBS | sed 's/ //'`
19513 LIBS="$ALSA_LIBS $LIBS"
19514 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
19515 echo "${ECHO_T}$ALSA_LIBS" >&6; }
19517 min_alsa_version=0.1.1
19518 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
19519 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
19521 alsa_min_major_version=`echo $min_alsa_version | \
19522 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19523 alsa_min_minor_version=`echo $min_alsa_version | \
19524 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19525 alsa_min_micro_version=`echo $min_alsa_version | \
19526 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19531 ac_cpp='$CPP $CPPFLAGS'
19532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536 cat >conftest.$ac_ext <<_ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19543 #include <alsa/asoundlib.h>
19549 /* ensure backward compatibility */
19550 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
19551 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
19553 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
19554 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
19556 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
19557 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
19560 # if(SND_LIB_MAJOR > $alsa_min_major_version)
19563 # if(SND_LIB_MAJOR < $alsa_min_major_version)
19564 # error not present
19567 # if(SND_LIB_MINOR > $alsa_min_minor_version)
19570 # if(SND_LIB_MINOR < $alsa_min_minor_version)
19571 # error not present
19574 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
19575 # error not present
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } && {
19599 test -z "$ac_c_werror_flag" ||
19600 test ! -s conftest.err
19601 } && test -s conftest.$ac_objext; then
19602 { echo "$as_me:$LINENO: result: found." >&5
19603 echo "${ECHO_T}found." >&6; }
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 cat >conftest.$ac_ext <<_ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19615 #include <sys/asoundlib.h>
19621 /* ensure backward compatibility */
19622 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
19623 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
19625 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
19626 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
19628 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
19629 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
19632 # if(SND_LIB_MAJOR > $alsa_min_major_version)
19635 # if(SND_LIB_MAJOR < $alsa_min_major_version)
19636 # error not present
19639 # if(SND_LIB_MINOR > $alsa_min_minor_version)
19642 # if(SND_LIB_MINOR < $alsa_min_minor_version)
19643 # error not present
19646 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
19647 # error not present
19657 rm -f conftest.$ac_objext
19658 if { (ac_try="$ac_compile"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_compile") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest.$ac_objext; then
19674 { echo "$as_me:$LINENO: result: found." >&5
19675 echo "${ECHO_T}found." >&6; }
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 { echo "$as_me:$LINENO: result: not present." >&5
19681 echo "${ECHO_T}not present." >&6; }
19682 { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
19683 echo "${ECHO_T}libasound was not found anywhere." >&6; }
19687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19688 { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
19689 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695 ac_cpp='$CPP $CPPFLAGS'
19696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19702 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
19703 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lasound $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19722 char snd_ctl_open ();
19726 return snd_ctl_open ();
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_lib_asound_snd_ctl_open=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_lib_asound_snd_ctl_open=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
19762 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
19763 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_LIBASOUND 1
19768 LIBS="-lasound $LIBS"
19771 { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
19772 echo "${ECHO_T}No linkable libasound was found." >&6; }
19778 if test "x$alsa_found" = "xyes" ; then
19780 LIBS=`echo $LIBS | sed 's/-lasound//g'`
19781 LIBS=`echo $LIBS | sed 's/ //'`
19782 LIBS="-lasound $LIBS"
19785 CFLAGS="$alsa_save_CFLAGS"
19786 LDFLAGS="$alsa_save_LDFLAGS"
19787 LIBS="$alsa_save_LIBS"
19798 dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
19811 ENABLE_WINSYN_TRUE=
19812 ENABLE_WINSYN_FALSE='#'
19814 ENABLE_WINSYN_TRUE='#'
19815 ENABLE_WINSYN_FALSE=
19818 # Check whether --enable-winsyn was given.
19819 if test "${enable_winsyn+set}" = set; then
19820 enableval=$enable_winsyn; case "x$enable_winsyn" in xyes|xdynamic) ;; esac
19823 case "x$enable_winsyn" in
19825 cat >> confdefs.h <<EOF
19826 #define IA_WINSYN 1
19832 ENABLE_WINSYN_TRUE=
19833 ENABLE_WINSYN_FALSE='#'
19835 ENABLE_WINSYN_TRUE='#'
19836 ENABLE_WINSYN_FALSE=
19839 WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
19842 dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
19855 ENABLE_PORTMIDISYN_TRUE=
19856 ENABLE_PORTMIDISYN_FALSE='#'
19858 ENABLE_PORTMIDISYN_TRUE='#'
19859 ENABLE_PORTMIDISYN_FALSE=
19862 # Check whether --enable-portmidisyn was given.
19863 if test "${enable_portmidisyn+set}" = set; then
19864 enableval=$enable_portmidisyn; case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
19867 case "x$enable_portmidisyn" in
19869 cat >> confdefs.h <<EOF
19870 #define IA_PORTMIDISYN 1
19876 ENABLE_PORTMIDISYN_TRUE=
19877 ENABLE_PORTMIDISYN_FALSE='#'
19879 ENABLE_PORTMIDISYN_TRUE='#'
19880 ENABLE_PORTMIDISYN_FALSE=
19883 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
19886 dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
19900 ENABLE_NPSYN_FALSE='#'
19902 ENABLE_NPSYN_TRUE='#'
19903 ENABLE_NPSYN_FALSE=
19906 # Check whether --enable-npsyn was given.
19907 if test "${enable_npsyn+set}" = set; then
19908 enableval=$enable_npsyn; case "x$enable_npsyn" in xyes|xdynamic) ;; esac
19911 case "x$enable_npsyn" in
19913 cat >> confdefs.h <<EOF
19921 ENABLE_NPSYN_FALSE='#'
19923 ENABLE_NPSYN_TRUE='#'
19924 ENABLE_NPSYN_FALSE=
19927 NPSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS npsyn_c.c rtsyn_common.c rtsyn_npipe.c"
19930 dynamic_targets="$dynamic_targets if_npsyn.\$(so)"
19945 ENABLE_W32G_SYN_TRUE=
19946 ENABLE_W32G_SYN_FALSE='#'
19948 ENABLE_W32G_SYN_TRUE='#'
19949 ENABLE_W32G_SYN_FALSE=
19952 # Check whether --enable-winsyng was given.
19953 if test "${enable_winsyng+set}" = set; then
19954 enableval=$enable_winsyng; case "x$enable_winsyng" in xyes|xdynamic) ;; esac
19957 case "x$enable_winsyng" in
19959 cat >> confdefs.h <<EOF
19960 #define IA_W32G_SYN 1
19966 ENABLE_W32G_SYN_TRUE=
19967 ENABLE_W32G_SYN_FALSE='#'
19969 ENABLE_W32G_SYN_TRUE='#'
19970 ENABLE_W32G_SYN_FALSE=
19975 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
19976 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"
19977 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
19978 lib_user32_opt='user32.lib'
19979 if test "x$VCPP" = xyes; then
19980 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
19982 if test "x$BORLANDC" = xyes; then
19983 BORLANDC_START='C0W32.OBJ'
19984 CFLAGS="$CFLAGS -tW"
19985 lib_w32gui_opt="-aa $lib_w32gui_opt"
19987 if test "x$WATCOM_C" = xyes; then
19988 CFLAGS="$CFLAGS -bw"
19989 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
19991 if test "x$DMC" = xyes; then
19993 lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
19995 if test "x$POCC" = xyes; then
19996 POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
19999 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
20000 lib_user32_opt='-luser32'
20001 LDFLAGS="-mwindows $LDFLAGS"
20002 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"
20007 dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
20021 ENABLE_W32GUI_TRUE=
20022 ENABLE_W32GUI_FALSE='#'
20024 ENABLE_W32GUI_TRUE='#'
20025 ENABLE_W32GUI_FALSE=
20028 # Check whether --enable-w32gui was given.
20029 if test "${enable_w32gui+set}" = set; then
20030 enableval=$enable_w32gui; case "x$enable_w32gui" in xyes|xdynamic) ;; esac
20033 case "x$enable_w32gui" in
20035 cat >> confdefs.h <<EOF
20036 #define IA_W32GUI 1
20042 ENABLE_W32GUI_TRUE=
20043 ENABLE_W32GUI_FALSE='#'
20045 ENABLE_W32GUI_TRUE='#'
20046 ENABLE_W32GUI_FALSE=
20051 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
20052 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"
20053 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
20054 lib_user32_opt='user32.lib'
20055 if test "x$VCPP" = xyes; then
20056 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
20058 if test "x$BORLANDC" = xyes; then
20059 BORLANDC_START='C0W32.OBJ'
20060 CFLAGS="$CFLAGS -tW"
20061 lib_w32gui_opt="-aa $lib_w32gui_opt"
20063 if test "x$WATCOM_C" = xyes; then
20064 CFLAGS="$CFLAGS -bw"
20065 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
20067 if test "x$DMC" = xyes; then
20068 lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
20071 if test "x$POCC" = xyes; then
20072 POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
20075 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
20076 lib_user32_opt='-luser32'
20077 LDFLAGS="-mwindows $LDFLAGS"
20078 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"
20083 dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
20096 ENABLE_PLUGIN_TRUE=
20097 ENABLE_PLUGIN_FALSE='#'
20099 ENABLE_PLUGIN_TRUE='#'
20100 ENABLE_PLUGIN_FALSE=
20103 # Check whether --enable-ump was given.
20104 if test "${enable_ump+set}" = set; then
20105 enableval=$enable_ump; case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
20106 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
20107 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
20108 { (exit 1); exit 1; }; }
20110 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
20111 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
20112 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
20113 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
20117 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
20119 # Is the header compilable?
20120 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
20121 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 $ac_includes_default
20129 #include <X11/xpm.h>
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_compile") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest.$ac_objext; then
20148 ac_header_compiler=yes
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_compiler=no
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158 echo "${ECHO_T}$ac_header_compiler" >&6; }
20160 # Is the header present?
20161 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
20162 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <X11/xpm.h>
20171 if { (ac_try="$ac_cpp conftest.$ac_ext"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20179 grep -v '^ *+' conftest.er1 >conftest.err
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } >/dev/null && {
20184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20185 test ! -s conftest.err
20187 ac_header_preproc=yes
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_header_preproc=no
20195 rm -f conftest.err conftest.$ac_ext
20196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20197 echo "${ECHO_T}$ac_header_preproc" >&6; }
20199 # So? What about this header?
20200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20203 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
20205 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
20206 ac_header_preproc=yes
20209 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
20210 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
20212 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
20214 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
20215 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
20216 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20217 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
20218 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
20220 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
20222 ## ------------------------------- ##
20223 ## Report this to root@mput.dip.jp ##
20224 ## ------------------------------- ##
20226 ) | sed "s/^/$as_me: WARNING: /" >&2
20229 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
20230 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
20231 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 ac_cv_header_X11_xpm_h=$ac_header_preproc
20236 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
20237 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
20240 if test $ac_cv_header_X11_xpm_h = yes; then
20243 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
20244 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
20245 { (exit 1); exit 1; }; }
20249 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
20250 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_check_lib_save_LIBS=$LIBS
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20263 /* Override any GCC internal prototype to avoid an error.
20264 Use char because int might match the return type of a GCC
20265 builtin and then its argument prototype would still apply. */
20269 char XpmCreatePixmapFromData ();
20273 return XpmCreatePixmapFromData ();
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_link") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest$ac_exeext &&
20295 $as_test_x conftest$ac_exeext; then
20296 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
20304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20305 conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20308 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
20309 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
20310 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
20313 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
20314 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
20315 { (exit 1); exit 1; }; }
20318 if test "x$have_xext" = xyes; then
20319 lib_xext_opt=-lXext
20321 if test "x$have_xprelibs" = xyes; then
20322 lib_xprelibs_opt='-lSM -lICE'
20329 case "x$enable_ump" in
20331 cat >> confdefs.h <<EOF
20332 #define IA_PLUGIN 1
20338 ENABLE_PLUGIN_TRUE=
20339 ENABLE_PLUGIN_FALSE='#'
20341 ENABLE_PLUGIN_TRUE='#'
20342 ENABLE_PLUGIN_FALSE=
20348 dynamic_targets="$dynamic_targets if_ump.\$(so)"
20358 # Check whether --enable-windrv was given.
20359 if test "${enable_windrv+set}" = set; then
20360 enableval=$enable_windrv; if test "$enableval" = "yes"; then
20361 if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes" && test "x$POCC" != "xyes"; then
20362 { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&5
20363 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&2;}
20364 { (exit 1); exit 1; }; }
20365 elif test "x$WINSYN" != "xyes"; then
20366 { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
20367 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
20368 { (exit 1); exit 1; }; }
20371 cat >>confdefs.h <<\_ACEOF
20376 if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
20377 if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
20378 CFLAGS="$CFLAGS -DANOTHER_MAIN "
20383 CFLAGS="$CFLAGS $DLLFLAG "
20385 # Check whether --enable-offix was given.
20386 if test "${enable_offix+set}" = set; then
20387 enableval=$enable_offix; if test "$enableval" = "yes"; then
20388 KEEPCPPFLAGS=$CPPFLAGS
20390 KEEPLDFLAGS=$LDFLAGS
20391 CPPFLAGS="$CPPFLAGS $offix_include_dir"
20392 LDFLAGS="$LDFLAGS $offix_lib_dir"
20393 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
20394 { echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
20395 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6; }
20396 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 ac_check_lib_save_LIBS=$LIBS
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20408 /* Override any GCC internal prototype to avoid an error.
20409 Use char because int might match the return type of a GCC
20410 builtin and then its argument prototype would still apply. */
20414 char DndInitialize ();
20418 return DndInitialize ();
20423 rm -f conftest.$ac_objext conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest$ac_exeext &&
20440 $as_test_x conftest$ac_exeext; then
20441 ac_cv_lib_Dnd_DndInitialize=yes
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_cv_lib_Dnd_DndInitialize=no
20449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20450 conftest$ac_exeext conftest.$ac_ext
20451 LIBS=$ac_check_lib_save_LIBS
20453 { echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
20454 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6; }
20455 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
20458 lib_offix_opt="-lDnd"
20460 cat >>confdefs.h <<\_ACEOF
20466 LDFLAGS=$KEEPLDFLAGS
20467 CPPFLAGS=$KEEPCPPFLAGS
20477 # Check whether --enable-network was given.
20478 if test "${enable_network+set}" = set; then
20479 enableval=$enable_network; if test "$enableval" = "yes"; then
20481 cat >>confdefs.h <<\_ACEOF
20482 #define SUPPORT_SOCKET 1
20490 if test "x$enable_network" = "xyes"; then
20491 ENABLE_NETWORK_TRUE=
20492 ENABLE_NETWORK_FALSE='#'
20494 ENABLE_NETWORK_TRUE='#'
20495 ENABLE_NETWORK_FALSE=
20499 # Check whether --enable-spectrogram was given.
20500 if test "${enable_spectrogram+set}" = set; then
20501 enableval=$enable_spectrogram; if test "$enableval" = "yes"; then
20502 if test "x$with_x" != xyes; then
20503 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
20504 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
20505 { (exit 1); exit 1; }; }
20508 cat >>confdefs.h <<\_ACEOF
20509 #define SUPPORT_SOUNDSPEC 1
20517 if test "x$enable_spectrogram" = "xyes"; then
20518 ENABLE_SOUND_SPEC_TRUE=
20519 ENABLE_SOUND_SPEC_FALSE='#'
20521 ENABLE_SOUND_SPEC_TRUE='#'
20522 ENABLE_SOUND_SPEC_FALSE=
20526 # Check whether --enable-spline was given.
20527 if test "${enable_spline+set}" = set; then
20528 enableval=$enable_spline; case "x$enableval" in
20531 cat >>confdefs.h <<\_ACEOF
20532 #define DEFAULT_RESAMPLATION resample_linear
20538 cat >>confdefs.h <<\_ACEOF
20539 #define DEFAULT_RESAMPLATION resample_cspline
20545 cat >>confdefs.h <<\_ACEOF
20546 #define DEFAULT_RESAMPLATION resample_lagrange
20552 cat >>confdefs.h <<\_ACEOF
20553 #define DEFAULT_RESAMPLATION resample_newton
20559 cat >>confdefs.h <<\_ACEOF
20560 #define DEFAULT_RESAMPLATION resample_gauss
20566 cat >>confdefs.h <<\_ACEOF
20567 #define DEFAULT_RESAMPLATION resample_none
20572 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
20573 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
20574 { (exit 1); exit 1; }; }
20580 # Check whether --enable-wrd was given.
20581 if test "${enable_wrd+set}" = set; then
20582 enableval=$enable_wrd; if test "$enableval" = "yes"; then
20583 if test "x$with_x" != xyes; then
20584 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
20585 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
20586 { (exit 1); exit 1; }; }
20589 cat >>confdefs.h <<\_ACEOF
20593 enable_sherry_wrd=yes
20594 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
20595 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
20596 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 ac_check_lib_save_LIBS=$LIBS
20601 cat >conftest.$ac_ext <<_ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20608 /* Override any GCC internal prototype to avoid an error.
20609 Use char because int might match the return type of a GCC
20610 builtin and then its argument prototype would still apply. */
20614 char zlibVersion ();
20618 return zlibVersion ();
20623 rm -f conftest.$ac_objext conftest$ac_exeext
20624 if { (ac_try="$ac_link"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_link") 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest$ac_exeext &&
20640 $as_test_x conftest$ac_exeext; then
20641 ac_cv_lib_z_zlibVersion=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 ac_cv_lib_z_zlibVersion=no
20649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20650 conftest$ac_exeext conftest.$ac_ext
20651 LIBS=$ac_check_lib_save_LIBS
20653 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
20654 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
20655 if test $ac_cv_lib_z_zlibVersion = yes; then
20658 enable_sherry_wrd=no
20661 if test "${ac_cv_header_png_h+set}" = set; then
20662 { echo "$as_me:$LINENO: checking for png.h" >&5
20663 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
20664 if test "${ac_cv_header_png_h+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20668 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
20670 # Is the header compilable?
20671 { echo "$as_me:$LINENO: checking png.h usability" >&5
20672 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 $ac_includes_default
20682 rm -f conftest.$ac_objext
20683 if { (ac_try="$ac_compile"
20684 case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689 (eval "$ac_compile") 2>conftest.er1
20691 grep -v '^ *+' conftest.er1 >conftest.err
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest.$ac_objext; then
20699 ac_header_compiler=yes
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_header_compiler=no
20707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20709 echo "${ECHO_T}$ac_header_compiler" >&6; }
20711 # Is the header present?
20712 { echo "$as_me:$LINENO: checking png.h presence" >&5
20713 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20722 if { (ac_try="$ac_cpp conftest.$ac_ext"
20723 case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20730 grep -v '^ *+' conftest.er1 >conftest.err
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } >/dev/null && {
20735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20736 test ! -s conftest.err
20738 ac_header_preproc=yes
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 ac_header_preproc=no
20746 rm -f conftest.err conftest.$ac_ext
20747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20748 echo "${ECHO_T}$ac_header_preproc" >&6; }
20750 # So? What about this header?
20751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20753 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20754 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20755 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20756 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20757 ac_header_preproc=yes
20760 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20761 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20763 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20765 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20766 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20767 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20768 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20769 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20771 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20773 ## ------------------------------- ##
20774 ## Report this to root@mput.dip.jp ##
20775 ## ------------------------------- ##
20777 ) | sed "s/^/$as_me: WARNING: /" >&2
20780 { echo "$as_me:$LINENO: checking for png.h" >&5
20781 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
20782 if test "${ac_cv_header_png_h+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 ac_cv_header_png_h=$ac_header_preproc
20787 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20788 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
20791 if test $ac_cv_header_png_h = yes; then
20794 enable_sherry_wrd=no
20798 { echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
20799 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6; }
20800 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 ac_check_lib_save_LIBS=$LIBS
20804 LIBS="-lpng -lz $LIBS"
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20812 /* Override any GCC internal prototype to avoid an error.
20813 Use char because int might match the return type of a GCC
20814 builtin and then its argument prototype would still apply. */
20818 char png_init_io ();
20822 return png_init_io ();
20827 rm -f conftest.$ac_objext conftest$ac_exeext
20828 if { (ac_try="$ac_link"
20829 case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_link") 2>conftest.er1
20836 grep -v '^ *+' conftest.er1 >conftest.err
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } && {
20841 test -z "$ac_c_werror_flag" ||
20842 test ! -s conftest.err
20843 } && test -s conftest$ac_exeext &&
20844 $as_test_x conftest$ac_exeext; then
20845 ac_cv_lib_png_png_init_io=yes
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 ac_cv_lib_png_png_init_io=no
20853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20854 conftest$ac_exeext conftest.$ac_ext
20855 LIBS=$ac_check_lib_save_LIBS
20857 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
20858 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6; }
20859 if test $ac_cv_lib_png_png_init_io = yes; then
20862 enable_sherry_wrd=no
20865 if test "$enable_sherry_wrd" = yes; then
20867 cat >>confdefs.h <<\_ACEOF
20868 #define ENABLE_SHERRY 1
20874 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
20875 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
20877 if test "x$have_xext" = xyes; then
20878 lib_xext_opt=-lXext
20893 if test "x$enable_wrd" = "xyes"; then
20895 ENABLE_WRD_FALSE='#'
20897 ENABLE_WRD_TRUE='#'
20903 if test "x$W32G_GUI" = xyes; then
20913 if test "x$WINDRV" = xyes; then
20923 if test "x$MSYS" = xyes; then
20933 if test "x$VCPP" = xyes; then
20943 if test "x$POCC" = xyes; then
20953 if test "x$BORLANDC" = xyes; then
20963 if test "x$WATCOM_C" = xyes; then
20973 if test "x$DMC" = xyes; then
20983 if test "x$MINGWGCC" = xyes; then
20994 if test "x$W32READDIR" = "xyes"; then
20996 W32READDIR_FALSE='#'
20998 W32READDIR_TRUE='#'
21003 rm -f wordtmp >/dev/null 2>&1
21005 for f in $LDFLAGS; do
21006 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21009 echo $f >>wordtmp; val="$val $f"
21014 rm -f wordtmp >/dev/null 2>&1
21016 rm -f wordtmp >/dev/null 2>&1
21018 for f in $SHLDFLAGS; do
21019 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21022 echo $f >>wordtmp; val="$val $f"
21027 rm -f wordtmp >/dev/null 2>&1
21029 rm -f wordtmp >/dev/null 2>&1
21031 for f in $EXTRACFLAGS $CFLAGS; do
21032 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21035 echo $f >>wordtmp; val="$val $f"
21040 rm -f wordtmp >/dev/null 2>&1
21042 rm -f wordtmp >/dev/null 2>&1
21044 for f in $CPPFLAGS $EXTRADEFS; do
21045 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21048 echo $f >>wordtmp; val="$val $f"
21053 rm -f wordtmp >/dev/null 2>&1
21056 if test "x$oss_device" != x; then
21058 cat >>confdefs.h <<_ACEOF
21059 #define OSS_DEVICE "$oss_device"
21064 if test "x$TIMIDITY_OUTPUT_ID" != x; then
21066 cat >>confdefs.h <<_ACEOF
21067 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
21072 if test "x$with_x" = xyes; then
21073 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/"`
21075 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
21076 SHLD="$SHLD $SHLDFLAGS"
21102 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile windrv/Makefile utils/Makefile script/Makefile"
21104 cat >confcache <<\_ACEOF
21105 # This file is a shell script that caches the results of configure
21106 # tests run on this system so they can be shared between configure
21107 # scripts and configure runs, see configure's option --config-cache.
21108 # It is not useful on other systems. If it contains results you don't
21109 # want to keep, you may remove or edit it.
21111 # config.status only pays attention to the cache file if you give it
21112 # the --recheck option to rerun configure.
21114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21116 # following values.
21120 # The following way of writing the cache mishandles newlines in values,
21121 # but we know of no workaround that is simple, portable, and efficient.
21122 # So, we kill variables containing newlines.
21123 # Ultrix sh set writes to stderr and can't be redirected directly,
21124 # and sets the high bit in the cache file unless we assign to the vars.
21126 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21127 eval ac_val=\$$ac_var
21131 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21132 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21135 _ | IFS | as_nl) ;; #(
21136 *) $as_unset $ac_var ;;
21142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21143 *${as_nl}ac_space=\ *)
21144 # `set' does not quote correctly, so add quotes (double-quote
21145 # substitution turns \\\\ into \\, and sed turns \\ into \).
21148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21151 # `set' quotes correctly as required by POSIX, so do not add quotes.
21152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21166 if test -w "$cache_file"; then
21167 test "x$cache_file" != "x/dev/null" &&
21168 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21169 echo "$as_me: updating cache $cache_file" >&6;}
21170 cat confcache >$cache_file
21172 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21173 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21179 # Let make expand exec_prefix.
21180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21182 DEFS=-DHAVE_CONFIG_H
21186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21187 # 1. Remove the extension, and $U if already installed.
21188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21189 ac_i=`echo "$ac_i" | sed "$ac_script"`
21190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21191 # will be set to the directory where LIBOBJS objects are built.
21192 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21193 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21195 LIBOBJS=$ac_libobjs
21197 LTLIBOBJS=$ac_ltlibobjs
21200 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21201 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21202 Usually this means the macro was only invoked conditionally." >&5
21203 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21204 Usually this means the macro was only invoked conditionally." >&2;}
21205 { (exit 1); exit 1; }; }
21207 if test -z "${XAW_INSTALL_RESOURCE_FILES_TRUE}" && test -z "${XAW_INSTALL_RESOURCE_FILES_FALSE}"; then
21208 { { echo "$as_me:$LINENO: error: conditional \"XAW_INSTALL_RESOURCE_FILES\" was never defined.
21209 Usually this means the macro was only invoked conditionally." >&5
21210 echo "$as_me: error: conditional \"XAW_INSTALL_RESOURCE_FILES\" was never defined.
21211 Usually this means the macro was only invoked conditionally." >&2;}
21212 { (exit 1); exit 1; }; }
21214 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21215 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21216 Usually this means the macro was only invoked conditionally." >&5
21217 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21218 Usually this means the macro was only invoked conditionally." >&2;}
21219 { (exit 1); exit 1; }; }
21221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21222 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21223 Usually this means the macro was only invoked conditionally." >&5
21224 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21225 Usually this means the macro was only invoked conditionally." >&2;}
21226 { (exit 1); exit 1; }; }
21228 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
21229 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
21230 Usually this means the macro was only invoked conditionally." >&5
21231 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
21232 Usually this means the macro was only invoked conditionally." >&2;}
21233 { (exit 1); exit 1; }; }
21235 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
21236 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
21237 Usually this means the macro was only invoked conditionally." >&5
21238 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
21239 Usually this means the macro was only invoked conditionally." >&2;}
21240 { (exit 1); exit 1; }; }
21242 if test -z "${ENABLE_XDND_TRUE}" && test -z "${ENABLE_XDND_FALSE}"; then
21243 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XDND\" was never defined.
21244 Usually this means the macro was only invoked conditionally." >&5
21245 echo "$as_me: error: conditional \"ENABLE_XDND\" was never defined.
21246 Usually this means the macro was only invoked conditionally." >&2;}
21247 { (exit 1); exit 1; }; }
21249 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
21250 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&5
21252 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&2;}
21254 { (exit 1); exit 1; }; }
21256 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
21257 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
21258 Usually this means the macro was only invoked conditionally." >&5
21259 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
21260 Usually this means the macro was only invoked conditionally." >&2;}
21261 { (exit 1); exit 1; }; }
21263 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
21264 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
21265 Usually this means the macro was only invoked conditionally." >&5
21266 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
21267 Usually this means the macro was only invoked conditionally." >&2;}
21268 { (exit 1); exit 1; }; }
21270 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
21271 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
21272 Usually this means the macro was only invoked conditionally." >&5
21273 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
21274 Usually this means the macro was only invoked conditionally." >&2;}
21275 { (exit 1); exit 1; }; }
21277 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
21278 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&5
21280 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
21281 Usually this means the macro was only invoked conditionally." >&2;}
21282 { (exit 1); exit 1; }; }
21284 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
21285 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
21286 Usually this means the macro was only invoked conditionally." >&5
21287 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
21288 Usually this means the macro was only invoked conditionally." >&2;}
21289 { (exit 1); exit 1; }; }
21291 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
21292 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
21293 Usually this means the macro was only invoked conditionally." >&5
21294 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
21295 Usually this means the macro was only invoked conditionally." >&2;}
21296 { (exit 1); exit 1; }; }
21298 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
21299 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
21300 Usually this means the macro was only invoked conditionally." >&5
21301 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
21302 Usually this means the macro was only invoked conditionally." >&2;}
21303 { (exit 1); exit 1; }; }
21305 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
21306 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&5
21308 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&2;}
21310 { (exit 1); exit 1; }; }
21312 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
21313 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
21314 Usually this means the macro was only invoked conditionally." >&5
21315 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&2;}
21317 { (exit 1); exit 1; }; }
21319 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
21320 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
21321 Usually this means the macro was only invoked conditionally." >&5
21322 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
21323 Usually this means the macro was only invoked conditionally." >&2;}
21324 { (exit 1); exit 1; }; }
21326 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
21327 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
21328 Usually this means the macro was only invoked conditionally." >&5
21329 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
21330 Usually this means the macro was only invoked conditionally." >&2;}
21331 { (exit 1); exit 1; }; }
21333 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
21334 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
21335 Usually this means the macro was only invoked conditionally." >&5
21336 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
21337 Usually this means the macro was only invoked conditionally." >&2;}
21338 { (exit 1); exit 1; }; }
21340 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
21341 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
21342 Usually this means the macro was only invoked conditionally." >&5
21343 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
21344 Usually this means the macro was only invoked conditionally." >&2;}
21345 { (exit 1); exit 1; }; }
21347 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
21348 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
21349 Usually this means the macro was only invoked conditionally." >&5
21350 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
21351 Usually this means the macro was only invoked conditionally." >&2;}
21352 { (exit 1); exit 1; }; }
21354 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
21355 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
21356 Usually this means the macro was only invoked conditionally." >&5
21357 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
21358 Usually this means the macro was only invoked conditionally." >&2;}
21359 { (exit 1); exit 1; }; }
21361 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
21362 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
21363 Usually this means the macro was only invoked conditionally." >&5
21364 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
21365 Usually this means the macro was only invoked conditionally." >&2;}
21366 { (exit 1); exit 1; }; }
21368 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
21369 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
21370 Usually this means the macro was only invoked conditionally." >&5
21371 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
21372 Usually this means the macro was only invoked conditionally." >&2;}
21373 { (exit 1); exit 1; }; }
21375 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
21376 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
21377 Usually this means the macro was only invoked conditionally." >&5
21378 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
21379 Usually this means the macro was only invoked conditionally." >&2;}
21380 { (exit 1); exit 1; }; }
21382 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
21383 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
21384 Usually this means the macro was only invoked conditionally." >&5
21385 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
21386 Usually this means the macro was only invoked conditionally." >&2;}
21387 { (exit 1); exit 1; }; }
21389 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
21390 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
21391 Usually this means the macro was only invoked conditionally." >&5
21392 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
21393 Usually this means the macro was only invoked conditionally." >&2;}
21394 { (exit 1); exit 1; }; }
21396 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
21397 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
21398 Usually this means the macro was only invoked conditionally." >&5
21399 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
21400 Usually this means the macro was only invoked conditionally." >&2;}
21401 { (exit 1); exit 1; }; }
21403 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
21404 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21405 Usually this means the macro was only invoked conditionally." >&5
21406 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21407 Usually this means the macro was only invoked conditionally." >&2;}
21408 { (exit 1); exit 1; }; }
21410 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
21411 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21412 Usually this means the macro was only invoked conditionally." >&5
21413 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21414 Usually this means the macro was only invoked conditionally." >&2;}
21415 { (exit 1); exit 1; }; }
21417 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
21418 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
21419 Usually this means the macro was only invoked conditionally." >&5
21420 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
21421 Usually this means the macro was only invoked conditionally." >&2;}
21422 { (exit 1); exit 1; }; }
21424 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
21425 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
21426 Usually this means the macro was only invoked conditionally." >&5
21427 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
21428 Usually this means the macro was only invoked conditionally." >&2;}
21429 { (exit 1); exit 1; }; }
21431 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
21432 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21433 Usually this means the macro was only invoked conditionally." >&5
21434 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21435 Usually this means the macro was only invoked conditionally." >&2;}
21436 { (exit 1); exit 1; }; }
21438 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
21439 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21440 Usually this means the macro was only invoked conditionally." >&5
21441 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21442 Usually this means the macro was only invoked conditionally." >&2;}
21443 { (exit 1); exit 1; }; }
21445 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
21446 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
21447 Usually this means the macro was only invoked conditionally." >&5
21448 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
21449 Usually this means the macro was only invoked conditionally." >&2;}
21450 { (exit 1); exit 1; }; }
21452 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
21453 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
21454 Usually this means the macro was only invoked conditionally." >&5
21455 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
21456 Usually this means the macro was only invoked conditionally." >&2;}
21457 { (exit 1); exit 1; }; }
21459 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
21460 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21461 Usually this means the macro was only invoked conditionally." >&5
21462 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21463 Usually this means the macro was only invoked conditionally." >&2;}
21464 { (exit 1); exit 1; }; }
21466 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
21467 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21468 Usually this means the macro was only invoked conditionally." >&5
21469 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21470 Usually this means the macro was only invoked conditionally." >&2;}
21471 { (exit 1); exit 1; }; }
21473 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
21474 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
21475 Usually this means the macro was only invoked conditionally." >&5
21476 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
21477 Usually this means the macro was only invoked conditionally." >&2;}
21478 { (exit 1); exit 1; }; }
21480 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
21481 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
21482 Usually this means the macro was only invoked conditionally." >&5
21483 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
21484 Usually this means the macro was only invoked conditionally." >&2;}
21485 { (exit 1); exit 1; }; }
21487 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
21488 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
21489 Usually this means the macro was only invoked conditionally." >&5
21490 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
21491 Usually this means the macro was only invoked conditionally." >&2;}
21492 { (exit 1); exit 1; }; }
21494 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
21495 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
21496 Usually this means the macro was only invoked conditionally." >&5
21497 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
21498 Usually this means the macro was only invoked conditionally." >&2;}
21499 { (exit 1); exit 1; }; }
21501 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
21502 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
21503 Usually this means the macro was only invoked conditionally." >&5
21504 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
21505 Usually this means the macro was only invoked conditionally." >&2;}
21506 { (exit 1); exit 1; }; }
21508 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
21509 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
21510 Usually this means the macro was only invoked conditionally." >&5
21511 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
21512 Usually this means the macro was only invoked conditionally." >&2;}
21513 { (exit 1); exit 1; }; }
21515 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
21516 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
21517 Usually this means the macro was only invoked conditionally." >&5
21518 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
21519 Usually this means the macro was only invoked conditionally." >&2;}
21520 { (exit 1); exit 1; }; }
21522 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
21523 { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
21524 Usually this means the macro was only invoked conditionally." >&5
21525 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
21526 Usually this means the macro was only invoked conditionally." >&2;}
21527 { (exit 1); exit 1; }; }
21529 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
21530 { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
21531 Usually this means the macro was only invoked conditionally." >&5
21532 echo "$as_me: error: conditional \"WINDRV\" was never defined.
21533 Usually this means the macro was only invoked conditionally." >&2;}
21534 { (exit 1); exit 1; }; }
21536 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
21537 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
21538 Usually this means the macro was only invoked conditionally." >&5
21539 echo "$as_me: error: conditional \"MSYS\" was never defined.
21540 Usually this means the macro was only invoked conditionally." >&2;}
21541 { (exit 1); exit 1; }; }
21543 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
21544 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
21545 Usually this means the macro was only invoked conditionally." >&5
21546 echo "$as_me: error: conditional \"VCPP\" was never defined.
21547 Usually this means the macro was only invoked conditionally." >&2;}
21548 { (exit 1); exit 1; }; }
21550 if test -z "${POCC_TRUE}" && test -z "${POCC_FALSE}"; then
21551 { { echo "$as_me:$LINENO: error: conditional \"POCC\" was never defined.
21552 Usually this means the macro was only invoked conditionally." >&5
21553 echo "$as_me: error: conditional \"POCC\" was never defined.
21554 Usually this means the macro was only invoked conditionally." >&2;}
21555 { (exit 1); exit 1; }; }
21557 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
21558 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&5
21560 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
21561 Usually this means the macro was only invoked conditionally." >&2;}
21562 { (exit 1); exit 1; }; }
21564 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
21565 { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
21566 Usually this means the macro was only invoked conditionally." >&5
21567 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
21568 Usually this means the macro was only invoked conditionally." >&2;}
21569 { (exit 1); exit 1; }; }
21571 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
21572 { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
21573 Usually this means the macro was only invoked conditionally." >&5
21574 echo "$as_me: error: conditional \"DMC\" was never defined.
21575 Usually this means the macro was only invoked conditionally." >&2;}
21576 { (exit 1); exit 1; }; }
21578 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
21579 { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
21580 Usually this means the macro was only invoked conditionally." >&5
21581 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
21582 Usually this means the macro was only invoked conditionally." >&2;}
21583 { (exit 1); exit 1; }; }
21585 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
21586 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
21587 Usually this means the macro was only invoked conditionally." >&5
21588 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
21589 Usually this means the macro was only invoked conditionally." >&2;}
21590 { (exit 1); exit 1; }; }
21593 : ${CONFIG_STATUS=./config.status}
21594 ac_clean_files_save=$ac_clean_files
21595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21596 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21597 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21598 cat >$CONFIG_STATUS <<_ACEOF
21600 # Generated by $as_me.
21601 # Run this file to recreate the current configuration.
21602 # Compiler output produced by configure, useful for debugging
21603 # configure, is in config.log if it exists.
21606 ac_cs_recheck=false
21608 SHELL=\${CONFIG_SHELL-$SHELL}
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612 ## --------------------- ##
21613 ## M4sh Initialization. ##
21614 ## --------------------- ##
21616 # Be more Bourne compatible
21617 DUALCASE=1; export DUALCASE # for MKS sh
21618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21622 # is contrary to our usage. Disable this feature.
21623 alias -g '${1+"$@"}'='"$@"'
21624 setopt NO_GLOB_SUBST
21626 case `(set -o) 2>/dev/null` in
21627 *posix*) set -o posix ;;
21636 # Avoid depending upon Character Ranges.
21637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21640 as_cr_digits='0123456789'
21641 as_cr_alnum=$as_cr_Letters$as_cr_digits
21643 # The user is always right.
21644 if test "${PATH_SEPARATOR+set}" != set; then
21645 echo "#! /bin/sh" >conf$$.sh
21646 echo "exit 0" >>conf$$.sh
21648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21656 # Support unset when possible.
21657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21665 # We need space, tab and new line, in precisely that order. Quoting is
21666 # there to prevent editors from complaining about space-tab.
21667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21668 # splitting by setting IFS to empty value.)
21673 # Find who we are. Look in the path if we contain no directory separator.
21675 *[\\/]* ) as_myself=$0 ;;
21676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21677 for as_dir in $PATH
21680 test -z "$as_dir" && as_dir=.
21681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21687 # We did not find ourselves, most probably we were run as `sh COMMAND'
21688 # in which case we are not to be found in the path.
21689 if test "x$as_myself" = x; then
21692 if test ! -f "$as_myself"; then
21693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21694 { (exit 1); exit 1; }
21697 # Work around bugs in pre-3.0 UWIN ksh.
21698 for as_var in ENV MAIL MAILPATH
21699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21709 LC_TELEPHONE LC_TIME
21711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21712 eval $as_var=C; export $as_var
21714 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21718 # Required to use basename.
21719 if expr a : '\(a\)' >/dev/null 2>&1 &&
21720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21727 as_basename=basename
21733 # Name of the executable.
21734 as_me=`$as_basename -- "$0" ||
21735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21736 X"$0" : 'X\(//\)$' \| \
21737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21739 sed '/^.*\/\([^/][^/]*\)\/*$/{
21758 as_lineno_1=$LINENO
21759 as_lineno_2=$LINENO
21760 test "x$as_lineno_1" != "x$as_lineno_2" &&
21761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21764 # uniformly replaced by the line number. The first 'sed' inserts a
21765 # line-number line after each line using $LINENO; the second 'sed'
21766 # does the real work. The second script uses 'N' to pair each
21767 # line-number line with the line containing $LINENO, and appends
21768 # trailing '-' during substitution so that $LINENO is not a special
21769 # case at line end.
21770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21771 # scripts with optimization help from Paolo Bonzini. Blame Lee
21772 # E. McMahon (1931-1989) for sed's syntax. :-)
21784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21787 ' >$as_me.lineno &&
21788 chmod +x "$as_me.lineno" ||
21789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21790 { (exit 1); exit 1; }; }
21792 # Don't try to exec as it changes $[0], causing all sort of problems
21793 # (the dirname of $[0] is not the place where we might find the
21794 # original and so on. Autoconf is especially sensitive to this).
21795 . "./$as_me.lineno"
21796 # Exit status is that of the last command.
21801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21807 ECHO_C= ECHO_N= ECHO_T=
21808 case `echo -n x` in
21810 case `echo 'x\c'` in
21811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21818 if expr a : '\(a\)' >/dev/null 2>&1 &&
21819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21825 rm -f conf$$ conf$$.exe conf$$.file
21826 if test -d conf$$.dir; then
21827 rm -f conf$$.dir/conf$$.file
21833 if ln -s conf$$.file conf$$ 2>/dev/null; then
21835 # ... but there are two gotchas:
21836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21838 # In both cases, we have to default to `cp -p'.
21839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21841 elif ln conf$$.file conf$$ 2>/dev/null; then
21846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21847 rmdir conf$$.dir 2>/dev/null
21849 if mkdir -p . 2>/dev/null; then
21852 test -d ./-p && rmdir ./-p
21856 if test -x / >/dev/null 2>&1; then
21857 as_test_x='test -x'
21859 if ls -dL / >/dev/null 2>&1; then
21866 if test -d "$1"; then
21872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21873 ???[sx]*):;;*)false;;esac;fi
21877 as_executable_p=$as_test_x
21879 # Sed expression to map a string onto a valid CPP name.
21880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21882 # Sed expression to map a string onto a valid variable name.
21883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21888 # Save the log message, to keep $[0] and so on meaningful, and to
21889 # report actual input values of CONFIG_FILES etc. instead of their
21890 # values after options handling.
21892 This file was extended by TiMidity++ $as_me 2.13.2, which was
21893 generated by GNU Autoconf 2.61. Invocation command line was
21895 CONFIG_FILES = $CONFIG_FILES
21896 CONFIG_HEADERS = $CONFIG_HEADERS
21897 CONFIG_LINKS = $CONFIG_LINKS
21898 CONFIG_COMMANDS = $CONFIG_COMMANDS
21901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21906 cat >>$CONFIG_STATUS <<_ACEOF
21907 # Files that config.status was made for.
21908 config_files="$ac_config_files"
21909 config_headers="$ac_config_headers"
21910 config_commands="$ac_config_commands"
21914 cat >>$CONFIG_STATUS <<\_ACEOF
21916 \`$as_me' instantiates files from templates according to the
21917 current configuration.
21919 Usage: $0 [OPTIONS] [FILE]...
21921 -h, --help print this help, then exit
21922 -V, --version print version number and configuration settings, then exit
21923 -q, --quiet do not print progress messages
21924 -d, --debug don't remove temporary files
21925 --recheck update $as_me by reconfiguring in the same conditions
21926 --file=FILE[:TEMPLATE]
21927 instantiate the configuration file FILE
21928 --header=FILE[:TEMPLATE]
21929 instantiate the configuration header FILE
21931 Configuration files:
21934 Configuration headers:
21937 Configuration commands:
21940 Report bugs to <bug-autoconf@gnu.org>."
21943 cat >>$CONFIG_STATUS <<_ACEOF
21945 TiMidity++ config.status 2.13.2
21946 configured by $0, generated by GNU Autoconf 2.61,
21947 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21949 Copyright (C) 2006 Free Software Foundation, Inc.
21950 This config.status script is free software; the Free Software Foundation
21951 gives unlimited permission to copy, distribute and modify it."
21958 cat >>$CONFIG_STATUS <<\_ACEOF
21959 # If no file are specified by the user, then we need to provide default
21960 # value. By we need to know if files were specified by the user.
21966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21967 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21978 # Handling of the options.
21979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21982 echo "$ac_cs_version"; exit ;;
21983 --debug | --debu | --deb | --de | --d | -d )
21985 --file | --fil | --fi | --f )
21987 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21988 ac_need_defaults=false;;
21989 --header | --heade | --head | --hea )
21991 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21992 ac_need_defaults=false;;
21994 # Conflict between --help and --header
21995 { echo "$as_me: error: ambiguous option: $1
21996 Try \`$0 --help' for more information." >&2
21997 { (exit 1); exit 1; }; };;
21998 --help | --hel | -h )
21999 echo "$ac_cs_usage"; exit ;;
22000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22004 # This is an error.
22005 -*) { echo "$as_me: error: unrecognized option: $1
22006 Try \`$0 --help' for more information." >&2
22007 { (exit 1); exit 1; }; } ;;
22009 *) ac_config_targets="$ac_config_targets $1"
22010 ac_need_defaults=false ;;
22016 ac_configure_extra_args=
22018 if $ac_cs_silent; then
22020 ac_configure_extra_args="$ac_configure_extra_args --silent"
22024 cat >>$CONFIG_STATUS <<_ACEOF
22025 if \$ac_cs_recheck; then
22026 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22027 CONFIG_SHELL=$SHELL
22028 export CONFIG_SHELL
22029 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22038 ## Running $as_me. ##
22044 cat >>$CONFIG_STATUS <<_ACEOF
22048 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22054 # Handling of arguments.
22055 for ac_config_target in $ac_config_targets
22057 case $ac_config_target in
22058 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22059 "interface.h") CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
22060 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22062 "autoconf/Makefile") CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
22063 "common.makefile") CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
22064 "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
22065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22066 "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
22067 "doc/ja_JP.eucJP/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
22068 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
22069 "interface/motif_bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
22070 "interface/bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
22071 "interface/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
22072 "libarc/Makefile") CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
22073 "libunimod/Makefile") CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
22074 "timidity/Makefile") CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
22075 "windrv/Makefile") CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
22076 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22077 "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
22079 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22080 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22081 { (exit 1); exit 1; }; };;
22086 # If the user did not use the arguments to specify the items to instantiate,
22087 # then the envvar interface is used. Set only those that are not.
22088 # We use the long form for the default assignment because of an extremely
22089 # bizarre bug on SunOS 4.1.3.
22090 if $ac_need_defaults; then
22091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22096 # Have a temporary directory for convenience. Make it in the build tree
22097 # simply because there is no reason against having it here, and in addition,
22098 # creating and moving files from /tmp can sometimes cause problems.
22099 # Hook for its removal unless debugging.
22100 # Note that there is a small window in which the directory will not be cleaned:
22101 # after its creation but before its name has been assigned to `$tmp'.
22105 trap 'exit_status=$?
22106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22108 trap '{ (exit 1); exit 1; }' 1 2 13 15
22110 # Create a (secure) tmp directory for tmp files.
22113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22114 test -n "$tmp" && test -d "$tmp"
22117 tmp=./conf$$-$RANDOM
22118 (umask 077 && mkdir "$tmp")
22121 echo "$me: cannot create a temporary directory in ." >&2
22122 { (exit 1); exit 1; }
22126 # Set up the sed scripts for CONFIG_FILES section.
22129 # No need to generate the scripts if there are no CONFIG_FILES.
22130 # This happens for instance when ./config.status config.h
22131 if test -n "$CONFIG_FILES"; then
22138 for ac_last_try in false false false false false :; do
22139 cat >conf$$subs.sed <<_ACEOF
22140 SHELL!$SHELL$ac_delim
22141 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22142 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22143 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22144 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22145 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22146 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22147 exec_prefix!$exec_prefix$ac_delim
22148 prefix!$prefix$ac_delim
22149 program_transform_name!$program_transform_name$ac_delim
22150 bindir!$bindir$ac_delim
22151 sbindir!$sbindir$ac_delim
22152 libexecdir!$libexecdir$ac_delim
22153 datarootdir!$datarootdir$ac_delim
22154 datadir!$datadir$ac_delim
22155 sysconfdir!$sysconfdir$ac_delim
22156 sharedstatedir!$sharedstatedir$ac_delim
22157 localstatedir!$localstatedir$ac_delim
22158 includedir!$includedir$ac_delim
22159 oldincludedir!$oldincludedir$ac_delim
22160 docdir!$docdir$ac_delim
22161 infodir!$infodir$ac_delim
22162 htmldir!$htmldir$ac_delim
22163 dvidir!$dvidir$ac_delim
22164 pdfdir!$pdfdir$ac_delim
22165 psdir!$psdir$ac_delim
22166 libdir!$libdir$ac_delim
22167 localedir!$localedir$ac_delim
22168 mandir!$mandir$ac_delim
22169 DEFS!$DEFS$ac_delim
22170 ECHO_C!$ECHO_C$ac_delim
22171 ECHO_N!$ECHO_N$ac_delim
22172 ECHO_T!$ECHO_T$ac_delim
22173 LIBS!$LIBS$ac_delim
22174 build_alias!$build_alias$ac_delim
22175 host_alias!$host_alias$ac_delim
22176 target_alias!$target_alias$ac_delim
22177 build!$build$ac_delim
22178 build_cpu!$build_cpu$ac_delim
22179 build_vendor!$build_vendor$ac_delim
22180 build_os!$build_os$ac_delim
22181 host!$host$ac_delim
22182 host_cpu!$host_cpu$ac_delim
22183 host_vendor!$host_vendor$ac_delim
22184 host_os!$host_os$ac_delim
22185 target!$target$ac_delim
22186 target_cpu!$target_cpu$ac_delim
22187 target_vendor!$target_vendor$ac_delim
22188 target_os!$target_os$ac_delim
22189 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22190 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22191 INSTALL_DATA!$INSTALL_DATA$ac_delim
22192 CYGPATH_W!$CYGPATH_W$ac_delim
22193 PACKAGE!$PACKAGE$ac_delim
22194 VERSION!$VERSION$ac_delim
22195 ACLOCAL!$ACLOCAL$ac_delim
22196 AUTOCONF!$AUTOCONF$ac_delim
22197 AUTOMAKE!$AUTOMAKE$ac_delim
22198 AUTOHEADER!$AUTOHEADER$ac_delim
22199 MAKEINFO!$MAKEINFO$ac_delim
22200 AMTAR!$AMTAR$ac_delim
22201 install_sh!$install_sh$ac_delim
22202 STRIP!$STRIP$ac_delim
22203 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22205 SET_MAKE!$SET_MAKE$ac_delim
22206 am__leading_dot!$am__leading_dot$ac_delim
22207 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22208 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22209 MAINT!$MAINT$ac_delim
22210 XAW_INSTALL_RESOURCE_FILES_TRUE!$XAW_INSTALL_RESOURCE_FILES_TRUE$ac_delim
22211 XAW_INSTALL_RESOURCE_FILES_FALSE!$XAW_INSTALL_RESOURCE_FILES_FALSE$ac_delim
22212 xawresdir!$xawresdir$ac_delim
22213 EMACS!$EMACS$ac_delim
22214 lispdir!$lispdir$ac_delim
22216 CFLAGS!$CFLAGS$ac_delim
22217 LDFLAGS!$LDFLAGS$ac_delim
22218 CPPFLAGS!$CPPFLAGS$ac_delim
22219 ac_ct_CC!$ac_ct_CC$ac_delim
22220 EXEEXT!$EXEEXT$ac_delim
22221 OBJEXT!$OBJEXT$ac_delim
22222 DEPDIR!$DEPDIR$ac_delim
22223 am__include!$am__include$ac_delim
22224 am__quote!$am__quote$ac_delim
22225 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22226 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22227 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22228 CCDEPMODE!$CCDEPMODE$ac_delim
22229 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22230 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22232 GREP!$GREP$ac_delim
22233 EGREP!$EGREP$ac_delim
22234 RANLIB!$RANLIB$ac_delim
22235 LN_S!$LN_S$ac_delim
22236 XMKMF!$XMKMF$ac_delim
22239 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22241 elif $ac_last_try; then
22242 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22244 { (exit 1); exit 1; }; }
22246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22250 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22251 if test -n "$ac_eof"; then
22252 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22253 ac_eof=`expr $ac_eof + 1`
22256 cat >>$CONFIG_STATUS <<_ACEOF
22257 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22262 s/^/s,@/; s/!/@,|#_!!_#|/
22265 s/'"$ac_delim"'$/,g/; t
22267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22268 ' >>$CONFIG_STATUS <conf$$subs.sed
22269 rm -f conf$$subs.sed
22270 cat >>$CONFIG_STATUS <<_ACEOF
22276 for ac_last_try in false false false false false :; do
22277 cat >conf$$subs.sed <<_ACEOF
22278 X_CFLAGS!$X_CFLAGS$ac_delim
22279 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22280 X_LIBS!$X_LIBS$ac_delim
22281 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
22282 LIBOBJS!$LIBOBJS$ac_delim
22283 NEEDGETOPT_TRUE!$NEEDGETOPT_TRUE$ac_delim
22284 NEEDGETOPT_FALSE!$NEEDGETOPT_FALSE$ac_delim
22285 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
22286 ALSA_LIBS!$ALSA_LIBS$ac_delim
22287 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
22288 ARTSLIBS!$ARTSLIBS$ac_delim
22289 ARTSINCL!$ARTSINCL$ac_delim
22290 ESD_CONFIG!$ESD_CONFIG$ac_delim
22291 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
22292 ESD_LIBS!$ESD_LIBS$ac_delim
22293 AO_CFLAGS!$AO_CFLAGS$ac_delim
22294 AO_LIBS!$AO_LIBS$ac_delim
22295 VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
22296 VORBIS_LIBS!$VORBIS_LIBS$ac_delim
22297 VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
22298 VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
22299 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
22300 OGG_LIBS!$OGG_LIBS$ac_delim
22301 LIBFLAC_CFLAGS!$LIBFLAC_CFLAGS$ac_delim
22302 LIBFLAC_LIBS!$LIBFLAC_LIBS$ac_delim
22303 LIBOGGFLAC_CFLAGS!$LIBOGGFLAC_CFLAGS$ac_delim
22304 LIBOGGFLAC_LIBS!$LIBOGGFLAC_LIBS$ac_delim
22305 NEEDDLOPEN_TRUE!$NEEDDLOPEN_TRUE$ac_delim
22306 NEEDDLOPEN_FALSE!$NEEDDLOPEN_FALSE$ac_delim
22307 ENABLE_XDND_TRUE!$ENABLE_XDND_TRUE$ac_delim
22308 ENABLE_XDND_FALSE!$ENABLE_XDND_FALSE$ac_delim
22309 ENABLE_NCURSES_TRUE!$ENABLE_NCURSES_TRUE$ac_delim
22310 ENABLE_NCURSES_FALSE!$ENABLE_NCURSES_FALSE$ac_delim
22311 n_so_libs!$n_so_libs$ac_delim
22312 ENABLE_SLANG_TRUE!$ENABLE_SLANG_TRUE$ac_delim
22313 ENABLE_SLANG_FALSE!$ENABLE_SLANG_FALSE$ac_delim
22314 s_so_libs!$s_so_libs$ac_delim
22315 ENABLE_MOTIF_TRUE!$ENABLE_MOTIF_TRUE$ac_delim
22316 ENABLE_MOTIF_FALSE!$ENABLE_MOTIF_FALSE$ac_delim
22317 m_so_libs!$m_so_libs$ac_delim
22318 ENABLE_TCLTK_TRUE!$ENABLE_TCLTK_TRUE$ac_delim
22319 ENABLE_TCLTK_FALSE!$ENABLE_TCLTK_FALSE$ac_delim
22320 k_so_libs!$k_so_libs$ac_delim
22321 ENABLE_DYNAMIC_TCLTK_TRUE!$ENABLE_DYNAMIC_TCLTK_TRUE$ac_delim
22322 ENABLE_DYNAMIC_TCLTK_FALSE!$ENABLE_DYNAMIC_TCLTK_FALSE$ac_delim
22323 ENABLE_EMACS_TRUE!$ENABLE_EMACS_TRUE$ac_delim
22324 ENABLE_EMACS_FALSE!$ENABLE_EMACS_FALSE$ac_delim
22325 e_so_libs!$e_so_libs$ac_delim
22326 ENABLE_VT100_TRUE!$ENABLE_VT100_TRUE$ac_delim
22327 ENABLE_VT100_FALSE!$ENABLE_VT100_FALSE$ac_delim
22328 T_so_libs!$T_so_libs$ac_delim
22329 ENABLE_XAW_TRUE!$ENABLE_XAW_TRUE$ac_delim
22330 ENABLE_XAW_FALSE!$ENABLE_XAW_FALSE$ac_delim
22331 a_so_libs!$a_so_libs$ac_delim
22332 ENABLE_DYNAMIC_XAW_TRUE!$ENABLE_DYNAMIC_XAW_TRUE$ac_delim
22333 ENABLE_DYNAMIC_XAW_FALSE!$ENABLE_DYNAMIC_XAW_FALSE$ac_delim
22334 ENABLE_XSKIN_TRUE!$ENABLE_XSKIN_TRUE$ac_delim
22335 ENABLE_XSKIN_FALSE!$ENABLE_XSKIN_FALSE$ac_delim
22336 i_so_libs!$i_so_libs$ac_delim
22337 ENABLE_GTK_TRUE!$ENABLE_GTK_TRUE$ac_delim
22338 ENABLE_GTK_FALSE!$ENABLE_GTK_FALSE$ac_delim
22339 PKG_CONFIG!$PKG_CONFIG$ac_delim
22340 GTK_CONFIG!$GTK_CONFIG$ac_delim
22341 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
22342 GTK_LIBS!$GTK_LIBS$ac_delim
22343 g_so_libs!$g_so_libs$ac_delim
22344 ENABLE_SERVER_TRUE!$ENABLE_SERVER_TRUE$ac_delim
22345 ENABLE_SERVER_FALSE!$ENABLE_SERVER_FALSE$ac_delim
22346 r_so_libs!$r_so_libs$ac_delim
22347 ENABLE_ALSASEQ_TRUE!$ENABLE_ALSASEQ_TRUE$ac_delim
22348 ENABLE_ALSASEQ_FALSE!$ENABLE_ALSASEQ_FALSE$ac_delim
22349 A_so_libs!$A_so_libs$ac_delim
22350 ENABLE_WINSYN_TRUE!$ENABLE_WINSYN_TRUE$ac_delim
22351 ENABLE_WINSYN_FALSE!$ENABLE_WINSYN_FALSE$ac_delim
22352 W_so_libs!$W_so_libs$ac_delim
22353 ENABLE_PORTMIDISYN_TRUE!$ENABLE_PORTMIDISYN_TRUE$ac_delim
22354 ENABLE_PORTMIDISYN_FALSE!$ENABLE_PORTMIDISYN_FALSE$ac_delim
22355 P_so_libs!$P_so_libs$ac_delim
22356 ENABLE_NPSYN_TRUE!$ENABLE_NPSYN_TRUE$ac_delim
22357 ENABLE_NPSYN_FALSE!$ENABLE_NPSYN_FALSE$ac_delim
22358 ENABLE_W32G_SYN_TRUE!$ENABLE_W32G_SYN_TRUE$ac_delim
22359 ENABLE_W32G_SYN_FALSE!$ENABLE_W32G_SYN_FALSE$ac_delim
22360 ENABLE_W32GUI_TRUE!$ENABLE_W32GUI_TRUE$ac_delim
22361 ENABLE_W32GUI_FALSE!$ENABLE_W32GUI_FALSE$ac_delim
22362 w_so_libs!$w_so_libs$ac_delim
22363 ENABLE_PLUGIN_TRUE!$ENABLE_PLUGIN_TRUE$ac_delim
22364 ENABLE_PLUGIN_FALSE!$ENABLE_PLUGIN_FALSE$ac_delim
22365 p_so_libs!$p_so_libs$ac_delim
22366 ENABLE_NETWORK_TRUE!$ENABLE_NETWORK_TRUE$ac_delim
22367 ENABLE_NETWORK_FALSE!$ENABLE_NETWORK_FALSE$ac_delim
22368 ENABLE_SOUND_SPEC_TRUE!$ENABLE_SOUND_SPEC_TRUE$ac_delim
22369 ENABLE_SOUND_SPEC_FALSE!$ENABLE_SOUND_SPEC_FALSE$ac_delim
22370 ENABLE_WRD_TRUE!$ENABLE_WRD_TRUE$ac_delim
22371 ENABLE_WRD_FALSE!$ENABLE_WRD_FALSE$ac_delim
22372 W32G_GUI_TRUE!$W32G_GUI_TRUE$ac_delim
22373 W32G_GUI_FALSE!$W32G_GUI_FALSE$ac_delim
22374 WINDRV_TRUE!$WINDRV_TRUE$ac_delim
22377 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22379 elif $ac_last_try; then
22380 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22381 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22382 { (exit 1); exit 1; }; }
22384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22388 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22389 if test -n "$ac_eof"; then
22390 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22391 ac_eof=`expr $ac_eof + 1`
22394 cat >>$CONFIG_STATUS <<_ACEOF
22395 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22399 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22400 s/^/s,@/; s/!/@,|#_!!_#|/
22403 s/'"$ac_delim"'$/,g/; t
22405 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22406 ' >>$CONFIG_STATUS <conf$$subs.sed
22407 rm -f conf$$subs.sed
22408 cat >>$CONFIG_STATUS <<_ACEOF
22414 for ac_last_try in false false false false false :; do
22415 cat >conf$$subs.sed <<_ACEOF
22416 WINDRV_FALSE!$WINDRV_FALSE$ac_delim
22417 MSYS_TRUE!$MSYS_TRUE$ac_delim
22418 MSYS_FALSE!$MSYS_FALSE$ac_delim
22419 VCPP_TRUE!$VCPP_TRUE$ac_delim
22420 VCPP_FALSE!$VCPP_FALSE$ac_delim
22421 POCC_TRUE!$POCC_TRUE$ac_delim
22422 POCC_FALSE!$POCC_FALSE$ac_delim
22423 BORLANDC_TRUE!$BORLANDC_TRUE$ac_delim
22424 BORLANDC_FALSE!$BORLANDC_FALSE$ac_delim
22425 WATCOM_C_TRUE!$WATCOM_C_TRUE$ac_delim
22426 WATCOM_C_FALSE!$WATCOM_C_FALSE$ac_delim
22427 DMC_TRUE!$DMC_TRUE$ac_delim
22428 DMC_FALSE!$DMC_FALSE$ac_delim
22429 MINGWGCC_TRUE!$MINGWGCC_TRUE$ac_delim
22430 MINGWGCC_FALSE!$MINGWGCC_FALSE$ac_delim
22431 W32READDIR_TRUE!$W32READDIR_TRUE$ac_delim
22432 W32READDIR_FALSE!$W32READDIR_FALSE$ac_delim
22433 BORLANDC_START!$BORLANDC_START$ac_delim
22434 BORLANDC_LDFLAGS!$BORLANDC_LDFLAGS$ac_delim
22435 timidity_LDFLAGS!$timidity_LDFLAGS$ac_delim
22436 WATCOM_LDFLAGS!$WATCOM_LDFLAGS$ac_delim
22437 DMC_LDFLAGS!$DMC_LDFLAGS$ac_delim
22438 VCPP_LDFLAGS!$VCPP_LDFLAGS$ac_delim
22439 POCC_LDFLAGS!$POCC_LDFLAGS$ac_delim
22440 SYSEXTRAS!$SYSEXTRAS$ac_delim
22441 EXTRALIBS!$EXTRALIBS$ac_delim
22442 NETSRCS!$NETSRCS$ac_delim
22443 ELFILES!$ELFILES$ac_delim
22444 SHLD!$SHLD$ac_delim
22445 SHCFLAGS!$SHCFLAGS$ac_delim
22446 dynamic_targets!$dynamic_targets$ac_delim
22448 WISH!$WISH$ac_delim
22449 tcltk_dep!$tcltk_dep$ac_delim
22450 INTERFACE_SRCS!$INTERFACE_SRCS$ac_delim
22451 pkgdatadir!$pkgdatadir$ac_delim
22452 pkglibdir!$pkglibdir$ac_delim
22453 LTLIBOBJS!$LTLIBOBJS$ac_delim
22456 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
22458 elif $ac_last_try; then
22459 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22460 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22461 { (exit 1); exit 1; }; }
22463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22467 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22468 if test -n "$ac_eof"; then
22469 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22470 ac_eof=`expr $ac_eof + 1`
22473 cat >>$CONFIG_STATUS <<_ACEOF
22474 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22478 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22479 s/^/s,@/; s/!/@,|#_!!_#|/
22482 s/'"$ac_delim"'$/,g/; t
22484 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22485 ' >>$CONFIG_STATUS <conf$$subs.sed
22486 rm -f conf$$subs.sed
22487 cat >>$CONFIG_STATUS <<_ACEOF
22494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22496 # trailing colons and then remove the whole line if VPATH becomes empty
22497 # (actually we leave an empty line to preserve line numbers).
22498 if test "x$srcdir" = x.; then
22499 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22500 s/:*\$(srcdir):*/:/
22501 s/:*\${srcdir}:*/:/
22503 s/^\([^=]*=[ ]*\):*/\1/
22509 cat >>$CONFIG_STATUS <<\_ACEOF
22510 fi # test -n "$CONFIG_FILES"
22513 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22516 :[FHLC]) ac_mode=$ac_tag; continue;;
22518 case $ac_mode$ac_tag in
22520 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22521 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22522 { (exit 1); exit 1; }; };;
22523 :[FH]-) ac_tag=-:-;;
22524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22541 -) ac_f="$tmp/stdin";;
22542 *) # Look for the file first in the build tree, then in the source tree
22543 # (if the path is not absolute). The absolute path cannot be DOS-style,
22544 # because $ac_f cannot contain `:'.
22548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22550 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22551 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22552 { (exit 1); exit 1; }; };;
22554 ac_file_inputs="$ac_file_inputs $ac_f"
22557 # Let's still pretend it is `configure' which instantiates (i.e., don't
22558 # use $as_me), people would be surprised to read:
22559 # /* config.h. Generated by config.status. */
22560 configure_input="Generated from "`IFS=:
22561 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22562 if test x"$ac_file" != x-; then
22563 configure_input="$ac_file. $configure_input"
22564 { echo "$as_me:$LINENO: creating $ac_file" >&5
22565 echo "$as_me: creating $ac_file" >&6;}
22569 *:-:* | *:-) cat >"$tmp/stdin";;
22574 ac_dir=`$as_dirname -- "$ac_file" ||
22575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576 X"$ac_file" : 'X\(//\)[^/]' \| \
22577 X"$ac_file" : 'X\(//\)$' \| \
22578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22584 /^X\(\/\/\)[^/].*/{
22599 -*) as_dir=./$as_dir;;
22601 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22605 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22606 *) as_qdir=$as_dir;;
22608 as_dirs="'$as_qdir' $as_dirs"
22609 as_dir=`$as_dirname -- "$as_dir" ||
22610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22611 X"$as_dir" : 'X\(//\)[^/]' \| \
22612 X"$as_dir" : 'X\(//\)$' \| \
22613 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22619 /^X\(\/\/\)[^/].*/{
22632 test -d "$as_dir" && break
22634 test -z "$as_dirs" || eval "mkdir $as_dirs"
22635 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22636 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22637 { (exit 1); exit 1; }; }; }
22641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22644 # A ".." for each directory in $ac_dir_suffix.
22645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22646 case $ac_top_builddir_sub in
22647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22651 ac_abs_top_builddir=$ac_pwd
22652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22653 # for backward compatibility:
22654 ac_top_builddir=$ac_top_build_prefix
22657 .) # We are building in place.
22659 ac_top_srcdir=$ac_top_builddir_sub
22660 ac_abs_top_srcdir=$ac_pwd ;;
22661 [\\/]* | ?:[\\/]* ) # Absolute name.
22662 ac_srcdir=$srcdir$ac_dir_suffix;
22663 ac_top_srcdir=$srcdir
22664 ac_abs_top_srcdir=$srcdir ;;
22665 *) # Relative name.
22666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22667 ac_top_srcdir=$ac_top_build_prefix$srcdir
22668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22685 cat >>$CONFIG_STATUS <<\_ACEOF
22686 # If the template does not know about datarootdir, expand it.
22687 # FIXME: This hack should be removed a few years after 2.60.
22688 ac_datarootdir_hack=; ac_datarootdir_seen=
22690 case `sed -n '/datarootdir/ {
22699 ' $ac_file_inputs` in
22700 *datarootdir*) ac_datarootdir_seen=yes;;
22701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22702 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22703 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22705 cat >>$CONFIG_STATUS <<_ACEOF
22706 ac_datarootdir_hack='
22707 s&@datadir@&$datadir&g
22708 s&@docdir@&$docdir&g
22709 s&@infodir@&$infodir&g
22710 s&@localedir@&$localedir&g
22711 s&@mandir@&$mandir&g
22712 s&\\\${datarootdir}&$datarootdir&g' ;;
22716 # Neutralize VPATH when `$srcdir' = `.'.
22717 # Shell code in configure.ac might set extrasub.
22718 # FIXME: do we really want to maintain this feature?
22719 cat >>$CONFIG_STATUS <<_ACEOF
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22726 s&@configure_input@&$configure_input&;t t
22727 s&@top_builddir@&$ac_top_builddir_sub&;t t
22728 s&@srcdir@&$ac_srcdir&;t t
22729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22730 s&@top_srcdir@&$ac_top_srcdir&;t t
22731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22732 s&@builddir@&$ac_builddir&;t t
22733 s&@abs_builddir@&$ac_abs_builddir&;t t
22734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22735 s&@INSTALL@&$ac_INSTALL&;t t
22736 $ac_datarootdir_hack
22737 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22740 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22742 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22743 which seems to be undefined. Please make sure it is defined." >&5
22744 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22745 which seems to be undefined. Please make sure it is defined." >&2;}
22749 -) cat "$tmp/out"; rm -f "$tmp/out";;
22750 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22759 # Transform confdefs.h into a sed script `conftest.defines', that
22760 # substitutes the proper values into config.h.in to produce config.h.
22761 rm -f conftest.defines conftest.tail
22762 # First, append a space to every undef/define line, to ease matching.
22763 echo 's/$/ /' >conftest.defines
22764 # Then, protect against being on the right side of a sed subst, or in
22765 # an unquoted here document, in config.status. If some macros were
22766 # called several times there might be several #defines for the same
22767 # symbol, which is useless. But do not sort them, since the last
22768 # AC_DEFINE must be honored.
22769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22770 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22771 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22772 # PARAMS is the parameter list in the macro definition--in most cases, it's
22773 # just an empty string.
22774 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22775 ac_dB='\\)[ (].*,\\1define\\2'
22783 s/^[ ]*#[ ]*define[ ][ ]*//
22788 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22789 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22790 ' >>conftest.defines
22792 # Remove the space that was appended to ease matching.
22793 # Then replace #undef with comments. This is necessary, for
22794 # example, in the case of _POSIX_SOURCE, which is predefined and required
22795 # on some systems where configure will not decide to define it.
22796 # (The regexp can be short, since the line contains either #define or #undef.)
22798 s,^[ #]*u.*,/* & */,' >>conftest.defines
22800 # Break up conftest.defines:
22801 ac_max_sed_lines=50
22803 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22804 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22805 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22807 ac_in='$ac_file_inputs'
22808 ac_out='"$tmp/out1"'
22809 ac_nxt='"$tmp/out2"'
22813 # Write a here document:
22814 cat >>$CONFIG_STATUS <<_ACEOF
22815 # First, check the format of the line:
22816 cat >"\$tmp/defines.sed" <<\\CEOF
22817 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22818 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22822 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22824 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22825 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22826 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22827 grep . conftest.tail >/dev/null || break
22828 rm -f conftest.defines
22829 mv conftest.tail conftest.defines
22831 rm -f conftest.defines conftest.tail
22833 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22835 if test x"$ac_file" != x-; then
22836 echo "/* $configure_input */" >"$tmp/config.h"
22837 cat "$ac_result" >>"$tmp/config.h"
22838 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22839 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22840 echo "$as_me: $ac_file is unchanged" >&6;}
22843 mv "$tmp/config.h" $ac_file
22846 echo "/* $configure_input */"
22850 # Compute $ac_file's index in $config_headers.
22852 for _am_header in $config_headers :; do
22853 case $_am_header in
22854 $ac_file | $ac_file:* )
22857 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22860 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22861 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22862 X$ac_file : 'X\(//\)[^/]' \| \
22863 X$ac_file : 'X\(//\)$' \| \
22864 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22870 /^X\(\/\/\)[^/].*/{
22882 s/.*/./; q'`/stamp-h$_am_stamp_count
22885 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22886 echo "$as_me: executing $ac_file commands" >&6;}
22891 case $ac_file$ac_mode in
22892 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22893 # Strip MF so we end up with the name of the file.
22894 mf=`echo "$mf" | sed -e 's/:.*$//'`
22895 # Check whether this is an Automake generated Makefile or not.
22896 # We used to match only the files named `Makefile.in', but
22897 # some people rename them; so instead we look at the file content.
22898 # Grep'ing the first line is not enough: some people post-process
22899 # each Makefile.in and add a new line on top of each file to say so.
22900 # So let's grep whole file.
22901 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22902 dirpart=`$as_dirname -- "$mf" ||
22903 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904 X"$mf" : 'X\(//\)[^/]' \| \
22905 X"$mf" : 'X\(//\)$' \| \
22906 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22912 /^X\(\/\/\)[^/].*/{
22928 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22929 # Extract the definition of DEP_FILES from the Makefile without
22931 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22932 test -z "$DEPDIR" && continue
22933 # When using ansi2knr, U may be empty or an underscore; expand it
22934 U=`sed -n -e '/^U = / s///p' < "$mf"`
22935 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22936 # We invoke sed twice because it is the simplest approach to
22937 # changing $(DEPDIR) to its actual value in the expansion.
22938 for file in `sed -n -e '
22939 /^DEP_FILES = .*\\\\$/ {
22948 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22949 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22950 # Make sure the directory exists.
22951 test -f "$dirpart/$file" && continue
22952 fdir=`$as_dirname -- "$file" ||
22953 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954 X"$file" : 'X\(//\)[^/]' \| \
22955 X"$file" : 'X\(//\)$' \| \
22956 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22962 /^X\(\/\/\)[^/].*/{
22975 { as_dir=$dirpart/$fdir
22977 -*) as_dir=./$as_dir;;
22979 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22983 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22984 *) as_qdir=$as_dir;;
22986 as_dirs="'$as_qdir' $as_dirs"
22987 as_dir=`$as_dirname -- "$as_dir" ||
22988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22989 X"$as_dir" : 'X\(//\)[^/]' \| \
22990 X"$as_dir" : 'X\(//\)$' \| \
22991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22997 /^X\(\/\/\)[^/].*/{
23010 test -d "$as_dir" && break
23012 test -z "$as_dirs" || eval "mkdir $as_dirs"
23013 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23014 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23015 { (exit 1); exit 1; }; }; }
23016 # echo "creating $dirpart/$file"
23017 echo '# dummy' > "$dirpart/$file"
23026 { (exit 0); exit 0; }
23028 chmod +x $CONFIG_STATUS
23029 ac_clean_files=$ac_clean_files_save
23032 # configure is writing to config.log, and then calls config.status.
23033 # config.status does its own redirection, appending to config.log.
23034 # Unfortunately, on DOS this fails, as config.log is still kept open
23035 # by configure, so config.status won't be able to write to it; its
23036 # output is simply discarded. So we exec the FD to /dev/null,
23037 # effectively closing config.log, so it can be properly (re)opened and
23038 # appended to by config.status. When coming back to configure, we
23039 # need to make the FD available again.
23040 if test "$no_create" != yes; then
23042 ac_config_status_args=
23043 test "$silent" = yes &&
23044 ac_config_status_args="$ac_config_status_args --quiet"
23046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23049 # would make configure fail if this is the last instruction.
23050 $ac_cs_success || { (exit 1); exit 1; }