+ headers=`find $path/source \( -name windows -prune \) -o \( -name '*.h' -print \)`
+ for j in $headers; do
+ rel=${j#$path/source/}
+ comp=${rel%%/*}
+ if [ "$comp" = "$rel" ]; then
+ comp=$i
+ fi
+ mkdir -p "$INCLUDEDIR/msp/$comp"
+ ln -sf $j "$INCLUDEDIR/msp/$comp/"
+ done
+ sources="$sources `find $path/source \( -name windows -prune \) -o \( -name '*.cpp' -print \)`"
+ fi
+done
+
+if [ ! -z "$missing" ]; then
+ echo "The following libraries were not found:$missing"
+ echo "I looked for them in $LIBPATH"
+ echo "If they are somewhere else, please add --libpath=PATH to the command line."
+ exit 1
+fi
+
+echo "Compiling builder-stage1. This may take several minutes."
+objects=""
+for i in $sources; do
+ obj=`mktemp temp/bootstrap/XXXXXX`
+ mv $obj $obj.o
+ obj=$obj.o
+ dir=${i%/*}
+ dir=${dir%/unix}
+ flags="$CFLAGS"
+ if [ -d "$dir/unix" ]; then
+ flags="$flags -iquote $dir -iquote $dir/unix"