diff options
author | maedhros <maedhros@openttd.org> | 2007-06-20 19:17:22 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-06-20 19:17:22 +0000 |
commit | cf0118ee63603132dc1d08d7f7e800b26e53fc97 (patch) | |
tree | 1a82d9ac3d2c0f66dac9c5f6857c4e49f057b100 /config.lib | |
parent | a982fe2e807f80c8a6478c358b3875535c9346b4 (diff) | |
download | openttd-cf0118ee63603132dc1d08d7f7e800b26e53fc97.tar.xz |
(svn r10236) -Feature: Introduce a form of timetabling for vehicles.
Diffstat (limited to 'config.lib')
-rw-r--r-- | config.lib | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/config.lib b/config.lib index b381f6048..b41306d32 100644 --- a/config.lib +++ b/config.lib @@ -315,13 +315,13 @@ check_params() { exit 1 fi # cpu_type can be either 32 or 64 - if [ -z "`echo $cpu_type | grep '^32$\|^64$\|^DETECT$'`" ]; then + if [ -z "`echo $cpu_type | egrep '^(32|64|DETECT)$'`" ]; then echo "configure: error: invalid option --cpu-type=$cpu_type" echo " Available options are: --cpu-type[=DETECT|32|64]" exit 1 fi # enable_debug should be between 0 and 4 - if [ -z "`echo $enable_debug | grep '^[0123]$'`" ]; then + if [ -z "`echo $enable_debug | egrep '^[0123]$'`" ]; then echo "configure: error: invalid option --enable-debug=$enable_debug" echo " Available options are: --enable-debug[=0123]" exit 1 @@ -1512,11 +1512,11 @@ detect_library() { log 2 "detecting $2" if [ "$1" = "1" ] || [ "$1" = "" ] || [ "$1" = "2" ]; then - eval "$2=`ls -1 /usr/include/*.h 2>/dev/null | grep \"\/$4\$\"`" + eval "$2=`ls -1 /usr/include/*.h 2>/dev/null | egrep \"\/$4\$\"`" eval "res=\$$2" if [ -z "$res" ]; then log 2 " trying /usr/include/$4... no" - eval "$2=`ls -1 /usr/local/include/*.h 2>/dev/null | grep \"\/$4\$\"`" + eval "$2=`ls -1 /usr/local/include/*.h 2>/dev/null | egrep \"\/$4\$\"`" fi eval "res=\$$2" if [ -z "$res" ]; then @@ -1528,16 +1528,16 @@ detect_library() { eval "res=\$$2" log 2 " trying $res... found" # Now find the static lib, if needed - eval "$2=`ls /lib/*.a 2>/dev/null | grep \"\/$3\$\"`" + eval "$2=`ls /lib/*.a 2>/dev/null | egrep \"\/$3\$\"`" eval "res=\$$2" if [ -z "$res" ]; then log 2 " trying /lib/$3... no" - eval "$2=`ls /usr/lib/*.a 2>/dev/null | grep \"\/$3\$\"`" + eval "$2=`ls /usr/lib/*.a 2>/dev/null | egrep \"\/$3\$\"`" fi eval "res=\$$2" if [ -z "$res" ]; then log 2 " trying /usr/lib/$3... no" - eval "$2=`ls /usr/local/lib/*.a 2>/dev/null | grep \"\/$3\$\"`" + eval "$2=`ls /usr/local/lib/*.a 2>/dev/null | egrep \"\/$3\$\"`" fi eval "res=\$$2" if [ -z "$res" ]; then @@ -1913,7 +1913,7 @@ make_sed() { # FOUR_BYTE_BOOL is needed, because C++ uses 4byte for a bool on PPC, where # we use 1 byte per bool normally in C part. So convert that last one to 4 # bytes too, but only for PPC. - ppc=`$cc_host -dumpmachine | grep "powerpc\|ppc"` + ppc=`$cc_host -dumpmachine | egrep "powerpc|ppc"` if [ -n "$ppc" ]; then T_CFLAGS="$CFLAGS -DFOUR_BYTE_BOOL" osx_sysroot_version=10.3.9 |