Przeglądaj źródła

Make POSIX compliant

[SVN r36346]
Douglas Gregor 19 lat temu
rodzic
commit
f4a7e7b8cb
1 zmienionych plików z 16 dodań i 14 usunięć
  1. 16 14
      configure

+ 16 - 14
configure

@@ -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

粤ICP备19079148号