📄 configure
字号:
fi#--------------------------------------------------------------------# See if there was a command-line option for where Tcl is; if# not, assume that its top-level directory is a sibling of ours.#--------------------------------------------------------------------# Check whether --with-tcl or --without-tcl was given.if test "${with_tcl+set}" = set; then withval="$with_tcl" val=$withvalelse val=""fiecho $ac_n "checking Tcl source directory""... $ac_c" 1>&6echo "configure:1289: checking Tcl source directory" >&5if test "$val" != ""; then TCL_SRC_DIR=$val if test ! -d $TCL_SRC_DIR; then { echo "configure: error: Directory $TCL_SRC_DIR doesn't exist" 1>&2; exit 1; } { echo "configure: error: Please install the source code of Tcl 8.0" 1>&2; exit 1; } exit 1 fielse # CYGNUS LOCAL: Just use tcl. dirs="${srcdir}/../../../tcl8.0* ${srcdir}/../../../tcl" TCL_SRC_DIR="no-no" for i in $dirs; do if test -d $i; then TCL_SRC_DIR=`cd $i; pwd` fi done if test ! -d $TCL_SRC_DIR; then { echo "configure: error: Cannot locate Tcl source directory in $dirs" 1>&2; exit 1; } { echo "configure: error: Please install the source code of Tcl 8.0" 1>&2; exit 1; } exit 1 fifiecho "$ac_t""$TCL_SRC_DIR" 1>&6# CYGNUS LOCAL: This used to get TCL_BIN_DIR from TCL_SRC_DIR, which# only works when srcdir == objdirTCL_BIN_DIR=../../../tcl/unix#--------------------------------------------------------------------# See if there was a command-line option for where Tk is; if# not, assume that its top-level directory is a sibling of ours.#--------------------------------------------------------------------# Check whether --with-tk or --without-tk was given.if test "${with_tk+set}" = set; then withval="$with_tk" val=$withvalelse val=""fiecho $ac_n "checking Tk source directory""... $ac_c" 1>&6echo "configure:1335: checking Tk source directory" >&5if test "$val" != ""; then TK_SRC_DIR=$val if test ! -d $TK_SRC_DIR; then { echo "configure: error: Directory $TK_SRC_DIR doesn't exist" 1>&2; exit 1; } { echo "configure: error: Please install the source code of Tk 8.0" 1>&2; exit 1; } exit 1 fielse # CYGNUS LOCAL: Just use tk dirs="${srcdir}/../../../tk8.0* ${srcdir}/../../../tk" TK_SRC_DIR="no-no" for i in $dirs; do if test -d $i; then TK_SRC_DIR=`cd $i; pwd` fi done if test ! -d $TK_SRC_DIR; then { echo "configure: error: Cannot locate Tk source directory in $dirs" 1>&2; exit 1; } { echo "configure: error: Please install the source code of Tk 8.0" 1>&2; exit 1; } exit 1 fifiecho "$ac_t""$TK_SRC_DIR" 1>&6# CYGNUS LOCAL: This used to get TK_BIN_DIR from TK_SRC_DIR, which# only works when srcdir == objdirTK_BIN_DIR=../../../tk/unix#--------------------------------------------------------------------# Find out the top level source directory of the Tix package.#--------------------------------------------------------------------TIX_SRC_DIR=`cd ${srcdir}/../..; pwd`#--------------------------------------------------------------------# See if we should compile SAM#--------------------------------------------------------------------# Check whether --enable-sam or --disable-sam was given.if test "${enable_sam+set}" = set; then enableval="$enable_sam" ok=$enablevalelse ok=nofiif test "$ok" = "yes"; then TIX_BUILD_SAM="yes" TIX_SAM_TARGETS='$(SAM_TARGETS)'else TIX_BUILD_SAM="no"fi TIX_SAM_INSTALL=_install_sam_lib_IS_ITCL=0ITCL_BUILD_LIB_SPEC=""ITK_BUILD_LIB_SPEC=""TIX_EXE_FILE=tixwishTCL_SAMEXE_FILE=satclshTK_SAMEXE_FILE=sawishTIX_SAMEXE_FILE=satixwish#--------------------------------------------------------------------# Read in configuration information generated by Tcl for shared# libraries, and arrange for it to be substituted into our# Makefile.#--------------------------------------------------------------------file=$TCL_BIN_DIR/tclConfig.sh. $fileCC=$TCL_CCSHLIB_CFLAGS=$TCL_SHLIB_CFLAGSSHLIB_LD=$TCL_SHLIB_LDSHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBSSHLIB_SUFFIX=$TCL_SHLIB_SUFFIXSHLIB_VERSION=$TCL_SHLIB_VERSIONDL_LIBS=$TCL_DL_LIBSLD_FLAGS=$TCL_LD_FLAGSTIX_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS#--------------------------------------------------------------------# Read in configuration information generated by Tk and arrange# for it to be substituted into our Makefile.#--------------------------------------------------------------------file=$TK_BIN_DIR/tkConfig.sh. $fileTIX_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.0 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.0 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.0 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.0 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}"fi#--------------------------------------------------------------------# 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:1546: 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 1551 "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:1574: \"$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:1596: 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 1604 "configure"#include "confdefs.h"int main() {main(); return 0; }EOFif { (eval echo configure:1611: \"$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:1637: 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 1642 "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:1665: \"$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:1687: 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 1692 "configure"#include "confdefs.h"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -