Newer
Older
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
# Check whether --enable-expensive-checks was given.
if test "${enable_expensive_checks+set}" = set; then
enableval=$enable_expensive_checks;
Jeffrey Yasskin
committed
else
enableval="no"
Jeffrey Yasskin
committed
fi
if test ${enableval} = "yes" ; then
ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
EXPENSIVE_CHECKS=yes
ENABLE_EXPENSIVE_CHECKS=
Jeffrey Yasskin
committed
EXPENSIVE_CHECKS=no
Jeffrey Yasskin
committed
fi
# Check whether --enable-debug-runtime was given.
if test "${enable_debug_runtime+set}" = set; then
enableval=$enable_debug_runtime;
Jeffrey Yasskin
committed
else
enableval=no
Jeffrey Yasskin
committed
fi
if test ${enableval} = "no" ; then
DEBUG_RUNTIME=
DEBUG_RUNTIME=DEBUG_RUNTIME=1
Jeffrey Yasskin
committed
Jeffrey Yasskin
committed
# Check whether --enable-debug-symbols was given.
if test "${enable_debug_symbols+set}" = set; then
enableval=$enable_debug_symbols;
enableval=no
if test ${enableval} = "no" ; then
DEBUG_SYMBOLS=
DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
# Check whether --enable-keep-symbols was given.
if test "${enable_keep_symbols+set}" = set; then
enableval=$enable_keep_symbols;
else
enableval=no
fi
if test ${enableval} = "no" ; then
KEEP_SYMBOLS=
else
KEEP_SYMBOLS=KEEP_SYMBOLS=1
fi
# Check whether --enable-jit was given.
if test "${enable_jit+set}" = set; then
enableval=$enable_jit;
enableval=default
if test ${enableval} = "no"
then
JIT=
case "$llvm_cv_target_arch" in
x86) TARGET_HAS_JIT=1
;;
Sparc) TARGET_HAS_JIT=0
;;
PowerPC) TARGET_HAS_JIT=1
;;
x86_64) TARGET_HAS_JIT=1
;;
ARM) TARGET_HAS_JIT=1
;;
Mips) TARGET_HAS_JIT=1
;;
XCore) TARGET_HAS_JIT=0
;;
MSP430) TARGET_HAS_JIT=0
Justin Holewinski
committed
;;
NVPTX) TARGET_HAS_JIT=0
;;
*) TARGET_HAS_JIT=0
;;
esac
fi
TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
TARGETS_WITH_JIT=$TARGETS_WITH_JIT
# Check whether --enable-docs was given.
if test "${enable_docs+set}" = set; then
enableval=$enable_docs;
enableval=default
fi
case "$enableval" in
yes) ENABLE_DOCS=1
;;
no) ENABLE_DOCS=0
;;
default) ENABLE_DOCS=1
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
# Check whether --enable-doxygen was given.
if test "${enable_doxygen+set}" = set; then
enableval=$enable_doxygen;
else
enableval=default
case "$enableval" in
yes) ENABLE_DOXYGEN=1
;;
no|default) ENABLE_DOXYGEN=0
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
# Check whether --enable-doxygen-search was given.
if test "${enable_doxygen_search+set}" = set; then
enableval=$enable_doxygen_search;
else
enableval=default
fi
ENABLE_DOXYGEN_SEARCH="$enableval"
case "$enableval" in
yes|no|default) ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
# Check whether --enable-doxygen-external-search was given.
if test "${enable_doxygen_external_search+set}" = set; then
enableval=$enable_doxygen_external_search;
else
enableval=default
fi
ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
case "$enableval" in
yes)
case "$ENABLE_DOXYGEN_SEARCH" in
yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
;;
no|default) ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
# Check whether --with-doxygen-search-engine-url was given.
if test "${with_doxygen_search_engine_url+set}" = set; then
withval=$with_doxygen_search_engine_url;
fi
WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
# Check whether --with-doxygen-search-mappings was given.
if test "${with_doxygen_search_mappings+set}" = set; then
withval=$with_doxygen_search_mappings;
fi
WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
case "$ENABLE_DOXYGEN_SEARCH" in
yes)
if test "$ENABLE_DOXYGEN" = "0" ; then
{ { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
{ (exit 1); exit 1; }; }
fi
enable_searchengine=YES
case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
yes)
enable_external_search=YES
enable_server_based_search=YES
searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
;;
no|default)
enable_external_search=NO
enable_server_based_search=NO
;;
esac
;;
no|default)
enable_searchengine=NO
enable_server_based_search=NO
enable_external_search=NO
;;
*)
{ { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; }
;;
esac
# Check whether --enable-doxygen-qt-help was given.
if test "${enable_doxygen_qt_help+set}" = set; then
enableval=$enable_doxygen_qt_help;
else
enableval=default
fi
case "$enableval" in
yes)
if test "$ENABLE_DOXYGEN" = "0" ; then
{ { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "qhelpgenerator", so it can be a program name with args.
set dummy qhelpgenerator; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $QHELPGENERATOR in
[\\/]* | ?:[\\/]*)
ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
;;
esac
fi
QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
if test -n "$QHELPGENERATOR"; then
{ echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
echo "${ECHO_T}$QHELPGENERATOR" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
llvm_doxygen_generate_qhp=YES
llvm_doxygen_qch_filename=org.llvm.qch
llvm_doxygen_qhp_namespace=org.llvm
llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
clang_doxygen_generate_qhp=YES
clang_doxygen_qch_filename=org.llvm.clang.qch
clang_doxygen_qhp_namespace=org.llvm.clang
clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
;;
no|default)
llvm_doxygen_generate_qhp=NO
clang_doxygen_generate_qhp=NO
clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
;;
*)
{ { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
# Check whether --enable-threads was given.
if test "${enable_threads+set}" = set; then
enableval=$enable_threads;
else
enableval=default
case "$enableval" in
;;
;;
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
cat >>confdefs.h <<_ACEOF
#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
_ACEOF
# Check whether --enable-pthreads was given.
if test "${enable_pthreads+set}" = set; then
enableval=$enable_pthreads;
enableval=default
case "$enableval" in
yes) ENABLE_PTHREADS=1
;;
no) ENABLE_PTHREADS=0
;;
default) ENABLE_PTHREADS=1
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
# Check whether --enable-zlib was given.
if test "${enable_zlib+set}" = set; then
enableval=$enable_zlib;
else
enableval=default
fi
case "$enableval" in
yes) LLVM_ENABLE_ZLIB=1
;;
no) LLVM_ENABLE_ZLIB=0
;;
default) LLVM_ENABLE_ZLIB=1
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
cat >>confdefs.h <<_ACEOF
#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
_ACEOF
# Check whether --enable-pic was given.
if test "${enable_pic+set}" = set; then
enableval=$enable_pic;
else
enableval=default
fi
case "$enableval" in
yes) ENABLE_PIC=1
;;
no) ENABLE_PIC=0
;;
default) ENABLE_PIC=1
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
cat >>confdefs.h <<_ACEOF
#define ENABLE_PIC $ENABLE_PIC
_ACEOF
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then
enableval=$enable_shared;
else
enableval=default
fi
case "$enableval" in
yes) ENABLE_SHARED=1
;;
no) ENABLE_SHARED=0
;;
default) ENABLE_SHARED=0
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
Jeffrey Yasskin
committed
esac
# Check whether --enable-embed-stdcxx was given.
if test "${enable_embed_stdcxx+set}" = set; then
enableval=$enable_embed_stdcxx;
enableval=default
fi
case "$enableval" in
yes) ENABLE_EMBED_STDCXX=1
;;
no) ENABLE_EMBED_STDCXX=0
;;
NAKAMURA Takumi
committed
default) ENABLE_EMBED_STDCXX=0
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
Jeffrey Yasskin
committed
esac
# Check whether --enable-timestamps was given.
if test "${enable_timestamps+set}" = set; then
enableval=$enable_timestamps;
else
enableval=default
Jeffrey Yasskin
committed
case "$enableval" in
yes) ENABLE_TIMESTAMPS=1
;;
no) ENABLE_TIMESTAMPS=0
;;
default) ENABLE_TIMESTAMPS=1
;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
cat >>confdefs.h <<_ACEOF
#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
Jeffrey Yasskin
committed
_ACEOF
# Check whether --enable-backtraces was given.
if test "${enable_backtraces+set}" = set; then
enableval=$enable_backtraces; case "$enableval" in
yes) llvm_cv_enable_backtraces="yes" ;;
no) llvm_cv_enable_backtraces="no" ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
llvm_cv_enable_backtraces="yes"
if test "$llvm_cv_enable_backtraces" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define ENABLE_BACKTRACES 1
_ACEOF
fi
# Check whether --enable-crash-overrides was given.
if test "${enable_crash_overrides+set}" = set; then
enableval=$enable_crash_overrides; case "$enableval" in
yes) llvm_cv_enable_crash_overrides="yes" ;;
no) llvm_cv_enable_crash_overrides="no" ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
llvm_cv_enable_crash_overrides="yes"
fi
if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define ENABLE_CRASH_OVERRIDES 1
_ACEOF
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
ALL_TARGETS=$ALL_TARGETS
TARGETS_TO_BUILD=""
# Check whether --enable-targets was given.
if test "${enable_targets+set}" = set; then
enableval=$enable_targets;
else
enableval=all
fi
if test "$enableval" = host-only ; then
enableval=host
fi
case "$enableval" in
all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
*)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
case "$a_target" in
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola
committed
mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski
committed
nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
host) case "$llvm_cv_target_arch" in
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski
committed
NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
*) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
echo "$as_me: error: Can not set target to build" >&2;}
{ (exit 1); exit 1; }; } ;;
esac ;;
*) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
echo "$as_me: error: Unrecognized target $a_target" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
done
;;
Jeffrey Yasskin
committed
esac
# Check whether --enable-experimental-targets was given.
if test "${enable_experimental_targets+set}" = set; then
enableval=$enable_experimental_targets;
else
enableval=disable
fi
if test ${enableval} != "disable"
then
TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
fi
TARGETS_TO_BUILD=$TARGETS_TO_BUILD
Jeffrey Yasskin
committed
for a_target in $TARGETS_TO_BUILD; do
if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
Jeffrey Yasskin
committed
_ACEOF
LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
fi
if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
fi
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Jeffrey Yasskin
committed
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
Jeffrey Yasskin
committed
_ACEOF
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Jeffrey Yasskin
committed
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
_ACEOF
Jeffrey Yasskin
committed
if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jeffrey Yasskin
committed
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
_ACEOF
fi
if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
_ACEOF
Jeffrey Yasskin
committed
fi
fi
done
LLVM_ENUM_TARGETS=""
LLVM_ENUM_ASM_PRINTERS=""
LLVM_ENUM_ASM_PARSERS=""
LLVM_ENUM_DISASSEMBLERS=""
for target_to_build in $TARGETS_TO_BUILD; do
LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
fi
if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
fi
if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
fi
done
# Check whether --with-optimize-option was given.
if test "${with_optimize_option+set}" = set; then
withval=$with_optimize_option;
withval=default
{ echo "$as_me:$LINENO: checking optimization flags" >&5
echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
case "$withval" in
default)
case "$llvm_cv_os_type" in
FreeBSD) optimize_option=-O2 ;;
MingW) optimize_option=-O2 ;;
*) optimize_option=-O3 ;;
esac ;;
*) optimize_option="$withval" ;;
esac
OPTIMIZE_OPTION=$optimize_option
{ echo "$as_me:$LINENO: result: $optimize_option" >&5
echo "${ECHO_T}$optimize_option" >&6; }
# Check whether --with-extra-options was given.
if test "${with_extra_options+set}" = set; then
withval=$with_extra_options;
else
withval=default
case "$withval" in
default) EXTRA_OPTIONS= ;;
*) EXTRA_OPTIONS=$withval ;;
Jeffrey Yasskin
committed
esac
EXTRA_OPTIONS=$EXTRA_OPTIONS
# Check whether --with-extra-ld-options was given.
if test "${with_extra_ld_options+set}" = set; then
withval=$with_extra_ld_options;
withval=default
fi
Jeffrey Yasskin
committed
case "$withval" in
default) EXTRA_LD_OPTIONS= ;;
*) EXTRA_LD_OPTIONS=$withval ;;
esac
EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
# Check whether --enable-bindings was given.
if test "${enable_bindings+set}" = set; then
enableval=$enable_bindings;
else
enableval=default
Jeffrey Yasskin
committed
BINDINGS_TO_BUILD=""
case "$enableval" in
yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
all ) BINDINGS_TO_BUILD="ocaml" ;;
none | no) BINDINGS_TO_BUILD="" ;;
*)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
case "$a_binding" in
ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
*) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
done
;;
esac
# Check whether --with-ocaml-libdir was given.
if test "${with_ocaml_libdir+set}" = set; then
withval=$with_ocaml_libdir;
else
withval=auto
case "$withval" in
auto) with_ocaml_libdir="$withval" ;;
/* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
*) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
# Check whether --with-clang-srcdir was given.
if test "${with_clang_srcdir+set}" = set; then
withval=$with_clang_srcdir;
else
withval="-"
fi
case "$withval" in
/* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
*) clang_src_root="$ac_pwd/$withval" ;;
esac
CLANG_SRC_ROOT=$clang_src_root
# Check whether --with-clang-resource-dir was given.
if test "${with_clang_resource_dir+set}" = set; then
withval=$with_clang_resource_dir;
withval=""
fi
cat >>confdefs.h <<_ACEOF
#define CLANG_RESOURCE_DIR "$withval"
# Check whether --with-c-include-dirs was given.
if test "${with_c_include_dirs+set}" = set; then
withval=$with_c_include_dirs;
Jeffrey Yasskin
committed
else
withval=""
fi
Jeffrey Yasskin
committed
cat >>confdefs.h <<_ACEOF
#define C_INCLUDE_DIRS "$withval"
Jeffrey Yasskin
committed
_ACEOF
Rafael Espindola
committed
# Clang normally uses the system c++ headers and libraries. With this option,
# clang will use the ones provided by a gcc installation instead. This option should
# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola
committed
# Check whether --with-gcc-toolchain was given.
if test "${with_gcc_toolchain+set}" = set; then
withval=$with_gcc_toolchain;
Jeffrey Yasskin
committed
else
withval=""
fi
Jeffrey Yasskin
committed
cat >>confdefs.h <<_ACEOF
Rafael Espindola
committed
#define GCC_INSTALL_PREFIX "$withval"
_ACEOF
# Check whether --with-default-sysroot was given.
if test "${with_default_sysroot+set}" = set; then
withval=$with_default_sysroot;
else
withval=""
fi
cat >>confdefs.h <<_ACEOF
#define DEFAULT_SYSROOT "$withval"
_ACEOF
# Check whether --with-binutils-include was given.
if test "${with_binutils_include+set}" = set; then
withval=$with_binutils_include;
else
withval=default
Jeffrey Yasskin
committed
case "$withval" in
default) WITH_BINUTILS_INCDIR=default ;;
/* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
*) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
{ { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
{ (exit 1); exit 1; }; };
fi
Jeffrey Yasskin
committed
# Check whether --with-bug-report-url was given.
if test "${with_bug_report_url+set}" = set; then
withval=$with_bug_report_url;
else
withval="http://llvm.org/bugs/"
cat >>confdefs.h <<_ACEOF
#define BUG_REPORT_URL "$withval"
_ACEOF
# Check whether --enable-terminfo was given.
if test "${enable_terminfo+set}" = set; then
enableval=$enable_terminfo; case "$enableval" in
yes) llvm_cv_enable_terminfo="yes" ;;
no) llvm_cv_enable_terminfo="no" ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
llvm_cv_enable_terminfo="yes"
fi
case "$llvm_cv_enable_terminfo" in
yes) ENABLE_TERMINFO=1
;;
no) ENABLE_TERMINFO=0
;;
esac
# Check whether --enable-libedit was given.
if test "${enable_libedit+set}" = set; then
enableval=$enable_libedit; case "$enableval" in
yes) llvm_cv_enable_libedit="yes" ;;
no) llvm_cv_enable_libedit="no" ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
llvm_cv_enable_libedit="yes"
fi
# Check whether --enable-libffi was given.
if test "${enable_libffi+set}" = set; then
enableval=$enable_libffi; case "$enableval" in
yes) llvm_cv_enable_libffi="yes" ;;
no) llvm_cv_enable_libffi="no" ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
llvm_cv_enable_libffi=no
Bob Wilson
committed
# Check whether --with-internal-prefix was given.
if test "${with_internal_prefix+set}" = set; then
withval=$with_internal_prefix;
else
withval=""
fi
INTERNAL_PREFIX=$withval
Jeffrey Yasskin
committed
{ echo "$as_me:$LINENO: checking for GNU make" >&5
echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
if test "${llvm_cv_gnu_make_command+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
llvm_cv_gnu_make_command=''
for a in "$MAKE" make gmake gnumake ; do
if test -z "$a" ; then continue ; fi ;
if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
then
llvm_cv_gnu_make_command=$a ;
break;
fi
done
fi
Jeffrey Yasskin
committed
{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5