Ar an triú lá déag de mí Márta, scríobh Aidan Kehoe:
Something that remains is that the ossaudio dynamic library isn’t
picked up,
as it needs to be for Linux-emulated sound support on NetBSD (and on
OpenBSD, but we’ve left that to their packaging system so far.) Let me look
into why that is.
Looks like $canonical was being checked, instead of $ac_cv_build. The below
patch fixes that, and should be applied.
ChangeLog addition:
2005-03-13 Aidan Kehoe <kehoea(a)parhasard.net>
* configure.ac (TAB): Check $ac_cv_build, not $canonical, when
working out whether to link against libossaudio.so on NetBSD.
Index: configure.ac
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.ac,v
retrieving revision 1.2
diff -u -u -r1.2 configure.ac
--- configure.ac 2005/03/11 11:19:01 1.2
+++ configure.ac 2005/03/13 14:01:08
@@ -1200,7 +1200,7 @@
dnl NetBSD ports
*-*-netbsd* )
- case "ac_cv_build" in
+ case "${ac_cv_build}" in
i[[3-9]]86-*-netbsd*) machine=intel386 ;;
hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* |
da30-*-netbsd* | m68k-*-netbsd* )
dnl Yes, this is somewhat bogus.
@@ -4730,12 +4730,18 @@
for dir in "machine" "sys" "linux"; do
AC_CHECK_HEADER([${dir}/soundcard.h], [
sound_found=yes
- case "$canonical" in
+ case "${ac_cv_build}" in
*netbsd* )
# #### this is probably not the right way to do this
# we should port to native NetBSD stuff
+
+ dnl Aidan says: We have other things to be doing. If some
+ dnl energetic NetBSD partisan volunteers, then yeah, cool,
+ dnl but as it is, this works, and is unlikely to stop
+ dnl working any time soon.
+
AC_CHECK_LIB(ossaudio, _oss_ioctl,
- [native_sound_lib=-lossaudio
+ [with_native_sound_lib=-lossaudio
AC_MSG_WARN([Using NetBSD-deprecated -lossaudio])],
[sound_found=no])
;;
--
“I, for instance, am gung-ho about open source because my family is being
held hostage in Rob Malda’s basement. But who fact-checks me, or Enderle,
when we say something in public? No-one!” -- Danny O’Brien