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

Comparing branches/development/ac-tools/configure.in (file contents):
Revision 1603 by gezelter, Thu Aug 4 21:02:06 2011 UTC vs.
Revision 1631 by gezelter, Wed Sep 14 21:43:22 2011 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 < AC_PREREQ(2.59)
3 < AC_INIT(OpenMD, 1.0, gezelter@nd.edu, openmd)
2 > AC_PREREQ(2.68)
3 > AC_INIT(OpenMD, 2.0, gezelter@nd.edu)
4   AC_CONFIG_AUX_DIR(ac-tools)
5   AC_CONFIG_SRCDIR([src/applications/openmd/openmd.cpp])
6   AC_CONFIG_HEADER([src/config.h])
# Line 105 | Line 105 | fi
105    AC_CACHE_SAVE
106    exit 1
107   fi
108 AC_PATH_PROG(PS, ps)
109 AC_CACHE_CHECK([for POSIX or BSD ps syntax], ac_cv_prog_ps_syntax, [
110        if $PS ax -o rss > /dev/null 2>&1; then
111                ac_cv_prog_ps_ax=yes
112        else
113                ac_cv_prog_ps_ax=no
114        fi
115        if $PS -ef -o rss > /dev/null 2>&1; then
116                ac_cv_prog_ps_ef=yes
117        else
118                ac_cv_prog_ps_ef=no
119        fi
120        if test "$ac_cv_prog_ps_ax" = yes; then
121                ac_cv_prog_ps_syntax=BSD
122        else
123                if test "$ac_cv_prog_ps_ef" = yes; then
124                        ac_cv_prog_ps_syntax=POSIX
125                else
126                        AC_MSG_ERROR(Could not determine ps syntax)
127                fi
128        fi
129 ])
130 AC_DEFINE_UNQUOTED(PSCOMMAND, $PS, [Path to ps program])
131 if test "$ac_cv_prog_ps_syntax" = BSD; then
132  AC_DEFINE(PSTYPE_IS_BSD, 1, [ps uses BSD-style arguments])
133 else
134   if test "$ac_cv_prog_ps_syntax" = POSIX; then
135       AC_DEFINE(PSTYPE_IS_POSIX, 1, [ps uses POSIX-style arguments])
136   else
137       AC_MSG_ERROR(Unknown ps syntax type!)
138   fi
139 fi
108  
141 AC_LANG_C
142
109   dnl Checks for libraries.
144 AC_CHECK_LIB(m, asin, , exit)
110   ACX_CHECK_ZLIB
111   ACX_CHECK_FFTW
112   ACX_CHECK_QHULL
113   ACX_CHECK_OPENBABEL
114  
115   # Checks for header files.
116 < AC_HEADER_STDC
152 < AC_CHECK_HEADERS([libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h])
116 > AC_CHECK_HEADERS([limits.h stdlib.h string.h sys/ioctl.h unistd.h])
117  
118   # Checks for typedefs, structures, and compiler characteristics.
119   AC_HEADER_STDBOOL
156 AC_C_CONST
120   AC_C_INLINE
121   AC_TYPE_SIZE_T
159 AC_HEADER_TIME
122  
123   # Checks for library functions.
124   AC_FUNC_MALLOC
125   AC_FUNC_REALLOC
164 AC_FUNC_SELECT_ARGTYPES
126   AC_FUNC_STRTOD
127 < AC_CHECK_FUNCS([floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table])
127 > AC_CHECK_FUNCS([atexit floor pow select sqrt strcasecmp strchr strdup strncasecmp strstr strtol strtoull])
128  
168 # special check for _system_configuration because AIX <4.3.2 do not
169 # contain the `physmem' member.
170 AC_MSG_CHECKING([for external symbol _system_configuration])
171 AC_TRY_COMPILE([#include <sys/systemcfg.h>],
172               [double x = _system_configuration.physmem;],
173  [AC_MSG_RESULT([yes])
174  AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1,
175            [Define if you have the _system_configuration variable.])],
176  [AC_MSG_RESULT([no])])
177
129   dnl check for strong optimization options
130  
131   case $debug in

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines