Changeset 36346


Ignore:
Timestamp:
Dec 12, 2006, 3:54:24 PM (11 years ago)
Author:
Douglas Gregor
Message:

Make POSIX compliant

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/RC_1_34_0/boost/configure

    r34997 r36346  
    11#!/bin/sh
    2 # Copyright 2005 Douglas Gregor.
     2# Copyright (C) 2005, 2006 Douglas Gregor.
     3# Copyright (C) 2006 The Trustees of Indiana University
     4#
    35# Distributed under the Boost Software License, Version 1.0.
    46# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
     
    7476              LIBS="$LIBS --with-$library"
    7577
    76               if test $library == python; then
     78              if test $library = python; then
    7779                  requested_python=yes
    7880              fi
     
    9496          LIBS="$LIBS --without-$library"
    9597
    96           if test $library == python; then
     98          if test $library = python; then
    9799              flag_no_python=yes
    98100          fi
     
    176178
    177179# Determine the toolset, if not already decided
    178 if test "x$TOOLSET" == x; then
     180if test "x$TOOLSET" = x; then
    179181  TOOLSET=`$my_dir/tools/jam/src/build.sh --guess-toolset`
    180182fi
     
    183185
    184186# Build bjam
    185 if test "x$BJAM" == x; then
     187if test "x$BJAM" = x; then
    186188  echo -n "Building Boost.Jam with toolset $TOOLSET... "
    187189  pwd=`pwd`
     
    196198
    197199# If there is a list of libraries
    198 if test "x$flag_show_libraries" == xyes; then
     200if test "x$flag_show_libraries" = xyes; then
    199201  libraries=`$BJAM -d0 --show-libraries`
    200202  cat <<EOF
     
    214216
    215217# Setup paths
    216 if test "x$EPREFIX" == x; then
     218if test "x$EPREFIX" = x; then
    217219  EPREFIX=$PREFIX
    218220fi
    219221
    220 if test "x$LIBDIR" == x; then
     222if test "x$LIBDIR" = x; then
    221223  LIBDIR="$EPREFIX/lib"
    222224fi
    223225
    224 if test "x$INCLUDEDIR" == x; then
     226if test "x$INCLUDEDIR" = x; then
    225227  INCLUDEDIR="$PREFIX/include"
    226228fi
    227229
    228230# Find Python
    229 if test "x$flag_no_python" == x; then
    230     if test "x$PYTHON_VERSION" == x; then
     231if test "x$flag_no_python" = x; then
     232    if test "x$PYTHON_VERSION" = x; then
    231233        echo -n "Detecting Python version... "
    232234        PYTHON_VERSION=`$PYTHON -c "import sys; print (\"%d.%d\" % (sys.version_info[0], sys.version_info[1]))"`
     
    234236    fi
    235237
    236     if test "x$PYTHON_ROOT" == x; then
     238    if test "x$PYTHON_ROOT" = x; then
    237239        echo -n "Detecting Python root... "
    238240        PYTHON_ROOT=`$PYTHON -c "import sys; print sys.prefix"`
     
    245247# Configure ICU
    246248echo -n "Unicode/ICU support for Boost.Regex?... "
    247 if test "x$flag_icu" == xyes; then
    248   if test "x$ICU_ROOT" == x; then
     249if test "x$flag_icu" = xyes; then
     250  if test "x$ICU_ROOT" = x; then
    249251    BJAM_CONFIG="$BJAM_CONFIG -sHAVE_ICU=1"
    250252    echo "yes."
  • trunk/boost/configure

    r34998 r36346  
    7474              LIBS="$LIBS --with-$library"
    7575
    76               if test $library == python; then
     76              if test $library = python; then
    7777                  requested_python=yes
    7878              fi
     
    9494          LIBS="$LIBS --without-$library"
    9595
    96           if test $library == python; then
     96          if test $library = python; then
    9797              flag_no_python=yes
    9898          fi
     
    176176
    177177# Determine the toolset, if not already decided
    178 if test "x$TOOLSET" == x; then
     178if test "x$TOOLSET" = x; then
    179179  TOOLSET=`$my_dir/tools/jam/src/build.sh --guess-toolset`
    180180fi
     
    183183
    184184# Build bjam
    185 if test "x$BJAM" == x; then
     185if test "x$BJAM" = x; then
    186186  echo -n "Building Boost.Jam with toolset $TOOLSET... "
    187187  pwd=`pwd`
     
    196196
    197197# If there is a list of libraries
    198 if test "x$flag_show_libraries" == xyes; then
     198if test "x$flag_show_libraries" = xyes; then
    199199  libraries=`$BJAM -d0 --show-libraries`
    200200  cat <<EOF
     
    214214
    215215# Setup paths
    216 if test "x$EPREFIX" == x; then
     216if test "x$EPREFIX" = x; then
    217217  EPREFIX=$PREFIX
    218218fi
    219219
    220 if test "x$LIBDIR" == x; then
     220if test "x$LIBDIR" = x; then
    221221  LIBDIR="$EPREFIX/lib"
    222222fi
    223223
    224 if test "x$INCLUDEDIR" == x; then
     224if test "x$INCLUDEDIR" = x; then
    225225  INCLUDEDIR="$PREFIX/include"
    226226fi
    227227
    228228# Find Python
    229 if test "x$flag_no_python" == x; then
    230     if test "x$PYTHON_VERSION" == x; then
     229if test "x$flag_no_python" = x; then
     230    if test "x$PYTHON_VERSION" = x; then
    231231        echo -n "Detecting Python version... "
    232232        PYTHON_VERSION=`$PYTHON -c "import sys; print (\"%d.%d\" % (sys.version_info[0], sys.version_info[1]))"`
     
    234234    fi
    235235
    236     if test "x$PYTHON_ROOT" == x; then
     236    if test "x$PYTHON_ROOT" = x; then
    237237        echo -n "Detecting Python root... "
    238238        PYTHON_ROOT=`$PYTHON -c "import sys; print sys.prefix"`
     
    245245# Configure ICU
    246246echo -n "Unicode/ICU support for Boost.Regex?... "
    247 if test "x$flag_icu" == xyes; then
    248   if test "x$ICU_ROOT" == x; then
     247if test "x$flag_icu" = xyes; then
     248  if test "x$ICU_ROOT" = x; then
    249249    BJAM_CONFIG="$BJAM_CONFIG -sHAVE_ICU=1"
    250250    echo "yes."
Note: See TracChangeset for help on using the changeset viewer.