PKGNAME=readline
PKGSEC=libs
PKGDEP="glibc ncurses"
PKGDES="GNU readline library"

ABTYPE=autotools
# The following configuration:
#
# 1. Enables linking with Curses (NCurses in this case), disable if you are cool with
#    no UNIX shell;
# 2. Enables multibyte characters support;
AUTOTOOLS_AFTER=(
	'--with-curses'
	'--enable-multibyte'
	'--enable-shared'
)

MAKE_AFTER=(
	'SHLIB_LIBS=-lncursesw'
)

# FIXME: autoreconf: error: /usr/bin/autoheader failed with exit status: 1
# Caused by a bunch of 'missing template' warnings
RECONF=0

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
