Changeset 433 for pjproject/trunk/configure
- Timestamp:
- May 10, 2006 7:24:40 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/configure
r431 r433 2 2 3 3 # 4 # Detect machine 4 # Detect machine, unless the choice has been made already. 5 5 # 6 MACHINE=`uname -p` 7 if echo $MACHINE | grep unknown > /dev/null; then 8 MACHINE=`uname -m` 9 fi; 6 if [ "$MACHINE" = "" ]; then 7 MACHINE=`uname -m` 8 fi 10 9 11 if echo $MACHINE | grep s parc> /dev/null; then10 if echo $MACHINE | grep sun4u > /dev/null; then 12 11 MACHINE_NAME=sparc 13 12 elif echo $MACHINE | grep i.86 > /dev/null; then … … 18 17 MACHINE_NAME=powerpc 19 18 else 20 echo "Unable to detect processor type ('uname - p' == '$MACHINE')"19 echo "Unable to detect processor type ('uname -m' == '$MACHINE')" 21 20 exit 1 22 21 fi 23 22 24 23 # 25 # Detect OS and host 24 # Detect OS and host, unless the choice has been made already 26 25 # 27 SYSTEM=`uname -s` 26 if [ "$SYSTEM" = "" ]; then 27 SYSTEM=`uname -s` 28 fi 29 28 30 29 31 if echo $SYSTEM | grep -i sunos > /dev/null; then … … 54 56 OS_NAME=darwinos 55 57 HOST_NAME=unix 58 elif echo $SYSTEM | grep -i rtems > /dev/null; then 59 OS_NAME=rtems 60 HOST_NAME=unix 56 61 else 57 62 echo "Unable to detect system type ('uname -s' == '$SYSTEM')" … … 60 65 61 66 # 62 # Detect gcc 67 # Detect gcc, unless it has been chosen already 63 68 # 64 if gcc --version 2>&1 > /dev/null; then 65 CC_NAME=gcc 66 else 67 echo "Unable to find gcc" 68 exit 1 69 fi 69 if [ "$CC_NAME" = "" ]; then 70 if gcc --version 2>&1 > /dev/null; then 71 CC_NAME=gcc 72 else 73 echo "Unable to find gcc" 74 exit 1 75 fi 76 fi 77 70 78 71 79 # 72 # TARGET80 # Specify TARGET_NAME, if not already choosen. 73 81 # 74 TARGET_NAME=$MACHINE_NAME-$OS_NAME-$CC_NAME 82 if [ "$TARGET_NAME" = "" ]; then 83 TARGET_NAME=$MACHINE_NAME-$OS_NAME-$CC_NAME 84 fi 75 85 76 86 … … 86 96 echo " CC_NAME = $CC_NAME" 87 97 echo " TARGET_NAME = $TARGET_NAME" 98 echo " CROSS_COMPILE= $CROSS_COMPILE" 88 99 echo " LINUX_POLL = $LINUX_POLL" 89 100 … … 94 105 echo "export CC_NAME := $CC_NAME" >> build.mak 95 106 echo "export TARGET_NAME := $TARGET_NAME" >> build.mak 107 echo "export CROSS_COMPILE := $CROSS_COMPILE" >> build.mak 96 108 echo "export LINUX_POLL := $LINUX_POLL" >> build.mak 97 109
Note: See TracChangeset
for help on using the changeset viewer.