The present invention relates to compounds of formula (I) ##STR00001##
wherein R.sup.1, R.sup.2, R.sup.3, R.sup.4, R.sup.5, R.sup.6, m and X are
as defined in the description and claims, and pharmaceutically acceptable
salts thereof. The compounds are useful for the treatment and/or
prophylaxis of diseases which are associated with the modulation of CB1
receptors.