aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 12 insertions, 9 deletions
diff --git a/configure b/configure
index 833ee14413..2bf6f99ba3 100755
--- a/configure
+++ b/configure
@@ -1073,13 +1073,6 @@ psp)
_host_os=psp
_host_cpu=mipsallegrexel
_host_alias=psp
- if test -z "$PSPDEV"; then
- PSPDEV=`psp-config --pspdev-path`
- fi
- if test -d "$PSPDEV/psp/lib"; then
- LDFLAGS="$LDFLAGS -L$PSPDEV/psp/lib"
- fi
- LDFLAGS="$LDFLAGS -L$PSPDEV/psp/sdk/lib -specs=$_srcdir/backends/platform/psp/psp.spec"
;;
samsungtv)
_host_os=linux
@@ -1216,9 +1209,15 @@ ps2)
fi
;;
psp)
- PSPSDK=`psp-config --pspsdk-path`
+ if test -z "$PSPDEV"; then
+ PSPDEV=`psp-config --pspdev-path`
+ fi
+ # TODO: Should we also insist on a valid PSPDEV value?
if test -z "$PSPSDK"; then
- echo "Please set the path to PSPSDK in your environment."
+ PSPSDK=`psp-config --pspsdk-path`
+ fi
+ if test -z "$PSPSDK"; then
+ echo "Please set PSPSDK in your environment. export PSPSDK=<path to psp sdk>"
exit 1
fi
;;
@@ -1660,6 +1659,10 @@ case $_host_os in
DEFINES="$DEFINES -D_EE -D__PLAYSTATION2__"
;;
psp)
+ if test -d "$PSPDEV/psp/lib"; then
+ LDFLAGS="$LDFLAGS -L$PSPDEV/psp/lib"
+ fi
+ LDFLAGS="$LDFLAGS -L$PSPSDK/lib -specs=$_srcdir/backends/platform/psp/psp.spec"
CXXFLAGS="$CXXFLAGS -O3 -I$PSPSDK/include -D_PSP_FW_VERSION=150"
;;
solaris*)