Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1148)

Side by Side Diff: autoconf/configure.ac

Issue 7730004: add llvm configure flags to enable/disable target OSes/Envs Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile.config.in ('k') | configure » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 fi 696 fi
697 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; the n 697 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; the n
698 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISA SSEMBLERS"; 698 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISA SSEMBLERS";
699 fi 699 fi
700 done 700 done
701 AC_SUBST(LLVM_ENUM_TARGETS) 701 AC_SUBST(LLVM_ENUM_TARGETS)
702 AC_SUBST(LLVM_ENUM_ASM_PRINTERS) 702 AC_SUBST(LLVM_ENUM_ASM_PRINTERS)
703 AC_SUBST(LLVM_ENUM_ASM_PARSERS) 703 AC_SUBST(LLVM_ENUM_ASM_PARSERS)
704 AC_SUBST(LLVM_ENUM_DISASSEMBLERS) 704 AC_SUBST(LLVM_ENUM_DISASSEMBLERS)
705 705
706 dnl Allow specific target OSes to be supported in the build (or not).
707 TARGET_OSES_TO_BUILD=""
708 AC_ARG_ENABLE([target-oses],AS_HELP_STRING([--enable-target-oses],
709 [Build specific target OSes: all or target_os1,target_os2,...
710 Valid targets are:
711 host, AuroraUX, Cygwin, Darwin, DragonFly, Freebsd, IOS, KFreeBSD, Linux,
712 Lv2, MacOSX, MinGW32, NetBSD, OpenBSD, Psp, Solaris, Win32, Haiku, Minix,
713 RTEMS, NativeClient, (default=all)]),,
714 enableval=all)
715 if test "$enableval" = host-only ; then
716 enableval=host
717 fi
718 case "$enableval" in
719 all)
720 TARGET_OSES_TO_BUILD="AuroraUX Cygwin Darwin DragonFly FreeBSD IOS KFreeBSD Linux Lv2 MacOSX MinGW32 NetBSD OpenBSD Psp Solaris Win32 Haiku Minix RTEMS Nati veClient" ;;
721 *)
722 for a_target in `echo $enableval | sed -e 's/,/ /g' ` ; do
723 case "$a_target" in
724 AuroraUX) TARGET_OSES_TO_BUILD="AuroraUX $TARGET_OSES_TO_BUILD" ;;
725 Cygwin) TARGET_OSES_TO_BUILD="Cygwin $TARGET_OSES_TO_BUILD" ;;
726 Darwin) TARGET_OSES_TO_BUILD="Darwin $TARGET_OSES_TO_BUILD" ;;
727 DragonFly) TARGET_OSES_TO_BUILD="DragonFly $TARGET_OSES_TO_BUILD" ;;
728 FreeBSD) TARGET_OSES_TO_BUILD="FreeBSD $TARGET_OSES_TO_BUILD" ;;
729 IOS) TARGET_OSES_TO_BUILD="IOS $TARGET_OSES_TO_BUILD" ;;
730 KFreeBSD) TARGET_OSES_TO_BUILD="KFreeBSD $TARGET_OSES_TO_BUILD" ;;
731 Linux) TARGET_OSES_TO_BUILD="Linux $TARGET_OSES_TO_BUILD" ;;
732 Lv2) TARGET_OSES_TO_BUILD="Lv2 $TARGET_OSES_TO_BUILD" ;;
733 MacOSX) TARGET_OSES_TO_BUILD="MacOSX $TARGET_OSES_TO_BUILD" ;;
734 MinGW32) TARGET_OSES_TO_BUILD="MinGW32 $TARGET_OSES_TO_BUILD" ;;
735 NetBSD) TARGET_OSES_TO_BUILD="NetBSD $TARGET_OSES_TO_BUILD" ;;
736 OpenBSD) TARGET_OSES_TO_BUILD="OpenBSD $TARGET_OSES_TO_BUILD" ;;
737 Psp) TARGET_OSES_TO_BUILD="Psp $TARGET_OSES_TO_BUILD" ;;
738 Solaris) TARGET_OSES_TO_BUILD="Solaris $TARGET_OSES_TO_BUILD" ;;
739 Win32) TARGET_OSES_TO_BUILD="Win32 $TARGET_OSES_TO_BUILD" ;;
740 Haiku) TARGET_OSES_TO_BUILD="Haiku $TARGET_OSES_TO_BUILD" ;;
741 Minix) TARGET_OSES_TO_BUILD="Minix $TARGET_OSES_TO_BUILD" ;;
742 RTEMS) TARGET_OSES_TO_BUILD="RTEMS $TARGET_OSES_TO_BUILD" ;;
743 NativeClient)
744 TARGET_OSES_TO_BUILD="NativeClient $TARGET_OSES_TO_BUILD" ;;
745 host)
746 case "$llvm_cv_os_type" in
747 AuroraUX) TARGET_OSES_TO_BUILD="AuroraUX $TARGET_OSES_TO_BUILD" ;;
748 Cygwin) TARGET_OSES_TO_BUILD="Cygwin $TARGET_OSES_TO_BUILD" ;;
749 Darwin) TARGET_OSES_TO_BUILD="Darwin $TARGET_OSES_TO_BUILD" ;;
750 DragonFly) TARGET_OSES_TO_BUILD="DragonFly $TARGET_OSES_TO_BUILD" ;;
751 FreeBSD) TARGET_OSES_TO_BUILD="FreeBSD $TARGET_OSES_TO_BUILD" ;;
752 IOS) TARGET_OSES_TO_BUILD="IOS $TARGET_OSES_TO_BUILD" ;;
753 KFreeBSD) TARGET_OSES_TO_BUILD="KFreeBSD $TARGET_OSES_TO_BUILD" ;;
754 Linux) TARGET_OSES_TO_BUILD="Linux $TARGET_OSES_TO_BUILD" ;;
755 Lv2) TARGET_OSES_TO_BUILD="Lv2 $TARGET_OSES_TO_BUILD" ;;
756 MacOSX) TARGET_OSES_TO_BUILD="MacOSX $TARGET_OSES_TO_BUILD" ;;
757 MinGW32) TARGET_OSES_TO_BUILD="MinGW32 $TARGET_OSES_TO_BUILD" ;;
758 NetBSD) TARGET_OSES_TO_BUILD="NetBSD $TARGET_OSES_TO_BUILD" ;;
759 OpenBSD) TARGET_OSES_TO_BUILD="OpenBSD $TARGET_OSES_TO_BUILD" ;;
760 Psp) TARGET_OSES_TO_BUILD="Psp $TARGET_OSES_TO_BUILD" ;;
761 Solaris) TARGET_OSES_TO_BUILD="Solaris $TARGET_OSES_TO_BUILD" ;;
762 Win32) TARGET_OSES_TO_BUILD="Win32 $TARGET_OSES_TO_BUILD" ;;
763 Haiku) TARGET_OSES_TO_BUILD="Haiku $TARGET_OSES_TO_BUILD" ;;
764 Minix) TARGET_OSES_TO_BUILD="Minix $TARGET_OSES_TO_BUILD" ;;
765 RTEMS) TARGET_OSES_TO_BUILD="RTEMS $TARGET_OSES_TO_BUILD" ;;
766 NativeClient)
767 TARGET_OSES_TO_BUILD="NativeClient $TARGET_OSES_TO_BUILD" ;;
768 *) AC_MSG_ERROR([Unrecognized target/host os $llvm_cv_os_type]) ;;
769 esac
770 ;;
771 *) AC_MSG_ERROR([Unrecognized target os $a_target]) ;;
772 esac
773 done
774 ;;
775 esac
776 AC_SUBST(TARGET_OSES_TO_BUILD,$TARGET_OSES_TO_BUILD)
777
778 dnl Allow specific target environments to be supported in the build (or not).
779 TARGET_ENVS_TO_BUILD=""
780 AC_ARG_ENABLE([target-envs],AS_HELP_STRING([--enable-target-envs],
781 [Build specific target environments: all or target_env1,target_env2,...
782 Valid targets are:
783 eabi, gnueabi, gnu, macho, (default=all)]),,
784 enableval=all)
785 case "$enableval" in
786 all)
787 TARGET_ENVS_TO_BUILD="eabi gnueabi gnu macho" ;;
788 *)
789 for a_target in `echo $enableval | sed -e 's/,/ /g' ` ; do
790 case "$a_target" in
791 eabi) TARGET_ENVS_TO_BUILD="eabi $TARGET_ENVS_TO_BUILD" ;;
792 gnueabi) TARGET_ENVS_TO_BUILD="gnueabi $TARGET_ENVS_TO_BUILD" ;;
793 gnu) TARGET_ENVS_TO_BUILD="gnu $TARGET_ENVS_TO_BUILD" ;;
794 macho) TARGET_ENVS_TO_BUILD="macho $TARGET_ENVS_TO_BUILD" ;;
795 *) AC_MSG_ERROR([Unrecognized target environment $a_target]) ;;
796 esac
797 done
798 ;;
799 esac
800 AC_SUBST(TARGET_ENVS_TO_BUILD,$TARGET_ENVS_TO_BUILD)
801
706 dnl Prevent the CBackend from using printf("%a") for floating point so older 802 dnl Prevent the CBackend from using printf("%a") for floating point so older
707 dnl C compilers that cannot deal with the 0x0p+0 hex floating point format 803 dnl C compilers that cannot deal with the 0x0p+0 hex floating point format
708 dnl can still compile the CBE's output 804 dnl can still compile the CBE's output
709 AC_ARG_ENABLE([cbe-printf-a],AS_HELP_STRING([--enable-cbe-printf-a], 805 AC_ARG_ENABLE([cbe-printf-a],AS_HELP_STRING([--enable-cbe-printf-a],
710 [Enable C Backend output with hex floating point via %a (default is YES)]),, 806 [Enable C Backend output with hex floating point via %a (default is YES)]),,
711 enableval=default) 807 enableval=default)
712 case "$enableval" in 808 case "$enableval" in
713 yes) AC_SUBST(ENABLE_CBE_PRINTF_A,[1]) ;; 809 yes) AC_SUBST(ENABLE_CBE_PRINTF_A,[1]) ;;
714 no) AC_SUBST(ENABLE_CBE_PRINTF_A,[0]) ;; 810 no) AC_SUBST(ENABLE_CBE_PRINTF_A,[0]) ;;
715 default) AC_SUBST(ENABLE_CBE_PRINTF_A,[1]) ;; 811 default) AC_SUBST(ENABLE_CBE_PRINTF_A,[1]) ;;
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 AC_CONFIG_MAKEFILE(test/Makefile.tests) 1868 AC_CONFIG_MAKEFILE(test/Makefile.tests)
1773 AC_CONFIG_MAKEFILE(unittests/Makefile) 1869 AC_CONFIG_MAKEFILE(unittests/Makefile)
1774 AC_CONFIG_MAKEFILE(tools/Makefile) 1870 AC_CONFIG_MAKEFILE(tools/Makefile)
1775 AC_CONFIG_MAKEFILE(utils/Makefile) 1871 AC_CONFIG_MAKEFILE(utils/Makefile)
1776 AC_CONFIG_MAKEFILE(projects/Makefile) 1872 AC_CONFIG_MAKEFILE(projects/Makefile)
1777 AC_CONFIG_MAKEFILE(bindings/Makefile) 1873 AC_CONFIG_MAKEFILE(bindings/Makefile)
1778 AC_CONFIG_MAKEFILE(bindings/ocaml/Makefile.ocaml) 1874 AC_CONFIG_MAKEFILE(bindings/ocaml/Makefile.ocaml)
1779 1875
1780 dnl Finally, crank out the output 1876 dnl Finally, crank out the output
1781 AC_OUTPUT 1877 AC_OUTPUT
OLDNEW
« no previous file with comments | « Makefile.config.in ('k') | configure » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698