#!/bin/sh
# $Id: cfg-ncurses6,v 1.20 2015/08/05 08:58:07 tom Exp $
PACKAGE=ncurses
OPTS=
case `partition` in
*debian*|*ubuntu*|*kfreebsd*)
	;;
fb*|nb*|ob*|*bsd*)
	OPTS="--with-hashed-db"
	;;
esac

case `partition` in
testing-9)
	;;
*)
	OPTS="$OPTS --enable-pthreads-eintr"
	;;
esac

case `partition` in
nowhere)
	;;
*)
	OPTS="$OPTS --enable-weak-symbols"
	;;
esac

case `partition` in
*debian*|*fedora*|*suse*|*freebsd*|*netbsd*|*openbsd*)
	OPTS="$OPTS --with-versioned-syms"
	;;
esac

CPPFLAGS="$CPPFLAGS -DEXP_XTERM_1005"
export CPPFLAGS
MY_DIR=/usr/local/ncurses6
MYDATA=/usr/local/ncurses/share/terminfo
RPATH_LIST=../lib:$MY_DIR/lib \
cfg-ext-color $OPTS \
	--prefix=$MY_DIR \
	--bindir=/usr/local/bin \
	--with-chtype=uint32_t \
	--enable-sp-funcs \
	--enable-ext-mouse \
	--enable-ext-putwin \
	--enable-pc-files \
	--enable-rpath \
	--enable-wgetch-events \
	--with-default-terminfo-dir=$MYDATA \
	--with-terminfo-dirs=$MYDATA:/usr/share/terminfo \
	--with-develop \
	$*
