#!/bin/sh
-# Copyright (c) 1999-2003, International Business Machines Corporation and
+# Copyright (c) 1999-2004, International Business Machines Corporation and
# others. All Rights Reserved.
# runConfigureICU: This script will run the "configure" script for the appropriate platform
AIX4.3xlC Use IBM's xlC on AIX 4.3
AIX4.3xlC_nothreads Use IBM's xlC on AIX 4.3 with no multithreading
AIX4.3VA Use IBM's Visual Age xlC_r compiler on AIX 4.3
+ AIXGCC Use GCC on AIX
ALPHA/LINUXGCC Use GCC on Alpha/Linux systems
ALPHA/LINUXCCC Use Compaq C compiler on Alpha/Linux systems
- CygWin Use the GNU C++ compiler on CygWin
+ BeOS Use the GNU C++ compiler on BeOS
+ Cygwin Use the GNU C++ compiler on Cygwin
+ Cygwin/MSVC Use the Microsoft Visual C++ compiler on Cygwin
FreeBSD Use the GNU C++ compiler on Free BSD
- HP-UX11CC Use HP's C++ compiler on HP-UX 11
HP-UX11ACC Use the Advanced C++ compiler on HP-UX 11
+ HP-UX11CC Use HP's C++ compiler on HP-UX 11
LinuxRedHat Use the GNU C++ compiler on Linux
+ LINUX/ECC Use the Intel ECC compiler on Linux
+ LINUX/ICC Use the Intel ICC compiler on Linux
+ LINUX/VA Use IBM's Visual Age compiler on Power PC Linux
MacOSX Use the GNU C++ compiler on MacOS X (Darwin)
QNX Use QNX's QCC compiler on QNX/Neutrino
SOLARISCC Use Sun's CC compiler on Solaris
;;
--enable-debug)
debug=1
- release=0
+ OPTS="$OPTS --enable-debug"
;;
--disable-release)
- debug=0
release=0
+ OPTS="$OPTS --disable-release"
;;
*)
platform="$1"
RELEASE_CXXFLAGS="-O2 -qmaxmem=-1"
#LDFLAGS=-L/usr/lpp/xlC/lib; export LDFLAGS
;;
-# Just use --enable-threads=no. Visual Age makes no distinction between xlC and xlC_r or any other _r programs.
-# AIX4.3VA_nothreads)
-# THE_OS=AIX
-# THE_COMP="xlC"
-# # Only in Visual Age, there is no different between xlc and xlc_r.
-# CC=`which xlc`; export CC
-# CXX=`which xlC`; export CXX
-# OPTS="$OPTS --enable-threads=no"
-# RELEASE_CFLAGS="-O2 -qmaxmem=-1"
-# RELEASE_CXXFLAGS="-O2 -qmaxmem=-1"
-# #LDFLAGS=-L/usr/lpp/xlC/lib; export LDFLAGS
-# ;;
+# For no threads use --enable-threads=no. Visual Age makes no distinction between xlC and xlC_r or any other _r programs.
+ AIXGCC)
+ THE_OS=AIX
+ THE_COMP="gcc"
+ CC=`which gcc`; export CC
+ CXX=`which g++`; export CXX
+ ;;
SOLARISX86)
THE_OS="SOLARIS X86"
THE_COMP="Sun's CC"
SOLARISGCC)
THE_OS=SOLARIS
THE_COMP="the GNU C++"
- CXXFLAGS=-I/usr/local/include/g++; export CXXFLAGS
- LDFLAGS=-R/usr/local/lib; export LDFLAGS
+ CXXFLAGS="$CXXFLAGS -I/usr/local/include/g++"; export CXXFLAGS
+ LDFLAGS="$LDFLAGS -R/usr/local/lib"; export LDFLAGS
+ RELEASE_CXXFLAGS=-O
+ RELEASE_CFLAGS=-O3
;;
HP-UX11CC)
THE_OS="HP-UX 11"
CC=gcc; export CC
CXX=g++; export CXX
;;
- CygWin)
- THE_OS="CygWin"
+ LINUX/ECC)
+ THE_OS="Linux"
+ THE_COMP="Intel ECC 7.1"
+ CC=ecc; export CC
+ CXX=ecpc; export CXX
+ RELEASE_CFLAGS='-O2'
+ RELEASE_CXXFLAGS='-O2'
+ ;;
+ LINUX/ICC)
+ THE_OS="Linux"
+ THE_COMP="Intel ICC 6.0"
+ CC=icc; export CC
+ CXX=icpc; export CXX
+ RELEASE_CFLAGS='-O0'
+ RELEASE_CXXFLAGS='-O0'
+ ;;
+ LINUX/VA)
+ THE_OS="Linux"
+ THE_COMP="IBM Visual Age C++ Compiler"
+ CC=`which xlc_r`; export CC
+ CXX=`which xlC_r`; export CXX
+ RELEASE_CFLAGS="-O2 -qmaxmem=-1"
+ RELEASE_CXXFLAGS="-O2 -qmaxmem=-1"
+ ;;
+ Cygwin)
+ THE_OS="Cygwin"
THE_COMP="the GNU C++"
+ RELEASE_CFLAGS='-O3'
+ RELEASE_CXXFLAGS='-O3'
+ ;;
+ Cygwin/MSVC)
+ THE_OS="Windows with Cygwin"
+ THE_COMP="Microsoft Visual C++"
+ CC=cl; export CC
+ CXX=cl; export CXX
+ RELEASE_CFLAGS='/O2 /Ob2'
+ RELEASE_CXXFLAGS='/O2 /Ob2'
+ # The real debug flags are defined by the mh file because configure can't handle them.
+ DEBUG_CFLAGS=
+ DEBUG_CXXFLAGS=
;;
MacOSX)
THE_OS="MacOS X (Darwin)"
CC=qcc; export CC
CXX=QCC; export CXX
;;
+ BeOS)
+ THE_OS="BeOS"
+ THE_COMP="the GNU C++"
+ OPTIMIZATIONS="-fdefault-inline -fdefer-pop -fforce-mem -fforce-addr \
+ -finline -finline-functions \
+ -fkeep-inline-functions -fkeep-static-consts -fbranch-count-reg \
+ -ffunction-cse -fstrength-reduce -fthread-jumps -fcse-follow-jumps \
+ -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt \
+ -fexpensive-optimizations -foptimize-register-move -fregmove \
+ -fschedule-insns -fschedule-insns2 -ffloat-store -funroll-loops \
+ -fmove-all-movables -freduce-all-givs -fpeephole \
+ -funroll-all-loops -ffunction-sections -fdata-sections"
+ RELEASE_CFLAGS="$OPTIMIZATIONS"
+ RELEASE_CXXFLAGS="$OPTIMIZATIONS"
+ ;;
zOS)
THE_OS="z/OS (OS/390)"
THE_COMP="z/OS 1.2 (through OS/390 v2r10) C/C++"
CXXFLAGS="$CXXFLAGS $DEBUG_CXXFLAGS"
fi
export CXXFLAGS
+ if test "$DEBUG_LDFLAGS" != ""
+ then
+ LDFLAGS="$LDFLAGS $DEBUG_LDFLAGS"
+ fi
+ export LDFLAGS
fi
# Run configure
echo If the result of the above commands looks okay to you, go to the directory
echo source in the ICU distribution to build ICU. Please remember that ICU needs
echo GNU make to build properly...
-