#!/bin/sh # Copyright (c) 1999-2007, International Business Machines Corporation and # others. All Rights Reserved. # runConfigureICU: This script will run the "configure" script for the appropriate platform # Only supported platforms are recognized me=`basename $0` OPTS= usage() { ec=0$1 if test $ec -eq 0 then uletter=U else uletter=u fi echo "${uletter}sage: $me [ -h, --help ] [ --enable-debug | --disable-release ] platform [ configurearg ... ]" if test $ec -eq 0 then cat <&2 echo "$me: unrecognized platform \"$platform\" (use --help for help)" exit 1;; esac # Tweak flags if test $release -eq 1 then if test "$RELEASE_CFLAGS" = "" then case $CC in gcc|*/gcc|*-gcc-*|*/*-gcc-*) RELEASE_CFLAGS=-O3 ;; esac fi if test "$RELEASE_CFLAGS" != "" then CFLAGS="$CFLAGS $RELEASE_CFLAGS" fi if test "$RELEASE_CXXFLAGS" = "" then case $CXX in g++|*/g++|*-g++-*|*/*-g++-*) RELEASE_CXXFLAGS=-O ;; esac fi if test "$RELEASE_CXXFLAGS" != "" then CXXFLAGS="$CXXFLAGS $RELEASE_CXXFLAGS" fi if test "$RELEASE_LDFLAGS" != "" then LDFLAGS="$LDFLAGS $RELEASE_LDFLAGS" fi fi if test $debug -eq 1 then if test "$DEBUG_CFLAGS" != "" then CFLAGS="$CFLAGS $DEBUG_CFLAGS" fi if test "$DEBUG_CXXFLAGS" != "" then CXXFLAGS="$CXXFLAGS $DEBUG_CXXFLAGS" fi if test "$DEBUG_LDFLAGS" != "" then LDFLAGS="$LDFLAGS $DEBUG_LDFLAGS" fi fi export CFLAGS export CXXFLAGS export LDFLAGS # Run configure echo "Running ./configure $OPTS $@ for $THE_OS using $THE_COMP compiler" echo $configure $OPTS $@ echo 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...