X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=configure.ac;h=930c62a2d65976362581aa3af73d07993f62c2cc;hp=31367951c808e72ae939e2207a2785dcd5e28aa6;hb=4ff226fc6afb090a5211f3c0c12650207609ba90;hpb=d429cfc774638da98338dfae3e23c7964a446a1a diff --git a/configure.ac b/configure.ac index 3136795..930c62a 100644 --- a/configure.ac +++ b/configure.ac @@ -207,9 +207,7 @@ AC_MSG_CHECKING(sstream) CFLAGS="$CFLAGS -Wall" AC_MSG_CHECKING(whether to enable verbose warnings) -AC_ARG_ENABLE(verbose-warnings, -[ --enable-verbose-warnings - Enable verbose compiler warnings.], +AC_ARG_ENABLE(verbose-warnings,AS_HELP_STRING([--enable-verbose-warnings],[Enable verbose compiler warnings.]), [ case "$enableval" in yes) AC_MSG_RESULT(yes) @@ -222,9 +220,7 @@ AC_ARG_ENABLE(verbose-warnings, ) AC_MSG_CHECKING(static executables) -AC_ARG_ENABLE(static, -[ --enable-static - Enable static executables.], +AC_ARG_ENABLE(static,AS_HELP_STRING([--enable-static],[Enable static executables]), [ case "$enableval" in yes) AC_MSG_RESULT(yes) @@ -237,26 +233,15 @@ AC_ARG_ENABLE(static, ) dnl Checking if use OpenMP -AC_MSG_CHECKING(OpenMP) -AC_ARG_ENABLE(openmp, -[ --enable-openmp - Enable use of OpenMP.], -[ case "$enableval" in - yes) - AC_MSG_RESULT(yes) +AC_ARG_ENABLE([openmp], AS_HELP_STRING([--disable-openmp],[Disable use of OpenMP])) +AS_IF([test "x$enable_openmp" != "xno"], [ AX_OPENMP CFLAGS="$CFLAGS $OPENMP_CFLAGS" CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" - ;; - *) - AC_MSG_RESULT(no) - ;; - esac ], AC_MSG_RESULT(no) -) +]) dnl Set LAM path -AC_ARG_WITH(lam, -[ --with-lam[=PATH] Set path of LAM MPI ], +AC_ARG_WITH(lam,AS_HELP_STRING([--with-lam[=PATH]],[Set path of LAM MPI ]), [ if test "$withval" != "no" ; then trylamdir=$withval fi ] @@ -476,7 +461,7 @@ dnl Check for efence AC_CHECK_LIB(efence, main, [efence=true], [efence=false]) AC_MSG_CHECKING([for enable-efence]) AC_ARG_ENABLE(efence, -[ --enable-efence Use ElectricFence memory allocation], +[--enable-efence],[Use ElectricFence memory allocation], [case "${enableval}" in yes) useefence=true AC_MSG_RESULT(yes)