config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Apr 26 21:31:05 2008 +0000 (2008-04-26)
changeset 454 372b2f397baa
child 466 7f9bbf94b0bb
permissions -rw-r--r--
Configure tsocks with a simple heuristic.

Consider the proxy has to be in a 'local' network. It means it is directly
reachable by the local machine, even if the local machine has to hop through
one or more gates to reach the proxy (often the case in enterprise networks
where class A 10.0.0.0/8 is in fact sub-divided into smaller networks, each
one of them in a different location, eg. 10.1.0.0/16 in a place, while
10.2.0.0/16 would be on the other side of the world). Not being in the same
subnet does not mean the proxy is not available.

So we will build a mask with at most high bits set, which defines a network
that has both the local machine and the proxy. Because a machine may have
more than one interface, build a mask for each of them, removing 127.0.0.1
which is added automagically by tsocks, and removing duplicate masks.

If all of this does not work, then it means the local machine can NOT in fact
reach the proxy, which in turn means the user mis-configured something (most
probably a typo...).

/trunk/scripts/crosstool.sh | 61 52 9 0 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 9 deletions(-)
yann@448
     1
# Compiler options
yann@448
     2
yann@448
     3
choice
yann@448
     4
    bool
yann@448
     5
    prompt "gcc version"
yann@448
     6
yann@448
     7
config CC_V_2_95_3
yann@448
     8
    bool
yann@448
     9
    prompt "2.95.3 (OBSOLETE)"
yann@448
    10
    depends on OBSOLETE
yann@448
    11
yann@448
    12
config CC_V_3_2_3
yann@448
    13
    bool
yann@448
    14
    prompt "3.2.3 (OBSOLETE)"
yann@448
    15
    depends on OBSOLETE
yann@448
    16
yann@448
    17
config CC_V_3_3_6
yann@448
    18
    bool
yann@448
    19
    prompt "3.3.6 (OBSOLETE)"
yann@448
    20
    depends on OBSOLETE
yann@448
    21
yann@448
    22
config CC_V_3_4_6
yann@448
    23
    bool
yann@448
    24
    prompt "3.4.6 (OBSOLETE)"
yann@448
    25
    depends on OBSOLETE
yann@448
    26
yann@448
    27
config CC_V_4_0_0
yann@448
    28
    bool
yann@448
    29
    prompt "4.0.0 (OBSOLETE)"
yann@448
    30
    depends on OBSOLETE
yann@448
    31
yann@448
    32
config CC_V_4_0_1
yann@448
    33
    bool
yann@448
    34
    prompt "4.0.1 (OBSOLETE)"
yann@448
    35
    depends on OBSOLETE
yann@448
    36
yann@448
    37
config CC_V_4_0_2
yann@448
    38
    bool
yann@448
    39
    prompt "4.0.2 (OBSOLETE)"
yann@448
    40
    depends on OBSOLETE
yann@448
    41
yann@448
    42
config CC_V_4_0_3
yann@448
    43
    bool
yann@448
    44
    prompt "4.0.3 (OBSOLETE)"
yann@448
    45
    depends on OBSOLETE
yann@448
    46
yann@448
    47
config CC_V_4_0_4
yann@448
    48
    bool
yann@448
    49
    prompt "4.0.4"
yann@448
    50
yann@448
    51
config CC_V_4_1_0
yann@448
    52
    bool
yann@448
    53
    prompt "4.1.0 (OBSOLETE)"
yann@448
    54
    depends on OBSOLETE
yann@448
    55
yann@448
    56
config CC_V_4_1_1
yann@448
    57
    bool
yann@448
    58
    prompt "4.1.1 (OBSOLETE)"
yann@448
    59
    depends on OBSOLETE
yann@448
    60
yann@448
    61
config CC_V_4_1_2
yann@448
    62
    bool
yann@448
    63
    prompt "4.1.2"
yann@448
    64
yann@448
    65
config CC_V_4_2_0
yann@448
    66
    bool
yann@448
    67
    prompt "4.2.0"
yann@448
    68
yann@448
    69
config CC_V_4_2_1
yann@448
    70
    bool
yann@448
    71
    prompt "4.2.1"
yann@448
    72
yann@448
    73
config CC_V_4_2_2
yann@448
    74
    bool
yann@448
    75
    prompt "4.2.2"
yann@448
    76
yann@448
    77
config CC_V_4_2_3
yann@448
    78
    bool
yann@448
    79
    prompt "4.2.3 (EXPERIMENTAL)"
yann@448
    80
    depends on EXPERIMENTAL
yann@448
    81
yann@448
    82
# CT_INSERT_VERSION_ABOVE
yann@448
    83
# Don't remove above line!
yann@448
    84
endchoice
yann@448
    85
yann@448
    86
config CC_VERSION
yann@448
    87
    string
yann@448
    88
    default "2.95.3" if CC_V_2_95_3
yann@448
    89
    default "3.2.3" if CC_V_3_2_3
yann@448
    90
    default "3.3.6" if CC_V_3_3_6
yann@448
    91
    default "3.4.6" if CC_V_3_4_6
yann@448
    92
    default "4.0.0" if CC_V_4_0_0
yann@448
    93
    default "4.0.1" if CC_V_4_0_1
yann@448
    94
    default "4.0.2" if CC_V_4_0_2
yann@448
    95
    default "4.0.3" if CC_V_4_0_3
yann@448
    96
    default "4.0.4" if CC_V_4_0_4
yann@448
    97
    default "4.1.0" if CC_V_4_1_0
yann@448
    98
    default "4.1.1" if CC_V_4_1_1
yann@448
    99
    default "4.1.2" if CC_V_4_1_2
yann@448
   100
    default "4.2.0" if CC_V_4_2_0
yann@448
   101
    default "4.2.1" if CC_V_4_2_1
yann@448
   102
    default "4.2.2" if CC_V_4_2_2
yann@448
   103
    default "4.2.3" if CC_V_4_2_3
yann@448
   104
# CT_INSERT_VERSION_STRING_ABOVE
yann@448
   105
# Don't remove above line!
yann@448
   106
yann@448
   107
config CC_CXA_ATEXIT
yann@448
   108
    bool
yann@448
   109
    prompt "__cxa_atexit"
yann@448
   110
    default "y"
yann@448
   111
    help
yann@448
   112
      If you get the missing symbol "__cxa_atexit" when building C++ programs,
yann@448
   113
      you might want to try disabling this option.
yann@448
   114
yann@448
   115
config CC_CORE_EXTRA_CONFIG
yann@448
   116
    string
yann@448
   117
    prompt "Core gcc extra config"
yann@448
   118
    default ""
yann@448
   119
    help
yann@448
   120
      Extra flags to pass onto ./configure when configuring the core gcc.
yann@448
   121
      
yann@448
   122
      The core gcc is a stripped down, C-only compiler needed to build
yann@448
   123
      the C library. Kinda bootstrap gcc, if you wish.
yann@448
   124
yann@448
   125
config CC_EXTRA_CONFIG
yann@448
   126
    string
yann@448
   127
    prompt "gcc extra config"
yann@448
   128
    default ""
yann@448
   129
    help
yann@448
   130
      Extra flags to pass onto ./configure when configuring gcc.