* automake.in (handle_single_transform_list): Pass $nonansi_obj to derive_suffix. Don't use an hardcoded 'o' for object extensions. (derive_suffix): Accept $OBJ as a second argument, don't hardcode 'o'. * tests/suffix5.test: New test. * tests/Makefile.am (TESTS): Add suffix5.test. Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.