46 |
|
msg="$msg, debug mode" |
47 |
|
fi |
48 |
|
AC_SUBST(debug) |
49 |
+ |
|
50 |
+ |
AC_ARG_ENABLE(single, [AC_HELP_STRING([--enable-single],[compile OOPSE in single precision])], ok=$enableval, ok=no) |
51 |
+ |
AC_ARG_ENABLE(float, [AC_HELP_STRING([--enable-float],[synonym for --enable-single])], ok=$enableval) |
52 |
+ |
if test "$ok" = "yes"; then |
53 |
+ |
AC_DEFINE(SINGLE_PRECISION,1,[Define to compile in single precision.]) |
54 |
+ |
USE_SINGLE_PRECISION=yes |
55 |
+ |
AC_SUBST(USE_SINGLE_PRECISION) |
56 |
+ |
fi |
57 |
|
|
58 |
|
# Checks for programs. |
59 |
< |
AC_PROG_CXX([icpc icc pgCC pathCC c++ xlc++ xlC g++ CC]) |
60 |
< |
AC_PROG_CC([icc pgcc pathcc cc xlc gcc]) |
61 |
< |
AC_PROG_FC([ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort], 95) |
59 |
> |
AC_PROG_CXX([mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC]) |
60 |
> |
AC_PROG_CC([mpicc icc pathcc pgcc cc xlc gcc]) |
61 |
> |
AC_PROG_FC([mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort], 95) |
62 |
|
AC_PROG_CPP |
63 |
|
AC_PROG_EGREP |
64 |
|
AC_PROG_LN_S |
468 |
|
AC_SUBST(LDFLAGS) |
469 |
|
AC_SUBST(PREPDEFFLAG) |
470 |
|
AC_SUBST(F90_MODULE_NAMES) |
471 |
< |
AC_CONFIG_FILES([make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp], [chmod 0755 scripts/*]) |
471 |
> |
AC_CONFIG_FILES([make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile src/applications/utilities/affineScale src/applications/utilities/waterBoxer scripts/filepp], [chmod 0755 scripts/*]) |
472 |
|
|
473 |
|
AC_OUTPUT |