ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/ac-tools/configure.in
(Generate patch)

Comparing trunk/ac-tools/configure.in (file contents):
Revision 956 by gezelter, Tue May 16 02:06:37 2006 UTC vs.
Revision 1036 by gezelter, Mon Sep 4 13:37:15 2006 UTC

# Line 1 | Line 1 | dnl **** Process this file with autoconf to produce a
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)
# Line 48 | Line 47 | AC_SUBST(debug)
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
# Line 66 | Line 73 | if test "$AR" = "NONE"; then
73   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
74   AC_CHECK_PROG(AR, ar, ar, NONE)
75   if test "$AR" = "NONE"; then
69  AC_MSG_ERROR(--> Can't find \`ar'!)
76    AC_CACHE_SAVE
77    exit 1
78   fi
# Line 138 | Line 144 | ACX_CHECK_ZLIB
144   dnl Checks for libraries.
145   AC_CHECK_LIB(m, asin, , exit)
146   ACX_CHECK_ZLIB
147 < 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
147 > ACX_CHECK_FFTW
148  
149  ACX_CHECK_FFTW(fftw3,$sizeof_real)
149  
151  if test "$with_mpi" = "yes"; then
152    ACX_CHECK_FFTW(fftw3_mpi,$sizeof_real)
153  fi
154
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
167
150   # Checks for header files.
151   AC_HEADER_STDC
152   AC_CHECK_HEADERS([conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h])
# Line 271 | Line 253 | AC_SUBST(USE_MPI)
253   fi
254   AC_SUBST(USE_MPI)
255  
274
256   dnl ########################################
257   dnl # Check for CGAL headers and libraries #
258   dnl ########################################
# Line 471 | Line 452 | AC_SUBST(CGAL_LIBS)
452   AC_SUBST(CGAL_CXXFLAGS)
453   AC_SUBST(CGAL_LIBS)
454  
474
455   BB_ENABLE_DOXYGEN
456  
457   AC_SUBST(EXEEXT)
# Line 488 | Line 468 | AC_SUBST(F90_MODULE_NAMES)
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines