#! /bin/sh

sed -i -e '/^CFLAGS="-g -O3"/s/^/#/' configure
./configure --prefix=/opt/nx --with-cflags="$CFLAGS" \
	--with-cppflags="-I/usr/include/nx -I/usr/include/$(gcc \
	-print-multiarch)/nx" -with-mantype=man \
	--with-ipaddr-display --with-md5-passwords \
	--without-openssl-header-check
#	--with-ldflags='-Wl,-rpath -Wl,/opt/nx/lib'
sed -i -e '/^NXCOMPLIBS=/s/-lstdc++.*$//' Makefile
