📄 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_dllchan_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_DLLCHAN_CONF_H_INCLUDED#define MPIDI_CH3I_DLLCHAN_CONF_H_INCLUDED])AH_BOTTOM([#endif])echo "RUNNING CONFIGURE FOR THE DLL CHANNEL"save_libs=$LIBSLIBS=dnldnl First check that we have a clean build if we are doing a VPATH buildPAC_VPATH_CHECK()PAC_LOAD_BASE_CACHEPAC_PROG_MAKEAC_CHECK_HEADERS(assert.h)LIBS=$save_libsif test -z "$SHLIB_EXT" ; then AC_MSG_ERROR([The dllchan channel requires shared library support and the symbold SHLIB_EXT (the extension of a shared library) is empty])fiMPICH_SHLIB_EXT='"'$SHLIB_EXT'"'AC_DEFINE_UNQUOTED(MPICH_SHLIB_EXT,$MPICH_SHLIB_EXT,[Extension for shared libraries])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)AC_SUBST(master_top_builddir)dnldnl Dependency handlingAC_SUBST(MAKE_DEPEND_C)dnldnl EtagsAC_SUBST(ETAGS)AC_SUBST(ETAGSADD)export ETAGSexport ETAGSADDPAC_UPDATE_BASE_CACHE# -------------------------------------------------------------------------# FIXME: This isn't clean enough yet# We need to build the DLL for the selected channels.# Extract the subchannel names from the channel_args. Set the default to# sockif test -z "$channel_args" ; then channel_args=sockfichannel_args=`echo $channel_args | sed -e 's/,/ /g'`builddir=`(cd .. && pwd)`SUBCHANNELS=$channel_argsAC_SUBST(SUBCHANNELS)firstChannel=""for subchannel_name in $channel_args ; do if test ! -d $srcdir/../${subchannel_name} ; then AC_MSG_ERROR([Channel ${subchannel_name} is unknown]) elif test ! -x $srcdir/../${subchannel_name}/configure ; then AC_MSG_ERROR([Channel ${subchannel_name} has no configure]) fi if test -z "$firstChannel" ; then firstChannel=$subchannel_name fi # # Because of the complexity in setting up channels, we invoke a script # for those channels that are prepared to provide dynamically-loaded modules rc=0 if test -x $builddir/$subchannel_name/builddll ; then # We're ok : elif test -x $srcdir/../${subchannel_name}/builddll ; then # Create the local directory if test ! -d $builddir/$subchannel_name ; then mkdir $builddir/$subchannel_name fi else AC_MSG_ERROR([Channel $subchannel_name does not support dynamic loading]) fi# (cd ../$subchannel_name && \# $srcdir/../$subchannel_name/builddll --prefix=${prefix} \# --libdir=${libdir} \# --exec-prefix=${exec_prefix} \# )# rc=$?# if test "$rc" != 0 ; thendnl # AC_MSG_ERROR([Failure in building dynamic library for $subchannel_name])# fidone# The default channel is sock if no channels selected. Otherwise,# it is the first of the channels in the listMPICH_DEFAULT_CH3_CHANNEL='"'$firstChannel'"'AC_DEFINE_UNQUOTED(MPICH_DEFAULT_CH3_CHANNEL,$MPICH_DEFAULT_CH3_CHANNEL,[Define the name of the channel to use if none is selected])# -------------------------------------------------------------------------# 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"dnl Place holder macro for finalizationPAC_SUBCONFIG_FINALIZE()AC_OUTPUT(Makefile src/Makefile localdefs)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -