]> git.saurik.com Git - wxWidgets.git/commitdiff
test for sys/soundcard.h was failing because of missing sys/ioctl.h
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Aug 2006 13:24:02 +0000 (13:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Aug 2006 13:24:02 +0000 (13:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index d30f1b0f7d51259582c89a2b114e0f9ba3340709..4d30f6bf9716d8a067e1ef09db954f682aef8d04 100755 (executable)
--- a/configure
+++ b/configure
@@ -40881,8 +40881,8 @@ _ACEOF
 fi
 
 if test "$USE_UNIX" = "1" ; then
-                echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
-echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
+                echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
+echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
 if test "${ac_cv_header_sys_soundcard+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
@@ -40894,13 +40894,14 @@ cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
+                #include <sys/ioctl.h>
                 #include <sys/soundcard.h>
 
 int
 main ()
 {
 
-                ioctl(0, SNDCTL_DSP_SYNC, 0);
+                ioctl(0, SNDCTL_DSP_SPEED, 0);
 
   ;
   return 0;
@@ -40942,13 +40943,14 @@ cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
+                        #include <sys/ioctl.h>
                         #include <sys/soundcard.h>
 
 int
 main ()
 {
 
-                        ioctl(0, SNDCTL_DSP_SYNC, 0);
+                        ioctl(0, SNDCTL_DSP_SPEED, 0);
 
   ;
   return 0;
index f61bb4d2064452b2375cfe75faa7c40482d826c9..5039a1867e76a3a27966fce5127d80a6fe1531a2 100644 (file)
@@ -5423,22 +5423,24 @@ if test "$USE_UNIX" = "1" ; then
     dnl it's not enough to check for just the header because OSS under NetBSD
     dnl redefines ioctl as oss_ioctrl inside it and so we also need to test
     dnl whether we need -lossaudio at link-time
-    AC_CACHE_CHECK([for ioctl() in sys/soundcard.h], ac_cv_header_sys_soundcard, [
+    AC_CACHE_CHECK([for SNDCTL_DSP_SPEED in sys/soundcard.h], ac_cv_header_sys_soundcard, [
         AC_TRY_LINK([
+                #include <sys/ioctl.h>
                 #include <sys/soundcard.h>
             ],
             [
-                ioctl(0, SNDCTL_DSP_SYNC, 0);
+                ioctl(0, SNDCTL_DSP_SPEED, 0);
             ],
             ac_cv_header_sys_soundcard=yes,
             [
                 saveLibs="$LIBS"
                 LIBS="$saveLibs -lossaudio"
                 AC_TRY_LINK([
+                        #include <sys/ioctl.h>
                         #include <sys/soundcard.h>
                     ],
                     [
-                        ioctl(0, SNDCTL_DSP_SYNC, 0);
+                        ioctl(0, SNDCTL_DSP_SPEED, 0);
                     ],
                     ac_cv_header_sys_soundcard=yes,
                     [