diff --git a/COPYRIGHT b/COPYRIGHT index 8cd566d..f6a6a23 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,7 +1,7 @@ Derek Foreman and Ben Jansens Copyright (C) 2002-2006 Derek Foreman and Ben Jansens Mario Danic , Thomas Schmitt -Copyright (C) 2006-2014 Mario Danic, Thomas Schmitt +Copyright (C) 2006-2017 Mario Danic, Thomas Schmitt This program is free software; you can redistribute it and/or modify diff --git a/acinclude.m4 b/acinclude.m4 index ba7fcad..7093b8d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -149,3 +149,24 @@ AC_DEFUN([LIBBURNIA_CHECK_ARCH_LIBS], fi ]) + +dnl LIBBURNIA_CHECK_LINUX_SCSI is by Thomas Schmitt, libburnia project +dnl +AC_DEFUN([LIBBURNIA_CHECK_LINUX_SCSI], +[ + dnl Check whether it is a Linux without scsi/scsi.h + AH_TEMPLATE([Libburn_use_sg_dummY], + [Define to compile without OS specific SCSI features]) + AC_MSG_CHECKING([for missing scsi/scsi.h on Linux]) + AC_TRY_COMPILE([ +#ifdef __linux +#include +#endif + ], + [return;], + [AC_MSG_RESULT([no])], + [AC_DEFINE([Libburn_use_sg_dummY], [yes]) + AC_MSG_RESULT([yes])] + ) +]) + diff --git a/configure.ac b/configure.ac index c9dd4be..19e3a90 100644 --- a/configure.ac +++ b/configure.ac @@ -298,6 +298,10 @@ else fi fi +dnl ts B70127 +# There are Linuxes with no public generic SCSI interface +LIBBURNIA_CHECK_LINUX_SCSI + dnl ts B00704 # Library versioning normally serves a complex purpose. # Since libburn obeys strict ABI backward compatibility, it needs only the