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

📄 configure.in

📁 fortran并行计算包
💻 IN
📖 第 1 页 / 共 2 页
字号:
AC_PREREQ(2.59)AC_INIT(configure.in)dnldnl Set the directory that contains support scripts such as install-sh anddnl config.guessdnlAC_CONFIG_AUX_DIR(../../../../../confdb)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()dnldnl Definitions will be placed in this file rather than in the DEFS variablednlAC_CONFIG_HEADER(include/mpidi_ch3i_nemesis_conf.h)AH_TOP([/* -*- Mode: C; c-basic-offset:4 ; -*- *//*   *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#ifndef MPIDI_CH3I_NEMESIS_CONF_H_INCLUDED#define MPIDI_CH3I_NEMESIS_CONF_H_INCLUDED])AH_BOTTOM([#endif])echo "RUNNING CONFIGURE FOR THE NEMESIS CHANNEL"dnldnl First check that we have a clean build if we are doing a VPATH buildPAC_VPATH_CHECK()PAC_PROG_MAKEAC_C_INLINEdnl AC_CHECK_HEADER(net/if.h) fails on Solaris; extra header files neededAC_TRY_COMPILE([#include <sys/types.h>#include <sys/socket.h>#include <net/if.h>],,lac_cv_header_net_if_h=yes,lac_cv_header_net_if_h=no)echo "checking for net/if.h... $lac_cv_header_net_if_h"if test "$lac_cv_header_net_if_h" = "yes" ; then    AC_DEFINE(HAVE_NET_IF_H, 1, [Define if you have the <net/if.h> header file.])fiAC_CHECK_HEADERS(				\	assert.h				\	netdb.h					\	sys/ioctl.h				\	sys/socket.h				\	sys/sockio.h				\	sys/types.h				\	errno.h					\	sys/ipc.h				\	sys/shm.h)# netinet/in.h often requires sys/types.h first.  With AC 2.57, check_headers# does the right thing, which is to test whether the header is found # by the compiler, but this can cause problems when the header needs # other headers.  2.57 changes the syntax (!) of check_headers to allow # additional headers.AC_CACHE_CHECK([for netinet/in.h],ac_cv_header_netinet_in_h,[AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H#include <sys/types.h>#endif#include <netinet/in.h>],[int a=0;],    ac_cv_header_netinet_in_h=yes,    ac_cv_header_netinet_in_h=no)])if test "$ac_cv_header_netinet_in_h" = yes ; then    AC_DEFINE(HAVE_NETINET_IN_H,1,[Define if netinet/in.h exists])fiAC_ARG_ENABLE(fast,[--enable-fast - pick the appropriate options for fast execution.  This                turns off error checking and timing collection],,enable_fast=no)if test "$enable_fast" = "yes" ; then    AC_DEFINE(ENABLE_NO_SCHED_YIELD,1,[Define to remove sched_yield()s in polling loops])fiAC_ARG_WITH(gm, [--with-gm=path - specify path where gm include directory and lib directory can be found],if test "${with_gm}" != "yes" -a "${with_gm}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_gm}/lib64 -L${with_gm}/lib"    CPPFLAGS="$CPPFLAGS -I${with_gm}/include"fi,)AC_ARG_WITH(gm-include, [--with-gm-include=path - specify path to gm include directory],if test "${with_gm_include}" != "yes" -a "${with_gm_include}" != "no" ; then    CPPFLAGS="$CPPFLAGS -I${with_gm_include}"fi,)AC_ARG_WITH(gm-lib, [--with-gm-lib=path - specify path to gm lib directory],if test "${with_gm_lib}" != "yes" -a "${with_gm_lib}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_gm_lib}"fi,)if test "${nemesis_network}" == "gm" ; then     AC_CHECK_HEADER([gm.h], , [        AC_MSG_ERROR(['gm.h not found.  Did you specify --with-gm= or --with-gm-include=?'])    ])    AC_CHECK_LIB(gm, gm_init, , [        AC_MSG_ERROR(['gm library not found.  Did you specify --with-gm= or --with-gm-lib=?'])    ])fi;AC_ARG_WITH(ib, [--with-ib=path - specify path where InfiniBand include directory and lib directory can be found],if test "${with_ib}" != "yes" -a "${with_ib}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_ib}/lib64 -L${with_ib}/lib"    CPPFLAGS="$CPPFLAGS -I${with_ib}/include -I${with_ib}/include/infiniband"fi,)AC_ARG_WITH(ib-include, [--with-ib-include=path - specify path to InfiniBand include directory],if test "${with_ib_include}" != "yes" -a "${with_ib_include}" != "no" ; then    CPPFLAGS="$CPPFLAGS -I${with_ib_include}"fi,)AC_ARG_WITH(ib-lib, [--with-ib-lib=path - specify path to InfiniBand lib directory],if test "${with_ib_lib}" != "yes" -a "${with_ib_lib}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_ib_lib}"fi,)if test "${nemesis_network}" == "ib" ; then     AC_CHECK_HEADER([verbs.h], , [        AC_MSG_ERROR(['verbs.h not found.  Did you specify --with-ib= or --with-ib-include=?'])    ])    AC_CHECK_LIB(ibverbs, ibv_open_device, , [        AC_MSG_ERROR(['InfiniBand library not found.  Did you specify --with-ib= or --with-ib-lib=?'])    ])fi;AC_ARG_WITH(mx, [--with-mx=path - specify path where mx include directory and lib directory can be found],if test "${with_mx}" != "yes" -a "${with_mx}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_mx}/lib64 -L${with_mx}/lib"    CPPFLAGS="$CPPFLAGS -I${with_mx}/include"fi,)AC_ARG_WITH(mx-include, [--with-mx-include=path - specify path to mx include directory],if test "${with_mx_include}" != "yes" -a "${with_mx_include}" != "no" ; then    CPPFLAGS="$CPPFLAGS -I${with_mx_include}"fi,)AC_ARG_WITH(mx-lib, [--with-mx-lib=path - specify path to mx lib directory],if test "${with_mx_lib}" != "yes" -a "${with_mx_lib}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_mx_lib}"fi,)if test "${nemesis_network}" == "mx" ; then    AC_CHECK_HEADER([myriexpress.h], , [        AC_MSG_ERROR(['myriexpress.h not found.  Did you specify --with-mx= or --with-mx-include=?'])    ])    #mx_init is a macro, switch to mx_finalize to find the symbol    AC_CHECK_LIB(myriexpress, mx_finalize, , [        AC_MSG_ERROR(['myriexpress library not found.  Did you specify --with-mx= or --with-mx-lib=?'])    ])fi;AC_ARG_WITH(elan, [--with-elan=path - specify path where elan include directory and lib directory can be found],if test "${with_elan}" != "yes" -a "${with_elan}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_elan}/lib64 -L${with_elan}/lib"    CPPFLAGS="$CPPFLAGS -I${with_elan}/include"	fi,)AC_ARG_WITH(elan-include, [--with-elan-include=path - specify path to elan include directory],if test "${with_elan_include}" != "yes" -a "${with_elan_include}" != "no" ; then    CPPFLAGS="$CPPFLAGS -I${with_elan_include}"fi,)AC_ARG_WITH(elan-lib, [--with-elan-lib=path - specify path to elan lib directory],if test "${with_elan_lib}" != "yes" -a "${with_elan_lib}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_elan_lib}"fi,)AC_ARG_WITH(qsnet-include, [--with-qsnet-include=path - specify path to qsnet include directory],if test "${with_qsnet_include}" != "yes" -a "${with_qsnet_include}" != "no" ; then    CPPFLAGS="$CPPFLAGS -I${with_qsnet_include}"fi,)    if test "${nemesis_network}" == "elan" ; thenecho "=== You're about to use the experimental Nemesis/Elan network module." echo "=== This module has not been thoroughly tested and some performance issues remain."    AC_CHECK_HEADER([elan/elan.h], , [	AC_MSG_ERROR(['elan.h not found.  Did you specify --with-elan= or --with-elan-include=? or --with-qsnet-include=?'])    ])    AC_CHECK_LIB(elan, elan_baseInit, , [        AC_MSG_ERROR(['elan library not found.  Did you specify --with-elan= or --with-elan-lib=? or --with-qsnet-include=?'])    ])fi;AC_ARG_WITH(sctp, [--with-sctp=path - specify path where sctp include directory and lib directory can be found],if test "${with_sctp}" != "yes" -a "${with_sctp}" != "no" ; then    LDFLAGS="$LDFLAGS -L${with_sctp}/lib64 -L${with_sctp}/lib"    CPPFLAGS="$CPPFLAGS -I${with_sctp}/include"fi,)AC_ARG_WITH(sctp-include, [--with-sctp-include=path - specify path to sctp include directory],if test "${with_sctp_include}" != "yes" -a "${with_sctp_include}" != "no" ; then    CPPFLAGS="$CPPFLAGS -I${with_sctp_include}"fi,)

⌨️ 快捷键说明

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