[libdvdcss-devel] build: don't use tiered header checks.

Diego Elio Pettenò git at videolan.org
Thu Feb 14 16:57:35 CET 2013


libdvdcss | branch: master | Diego Elio Pettenò <flameeyes at flameeyes.eu> | Thu Feb 14 07:11:22 2013 -0800| [391036711755ec403aca99e8668d5755a44be32f] | committer: Jean-Baptiste Kempf

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 at videolan.org>

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=391036711755ec403aca99e8668d5755a44be32f
---

 configure.ac |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4edf6c6..40ab624 100644
--- a/configure.ac
+++ b/configure.ac
@@ -117,10 +117,11 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
   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



More information about the libdvdcss-devel mailing list