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

📄 configure

📁 linux 下的源代码分析阅读器 red hat公司新版
💻
📖 第 1 页 / 共 5 页
字号:
TIX_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS#--------------------------------------------------------------------#	Read in configuration information generated by Tk and arrange#	for it to be substituted into our Makefile.#--------------------------------------------------------------------TIX_DEFS="$TK_DEFS $TCL_DEFS"# Note:  in the following variable, it's important to use the absolute# path name of the Tcl directory rather than "..":  this is because# AIX remembers this path and will attempt to use it at run-time to look# up the Tcl library.TIX_BUILD_LOCATION="`pwd`"if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then    TIX_BUILD_LIB_SPEC="-L`pwd` -ltix${VERSION}"    TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam${VERSION}"    TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam${TCL_VERSION}"    TK_BUILD_SAM_SPEC="-L`pwd` -ltksam${TK_VERSION}"    TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix${VERSION}"else    TIX_BUILD_LIB_SPEC="-L`pwd` -ltix`echo ${VERSION} | tr -d .`"    TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam`echo ${VERSION} | tr -d .`"    TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam`echo ${TCL_VERSION} | tr -d .`"    TK_BUILD_SAM_SPEC="-L`pwd` -ltksam`echo ${TK_VERSION} | tr -d .`"    TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix`echo ${VERSION} | tr -d .`"fi#--------------------------------------------------------------------#	See if we should compile shared library.#--------------------------------------------------------------------# Check whether --enable-shared or --disable-shared was given.if test "${enable_shared+set}" = set; then  enableval="$enable_shared"  ok=$enablevalelse  ok=nofiif test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then    TIX_SHLIB_CFLAGS="${SHLIB_CFLAGS}"    TIX_RANLIB=":"    # The main Tix library    #    eval "TIX_LIB_FILE=libtix${TCL_SHARED_LIB_SUFFIX}"    TIX_MAKE_LIB="\${SHLIB_LD} -o ${TIX_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"    # The Tcl SAM library    #    VERSION=8.1    eval "TCL_SAM_FILE=libtclsam${TCL_SHARED_LIB_SUFFIX}"    TCL_MAKE_SAM="\${SHLIB_LD} -o ${TCL_SAM_FILE} \${TCL_SAM_OBJS} ${SHLIB_LD_LIBS}"        # The Tk SAM library    #    VERSION=8.1    eval "TK_SAM_FILE=libtksam${TCL_SHARED_LIB_SUFFIX}"    TK_MAKE_SAM="\${SHLIB_LD} -o ${TK_SAM_FILE} \${TK_SAM_OBJS} ${SHLIB_LD_LIBS}"        # The Tix SAM library    #    VERSION=${BIN_VERSION}    eval "TIX_SAM_FILE=libtixsam${TCL_SHARED_LIB_SUFFIX}"    TIX_MAKE_SAM="\${SHLIB_LD} -o ${TIX_SAM_FILE} \${TIX_SAM_OBJS} ${SHLIB_LD_LIBS}"else    TIX_SHLIB_CFLAGS=""    TIX_RANLIB='$(RANLIB)'    # The main Tix library    #    eval "TIX_LIB_FILE=libtix${TCL_UNSHARED_LIB_SUFFIX}"    TIX_MAKE_LIB="ar cr ${TIX_LIB_FILE} \${OBJS}"    # The Tcl SAM library        VERSION=8.1    eval "TCL_SAM_FILE=libtclsam${TCL_UNSHARED_LIB_SUFFIX}"    TCL_MAKE_SAM="ar cr ${TCL_SAM_FILE} \${TCL_SAM_OBJS}"        # The Tk SAM library    #    VERSION=8.1    eval "TK_SAM_FILE=libtksam${TCL_UNSHARED_LIB_SUFFIX}"    TK_MAKE_SAM="ar cr ${TK_SAM_FILE} \${TK_SAM_OBJS}"        # The Tix SAM library    #    VERSION=${BIN_VERSION}    eval "TIX_SAM_FILE=libtixsam${TCL_UNSHARED_LIB_SUFFIX}"    TIX_MAKE_SAM="ar cr ${TIX_SAM_FILE} \${TIX_SAM_OBJS}"fiTIX_LIB_FULL_PATH="`pwd`/${TIX_LIB_FILE}"#--------------------------------------------------------------------#	Check for the existence of the -lsocket and -lnsl libraries.#	The order here is important, so that they end up in the right#	order in the command line generated by make.  Here are some#	special considerations:#	1. Use "connect" and "accept" to check for -lsocket, and#	   "gethostbyname" to check for -lnsl.#	2. Use each function name only once:  can't redo a check because#	   autoconf caches the results of the last check and won't redo it.#	3. Use -lnsl and -lsocket only if they supply procedures that#	   aren't already present in the normal libraries.  This is because#	   IRIX 5.2 has libraries, but they aren't needed and they're#	   bogus:  they goof up name resolution if used.#	4. On some SVR4 systems, can't use -lsocket without -lnsl too.#	   To get around this problem, check for both libraries together#	   if -lsocket doesn't work by itself.#--------------------------------------------------------------------checked=0for i in $TK_LIBS; do    if test "$i" = "-lsocket"; then	checked=1    fidoneif test "$checked" = "0"; then    tcl_checkBoth=0    echo $ac_n "checking for connect""... $ac_c" 1>&6echo "configure:1865: checking for connect" >&5if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1870 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char connect(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char connect();int main() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_connect) || defined (__stub___connect)choke me#elseconnect();#endif; return 0; }EOFif { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_connect=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_connect=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then  echo "$ac_t""yes" 1>&6  tcl_checkSocket=0else  echo "$ac_t""no" 1>&6tcl_checkSocket=1fi    if test "$tcl_checkSocket" = 1; then        echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6echo "configure:1915: checking for main in -lsocket" >&5ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lsocket  $LIBS"cat > conftest.$ac_ext <<EOF#line 1923 "configure"#include "confdefs.h"int main() {main(); return 0; }EOFif { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  TK_LIBS="$TK_LIBS -lsocket"else  echo "$ac_t""no" 1>&6tcl_checkBoth=1fi    fi    if test "$tcl_checkBoth" = 1; then        tk_oldLibs=$TK_LIBS        TK_LIBS="$TK_LIBS -lsocket -lnsl"        echo $ac_n "checking for accept""... $ac_c" 1>&6echo "configure:1956: checking for accept" >&5if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1961 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char accept(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char accept();int main() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_accept) || defined (__stub___accept)choke me#elseaccept();#endif; return 0; }EOFif { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_accept=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_accept=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then  echo "$ac_t""yes" 1>&6  tcl_checkNsl=0else  echo "$ac_t""no" 1>&6TK_LIBS=$tk_oldLibsfi    fi    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6echo "configure:2006: checking for gethostbyname" >&5if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 2011 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char gethostbyname(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char gethostbyname();int main() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)choke me#elsegethostbyname();#endif; return 0; }EOFif { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_gethostbyname=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_gethostbyname=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then  echo "$ac_t""yes" 1>&6  :else  echo "$ac_t""no" 1>&6echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6echo "configure:2052: checking for main in -lnsl" >&5ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lnsl  $LIBS"cat > conftest.$ac_ext <<EOF#line 2060 "configure"#include "confdefs.h"int main() {main(); return 0; }EOFif { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  TK_LIBS="$TK_LIBS -lnsl"else  echo "$ac_t""no" 1>&6fififi#----------------------------------------------------------------------#	Substitution strings exported by TIX#----------------------------------------------------------------------# The "binary version" of Tix (see docs/Pkg.txt)TIX_VERSION_PKG=${BIN_VERSION}TIXSAM_PKG_FILE="[file join [file dirname \$dir] ${TIX_SAM_FILE}]"if test "$TIX_BUILD_SAM" = "yes"; then    TIX_SAM_PACKAGE_IFNEEDED="package ifneeded Tixsam ${TIX_VERSION_PKG} [list load \"${TIXSAM_PKG_FILE}\" Tixsam]"fi# The package file, usually a shared libraryTIX_PKG_FILE="[file join [file dirname \$dir] ${TIX_LIB_FILE}]"trap '' 1 2 15cat > confcache <<\EOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs.  It is not useful on other systems.# If it contains results you don't want to keep, you may remove or edit it.## By default, configure uses ./config.cache as the cache file,# crea

⌨️ 快捷键说明

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