/config/ac_fanout.m4

https://code.google.com/ · m4 · 33 lines · 15 code · 1 blank · 17 comment · 0 complexity · f09a8ec29aa1668be89148cfdc3288c4 MD5 · raw file

  1. ##*****************************************************************************
  2. ## $Id$
  3. ##*****************************************************************************
  4. # AUTHOR:
  5. # Jim Garlick <garlick@llnl.gov>
  6. #
  7. # SYNOPSIS:
  8. # AC_FANOUT
  9. #
  10. # DESCRIPTION:
  11. # Adds support for the "--with-fanout=" configure script option to
  12. # specify the default pdsh fanout.
  13. #
  14. #
  15. # WARNINGS:
  16. # This macro must be placed after AC_PROG_CC or equivalent.
  17. ##*****************************************************************************
  18. AC_DEFUN([AC_FANOUT],
  19. [
  20. AC_MSG_CHECKING([for default fanout])
  21. AC_ARG_WITH([fanout],
  22. AC_HELP_STRING([--with-fanout=N], [Specify default fanout]),
  23. [ case "$withval" in
  24. no) FANOUT=1 ;;
  25. *) FANOUT=$withval ;;
  26. esac
  27. ]
  28. )
  29. AC_MSG_RESULT([${FANOUT=32}])
  30. AC_DEFINE_UNQUOTED(DFLT_FANOUT, $FANOUT, [Define to default pdsh fanout.])
  31. AC_SUBST(FANOUT)
  32. ])