aclocal_shl.m4

来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· M4 代码 · 共 71 行

M4
71
字号
dnldnl Definitions for creating shared librariesdnldnl The purpose of these definitions is to provide common support for dnl shared libraries, with *or without* the use of the GNU Libtool package.dnl For many of our important platforms, the Libtool approach is overkill,dnl and can be particularly painful for developers.dnldnl/*Ddnl PAC_ARG_SHAREDLIBS - Add --enable-sharedlibs=kind to configure.dnl dnl Synopsis:dnl PAC_ARG_SHAREDLIBSdnldnl Output effects:dnl Adds '--enable-sharedlibs=kind' to the command line.  If this is enabled,dnl then based on the value of 'kind', programs are selected for the dnl names 'CC_SHL' and 'CC_LINK_SHL' that configure will substitute for indnl 'Makefile.in's.  These symbols are generated by 'simplemake' whendnl shared library support is selected.dnldnl Supported values of 'kind' include \:dnl+    gcc - Use gcc to create both shared objects and librariesdnl-    none - The same as '--disable-sharedlibs'dnldnl Others will be added as experience dictates.  Likely names arednl + libtool - For general GNU libtooldnl . linux-pgcc - For Portland group under Linuxdnl - solaris-cc - For Solaris C compilerdnldnl Notes:dnl Shared libraries are only partially implemented.  Additional symbolsdnl will probably be defined, including symbols to specify how shared librarydnl search paths are specified and how shared library names are set.dnl D*/AC_DEFUN(PAC_ARG_SHAREDLIBS,[AC_ARG_ENABLE(sharedlibs,[--enable-sharedlibs=kind - Enable shared libraries.  kind may be    gcc     - Standard gcc and GNU ld options for creating shared libraries    libtool - GNU libtool     none    - same as --disable-sharedlibsOnly gcc is currently ignored],,enable_sharedlibs=none)dnlCC_SHL=trueC_LINK_SHL=truecase "$enable_sharedlibs" in     no|none)    ;;    gcc)    AC_MSG_RESULT([Creating shared libraries using GNU])    # Not quite right yet.  See mpich/util/makesharedlib    # Use syntax that works in both Make and the shell    #C_LINK_SHL='${CC} -shared -Wl,-r'    C_LINK_SHL='${CC} -shared'    # For example, include the libname as ${LIBNAME_SHL}    #C_LINK_SHL='${CC} -shared -Wl,-h,<finallibname>'    CC_SHL='${CC} -shared -fpic'    ;;    libtool)    AC_MSG_RESULT([Creating shared libraries using libtool (not yet supported)])    ;;dnldnl Other, such as solaris-cc    *)    AC_MSG_WARN([Unknown value $enable_sharedlibs for enable-sharedlibs])    ;;  esacAC_SUBST(CC_SHL)AC_SUBST(C_LINK_SHL)])

⌨️ 快捷键说明

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