| OLD | NEW | 
|---|
| 1 #!/bin/sh | 1 #!/bin/sh | 
| 2 # Copyright (c) 1999-2013, International Business Machines Corporation and | 2 # Copyright (c) 1999-2014, International Business Machines Corporation and | 
| 3 # others. All Rights Reserved. | 3 # others. All Rights Reserved. | 
| 4 | 4 | 
| 5 # runConfigureICU: This script will run the "configure" script for the appropria
     te platform | 5 # runConfigureICU: This script will run the "configure" script for the appropria
     te platform | 
| 6 # Only supported platforms are recognized | 6 # Only supported platforms are recognized | 
| 7 | 7 | 
| 8 me=`basename $0` | 8 me=`basename $0` | 
| 9 OPTS= | 9 OPTS= | 
| 10 | 10 | 
| 11 usage() | 11 usage() | 
| 12 { | 12 { | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 33     CXXFLAGS=xyz path/to/runConfigureICU --enable-debug ... | 33     CXXFLAGS=xyz path/to/runConfigureICU --enable-debug ... | 
| 34 | 34 | 
| 35 The following names can be supplied as the argument for platform: | 35 The following names can be supplied as the argument for platform: | 
| 36 | 36 | 
| 37     AIX                 Use the IBM Visual Age xlc_r/xlC_r compilers on AIX | 37     AIX                 Use the IBM Visual Age xlc_r/xlC_r compilers on AIX | 
| 38     AIX/GCC             Use the GNU gcc/g++ compilers on AIX | 38     AIX/GCC             Use the GNU gcc/g++ compilers on AIX | 
| 39     Cygwin              Use the GNU gcc/g++ compilers on Cygwin | 39     Cygwin              Use the GNU gcc/g++ compilers on Cygwin | 
| 40     Cygwin/MSVC         Use the Microsoft Visual C++ compiler on Cygwin | 40     Cygwin/MSVC         Use the Microsoft Visual C++ compiler on Cygwin | 
| 41     Cygwin/MSVC2005     Use the Microsoft Visual C++ 2005 compiler on Cygwin | 41     Cygwin/MSVC2005     Use the Microsoft Visual C++ 2005 compiler on Cygwin | 
| 42     Cygwin/ICL          Use the Intel C++ compiler on Cygwin | 42     Cygwin/ICL          Use the Intel C++ compiler on Cygwin | 
| 43     FreeBSD             Use the GNU gcc/g++ compilers on Free BSD | 43     FreeBSD             Use the clang/clang++ or GNU gcc/g++ compilers on FreeBS
     D | 
| 44     HP-UX/ACC           Use the HP ANSI C/Advanced C++ compilers on HP-UX 11 | 44     HP-UX/ACC           Use the HP ANSI C/Advanced C++ compilers on HP-UX 11 | 
| 45     IBMi                Use the iCC compilers on IBM i, i5/OS, OS/400 | 45     IBMi                Use the iCC compilers on IBM i, i5/OS, OS/400 | 
| 46     Linux               Use the clang/clang++ or GNU gcc/g++ compilers on Linux | 46     Linux               Use the clang/clang++ or GNU gcc/g++ compilers on Linux | 
| 47     Linux/gcc           Use the GNU gcc/g++ compilers on Linux | 47     Linux/gcc           Use the GNU gcc/g++ compilers on Linux | 
| 48     Linux/ECC           Use the Intel ECC compiler on Linux | 48     Linux/ECC           Use the Intel ECC compiler on Linux | 
| 49     Linux/ICC           Use the Intel ICC compiler on Linux | 49     Linux/ICC           Use the Intel ICC compiler on Linux | 
| 50     Linux/VA            Use the IBM Visual Age compiler on Power PC Linux | 50     Linux/VA            Use the IBM Visual Age compiler on Power PC Linux | 
| 51     MacOSX              Use the default compilers on MacOS X (Darwin) | 51     MacOSX              Use the default compilers on MacOS X (Darwin) | 
| 52     MacOSX/GCC          Use the GNU gcc/g++ compilers on MacOSX (Darwin) | 52     MacOSX/GCC          Use the GNU gcc/g++ compilers on MacOSX (Darwin) | 
| 53     MinGW               Use the GNU gcc/g++ compilers on MinGW | 53     MinGW               Use the GNU gcc/g++ compilers on MinGW | 
|  | 54     MSYS/MSVC           Use the Microsoft Visual C++ computer on MSYS | 
| 54     QNX                 Use the QNX QCC compiler on QNX/Neutrino | 55     QNX                 Use the QNX QCC compiler on QNX/Neutrino | 
| 55     Solaris             Use the Sun cc/CC compilers on Solaris | 56     Solaris             Use the Sun cc/CC compilers on Solaris | 
| 56     Solaris/GCC         Use the GNU gcc/g++ compilers on Solaris | 57     Solaris/GCC         Use the GNU gcc/g++ compilers on Solaris | 
| 57     SolarisX86          Use the Sun cc/CC compilers on Solaris x86 | 58     SolarisX86          Use the Sun cc/CC compilers on Solaris x86 | 
| 58     TRU64V5.1/CXX       Use the Compaq cxx compiler on Tru64 (OSF) | 59     TRU64V5.1/CXX       Use the Compaq cxx compiler on Tru64 (OSF) | 
| 59     zOS                 Use the IBM cxx compiler on z/OS (os/390) | 60     zOS                 Use the IBM cxx compiler on z/OS (os/390) | 
| 60     zOSV1R2             Use the IBM cxx compiler for z/OS 1.2 | 61     zOSV1R2             Use the IBM cxx compiler for z/OS 1.2 | 
| 61 EOE | 62 EOE | 
| 62     fi | 63     fi | 
| 63 | 64 | 
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 253         THE_OS="Cygwin" | 254         THE_OS="Cygwin" | 
| 254         THE_COMP="the GNU C++" | 255         THE_COMP="the GNU C++" | 
| 255         RELEASE_CFLAGS='-O3' | 256         RELEASE_CFLAGS='-O3' | 
| 256         RELEASE_CXXFLAGS='-O3' | 257         RELEASE_CXXFLAGS='-O3' | 
| 257         ;; | 258         ;; | 
| 258     Cygwin/MSVC) | 259     Cygwin/MSVC) | 
| 259         THE_OS="Windows with Cygwin" | 260         THE_OS="Windows with Cygwin" | 
| 260         THE_COMP="Microsoft Visual C++" | 261         THE_COMP="Microsoft Visual C++" | 
| 261         CC=cl; export CC | 262         CC=cl; export CC | 
| 262         CXX=cl; export CXX | 263         CXX=cl; export CXX | 
| 263         RELEASE_CFLAGS='/Gy /MD' | 264         RELEASE_CFLAGS='-Gy -MD' | 
| 264         RELEASE_CXXFLAGS='/Gy /MD' | 265         RELEASE_CXXFLAGS='-Gy -MD' | 
| 265         DEBUG_CFLAGS='/Zi /MDd' | 266         DEBUG_CFLAGS='-Zi -MDd' | 
| 266         DEBUG_CXXFLAGS='/Zi /MDd' | 267         DEBUG_CXXFLAGS='-Zi -MDd' | 
| 267         DEBUG_LDFLAGS='/DEBUG' | 268         DEBUG_LDFLAGS='-DEBUG' | 
| 268         ;; | 269         ;; | 
| 269     Cygwin/MSVC2005) | 270     Cygwin/MSVC2005) | 
| 270         THE_OS="Windows with Cygwin" | 271         THE_OS="Windows with Cygwin" | 
| 271         THE_COMP="Microsoft Visual C++ 2005" | 272         THE_COMP="Microsoft Visual C++ 2005" | 
| 272         CC=cl; export CC | 273         CC=cl; export CC | 
| 273         CXX=cl; export CXX | 274         CXX=cl; export CXX | 
| 274         RELEASE_CFLAGS='/Gy /MD' | 275         RELEASE_CFLAGS='/Gy /MD' | 
| 275         RELEASE_CXXFLAGS='/Gy /MD' | 276         RELEASE_CXXFLAGS='/Gy /MD' | 
| 276         DEBUG_CFLAGS='/Zi /MDd' | 277         DEBUG_CFLAGS='/Zi /MDd' | 
| 277         DEBUG_CXXFLAGS='/Zi /MDd' | 278         DEBUG_CXXFLAGS='/Zi /MDd' | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 297         DEBUG_CFLAGS='-g -O0' | 298         DEBUG_CFLAGS='-g -O0' | 
| 298         DEBUG_CXXFLAGS='-g -O0' | 299         DEBUG_CXXFLAGS='-g -O0' | 
| 299         ;; | 300         ;; | 
| 300     MacOSX/GCC) | 301     MacOSX/GCC) | 
| 301         THE_OS="MacOS X (Darwin)" | 302         THE_OS="MacOS X (Darwin)" | 
| 302         THE_COMP="the GNU C++" | 303         THE_COMP="the GNU C++" | 
| 303         RELEASE_CFLAGS='-O2' | 304         RELEASE_CFLAGS='-O2' | 
| 304         RELEASE_CXXFLAGS='-O2' | 305         RELEASE_CXXFLAGS='-O2' | 
| 305         DEBUG_CFLAGS='-g -O0' | 306         DEBUG_CFLAGS='-g -O0' | 
| 306         DEBUG_CXXFLAGS='-g -O0' | 307         DEBUG_CXXFLAGS='-g -O0' | 
| 307 »       CC=gcc; export CC | 308         CC=gcc; export CC | 
| 308 »       CXX=g++; export CXX | 309         CXX=g++; export CXX | 
| 309         ;; | 310         ;; | 
| 310     MinGW) | 311     MinGW) | 
| 311         THE_OS="MinGW" | 312         THE_OS="MinGW" | 
| 312         THE_COMP="the GNU C++" | 313         THE_COMP="the GNU C++" | 
| 313         RELEASE_CFLAGS='-O3' | 314         RELEASE_CFLAGS='-O3' | 
| 314         RELEASE_CXXFLAGS='-O3' | 315         RELEASE_CXXFLAGS='-O3' | 
| 315         CXXFLAGS="--std=c++03" | 316         CXXFLAGS="--std=c++03" | 
| 316         export CXXFLAGS | 317         export CXXFLAGS | 
| 317         ;; | 318         ;; | 
|  | 319     MSYS/MSVC) | 
|  | 320         THE_OS="MSYS" | 
|  | 321         THE_COMP="Microsoft Visual C++" | 
|  | 322         CC=cl; export CC | 
|  | 323         CXX=cl; export CXX | 
|  | 324         RELEASE_CFLAGS='-Gy -MD' | 
|  | 325         RELEASE_CXXFLAGS='-Gy -MD' | 
|  | 326         DEBUG_CFLAGS='-Zi -MDd' | 
|  | 327         DEBUG_CXXFLAGS='-Zi -MDd' | 
|  | 328         DEBUG_LDFLAGS='-DEBUG' | 
|  | 329         ;; | 
| 318     *BSD) | 330     *BSD) | 
| 319         THE_OS="BSD" | 331         THE_OS="BSD" | 
| 320         THE_COMP="the GNU C++" | 332         THE_COMP="the GNU C++" | 
| 321         CC=gcc; export CC |  | 
| 322         CXX=g++; export CXX |  | 
| 323         DEBUG_CFLAGS='-g -O0' | 333         DEBUG_CFLAGS='-g -O0' | 
| 324         DEBUG_CXXFLAGS='-g -O0' | 334         DEBUG_CXXFLAGS='-g -O0' | 
| 325         ;; | 335         ;; | 
| 326     TRU64V5.1/CXX) | 336     TRU64V5.1/CXX) | 
| 327         THE_OS="OSF1" | 337         THE_OS="OSF1" | 
| 328         THE_COMP="Compaq cxx" | 338         THE_COMP="Compaq cxx" | 
| 329         CC=cc; export CC | 339         CC=cc; export CC | 
| 330         CXX=cxx; export CXX | 340         CXX=cxx; export CXX | 
| 331         ;; | 341         ;; | 
| 332     QNX) | 342     QNX) | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 369     if test "$RELEASE_CFLAGS" = "" | 379     if test "$RELEASE_CFLAGS" = "" | 
| 370     then | 380     then | 
| 371         case $CC in | 381         case $CC in | 
| 372             gcc|*/gcc|*-gcc-*|*/*-gcc-*) | 382             gcc|*/gcc|*-gcc-*|*/*-gcc-*) | 
| 373                 RELEASE_CFLAGS=-O3 | 383                 RELEASE_CFLAGS=-O3 | 
| 374                 ;; | 384                 ;; | 
| 375         esac | 385         esac | 
| 376     fi | 386     fi | 
| 377     if test "$RELEASE_CFLAGS" != "" | 387     if test "$RELEASE_CFLAGS" != "" | 
| 378     then | 388     then | 
| 379         CFLAGS="$CFLAGS $RELEASE_CFLAGS" | 389         CFLAGS="$RELEASE_CFLAGS $CFLAGS" | 
| 380     fi | 390     fi | 
| 381     if test "$RELEASE_CXXFLAGS" = "" | 391     if test "$RELEASE_CXXFLAGS" = "" | 
| 382     then | 392     then | 
| 383         case $CXX in | 393         case $CXX in | 
| 384             g++|*/g++|*-g++-*|*/*-g++-*) | 394             g++|*/g++|*-g++-*|*/*-g++-*) | 
| 385                 RELEASE_CXXFLAGS=-O3 | 395                 RELEASE_CXXFLAGS=-O3 | 
| 386                 ;; | 396                 ;; | 
| 387         esac | 397         esac | 
| 388     fi | 398     fi | 
| 389     if test "$RELEASE_CXXFLAGS" != "" | 399     if test "$RELEASE_CXXFLAGS" != "" | 
| 390     then | 400     then | 
| 391         CXXFLAGS="$CXXFLAGS $RELEASE_CXXFLAGS" | 401         CXXFLAGS="$RELEASE_CXXFLAGS $CXXFLAGS" | 
| 392     fi | 402     fi | 
| 393     if test "$RELEASE_LDFLAGS" != "" | 403     if test "$RELEASE_LDFLAGS" != "" | 
| 394     then | 404     then | 
| 395         LDFLAGS="$LDFLAGS $RELEASE_LDFLAGS" | 405         LDFLAGS="$RELEASE_LDFLAGS $LDFLAGS" | 
| 396     fi | 406     fi | 
| 397 fi | 407 fi | 
| 398 | 408 | 
| 399 if test $debug -eq 1 | 409 if test $debug -eq 1 | 
| 400 then | 410 then | 
| 401     if test "$DEBUG_CFLAGS" != "" | 411     if test "$DEBUG_CFLAGS" != "" | 
| 402     then | 412     then | 
| 403         CFLAGS="$CFLAGS $DEBUG_CFLAGS" | 413         CFLAGS="$DEBUG_CFLAGS $CFLAGS" | 
| 404     fi | 414     fi | 
| 405     if test "$DEBUG_CXXFLAGS" != "" | 415     if test "$DEBUG_CXXFLAGS" != "" | 
| 406     then | 416     then | 
| 407         CXXFLAGS="$CXXFLAGS $DEBUG_CXXFLAGS" | 417         CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" | 
| 408     fi | 418     fi | 
| 409     if test "$DEBUG_LDFLAGS" != "" | 419     if test "$DEBUG_LDFLAGS" != "" | 
| 410     then | 420     then | 
| 411         LDFLAGS="$LDFLAGS $DEBUG_LDFLAGS" | 421         LDFLAGS="$DEBUG_LDFLAGS $LDFLAGS" | 
| 412     fi | 422     fi | 
| 413 fi | 423 fi | 
| 414 | 424 | 
| 415 export CFLAGS | 425 export CFLAGS | 
| 416 export CXXFLAGS | 426 export CXXFLAGS | 
| 417 export LDFLAGS | 427 export LDFLAGS | 
| 418 | 428 | 
| 419 # Run configure | 429 # Run configure | 
| 420 | 430 | 
| 421 echo "export CPP=$CPP CC=$CC CXX=$CXX CPPFLAGS=$CPPFLAGS CFLAGS=$CFLAGS CXXFLAGS
     =$CXXFLAGS LDFLAGS=$LDFLAGS MAKE=$MAKE" | 431 echo "export CPP=$CPP CC=$CC CXX=$CXX CPPFLAGS=$CPPFLAGS CFLAGS=$CFLAGS CXXFLAGS
     =$CXXFLAGS LDFLAGS=$LDFLAGS MAKE=$MAKE" | 
| 422 echo "Running ./configure $OPTS $@ for $THE_OS using $THE_COMP compiler" | 432 echo "Running ./configure $OPTS $@ for $THE_OS using $THE_COMP compiler" | 
| 423 echo | 433 echo | 
| 424 if $configure $OPTS $@ | 434 if $configure $OPTS $@ | 
| 425 then | 435 then | 
| 426         echo | 436         echo | 
| 427         echo If the result of the above commands looks okay to you, go to the di
     rectory | 437         echo If the result of the above commands looks okay to you, go to the di
     rectory | 
| 428         echo source in the ICU distribution to build ICU. Please remember that I
     CU needs | 438         echo source in the ICU distribution to build ICU. Please remember that I
     CU needs | 
| 429         echo GNU make to build properly... | 439         echo GNU make to build properly... | 
| 430 else | 440 else | 
| 431         echo $0: ./configure failed | 441         echo $0: ./configure failed | 
| 432         exit 1 | 442         exit 1 | 
| 433 fi | 443 fi | 
| OLD | NEW | 
|---|