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

📄 configure

📁 tcl是工具命令语言
💻
📖 第 1 页 / 共 5 页
字号:
EOFif { (eval echo configure:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6fidone    else	TCL_THREADS=0	echo "$ac_t""no (default)" 1>&6    fi    #------------------------------------------------------------------------# If we're using GCC, see if the compiler understands -pipe.  If so, use it.# It makes compiling go faster.  (This is only a performance feature.)#------------------------------------------------------------------------if test -z "$no_pipe"; thenif test -n "$GCC"; then  echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6echo "configure:1356: checking if the compiler understands -pipe" >&5  OLDCC="$CC"    CC="$CC -pipe"  cat > conftest.$ac_ext <<EOF#line 1360 "configure"#include "confdefs.h"int main() {; return 0; }EOFif { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  echo "$ac_t""yes" 1>&6else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CC="$OLDCC"    echo "$ac_t""no" 1>&6firm -f conftest*fi  fi#--------------------------------------------------------------------#	Detect what compiler flags to set for 64-bit support.#--------------------------------------------------------------------    echo $ac_n "checking for required early compiler flags""... $ac_c" 1>&6echo "configure:1387: checking for required early compiler flags" >&5    tcl_flags=""        if eval "test \"`echo '$''{'tcl_cv_flag__isoc99_source'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1394 "configure"#include "confdefs.h"#include <stdlib.h>int main() {char *p = (char *)strtoll; char *q = (char *)strtoull;; return 0; }EOFif { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_flag__isoc99_source=noelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  cat > conftest.$ac_ext <<EOF#line 1409 "configure"#include "confdefs.h"#define _ISOC99_SOURCE 1#include <stdlib.h>int main() {char *p = (char *)strtoll; char *q = (char *)strtoull;; return 0; }EOFif { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_flag__isoc99_source=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_flag__isoc99_source=nofirm -f conftest*firm -f conftest*fi    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then	cat >> confdefs.h <<\EOF#define _ISOC99_SOURCE 1EOF	tcl_flags="$tcl_flags _ISOC99_SOURCE"    fi        if eval "test \"`echo '$''{'tcl_cv_flag__largefile64_source'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1443 "configure"#include "confdefs.h"#include <sys/stat.h>int main() {struct stat64 buf; int i = stat64("/", &buf);; return 0; }EOFif { (eval echo configure:1450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_flag__largefile64_source=noelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  cat > conftest.$ac_ext <<EOF#line 1458 "configure"#include "confdefs.h"#define _LARGEFILE64_SOURCE 1#include <sys/stat.h>int main() {struct stat64 buf; int i = stat64("/", &buf);; return 0; }EOFif { (eval echo configure:1466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_flag__largefile64_source=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_flag__largefile64_source=nofirm -f conftest*firm -f conftest*fi    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then	cat >> confdefs.h <<\EOF#define _LARGEFILE64_SOURCE 1EOF	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"    fi    if test "x${tcl_flags}" = "x" ; then	echo "$ac_t""none" 1>&6    else	echo "$ac_t""${tcl_flags}" 1>&6    fi    echo $ac_n "checking for 64-bit integer type""... $ac_c" 1>&6echo "configure:1495: checking for 64-bit integer type" >&5    if eval "test \"`echo '$''{'tcl_cv_type_64bit'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  	tcl_cv_type_64bit=none	# See if the compiler knows natively about __int64	cat > conftest.$ac_ext <<EOF#line 1503 "configure"#include "confdefs.h"int main() {__int64 value = (__int64) 0;; return 0; }EOFif { (eval echo configure:1510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_type_64bit=__int64else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_type_64bit="long long"firm -f conftest*	# See if we should use long anyway  Note that we substitute in the	# type that is our current guess for a 64-bit type inside this check	# program, so it should be modified only carefully...	if test "$cross_compiling" = yes; then  :else  cat > conftest.$ac_ext <<EOF#line 1527 "configure"#include "confdefs.h"#include <unistd.h>	    int main() {exit(!(sizeof(${tcl_type_64bit}) > sizeof(long)));}	    EOFif { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  tcl_cv_type_64bit=${tcl_type_64bit}else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  :firm -fr conftest*fifi    if test "${tcl_cv_type_64bit}" = none ; then	cat >> confdefs.h <<\EOF#define TCL_WIDE_INT_IS_LONG 1EOF	echo "$ac_t""using long" 1>&6    else	cat >> confdefs.h <<EOF#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}EOF	echo "$ac_t""${tcl_cv_type_64bit}" 1>&6	# Now check for auxiliary declarations	echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6echo "configure:1562: checking for struct dirent64" >&5	if eval "test \"`echo '$''{'tcl_cv_struct_dirent64'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  	    cat > conftest.$ac_ext <<EOF#line 1568 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/dirent.h>int main() {struct dirent64 p;; return 0; }EOFif { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_struct_dirent64=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_struct_dirent64=nofirm -f conftest*fi	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then	    cat >> confdefs.h <<\EOF#define HAVE_STRUCT_DIRENT64 1EOF	fi	echo "$ac_t""${tcl_cv_struct_dirent64}" 1>&6	echo $ac_n "checking for struct stat64""... $ac_c" 1>&6echo "configure:1597: checking for struct stat64" >&5	if eval "test \"`echo '$''{'tcl_cv_struct_stat64'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  	    cat > conftest.$ac_ext <<EOF#line 1603 "configure"#include "confdefs.h"#include <sys/stat.h>int main() {struct stat64 p;; return 0; }EOFif { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_struct_stat64=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_struct_stat64=nofirm -f conftest*fi	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then	    cat >> confdefs.h <<\EOF#define HAVE_STRUCT_STAT64 1EOF	fi	echo "$ac_t""${tcl_cv_struct_stat64}" 1>&6	echo $ac_n "checking for off64_t""... $ac_c" 1>&6echo "configure:1632: checking for off64_t" >&5	if eval "test \"`echo '$''{'tcl_cv_type_off64_t'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  	    cat > conftest.$ac_ext <<EOF#line 1638 "configure"#include "confdefs.h"#include <sys/types.h>int main() {off64_t offset;; return 0; }EOFif { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_type_off64_t=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_type_off64_t=nofirm -f conftest*fi	if test "x${tcl_cv_type_off64_t}" = "xyes" ; then	    cat >> confdefs.h <<\EOF#define HAVE_TYPE_OFF64_T 1EOF	fi	echo "$ac_t""${tcl_cv_type_off64_t}" 1>&6    fi#--------------------------------------------------------------------#	Check endianness because we can optimize comparisons of#	Tcl_UniChar strings to memcmp on big-endian systems.#--------------------------------------------------------------------echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6echo "configure:1673: checking whether byte ordering is bigendian" >&5if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_cv_c_bigendian=unknown# See if sys/param.h defines the BYTE_ORDER macro.cat > conftest.$ac_ext <<EOF#line 1680 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/param.h>int main() {#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN bogus endian macros#endif; return 0; }EOFif { (eval echo configure:1691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  # It does; now see whether it defined to BIG_ENDIAN or not.cat > conftest.$ac_ext <<EOF#line 1695 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/param.h>int main() {#if BYTE_ORDER != BIG_ENDIAN not big endian#endif; return 0; }EOFif { (eval echo configure:1706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_c_bigendian=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_c_bigendian=nofirm -f conftest*else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*if test $ac_cv_c_bigendian = unknown; thenif test "$cross_compiling" = yes; then    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }else  cat > conftest.$ac_ext <<EOF#line 1726 "configure"#include "confdefs.h"main () {  /* Are we little or big endian?  From Harbison&Steele.  */  union  {    long l;    char c[sizeof (long)];  } u;  u.l = 1;  exit (u.c[sizeof (long) - 1] == 1);}EOFif { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  ac_cv_c_bigendian=noelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  ac_cv_c_bigendian=yesfirm -fr conftest*fififi

⌨️ 快捷键说明

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