#!/bin/sh -e
patch -p1 < m4-1.4.18-glibc-change-work-around.patch
./configure \
--prefix=/usr
make
make DESTDIR="$1" install
# Remove all info files.
rm -rf "$1/usr/share/info"
# Remove conflicting file.
rm "$1/usr/lib/charset.alias"