config/companion_libs.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Dec 31 00:16:19 2010 +0100 (2010-12-31)
changeset 2251 1bd55a223113
parent 2208 5aa0516d6738
child 2381 0ca0f85a4b2a
permissions -rw-r--r--
samples: update i686-nptl-linux-gnu

Enable Java and Fortran frontends.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Companion libraries config options
     2 # Those libraries are required for different versions of gcc,
     3 # and can be used by binutils and gdb (maybe others as well).
     4 
     5 menu "Companion libraries"
     6 
     7 config COMPLIBS_NEEDED
     8     bool
     9     default n
    10 
    11 config GMP_NEEDED
    12     bool
    13     default n
    14     select GMP
    15     select COMPLIBS_NEEDED
    16 
    17 config MPFR_NEEDED
    18     bool
    19     default n
    20     select MPFR
    21     select COMPLIBS_NEEDED
    22 
    23 config PPL_NEEDED
    24     bool
    25     default n
    26     select PPL
    27     select COMPLIBS_NEEDED
    28 
    29 config CLOOG_NEEDED
    30     bool
    31     default n
    32     select CLOOG
    33     select COMPLIBS_NEEDED
    34 
    35 config MPC_NEEDED
    36     bool
    37     default n
    38     select MPC
    39     select COMPLIBS_NEEDED
    40 
    41 config LIBELF_NEEDED
    42     bool
    43     default n
    44     select LIBELF
    45     select COMPLIBS_NEEDED
    46 
    47 config COMPLIBS
    48     bool
    49     default n
    50 
    51 config WRAPPER_NEEDED
    52     bool
    53     default n
    54 
    55 config GMP
    56     bool
    57     select COMPLIBS
    58 
    59 config MPFR
    60     bool
    61     select GMP
    62     select COMPLIBS
    63 
    64 config PPL
    65     bool
    66     select GMP
    67     select COMPLIBS
    68 
    69 config CLOOG
    70     bool
    71     select GMP
    72     select PPL
    73     select COMPLIBS
    74 
    75 config MPC
    76     bool
    77     select GMP
    78     select MPFR
    79     select COMPLIBS
    80 
    81 config LIBELF
    82     bool
    83     select COMPLIBS
    84 
    85 config LIBELF_TARGET
    86     bool
    87 
    88 if GMP
    89 source "config/companion_libs/gmp.in"
    90 endif
    91 if MPFR
    92 source "config/companion_libs/mpfr.in"
    93 endif
    94 if PPL
    95 source "config/companion_libs/ppl.in"
    96 endif
    97 if CLOOG
    98 source "config/companion_libs/cloog.in"
    99 endif
   100 if MPC
   101 source "config/companion_libs/mpc.in"
   102 endif
   103 if LIBELF || LIBELF_TARGET
   104 comment "libelf version needed to build for target"
   105     depends on !LIBELF
   106 source "config/companion_libs/libelf.in"
   107 endif
   108 
   109 config FOO
   110     bool
   111 
   112 if COMPLIBS
   113 
   114 comment "Companion libraries common options"
   115 
   116 config COMPLIBS_BACKUP
   117     bool
   118     default y
   119     depends on ! COMPLIBS_SHARED
   120 
   121 config COMPLIBS_CHECK
   122     bool
   123     prompt "Check the companion libraries builds (!!! READ HELP!!!)"
   124     default n
   125     help
   126       It is highly recommended to check the newly built companion libraries.
   127       Unfortunately, this is a very intensive task, and takes a loooong time.
   128       
   129       Checking the newly built companion libraries is thus disabled by default,
   130       but it is suggested that you check them at least once on your machine,
   131       and if they work, disable the check on subsequent builds.
   132       
   133       If you suspect that one (or more) of your companion libraries is the
   134       cause for incorrectly generated code, you should answer 'Y' here.
   135       Note however that this will take a really long time. For example,
   136       building PPL on my machine takes roughly 1'40", while checking it takes
   137       about 1h40'...
   138 
   139 config COMPLIBS_SHARED
   140     bool
   141     prompt "Build shared companion libraries"
   142     default n
   143     depends on COMPLIBS
   144     depends on ! STATIC_TOOLCHAIN
   145     select WRAPPER_NEEDED
   146     help
   147       By default, the companion libraries will be build static. If you want to
   148       build shared libraries, then you can say 'Y' here, but a wrapper will be
   149       needed (see: "docs/4 - Building the toolchain.txt", in the section
   150       "Tools wrapper").
   151       
   152       It is highly recommended that you keep static libraries.
   153 
   154 choice
   155     bool
   156     prompt "|  Install tools wrapper as:"
   157     depends on WRAPPER_NEEDED
   158     default TOOLS_WRAPPER_SHELL
   159 
   160 config TOOLS_WRAPPER_SCRIPT
   161     bool
   162     prompt "shell script"
   163     help
   164       If your host has a shell, then you should say 'Y' here, to use
   165       a (very very simple) shell script as wrapper.
   166       
   167       See: "docs/4 - Building the toolchain.txt", in the section "Tools wrapper".
   168 
   169 config TOOLS_WRAPPER_EXEC
   170     bool
   171     prompt "executable"
   172     help
   173       If your host lacks a shell, then you should say 'Y' here, to use
   174       an executable.
   175       
   176       See: "docs/4 - Building the toolchain.txt", in the section "Tools wrapper".
   177 
   178 endchoice
   179 
   180 config TOOLS_WRAPPER
   181     string
   182     default "script" if TOOLS_WRAPPER_SCRIPT
   183     default "exec"   if TOOLS_WRAPPER_EXEC
   184 
   185 endif # COMPLIBS
   186 
   187 endmenu