From 8352c5146adfd1aaa9e0cf4f440f6ef540f25f55 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 28 Jun 2012 12:30:29 +0000 Subject: [PATCH] build: use $CELL_SDK and fall back to $CELL_SDK if not set. --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 41a7ad32..825b8f9b 100644 --- a/configure.ac +++ b/configure.ac @@ -99,12 +99,16 @@ AC_CHECK_LIB(sysmodule_stub, cellSysmoduleLoadModule, dnl For PSGL AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available) # FIXME: hack GL_LIBS="${GL_LIBS} -lPSGL -lgcm_cmd -lgcm_sys_stub" + dnl This is the old way + if test "x${CELLSDK}" != x -a "x${CELLSDK}" = x; then + CELL_SDK="${CELLSDK}" + fi if test "x${enable_debug}" = xyes; then - GL_LIBS="${GL_LIBS} -L${CELLSDK}/target/ppu/lib/PSGL/RSX/debug" + GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/debug" elif test "x${enable_release}" = xyes; then - GL_LIBS="${GL_LIBS} -L${CELLSDK}/target/ppu/lib/PSGL/RSX/ultra-opt" + GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/ultra-opt" else - GL_LIBS="${GL_LIBS} -L${CELLSDK}/target/ppu/lib/PSGL/RSX/opt" + GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/opt" fi dnl For the runtime Cg compiler GL_LIBS="${GL_LIBS} -lcgc -lPSGLcgc"