It seems that configure mistakenly assumes fdatasync is available when compiling in Mac OS X 10.6. The same problem was reported elsewhere: <http://ekschi.com/technology/2009/09/02/drizzle-in-the-snow-how-to-build-drizzle-on-os-x-106-aka-snow-leopard/>