Changeset b093a2


Ignore:
Timestamp:
09/23/10 15:40:49 (8 years ago)
Author:
Anthony Chan <chan@…>
Branches:
master, 3.1.x, 3.2.x
Children:
e1393df
Parents:
673972
Message:

[svn-r7239] Allowed autoconf-2.68 in maint/updatefiles. Fixed incorrect uses of AC_*_IFELSE, i.e. without use of AC_LANG_SOURCE and friends in AC_*_IFELSE, that are detected by autoconf-2.68. But there are still a lot of warning from use of AC_PROG_LIBTOOL(or AM_PROG_LIBTOOL) and LT_INIT. Also warnings from hydra (hwloc and plpa) and openpa are not fixed here.

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • confdb/aclocal_cc.m4

    r6d08dde rb093a2  
    12931293tmp_am_cross=no 
    12941294AC_RUN_IFELSE([ 
     1295AC_LANG_SOURCE([ 
    12951296#include <string.h> 
    12961297int foo(void); 
     
    13031304    return (foo() ? 0 : 1); 
    13041305} 
     1306]) 
    13051307], pac_cv_have__func__=yes, pac_cv_have__func__=no,tmp_am_cross=yes) 
    13061308if test "$tmp_am_cross" = yes ; then 
    13071309    AC_LINK_IFELSE([ 
     1310    AC_LANG_SOURCE([ 
    13081311#include <string.h> 
    13091312int foo(void); 
     
    13161319    return (foo() ? 0 : 1); 
    13171320} 
     1321    ]) 
    13181322], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13191323fi 
     
    13281332tmp_am_cross=no 
    13291333AC_RUN_IFELSE([ 
     1334AC_LANG_SOURCE([ 
    13301335#include <string.h> 
    13311336int foo(void); 
     
    13381343    return (foo() ? 0 : 1); 
    13391344} 
     1345]) 
    13401346], pac_cv_have_cap__func__=yes, pac_cv_have_cap__func__=no,tmp_am_cross=yes) 
    13411347if test "$tmp_am_cross" = yes ; then 
    13421348    AC_LINK_IFELSE([ 
     1349    AC_LANG_SOURCE([ 
    13431350#include <string.h> 
    13441351int foo(void); 
     
    13511358    return (foo() ? 0 : 1); 
    13521359} 
     1360    ]) 
    13531361], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13541362fi 
     
    13631371tmp_am_cross=no 
    13641372AC_RUN_IFELSE([ 
     1373AC_LANG_SOURCE([ 
    13651374#include <string.h> 
    13661375int foo(void); 
     
    13731382    return (foo() ? 0 : 1); 
    13741383} 
     1384]) 
    13751385], pac_cv_have__function__=yes, pac_cv_have__function__=no,tmp_am_cross=yes) 
    13761386if test "$tmp_am_cross" = yes ; then 
    13771387    AC_LINK_IFELSE([ 
     1388    AC_LANG_SOURCE([ 
    13781389#include <string.h> 
    13791390int foo(void); 
     
    13861397    return (foo() ? 0 : 1); 
    13871398} 
     1399    ]) 
    13881400], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13891401fi 
  • maint/updatefiles

    rd69acc rb093a2  
    391391            63|64|67) 
    392392                ;; 
     393            68) 
     394                warn "autoconf-2.68 emits massive amount of warnings on certain uses of AC_*_IFELSE." 
     395                ;; 
    393396            *) 
    394                 echo "autoconf version 2.63, 2.64 or 2.67 is required" 
     397                echo "autoconf version 2.63, 2.64, 2.67 or 2.68 is required" 
    395398                exit 1 
    396399                ;; 
  • src/mpe2/src/logging/configure.in

    r16b155 rb093a2  
    409409if test "$enable_largefile" != no ; then 
    410410    AC_MSG_CHECKING( [for O_LARGEFILE for open()] ) 
    411     AC_COMPILE_IFELSE( AC_LANG_PROGRAM( [ 
     411    AC_COMPILE_IFELSE([ 
     412        AC_LANG_PROGRAM([ 
    412413#if defined( HAVE_SYS_TYPES_H ) 
    413414#include <sys/types.h> 
     
    419420#include <fcntl.h> 
    420421#endif 
    421                      ], [ 
    422     int fd; 
    423     fd = open( "tmpfile", O_CREAT | O_LARGEFILE, 0644 );    
    424                      ] ), [ 
    425     AC_DEFINE( HAVE_O_LARGEFILE, 1, 
    426               [Define to 1 if O_LARGEFILE flag for open() exists.] ) 
    427     AC_MSG_RESULT(yes) 
    428     ], [ 
    429         AC_COMPILE_IFELSE( AC_LANG_PROGRAM( [ 
     422        ],[ 
     423        int fd; 
     424        fd = open( "tmpfile", O_CREAT | O_LARGEFILE, 0644 );    
     425        ]) 
     426    ],[ 
     427        AC_DEFINE( HAVE_O_LARGEFILE, 1, 
     428                   [Define to 1 if O_LARGEFILE flag for open() exists.] ) 
     429        AC_MSG_RESULT(yes) 
     430    ],[ 
     431        AC_COMPILE_IFELSE([ 
     432            AC_LANG_PROGRAM([ 
    430433#define _LARGEFILE64_SOURCE 
    431434#if defined( HAVE_SYS_TYPES_H ) 
     
    438441#include <fcntl.h> 
    439442#endif 
    440                          ], [ 
     443            ],[ 
    441444    int fd; 
    442445    fd = open( "tmpfile", O_CREAT | O_LARGEFILE, 0644 );    
    443                          ] ), [ 
     446            ]) 
     447        ],[ 
    444448            AC_DEFINE( HAVE_O_LARGEFILE, 1, 
    445449                       [Define to 1 if O_LARGEFILE flag for open() exists.] ) 
     
    447451                       [Define if 64-bit file address support in 32-bit OS.] ) 
    448452            AC_MSG_RESULT( [needs _LARGEFILE64_SOURCE] ) 
    449         ], [ 
     453        ],[ 
    450454            AC_MSG_RESULT(no) 
    451         ] ) 
    452     ] ) 
     455        ]) 
     456    ]) 
    453457fi 
    454458        dnl end of AC_COMPILE_IFELSE with O_LARGEFILE 
     
    456460 
    457461AC_MSG_CHECKING( [for O_BINARY for open()] ) 
    458 AC_LINK_IFELSE( AC_LANG_PROGRAM( [ 
     462AC_LINK_IFELSE([ 
     463    AC_LANG_PROGRAM([ 
    459464#if defined( HAVE_FCNTL_H ) 
    460465#include <fcntl.h> 
    461466#endif 
    462               ], [ 
     467    ],[ 
    463468    int fd; 
    464469    fd = open( "tmpfile", O_CREAT | O_BINARY, 0644 ); 
    465               ] ), [ 
     470    ]) 
     471],[ 
    466472    AC_DEFINE( HAVE_O_BINARY, 1, 
    467473               [Define to 1 if O_BINARY flag for open() exists.] ) 
    468474    AC_MSG_RESULT(yes) 
    469     ], [ 
     475],[ 
    470476    AC_MSG_RESULT(no) 
    471 ] ) 
     477]) 
    472478 
    473479dnl   Determine if PMPI_Comm_create_keyval exists 
  • src/mpi/romio/confdb/aclocal_cc.m4

    r6d08dde rb093a2  
    12931293tmp_am_cross=no 
    12941294AC_RUN_IFELSE([ 
     1295AC_LANG_SOURCE([ 
    12951296#include <string.h> 
    12961297int foo(void); 
     
    13031304    return (foo() ? 0 : 1); 
    13041305} 
     1306]) 
    13051307], pac_cv_have__func__=yes, pac_cv_have__func__=no,tmp_am_cross=yes) 
    13061308if test "$tmp_am_cross" = yes ; then 
    13071309    AC_LINK_IFELSE([ 
     1310    AC_LANG_SOURCE([ 
    13081311#include <string.h> 
    13091312int foo(void); 
     
    13161319    return (foo() ? 0 : 1); 
    13171320} 
     1321    ]) 
    13181322], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13191323fi 
     
    13281332tmp_am_cross=no 
    13291333AC_RUN_IFELSE([ 
     1334AC_LANG_SOURCE([ 
    13301335#include <string.h> 
    13311336int foo(void); 
     
    13381343    return (foo() ? 0 : 1); 
    13391344} 
     1345]) 
    13401346], pac_cv_have_cap__func__=yes, pac_cv_have_cap__func__=no,tmp_am_cross=yes) 
    13411347if test "$tmp_am_cross" = yes ; then 
    13421348    AC_LINK_IFELSE([ 
     1349    AC_LANG_SOURCE([ 
    13431350#include <string.h> 
    13441351int foo(void); 
     
    13511358    return (foo() ? 0 : 1); 
    13521359} 
     1360    ]) 
    13531361], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13541362fi 
     
    13631371tmp_am_cross=no 
    13641372AC_RUN_IFELSE([ 
     1373AC_LANG_SOURCE([ 
    13651374#include <string.h> 
    13661375int foo(void); 
     
    13731382    return (foo() ? 0 : 1); 
    13741383} 
     1384]) 
    13751385], pac_cv_have__function__=yes, pac_cv_have__function__=no,tmp_am_cross=yes) 
    13761386if test "$tmp_am_cross" = yes ; then 
    13771387    AC_LINK_IFELSE([ 
     1388    AC_LANG_SOURCE([ 
    13781389#include <string.h> 
    13791390int foo(void); 
     
    13861397    return (foo() ? 0 : 1); 
    13871398} 
     1399    ]) 
    13881400], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13891401fi 
  • src/mpi/romio/configure.in

    rde271d rb093a2  
    12421242# layout change after pvfs-2.6.3: 
    12431243if test -n "$file_system_pvfs2"; then 
    1244     AC_COMPILE_IFELSE( 
    1245         
     1244    AC_COMPILE_IFELSE([ 
     1245        AC_LANG_SOURCE([ 
    12461246#include <stdlib.h> 
    12471247#include "pvfs2.h" 
     
    12511251              PVFS_sys_create(NULL, ref, attr, NULL, NULL, NULL, NULL);  
    12521252          return 0; } 
    1253        ], 
     1253       ])], 
    12541254       , AC_DEFINE(HAVE_PVFS2_CREATE_WITHOUT_LAYOUT, 1,  
    12551255                [Define if PVFS_sys_create does not have layout parameter]) 
  • src/mpid/ch3/channels/nemesis/configure.in

    rc9aa03 rb093a2  
    282282if test "$openpa_present_and_working" = yes ; then 
    283283    AC_PREPROC_IFELSE([ 
     284    AC_LANG_SOURCE([ 
    284285#include <opa_primitives.h> 
    285286#if defined(OPA_USE_LOCK_BASED_PRIMITIVES) 
    286287#error "lock-based emulation is currently in use" 
    287288#endif 
     289    ]) 
    288290],using_emulated_atomics=no,using_emulated_atomics=yes) 
    289291 
    290292    if test "$using_emulated_atomics" = "yes" ; then 
    291293        AC_PREPROC_IFELSE([ 
     294        AC_LANG_SOURCE([ 
    292295#include <opa_primitives.h> 
    293296/* may also be undefined in older (pre-r106) versions of OPA */ 
     
    295298#error "lock-based emulation was automatic, not explicit" 
    296299#endif 
     300]) 
    297301],[atomics_explicitly_emulated=yes],[atomics_explicitly_emulated=no]) 
    298302        if test "$atomics_explicitly_emulated" = "yes" ; then 
  • src/mpid/globus/configure.in

    r774230 rb093a2  
    155155lac_cv_my_endian,[ 
    156156AC_RUN_IFELSE([ 
     157AC_LANG_SOURCE([ 
    157158#include <stdio.h> 
    158159#include <stdlib.h> 
     
    181182    exit(0); 
    182183} 
     184]) 
    183185],lac_cv_my_endian=`cat conftest.out`, 
    184186  lac_cv_my_endian="FAILED", 
     
    273275lac_cv_have_c99_variadic_macros,[ 
    274276AC_COMPILE_IFELSE([ 
     277AC_LANG_SOURCE([ 
    275278#include <stdio.h> 
    276279#define MY_PRINTF(rank, fmt, ...)  printf("%d: " fmt, rank, ## __VA_ARGS__) 
     
    281284    return 0; 
    282285} 
     286]) 
    283287], lac_cv_have_c99_variadic_macros=yes, lac_cv_have_c99_variadic_macros=no) 
    284288]) 
     
    290294lac_cv_have_gnu_variadic_macros,[ 
    291295AC_COMPILE_IFELSE([ 
     296AC_LANG_SOURCE([ 
    292297#include <stdio.h> 
    293298#define MY_PRINTF(rank, fmt, args...)  printf("%d: " fmt, rank, ## args) 
     
    298303    return 0; 
    299304} 
     305]) 
    300306], lac_cv_have_gnu_variadic_macros=yes, lac_cv_have_gnu_variadic_macros=no) 
    301307]) 
     
    310316lac_cv_have__func__,[ 
    311317AC_RUN_IFELSE([ 
     318AC_LANG_SOURCE([ 
    312319#include <string.h> 
    313320int foo(void); 
     
    320327    return (foo() ? 0 : 1); 
    321328} 
     329]) 
    322330], lac_cv_have__func__=yes, lac_cv_have__func__=no) 
    323331]) 
     
    329337lac_cv_have_cap__func__,[ 
    330338AC_RUN_IFELSE([ 
     339AC_LANG_SOURCE([ 
    331340#include <string.h> 
    332341int foo(void); 
     
    339348    return (foo() ? 0 : 1); 
    340349} 
     350]) 
    341351], lac_cv_have_cap__func__=yes, lac_cv_have_cap__func__=no) 
    342352]) 
     
    348358lac_cv_have__function__,[ 
    349359AC_RUN_IFELSE([ 
     360AC_LANG_SOURCE([ 
    350361#include <string.h> 
    351362int foo(void); 
     
    358369    return (foo() ? 0 : 1); 
    359370} 
     371]) 
    360372], lac_cv_have__function__=yes, lac_cv_have__function__=no) 
    361373]) 
     
    375387MPIG_CONFIGURE_ACTIVE="" 
    376388AC_LINK_IFELSE([ 
     389AC_LANG_SOURCE([ 
    377390void $1(float * a); 
    378391int main(int argc, char *argv[[]]) 
     
    384397} 
    385398], lac_lower_varname=yes, lac_lower_varname=no) 
     399]) 
    386400MPIG_CONFIGURE_ACTIVE=${SAVE_MPIG_CONFIGURE_ACTIVE} 
    387401]) 
     
    401415MPIG_CONFIGURE_ACTIVE="" 
    402416AC_COMPILE_IFELSE([ 
     417AC_LANG_SOURCE([ 
    403418#include "mpi.h" 
    404419void func($1 a); 
     
    409424    return 0; 
    410425} 
     426]) 
    411427], lac_lower_varname=yes, lac_lower_varname=no) 
    412428MPIG_CONFIGURE_ACTIVE=${SAVE_MPIG_CONFIGURE_ACTIVE} 
     
    569585    lac_cv_vmpi_version,[ 
    570586        AC_RUN_IFELSE([ 
     587        AC_LANG_SOURCE([ 
    571588        #include "mpi.h" 
    572589        #include <stdio.h> 
     
    578595            return 0; 
    579596        } 
     597        ]) 
    580598        ], lac_cv_vmpi_version=`cat conftest.out`, lac_cv_vmpi_version=0) 
    581599    ]) 
  • src/mpl/confdb/aclocal_cc.m4

    r6d08dde rb093a2  
    12931293tmp_am_cross=no 
    12941294AC_RUN_IFELSE([ 
     1295AC_LANG_SOURCE([ 
    12951296#include <string.h> 
    12961297int foo(void); 
     
    13031304    return (foo() ? 0 : 1); 
    13041305} 
     1306]) 
    13051307], pac_cv_have__func__=yes, pac_cv_have__func__=no,tmp_am_cross=yes) 
    13061308if test "$tmp_am_cross" = yes ; then 
    13071309    AC_LINK_IFELSE([ 
     1310    AC_LANG_SOURCE([ 
    13081311#include <string.h> 
    13091312int foo(void); 
     
    13161319    return (foo() ? 0 : 1); 
    13171320} 
     1321    ]) 
    13181322], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13191323fi 
     
    13281332tmp_am_cross=no 
    13291333AC_RUN_IFELSE([ 
     1334AC_LANG_SOURCE([ 
    13301335#include <string.h> 
    13311336int foo(void); 
     
    13381343    return (foo() ? 0 : 1); 
    13391344} 
     1345]) 
    13401346], pac_cv_have_cap__func__=yes, pac_cv_have_cap__func__=no,tmp_am_cross=yes) 
    13411347if test "$tmp_am_cross" = yes ; then 
    13421348    AC_LINK_IFELSE([ 
     1349    AC_LANG_SOURCE([ 
    13431350#include <string.h> 
    13441351int foo(void); 
     
    13511358    return (foo() ? 0 : 1); 
    13521359} 
     1360    ]) 
    13531361], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13541362fi 
     
    13631371tmp_am_cross=no 
    13641372AC_RUN_IFELSE([ 
     1373AC_LANG_SOURCE([ 
    13651374#include <string.h> 
    13661375int foo(void); 
     
    13731382    return (foo() ? 0 : 1); 
    13741383} 
     1384]) 
    13751385], pac_cv_have__function__=yes, pac_cv_have__function__=no,tmp_am_cross=yes) 
    13761386if test "$tmp_am_cross" = yes ; then 
    13771387    AC_LINK_IFELSE([ 
     1388    AC_LANG_SOURCE([ 
    13781389#include <string.h> 
    13791390int foo(void); 
     
    13861397    return (foo() ? 0 : 1); 
    13871398} 
     1399    ]) 
    13881400], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13891401fi 
  • src/pm/hydra/confdb/aclocal_cc.m4

    r6d08dde rb093a2  
    12931293tmp_am_cross=no 
    12941294AC_RUN_IFELSE([ 
     1295AC_LANG_SOURCE([ 
    12951296#include <string.h> 
    12961297int foo(void); 
     
    13031304    return (foo() ? 0 : 1); 
    13041305} 
     1306]) 
    13051307], pac_cv_have__func__=yes, pac_cv_have__func__=no,tmp_am_cross=yes) 
    13061308if test "$tmp_am_cross" = yes ; then 
    13071309    AC_LINK_IFELSE([ 
     1310    AC_LANG_SOURCE([ 
    13081311#include <string.h> 
    13091312int foo(void); 
     
    13161319    return (foo() ? 0 : 1); 
    13171320} 
     1321    ]) 
    13181322], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13191323fi 
     
    13281332tmp_am_cross=no 
    13291333AC_RUN_IFELSE([ 
     1334AC_LANG_SOURCE([ 
    13301335#include <string.h> 
    13311336int foo(void); 
     
    13381343    return (foo() ? 0 : 1); 
    13391344} 
     1345]) 
    13401346], pac_cv_have_cap__func__=yes, pac_cv_have_cap__func__=no,tmp_am_cross=yes) 
    13411347if test "$tmp_am_cross" = yes ; then 
    13421348    AC_LINK_IFELSE([ 
     1349    AC_LANG_SOURCE([ 
    13431350#include <string.h> 
    13441351int foo(void); 
     
    13511358    return (foo() ? 0 : 1); 
    13521359} 
     1360    ]) 
    13531361], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13541362fi 
     
    13631371tmp_am_cross=no 
    13641372AC_RUN_IFELSE([ 
     1373AC_LANG_SOURCE([ 
    13651374#include <string.h> 
    13661375int foo(void); 
     
    13731382    return (foo() ? 0 : 1); 
    13741383} 
     1384]) 
    13751385], pac_cv_have__function__=yes, pac_cv_have__function__=no,tmp_am_cross=yes) 
    13761386if test "$tmp_am_cross" = yes ; then 
    13771387    AC_LINK_IFELSE([ 
     1388    AC_LANG_SOURCE([ 
    13781389#include <string.h> 
    13791390int foo(void); 
     
    13861397    return (foo() ? 0 : 1); 
    13871398} 
     1399    ]) 
    13881400], pac_cv_have__func__=yes, pac_cv_have__func__=no) 
    13891401fi 
Note: See TracChangeset for help on using the changeset viewer.