libdrizzle.m4 592 B

123456789101112131415
  1. # serial 1
  2. AC_DEFUN([_WITH_LIBDRIZZLE],
  3. [AC_ARG_ENABLE([libdrizzle],
  4. [AS_HELP_STRING([--disable-libdrizzle],
  5. [Build with libdrizzle support @<:@default=on@:>@])],
  6. [ac_enable_libdrizzle="$enableval"],
  7. [ac_enable_libdrizzle="yes"])
  8. AS_IF([test "x$ac_enable_libdrizzle" = "xyes"],
  9. [AX_CHECK_LIBRARY([LIBDRIZZLE],[libdrizzle-5.1/drizzle_client.h],[drizzle],,
  10. [AC_DEFINE([HAVE_LIBDRIZZLE],[0],[Have libdrizzle])])],
  11. [AC_DEFINE([HAVE_LIBDRIZZLE],[0],[Have libdrizzle])])
  12. ])
  13. AC_DEFUN([WITH_LIBDRIZZLE], [ AC_REQUIRE([_WITH_LIBDRIZZLE]) ])