| 258 | | # on AMD64 systems, 64bit libs are usually located in /usr/lib64 |
|---|
| 259 | | # see http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64 |
|---|
| 260 | | LIB='lib64' |
|---|
| | 258 | if [ "$OS" != "solaris" ]; then |
|---|
| | 259 | # on AMD64 systems, 64bit libs are usually located in /usr/lib64 |
|---|
| | 260 | # see http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64 |
|---|
| | 261 | LIB='lib64' |
|---|
| | 262 | else |
|---|
| | 263 | # Solaris doesn't seem to subscribe to fhs, libs are usually in |
|---|
| | 264 | # a '64' subdirectory of the standard 'lib' dirs while some 64-bit |
|---|
| | 265 | # alternative binaries can be found in 'amd64' subdirs of the 'bin' |
|---|
| | 266 | # ones. So, in order to find the right stuff (esp. sdl-config) we'll |
|---|
| | 267 | # have to make sure the */bin/amd64 dirs are searched before the */bin |
|---|
| | 268 | # ones. (The sed has some sideeffects, but they shouldn't harm us...) |
|---|
| | 269 | echo "64-bit Solaris detected, hacking the PATH" >> $LOG |
|---|
| | 270 | echo "old PATH: $PATH" >> $LOG |
|---|
| | 271 | PATH=`echo ":$PATH:" | sed -e 's,\(:[^:]*/bin\):,\1/amd64:\1:,g' \ |
|---|
| | 272 | -e 's/^:*//' -e 's/:*$//g' -e 's/::*/:/g' ` |
|---|
| | 273 | export PATH |
|---|
| | 274 | echo "new PATH: $PATH" >> $LOG |
|---|
| | 275 | LIB='lib/64' |
|---|
| | 276 | fi |
|---|