2 # Copyright (c) 1999-2003, International Business Machines Corporation and
3 # others. All Rights Reserved.
5 # runConfigureICU: This script will run the "configure" script for the appropriate platform
6 # Only supported platforms are recognized
21 echo "${uletter}sage: $me [ -h, --help ] [ --enable-debug | --disable-release ] platform [ configurearg ... ]"
26 Options: -h, --help Print this message and exit
27 --enable-debug Enable support for debugging
28 --disable-release Disable presetting optimization flags
30 The following names can be supplied as the argument for platform:
32 AIX4.3xlC Use IBM's xlC on AIX 4.3
33 AIX4.3xlC_nothreads Use IBM's xlC on AIX 4.3 with no multithreading
34 AIX4.3VA Use IBM's Visual Age xlC_r compiler on AIX 4.3
35 ALPHA/LINUXGCC Use GCC on Alpha/Linux systems
36 ALPHA/LINUXCCC Use Compaq C compiler on Alpha/Linux systems
37 CygWin Use the GNU C++ compiler on CygWin
38 FreeBSD Use the GNU C++ compiler on Free BSD
39 HP-UX11CC Use HP's C++ compiler on HP-UX 11
40 HP-UX11ACC Use the Advanced C++ compiler on HP-UX 11
41 LinuxRedHat Use the GNU C++ compiler on Linux
42 MacOSX Use the GNU C++ compiler on MacOS X (Darwin)
43 QNX Use QNX's QCC compiler on QNX/Neutrino
44 SOLARISCC Use Sun's CC compiler on Solaris
45 SOLARISCC/W4.2 Use Sun's Workshop 4.2 CC compiler on Solaris
46 SOLARISGCC Use the GNU C++ compiler on Solaris
47 SOLARISX86 Use Sun's CC compiler on Solaris x86
48 TRU64V5.1/CXX Use Compaq's cxx compiler on Tru64 (OSF)
49 zOS Use IBM's cxx compiler on z/OS (os/390)
50 zOSV1R2 Use IBM's cxx compiler for z/OS 1.2
51 OS390V2R10 Use IBM's cxx compiler for OS/390 2.10
87 if test x
$platform = x
101 if test x
$configure = x
103 if test -f .
/configure
107 configuredir
=`echo $0 | sed 's,[^/]*$,,'`
108 if test x
$configuredir = x
$0
114 if test x
$configuredir = x
119 configure
=$configuredir/configure
126 CC
=/usr
/ibmcxx
/bin
/xlc_r
; export CC
127 CXX
=/usr
/ibmcxx
/bin
/xlC_r
; export CXX
128 RELEASE_CFLAGS
="-O -qmaxmem=-1"
129 RELEASE_CXXFLAGS
="-O -qmaxmem=-1"
134 CC
=/usr
/ibmcxx
/bin
/xlc
; export CC
135 CXX
=/usr
/ibmcxx
/bin
/xlC
; export CXX
136 AIX_SHLIB
=/usr
/ibmcxx
/bin
/makeC
++SharedLib
; export AIX_SHLIB
137 RELEASE_CFLAGS
="-O -qmaxmem=-1"
138 RELEASE_CXXFLAGS
="-O -qmaxmem=-1"
139 OPTS
="$OPTS --enable-threads=no"
144 CC
=`which xlc_r`; export CC
145 CXX
=`which xlC_r`; export CXX
146 RELEASE_CFLAGS
="-O2 -qmaxmem=-1"
147 RELEASE_CXXFLAGS
="-O2 -qmaxmem=-1"
148 #LDFLAGS=-L/usr/lpp/xlC/lib; export LDFLAGS
150 # Just use --enable-threads=no. Visual Age makes no distinction between xlC and xlC_r or any other _r programs.
151 # AIX4.3VA_nothreads)
154 # # Only in Visual Age, there is no different between xlc and xlc_r.
155 # CC=`which xlc`; export CC
156 # CXX=`which xlC`; export CXX
157 # OPTS="$OPTS --enable-threads=no"
158 # RELEASE_CFLAGS="-O2 -qmaxmem=-1"
159 # RELEASE_CXXFLAGS="-O2 -qmaxmem=-1"
160 # #LDFLAGS=-L/usr/lpp/xlC/lib; export LDFLAGS
165 CC
=`which cc`; export CC
166 CXX
=`which CC`; export CXX
167 CXX_FLAGS
="-w";export CXX_FLAGS
168 C_FLAGS
="-w";export C_FLAGS
169 LDFLAGS
="-L -lCrun";export LDFLAGS
176 CC
=`which cc`; export CC
177 CXX
=`which CC`; export CXX
184 CC
=`which cc`; export CC
185 CXX
=`which CC`; export CXX
187 RELEASE_CXXFLAGS
="-O4 +d"
191 THE_COMP
="the GNU C++"
192 CXXFLAGS
=-I/usr
/local
/include
/g
++; export CXXFLAGS
193 LDFLAGS
=-R/usr
/local
/lib
; export LDFLAGS
200 RELEASE_CFLAGS
='+O2 +Ofltacc'
201 RELEASE_CXXFLAGS
='+O2 +Ofltacc'
208 RELEASE_CFLAGS
='+O2 +Ofltacc'
209 RELEASE_CXXFLAGS
='+O2 +Ofltacc'
213 THE_COMP
="Compaq cxx"
219 THE_COMP
="Compaq's CC"
223 RELEASE_CXXFLAGS
='-O4'
227 THE_COMP
="the GNU C++"
233 THE_COMP
="the GNU C++"
239 THE_COMP
="the GNU C++"
242 THE_OS
="MacOS X (Darwin)"
243 THE_COMP
="the GNU C++"
245 RELEASE_CXXFLAGS
='-O2'
249 THE_COMP
="the GNU C++"
260 THE_OS
="z/OS (OS/390)"
261 THE_COMP
="z/OS 1.2 (through OS/390 v2r10) C/C++"
264 export RELEASE_CFLAGS
='-2'
265 export RELEASE_CXXFLAGS
='-2'
269 THE_COMP
="z/OS 1.2 C/C++"
272 export COMPILE_LINK_ENVVAR
='_CXX_CVERSION=0x41020000 _C89_CVERSION=0x41020000 _CC_CVERSION=0x41020000 _CXX_PVERSION=0x41020000 _C89_PVERSION=0x41020000 _CC_PVERSION=0x41020000'
273 export _CXX_CVERSION
=0x41020000 _C89_CVERSION
=0x41020000 _CC_CVERSION
=0x41020000 _CXX_PVERSION
=0x41020000 _C89_PVERSION
=0x41020000 _CC_PVERSION
=0x41020000
274 export LDFLAGS
=-Wl,"compat=pm3"
275 export CFLAGS
='-Wc,"target(zOSV1R2)"'
276 export CXXFLAGS
='-Wc,"target(zOSV1R2)"'
277 export RELEASE_CFLAGS
='-2'
278 export RELEASE_CXXFLAGS
='-2'
282 THE_COMP
="OS/390 2.10 C/C++"
285 export COMPILE_LINK_ENVVAR
='_CXX_CVERSION=0x220A0000 _C89_CVERSION=0x220A0000 _CC_CVERSION=0x220A0000 _CXX_PVERSION=0x220A0000 _C89_PVERSION=0x220A0000 _CC_PVERSION=0x220A0000'
286 export _CXX_CVERSION
=0x220A0000 _C89_CVERSION
=0x220A0000 _CC_CVERSION
=0x220A0000 _CXX_PVERSION
=0x220A0000 _C89_PVERSION
=0x220A0000 _CC_PVERSION
=0x220A0000
287 export LDFLAGS
=-Wl,"compat=pm3"
288 export CFLAGS
='-Wc,"target(OSV2R10)"'
289 export CXXFLAGS
='-Wc,"target(OSV2R10)"'
290 export RELEASE_CFLAGS
='-2'
291 export RELEASE_CXXFLAGS
='-2'
294 >&2 echo "$me: unrecognized platform \"$platform\" (use --help for help)"
301 if test $release -eq 1
303 if test "$RELEASE_CFLAGS" = ""
306 gcc
|*/gcc
|*-gcc-*|*/*-gcc-*)
311 if test "$RELEASE_CFLAGS" != ""
313 CFLAGS
="$CFLAGS $RELEASE_CFLAGS"
316 if test "$RELEASE_CXXFLAGS" = ""
319 g
++|*/g
++|*-g++-*|*/*-g++-*)
324 if test "$RELEASE_CXXFLAGS" != ""
326 CXXFLAGS
="$CXXFLAGS $RELEASE_CXXFLAGS"
333 if test "$DEBUG_CFLAGS" != ""
335 CFLAGS
="$CFLAGS $DEBUG_CFLAGS"
338 if test "$DEBUG_CXXFLAGS" != ""
340 CXXFLAGS
="$CXXFLAGS $DEBUG_CXXFLAGS"
347 echo "Running ./configure $OPTS $@ for $THE_OS using $THE_COMP compiler"
351 echo If the result of the above commands looks okay to you
, go to the directory
352 echo source in the ICU distribution to build ICU. Please remember that ICU needs
353 echo GNU
make to build properly...