#!/bin/sh FREEBSD_ALSA_PREFIX="${1:-/usr/local/alsa}" CC="cc" CXX="c++" CFLAGS="-O2 -pipe -I/usr/local/include -I${FREEBSD_ALSA_PREFIX}/include" CXXFLAGS="$CFLAGS" LDFLAGS="-L/usr/local/lib -L${FREEBSD_ALSA_PREFIX}/lib" LDFLAGS="$LDFLAGS -Wl,--rpath -Wl,/usr/local/lib" LDFLAGS="$LDFLAGS -Wl,--rpath -Wl,${FREEBSD_ALSA_PREFIX}/lib" export CC CXX CFLAGS CXXFLAGS LDFLAGS exec ./configure --prefix="$FREEBSD_ALSA_PREFIX" --disable-nls --disable-xmlto