#!/bin/sh
#
# getMotifX11SupportLibs - return the args for linking in the libraries
# needed to support Motif(Mrm/Xm) and Xt/X11.
#


# Test to see what kind of motif we got and return support libs accordingly

LESSTIF_RELEASE=`getLessTifRelease`
MOTIF_RELEASE=`getMotifRelease`

LIB_PATH=`getMotifLibPath`


if [ "$LESSTIF_RELEASE" -gt "0" ]
then
    if [ "$LESSTIF_RELEASE" -gt "92" ]
    then
	echo "-lnsl -lm -lXext -lXp"
    else
	echo "-lnsl -lm"
    fi
else
    if [ "$MOTIF_RELEASE" -gt 1000 ]
    then
        # After 1.2, the Session management libs are required 

	# This may not be 100% accurate, it's known to work for
        # Red Hat Motif 2.1

	echo "-lSM -lICE -lm -lXext -lXp"
    else

	echo "-lm -lXext -lXp"
    fi


fi
