📄 configure.in
字号:
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_sock_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_SOCK_CONF_H_INCLUDED#define MPIDI_CH3I_SOCK_CONF_H_INCLUDED])AH_BOTTOM([#endif])echo "RUNNING CONFIGURE FOR THE SOCK CHANNEL"dnldnl First check that we have a clean build if we are doing a VPATH buildPAC_VPATH_CHECK()PAC_LOAD_BASE_CACHEAC_PROG_INSTALLPAC_PROG_CHECK_INSTALL_WORKS## On Mac OS/X, install breaks libraries unless used with the -p switchPAC_PROG_INSTALL_BREAKS_LIBS# We also need mkdir -p.PAC_PROG_MKDIR_PPAC_PROG_MAKEAC_CHECK_PROGS(AR,ar)if test -z "$AR" ; then AC_MSG_ERROR([The program ar is required for building MPICH2. Make sure that your path includes ar])fi# Note that we set RANLIB to true if we don't find it (some systems neither# need it nor provide it)AC_CHECK_PROGS(RANLIB,ranlib,true)dnl 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( \ netdb.h \ sys/ioctl.h \ sys/socket.h \ sys/sockio.h \ sys/types.h \ errno.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])fi# We need the util/sock/ch3usock.h header fileCPPFLAGS="${CPPFLAGS} -I${master_top_srcdir}/src/mpid/ch3/util/sock"AC_SUBST(device_name)AC_SUBST(channel_name)AC_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)# Master_top_builddir is imported from the top; use it for the "top"# (used for things like libtool)if test -z "$master_top_builddir" ; then if test -s ../../../../../.mpich2 ; then master_top_builddir=../../../../.. fifiAC_SUBST(master_top_builddir)# We need the script that is used to create shared libraries if either# we are creating shared libraries for MPICH2 or we are creating the# dynamically loadable library for the debugger interfaceif test -z "$CREATESHLIB" ; then if test ! -d ../../../../util ; then mkdir ../../../../util fi CREATESHLIB=`cd ../../../../util && pwd` CREATESHLIB="$CREATESHLIB/createshlib"fiAC_SUBST(CREATESHLIB)if test -z "$BUILD_DLLS" ; then BUILD_DLLS=nofiAC_SUBST(BUILD_DLLS)dnldnl Dependency handlingAC_SUBST(MAKE_DEPEND_C)dnldnl EtagsAC_SUBST(ETAGS)AC_SUBST(ETAGSADD)export ETAGSexport ETAGSADDPAC_UPDATE_BASE_CACHE# Add the MPICH2 include flags to CPPFLAGS. See the discussion above about# which include flags should start in MPICH2_INCLUDE_FLAGS and which in # CPPFLAGSCPPFLAGS="$CPPFLAGS $MPICH2_INCLUDE_FLAGS"# define the ABI version of the channel ABI that we are using.ABIVERSION=1:1AC_SUBST(ABIVERSION)dnl Place holder macro for finalizationPAC_SUBCONFIG_FINALIZE()dnl Add a step to create the dependencies directory if it is not presentAC_OUTPUT_COMMANDS([if grep 'dependencies:' Makefile >/dev/null 2>&1 ; then if test ! -s src/.deps/alldeps ; then echo "Updating dependency directories .deps" find src -type d -print | sed -e 's%\(.*\)%(cd \1 \&\& grep MAKE_DEPEND_C Makefile >/dev/null 2>\&1 \&\& ( test -d .deps || mkdir .deps) \&\& touch .deps/alldeps)%g' | shfi; fi])AC_OUTPUT(Makefile src/Makefile localdefs)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -