📄 configure.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_INIT(uni_pmiutil.h)dnldnl Definitions will be placed in this file rather than in the DEFS variableAC_CONFIG_HEADER(pmiconf.h)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 UNI 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_CACHINGdnlAC_ARG_ENABLE(echo, [--enable-echo - Turn on strong echoing. The default is enable=no.] ,set -x)dnlAC_ARG_ENABLE(strict,[--enable-strict - Turn on strict debugging with gcc],CFLAGS="$CFLAGS -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes")dnlAC_ARG_ENABLE(error-checking,[--enable-error-checking=level - Control the amount of error checking. level may be no - no error checking runtime - error checking controlable at runtime through environment variables all - error checking always enabled],,enable_error_checking=all)dnlAC_ARG_ENABLE(timing,[--enable-timing=level - Control the amount of timing information collected by the MPICH implementation. level may be none - Collect no data all - Collect lots of data runtime - Runtime control of data collectedThe default is all.],,enable_timing=all)dnlAC_ARG_ENABLE(g,[--enable-g=option - Control the level of debugging support in the PMIimplementation. option may be a list of common separated names including none - No debugging mem - Memory usage tracing all - All of the above choices],,enable_g=none)dnldnldnl First check that we have a clean build if we are doing a VPATH buildif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status ; then AC_MSG_ERROR([You cannot do a VPATH build if the source directory has been configured. Run "make distclean" in $srcdir first.])fidnldnl Process any enable or with valuesdnl error-checkingcase "$enable_error_checking" in no) ;; all|yes|runtime) changequote(<<,>>) error_checking_kind=`echo $enable_error_checking | tr '[a-z]' '[A-Z]'` changequote([,]) error_checking_kind=MPID_ERROR_LEVEL_$error_checking_kind AC_DEFINE_UNQUOTED(HAVE_ERROR_CHECKING,$error_checking_kind,[define to enable error checking]) ;; *) AC_MSG_WARN([Unknown value $enable_error_checking for enable-error-checking]) ;;esacdnldnl timingcase "$enable_timing" in no|none) ;; all|log|yes|time|runtime) changequote(<<,>>) timing_kind=`echo $enable_timing | tr '[a-z]' '[A-Z]'` changequote([,]) timing_kind=MPID_TIMING_KIND_$timing_kind AC_DEFINE_UNQUOTED(HAVE_TIMING,$timing_kind,[define to enable timing collection]) ;; *) AC_MSG_WARN([Unknown value $enable_timing for enable-timing]) ;; esacdnldnl enable-gcase "$enable_g" in no|none) ;; mem|all) AC_DEFINE(USE_MEMORY_TRACING,,[Define to enable memory tracing]) enable_g_mem=yes CFLAGS="$CFLAGS -g" ;; *) AC_MSG_WARN([Unknown value $enable_g for enable-g]) ;;esacdnldnl This test is complicated by the fact that top_srcdir is not set untildnl the very end of configure. Instead, we get it ourselvesif test -z "$top_srcdir" ; then use_top_srcdir=$srcdir else use_top_srcdir=$top_srcdirfidnl The recommended order for items in a configure.in file isdnl check for programsdnl check for librariesdnl check for header filesdnl check for typedefsdnl check for structuresdnl check for compiler characteristicsdnl check for library functionsdnl check for system servicesdnl Here are some sample testsdnldnl Find a C compiler (choose gcc first)AC_PROG_CCAC_PATH_PROG(AR,ar)AC_PATH_PROG(RANLIB,ranlib)dnldnl Find SSH. If SSH is defined, use that insteaddnl AC_PATH_PROG(SSH,ssh)dnldnl AC_PROG_MAKE_SETPAC_PROG_MAKEdnldnl check for compiler characteristicsAC_C_CONSTdnldnl Look for Standard headersAC_HEADER_STDCdnl Check for a specific headerAC_CHECK_HEADERS(string.h sys/time.h unistd.h sys/types.h stdlib.h errno.h)dnldnl Setup other replaceable valuesMPILIBNAME=mpichAC_SUBST(MPILIBNAME)AC_SUBST(master_top_srcdir)dnl Configure any subdirectories. Note that config.status will *not* dnl reexecute these!dnl Export any important variables first:export ARexport RANLIBexport MPILIBNAMEexport CCPAC_SUBDIR_CACHEAC_OUTPUT(Makefile)PAC_SUBDIR_CACHE_CLEANUP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -