]> xenbits.xensource.com Git - libvirt.git/commitdiff
configure: define preprocessor macros for SCSI and MPATH
authorJán Tomko <jtomko@redhat.com>
Fri, 17 Jun 2016 08:59:35 +0000 (10:59 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 17 Jun 2016 13:35:46 +0000 (15:35 +0200)
This fixes building these backends when explicitly enabled
on the command line.

Exposed by commit a659559 which started adding
--with-storage-mpath in the spec file.

https://bugzilla.redhat.com/show_bug.cgi?id=1346724

configure.ac

index 7d16e5a852841e6e9f4b8a2e1dba79b2ede7d00f..848ecd69ce1c101682e2336c0294ccbfba146cab 100644 (file)
@@ -1851,7 +1851,7 @@ else
 fi
 AM_CONDITIONAL([WITH_STORAGE_ISCSI], [test "$with_storage_iscsi" = "yes"])
 
-if test "$with_storage_scsi" = "check"; then
+if test "$with_storage_scsi" = "check" || test "$with_storage_scsi" = "yes"; then
    with_storage_scsi=yes
 
    AC_DEFINE_UNQUOTED([WITH_STORAGE_SCSI], 1,
@@ -1859,7 +1859,7 @@ if test "$with_storage_scsi" = "check"; then
 fi
 AM_CONDITIONAL([WITH_STORAGE_SCSI], [test "$with_storage_scsi" = "yes"])
 
-if test "$with_storage_mpath" = "check"; then
+if test "$with_storage_mpath" = "check" || test "$with_storage_mpath" = "yes"; then
    if test "$with_linux" = "yes"; then
       with_storage_mpath=yes