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

📄 configure

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻
📖 第 1 页 / 共 4 页
字号:
firm -f conftest*#--------------------------------------------------------------------#	Supply a substitute for stdlib.h if it doesn't define strtol,#	strtoul, or strtod (which it doesn't in some versions of SunOS).#--------------------------------------------------------------------echo checking for proper stdlib.hecho '#include "confdefs.h"#include <stdlib.h>' > conftest.ceval "$CPP conftest.c > conftest.out 2>&1"if egrep "strtol" conftest.out >/dev/null 2>&1; then  rm -rf conftest*  tk_stdlib=1else  rm -rf conftest*  tk_stdlib=0firm -f conftest*echo '#include "confdefs.h"#include <stdlib.h>' > conftest.ceval "$CPP conftest.c > conftest.out 2>&1"if egrep "strtoul" conftest.out >/dev/null 2>&1; then  :else  rm -rf conftest*  tk_stdlib=0firm -f conftest*echo '#include "confdefs.h"#include <stdlib.h>' > conftest.ceval "$CPP conftest.c > conftest.out 2>&1"if egrep "strtod" conftest.out >/dev/null 2>&1; then  :else  rm -rf conftest*  tk_stdlib=0firm -f conftest*if test $tk_stdlib = 0; then    {test -n "$verbose" && \echo "	defining NO_STDLIB_H"echo "#define" NO_STDLIB_H 1 >> confdefs.hDEFS="$DEFS -DNO_STDLIB_H=1"}fi#--------------------------------------------------------------------#	Check for various typedefs and provide substitutes if#	they don't exist.#--------------------------------------------------------------------#--------------------------------------------------------------------#	Locate the X11 header files and the X11 library archive.  Try#	the ac_find_x macro first, but if it doesn't find the X stuff#	(e.g. because there's no xmkmf program) then check through#	a list of possible directories.#--------------------------------------------------------------------if test -z "$tk_ok"; then  # Extract the first word of `xmkmf', so it can be a program name with args.  set dummy xmkmf; word=$2  echo checking for $word  IFS="${IFS= 	}"; saveifs="$IFS"; IFS="${IFS}:"  for dir in $PATH; do    test -z "$dir" && dir=.    if test -f $dir/$word; then      tk_ok="1"      break    fi  done  IFS="$saveifs"fitest -z "$tk_ok" && tk_ok="0"test -n "$tk_ok" && test -n "$verbose" && echo "	setting tk_ok to $tk_ok"if test $tk_ok = 1; then    # If we find X, set shell vars x_includes and x_libraries to the paths.no_x=trueecho checking for X include and library files with xmkmfrm -fr conftestdirif mkdir conftestdir; then  cd conftestdir  cat > Imakefile <<\EOFacfindx:	@echo "im_incroot=$(INCROOT); im_usrlibdir=$(USRLIBDIR); im_libdir=$(LIBDIR)"EOF  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    no_x=    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.    eval `make acfindx | grep -v make`    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.    if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then      im_usrlibdir=$im_libdir    fi    case "$im_incroot" in	/usr/include) ;;	*) x_includes="$im_incroot" ;;    esac    case "$im_usrlibdir" in	/usr/lib | /lib) ;;	*) x_libraries="$im_usrlibdir" ;;    esac  fi  cd ..  rm -fr conftestdirfiif test -z "$im_usrlibdir"; thenecho checking for X include and library files directlycat > conftest.c <<EOF#include "confdefs.h"#include <X11/Intrinsic.h>EOFerr=`eval "($CPP conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  rm -rf conftest*  no_x=else  rm -rf conftest*  for dir in \    /usr/local/include \    /usr/unsupported/include \    /usr/x386/include \    /usr/local/X11R6/include \    /usr/local/X11R5/include \    /usr/local/x11r6/include \    /usr/local/x11r5/include \    /usr/include/X11R6 \    /usr/include/X11R5 \    /usr/include/X11R4 \    /usr/X11R6/include \    /usr/X11R5/include \    /usr/X11/include \    /usr/openwin/include \    /usr/openwin/share/include \    /usr/lpp/Xamples/include \    ; \  do    if test -r $dir/X11/Intrinsic.h; then      x_includes=$dir; no_x=      break    fi  donefirm -f conftest*# Check for the libraries.  First see if replacing the `include' by# `lib' works.LIBS_save="${LIBS}"LIBS="${LIBS} -lXt"have_lib=""if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    ac_n= ac_c='' ac_t='	'  else    ac_n=-n ac_c= ac_t=  fielse  ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then     print_error "Your sh shell does not handle the output redirection"     print_error "1>&1 correctly.  Configure will work around this problem,"     print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for -lXt""... $ac_c"elseecho $ac_n "checking for -lXt""... $ac_c" 1>&1fiif test ! -f confdefs.h ; then    if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t"""!! SHELL ERROR !!""elseecho "$ac_t"""!! SHELL ERROR !!"" 1>&1fi    echo "The file confdefs.h created by configure has been removed"    echo "This may be a problem with your shell; some versions of LINUX"    echo "have this problem.  See the Installation guide for more"    echo "information."    exit 1ficat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { main(); }EOFif eval $compile; then  if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi    have_lib="1"   else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi    expandcompile=`echo "$compile" | sed -e 's/>.*//'`    eval echo "configure:$expandcompile" >> config.log    echo "configure: failed program was:" >>config.log    cat confdefs.h >> config.log    cat conftest.c >> config.log    if test -s conftest.out ; then cat conftest.out >> config.log     else      ${CC-cc} $CFLAGS conftest.c -o conftest $LDFLAGS $LIBS >> config.log 2>&1    fifirm -f conftest*LIBS="${LIBS_save}"if test -n "${have_lib}"; then   :; no_x=else   :; for dir in `echo "$x_includes" | sed s/include/lib/` \  /usr/local/lib \  /usr/unsupported/lib \  /usr/x386/lib \  /usr/local/X11R6/lib \  /usr/local/X11R5/lib \  /usr/local/x11r6/lib \  /usr/local/x11r5/lib \  /usr/lib/X11 \  /usr/lib/X11R4 \  /usr/X11R6/lib \  /usr/X11R5/lib \  /usr/X11/lib \  /usr/openwin/lib \  /usr/lpp/Xamples/lib \  ; \do  for extension in a so sl; do    if test -r $dir/libXt.$extension; then      x_libraries=$dir; no_x=      break 2    fi  donedonefifiif test -n "$verbose"; then  test -n "$x_includes" && echo "	found X11 headers in $x_includes"  test -n "$x_libraries" && echo "	found X11 libraries in $x_libraries"fifiif test "$XINCLUDE_DIR" != ""; then    x_includes="$XINCLUDE_DIR"fiif test "$x_includes" = /usr/include; then    # no special path needed    XINCLUDES=""elif test "$x_includes" != ""; then    XINCLUDES=" -I$x_includes"else    echo checking for X11 header files    # no special path needed    XINCLUDES=""    cat > conftest.c <<EOF#include "confdefs.h"#include <X11/Intrinsic.h>EOFerr=`eval "($CPP conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  :else  rm -rf conftest*  XINCLUDES="nope"firm -f conftest*    if test "$XINCLUDES" = nope; then        dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include"        for i in $dirs ; do	    if test -r $i/X11/Intrinsic.h; then	        XINCLUDES=" -I$i"	    fi        done    fifiif test "$XINCLUDES" = nope; then  echo "Warning:  couldn't find any X11 include files."  # no include files found  XINCLUDES=""fiif test "$XLIBRARY_DIR" != ""; then    x_libraries="$XLIBRARY_DIR"fiif test "$x_libraries" = /usr/lib; then    XLIBSW=-lX11elif test "$x_libraries" != ""; then    XLIBSW="-L$x_libraries -lX11"else    echo "checking for X11 library archive"    LIBS_save="${LIBS}"LIBS="${LIBS} -lX11"have_lib=""if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    ac_n= ac_c='' ac_t='	'  else    ac_n=-n ac_c= ac_t=  fielse  ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then     print_error "Your sh shell does not handle the output redirection"     print_error "1>&1 correctly.  Configure will work around this problem,"     print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for -lX11""... $ac_c"elseecho $ac_n "checking for -lX11""... $ac_c" 1>&1fiif test ! -f confdefs.h ; then    if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t"""!! SHELL ERROR !!""elseecho "$ac_t"""!! SHELL ERROR !!"" 1>&1fi    echo "The file confdefs.h created by configure has been removed"    echo "This may be a problem with your shell; some versions of LINUX"    echo "have this problem.  See the Installation guide for more"    echo "information."    exit 1ficat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { main(); }EOFif eval $compile; then  if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi    have_lib="1"   else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi    expandcompile=`echo "$compile" | sed -e 's/>.*//'`    eval echo "configure:$expandcompile" >> config.log    echo "configure: failed program was:" >>config.log    cat confdefs.h >> config.log    cat conftest.c >> config.log    if test -s conftest.out ; then cat conftest.out >> config.log     else      ${CC-cc} $CFLAGS conftest.c -o conftest $LDFLAGS $LIBS >> config.log 2>&1    fifirm -f conftest*LIBS="${LIBS_save}"if test -n "${have_lib}"; then   :; XLIBSW="-lX11"else   :; XLIBSW=nopefi    if test "$XLIBSW" = nope; then	dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/openwin/lib /usr/X11/lib"	for i in $dirs ; do	    if test -r $i/libX11.a; then		XLIBSW="-L$i -lX11"	    fi	done    fifiif test "$XLIBSW" = nope ; then    LIBS_save="${LIBS}"LIBS="${LIBS} -lXwindow"have_lib=""if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    ac_n= ac_c='' ac_t='	'  else    ac_n=-n ac_c= ac_t=  fielse  ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then     print_error "Your sh shell does not handle the output redirection"     print_error "1>&1 correctly.  Configure will work around this problem,"     print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for -lXwindow""... $ac_c"elseecho $ac_n "checking for -lXwindow""... $ac_c" 1>&1fiif test ! -f confdefs.h ; then    if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t"""!! SHELL ERROR !!""elseecho "$ac_t"""!! SHELL ERROR !!"" 1>&1fi    echo "The file confdefs.h created by configure has been removed"    echo "This may be a problem with your shell; some versions of LINUX"    echo "have this problem.  See the Installation guide for more"    echo "information."    exit 1ficat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { main(); }EOFif eval $compile; then  if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi    have_lib="1"   else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi    expandcompile=`echo "$compile" | sed -e 's/>.*//'`    eval echo "configure:$expandcompile" >> config.log    echo "configure: failed program was:" >>config.log    cat confdefs.h >> config.log    cat conftest.c >> config.log    if test -s conftest.out ; then cat conftest.out >> config.log     else      ${CC-cc} $CFLAGS conftest.c -o conftest $LDFLAGS $LIBS >> config.log 2>&1    fifirm -f conftest*LIBS="${LIBS_save}"if test -n "${have_lib}"; then   :; XLIBSW=-lXwindowelse   :; fifiif test "$XLIBSW" = nope ; then    echo "Warning:  couldn't find the X11 library archive.  Using -lX11."    XLIBSW=-lX11fi#--------------------------------------------------------------------#	Check for the existence of various libraries.  The order here#	is important, so that then end up in the right order in the#	command line generated by Make.#--------------------------------------------------------------------LIBS_save="${LIBS}"LIBS="${LIBS} -lXbsd"have_lib=""if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    ac_n= ac_c='

⌨️ 快捷键说明

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