shithub: libdvdcss

Download patch

ref: 391036711755ec403aca99e8668d5755a44be32f
parent: 1987df11ddbb2be00147e8affd66d740a84cfeee
author: Diego Elio Pettenò <flameeyes@flameeyes.eu>
date: Thu Feb 14 02:11:22 EST 2013

build: don't use tiered header checks.

This check is more reliable, and should be easier to deal with.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

--- a/configure.ac
+++ b/configure.ac
@@ -117,10 +117,11 @@
   dnl
   dnl Solaris: sys/scsi/scsi_types.h, sys/scsi/impl/uscsi.h
   dnl
-  AC_CHECK_HEADER(sys/scsi/scsi_types.h,[
-    AC_CHECK_HEADER(sys/scsi/impl/uscsi.h,[
-      AC_DEFINE(SOLARIS_USCSI, 1, Have userspace SCSI headers.)
-    ])
+  solaris_uscsi=yes
+  AC_CHECK_HEADERS([sys/scsi/scsi_types.h, sys/scsi/impl/uscsi.h], [],
+    [solaris_uscsi=no; break;])
+  AS_IF([test "$solaris_uscsi" = "yes"], [
+    AC_DEFINE(SOLARIS_USCSI, 1, Have userspace SCSI headers.)
   ])
   dnl
   dnl HP-UX: sys/scsi.h