| 1 |
|
dnl **** Process this file with autoconf to produce a configure script. |
| 2 |
– |
|
| 2 |
|
AC_PREREQ(2.59) |
| 3 |
|
AC_INIT(OOPSE, 3.0, gezelter@nd.edu, oopse) |
| 4 |
|
AC_CONFIG_AUX_DIR(ac-tools) |
| 5 |
|
AC_CONFIG_SRCDIR([src/applications/oopse/oopse.cpp]) |
| 6 |
|
AC_CONFIG_HEADER([src/config.h]) |
| 7 |
|
|
| 8 |
< |
builtin(include, ac-tools/aclocal.m4) |
| 8 |
> |
builtin(include, ac-tools/OOPSE.m4) |
| 9 |
|
builtin(include, ac-tools/AC_CXX_HAVE_STL.m4) |
| 10 |
|
builtin(include, ac-tools/AC_CXX_NAMESPACES.m4) |
| 11 |
|
builtin(include, ac-tools/AC_CXX_STD.m4) |
| 65 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
| 66 |
|
AC_CHECK_PROG(AR, ar, ar, NONE) |
| 67 |
|
if test "$AR" = "NONE"; then |
| 69 |
– |
AC_MSG_ERROR(--> Can't find \`ar'!) |
| 68 |
|
AC_CACHE_SAVE |
| 69 |
|
exit 1 |
| 70 |
|
fi |
| 136 |
|
dnl Checks for libraries. |
| 137 |
|
AC_CHECK_LIB(m, asin, , exit) |
| 138 |
|
ACX_CHECK_ZLIB |
| 139 |
< |
AC_ARG_WITH(fftw, |
| 142 |
< |
[ --without-fftw if you turn this off you cannot compute undulation spectra],, with_fftw=yes) |
| 143 |
< |
if test "$with_fftw" = "no"; then |
| 144 |
< |
AC_DEFINE(WITHOUT_FFTW,,[Disable all FFTW (and thus undulation spectrum) support]) |
| 145 |
< |
fi |
| 146 |
< |
if test "$with_fftw" = "yes"; then |
| 147 |
< |
sizeof_real=8 |
| 148 |
< |
|
| 149 |
< |
ACX_CHECK_FFTW(fftw3,$sizeof_real) |
| 150 |
< |
|
| 151 |
< |
if test "$with_mpi" = "yes"; then |
| 152 |
< |
ACX_CHECK_FFTW(fftw3_mpi,$sizeof_real) |
| 153 |
< |
fi |
| 139 |
> |
ACX_CHECK_FFTW |
| 140 |
|
|
| 155 |
– |
case ${ac_fftw_savedprefix} in |
| 156 |
– |
d) AC_DEFINE(FFTW_NAME_DFFTW,,[Use the d prefix on fftw includes]) ;; |
| 157 |
– |
*) AC_DEFINE(FFTW_NAME_FFTW,,[Dont use any prefix on fftw includes]) ;; |
| 158 |
– |
esac |
| 159 |
– |
else |
| 160 |
– |
echo "*******************************************************************" |
| 161 |
– |
echo "* FFTW libraries and include files are required for computing *" |
| 162 |
– |
echo "* undulation spectra with the staticProps program. If you don't *" |
| 163 |
– |
echo "* fftw turned on, OOPSE will still work, but you won't be able to *" |
| 164 |
– |
echo "* analyze your trajectories for this property. *" |
| 165 |
– |
echo "*******************************************************************" |
| 166 |
– |
fi # end of fftw check |
| 141 |
|
|
| 142 |
|
# Checks for header files. |
| 143 |
|
AC_HEADER_STDC |
| 245 |
|
fi |
| 246 |
|
AC_SUBST(USE_MPI) |
| 247 |
|
|
| 274 |
– |
|
| 248 |
|
dnl ######################################## |
| 249 |
|
dnl # Check for CGAL headers and libraries # |
| 250 |
|
dnl ######################################## |
| 444 |
|
AC_SUBST(CGAL_CXXFLAGS) |
| 445 |
|
AC_SUBST(CGAL_LIBS) |
| 446 |
|
|
| 474 |
– |
|
| 447 |
|
BB_ENABLE_DOXYGEN |
| 448 |
|
|
| 449 |
|
AC_SUBST(EXEEXT) |