Changeset 4870

Show
Ignore:
Timestamp:
06/30/09 15:27:38 (5 months ago)
Author:
kumudb
Message:

Merge from trunk to kumudb r4748:r4869

Location:
mpich2/branches/dev/kumudb
Files:
35 removed
175 modified
41 copied

Legend:

Unmodified
Added
Removed
  • mpich2/branches/dev/kumudb/CHANGES

    r4647 r4870  
     1=============================================================================== 
     2                               Changes in 1.1.1 
     3=============================================================================== 
     4 
     5 # OVERALL: Improved support for Boost MPI. 
     6 
     7 # PM/PMI: Improved startup time with MPD. 
     8 
     9 # PM/PMI: Improved support for hybrid MPI-UPC program launching with 
     10   Hydra. 
     11 
     12 # PM/PMI: Improved support for process-core binding with Hydra. 
     13 
     14 # PM/PMI: Preliminary support for PMI-2. Currently supported only 
     15   with Hydra. 
     16 
     17 # Many other bug fixes, memory leak fixes and code cleanup. A full 
     18   list of changes is available using: 
     19 
     20  svn log -r4655:HEAD https://svn.mcs.anl.gov/repos/mpi/mpich2/tags/release/mpich2-1.1.1 
     21 
     22  ... or at the following link: 
     23 
     24  https://trac.mcs.anl.gov/projects/mpich2/log/mpich2/tags/release/mpich2-1.1.1?action=follow_copy&rev=HEAD&stop_rev=4655&mode=follow_copy 
     25 
     26 
    127=============================================================================== 
    228                               Changes in 1.1 
  • mpich2/branches/dev/kumudb/README.vin

    r4669 r4870  
    381381=================== 
    382382 
    383 MPICH2 can be configured with two sets of compiler flags: CFLAGS, 
    384 CXXFLAGS, FFLAGS, F90FLAGS (abbreviated as xFLAGS) and 
    385 MPICH2LIB_CFLAGS, MPICH2LIB_CXXFLAGS, MPICH2LIB_FFLAGS, 
    386 MPICH2LIB_F90FLAGS (abbreviated as MPICH2LIB_xFLAGS) for compilation; 
    387 LDFLAGS and MPICH2LIB_LDFLAGS for linking. All these flags can be set 
    388 as part of configure command or through environment variables. 
    389 (CPPFLAGS stands for C preprocessor flags, which should NOT be set) 
    390  
    391 Both xFLAGS and MPICH2LIB_xFLAGS affect the compilation of the MPICH2 
    392 libraries. However, only xFLAGS are appended to MPI wrapper scripts, 
    393 mpicc and friends. 
    394  
    395 MPICH2 libraries are built with default compiler optimization, -O2, 
    396 which can be modified by --enable-fast configure option.  For 
    397 instance, --disable-fast disables the default optimization option. 
    398 --enable-fast=O<n> sets default compiler optimization as -O<n>.  For 
    399 more details of --enable-fast, see the output of "configure --help". 
    400 Any other complicated optimization flags for MPICH2 libraries have to 
    401 be set throught MPICH2LIB_xFLAGS.  CFLAGS and friends are empty by 
    402 default. 
    403  
    404 For example, to build a "production" MPICH2 environment with -O3 for all 
    405 language bindings, one can simply do 
     383MPICH2 allows several sets of compiler flags to be used. The first 
     384three sets are configure-time options for MPICH2, while the fourth is 
     385only relevant when compiling applications with mpicc and friends. 
     386 
     3871. CFLAGS, CXXFLAGS, FFLAGS, F90FLAGS and LDFLAGS (abbreviated as 
     388xFLAGS): Setting these flags would result in the MPICH2 library being 
     389compiled/linked with these flags and the flags internally being used 
     390in mpicc and friends. 
     391 
     3922. MPICH2LIB_CFLAGS, MPICH2LIB_CXXFLAGS, MPICH2LIB_FFLAGS, 
     393MPICH2LIB_F90FLAGS and MPICH2LIB_LDFLAGS (abbreviated as 
     394MPICH2LIB_xFLAGS): Setting these flags would result in the MPICH2 
     395library being compiled/linked with these flags. However, these flags 
     396will *not* be used by mpicc and friends. 
     397 
     3983. MPICH2_MAKE_CFLAGS: Setting these flags would result in MPICH2's 
     399configure tests to not use these flags, but the makefile's to use 
     400them. This is a temporary hack for certain cases that advanced 
     401developers might be interested in which break existing configure tests 
     402(e.g., -Werror) and are not recommended for regular users. 
     403 
     4044. MPICH2_MPICC_FLAGS, MPICH2_MPICXX_FLAGS, MPICH2_MPIF77_FLAGS, 
     405MPICH2_MPIF90_FLAGS and MPICH2_LDFLAGS (abbreviated as 
     406MPICH2_MPIX_FLAGS): These flags do *not* affect the compilation of the 
     407MPICH2 library itself, but will be internally used by mpicc and 
     408friends. 
     409 
     410 
     411  +--------------------------------------------------------------------+ 
     412  |                    |                      |                        | 
     413  |                    |    MPICH2 library    |    mpicc and friends   | 
     414  |                    |                      |                        | 
     415  +--------------------+----------------------+------------------------+ 
     416  |                    |                      |                        | 
     417  |     xFLAGS         |         Yes          |           Yes          | 
     418  |                    |                      |                        | 
     419  +--------------------+----------------------+------------------------+ 
     420  |                    |                      |                        | 
     421  |  MPICH2LIB_xFLAGS  |         Yes          |           No           | 
     422  |                    |                      |                        | 
     423  +--------------------+----------------------+------------------------+ 
     424  |                    |                      |                        | 
     425  | MPICH2_MAKE_xFLAGS |         Yes          |           No           | 
     426  |                    |                      |                        | 
     427  +--------------------+----------------------+------------------------+ 
     428  |                    |                      |                        | 
     429  | MPICH2_MPIX_FLAGS  |         No           |           Yes          | 
     430  |                    |                      |                        | 
     431  +--------------------+----------------------+------------------------+ 
     432 
     433 
     434All these flags can be set as part of configure command or through 
     435environment variables. (CPPFLAGS stands for C preprocessor flags, 
     436which should NOT be set) 
     437 
     438 
     439Default flags 
     440-------------- 
     441By default, MPICH2 automatically adds certain compiler optimizations 
     442to MPICH2LIB_CFLAGS. The currently used optimization level is -O2. 
     443 
     444** IMPORTANT NOTE: Remember that this only affects the compilation of 
     445the MPICH2 library and is not used in the wrappers (mpicc and friends) 
     446that are used to compile your applications or other libraries. 
     447 
     448This optimization level can be changed with the --enable-fast option 
     449passed to configure. For example, to build an MPICH2 environment with 
     450-O3 for all language bindings, one can simply do: 
    406451 
    407452  ./configure --enable-fast=O3 
    408453 
    409 or 
     454Or to disable all compiler optimizations, one can do: 
     455 
     456  ./configure --disable-fast 
     457 
     458For more details of --enable-fast, see the output of "configure 
     459--help". 
     460 
     461 
     462Examples 
     463-------- 
     464 
     465Example 1: 
    410466 
    411467  ./configure --disable-fast MPICH2LIB_CFLAGS=-O3 MPICH2LIB_FFLAGS=-O3 MPICH2LIB_CXXFLAGS=-O3 MPICH2LIB_F90FLAGS=-O3 
    412468 
    413 This will cause the MPICH2 libraries to be built with -O3, and -O3 will 
    414 not be included in the mpicc and other MPI wrapper script. 
     469This will cause the MPICH2 libraries to be built with -O3, and -O3 
     470will *not* be included in the mpicc and other MPI wrapper script. 
     471 
     472Example 2: 
     473 
     474  ./configure --disable-fast CFLAGS=-O3 FFLAGS=-O3 CXXFLAGS=-O3 F90FLAGS=-O3 
     475 
     476This will cause the MPICH2 libraries to be built with -O3, and -O3 
     477will be included in the mpicc and other MPI wrapper script. 
     478 
     479Example 3: 
    415480 
    416481There are certain compiler flags that should not be used with MPICH2's 
     
    421486MPICH2_MAKE_CFLAGS as follows: 
    422487 
    423   make VERBOSE=1 MPICH2_MAKE_CFLAGS="-Wall -Werror" 
    424  
    425 (assuming CC is set to gcc). The content of MPICH2_MAKE_CFLAGS is 
    426 appended to the CFLAGS in almost all Makefiles. 
     488  make MPICH2_MAKE_CFLAGS="-Wall -Werror" 
     489 
     490The content of MPICH2_MAKE_CFLAGS is appended to the CFLAGS in all 
     491relevant Makefiles. 
    427492 
    428493------------------------------------------------------------------------- 
  • mpich2/branches/dev/kumudb/RELEASE_NOTES

    r4209 r4870  
    4545 
    4646### Other configure options 
    47  
    48  * The "--enable-strict" configure option is broken when using 
    49    sigaction and friends; this causes some of the process managers 
    50    (e.g., hydra, remshell) to not work 
    51    correctly. "--enable-strict=posix" is the recommended configure 
    52    option. 
    5347 
    5448 * --enable-sharedlibs=gcc does not work on Solaris because of 
  • mpich2/branches/dev/kumudb/confdb/aclangf90.m4

    r974 r4870  
    985985dnl 
    986986dnl D*/ 
    987 AC_DEFUN(PAC_PROG_F90_INT_KIND,[ 
     987AC_DEFUN([PAC_PROG_F90_INT_KIND],[ 
    988988# Set the default 
    989989$1=-1 
     
    11041104dnl Internal routine for testing F90 
    11051105dnl PAC_PROG_F90_WORKS() 
    1106 AC_DEFUN(PAC_PROG_F90_WORKS, 
     1106AC_DEFUN([PAC_PROG_F90_WORKS], 
    11071107[AC_MSG_CHECKING([for extension for Fortran 90 programs]) 
    11081108pac_cv_f90_ext="f90" 
     
    12341234dnl   PAC_PROG_F90_HAS_POINTER(action-if-true,action-if-false) 
    12351235dnl D*/ 
    1236 AC_DEFUN(PAC_PROG_F90_HAS_POINTER,[ 
     1236AC_DEFUN([PAC_PROG_F90_HAS_POINTER],[ 
    12371237AC_CACHE_CHECK([whether Fortran 90 has Cray-style pointer declaration], 
    12381238pac_cv_prog_f90_has_pointer,[ 
  • mpich2/branches/dev/kumudb/confdb/aclocal.m4

    r4146 r4870  
    3838dnl If these are not available, just set them as empty 
    3939ifdef([AC_EXEEXT],,[ 
    40 AC_DEFUN(AC_EXEEXT,[ 
     40AC_DEFUN([AC_EXEEXT],[ 
    4141EXEEXT= 
    4242AC_SUBST(EXEEXT) 
    4343])]) 
    4444ifdef([AC_OBJEXT],,[ 
    45 AC_DEFUN(AC_OBJEXT,[ 
     45AC_DEFUN([AC_OBJEXT],[ 
    4646OBJEXT= 
    4747AC_SUBST(OBJEXT) 
     
    7474dnl directories in the case that this is a vpath build.   
    7575dnl 
    76 AC_DEFUN(PAC_CONFIG_SUBDIRS_IMMEDIATE, 
     76AC_DEFUN([PAC_CONFIG_SUBDIRS_IMMEDIATE], 
    7777[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 
    7878SAVE_subdirs="$subdirs" 
     
    105105dnl Find something to use for mkdir -p.  Eventually, this will  
    106106dnl have a script for backup 
    107 AC_DEFUN(PAC_PROG_MKDIR_P,[ 
     107AC_DEFUN([PAC_PROG_MKDIR_P],[ 
    108108AC_CACHE_CHECK([whether mkdir -p works], 
    109109pac_cv_mkdir_p,[ 
  • mpich2/branches/dev/kumudb/confdb/aclocal_bugfix.m4

    r3619 r4870  
    5353dnl D*/ 
    5454undefine([AC_CONFIG_AUX_DIRS]) 
    55 AC_DEFUN(AC_CONFIG_AUX_DIRS, 
     55AC_DEFUN([AC_CONFIG_AUX_DIRS], 
    5656[if test -f $CONFIG_AUX_DIR/install-sh ; then ac_aux_dir=$CONFIG_AUX_DIR  
    5757else 
     
    9696dnl  
    9797dnl undefine([AC_CHECK_HEADER]) 
    98 AC_DEFUN(PAC_OLD_CHECK_HEADER, 
     98AC_DEFUN([PAC_OLD_CHECK_HEADER], 
    9999[dnl Do the transliteration at runtime so arg 1 can be a shell variable. 
    100100ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` 
  • mpich2/branches/dev/kumudb/confdb/aclocal_cache.m4

    r100 r4870  
    174174dnl set here are redundant; the LOAD_CACHE call relies on the way autoconf 
    175175dnl initially processes ARG_ENABLE commands. 
    176 AC_DEFUN(PAC_ARG_CACHING,[ 
     176AC_DEFUN([PAC_ARG_CACHING],[ 
    177177AC_ARG_ENABLE(cache, 
    178178[--enable-cache  - Turn on configure caching], 
     
    227227dnl 
    228228dnl D*/ 
    229 AC_DEFUN(PAC_SUBDIR_CACHE,[]) 
    230 AC_DEFUN(PAC_SUBDIR_CACHE_OLD,[ 
     229AC_DEFUN([PAC_SUBDIR_CACHE],[]) 
     230AC_DEFUN([PAC_SUBDIR_CACHE_OLD],[ 
    231231if test "x$1" = "xalways" -o \( "$cache_file" = "/dev/null" -a "X$real_enable_cache" = "Xnotgiven" \) ; then 
    232232    # Use an absolute directory to help keep the subdir configures from getting 
     
    313313export CCFLAGS 
    314314]) 
    315 AC_DEFUN(PAC_SUBDIR_CACHE_CLEANUP,[]) 
    316 AC_DEFUN(PAC_SUBDIR_CACHE_CLEANUP_OLD,[ 
     315AC_DEFUN([PAC_SUBDIR_CACHE_CLEANUP],[]) 
     316AC_DEFUN([PAC_SUBDIR_CACHE_CLEANUP_OLD],[ 
    317317if test "$cache_file" != "/dev/null" -a "X$real_enable_cache" = "Xnotgiven" ; then 
    318318   rm -f $cache_file 
  • mpich2/branches/dev/kumudb/confdb/aclocal_cc.m4

    r4581 r4870  
    2323dnl 2.52 doesn't have AC_PROG_CC_GNU 
    2424ifdef([AC_PROG_CC_GNU],,[AC_DEFUN([AC_PROG_CC_GNU],)]) 
    25 AC_DEFUN(PAC_PROG_CC,[ 
     25AC_DEFUN([PAC_PROG_CC],[ 
    2626AC_PROVIDE([AC_PROG_CC]) 
    2727AC_CHECK_PROGS(CC, cc xlC xlc pgcc icc pathcc gcc ) 
     
    5757dnl variable containing the option name as the first argument. 
    5858dnl D*/ 
    59 AC_DEFUN(PAC_C_CHECK_COMPILER_OPTION,[ 
     59AC_DEFUN([PAC_C_CHECK_COMPILER_OPTION],[ 
    6060AC_MSG_CHECKING([whether C compiler accepts option $1]) 
    6161save_CFLAGS="$CFLAGS" 
     
    145145dnl optimization.   
    146146dnl D*/ 
    147 AC_DEFUN(PAC_C_OPTIMIZATION,[ 
     147AC_DEFUN([PAC_C_OPTIMIZATION],[ 
    148148    for copt in "-O4 -Ofast" "-Ofast" "-fast" "-O3" "-xO3" "-O" ; do 
    149149        PAC_C_CHECK_COMPILER_OPTION($copt,found_opt=yes,found_opt=no) 
     
    221221dnl includes, such as /usr/xxxx and /opt/xxxx 
    222222dnl 
    223 AC_DEFUN(PAC_C_DEPENDS,[ 
     223AC_DEFUN([PAC_C_DEPENDS],[ 
    224224AC_SUBST(C_DEPEND_OPT)AM_IGNORE(C_DEPEND_OPT) 
    225225AC_SUBST(C_DEPEND_OUT)AM_IGNORE(C_DEPEND_OUT) 
     
    325325dnl 
    326326dnl D*/ 
    327 AC_DEFUN(PAC_C_PROTOTYPES,[ 
     327AC_DEFUN([PAC_C_PROTOTYPES],[ 
    328328AC_CACHE_CHECK([whether $CC supports function prototypes], 
    329329pac_cv_c_prototypes,[ 
     
    350350dnl D*/  
    351351dnl Check for semctl and arguments 
    352 AC_DEFUN(PAC_FUNC_SEMCTL,[ 
     352AC_DEFUN([PAC_FUNC_SEMCTL],[ 
    353353AC_CHECK_FUNC(semctl) 
    354354if test "$ac_cv_func_semctl" = "yes" ; then 
     
    389389dnl 
    390390dnl D*/ 
    391 AC_DEFUN(PAC_C_VOLATILE,[ 
     391AC_DEFUN([PAC_C_VOLATILE],[ 
    392392AC_CACHE_CHECK([for volatile], 
    393393pac_cv_c_volatile,[ 
     
    409409dnl 
    410410dnl D*/ 
    411 AC_DEFUN(PAC_C_INLINE,[ 
     411AC_DEFUN([PAC_C_INLINE],[ 
    412412AC_CACHE_CHECK([for inline], 
    413413pac_cv_c_inline,[ 
     
    511511dnl 
    512512dnl D*/ 
    513 AC_DEFUN(PAC_C_CPP_CONCAT,[ 
     513AC_DEFUN([PAC_C_CPP_CONCAT],[ 
    514514pac_pound="#" 
    515515AC_CACHE_CHECK([whether the compiler $CC accepts $ac_pound$ac_pound for concatenation in cpp], 
     
    535535dnl 
    536536dnl D*/ 
    537 AC_DEFUN(PAC_FUNC_GETTIMEOFDAY,[ 
     537AC_DEFUN([PAC_FUNC_GETTIMEOFDAY],[ 
    538538AC_CACHE_CHECK([whether gettimeofday takes 2 arguments], 
    539539pac_cv_func_gettimeofday,[ 
     
    565565dnl 
    566566dnl D*/ 
    567 AC_DEFUN(PAC_C_RESTRICT,[ 
     567AC_DEFUN([PAC_C_RESTRICT],[ 
    568568AC_CACHE_CHECK([for restrict], 
    569569pac_cv_c_restrict,[ 
     
    613613dnl 
    614614dnl D*/ 
    615 AC_DEFUN(PAC_HEADER_STDARG,[ 
     615AC_DEFUN([PAC_HEADER_STDARG],[ 
    616616AC_CHECK_HEADER(stdarg.h) 
    617617dnl Sets ac_cv_header_stdarg_h 
     
    692692dnl 
    693693dnl D*/ 
    694 AC_DEFUN(PAC_C_TRY_COMPILE_CLEAN,[ 
     694AC_DEFUN([PAC_C_TRY_COMPILE_CLEAN],[ 
    695695$3=2 
    696696dnl Get the compiler output to test against 
     
    753753dnl 'action-if-unknown' is used in the case of cross-compilation. 
    754754dnl D*/ 
    755 AC_DEFUN(PAC_PROG_C_UNALIGNED_DOUBLES,[ 
     755AC_DEFUN([PAC_PROG_C_UNALIGNED_DOUBLES],[ 
    756756AC_CACHE_CHECK([whether C compiler allows unaligned doubles], 
    757757pac_cv_prog_c_unaligned_doubles,[ 
     
    813813dnl  
    814814dnl D*/ 
    815 AC_DEFUN(PAC_PROG_C_WEAK_SYMBOLS,[ 
     815AC_DEFUN([PAC_PROG_C_WEAK_SYMBOLS],[ 
    816816pragma_extra_message="" 
    817817AC_CACHE_CHECK([for type of weak symbol alias support], 
     
    953953ifdef([AC_PROG_CC_WORKS],,[AC_DEFUN([AC_PROG_CC_WORKS],)]) 
    954954dnl 
    955 AC_DEFUN(PAC_PROG_CC_WORKS, 
     955AC_DEFUN([PAC_PROG_CC_WORKS], 
    956956[AC_PROG_CC_WORKS 
    957957AC_MSG_CHECKING([whether the C compiler sets its return status correctly]) 
     
    975975dnl  
    976976dnl D*/ 
    977 AC_DEFUN(PAC_PROG_C_MULTIPLE_WEAK_SYMBOLS,[ 
     977AC_DEFUN([PAC_PROG_C_MULTIPLE_WEAK_SYMBOLS],[ 
    978978AC_CACHE_CHECK([for multiple weak symbol support], 
    979979pac_cv_prog_c_multiple_weak_symbols,[ 
     
    10341034dnl Defines NEED_CRYPT_PROTOTYPE if no prototype is found. 
    10351035dnl D*/ 
    1036 AC_DEFUN(PAC_FUNC_CRYPT,[ 
     1036AC_DEFUN([PAC_FUNC_CRYPT],[ 
    10371037AC_CACHE_CHECK([whether crypt defined in unistd.h], 
    10381038pac_cv_func_crypt_defined,[ 
     
    10571057fi 
    10581058])dnl 
     1059 
     1060dnl Use the value of enable-strict to update CFLAGS 
     1061dnl pac_cc_strict_flags contains the strict flags. 
     1062dnl 
     1063dnl -std=c89 is used to select the C89 version of the ANSI/ISO C standard. 
     1064dnl As of this writing, many C compilers still accepted only this version, 
     1065dnl not the later C99 version. When all compilers accept C99, this  
     1066dnl should be changed to the appropriate standard level.  Note that we've 
     1067dnl had trouble with gcc 2.95.3 accepting -std=c89 but then trying to  
     1068dnl compile program with a invalid set of options  
     1069dnl (-D __STRICT_ANSI__-trigraphs) 
     1070AC_DEFUN([PAC_CC_STRICT],[ 
     1071export enable_strict_done 
     1072if test "$enable_strict_done" != "yes" ; then 
     1073 
     1074    # Some comments on strict warning options. 
     1075    # These were added to reduce warnings: 
     1076    #   -Wno-missing-field-initializers  -- We want to allow a struct to be  
     1077    #       initialized to zero using "struct x y = {0};" and not require  
     1078    #       each field to be initialized individually. 
     1079    #   -Wno-type-limits -- There are places where we compare an unsigned to  
     1080    #       a constant that happens to be zero e.g., if x is unsigned and  
     1081    #       MIN_VAL is zero, we'd like to do "MPIU_Assert(x >= MIN_VAL);". 
     1082    #       Note this option is not supported by gcc 4.2. 
     1083    #   -Wno-unused-parameter -- For portability, some parameters go unused 
     1084    #       when we have different implementations of functions for  
     1085    #       different platforms 
     1086    #   -Wno-unused-label -- We add fn_exit: and fn_fail: on all functions,  
     1087    #       but fn_fail may not be used if the function doesn't return an  
     1088    #       error. 
     1089    # These were removed to reduce warnings: 
     1090    #   -Wcast-qual -- Sometimes we need to cast "volatile char*" to  
     1091    #       "char*", e.g., for memcpy. 
     1092    #   -Wpadded -- We catch struct padding with asserts when we need to 
     1093    #   -Wredundant-decls -- Having redundant declarations is benign and the  
     1094    #       code already has some. 
     1095 
     1096    pac_common_strict_flags="-O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wno-unused-parameter -Wno-unused-label -Wshadow -Wmissing-declarations -Wno-long-long -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 
     1097    pac_cc_strict_flags="" 
     1098    case "$1" in  
     1099        yes|all|posix) 
     1100                enable_strict_done="yes" 
     1101                pac_cc_strict_flags="$pac_common_strict_flags -D_POSIX_C_SOURCE=199506L" 
     1102        ;; 
     1103 
     1104        noposix) 
     1105                enable_strict_done="yes" 
     1106                pac_cc_strict_flags="$pac_common_strict_flags" 
     1107        ;; 
     1108         
     1109        no) 
     1110                # Accept and ignore this value 
     1111                : 
     1112        ;; 
     1113 
     1114        *) 
     1115                if test -n "$1" ; then 
     1116                   AC_MSG_WARN([Unrecognized value for enable-strict:$1]) 
     1117                fi 
     1118        ;; 
     1119 
     1120    esac 
     1121 
     1122    # See if the above options work with the compiler 
     1123    accepted_flags="" 
     1124    for flag in $pac_cc_strict_flags ; do 
     1125        old_CFLAGS=$CFLAGS 
     1126        CFLAGS="$CFLAGS $accepted_flags $flag" 
     1127        AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])],accepted_flags="$accepted_flags $flag",) 
     1128        CFLAGS="$old_CFLAGS" 
     1129    done 
     1130    pac_cc_strict_flags=$accepted_flags 
     1131fi 
     1132]) 
     1133 
    10591134dnl/*D 
    10601135dnl PAC_ARG_STRICT - Add --enable-strict to configure.   
     
    10641139dnl  
    10651140dnl Output effects: 
    1066 dnl Adds '--enable-strict' to the command line.  If this is enabled, then 
    1067 dnl if no compiler has been set, set 'CC' to 'gcc'. 
    1068 dnl If the compiler is 'gcc', 'COPTIONS' is set to include 
    1069 dnl.vb 
    1070 dnl     -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror=pointer-arith -DGCC_WALL -std=c89 
    1071 dnl.ve 
    1072 dnl This makes using a void * with pointer arithmetic an error, not a warning. 
    1073 dnl We do this because pointer arithmetic with void * is not valid C but 
    1074 dnl gcc accepts this unless these particular optiones are used. 
    1075 dnl Grr. -Werror=name is a recent addition to gcc, so we can't require it yet. 
    1076 dnl 
    1077 dnl -std=c89 is used to select the C89 version of the ANSI/ISO C standard. 
    1078 dnl As of this writing, many C compilers still accepted only this version, 
    1079 dnl not the later C99 version.  When all compilers accept C99, this  
    1080 dnl should be changed to the appropriate standard level.  Note that we've 
    1081 dnl had trouble with gcc 2.95.3 accepting -std=c89 but then trying to  
    1082 dnl compile program with a invalid set of options  
    1083 dnl (-D __STRICT_ANSI__-trigraphs) 
    1084 dnl 
    1085 dnl If the value 'all' is given to '--enable-strict', additional warning 
    1086 dnl options are included.  These are 
    1087 dnl.vb 
    1088 dnl -Wunused -Wshadow -Wmissing-declarations -Wno-long-long 
    1089 dnl.ve 
    1090 dnl  
    1091 dnl If the value 'noopt' is given to '--enable-strict', no optimization 
    1092 dnl options are set.  For some compilers (including gcc), this may  
    1093 dnl cause some strict complication tests to be skipped (typically, these are 
    1094 dnl tests for unused variables or variables used before they are defined). 
    1095 dnl 
    1096 dnl If the value 'posix' is given to '--enable-strict', POSIX is selected 
    1097 dnl as the C dialect (including the definition for the POSIX level) 
    1098 dnl 
    1099 dnl If the value 'all' is given to '--enable-strict', use the "GNU" Unix 
    1100 dnl dialect.  This permits the use of stricter checking for declarations of 
    1101 dnl system functions (note that fsync is not defined in strict, non-real-time 
    1102 dnl POSIX).  This level includes 
    1103 dnl .vb 
    1104 dnl -Werror-implicit-function-declaration 
    1105 dnl .ve 
    1106 dnl  
    1107 dnl This only works where 'gcc' is available. 
    1108 dnl In addition, it exports the variable 'enable_strict_done'. This 
    1109 dnl ensures that subsidiary 'configure's do not add the above flags to 
    1110 dnl 'COPTIONS' once the top level 'configure' sees '--enable-strict'.  To ensure 
    1111 dnl this, 'COPTIONS' is also exported. 
    1112 dnl 
    1113 dnl Not yet available: options when using other compilers.  However,  
    1114 dnl here are some possible choices 
    1115 dnl Solaris cc 
    1116 dnl  -fd -v -Xc 
    1117 dnl -Xc is strict ANSI (some version) and does not allow "long long", for  
    1118 dnl example 
    1119 dnl IRIX 
    1120 dnl  -ansi -DEBUG:trap_uninitialized=ON:varargs_interface_check=ON:verbose_runtime=ON 
     1141dnl Adds '--enable-strict' to the command line. 
    11211142dnl 
    11221143dnl D*/ 
    1123 AC_DEFUN(PAC_ARG_STRICT,[ 
     1144AC_DEFUN([PAC_ARG_STRICT],[ 
    11241145AC_ARG_ENABLE(strict, 
    11251146[--enable-strict  - Turn on strict compilation testing when using gcc]) 
    1126 saveCFLAGS="$CFLAGS" 
    1127 if test "$enable_strict_done" != "yes" ; then 
    1128     if test -z "$GCC_OPTFLAG" ; then GCC_OPTFLAG="-O2" ; fi 
    1129     if test -z "CC" ; then 
    1130         AC_CHECK_PROGS(CC,gcc) 
    1131     fi 
    1132     case "$enable_strict" in  
    1133         yes) 
    1134         enable_strict_done="yes" 
    1135         if test "$CC" = "gcc" ; then  
    1136             COPTIONS="${COPTIONS} -Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -DGCC_WALL -std=c89" 
    1137         fi 
    1138         ;; 
    1139         all) 
    1140         enable_strict_done="yes" 
    1141         if test "$CC" = "gcc" ; then  
    1142             # Note that -Wall does not include all of the warnings that 
    1143             # the gcc documentation claims that it does; in particular, 
    1144             # the -Wunused-parameter option is *not* part of -Wall 
    1145             # -Wextra (if available) adds some to -Wall (!) 
    1146             # -Wsystem-headers removed because of too many warning messages 
    1147             # that are unfixable by the user of this option (the warnings 
    1148             # often show benign but real problems) 
    1149             # -Wunreachable-code has a serious bug and falsely reports  
    1150             # labels as unreachable code.  This makes that option useless 
    1151             # for the MPICH2 code, for example 
    1152             COPTIONS="${COPTIONS} -Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 
    1153         fi 
    1154         ;; 
    1155  
    1156         # The MPICH2 code has several modules that have duplicate  
    1157         # function declarations.  The resulting list of warnings is 
    1158         # swamped by those duplicates, rendering the output nearly 
    1159         # useless.  This temporary option choice is the same as 
    1160         # --enable-strict=all, but without that one option 
    1161         allbutdupdefs) 
    1162         enable_strict_done="yes" 
    1163         if test "$CC" = "gcc" ; then  
    1164             # Note that -Wall does not include all of the warnings that 
    1165             # the gcc documentation claims that it does; in particular, 
    1166             # the -Wunused-parameter option is *not* part of -Wall 
    1167             # -Wextra (if available) adds some to -Wall (!) 
    1168             # -Wsystem-headers removed because of too many warning messages 
    1169             # that are unfixable by the user of this option (the warnings 
    1170             # often show benign but real problems) 
    1171             # -Wunreachable-code has a serious bug and falsely reports  
    1172             # labels as unreachable code.  This makes that option useless 
    1173             # for the MPICH2 code, for example 
    1174             COPTIONS="${COPTIONS} -Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 
    1175         fi 
    1176         ;; 
    1177  
    1178         posix) 
    1179         # fsync is a part of POSIX only in the real-time extensions,  
    1180         # apparently, so code that used include <unistd.h> and POSIX 
    1181         # and expects fsync to be defined is in trouble.  Because of that 
    1182         # we're not including the -W option to error if a function is 
    1183         # not prototyped. 
    1184         enable_strict_done="yes" 
    1185         if test "$CC" = "gcc" ; then 
    1186             COPTIONS="${COPTIONS} -Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -D_POSIX_C_SOURCE=199506L -std=c89" 
    1187         fi 
    1188         ;;       
    1189          
    1190         noopt) 
    1191         enable_strict_done="yes" 
    1192         if test "$CC" = "gcc" ; then  
    1193             COPTIONS="${COPTIONS} -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -DGCC_WALL -std=c89" 
    1194         fi 
    1195         ;; 
    1196         no) 
    1197         # Accept and ignore this value 
    1198         : 
    1199         ;; 
    1200         *) 
    1201         # Silently accept blank values for enable strict 
    1202         if test -n "$enable_strict" ; then 
    1203             AC_MSG_WARN([Unrecognized value for enable-strict:$enable_strict]) 
    1204         fi 
    1205         ;; 
    1206     esac 
    1207 fi 
    1208 export enable_strict_done 
    1209 ]) 
    1210 dnl 
    1211 dnl Use the value of enable-strict to update CFLAGS 
    1212 dnl pac_cc_strict_flags contains the strict flags. 
    1213 dnl 
    1214 dnl -std=c89 is used to select the C89 version of the ANSI/ISO C standard. 
    1215 dnl As of this writing, many C compilers still accepted only this version, 
    1216 dnl not the later C99 version.  When all compilers accept C99, this  
    1217 dnl should be changed to the appropriate standard level.  Note that we've 
    1218 dnl had trouble with gcc 2.95.3 accepting -std=c89 but then trying to  
    1219 dnl compile program with a invalid set of options  
    1220 dnl (-D __STRICT_ANSI__-trigraphs) 
    1221 dnl 
    1222 dnl  
    1223 AC_DEFUN(PAC_CC_STRICT,[ 
    1224 export enable_strict_done 
    1225 if test "$enable_strict_done" != "yes" ; then 
    1226     # We must know the compiler type 
    1227     if test -z "$GCC_OPTFLAG" ; then GCC_OPTFLAG="-O2" ; fi 
    1228     if test -z "CC" ; then 
    1229         AC_CHECK_PROGS(CC,gcc) 
    1230     fi 
    1231     pac_cc_strict_flags="" 
    1232     case "$enable_strict" in  
    1233         yes) 
    1234         enable_strict_done="yes" 
    1235         if test "$ac_cv_prog_gcc" = "yes" ; then  
    1236             pac_cc_strict_flags="-Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL" 
    1237             CFLAGS="$CFLAGS $pac_cc_strict_flags" 
    1238             AC_MSG_RESULT([Adding strict check arguments to CFLAGS]) 
    1239             AC_MSG_CHECKING([whether we can add -std=c89]) 
    1240             # See if we can add -std=c89 
    1241             savCFLAGS=$CFLAGS 
    1242             CFLAGS="$CFLAGS -std=c89" 
    1243             AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 
    1244                   stdc_ok=yes, 
    1245                   stdc_ok=no) 
    1246             AC_MSG_RESULT($stdc_ok) 
    1247             if test "$stdc_ok" != yes ; then 
    1248                 CFLAGS="$savCFLAGS" 
    1249             else 
    1250                 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 
    1251             fi 
    1252         else  
    1253             AC_MSG_WARN([enable strict supported only for gcc]) 
    1254         fi 
    1255         ;; 
    1256  
    1257         all) 
    1258         enable_strict_done="yes" 
    1259         if test "$ac_cv_prog_gcc" = "yes" ; then  
    1260             # -Wsystem-headers removed because of too many warning messages 
    1261             # that are unfixable by the user of this option (the warnings 
    1262             # often show benign but real problems) 
    1263             # -Wunreachable-code has a serious bug and falsely reports  
    1264             # labels as unreachable code.  This makes that option useless 
    1265             # for the MPICH2 code, for example 
    1266             # The next line was the original set of options; this  
    1267             # worked with gcc version 2.x 
    1268 #            pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Wunused-parameter -Wunused-value -Wno-long-long -Werror-implicit-function-declaration" 
    1269             pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value  -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros" 
    1270             CFLAGS="$CFLAGS $pac_cc_strict_flags" 
    1271             AC_MSG_CHECKING([whether we can add -std=c89]) 
    1272             # See if we can add -std=c89 
    1273             savCFLAGS=$CFLAGS 
    1274             CFLAGS="$CFLAGS -std=c89" 
    1275             AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 
    1276                   stdc_ok=yes, 
    1277                   stdc_ok=no) 
    1278             AC_MSG_RESULT($stdc_ok) 
    1279             if test "$stdc_ok" != yes ; then 
    1280                 CFLAGS="$savCFLAGS" 
    1281             else 
    1282                 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 
    1283             fi 
    1284         else  
    1285             AC_MSG_WARN([enable strict supported only for gcc]) 
    1286         fi 
    1287         ;; 
    1288  
    1289         # The MPICH2 code has several modules that have duplicate  
    1290         # function declarations.  The resulting list of warnings is 
    1291         # swamped by those duplicates, rendering the output nearly 
    1292         # useless.  This temporary option choice is the same as 
    1293         # --enable-strict=all, but without that one option 
    1294         allbutdupdefs) 
    1295         enable_strict_done="yes" 
    1296         if test "$ac_cv_prog_gcc" = "yes" ; then  
    1297             # -Wsystem-headers removed because of too many warning messages 
    1298             # that are unfixable by the user of this option (the warnings 
    1299             # often show benign but real problems) 
    1300             # -Wunreachable-code has a serious bug and falsely reports  
    1301             # labels as unreachable code.  This makes that option useless 
    1302             # for the MPICH2 code, for example 
    1303             # This next line contains the options used with gcc version 2.x 
    1304 #            pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Wunused-parameter -Wunused-value -Wno-long-long -Werror-implicit-function-declaration" 
    1305             pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value  -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 
    1306             CFLAGS="$CFLAGS $pac_cc_strict_flags" 
    1307             AC_MSG_CHECKING([whether we can add -std=c89]) 
    1308             # See if we can add -std=c89 
    1309             savCFLAGS=$CFLAGS 
    1310             CFLAGS="$CFLAGS -std=c89" 
    1311             AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 
    1312                   stdc_ok=yes, 
    1313                   stdc_ok=no) 
    1314             AC_MSG_RESULT($stdc_ok) 
    1315             if test "$stdc_ok" != yes ; then 
    1316                 CFLAGS="$savCFLAGS" 
    1317             else 
    1318                 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 
    1319             fi 
    1320         else  
    1321             AC_MSG_WARN([enable strict supported only for gcc]) 
    1322         fi 
    1323         ;; 
    1324  
    1325         posix) 
    1326         # fsync is a part of POSIX only in the real-time extensions,  
    1327         # apparently, so code that used include <unistd.h> and POSIX 
    1328         # and expects fsync to be defined is in trouble.  Because of that 
    1329         # we're not including the -W option to error if a function is 
    1330         # not prototyped. 
    1331         enable_strict_done="yes" 
    1332         if test "$ac_cv_prog_gcc" = "yes" ; then  
    1333             pac_cc_strict_flags="-Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -D_POSIX_C_SOURCE=199506L" 
    1334             CFLAGS="$CFLAGS $pac_cc_strict_flags" 
    1335             AC_MSG_RESULT([Adding strict check arguments (POSIX flavor) to CFLAGS]) 
    1336             AC_MSG_CHECKING([whether we can add -std=c89]) 
    1337             # See if we can add -std=c89 
    1338             savCFLAGS=$CFLAGS 
    1339             CFLAGS="$CFLAGS -std=c89" 
    1340             AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 
    1341                   stdc_ok=yes, 
    1342                   stdc_ok=no) 
    1343             AC_MSG_RESULT($stdc_ok) 
    1344             if test "$stdc_ok" != yes ; then 
    1345                 CFLAGS="$savCFLAGS" 
    1346             else 
    1347                 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 
    1348             fi 
    1349         else  
    1350             AC_MSG_WARN([enable strict supported only for gcc]) 
    1351         fi 
    1352         ;; 
    1353          
    1354         noopt) 
    1355         enable_strict_done="yes" 
    1356         if test "$ac_cv_prog_gcc" = "yes" ; then  
    1357             pac_cc_strict_flags="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL" 
    1358             CFLAGS="$CFLAGS $pac_cc_strict_flags" 
    1359             AC_MSG_RESULT([Adding strict check arguments to CFLAGS]) 
    1360             AC_MSG_CHECKING([whether we can add -std=c89]) 
    1361             # See if we can add -std=c89 
    1362             savCFLAGS=$CFLAGS 
    1363             CFLAGS="$CFLAGS -std=c89" 
    1364             AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 
    1365                   stdc_ok=yes, 
    1366                   stdc_ok=no) 
    1367             AC_MSG_RESULT($stdc_ok) 
    1368             if test "$stdc_ok" != yes ; then 
    1369                 CFLAGS="$savCFLAGS" 
    1370             else 
    1371                 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 
    1372             fi 
    1373         else  
    1374             AC_MSG_WARN([enable strict supported only for gcc]) 
    1375         fi 
    1376         ;; 
    1377         no) 
    1378         # Accept and ignore this value 
    1379         : 
    1380         ;; 
    1381         *) 
    1382         if test -n "$enable_strict" ; then 
    1383             AC_MSG_WARN([Unrecognized value for enable-strict:$enable_strict]) 
    1384         fi 
    1385         ;; 
    1386     esac 
    1387 fi 
    1388 ]) 
     1147PAC_CC_STRICT($enable_strict) 
     1148CFLAGS="$CFLAGS $pac_cc_strict_flags" 
     1149export CFLAGS 
     1150]) 
     1151 
    13891152dnl/*D 
    13901153dnl PAC_ARG_CC_G - Add debugging flags for the C compiler 
     
    14211184dnl 
    14221185dnl D*/ 
    1423 AC_DEFUN(PAC_ARG_CC_G,[ 
     1186AC_DEFUN([PAC_ARG_CC_G],[ 
    14241187AC_ARG_ENABLE(g, 
    14251188[--enable-g  - Turn on debugging of the package (typically adds -g to COPTIONS)]) 
     
    14371200dnl Simple version for both options 
    14381201dnl 
    1439 AC_DEFUN(PAC_ARG_CC_COMMON,[ 
     1202AC_DEFUN([PAC_ARG_CC_COMMON],[ 
    14401203PAC_ARG_CC_G 
    14411204PAC_ARG_STRICT 
     
    14761239dnl the system to find common symbols. 
    14771240dnl 
    1478 AC_DEFUN(PAC_PROG_C_BROKEN_COMMON,[ 
     1241AC_DEFUN([PAC_PROG_C_BROKEN_COMMON],[ 
    14791242AC_CACHE_CHECK([whether global variables handled properly], 
    14801243ac_cv_prog_cc_globals_work,[ 
     
    15571320dnl "Multiple cases:" return is possible.   
    15581321dnl 
    1559 AC_DEFUN(PAC_C_STRUCT_ALIGNMENT,[ 
     1322AC_DEFUN([PAC_C_STRUCT_ALIGNMENT],[ 
    15601323AC_CACHE_CHECK([for C struct alignment],pac_cv_c_struct_align,[ 
    15611324AC_TRY_RUN([ 
     
    17581521dnl In addition, a "Could not determine alignment" and a "error!" 
    17591522dnl return is possible.   
    1760 AC_DEFUN(PAC_C_MAX_INTEGER_ALIGN,[ 
     1523AC_DEFUN([PAC_C_MAX_INTEGER_ALIGN],[ 
    17611524AC_CACHE_CHECK([for max C struct integer alignment], 
    17621525pac_cv_c_max_integer_align,[ 
     
    18901653dnl In addition, a "Could not determine alignment" and a "error!" 
    18911654dnl return is possible.   
    1892 AC_DEFUN(PAC_C_MAX_FP_ALIGN,[ 
     1655AC_DEFUN([PAC_C_MAX_FP_ALIGN],[ 
    18931656AC_CACHE_CHECK([for max C struct floating point alignment], 
    18941657pac_cv_c_max_fp_align,[ 
     
    20051768dnl In addition, a "Could not determine alignment" and a "error!" 
    20061769dnl return is possible.   
    2007 AC_DEFUN(PAC_C_MAX_DOUBLE_FP_ALIGN,[ 
     1770AC_DEFUN([PAC_C_MAX_DOUBLE_FP_ALIGN],[ 
    20081771AC_CACHE_CHECK([for max C struct alignment of structs with doubles], 
    20091772pac_cv_c_max_double_fp_align,[ 
     
    20761839fi 
    20771840]) 
    2078 AC_DEFUN(PAC_C_MAX_LONGDOUBLE_FP_ALIGN,[ 
     1841AC_DEFUN([PAC_C_MAX_LONGDOUBLE_FP_ALIGN],[ 
    20791842AC_CACHE_CHECK([for max C struct floating point alignment with long doubles], 
    20801843pac_cv_c_max_longdouble_fp_align,[ 
     
    21631926dnl Possible values currently include no and four. 
    21641927dnl 
    2165 AC_DEFUN(PAC_C_DOUBLE_ALIGNMENT_EXCEPTION,[ 
     1928AC_DEFUN([PAC_C_DOUBLE_ALIGNMENT_EXCEPTION],[ 
    21661929AC_CACHE_CHECK([if double alignment breaks rules, find actual alignment], 
    21671930pac_cv_c_double_alignment_exception,[ 
     
    22201983dnl Possible values include yes, no, and unknown. 
    22211984dnl 
    2222 AC_DEFUN(PAC_C_DOUBLE_POS_ALIGN,[ 
     1985AC_DEFUN([PAC_C_DOUBLE_POS_ALIGN],[ 
    22231986AC_CACHE_CHECK([if alignment of structs with doubles is based on position], 
    22241987pac_cv_c_double_pos_align,[ 
     
    22642027dnl Possible values include yes, no, and unknown. 
    22652028dnl 
    2266 AC_DEFUN(PAC_C_LLINT_POS_ALIGN,[ 
     2029AC_DEFUN([PAC_C_LLINT_POS_ALIGN],[ 
    22672030AC_CACHE_CHECK([if alignment of structs with long long ints is based on position], 
    22682031pac_cv_c_llint_pos_align,[ 
     
    23272090dnl  
    23282091dnl D*/ 
    2329 AC_DEFUN(PAC_FUNC_NEEDS_DECL,[ 
     2092AC_DEFUN([PAC_FUNC_NEEDS_DECL],[ 
    23302093AC_CACHE_CHECK([whether $2 needs a declaration], 
    23312094pac_cv_func_decl_$2,[ 
     
    23512114dnl autoheader can''t handle this case) 
    23522115dnl D*/ 
    2353 AC_DEFUN(PAC_CHECK_SIZEOF_DERIVED,[ 
     2116AC_DEFUN([PAC_CHECK_SIZEOF_DERIVED],[ 
    23542117changequote(<<,>>)dnl 
    23552118define(<<AC_TYPE_NAME>>,translit(sizeof_$1,[a-z *], [A-Z_P]))dnl 
     
    23812144dnl autoheader can''t handle this case) 
    23822145dnl D*/ 
    2383 AC_DEFUN(PAC_CHECK_SIZEOF_2TYPES,[ 
     2146AC_DEFUN([PAC_CHECK_SIZEOF_2TYPES],[ 
    23842147changequote(<<,>>)dnl 
    23852148define(<<AC_TYPE_NAME>>,translit(sizeof_$1,[a-z *], [A-Z_P]))dnl 
  • mpich2/branches/dev/kumudb/confdb/aclocal_cross.m4

    r3050 r4870  
    6262dnl platform 
    6363dnl  
    64 AC_DEFUN(PAC_LANG_PUSH_COMPILERS,[ 
     64AC_DEFUN([PAC_LANG_PUSH_COMPILERS],[ 
    6565if test "X$pac_save_level" = "X" ; then 
    6666    pac_save_CC="$CC" 
     
    178178dnl PAC_LANG_PUSH_COMPILERS 
    179179dnl D*/ 
    180 AC_DEFUN(PAC_LANG_POP_COMPILERS,[ 
     180AC_DEFUN([PAC_LANG_POP_COMPILERS],[ 
    181181pac_save_level=`expr $pac_save_level - 1` 
    182182if test "X$pac_save_level" = "X0" ; then 
     
    193193fi 
    194194]) 
    195 AC_DEFUN(PAC_PROG_TESTCPP,[ 
     195AC_DEFUN([PAC_PROG_TESTCPP],[ 
    196196if test -z "$TESTCPP"; then 
    197197  AC_CACHE_VAL(pac_cv_prog_TESTCPP,[ 
  • mpich2/branches/dev/kumudb/confdb/aclocal_csharp.m4

    r100 r4870  
    1818dnl   /optimize 
    1919dnl   /unsafe   (allow unsafe code) 
    20 AC_DEFUN(PAC_LANG_CSHARP, 
     20AC_DEFUN([PAC_LANG_CSHARP], 
    2121[AC_REQUIRE([PAC_PROG_CSHARP]) 
    2222define([AC_LANG], [CSHARP])dnl 
     
    3030dnl cross_compiling=$pac_cv_prog_csharp_cross 
    3131]) 
    32 AC_DEFUN(PAC_PROG_CSHARP,[ 
     32AC_DEFUN([PAC_PROG_CSHARP],[ 
    3333if test -z "$CSHARP" ; then 
    3434    AC_CHECK_PROGS(CSHARP,csc) 
  • mpich2/branches/dev/kumudb/confdb/aclocal_cxx.m4

    r556 r4870  
    1111dnl sets dirname to the name of the template directory, or to empty 
    1212dnl if it can not be determined. 
    13 AC_DEFUN(PAC_PROG_CXX_TEMPLATE_DIR,[ 
     13AC_DEFUN([PAC_PROG_CXX_TEMPLATE_DIR],[ 
    1414AC_CACHE_CHECK([for C++ template repository directory name], 
    1515pac_cv_cxx_template_dir,[ 
     
    9797# compiler, but they should not HAVE to 
    9898# 
    99 AC_DEFUN(PAC_PROG_CXX_WORKS, 
     99AC_DEFUN([PAC_PROG_CXX_WORKS], 
    100100[AC_PROG_CXX_WORKS 
    101101AC_MSG_CHECKING([whether the C++ compiler sets its return status correctly]) 
     
    232232dnl variable containing the option name as the first argument. 
    233233dnl D*/ 
    234 AC_DEFUN(PAC_CXX_CHECK_COMPILER_OPTION,[ 
     234AC_DEFUN([PAC_CXX_CHECK_COMPILER_OPTION],[ 
    235235AC_MSG_CHECKING([whether C++ compiler accepts option $1]) 
    236236save_CXXFLAGS="$CXXFLAGS" 
  • mpich2/branches/dev/kumudb/confdb/aclocal_enable.m4

    r100 r4870  
    2020dnl HAVE_ENABLE_G_MEM=trace 
    2121dnl 
    22 AC_DEFUN(PAC_ARG_ENABLE_PARSE,[ 
     22AC_DEFUN([PAC_ARG_ENABLE_PARSE],[ 
    2323    eval ac_e_parse=${enable}_$1 
    2424    save_IFS="$IFS" 
  • mpich2/branches/dev/kumudb/confdb/aclocal_f77.m4

    r4384 r4870  
    3939dnl D*/ 
    4040dnl 
    41 AC_DEFUN(PAC_PROG_F77_NAME_MANGLE,[ 
     41AC_DEFUN([PAC_PROG_F77_NAME_MANGLE],[ 
    4242AC_CACHE_CHECK([for Fortran 77 name mangling], 
    4343pac_cv_prog_f77_name_mangle, 
     
    300300dnl 
    301301dnl D*/ 
    302 AC_DEFUN(PAC_PROG_F77_CHECK_SIZEOF,[ 
     302AC_DEFUN([PAC_PROG_F77_CHECK_SIZEOF],[ 
    303303changequote(<<, >>)dnl 
    304304dnl The name to #define. 
     
    377377dnl of the Portland Group compilers) 
    378378dnl 
    379 AC_DEFUN(PAC_PROG_F77_CHECK_SIZEOF_EXT,[ 
     379AC_DEFUN([PAC_PROG_F77_CHECK_SIZEOF_EXT],[ 
    380380changequote(<<,>>)dnl 
    381381dnl The name to #define. 
     
    480480dnl 
    481481dnl D*/ 
    482 AC_DEFUN(PAC_PROG_F77_EXCLAIM_COMMENTS,[ 
     482AC_DEFUN([PAC_PROG_F77_EXCLAIM_COMMENTS],[ 
    483483AC_CACHE_CHECK([whether Fortran accepts ! for comments], 
    484484pac_cv_prog_f77_exclaim_comments,[ 
     
    518518dnl variable containing the option name as the first argument. 
    519519dnl D*/ 
    520 AC_DEFUN(PAC_F77_CHECK_COMPILER_OPTION,[ 
     520AC_DEFUN([PAC_F77_CHECK_COMPILER_OPTION],[ 
    521521AC_MSG_CHECKING([whether Fortran 77 compiler accepts option $1]) 
    522522ac_result="no" 
     
    641641dnl    f_setarg( __libc_argc, __libc_argv ); 
    642642dnl 
    643 AC_DEFUN(PAC_PROG_F77_CMDARGS,[ 
     643AC_DEFUN([PAC_PROG_F77_CMDARGS],[ 
    644644found_cached="yes" 
    645645AC_MSG_CHECKING([for routines to access the command line from Fortran 77]) 
     
    994994dnl a library.  This failed when the HP compiler complained about the 
    995995dnl arguments, but produced an executable anyway.   
    996 AC_DEFUN(PAC_PROG_F77_LIBRARY_DIR_FLAG,[ 
     996AC_DEFUN([PAC_PROG_F77_LIBRARY_DIR_FLAG],[ 
    997997if test "X$F77_LIBDIR_LEADER" = "X" ; then 
    998998AC_CACHE_CHECK([for Fortran 77 flag for library directories], 
     
    10581058dnl 
    10591059dnl D*/  
    1060 AC_DEFUN(PAC_PROG_F77_HAS_INCDIR,[ 
     1060AC_DEFUN([PAC_PROG_F77_HAS_INCDIR],[ 
    10611061checkdir=$1 
    10621062AC_CACHE_CHECK([for include directory flag for Fortran], 
     
    11011101dnl 
    11021102dnl D*/ 
    1103 AC_DEFUN(PAC_PROG_F77_ALLOWS_UNUSED_EXTERNALS,[ 
     1103AC_DEFUN([PAC_PROG_F77_ALLOWS_UNUSED_EXTERNALS],[ 
    11041104AC_CACHE_CHECK([whether Fortran allows unused externals], 
    11051105pac_cv_prog_f77_allows_unused_externals,[ 
     
    11451145dnl   PAC_PROG_F77_HAS_POINTER(action-if-true,action-if-false) 
    11461146dnl D*/ 
    1147 AC_DEFUN(PAC_PROG_F77_HAS_POINTER,[ 
     1147AC_DEFUN([PAC_PROG_F77_HAS_POINTER],[ 
    11481148AC_CACHE_CHECK([whether Fortran has pointer declaration], 
    11491149pac_cv_prog_f77_has_pointer,[ 
     
    11721172dnl to select the appropriate Fortran name. 
    11731173dnl  
    1174 AC_DEFUN(PAC_PROG_F77_RUN_PROC_FROM_C,[ 
     1174AC_DEFUN([PAC_PROG_F77_RUN_PROC_FROM_C],[ 
    11751175# This is needed for Mac OSX 10.5 
    11761176rm -rf conftest.dSYM 
     
    12231223dnl  
    12241224dnl 
    1225 AC_DEFUN(PAC_PROG_F77_IN_C_LIBS,[ 
     1225AC_DEFUN([PAC_PROG_F77_IN_C_LIBS],[ 
    12261226AC_MSG_CHECKING([for which Fortran libraries are needed to link C with Fortran]) 
    12271227F77_IN_C_LIBS="$FLIBS" 
     
    13701370dnl needed by C programs 
    13711371dnl 
    1372 AC_DEFUN(PAC_PROG_F77_CHECK_FLIBS, 
     1372AC_DEFUN([PAC_PROG_F77_CHECK_FLIBS], 
    13731373[AC_MSG_CHECKING([whether C can link with $FLIBS]) 
    13741374# Try to link a C program with all of these libraries 
     
    14071407dnl use the new form if it is available. 
    14081408dnl 
    1409 AC_DEFUN(PAC_PROG_F77_NEW_CHAR_DECL,[ 
     1409AC_DEFUN([PAC_PROG_F77_NEW_CHAR_DECL],[ 
    14101410AC_CACHE_CHECK([whether Fortran supports new-style character declarations], 
    14111411pac_cv_prog_f77_new_char_decl,[ 
     
    15931593dnl 
    15941594dnl 
    1595 AC_DEFUN(PAC_PROG_F77_OBJ_LINKS_WITH_C,[ 
     1595AC_DEFUN([PAC_PROG_F77_OBJ_LINKS_WITH_C],[ 
    15961596AC_MSG_CHECKING([whether Fortran 77 and C objects are compatible]) 
    15971597dnl 
  • mpich2/branches/dev/kumudb/confdb/aclocal_f90.m4

    r974 r4870  
    55dnl that would require too many changes to autoconf macros. 
    66dnl 
    7 AC_DEFUN(PAC_LANG_FORTRAN90, 
     7AC_DEFUN([PAC_LANG_FORTRAN90], 
    88[AC_REQUIRE([PAC_PROG_F90]) 
    99define([AC_LANG], [FORTRAN90])dnl 
     
    2020dnl This is an addition for AC_TRY_COMPILE, but for f90.  If the current  
    2121dnl language is not f90, it does a save/restore 
    22 AC_DEFUN(PAC_TRY_F90_COMPILE, 
     22AC_DEFUN([PAC_TRY_F90_COMPILE], 
    2323[AC_REQUIRE([PAC_LANG_FORTRAN90]) 
    2424ifelse(AC_LANG, FORTRAN90,,[AC_LANG_SAVE 
     
    5959dnl      of unknown, lower, upper 
    6060dnl D*/ 
    61 AC_DEFUN(PAC_F90_MODULE_EXT, 
     61AC_DEFUN([PAC_F90_MODULE_EXT], 
    6262[AC_CACHE_CHECK([for Fortran 90 module extension], 
    6363pac_cv_f90_module_ext,[ 
     
    134134dnl directories that contain compiled Fortran 90 modules 
    135135dnl 
    136 AC_DEFUN(PAC_F90_MODULE_INCFLAG,[ 
     136AC_DEFUN([PAC_F90_MODULE_INCFLAG],[ 
    137137AC_CACHE_CHECK([for Fortran 90 module include flag], 
    138138pac_cv_f90_module_incflag,[ 
     
    227227F90MODINCFLAG=$pac_cv_f90_module_incflag 
    228228]) 
    229 AC_DEFUN(PAC_F90_MODULE,[ 
     229AC_DEFUN([PAC_F90_MODULE],[ 
    230230PAC_F90_MODULE_EXT 
    231231PAC_F90_MODULE_INCFLAG 
    232232]) 
    233 AC_DEFUN(PAC_F90_EXT,[ 
     233AC_DEFUN([PAC_F90_EXT],[ 
    234234AC_CACHE_CHECK([whether Fortran 90 accepts f90 suffix], 
    235235pac_cv_f90_ext_f90,[ 
     
    249249dnl 
    250250dnl D*/ 
    251 AC_DEFUN(PAC_PROG_F90_INT_KIND,[ 
     251AC_DEFUN([PAC_PROG_F90_INT_KIND],[ 
    252252# Set the default 
    253253$1=-1 
     
    325325# efc - An older Intel compiler (?) 
    326326# ifc - An older Intel compiler 
    327 AC_DEFUN(PAC_PROG_F90,[ 
     327AC_DEFUN([PAC_PROG_F90],[ 
    328328if test -z "$F90" ; then 
    329329    AC_CHECK_PROGS(F90,f90 xlf90 pgf90 ifort epcf90 f95 fort xlf95 lf95 pathf95 pathf90 g95 gfortran ifc efc) 
     
    353353dnl Internal routine for testing F90 
    354354dnl PAC_PROG_F90_WORKS() 
    355 AC_DEFUN(PAC_PROG_F90_WORKS, 
     355AC_DEFUN([PAC_PROG_F90_WORKS], 
    356356[AC_MSG_CHECKING([for extension for Fortran 90 programs]) 
    357357pac_cv_f90_ext="f90" 
     
    434434dnl We assume a naming convention consistent with the Fortran 77 one. 
    435435dnl 
    436 AC_DEFUN(PAC_PROG_F90_CHECK_SIZEOF,[ 
     436AC_DEFUN([PAC_PROG_F90_CHECK_SIZEOF],[ 
    437437changequote(<<,>>)dnl 
    438438dnl The name to #define. 
     
    588588dnl   PAC_PROG_F90_HAS_POINTER(action-if-true,action-if-false) 
    589589dnl D*/ 
    590 AC_DEFUN(PAC_PROG_F90_HAS_POINTER,[ 
     590AC_DEFUN([PAC_PROG_F90_HAS_POINTER],[ 
    591591AC_CACHE_CHECK([whether Fortran 90 has Cray-style pointer declaration], 
    592592pac_cv_prog_f90_has_pointer,[ 
     
    629629dnl variable containing the option name as the first argument. 
    630630dnl D*/ 
    631 AC_DEFUN(PAC_F90_CHECK_COMPILER_OPTION,[ 
     631AC_DEFUN([PAC_F90_CHECK_COMPILER_OPTION],[ 
    632632AC_MSG_CHECKING([whether Fortran 90 compiler accepts option $1]) 
    633633ac_result="no" 
  • mpich2/branches/dev/kumudb/confdb/aclocal_make.m4

    r3050 r4870  
    1818dnl 
    1919dnl Find a make program if none is defined. 
    20 AC_DEFUN(PAC_PROG_MAKE_PROGRAM,[true 
     20AC_DEFUN([PAC_PROG_MAKE_PROGRAM],[true 
    2121if test "X$MAKE" = "X" ; then 
    2222   AC_CHECK_PROGS(MAKE,make gnumake nmake pmake smake) 
     
    4141dnl D*/ 
    4242dnl 
    43 AC_DEFUN(PAC_PROG_MAKE_ECHOS_DIR,[ 
     43AC_DEFUN([PAC_PROG_MAKE_ECHOS_DIR],[ 
    4444if test "$MAKE_MAY_PRINT_DIR" != "yes" ; then 
    4545    AC_CACHE_CHECK([whether make echos directory changes], 
     
    4747[ 
    4848AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 
     49# This is needed for Mac OSX 10.5 
     50rm -rf conftest.dSYM 
    4951rm -f conftest 
    5052cat > conftest <<. 
     
    6971    pac_cv_prog_make_echos_dir="no" 
    7072fi 
     73# This is needed for Mac OSX 10.5 
     74rm -rf conftest.dSYM 
    7175rm -f conftest 
    7276str="" 
     
    97101dnl D*/ 
    98102dnl 
    99 AC_DEFUN(PAC_PROG_MAKE_INCLUDE,[ 
     103AC_DEFUN([PAC_PROG_MAKE_INCLUDE],[ 
    100104AC_CACHE_CHECK([whether make supports include],pac_cv_prog_make_include,[ 
    101105AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 
     106# This is needed for Mac OSX 10.5 
     107rm -rf conftest.dSYM 
    102108rm -f conftest 
    103109cat > conftest <<. 
     
    109115. 
    110116pac_str=`$MAKE -f conftest1 2>&1` 
     117# This is needed for Mac OSX 10.5 
     118rm -rf conftest.dSYM 
    111119rm -f conftest conftest1 
    112120if test "$pac_str" != "success" ; then 
     
    141149dnl D*/ 
    142150dnl 
    143 AC_DEFUN(PAC_PROG_MAKE_ALLOWS_COMMENTS,[ 
     151AC_DEFUN([PAC_PROG_MAKE_ALLOWS_COMMENTS],[ 
    144152AC_CACHE_CHECK([whether make allows comments in actions], 
    145153pac_cv_prog_make_allows_comments,[ 
    146154AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 
     155# This is needed for Mac OSX 10.5 
     156rm -rf conftest.dSYM 
    147157rm -f conftest 
    148158cat > conftest <<. 
     
    153163. 
    154164pac_str=`$MAKE -f conftest 2>&1` 
     165# This is needed for Mac OSX 10.5 
     166rm -rf conftest.dSYM 
    155167rm -f conftest  
    156168if test "$pac_str" != "success" ; then 
     
    195207dnl D*/ 
    196208dnl 
    197 AC_DEFUN(PAC_PROG_MAKE_VPATH,[ 
     209AC_DEFUN([PAC_PROG_MAKE_VPATH],[ 
    198210AC_SUBST(VPATH)AM_IGNORE(VPATH) 
    199211AC_CACHE_CHECK([for virtual path format], 
     
    259271dnl PAC_PROG_MAKE 
    260272dnl D*/ 
    261 AC_DEFUN(PAC_PROG_MAKE_SET_CFLAGS,[ 
     273AC_DEFUN([PAC_PROG_MAKE_SET_CFLAGS],[ 
    262274AC_CACHE_CHECK([whether make sets CFLAGS], 
    263275pac_cv_prog_make_set_cflags,[ 
    264276AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 
     277# This is needed for Mac OSX 10.5 
     278rm -rf conftest.dSYM 
    265279rm -f conftest 
    266280cat > conftest <<EOF 
     
    270284EOF 
    271285pac_str=`$MAKE -f conftest 2>&1` 
     286# This is needed for Mac OSX 10.5 
     287rm -rf conftest.dSYM 
    272288rm -f conftest  
    273289if test "$pac_str" = "XX" ; then 
     
    290306dnl Sets the cache variable 'pac_cv_prog_make_found_clock_skew' to yes or no 
    291307dnl D*/ 
    292 AC_DEFUN(PAC_PROG_MAKE_CLOCK_SKEW,[ 
     308AC_DEFUN([PAC_PROG_MAKE_CLOCK_SKEW],[ 
    293309AC_CACHE_CHECK([whether clock skew breaks make], 
    294310pac_cv_prog_make_found_clock_skew,[ 
     
    339355dnl  
    340356dnl D*/ 
    341 AC_DEFUN(PAC_PROG_MAKE_HAS_PATTERN_RULES,[ 
     357AC_DEFUN([PAC_PROG_MAKE_HAS_PATTERN_RULES],[ 
    342358AC_CACHE_CHECK([whether make has pattern rules], 
    343359pac_cv_prog_make_has_patterns,[ 
     
    397413dnl D*/ 
    398414dnl 
    399 AC_DEFUN(PAC_PROG_MAKE,[ 
     415AC_DEFUN([PAC_PROG_MAKE],[ 
    400416PAC_PROG_MAKE_PROGRAM 
    401417PAC_PROG_MAKE_CLOCK_SKEW 
  • mpich2/branches/dev/kumudb/confdb/aclocal_mpi.m4

    r3623 r4870  
    2424dnl MPI-2 RMA? 
    2525dnl PAC_LIB_MPI([found text],[not found text]) 
    26 AC_DEFUN(PAC_LIB_MPI,[ 
     26AC_DEFUN([PAC_LIB_MPI],[ 
    2727dnl Set the prereq to 2.50 to avoid having  
    2828AC_PREREQ(2.50) 
     
    7272dnl PAC_LIB_MPI 
    7373dnl D*/ 
    74 AC_DEFUN(PAC_ARG_MPICH_BUILDING,[ 
     74AC_DEFUN([PAC_ARG_MPICH_BUILDING],[ 
    7575AC_ARG_WITH(mpichbuilding, 
    7676[--with-mpichbuilding - Assume that MPICH is being built], 
     
    115115dnl PAC_LANG_PUSH_COMPILERS, PAC_LIB_MPI 
    116116dnl D*/ 
    117 AC_DEFUN(PAC_ARG_MPI_TYPES,[ 
     117AC_DEFUN([PAC_ARG_MPI_TYPES],[ 
    118118AC_PROVIDE([AC_PROG_CC]) 
    119119AC_SUBST(CC) 
     
    375375dnl Looks only for 'MPI_Request_c2f'. 
    376376dnl D*/ 
    377 AC_DEFUN(PAC_MPI_F2C,[ 
     377AC_DEFUN([PAC_MPI_F2C],[ 
    378378AC_CACHE_CHECK([for MPI F2C and C2F routines], 
    379379pac_cv_mpi_f2c, 
     
    394394dnl expands @HAVE_ROMIO@ in mpi.h into #include "mpio.h" 
    395395dnl D*/ 
    396 AC_DEFUN(PAC_HAVE_ROMIO,[ 
     396AC_DEFUN([PAC_HAVE_ROMIO],[ 
    397397if test "$enable_romio" = "yes" ; then HAVE_ROMIO='#include "mpio.h"'; fi 
    398398AC_SUBST(HAVE_ROMIO) 
  • mpich2/branches/dev/kumudb/confdb/aclocal_perl.m4

    r100 r4870  
    22dnl 
    33dnl Find perl5 
    4 AC_DEFUN(PAC_PROG_PERL5,[ 
     4AC_DEFUN([PAC_PROG_PERL5],[ 
    55AC_CACHE_VAL(pac_cv_prog_perl, 
    66[ 
  • mpich2/branches/dev/kumudb/confdb/aclocal_shl.m4

    r2977 r4870  
    5252dnl search paths are specified and how shared library names are set. 
    5353dnl D*/ 
    54 AC_DEFUN(PAC_ARG_SHAREDLIBS,[ 
     54AC_DEFUN([PAC_ARG_SHAREDLIBS],[ 
    5555AC_ARG_ENABLE(sharedlibs, 
    5656[--enable-sharedlibs=kind - Enable shared libraries.  kind may be 
     
    218218dnl PAC_CC_SHAREDLIBS(type,CCvar,CLINKvar) 
    219219dnl D*/ 
    220 AC_DEFUN(PAC_CC_SHAREDLIBS, 
     220AC_DEFUN([PAC_CC_SHAREDLIBS], 
    221221[ 
    222222pac_kinds=$1 
     
    283283dnl This is a more robust (and, in the case of libtool, only  
    284284dnl managable) method. 
    285 AC_DEFUN(PAC_CC_SUBDIR_SHLIBS,[ 
     285AC_DEFUN([PAC_CC_SUBDIR_SHLIBS],[ 
    286286        AC_SUBST(CC_SHL) 
    287287        AC_SUBST(C_LINK_SHL) 
  • mpich2/branches/dev/kumudb/confdb/aclocal_subcfg.m4

    r1000 r4870  
    33dnl                   Call before invocation of mpich2's subpackage configure 
    44dnl 
    5 AC_DEFUN(PAC_MPICH2_INIT,[ 
     5AC_DEFUN([PAC_MPICH2_INIT],[ 
    66# Exporting the MPICH2_INTERNAL_xFLAGS with modified xFLAGS 
    77# before calling subconfigure. 
     
    3232dnl                      Called after AC_INIT before any of xFLAGS is accessed. 
    3333dnl 
    34 AC_DEFUN(PAC_SUBCONFIG_INIT,[ 
     34AC_DEFUN([PAC_SUBCONFIG_INIT],[ 
    3535# Initialize xFLAGS with MPICH2_INTERNAL_xFLAGS. 
     36  if test "$FROM_MPICH2" = "yes" ; then 
    3637    CFLAGS="$MPICH2_INTERNAL_CFLAGS" 
    3738    CXXFLAGS="$MPICH2_INTERNAL_CXXFLAGS" 
    3839    FFLAGS="$MPICH2_INTERNAL_FFLAGS" 
    3940    F90FLAGS="$MPICH2_INTERNAL_F90FLAGS" 
     41  fi 
    4042])dnl 
    4143dnl 
    4244dnl Do we need PAC_SUBCONFIG_FINALIZE or PAC_MPICH2_FINALIZE ? 
    4345dnl  
    44 AC_DEFUN(PAC_SUBCONFIG_FINALIZE,[ 
     46AC_DEFUN([PAC_SUBCONFIG_FINALIZE],[ 
    4547])dnl 
    46 AC_DEFUN(PAC_MPICH2_FINALIZE,[ 
     48AC_DEFUN([PAC_MPICH2_FINALIZE],[ 
    4749])dnl 
  • mpich2/branches/dev/kumudb/confdb/aclocal_util.m4

    r670 r4870  
    33dnl token is defined as string without any blank space in it. 
    44dnl 
    5 AC_DEFUN(PAC_APPEND_UNIQ_TOKEN,[ 
     5AC_DEFUN([PAC_APPEND_UNIQ_TOKEN],[ 
    66dnl Since PAC_APPEND_UNIQ_TOKEN may be called by PAC_MAKE_UNIQ_STRING 
    77dnl saved IFS should be in a different variable than MAKE_UNIQ_STRING's. 
     
    5050dnl                 duplicated substings. 
    5151dnl 
    52 AC_DEFUN(PAC_MAKE_UNIQ_STRING, [ 
     52AC_DEFUN([PAC_MAKE_UNIQ_STRING], [ 
    5353saveIFS="$IFS" 
    5454dnl eval inflags=\$$1 
  • mpich2/branches/dev/kumudb/confdb/aclocal_web.m4

    r100 r4870  
    1010dnl D*/ 
    1111dnl  
    12 AC_DEFUN(PAC_ARG_WWWDIR,[ 
     12AC_DEFUN([PAC_ARG_WWWDIR],[ 
    1313AC_ARG_WITH([wwwdir],[ 
    1414--with-wwwdir=directory - Specify the root directory for HTML documentation], 
  • mpich2/branches/dev/kumudb/configure.in

    r4827 r4870  
    241241[--enable-echo  - Turn on strong echoing. The default is enable=no.] ,set -x) 
    242242dnl 
    243 AC_ARG_ENABLE(strict,[--enable-strict - Turn on strict debugging with gcc],,enable_strict=no) 
    244243dnl 
    245244AC_ARG_ENABLE(coverage, 
     
    16041603# Set CFLAGS for enable strict if necessary.  Do this *first* because 
    16051604# it may influence the output of the other tests 
    1606 PAC_CC_STRICT 
     1605AC_ARG_ENABLE(strict,[--enable-strict - Turn on strict debugging with gcc],,enable_strict=no) 
     1606PAC_CC_STRICT($enable_strict) 
    16071607if test -n "$pac_cc_strict_flags" ; then 
    16081608    MPICH2_EXTRA_CFLAGS="$MPICH2_EXTRA_CFLAGS $pac_cc_strict_flags" 
     
    18081808        fi 
    18091809    fi 
     1810 
     1811    # The MPI standard requires that MPI_Init in any language initialize 
     1812    # MPI in all languages.  This can be a problem when objects produced  
     1813    # by the Fortran compiler require symbols from the Fortran runtime 
     1814    # (making linking C-only programs unnecessarily difficult).  What we test  
     1815    # here is whether the much more restricted needs of the Fortran  
     1816    # initialize can be met with no special use of the Fortran runtime 
     1817    pac_f_init_works_with_c=unknown 
     1818    AC_MSG_CHECKING([whether Fortran init will work with C]) 
     1819    rm -f conftest* 
     1820    cat > conftestc.c <<EOF 
     1821#include <stdio.h> 
     1822#include "confdefs.h" 
     1823#ifdef F77_NAME_UPPER 
     1824#define minit_ MINIT 
     1825#elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) 
     1826#define minit_ minit 
     1827#endif 
     1828int main( int argc, char *argv ) 
     1829{ 
     1830    minit_(); 
     1831    return 0; 
     1832} 
     1833char *v1 = 0; 
     1834char *vc2 = 0; 
     1835int  v2 = 0; 
     1836minitc_( char *dv1, int d, char *dv2, int d2, int dv3 ) 
     1837{ 
     1838v1 = dv1; 
     1839v2 = dv3; 
     1840vc2 = dv2; 
     1841*vc2 = ' '; 
     1842} 
     1843EOF 
     1844    cat > conftestf.f <<EOF 
     1845       subroutine minit() 
     1846       common /m1/ vc, vc2 
     1847       character *1 vc(1,1), vc2(1) 
     1848       common /m2/ vd 
     1849       integer vd 
     1850       save /m1/, /m2/ 
     1851       call minitc( vc, vc2, vd ) 
     1852       end 
     1853EOF 
     1854   myfcompile='${F77-f77} -c $FFLAGS conftestf.f 1>&AC_FD_CC' 
     1855   myccompile='${CC-cc} -c $CFLAGS conftestc.c 1>&AC_FD_CC' 
     1856   if AC_TRY_EVAL(myfcompile) && test -s conftestf.o ; then 
     1857       : 
     1858   else  
     1859        echo "configure: failed program was:" >&AC_FD_CC 
     1860        cat conftestf.f >&AC_FD_CC 
     1861   fi 
     1862   if AC_TRY_EVAL(myccompile) && test -s conftestc.o ; then 
     1863       : 
     1864   else  
     1865        echo "configure: failed program was:" >&AC_FD_CC 
     1866        cat conftestc.c >&AC_FD_CC 
     1867   fi 
     1868   # Now try the link step 
     1869   myclink='${CC-cc} $CFLAGS -o conftest conftestc.o conftestf.o $LDFLAGS >conftest.out 2>&1' 
     1870   if AC_TRY_EVAL(myclink) && test -x conftest${ac_exeext} ; then 
     1871      pac_f_init_works_with_c=yes 
     1872   else 
     1873      pac_f_init_works_with_c=no 
     1874   fi 
     1875   AC_MSG_RESULT($pac_f_init_works_with_c) 
     1876   if test "$pac_f_init_works_with_c" = "yes" ; then 
     1877       AC_DEFINE(HAVE_MPI_F_INIT_WORKS_WITH_C,1,[Define if the Fortran init code for MPI works from C programs without special libraries]) 
     1878   fi 
    18101879fi 
    18111880 
     
    26302699 
    26312700# Copy the mpicxx.h file to the main include directory 
     2701# Move a working version of the mpicxx script to the bin directory 
     2702# Create an alias mpic++ for mpicxx (BOOST, at least, makes invalid assumptions 
     2703# about the name of the MPI C++ compilation script) 
    26322704AC_OUTPUT_COMMANDS([if test $enable_cxx = yes ; then  
    26332705if test "$bashWorks" = yes ; then cp -f src/env/mpicxx.bash src/env/mpicxx ; fi 
     
    26402712    src/env/mpicxx > bin/mpicxx ; 
    26412713chmod a+x bin/mpicxx 
     2714ln -sf mpicxx bin/mpic++ 
    26422715else 
    26432716    rm -f src/env/mpicxx src/env/mpicxx.conf 
     
    30863159PAC_C_VOLATILE 
    30873160PAC_C_RESTRICT 
     3161 
     3162saveCFLAGS=$CFLAGS 
     3163CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    30883164AC_C_INLINE 
     3165CFLAGS=$saveCFLAGS 
     3166 
    30893167PAC_C_GNU_ATTRIBUTE 
    30903168# We need to check for the endianess in order to implement the 
     
    42774355        eval fullvarvalue=\$$fullvar 
    42784356        #echo "$fullvar = $fullvarvalue" 
    4279         if test "x$fullvarvalue" = "x" ; then 
     4357        if test "x$fullvarvalue" = "x" -o \ 
     4358                "x$fullvarvalue" = "xMPI_DATATYPE_NULL" ; then 
    42804359             eval $fullf77var="MPI_DATATYPE_NULL" 
    4281              continue 
     4360             continue 
    42824361        fi 
    42834362        value=0 
     
    50115090if test "$ac_cv_func_vsnprintf" = "yes" ; then 
    50125091    # vsnprintf may be declared in stdio.h and may need stdarg.h  
     5092    saveCFLAGS=$CFLAGS 
     5093    CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    50135094    PAC_FUNC_NEEDS_DECL([#include <stdio.h> 
    50145095#include <stdarg.h>],vsnprintf) 
     5096    CFLAGS=$saveCFLAGS 
    50155097fi 
    50165098# We would like to use strerror in the file namepublisher; it is also used 
     
    50215103AC_CHECK_FUNCS(snprintf) 
    50225104if test "$ac_cv_func_snprintf" = "yes" ; then 
     5105    saveCFLAGS=$CFLAGS 
     5106    CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    50235107    PAC_FUNC_NEEDS_DECL([#include <stdio.h>],snprintf) 
     5108    CFLAGS=$saveCFLAGS 
    50245109fi 
    50255110# if we are using stdarg, we may need va_copy .  Test to see if we have it 
     
    50305115# test in confdb/aclocal_cc.m4). 
    50315116AC_CACHE_CHECK([for va_copy],pac_cv_func_va_copy,[ 
     5117saveCFLAGS=$CFLAGS 
     5118CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    50325119AC_TRY_LINK([ 
    50335120#include <stdarg.h> 
     
    50405127} 
    50415128],[foo1("a test %d", 3);],pac_cv_func_va_copy=yes,pac_cv_func_va_copy=no)]) 
     5129CFLAGS=$saveCFLAGS 
     5130 
    50425131if test "$pac_cv_func_va_copy" = "yes" ; then 
    50435132    AC_DEFINE(HAVE_VA_COPY,1,[Define if we have va_copy]) 
    5044 fi 
    5045 # We might have __va_copy... 
    5046 if test "$pac_cv_func_va_copy" != "yes" ; then  
     5133else 
    50475134    AC_CACHE_CHECK([for __va_copy],pac_cv_func___va_copy,[ 
     5135    saveCFLAGS=$CFLAGS 
     5136    CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    50485137    AC_TRY_LINK([ 
    50495138#include <stdarg.h> 
     
    50565145} 
    50575146],[foo1("a test %d", 3);],pac_cv_func___va_copy=yes,pac_cv_func___va_copy=no)]) 
     5147    CFLAGS=$saveCFLAGS 
    50585148    if test "$pac_cv_func___va_copy" = "yes" ; then 
    5059     AC_DEFINE(HAVE___VA_COPY,1,[Define if we have __va_copy]) 
     5149        AC_DEFINE(HAVE___VA_COPY,1,[Define if we have __va_copy]) 
    50605150    fi 
    50615151fi 
     
    50915181    if test "$ac_cv_func_strdup" = "yes" ; then 
    50925182        # Do we need to declare strdup? 
     5183        saveCFLAGS=$CFLAGS 
     5184        CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    50935185        PAC_FUNC_NEEDS_DECL([#include <string.h>],strdup) 
     5186        CFLAGS=$saveCFLAGS 
    50945187    fi 
    50955188else 
     
    51225215AC_HAVE_FUNCS(mkstemp) 
    51235216if test "$ac_cv_func_mkstemp" = "yes" ; then 
     5217    saveCFLAGS=$CFLAGS 
     5218    CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    51245219    PAC_FUNC_NEEDS_DECL([#include <stdlib.h>],mkstemp) 
     5220    CFLAGS=$saveCFLAGS 
    51255221fi 
    51265222# fdopen() converts from an fd to a FILE* 
    51275223AC_HAVE_FUNCS(fdopen) 
    51285224if test "$ac_cv_func_fdopen" = "yes" ; then 
     5225    saveCFLAGS=$CFLAGS 
     5226    CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    51295227    PAC_FUNC_NEEDS_DECL([#include <stdlib.h>],fdopen) 
     5228    CFLAGS=$saveCFLAGS 
    51305229fi 
    51315230# putenv() sets environment variable 
    51325231AC_HAVE_FUNCS(putenv) 
    51335232if test "$ac_cv_func_putenv" = "yes" ; then 
     5233    saveCFLAGS=$CFLAGS 
     5234    CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 
    51345235    PAC_FUNC_NEEDS_DECL([#include <stdlib.h>],putenv) 
     5236    CFLAGS=$saveCFLAGS 
    51355237fi 
    51365238 
     
    57155817            AC_DEFINE(HAVE_PTHREAD_MUTEX_RECURSIVE,1,[Define if PTHREAD_MUTEX_RECURSIVE is available in pthread.h]) 
    57165818        fi                      
     5819 
     5820        # Check for PTHREAD_MUTEX_ERRORCHECK_NP and PTHREAD_MUTEX_ERRORCHECK 
     5821        AC_CACHE_CHECK([whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK_NP], 
     5822        pac_cv_has_pthread_mutex_errorcheck_np,[ 
     5823        AC_TRY_COMPILE([#include <pthread.h>], 
     5824                       [int a=PTHREAD_MUTEX_ERRORCHECK_NP;], 
     5825                       pac_cv_has_pthread_mutex_errorcheck_np=yes, 
     5826                       pac_cv_has_pthread_mutex_errorcheck_np=no)]) 
     5827        AC_CACHE_CHECK([whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK], 
     5828        pac_cv_has_pthread_mutex_errorcheck,[ 
     5829        AC_TRY_COMPILE([#include <pthread.h>], 
     5830                       [int a=PTHREAD_MUTEX_ERRORCHECK;], 
     5831                       pac_cv_has_pthread_mutex_errorcheck=yes, 
     5832                       pac_cv_has_pthread_mutex_errorcheck=no)]) 
     5833 
     5834        if test "$pac_cv_has_pthread_mutex_errorcheck" = yes ; then 
     5835            AC_DEFINE(PTHREAD_MUTEX_ERRORCHECK_VALUE,PTHREAD_MUTEX_ERRORCHECK, 
     5836                      [Define to an expression that will result in an error checking mutex type.]) 
     5837        elif test "$pac_cv_has_pthread_mutex_errorcheck_np" = yes ; then 
     5838            AC_DEFINE(PTHREAD_MUTEX_ERRORCHECK_VALUE,PTHREAD_MUTEX_ERRORCHECK_NP, 
     5839                      [Define to an expression that will result in an error checking mutex type.]) 
     5840        fi 
     5841 
    57175842        THR_LIBS="$THR_LIBS -lpthread" 
    57185843        MPICH2_THREAD_PACKAGE=pthreads 
  • mpich2/branches/dev/kumudb/doc/logging/logging.tex

    r100 r4870  
    6262Most Unix systems 
    6363\item \texttt{linux86\_cycle} - 
    64 Linux x86; uses cycle counts to approximate time in seconds 
     64Linux x86 cycle counter* 
    6565\item \texttt{linuxalpha\_cycle} - 
    66 Like linux86\_cycle, but for Linux Alpha 
     66Like linux86\_cycle, but for Linux Alpha* 
    6767\item \texttt{gcc\_ia64\_cycle} - 
    68 IPF ar.itc timer 
     68IA64 cycle counter* 
    6969\end{itemize} 
     70* Note that CPU cycle counters count cycles, not elapsed time. 
     71Because processor frequencies are variable, especially with modern 
     72power-aware hardware, these are not always reliable for timing and so 
     73should only be used if you're sure you know what you're doing. 
     74 
    7075\end{description} 
    7176 
     
    7580    --enable-timing=log 
    7681    --with-logging=rlog 
    77     --enable-timer-type=linux86_cycle 
     82    --enable-timer-type=gettimeofday 
    7883    ... 
    7984\end{verbatim} 
  • mpich2/branches/dev/kumudb/doc/windev/windev.tex.vin

    r4568 r4870  
    521521host.  The current user must match the user specifed by the \texttt{-add\_job job\_name username} 
    522522command. 
     523 
     524\item \texttt{-binding process\_binding\_scheme} 
     525Specify a process binding scheme for the MPI processes. Currently only \texttt{auto} 
     526is the supported binding scheme. Using \texttt{auto} as the process binding scheme 
     527the process manager will choose the process binding scheme automatically taking into  
     528account the load on system resources like caches. 
    523529 
    524530\item \texttt{-channel channel\_name} 
  • mpich2/branches/dev/kumudb/maint/Version

    r4642 r4870  
    1 1.1 
     11.1.1 
  • mpich2/branches/dev/kumudb/maint/clmake.in

    r4500 r4870  
    1717              "rm", "mv", "cp", "ar", "ranlib", "perl", "for",  
    1818              "/bin/rm", "/bin/mv", "/bin/cp", 
    19               "if", "make", "gnumake", "[A-Za-z0-9_\/\.-]*\/mpicc", 
     19              "if", "make", "gnumake",  
     20              "[A-Za-z0-9_\/\.-]*\/mpicc", 
     21              "[A-Za-z0-9_\/\.-]*\/mpif77", 
     22              "[A-Za-z0-9_\/\.-]*\/mpif90", 
     23              "[A-Za-z0-9_\/\.-]*\/mpicxx", 
    2024              "cleaning", "sleep", "date", "g77", "f77", "f90", "f95", "pgCC", 
    2125              "pgf77", "pgf90", "CC", "g95", "g\\+\\+", "c\\+\\+", 
     
    2731              "/bin/sh\\s+[A-Za-z0-9_\/\.-]*libtool\\s+--finish", 
    2832              "/bin/bash\\s+[A-Za-z0-9_\/\.-]*libtool\\s+--finish", 
     33              "libtool:\\s+compile:", 
     34              "libtool:\\s+link:", 
     35              "libtool:\\s+install:", 
     36              "libtool:\\s+finish:", 
    2937              "[A-Za-z0-9_\/-]*\/icc", 
    3038              "[A-Za-z0-9_\/-]*\/install-sh", 
  • mpich2/branches/dev/kumudb/maint/impgen.vcproj

    r3902 r4870  
    258258                        > 
    259259                        <File 
    260                                 RelativePath=".\gccimpgen.c" 
     260                                RelativePath=".\gccimpgen.cpp" 
    261261                                > 
    262262                        </File> 
  • mpich2/branches/dev/kumudb/maint/release.pl

    r4585 r4870  
    1414 
    1515# This path is the default for the MCS home directory mounts.  Pass 
    16 # --with-autoconf='' to this script to use whatever is in your path. 
    17 my $with_autoconf = "/homes/goodell/autoconf/ac-2.62_am-1.10.2/bin"; 
     16# --with-autoconf='' and --with-automake='' options to this script to 
     17# use whatever is in your path. 
     18my $with_autoconf = "/homes/balaji/projects/autotools/install/bin"; 
     19my $with_automake = "/homes/balaji/projects/autotools/install/bin"; 
    1820 
    1921my $logfile = "release.log"; 
     
    3032 
    3133    print "===> Checking for package $pack... "; 
    32     if ($with_autoconf and ($pack eq "autoconf" or $pack eq "automake")) { 
    33         # the user specified a dir where autoconf/automake can be found 
     34    if ($with_autoconf and ($pack eq "autoconf")) { 
     35        # the user specified a dir where autoconf can be found 
    3436        if (not -x "$with_autoconf/$pack") { 
     37            print "not found\n"; 
     38            exit; 
     39        } 
     40    } 
     41    if ($with_automake and ($pack eq "automake")) { 
     42        # the user specified a dir where automake can be found 
     43        if (not -x "$with_automake/$pack") { 
    3544            print "not found\n"; 
    3645            exit; 
     
    107116        my $cmd = "./maint/updatefiles"; 
    108117        $cmd .= " --with-autoconf=$with_autoconf" if $with_autoconf; 
     118        $cmd .= " --with-automake=$with_automake" if $with_automake; 
    109119        run_cmd($cmd); 
    110120    } 
     
    128138        my $cmd = "./maint/updatefiles"; 
    129139        $cmd .= " --with-autoconf=$with_autoconf" if $with_autoconf; 
     140        $cmd .= " --with-automake=$with_automake" if $with_automake; 
    130141        run_cmd($cmd); 
    131142    } 
     
    202213    debug("===> Creating configure... "); 
    203214    chdir("${root}/mpe2"); 
    204     run_cmd("./maint/updatefiles --with-autoconf=/homes/chan/autoconf/2.62/bin"); 
     215    { 
     216        my $cmd = "./maint/updatefiles"; 
     217        $cmd .= " --with-autoconf=$with_autoconf" if $with_autoconf; 
     218        $cmd .= " --with-automake=$with_automake" if $with_automake; 
     219        run_cmd($cmd); 
     220    } 
    205221    debug("done\n"); 
    206222 
     
    223239    "package:s"  => \$pack, 
    224240    "with-autoconf" => \$with_autoconf, 
     241    "with-automake" => \$with_automake, 
    225242    "help"     => \&usage, 
    226243) or die "unable to parse options, stopped"; 
  • mpich2/branches/dev/kumudb/maint/simplemake.in

    r4869 r4870  
    17551755    # is applied. 
    17561756    &RecursiveOp( "apply" ); 
     1757    &TargetPostamble( "apply" ); 
    17571758     
    17581759    # Clean targets 
     
    27692770    # Finally, execute make clean in any subdirs 
    27702771    &RecursiveOp( "clean" ); 
     2772    &TargetPostamble( "clean" ); 
    27712773 
    27722774    # -------------------------------------------- 
     
    27782780    } 
    27792781    print FD " distclean-xxx remove-makefile"; 
     2782    &TargetPostamble( "distclean" ); 
     2783 
    27802784    print FD "$newline"; 
    27812785     
     
    28512855        } 
    28522856        print FD " distclean-xxx remove-genmakefiles"; 
     2857        &TargetPostamble( "maintainer-clean" ); 
    28532858        print FD "$newline"; 
    28542859 
     
    40464051        } 
    40474052    } 
     4053    &TargetPostamble( "install" ); 
    40484054    print FD "$newline"; 
    40494055 
     
    41034109        &RecursiveOp( "uninstall", "install_subdirs" ); 
    41044110    } 
     4111    &TargetPostamble( "uninstall" ); 
    41054112 
    41064113    # also add the recursive installcheck target 
     
    48964903    } 
    48974904    &RecursiveOp( "coverage" ); 
     4905    &TargetPostamble( "coverage" ); 
    48984906} 
    48994907#  
  • mpich2/branches/dev/kumudb/maint/updatefiles

    r4713 r4870  
    4040 
    4141openpa_dir="src/openpa" 
    42 mpl_dir="src/pm/hydra/mpl" 
     42hydra_dir="src/pm/hydra" 
    4343 
    4444# List of steps that we will consider 
     
    5151automakedir="" 
    5252autotoolsdir="" 
     53# Extract defaults from the environment 
     54if [ "x$MPICH2_AUTOCONF_DIR" != "x" ] ; then  
     55    autoconfdir=$MPICH2_AUTOCONF_DIR 
     56fi 
     57if [ "x$MPICH2_AUTOMAKE_DIR" != "x" ] ; then  
     58    automakedir=$MPICH2_AUTOMAKE_DIR 
     59fi 
     60if [ "x$MPICH2_AUTOTOOLS_DIR" != "x" ] ; then  
     61    autotoolsdir=$MPICH2_AUTOTOOLS_DIR 
     62fi 
    5363# 
    5464# Extract the arguments intended for updatefiles.  Any others are 
     
    628638                continue 
    629639            fi 
    630             qmpl=`echo $dir | sed -e 's%.*'"$mpl_dir"'.*%FOUNDMPL%'` 
    631             if [ "$qmpl" = "FOUNDMPL" ] ; then 
    632                 # mpl is updated using autoreconf later in this script 
     640            qhydra=`echo $dir | sed -e 's%.*'"$hydra_dir"'.*%FOUNDHYDRA%'` 
     641            if [ "$qhydra" = "FOUNDHYDRA" ] ; then 
     642                # hydra is updated using autoreconf later in this script 
    633643                continue 
    634644            fi 
     
    864874    (cd $openpa_dir && $autoreconf -vif) || exit 1 
    865875fi 
    866 if [ -d "$mpl_dir" -o -L "$mpl_dir" ] ; then 
    867     echo "running autoreconf in $mpl_dir" 
    868     (cd $mpl_dir && $autoreconf -vif) || exit 1 
     876if [ -d "$hydra_dir" -o -L "$hydra_dir" ] ; then 
     877    echo "running autoreconf in $hydra_dir" 
     878    (cd $hydra_dir && $autoreconf -vif) || exit 1 
    869879fi 
    870880 
  • mpich2/branches/dev/kumudb/src/binding/cxx/buildiface

    r4250 r4870  
    409409#                   'Create_keyval' => 'int', 
    410410                    'Free_keyval' =>  'static:0:1', 
    411 # this routine is special and cannot be auto-generated 
    412 #                   'Call_errhandler' => 0, 
     411                    'Call_errhandler' => 0, 
    413412                    'Set_name' => '0:2', 
    414413                    'Get_name' => '0:3', 
     
    530529                   'Get_errhandler' => 'MPI_Errhandler', 
    531530                   'Set_errhandler' => 0, 
    532                    # this routine is special and cannot be autogenerated 
    533                    #'Call_errhandler' => 0, 
     531                   'Call_errhandler' => 0, 
    534532                   );            
    535533#     %class_mpi2file = (  
     
    595593                    'Fence' => '0',  
    596594                    'Get_group' => 'MPI_Group', 
    597                     # this routine is special and cannot be auto-generated 
    598                     #'Call_errhandler' => 0, 
     595                    'Call_errhandler' => 0, 
    599596                    'Get_attr' => '0', 
    600597                    'Start' => '0', 
     
    10061003    $defer_definition{"Join"}         = "Comm"; 
    10071004    $defer_definition{"Merge"}        = "Intercomm"; 
     1005    $defer_definition{"Call_errhandler"} = "Comm"; 
     1006    $defer_definition{"Call_errhandler"} = "File"; 
     1007    $defer_definition{"Call_errhandler"} = "Win"; 
    10081008 
    10091009    $dtype_Get_name_init = "    MPIR_CXX_InitDatatypeNames();"; 
     
    32673267    *(void **)attr_out = attr_in; return 0;}  
    32683268    static Errhandler Create_errhandler( Errhandler_fn * ); 
    3269     virtual void Call_errhandler( int errcode ) const; 
    32703269\n"; 
    32713270} 
     
    32783277 
    32793278    static Errhandler Create_errhandler( Errhandler_fn * ); 
    3280     virtual void Call_errhandler( int errcode ) const; 
    32813279\n"; 
    32823280} 
     
    32893287 
    32903288    static Errhandler Create_errhandler( Errhandler_fn * ); 
    3291     virtual void Call_errhandler( int errcode ) const; 
    32923289 
    32933290    typedef int Copy_attr_function(const Win& oldwin, int win_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, bool& flag);  
  • mpich2/branches/dev/kumudb/src/binding/f77/buildiface

    r4624 r4870  
    8383# Fortran runtime.  Thus, we must check whether the values are initialized 
    8484# before any use in any routine. 
     85# 
     86# Having said the above, however, if the environment (specifically, the 
     87# C and Fortran compilers) makes it easy for the C init routines to initialize 
     88# the Fortran environment, then we should make that easy.  This is indicated 
     89# by the CPP name HAVE_MPI_F_INIT_WORKS_WITH_C.  If that is defined, then 
     90# there is no lazy initialization of these values. 
    8591$specialInitAdded = 0; 
    8692$specialInitString = "\ 
    87     if (MPIR_F_NeedInit){ mpirinitf_(); MPIR_F_NeedInit = 0; }"; 
     93#ifndef HAVE_MPI_F_INIT_WORKS_WITH_C 
     94    if (MPIR_F_NeedInit){ mpirinitf_(); MPIR_F_NeedInit = 0; } 
     95#endif"; 
    8896 
    8997# Process arguments 
  • mpich2/branches/dev/kumudb/src/binding/f90/configure.in

    r604 r4870  
    6565# Get the C compiler (needed for type_create_f90_xxx functions) 
    6666PAC_PROG_CC 
    67 dnl Set CFLAGS for enable strict if necessary 
    68 PAC_CC_STRICT 
     67 
     68PAC_ARG_STRICT 
    6969AC_C_CONST 
    7070 
  • mpich2/branches/dev/kumudb/src/env/Makefile.sm