2011-06-22 13:36:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
if [ ! -x configure ]; then
|
|
|
|
printf "\n*** please run ./bootstrap first.\n"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
build()
|
|
|
|
{
|
|
|
|
for F in ${1}
|
|
|
|
do
|
|
|
|
make clean
|
|
|
|
clear
|
|
|
|
printf "\n *** building with: %s\n" CPPFLAGS=-D${F}
|
|
|
|
sleep 1
|
|
|
|
# libcdio is not autodetected by default; should be available everywhere
|
2011-07-02 14:49:35 +00:00
|
|
|
CPPFLAGS=-D${F} ./configure --enable-libcdio; make 2> releng/libburn.${F}.log
|
|
|
|
make clean
|
2011-06-22 13:36:29 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
OS=`uname -o`
|
|
|
|
|
|
|
|
case ${OS} in
|
|
|
|
GNU/Linux)
|
|
|
|
printf "OS: %s\n" ${OS}
|
|
|
|
sleep 1
|
|
|
|
build "__linux Libburn_use_sg_dummY Libburn_use_libcdiO"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
printf "Unknown OS: %s\n" ${OS}
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# just in case
|
|
|
|
unset CPPFLAGS
|