⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 fortran并行计算包
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.dnldnl aclocal_cache.m4, included by sowing/confdb/aclocal.m4, fixes dnl bugs in autoconf caching.dnldnl The file name here refers to a file in the source being configuredAC_PREREQ(2.59)AC_INIT(simple_pmi.c)dnl The MPICH2 top-level configure adds a bunch of flags to thednl user-defined CFLAGS by processing different configure command-linednl arguments (--enable-g, --enable-default-optimization). These updateddnl flags are passed down as a separate flag. Here, we don't care aboutdnl the user-defined flags, but rather this updated flags, so we justdnl overwrite CFLAGS with them.PAC_SUBCONFIG_INIT()dnl Definitions will be placed in this file rather than in the DEFS variableAC_CONFIG_HEADER(pmiconf.h)AH_TOP([/* -*- Mode: C; c-basic-offset:4 ; -*- *//*   *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#ifndef PMICONF_H_INCLUDED#define PMICONF_H_INCLUDED])AH_BOTTOM([#endif])dnldnl Set the directory that contains support scripts such as install-sh anddnl config.guessdnl AC_CONFIG_AUX_DIR(../../../confdb)dnlecho "RUNNING CONFIGURE FOR THE SIMPLE PMI"dnldnldnl Use AC_ARG_ENABLE to look for --enable-feature and AC_ARG_WITH to look fordnl --with-capabilitydnldnl Enable better caching controlPAC_ARG_CACHINGAC_ARG_ENABLE(pmiport,[--enable-pmiport - Allow PMI interface to use a host-port pair to contact                   for PMI services],,enable_pmiport=default)if test "$enable_pmiport" != "no" ; then   enable_pmiport=yesfiPAC_VPATH_CHECK()PAC_LOAD_BASE_CACHEPAC_PROG_MAKEAC_CHECK_HEADERS(unistd.h string.h stdlib.h sys/socket.h strings.h)dnl Use snprintf if possible when creating messagesAC_CHECK_FUNCS(snprintf)if test "$ac_cv_func_snprintf" = "yes" ; then    PAC_FUNC_NEEDS_DECL([#include <stdio.h>],snprintf)fi## PM's that need support for a port can set the environment variable# NEED_PMIPORT in their setup_pm script.if test "$NEED_PMIPORT" = "yes" -a "$enable_pmiport" != "yes" ; then    AC_MSG_WARN([The process manager requires the pmiport capability.  Do not specify --disable-pmiport.])    enable_pmiport=yesfi#if test "$enable_pmiport" = "yes" ; then    # Check for the necessary includes and functions    missing_headers=no    AC_CHECK_HEADERS([	\	sys/types.h	\	sys/param.h	\	sys/socket.h	\	netinet/in.h	\	netinet/tcp.h	\	sys/un.h	\	netdb.h		\	],,missing_headers=yes )    saveLIBS="$LIBS"    LIBS=""    AC_SEARCH_LIBS(socket,socket,,,$saveLIBS)    AC_SEARCH_LIBS(gethostbyname,nsl,,,$saveLIBS)    PMI_LIBS="$PMI_LIBS $LIBS"    LIBS="$saveLIBS $LIBS"    missing_functions=no    AC_CHECK_FUNCS(socket setsockopt gethostbyname,,missing_functions=yes)        if test "$missing_functions" = "no" ; then        AC_DEFINE(USE_PMI_PORT,1,[Define if access to PMI information through a port rather than just an fd is allowed])    else        AC_MSG_ERROR([Cannot build simple PMI with support for an IP port because of missing functions])    fifi# Check for socklen_t .  If undefined, define it as int# (note the conditional inclusion of sys/socket.h)AC_CACHE_CHECK([whether socklen_t is defined (in sys/socket.h if present)],pac_cv_have_socklen_t,[AC_TRY_COMPILE([#include <sys/types.h>#ifdef HAVE_SYS_SOCKET_H#include <sys/socket.h>#endif]typedef struct { double a; int b; } socklen_t;,[socklen_t a;a.a=1.0;],pac_cv_have_socklen_t=no,pac_cv_have_socklen_t=yes)])if test "$pac_cv_have_socklen_t" = no ; then    AC_DEFINE(socklen_t,int,[Define if socklen_t is not defined])fi# Check for h_addr or h_addr_listAC_CACHE_CHECK([whether struct hostent contains h_addr_list],pac_cv_have_haddr_list,[AC_TRY_COMPILE([#include <netdb.h>],[struct hostent hp;hp.h_addr_list[0]=0;],pac_cv_have_haddr_list=yes,pac_cv_have_haddr_list=no)])if test "$pac_cv_have_haddr_list" = "yes" ; then    AC_DEFINE(HAVE_H_ADDR_LIST,1,[Define if struct hostent contains h_addr_list])fiAC_SUBST(AR)AC_SUBST(RANLIB)AC_SUBST(MPILIBNAME)AC_SUBST(CC)AC_SUBST(CFLAGS)AC_SUBST(CPPFLAGS)PAC_CC_SUBDIR_SHLIBSAC_SUBST(master_top_srcdir)AC_SUBST(master_top_builddir)dnldnl Dependency handlingAC_SUBST(MAKE_DEPEND_C)dnldnl EtagsAC_SUBST(ETAGS)AC_SUBST(ETAGSADD)export ETAGSexport ETAGSADDdnldnl Libraries required by SimpleAC_SUBST(PMI_LIBS)PAC_UPDATE_BASE_CACHEdnl Place holder macro for finalizationPAC_SUBCONFIG_FINALIZE()AC_OUTPUT(Makefile localdefs)PAC_SUBDIR_CACHE_CLEANUP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -