llvm.org GIT mirror llvm / c5a879c
Allow the configure options to be set according to the llvm-top options. Patch improved from one by Holger Schurig. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41649 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
1 changed file(s) with 35 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
88 # variables.
99 process_arguments "$@"
1010
11 # See if we have previously been configured by sensing the presense
11 # See if we have previously been configured by sensing the presence
1212 # of the config.status scripts
1313 if test ! -x "config.status" ; then
1414 # We must configure so build a list of configure options
1515 config_options="--prefix=$PREFIX --with-llvmgccdir=$PREFIX"
16 if test "$OPTIMIZED" -eq 1 ; then
17 config_options="$config_options --enable-optimized"
18 else
19 config_options="$config_options --disable-optimized"
20 fi
21 if test "$DEBUG" -eq 1 ; then
22 config_options="$config_options --enable-debug"
23 else
24 config_options="$config_options --disable-debug"
25 fi
26 if test "$ASSERTIONS" -eq 1 ; then
27 config_options="$config_options --enable-assertions"
28 else
29 config_options="$config_options --disable-assertions"
30 fi
31 if test "$CHECKING" -eq 1 ; then
32 config_options="$config_options --enable-expensive-checks"
33 else
34 config_options="$config_options --disable-expensive-checks"
35 fi
36 if test "$DOXYGEN" -eq 1 ; then
37 config_options="$config_options --enable-doxygen"
38 else
39 config_options="$config_options --disable-doxygen"
40 fi
41 if test "$THREADS" -eq 1 ; then
42 config_options="$config_options --enable-threads"
43 else
44 config_options="$config_options --disable-threads"
45 fi
1646 config_options="$config_options $OPTIONS_DASH $OPTIONS_DASH_DASH"
1747 msg 0 Configuring $module with:
1848 msg 0 " ./configure" $config_options
19 ./configure $config_options || (echo "Can't configure llvm" ; exit 1)
49 $LLVM_TOP/llvm/configure $config_options || \
50 die $? "Configuring llvm module failed"
51 else
52 msg 0 Module $module already configured, ignoring configure options.
2053 fi
2154
2255 msg 0 Building $module with: