Browse Source

Detecting Linux systems without generic SCSI support by scsi/scsi.h

master
Thomas Schmitt 5 years ago
parent
commit
aa346379d5
  1. 4
      COPYRIGHT
  2. 21
      acinclude.m4
  3. 2
      xorriso/configure_ac.txt

4
COPYRIGHT

@ -1,8 +1,8 @@
Mario Danic <mario.danic@gmail.com>,
Vreixo Formoso <metalpain2002@yahoo.es>
Thomas Schmitt <scdbackup@gmx.net>
libisoburn is Copyright (C) 2007-2014 Vreixo Formoso, Thomas Schmitt
xorriso is Copyright (C) 2007-2014 Thomas Schmitt
libisoburn is Copyright (C) 2007-2017 Vreixo Formoso, Thomas Schmitt
xorriso is Copyright (C) 2007-2017 Thomas Schmitt
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2

21
acinclude.m4

@ -376,3 +376,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 <scsi/scsi.h>
#endif
],
[return;],
[AC_MSG_RESULT([no])],
[AC_DEFINE([Libburn_use_sg_dummY], [yes])
AC_MSG_RESULT([yes])]
)
])

2
xorriso/configure_ac.txt

@ -311,6 +311,8 @@ then
AC_DEFINE([LIBJTE_WITH_ZLIB], [])
fi
# There are Linuxes with no public generic SCSI interface
LIBBURNIA_CHECK_LINUX_SCSI
# libjte source is included in GNU xorriso. Enable it if zlib is enabled.
AH_TEMPLATE([Xorriso_with_libjtE],

Loading…
Cancel
Save