OSDN Git Service

Add more m4 tests
authorwifiextender <router@archlinux.info>
Sat, 20 Aug 2016 09:32:26 +0000 (11:32 +0200)
committerwifiextender <router@archlinux.info>
Sat, 20 Aug 2016 09:32:26 +0000 (11:32 +0200)
m4/alsa.m4

index a2fe3e2..bc4ee41 100644 (file)
@@ -92,6 +92,24 @@ AC_DEFUN([TEST_ALSA],[
           ],[
             ERR([Homie, where is sys/soundcard.h ?])
         ])
+
+        NOTIFY([fcntl])
+        AC_COMPILE_IFELSE([
+          AC_LANG_SOURCE([[
+            #include <fcntl.h>
+            int main(void) {
+              int fd = 0;
+              if (-1 == (fd = open("elo", O_RDONLY))) {
+                return 0;
+              }
+              return 0;
+            }
+          ]])
+        ],[],[
+          COMPILE_FAILED([fcntl])
+          ]
+        )
+
       ])
     ])
   ],[