Compounds are provided which are useful as antidiabetic agents and
antiobesity agents and have the structure ##STR00001## wherein m is 0, 1
or 2; n is 0, 1 or 2; Q is C or N; A is (CH.sub.2).sub.x where x is 1
to 5, or A is (CH.sub.2).sub.x.sup.1 where x.sup.1 is 1 to 5 with an
alkenyl bond or an alkynyl bond embedded anywhere in the chain, or A is
--(CH.sub.2).sub.x.sup.2--O--(CH.sub.2).sub.x.sup.3-- where x.sup.2 is 0
to 5 and x.sup.3 is 0 to 5, provided that at least one of x.sup.2 and
x.sup.3 is other than 0; B is a bond or is (CH.sub.2).sub.x.sup.4 where
x.sup.4 is 1 to 5; X is CH; X.sub.2 is N; X.sub.3 is C; X.sub.4 is N;
X.sub.5 is C; X.sub.6 is C.