#!/bin/sh
# Script to demonstrate downloading and building libhttp for arm
set -x

target=arm-unknown-linux-gnu
toolcombo=gcc-2.95.3-glibc-2.1.3
PATH=/opt/crosstool/$target/$toolcombo/bin:$PATH

#wget -c http://www.softorchestra.com/downloads/libhttp-0.9.tar.gz
rm -rf libhttp-0.9
tar -xzvf libhttp-0.9.tar.gz
rm -rf buildlibhttp
mkdir buildlibhttp
cd buildlibhttp

RANLIB=$target-ranlib STRIP=$target-strip CC=$target-gcc AR=$target-ar \
  LD=$target-ld \
  ../libhttp-0.9/configure --target=$target --host=$target
make

