summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/lldpd/files/fix-libevent-configure.patch
blob: 42d6b290ae733e10f2a98a1952d13eeaceea9f0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Upstream-Status: Submitted [https://github.com/vincentbernat/lldpd/issues/133]

Subject: [PATCH] fix libevent configure

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
---
 m4/libevent.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/libevent.m4 b/m4/libevent.m4
index 275e5a5..dcd3309 100644
--- a/m4/libevent.m4
+++ b/m4/libevent.m4
@@ -45,13 +45,11 @@ AC_DEFUN([lldp_CHECK_LIBEVENT], [
         AC_MSG_ERROR([*** libevent not found])
       fi
     ])
-  fi
 
   if test x"$LIBEVENT_EMBEDDED" != x; then
     unset LIBEVENT_LIBS
     LIBEVENT_CFLAGS="-I\$(top_srcdir)/libevent/include -I\$(top_builddir)/libevent/include"
     LIBEVENT_LDFLAGS="\$(top_builddir)/libevent/libevent.la"
-  fi
 
   # Call ./configure in libevent. Need it for make dist...
   libevent_configure_args="$libevent_configure_args --disable-libevent-regress"
@@ -64,6 +62,8 @@ AC_DEFUN([lldp_CHECK_LIBEVENT], [
   libevent_configure_args="$libevent_configure_args --with-pic"
   libevent_configure_args="$libevent_configure_args --enable-static"
   lldp_CONFIG_SUBDIRS([libevent], [$libevent_configure_args])
+  fi
+  fi
 
   AM_CONDITIONAL([LIBEVENT_EMBEDDED], [test x"$LIBEVENT_EMBEDDED" != x])
   AC_SUBST([LIBEVENT_LIBS])
-- 
2.1.4