📄 configure
字号:
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
if test "${TK_MAJOR_VERSION}" = "8" ; then
if test ${TK_MINOR_VERSION} -lt 2 ; then
echo "configure: warning: Version 8.2 or greater of Tcl/Tk is required" 1>&2
SUPPORTED="no"
fi
fi
if test "${SUPPORTED}" = "yes" ; then
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1797: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1812 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1829 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1846 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
CPP="$ac_cv_prog_CPP"
else
ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
for ac_hdr in "linux/usb.h" "linux/usbdevice_fs.h"
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1880: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1885 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
SUPPORTED="no"
fi
done
if test "${SUPPORTED}" = "no" ; then
echo "configure: warning: Required Linux kernel functionality does not appear to be available" 1>&2
else
cat > conftest.$ac_ext <<EOF
#line 1921 "configure"
#include "confdefs.h"
#include <linux/usbdevice_fs.h>
int main() {
static struct usbdevfs_ctrltransfer xx = { .bRequestType = 0 };
; return 0; }
EOF
if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define CYGBLD_USE_NEW_FIELD_NAMES 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi
fi
fi
if test "${SUPPORTED}" = "no" ; then
echo "configure: warning: The USB testing support cannot be built on this platform." 1>&2
fi
if test "${SUPPORTED}" = "yes"; then
SUPPORTED_TRUE=
SUPPORTED_FALSE='#'
else
SUPPORTED_TRUE='#'
SUPPORTED_FALSE=
fi
trap '' 1 2 15
cat > 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 >> confcache
if 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"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo crea
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -