OLD | NEW |
---|---|
1 dnl === configure.ac --------------------------------------------------------=== | 1 dnl === configure.ac --------------------------------------------------------=== |
2 dnl The LLVM Compiler Infrastructure | 2 dnl The LLVM Compiler Infrastructure |
3 dnl | 3 dnl |
4 dnl This file is distributed under the University of Illinois Open Source | 4 dnl This file is distributed under the University of Illinois Open Source |
5 dnl License. See LICENSE.TXT for details. | 5 dnl License. See LICENSE.TXT for details. |
6 dnl | 6 dnl |
7 dnl===-----------------------------------------------------------------------=== | 7 dnl===-----------------------------------------------------------------------=== |
8 dnl This is the LLVM configuration script. It is processed by the autoconf | 8 dnl This is the LLVM configuration script. It is processed by the autoconf |
9 dnl program to produce a script named configure. This script contains the | 9 dnl program to produce a script named configure. This script contains the |
10 dnl configuration checks that LLVM needs in order to support multiple platforms. | 10 dnl configuration checks that LLVM needs in order to support multiple platforms. |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
929 | 929 |
930 dnl List all possible targets | 930 dnl List all possible targets |
931 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend JSBacken d NVPTX Hexagon SystemZ R600" | 931 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend JSBacken d NVPTX Hexagon SystemZ R600" |
932 AC_SUBST(ALL_TARGETS,$ALL_TARGETS) | 932 AC_SUBST(ALL_TARGETS,$ALL_TARGETS) |
933 | 933 |
934 dnl Allow specific targets to be specified for building (or not) | 934 dnl Allow specific targets to be specified for building (or not) |
935 TARGETS_TO_BUILD="" | 935 TARGETS_TO_BUILD="" |
936 AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets], | 936 AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets], |
937 [Build specific host targets: all or target1,target2,... Valid targets are: | 937 [Build specific host targets: all or target1,target2,... Valid targets are: |
938 host, x86, x86_64, sparc, powerpc, arm64, arm, aarch64, mips, hexagon, | 938 host, x86, x86_64, sparc, powerpc, arm64, arm, aarch64, mips, hexagon, |
939 xcore, msp430, nvptx, systemz, r600, and cpp (default=all)]),, | 939 xcore, msp430, nvptx, systemz, r600, js, and cpp (default=all)]),, |
940 enableval=all) | 940 enableval=all) |
941 if test "$enableval" = host-only ; then | 941 if test "$enableval" = host-only ; then |
942 enableval=host | 942 enableval=host |
943 fi | 943 fi |
944 case "$enableval" in | 944 case "$enableval" in |
945 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; | 945 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; |
946 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | 946 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
947 case "$a_target" in | 947 case "$a_target" in |
948 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 948 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
949 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 949 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1048 fi | 1048 fi |
1049 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; the n | 1049 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; the n |
1050 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISA SSEMBLERS"; | 1050 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISA SSEMBLERS"; |
1051 fi | 1051 fi |
1052 done | 1052 done |
1053 AC_SUBST(LLVM_ENUM_TARGETS) | 1053 AC_SUBST(LLVM_ENUM_TARGETS) |
1054 AC_SUBST(LLVM_ENUM_ASM_PRINTERS) | 1054 AC_SUBST(LLVM_ENUM_ASM_PRINTERS) |
1055 AC_SUBST(LLVM_ENUM_ASM_PARSERS) | 1055 AC_SUBST(LLVM_ENUM_ASM_PARSERS) |
1056 AC_SUBST(LLVM_ENUM_DISASSEMBLERS) | 1056 AC_SUBST(LLVM_ENUM_DISASSEMBLERS) |
1057 | 1057 |
1058 | |
1059 dnl Allow specific Subzero targets to be specified for building (or not) | |
1060 SUBZERO_TARGETS_TO_BUILD="" | |
1061 AC_ARG_ENABLE([subzero_targets],AS_HELP_STRING([--enable-subzero-targets], | |
1062 [Build specific subzero targets: target1,target2,...(default=none)]),, | |
1063 enableval=none) | |
1064 case "$enableval" in | |
1065 none) ;; | |
1066 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | |
1067 case "$a_target" in | |
1068 X8632) SUBZERO_TARGETS_TO_BUILD="X8632 $SUBZERO_TARGETS_TO_BUILD" ;; | |
1069 X8664) SUBZERO_TARGETS_TO_BUILD="X8664 $SUBZERO_TARGETS_TO_BUILD" ;; | |
1070 ARM32) SUBZERO_TARGETS_TO_BUILD="ARM32 $SUBZERO_TARGETS_TO_BUILD" ;; | |
Jim Stichnoth
2015/04/17 16:54:36
Line these up better?
jvoung (off chromium)
2015/04/17 21:07:01
Done.
| |
1071 ARM64) SUBZERO_TARGETS_TO_BUILD="ARM64 $SUBZERO_TARGETS_TO_BUILD" ;; | |
1072 *) AC_MSG_ERROR([Unrecognized subzero target $a_target]) ;; | |
1073 esac | |
1074 done | |
1075 ;; | |
1076 esac | |
1077 | |
1078 dnl Build the SUBZERO_ENUM_TARGETS macro for SZTargets.def. | |
1079 SUBZERO_ENUM_TARGETS="" | |
1080 for target_to_build in $SUBZERO_TARGETS_TO_BUILD; do | |
1081 SUBZERO_ENUM_TARGETS="SUBZERO_TARGET($target_to_build) $SUBZERO_ENUM_TARGETS" | |
1082 done | |
1083 AC_SUBST(SUBZERO_ENUM_TARGETS) | |
1084 | |
1058 dnl Override the option to use for optimized builds. | 1085 dnl Override the option to use for optimized builds. |
1059 AC_ARG_WITH(optimize-option, | 1086 AC_ARG_WITH(optimize-option, |
1060 AS_HELP_STRING([--with-optimize-option], | 1087 AS_HELP_STRING([--with-optimize-option], |
1061 [Select the compiler options to use for optimized builds]),, | 1088 [Select the compiler options to use for optimized builds]),, |
1062 withval=default) | 1089 withval=default) |
1063 AC_MSG_CHECKING([optimization flags]) | 1090 AC_MSG_CHECKING([optimization flags]) |
1064 case "$withval" in | 1091 case "$withval" in |
1065 default) | 1092 default) |
1066 case "$llvm_cv_os_type" in | 1093 case "$llvm_cv_os_type" in |
1067 FreeBSD) optimize_option=-O2 ;; | 1094 FreeBSD) optimize_option=-O2 ;; |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1996 dnl Configure header files | 2023 dnl Configure header files |
1997 dnl WARNING: dnl If you add or remove any of the following config headers, then | 2024 dnl WARNING: dnl If you add or remove any of the following config headers, then |
1998 dnl you MUST also update Makefile so that the variable FilesToConfig | 2025 dnl you MUST also update Makefile so that the variable FilesToConfig |
1999 dnl contains the same list of files as AC_CONFIG_HEADERS below. This ensures the | 2026 dnl contains the same list of files as AC_CONFIG_HEADERS below. This ensures the |
2000 dnl files can be updated automatically when their *.in sources change. | 2027 dnl files can be updated automatically when their *.in sources change. |
2001 AC_CONFIG_HEADERS([include/llvm/Config/config.h include/llvm/Config/llvm-config. h]) | 2028 AC_CONFIG_HEADERS([include/llvm/Config/config.h include/llvm/Config/llvm-config. h]) |
2002 AH_TOP([#ifndef CONFIG_H | 2029 AH_TOP([#ifndef CONFIG_H |
2003 #define CONFIG_H]) | 2030 #define CONFIG_H]) |
2004 AH_BOTTOM([#endif]) | 2031 AH_BOTTOM([#endif]) |
2005 | 2032 |
2033 AC_CONFIG_FILES([include/llvm/Config/SZTargets.def]) | |
2006 AC_CONFIG_FILES([include/llvm/Config/Targets.def]) | 2034 AC_CONFIG_FILES([include/llvm/Config/Targets.def]) |
2007 AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def]) | 2035 AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def]) |
2008 AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def]) | 2036 AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def]) |
2009 AC_CONFIG_FILES([include/llvm/Config/Disassemblers.def]) | 2037 AC_CONFIG_FILES([include/llvm/Config/Disassemblers.def]) |
2010 AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h]) | 2038 AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h]) |
2011 | 2039 |
2012 dnl Configure the makefile's configuration data | 2040 dnl Configure the makefile's configuration data |
2013 AC_CONFIG_FILES([Makefile.config]) | 2041 AC_CONFIG_FILES([Makefile.config]) |
2014 | 2042 |
2015 dnl Configure the RPM spec file for LLVM | 2043 dnl Configure the RPM spec file for LLVM |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2048 AC_CONFIG_MAKEFILE(test/Makefile.tests) | 2076 AC_CONFIG_MAKEFILE(test/Makefile.tests) |
2049 AC_CONFIG_MAKEFILE(unittests/Makefile) | 2077 AC_CONFIG_MAKEFILE(unittests/Makefile) |
2050 AC_CONFIG_MAKEFILE(tools/Makefile) | 2078 AC_CONFIG_MAKEFILE(tools/Makefile) |
2051 AC_CONFIG_MAKEFILE(utils/Makefile) | 2079 AC_CONFIG_MAKEFILE(utils/Makefile) |
2052 AC_CONFIG_MAKEFILE(projects/Makefile) | 2080 AC_CONFIG_MAKEFILE(projects/Makefile) |
2053 AC_CONFIG_MAKEFILE(bindings/Makefile) | 2081 AC_CONFIG_MAKEFILE(bindings/Makefile) |
2054 AC_CONFIG_MAKEFILE(bindings/ocaml/Makefile.ocaml) | 2082 AC_CONFIG_MAKEFILE(bindings/ocaml/Makefile.ocaml) |
2055 | 2083 |
2056 dnl Finally, crank out the output | 2084 dnl Finally, crank out the output |
2057 AC_OUTPUT | 2085 AC_OUTPUT |
OLD | NEW |