changeset 17615:3a7d5d655749

Fix typos in configure tests for LLVM methods (bug #39973) * acinclude.m4 (OCTAVE_LLVM_CALLINST_ADDATTRIBUTE_API): Add extra pair of m4 quotes. (OCTAVE_LLVM_FUNCTION_ADDFNATTR_API): Fix typo in LLVM ifdef and include paths for LLVM header files.
author Mike Miller <mtmiller@ieee.org>
date Wed, 09 Oct 2013 01:28:38 -0400
parents ce7b9abf6600
children 8cc19352fd74
files m4/acinclude.m4
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/m4/acinclude.m4	Wed Oct 09 01:10:14 2013 -0400
+++ b/m4/acinclude.m4	Wed Oct 09 01:28:38 2013 -0400
@@ -1467,7 +1467,7 @@
     [octave_cv_callinst_addattribute_arg_is_attributes],
     [AC_LANG_PUSH(C++)
       AC_COMPILE_IFELSE(
-        [AC_LANG_PROGRAM([
+        [AC_LANG_PROGRAM([[
 #ifdef HAVE_LLVM_IR_FUNCTION_H
           #include <llvm/IR/Instructions.h>
           #include <llvm/IR/Attributes.h>
@@ -1475,7 +1475,7 @@
           #include <llvm/Instructions.h>
           #include <llvm/Attributes.h>
 #endif
-          ], [[
+          ]], [[
           llvm::CallInst *callinst;
           llvm::AttrBuilder attr_builder;
           attr_builder.addAttribute(llvm::Attributes::StructRet);
@@ -1534,9 +1534,9 @@
     [AC_LANG_PUSH(C++)
       AC_COMPILE_IFELSE(
         [AC_LANG_PROGRAM([[
-#ifdef LLVM_HAVE_IR_FUNCTION_H
-          #include <llvm/Function.h>
-          #include <llvm/Attributes.h>
+#ifdef HAVE_LLVM_IR_FUNCTION_H
+          #include <llvm/IR/Function.h>
+          #include <llvm/IR/Attributes.h>
 #else
           #include <llvm/Function.h>
           #include <llvm/Attributes.h>