[Olena-patches] last-svn-commit-1015-g4b5e69d configure.ac: Handle both GraphicsMagick and ImageMagick.