#!/bin/sh -e

sed 's/-I/-isystem /g' libelf.pc.in > _
cat _ > libelf.pc.in; rm -f _

./configure \
    --prefix=/usr \
    --enable-nls=auto

make
make prefix="$1/usr" install