diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2006-12-12 15:54:24 +0000 |
---|---|---|
committer | Douglas Gregor <doug.gregor@gmail.com> | 2006-12-12 15:54:24 +0000 |
commit | f4a7e7b8cb409a924d2da0ca989b4c0757d675d7 (patch) | |
tree | d60bfcc326c622d87c193b48eab34f5a66177e51 /configure | |
parent | f373e5ce9e144b30a005cf3a9763704cb7d44894 (diff) | |
download | boost-f4a7e7b8cb409a924d2da0ca989b4c0757d675d7.tar.gz |
Make POSIX compliant
[SVN r36346]
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -1,5 +1,7 @@ #!/bin/sh -# Copyright 2005 Douglas Gregor. +# Copyright (C) 2005, 2006 Douglas Gregor. +# Copyright (C) 2006 The Trustees of Indiana University +# # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) @@ -73,7 +75,7 @@ do do LIBS="$LIBS --with-$library" - if test $library == python; then + if test $library = python; then requested_python=yes fi done @@ -93,7 +95,7 @@ do do LIBS="$LIBS --without-$library" - if test $library == python; then + if test $library = python; then flag_no_python=yes fi done @@ -175,14 +177,14 @@ test -n "$want_help" && exit 0 my_dir="." # Determine the toolset, if not already decided -if test "x$TOOLSET" == x; then +if test "x$TOOLSET" = x; then TOOLSET=`$my_dir/tools/jam/src/build.sh --guess-toolset` fi rm -f config.log # Build bjam -if test "x$BJAM" == x; then +if test "x$BJAM" = x; then echo -n "Building Boost.Jam with toolset $TOOLSET... " pwd=`pwd` cd "$my_dir/tools/jam/src" && ./build.sh "$TOOLSET" > config.log 2>&1 @@ -195,7 +197,7 @@ fi # TBD: Turn BJAM into an absolute path # If there is a list of libraries -if test "x$flag_show_libraries" == xyes; then +if test "x$flag_show_libraries" = xyes; then libraries=`$BJAM -d0 --show-libraries` cat <<EOF @@ -213,27 +215,27 @@ EOF fi # Setup paths -if test "x$EPREFIX" == x; then +if test "x$EPREFIX" = x; then EPREFIX=$PREFIX fi -if test "x$LIBDIR" == x; then +if test "x$LIBDIR" = x; then LIBDIR="$EPREFIX/lib" fi -if test "x$INCLUDEDIR" == x; then +if test "x$INCLUDEDIR" = x; then INCLUDEDIR="$PREFIX/include" fi # Find Python -if test "x$flag_no_python" == x; then - if test "x$PYTHON_VERSION" == x; then +if test "x$flag_no_python" = x; then + if test "x$PYTHON_VERSION" = x; then echo -n "Detecting Python version... " PYTHON_VERSION=`$PYTHON -c "import sys; print (\"%d.%d\" % (sys.version_info[0], sys.version_info[1]))"` echo $PYTHON_VERSION fi - if test "x$PYTHON_ROOT" == x; then + if test "x$PYTHON_ROOT" = x; then echo -n "Detecting Python root... " PYTHON_ROOT=`$PYTHON -c "import sys; print sys.prefix"` echo $PYTHON_ROOT @@ -244,8 +246,8 @@ fi # Configure ICU echo -n "Unicode/ICU support for Boost.Regex?... " -if test "x$flag_icu" == xyes; then - if test "x$ICU_ROOT" == x; then +if test "x$flag_icu" = xyes; then + if test "x$ICU_ROOT" = x; then BJAM_CONFIG="$BJAM_CONFIG -sHAVE_ICU=1" echo "yes." else |