# $Id$ # LNFgsl and SunStudio (sunperf libs) installed if [ -z "$PKG_INSTALL_ROOT" -o "$PKG_INSTALL_ROOT" = "/" ]; then PARAM="" else PARAM="-R $PKG_INSTALL_ROOT" fi FOUND="" pkginfo -q $PARAM SPROpls if [ $? -eq 0 ]; then DIR=`pkgparam $PARAM SPROpls BASEDIR` NAMES="sunstudio sunstudio12 sunstudio12.1" for SD in $NAMES ; do if [ -d "${PKG_INSTALL_ROOT}/$DIR/$SD" -o -h "${PKG_INSTALL_ROOT}/$DIR/$SD" ]; then DIR="${DIR}/$SD" FOUND="$SD" break fi done if [ -n "$FOUND" ]; then echo "SUNWSPRO_DIR=$DIR" >>$1 fi fi if [ -z "$FOUND" ]; then echo "Unable to find the Sun Studio 12 install directory. So you need to setup your LD_LIBRARY_PATH or LD_LIBRARY_PATH_32 so, that ghc and ghci are able to find the sun performance libraries (libsunperf.so.N)." fi pkginfo -q $PARAM LNFgsl if [ $? -eq 0 ]; then DIR=`pkgparam $PARAM LNFgsl BASEDIR` echo "LNFGSL_DIR=$DIR" >>$1 else echo "Assuming the GNU scientific libraries are installed at a wellknown places, since not found. You probably need to adjust your LD_LIBRARY_PATH or LD_LIBRARY_PATH_32 when working with this module." fi