📄 configure
字号:
ac_cv_prog_RC="$RC" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RC="windres" break fi done IFS="$ac_save_ifs"fifiRC="$ac_cv_prog_RC"if test -n "$RC"; then echo "$ac_t""$RC" 1>&6else echo "$ac_t""no" 1>&6fifi#--------------------------------------------------------------------# Checks to see if the make progeam sets the $MAKE variable.#--------------------------------------------------------------------echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6echo "configure:912: checking whether ${MAKE-make} sets \${MAKE}" >&5set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftestmake <<\EOFall: @echo 'ac_maketemp="${MAKE}"'EOF# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yeselse eval ac_cv_prog_make_${ac_make}_set=nofirm -f conftestmakefiif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ac_t""yes" 1>&6 SET_MAKE=else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}"fi#--------------------------------------------------------------------# Perform additinal compiler tests.#--------------------------------------------------------------------echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6echo "configure:944: checking for Cygwin environment" >&5if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 949 "configure"#include "confdefs.h"int main() {#ifndef __CYGWIN__#define __CYGWIN__ __CYGWIN32__#endifreturn __CYGWIN__;; return 0; }EOFif { (eval echo configure:960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_cygwin=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_cygwin" 1>&6CYGWIN=test "$ac_cv_cygwin" = yes && CYGWIN=yes#if test "$ac_cv_cygwin" = "yes" ; then# AC_MSG_ERROR([Compiling with the Cygwin version of gcc is not supported.# Use the Mingw version of gcc from www.mingw.org instead.])#fiecho $ac_n "checking for SEH support in compiler""... $ac_c" 1>&6echo "configure:984: checking for SEH support in compiler" >&5if eval "test \"`echo '$''{'tcl_cv_seh'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then tcl_cv_seh=noelse cat > conftest.$ac_ext <<EOF#line 992 "configure"#include "confdefs.h"#define WIN32_LEAN_AND_MEAN#include <windows.h>#undef WIN32_LEAN_AND_MEANint main(int argc, char** argv) { int a, b = 0; __try { a = 666 / b; } __except (EXCEPTION_EXECUTE_HANDLER) { return 0; } return 1;}EOFif { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen tcl_cv_seh=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tcl_cv_seh=nofirm -fr conftest*fifiecho "$ac_t""$tcl_cv_seh" 1>&6if test "$tcl_cv_seh" = "no" ; then cat >> confdefs.h <<\EOF#define HAVE_NO_SEH 1EOFfi## Check to see if the excpt.h include file provided contains the# definition for EXCEPTION_DISPOSITION; if not, which is the case# with Cygwin's version as of 2002-04-10, define it to be int, # sufficient for getting the current code to work.#echo $ac_n "checking for EXCEPTION_DISPOSITION support in include files""... $ac_c" 1>&6echo "configure:1041: checking for EXCEPTION_DISPOSITION support in include files" >&5if eval "test \"`echo '$''{'tcl_cv_eh_disposition'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1046 "configure"#include "confdefs.h"#define WIN32_LEAN_AND_MEAN#include <windows.h>#undef WIN32_LEAN_AND_MEANint main() { EXCEPTION_DISPOSITION x;; return 0; }EOFif { (eval echo configure:1059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_cv_eh_disposition=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tcl_cv_eh_disposition=nofirm -f conftest*fiecho "$ac_t""$tcl_cv_eh_disposition" 1>&6if test "$tcl_cv_eh_disposition" = "no" ; then cat >> confdefs.h <<\EOF#define EXCEPTION_DISPOSITION intEOFfi#--------------------------------------------------------------------# Determines the correct binary file extension (.o, .obj, .exe etc.)#--------------------------------------------------------------------echo $ac_n "checking for object suffix""... $ac_c" 1>&6echo "configure:1085: checking for object suffix" >&5if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -f conftest*echo 'int i = 1;' > conftest.$ac_extif { (eval echo configure:1091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;; *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; esac doneelse { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }firm -f conftest*fiecho "$ac_t""$ac_cv_objext" 1>&6OBJEXT=$ac_cv_objextac_objext=$ac_cv_objextecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6echo "configure:1109: checking for mingw32 environment" >&5if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1114 "configure"#include "confdefs.h"int main() {return __MINGW32__;; return 0; }EOFif { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_mingw32=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_mingw32" 1>&6MINGW32=test "$ac_cv_mingw32" = yes && MINGW32=yesecho $ac_n "checking for executable suffix""... $ac_c" 1>&6echo "configure:1140: checking for executable suffix" >&5if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$CYGWIN" = yes || test "$MINGW32" = yes; then ac_cv_exeext=.exeelse rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj | *.ilk | *.pdb) ;; *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; esac done else { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } fi rm -f conftest* test x"${ac_cv_exeext}" = x && ac_cv_exeext=nofifiEXEEXT=""test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}echo "$ac_t""${ac_cv_exeext}" 1>&6ac_exeext=$EXEEXT#--------------------------------------------------------------------# Check whether --enable-threads or --disable-threads was given.#-------------------------------------------------------------------- echo $ac_n "checking for building with threads""... $ac_c" 1>&6echo "configure:1177: checking for building with threads" >&5 # Check whether --enable-threads or --disable-threads was given.if test "${enable_threads+set}" = set; then enableval="$enable_threads" tcl_ok=$enablevalelse tcl_ok=nofi if test "$tcl_ok" = "yes"; then echo "$ac_t""yes" 1>&6 TCL_THREADS=1 cat >> confdefs.h <<\EOF#define TCL_THREADS 1EOF # USE_THREAD_ALLOC tells us to try the special thread-based # allocator that significantly reduces lock contention cat >> confdefs.h <<\EOF#define USE_THREAD_ALLOC 1EOF else TCL_THREADS=0 echo "$ac_t""no (default)" 1>&6 fi #--------------------------------------------------------------------# The statements below define a collection of symbols related to# building libtcl as a shared library instead of a static library.#-------------------------------------------------------------------- echo $ac_n "checking how to build libraries""... $ac_c" 1>&6echo "configure:1214: checking how to build libraries" >&5 # Check whether --enable-shared or --disable-shared was given.if test "${enable_shared+set}" = set; then enableval="$enable_shared" tcl_ok=$enablevalelse tcl_ok=yesfi if test "${enable_shared+set}" = set; then enableval="$enable_shared" tcl_ok=$enableval else tcl_ok=yes fi if test "$tcl_ok" = "yes" ; then echo "$ac_t""shared" 1>&6 SHARED_BUILD=1 else echo "$ac_t""static" 1>&6 SHARED_BUILD=0 cat >> confdefs.h <<\EOF#define STATIC_BUILD 1EOF fi#--------------------------------------------------------------------# The statements below define a collection of compile flags. This # macro depends on the value of SHARED_BUILD, and should be called# after SC_ENABLE_SHARED checks the configure switches.#-------------------------------------------------------------------- # Step 0: Enable 64 bit support? echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6echo "configure:1255: checking if 64bit support is requested" >&5 # Check whether --enable-64bit or --disable-64bit was given.if test "${enable_64bit+set}" = set; then enableval="$enable_64bit" do64bit=$enablevalelse do64bit=nofi echo "$ac_t""$do64bit" 1>&6 # Set some defaults (may get changed below) EXTRA_CFLAGS="" # Extract the first word of "cygpath", so it can be a program name with args.set dummy cygpath; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1272: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CYGPATH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CYGPATH"; then ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CYGPATH="cygpath -w" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"fifiCYGPATH="$ac_cv_prog_CYGPATH"if test -n "$CYGPATH"; then echo "$ac_t""$CYGPATH" 1>&6else echo "$ac_t""no" 1>&6fi # Check for a bug in gcc's windres that causes the # compile to fail when a Windows native path is # passed into windres. The mingw toolchain requires # Windows native paths while Cygwin should work # with both. Avoid the bug by passing a POSIX # path when using the Cygwin toolchain. if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then conftest=/tmp/conftest.rc echo "STRINGTABLE BEGIN" > $conftest echo "101 \"name\"" >> $conftest echo "END" >> $conftest echo $ac_n "checking for Windows native path bug in windres""... $ac_c" 1>&6echo "configure:1314: checking for Windows native path bug in windres" >&5 cyg_conftest=`$CYGPATH $conftest` if { ac_try='$RC -o conftest.res.o $cyg_conftest'; { (eval echo configure:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then echo "$ac_t""no" 1>&6 else echo "$ac_t""yes" 1>&6 CYGPATH=echo fi conftest= cyg_conftest= fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -