Remove insignificant test no longer needed.
[oota-llvm.git] / build-for-llvm-top.sh
1 #!/bin/sh
2
3 is_debug=1
4 for arg in "$@" ; do
5   case "$arg" in
6     LLVM_TOP=*)
7       LLVM_TOP=`echo "$arg" | sed -e 's/LLVM_TOP=//'`
8       ;;
9     PREFIX=*)
10       PREFIX=`echo "$arg" | sed -e 's/PREFIX=//'`
11       ;;
12     *=*)
13       build_opts="$build_opts $arg"
14       ;;
15     --*)
16       config_opts="$config_opts $arg"
17       ;;
18   esac
19 done
20
21 # See if we have previously been configured by sensing the presense
22 # of the config.status scripts
23 config_status="$build_dir/config.status"
24 if test ! -d "$config_status" ; then
25   # We must configure so build a list of configure options
26   config_options="--prefix=$PREFIX --with-llvmgccdir=$PREFIX"
27   echo ./configure $config_options $config_opts
28   ./configure $config_options $config_opts
29 fi
30
31 echo make $build_opts '&&' make install $build_opts
32 make $build_opts && make install $build_opts