📄 configure
字号:
fi # Check whether --enable-tracing or --disable-tracing was given.if test "${enable_tracing+set}" = set; then enableval="$enable_tracing" case "${enableval}" in yes) ecosinfra_tracing="yes" ;; no) ecosinfra_tracing="no" ;; *) { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;; esacfi if test "${ecosinfra_tracing}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_USE_TRACING 1EOF fi # Check whether --enable-fntracing or --disable-fntracing was given.if test "${enable_fntracing+set}" = set; then enableval="$enable_fntracing" case "${enableval}" in yes) ecosinfra_fntracing="yes" ;; no) ecosinfra_fntracing=no ;; *) { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;; esacfi if test "${ecosinfra_fntracing}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1EOF fi echo $ac_n "checking for eCos host-side infrastructure""... $ac_c" 1>&6echo "configure:1712: checking for eCos host-side infrastructure" >&5 infra_builddir="" possibles=".. ../.. ../../.. ../../../.. ../../../../.." infra_builddir="" for i in ${possibles}; do if test -d "$i/"infra""; then infra_builddir=$i break fi done if test "${infra_builddir}" = "" ; then possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host" infra_builddir="" for i in ${possibles}; do if test -d "$i/"infra""; then infra_builddir=$i break fi done fi if test "${infra_builddir}" != "" ; then infra_builddir="${infra_builddir}/infra" infra_builddir=`cd ${infra_builddir} && /bin/pwd` fi ecos_infra_incdir="" ecos_infra_libdir="" ecos_infra_libs="" # Check whether --with-infra-header or --without-infra-header was given.if test "${with_infra_header+set}" = set; then withval="$with_infra_header" :fi # Check whether --with-infra-lib or --without-infra-lib was given.if test "${with_infra_lib+set}" = set; then withval="$with_infra_lib" :fi # Check whether --with-infra or --without-infra was given.if test "${with_infra+set}" = set; then withval="$with_infra" :fi if test "${with_infra_header+set}" = "set"; then ecos_infra_incdir="${with_infra_header}" elif test "${with_infra+set}" = "set"; then ecos_infra_incdir="${with_infra}/include" elif test "${infra_builddir}" != "" ; then ecos_infra_incdir="${infra_builddir}" else { echo "configure: error: infrastructure headers not found" 1>&2; exit 1; } fi if test "${MSVC}" = "yes" ; then ecos_msvc_infra_incdir=${ecos_infra_incdir} if test "${MSVC}" = "yes" ; then ecos_msvc_infra_incdir=`cygpath -w ${ecos_msvc_infra_incdir} | tr \\\\\\\\ /` fi ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_infra_incdir}\"" else ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_infra_incdir}" fi if test "${with_infra_lib+set}" = "set"; then ecos_infra_libdir="${with_infra_lib}" elif test "${with_infra+set}" = "set"; then ecos_infra_libdir="${with_infra}/lib" elif test "${infra_builddir}" != "" ; then ecos_infra_libdir="${infra_builddir}" else { echo "configure: error: infrastructure library not found" 1>&2; exit 1; } fi if test "${MSVC}" = "yes" ; then ecos_msvc_infra_libdir=${ecos_infra_libdir} if test "${MSVC}" = "yes" ; then ecos_msvc_infra_libdir=`cygpath -w ${ecos_msvc_infra_libdir} | tr \\\\\\\\ /` fi ecos_LIBS="${ecos_LIBS} cyginfra.lib" ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_infra_libdir}\"" else ecos_LIBS="${ecos_LIBS} -lcyginfra" ecos_LDADD="${ecos_LDADD} -L${ecos_infra_libdir}" fi echo "$ac_t""-I${ecos_infra_incdir} -L${ecos_infra_libdir}" 1>&6 ecos_tk_libs="" ecos_tk_libdir="" echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6echo "configure:1826: checking for Tcl installation" >&5 # Check whether --with-tcl or --without-tcl was given.if test "${with_tcl+set}" = set; then withval="$with_tcl" :fi # Check whether --with-tcl-version or --without-tcl-version was given.if test "${with_tcl_version+set}" = set; then withval="$with_tcl_version" :fi if test "${MSVC}" = "yes" ; then # Check whether --with-tcl-header or --without-tcl-header was given.if test "${with_tcl_header+set}" = set; then withval="$with_tcl_header" :fi # Check whether --with-tcl-lib or --without-tcl-lib was given.if test "${with_tcl_lib+set}" = set; then withval="$with_tcl_lib" :fi ecos_tcl_incdir="" ecos_tcl_libdir="" if test "${with_tcl_version+set}" != set ; then { echo "configure: error: You must specify a Tcl version using --with-tcl-version=<vsn>" 1>&2; exit 1; } fi if test "${with_tcl_header+set}" = set ; then ecos_tcl_incdir=${with_tcl_header} elif test "${with_tcl+set}" = set ; then ecos_tcl_incdir="${with_tcl}/include" else { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; } fi if test "${with_tcl_lib+set}" = set; then ecos_tcl_libdir=${with_tcl_lib} elif test "${with_tcl+set}" = set; then ecos_tcl_libdir="${with_tcl}/lib" else { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; } fi if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; } fi if test "${MSVC}" = "yes" ; then ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /` fi if test "${MSVC}" = "yes" ; then ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /` fi ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_tcl_incdir}\"" ecos_LIBS="${ecos_LIBS} tcl${with_tcl_version}.lib" ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_tcl_libdir}\"" ecos_tk_libs="" else possibles="" if test "${with_tcl+set}" = set ; then possibles="${with_tcl}/lib" if test "${with_tcl_version+set}" = set ; then possibles="${possibles} ${with_tcl}/lib/tcl${with_tcl_version}" fi fi possibles="${possibles} ${prefix}/lib" if test "${with_tcl_version+set}" = set ; then possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}" fi possibles="${possibles} /usr/lib" if test "${with_tcl_version+set}" = set ; then possibles="${possibles} /usr/lib/tcl${with_tcl_version}" fi tclconfig="" for i in ${possibles}; do if test -r "$i/"tclConfig.sh""; then tclconfig=$i break fi done if test \! -r "${tclconfig}/tclConfig.sh" ; then { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; } else . ${tclconfig}/tclConfig.sh if test -z "${TCL_INC_DIR}" ; then ecos_tcl_incdir="${TCL_PREFIX}/include" else ecos_tcl_incdir="${TCL_INC_DIR}" fi if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; } else if test "${ecos_tcl_incdir}" != "/usr/include" ; then ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}" fi fi if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then libtcl="" for i in ${possibles}; do if test -r "$i/"libtcl${with_tcl_version}.a""; then libtcl=$i break fi done if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}" fi fi if test -z "${TCL_LIB_SPEC}" ; then libtcl="" for i in ${possibles}; do if test -r "$i/"libtcl.a""; then libtcl=$i break fi done if test -r "${libtcl}/libtcl.a" ; then TCL_LIB_SPEC="-L${libtcl} -ltcl" fi fi if test -z "${TCL_LIB_SPEC}" ; then { echo "configure: error: ${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC" 1>&2; exit 1; } fi ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}" possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'` tkconfig="" for i in ${possibles}; do if test -r "$i/"tkConfig.sh""; then tkconfig=$i break fi done if test \! -r "${tkconfig}/tkConfig.sh" ; then { echo "configure: error: unable to locate Tk config file tkConfig.sh" 1>&2; exit 1; } else . ${tkconfig}/tkConfig.sh if test -z "${TK_INC_DIR}" ; then if test "${TK_PREFIX}" = "/usr" ; then ecos_tk_includes="${TK_XINCLUDES}" else ecos_tk_includes="-I${TK_PREFIX}/include ${TK_XINCLUDES}" fi else ecos_tk_includes="-I${TK_INC_DIR} ${TK_XINCLUDES}" fi if test -z "${TK_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then libtk="" for i in ${possibles}; do if test -r "$i/"libtk${with_tcl_version}.a""; then libtk=$i break fi done if test -r "${libtk}/libtk${with_tcl_version}.a" ; then TK_LIB_SPEC="-L${libtk} -ltk${with_tcl_version}" fi fi if test -z "${TK_LIB_SPEC}" ; then libtk="" for i in ${possibles}; do if test -r "$i/"libtk.a""; then libtk=$i break fi done if test -r "${libtk}/libtk.a" ; then TK_LIB_SPEC="-L${libtk} -ltk" fi fi if test -z "${TK_LIB_SPEC}" ; then { echo "configure: error: ${tkconfig}/tkConfig.sh does not define TK_LIB_SPEC" 1>&2; exit 1; } fi ecos_tk_libs="${TK_LIB_SPEC} ${TK_LIBS}" fi fi fi echo "$ac_t""-I${ecos_tcl_incdir} ${TCL_LIB_SPEC}" 1>&6 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,# creating it if it does not exist already. You can give configure# the --cache-file=FILE option to use a different cache file; that is# what configure does when it calls configure scripts in# subdirectories, so they share the cache.# Giving --cache-file=/dev/null disables caching, for debugging configure.# config.status only pays attention to the cache file if you give it the# --recheck option to rerun configure.#EOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.(set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcacheif cmp -s $cache_file confcache; then :else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fifirm -f confcachetrap 'rm -fr conft
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -