What versions of pango and cairo are you using? I'm using pango 1.15.6 and cairo 1.3.12.
./configure --prefix=/usr/local/tuanphan/pango --with-cairo --enable-cairo
Running pango 1.15.6's ./configure --help, I don't see any options --with-cairo or --enable-cairo so I don't think those do anything for you. I think pango uses cairo if it's available, and if not, it doesn't.
Maybe you need to tell it where you installed cairo?
I recently started having this problem too:
checking for CAIRO... yes
checking for cairo_surface_write_to_png in -lcairo... no
checking for cairo_ps_surface_create in -lcairo... no
checking for cairo_pdf_surface_create in -lcairo... no
checking for cairo_xlib_surface_create in -lcairo... no
checking for cairo_win32_scaled_font_select_font in -lcairo... no
checking for cairo_ft_scaled_font_lock_face in -lcairo... no
checking for cairo_atsui_font_face_create_for_atsu_font_id in -lcairo... no
(which is why I searched for the error message on Google and ended up finding this discussion thread). I did not have this problem compiling pango "normally" on Mac OS X, but as soon as I started trying to make a universal binary (containing both Intel and PowerPC code), I got the above errors. I don't know why it's happening. I worked around it by creating a config.cache file in the root of the pango directory with the following contents:
These values are correct for me; you may need to change the answers to apply to your situation. To use this file, you ./configure pango with the --config-cache option.
If anyone knows why pango isn't finding the cairo functions which really are there, or a cleaner way to work around this without needing a config.cache file, please let us know.