2004-01-07 10:42:12 +03:00
|
|
|
dnl -*- shell-script -*-
|
|
|
|
dnl
|
|
|
|
dnl $HEADER$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_DEFUN(LAM_CONFIGURE_OPTIONS,[
|
|
|
|
lam_show_subtitle "Configuration options"
|
|
|
|
|
|
|
|
#
|
|
|
|
# Purify clean
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to enable memory zeroing])
|
|
|
|
AC_ARG_ENABLE(memzero,
|
|
|
|
AC_HELP_STRING([--enable-memzero],
|
|
|
|
[enable memory zeroing (debugging only)]))
|
|
|
|
if test "$enable_memzero" = "yes"; then
|
|
|
|
AC_MSG_RESULT([yes])
|
2004-01-07 11:31:32 +03:00
|
|
|
WANT_MEMZERO=1
|
2004-01-07 10:42:12 +03:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
2004-01-07 11:31:32 +03:00
|
|
|
WANT_MEMZERO=0
|
2004-01-07 10:42:12 +03:00
|
|
|
fi
|
2004-01-07 11:31:32 +03:00
|
|
|
AC_DEFINE_UNQUOTED(LAM_ENABLE_MEMZERO, $WANT_MEMZERO,
|
2004-01-07 10:42:12 +03:00
|
|
|
[Whether we want the LAM_MEMZERO macro to memset or not])
|
|
|
|
|
|
|
|
#
|
|
|
|
# Developer debugging
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([if want developer-level debugging code])
|
|
|
|
AC_ARG_ENABLE(purify,
|
|
|
|
AC_HELP_STRING([--enable-debug],
|
|
|
|
[enable developer-level debugging code (not for general MPI users!)]))
|
|
|
|
if test "$enable_debug" = "yes"; then
|
|
|
|
AC_MSG_RESULT([yes])
|
2004-01-07 11:31:32 +03:00
|
|
|
WANT_DEBUG=1
|
2004-01-07 10:42:12 +03:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
2004-01-07 11:31:32 +03:00
|
|
|
WANT_DEBUG=0
|
2004-01-07 10:42:12 +03:00
|
|
|
fi
|
2004-01-07 11:31:32 +03:00
|
|
|
AC_DEFINE_UNQUOTED(LAM_ENABLE_DEBUG, $WANT_DEBUG,
|
2004-01-07 10:42:12 +03:00
|
|
|
[Whether we want developer-level debugging code or not])
|
|
|
|
|
|
|
|
# --enable-dist
|
|
|
|
# --disable-profile
|
|
|
|
# --disable-f77
|
|
|
|
# ...?
|
|
|
|
|
|
|
|
# amorphous, seem-to-be-good-idea options
|
|
|
|
# --with-lam=maintainer_options
|
|
|
|
# --with-mca-*
|
|
|
|
# ...?
|
|
|
|
])
|