comparison configure.in @ 288:fa7fc1ac6385

add gprof profiling option; allow fork for parallel processing of individual email folders in separate mode
author Carl Byington <carl@five-ten-sg.com>
date Fri, 27 May 2011 09:50:24 -0700
parents 6a9f92d4e449
children 5b3e7661adad
comparison
equal deleted inserted replaced
287:0f0ccd29b0d7 288:fa7fc1ac6385
266 AC_HELP_STRING([--enable-static-tools], [link command line tools with libpst statically]), 266 AC_HELP_STRING([--enable-static-tools], [link command line tools with libpst statically]),
267 [ 267 [
268 case "${enableval}" in 268 case "${enableval}" in
269 yes) ;; 269 yes) ;;
270 no) ;; 270 no) ;;
271 *) AC_MSG_ERROR(bad value ${enableval} for --static-tools) ;; 271 *) AC_MSG_ERROR(bad value ${enableval} for --enable-static-tools) ;;
272 esac 272 esac
273 ], 273 ],
274 [ 274 [
275 enable_static_tools=no 275 enable_static_tools=no
276 ]) 276 ])
322 fi 322 fi
323 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) 323 AC_SUBST(PYTHON_VERSION, [$ax_python_bin])
324 fi 324 fi
325 325
326 326
327 # The following lines adds the --enable-profiling option to configure:
328 #
329 # Give the user the choice to enter one of these:
330 # --enable-profiling
331 # --enable-profiling=yes
332 # --enable-profiling=no
333 #
334 AC_MSG_CHECKING([whether to link with gprof profiling])
335 AC_ARG_ENABLE([profiling],
336 AC_HELP_STRING([--enable-profiling], [link with gprof profiling]),
337 [
338 case "${enableval}" in
339 yes)
340 CFLAGS="$CFLAGS -pg"
341 CPPFLAGS="$CPPFLAGS -pg"
342 CXXFLAGS="$CXXFLAGS -pg"
343 ;;
344 no)
345 ;;
346 *) AC_MSG_ERROR(bad value ${enableval} for --profiling) ;;
347 esac
348 ],
349 [
350 enable_profiling=no
351 ])
352 AC_MSG_RESULT([$enable_profiling])
353 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"])
354
327 355
328 AC_OUTPUT( \ 356 AC_OUTPUT( \
329 Makefile \ 357 Makefile \
330 debian/Makefile \ 358 debian/Makefile \
331 html/Makefile \ 359 html/Makefile \