From 2afbbde4cb6aab900cdf41a27da126ccbc361e52 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 12 Nov 2009 16:57:58 -0500 Subject: Implement profile-guided optimization builds. --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e81c598..2ce2001 100644 --- a/configure.ac +++ b/configure.ac @@ -28,10 +28,18 @@ AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_LIBTOOL +dnl Profile-guided optimization (default disabled) +AC_ARG_ENABLE([pgo], + [AS_HELP_STRING([--enable-pgo], + [Enable profile-guided optimization])], + [], + [enable_pgo=no]) +AM_CONDITIONAL([PGO], [test "$enable_pgo" != "no"]) + dnl Timing library for benchmarks AC_CHECK_LIB([sandglass], [sandglass_create], [], - [AC_MSG_WARN([libsandglass not found - benchmarking suite will not work correctly])]) + [AC_MSG_WARN([libsandglass not found - benchmarking suite will not work])]) dnl Generate Makefiles AC_CONFIG_MACRO_DIR([m4]) -- cgit v1.2.3