+dnl core dumper checking
+core_version="0.2"
+withval=''
+AC_ARG_WITH(coredumper,
+[ --with-coredumper=PATH Base path to where core dumper is installed, such
+ that PATH/lib/libcoredumper.so and
+ PATH/include/google/coredumper.h exist.], )
+if test "x$withval" != "x"; then
+ AC_MSG_RESULT(Using include dir $withval to find coredumper)
+ CPPFLAGS="-I$withval/include -L$withval/lib"
+ LIBS="$LIBS -L$withval/lib"
+else
+ AC_MSG_RESULT([Looking for coredumper in system and home dirs (${HOME})...])
+ CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
+ LIBS="$LIBS -L${HOME}/lib"
+fi
+AC_CHECK_HEADER(google/coredumper.h, , [AC_MSG_RESULT([google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory.])],)
+AC_CHECK_LIB(coredumper, WriteCoreDump, , [AC_MSG_RESULT([Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory.])])
+