Commit eec9f386 authored by Philippe Rouquier's avatar Philippe Rouquier

Fix for #542136 – Brasero on OpenSolaris

	Patch by Lin Ma

	* configure.in:

svn path=/trunk/; revision=965
parent 52e4e393
2008-07-10 Philippe Rouquier <algernon@localhost.localdomain>
Fix for #542136 – Brasero on OpenSolaris
Patch by Lin Ma
* configure.in:
2008-07-09 Philippe Rouquier <algernon@localhost.localdomain>
Fix warnings in data projects
......
......@@ -37,7 +37,6 @@ AC_DISABLE_STATIC
AC_PROG_LIBTOOL
dnl ** reminder: the following set CFLAGS to -O2 -g if empty
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
dnl Set PACKAGE_DATA_DIR in config.h.
if test "x${datadir}" = 'x${prefix}/share'; then
......@@ -64,21 +63,29 @@ dnl ***************** SCSI related *****************************
AC_SUBST(BRASERO_SCSI_LIBS)
AC_CHECK_HEADERS([camlib.h],[has_cam="yes"],[has_cam="no"])
if test x"$has_cam" = x"yes"; then
BRASERO_SCSI_LIBS="-lcam"
else
dnl ***************** check for linux sg interface *************
AC_CHECK_TYPES([sg_io_hdr_t],[has_sg="yes"],[has_sg="no"],
[#include <sys/types.h>
#include <scsi/sg.h>])
if test x"$has_sg" = x"no"; then
AC_ERROR([Linux sg interface headers could not be found])
fi
dnl ***************** check for solaris uscsi interface ********
AC_CHECK_TYPES([struct uscsi_cmd],[has_uscsi="yes"],[has_uscsi="no"],
[#include <sys/types.h>
#include <sys/scsi/impl/uscsi.h>])
if test x"$has_cam" = x"yes"; then
BRASERO_SCSI_LIBS="-lcam"
elif test x"$has_sg" = x"yes"; then
:
elif test x"$has_uscsi" = x"yes"; then
:
else
AC_ERROR([Support Linux SG, FreeBSD CAM, Solaris USCSI. No supported SCSI interface headers could not be found.])
fi
AM_CONDITIONAL(HAVE_CAM_LIB_H, test x"$has_cam" = "xyes")
AM_CONDITIONAL(HAVE_SG_IO_HDR_T, test x"$has_sg" = "xyes")
AM_CONDITIONAL(HAVE_USCSI_H, test x"$has_uscsi" = "xyes")
dnl ***************** LARGE FILE SUPPORT ***********************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment