インストールされているものは次のとおりです。
$ sudo apt-get install postgresql-server-dev-8.4 libpq5 libpq-dev
ここに私の config.out の過去があります: http://pastebin.com/8Nk6pr96
そして、ここに IRC から得たいくつかのヒントがあります (名前は隠しています)。
< foo> it's NOT failing to find libpq.
< foo> libpq is present, but not compilable without adding a boatload of other -l flags
< foo> and postgis' configure doesn't let you specify that via LIBS
< foo> his paste contains the config.out, which shows this
設定はこれで死ぬ、configure: error: could not find libpq
mapfish 用に postgis をインストールするつもりです :)