]> xenbits.xensource.com Git - libvirt.git/commitdiff
m4/virt-lib: properly pass header_name in LIBVIRT_CHECK_LIB(_ALT)
authorPavel Hrdina <phrdina@redhat.com>
Fri, 11 Nov 2016 17:44:43 +0000 (18:44 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 7 Dec 2016 15:21:31 +0000 (16:21 +0100)
The *header_name* cannot be quoted, otherwise it is not translated to
the passed argument.  Without this fix the generated configure contains
*ac_cv_header_header_name*, but there should be for example
*ac_cv_header_sals_sasl_h* for "sasl/sasl.h".

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
m4/virt-lib.m4

index 75b9b1dec1417cc6ac714664b4fdd4008481b660..a9efb74138e36bf148353ceba64956e8f38d295a 100644 (file)
@@ -88,7 +88,7 @@ AC_DEFUN([LIBVIRT_CHECK_LIB],[
       with_var=no
     ])
     if test "$fail" = "0" && test "x$with_var" != "xno" ; then
-      AC_CHECK_HEADER([header_name], [
+      AC_CHECK_HEADER(header_name, [
         with_var=yes
       ],[
         if test "x$with_var" != "xcheck"; then
@@ -225,10 +225,10 @@ AC_DEFUN([LIBVIRT_CHECK_LIB_ALT],[
       ])
     ])
     if test "$fail" = "0" && test "x$with_var" != "xno" ; then
-      AC_CHECK_HEADER([header_name], [
+      AC_CHECK_HEADER(header_name, [
         with_var=yes
       ],[
-        AC_CHECK_HEADER([header_name_alt], [
+        AC_CHECK_HEADER(header_name_alt, [
           with_var=yes
         ],[
           if test "x$with_var" != "xcheck"; then