summaryrefslogtreecommitdiffstats
path: root/recipes-extended/openhpi/files/configure_fix.patch
blob: d6c981800ca50cb3b07db6d24ad4706b7b13d253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/configure.ac	2012-08-27 15:08:58.000000000 -0300
+++ b/configure.ac	2013-07-31 08:55:00.017653886 -0300
@@ -277,6 +277,7 @@
         if test "x$have_sysfs" = "xyes"; then
             AC_SUBST(SYSFS,sysfs)
 	    AC_SUBST(WITH_SYSFS,1)
+	    AC_CHECK_HEADERS([sysfs/libsysfs.h])
         else
             OH_CHECK_FAIL(libsysfs,,http://linux-diag.sf.net,
                 Can not build sysfs support without libsysfs)
@@ -287,6 +288,7 @@
     [if test "x$have_sysfs" = "xyes"; then
             AC_SUBST(SYSFS,sysfs)
 	    AC_SUBST(WITH_SYSFS,1)
+	    AC_SUBST(SYSFS_INCLUDE)
      else
 	    AC_SUBST(WITH_SYSFS,0)
      fi