configure: on Linux, the BSD functions require linking against libbsd
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+(Rebased against 20150325-3.1)
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
diff -durN libedit-20130712-3.1.orig/configure.ac libedit-20130712-3.1/configure.ac
--- libedit-20130712-3.1.orig/configure.ac 2013-07-12 20:39:22.000000000 +0200
+++ libedit-20130712-3.1/configure.ac 2013-07-28 23:35:35.012676469 +0200
-@@ -108,6 +108,10 @@
+@@ -117,6 +117,10 @@
#AC_FUNC_REALLOC
AC_TYPE_SIGNAL
AC_FUNC_STAT
The official homepage is at:
http://ftp.netbsd.org/pub/NetBSD/NetBSD-release-5-0/src/lib/libedit/
- Jess Thrysoee maintains an autotoolified packaged, which we use
+ Jess Thrysoee maintains an autotoolified package, which we use
in Buildroot as it makes it much simpler than using the upstream
- sources which require pmake:
- http://www.thrysoee.dk/editline/
+ sources which require pmake.
+
+ http://www.thrysoee.dk/editline
comment "libedit needs a toolchain w/ wchar"
depends on BR2_USE_MMU
#
################################################################################
-LIBEDIT_VERSION = 20130712-3.1
+LIBEDIT_VERSION = 20150325-3.1
LIBEDIT_SITE = http://www.thrysoee.dk/editline
LIBEDIT_INSTALL_STAGING = YES
LIBEDIT_DEPENDENCIES = ncurses
# We're patching configure.ac
LIBEDIT_AUTORECONF = YES
+# Needed for autoreconf to work properly
+define LIBEDIT_FIXUP_M4_DIR
+ mkdir $(@D)/m4
+endef
+LIBEDIT_POST_EXTRACT_HOOKS += LIBEDIT_FIXUP_M4_DIR
+
# Doesn't really support !wchar, but support is disabled otherwise
LIBEDIT_CONF_OPTS += --enable-widec