📄 configure
字号:
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 3 ; then
echo "configure: warning: The synthetic target support requires at least version 8.3 of Tcl/Tk" 1>&2
echo "configure: warning: Synthetic target host-side support will not be built" 1>&2
SUPPORTED="no"
fi
fi
package_dir=`cd ${srcdir} && /bin/pwd`
PACKAGE_VERSION=`dirname ${package_dir}`
PACKAGE_VERSION=`basename ${PACKAGE_VERSION}`
package_dir=`dirname ${package_dir}`
package_dir=`dirname ${package_dir}`
possibles="${package_dir}/.. ${package_dir}/../.. ${package_dir}/../../.. ${package_dir}/../../../.."
possibles="${possibles} ${package_dir}/../../../../.. ${package_dir}/../../../../../.."
repository_root=""
for i in ${possibles}; do
if test -d "$i/"acsupport""; then
repository_root=$i
break
fi
done
if test "${repository_root}" = "" ; then
{ echo "configure: error: Failed to identify this package's position within the eCos repository" 1>&2; exit 1; }
fi
ECOS_REPOSITORY=`cd "${repository_root}/packages/pkgconf/.." && /bin/pwd`
PACKAGE_DIR=`echo ${package_dir} | sed -e "s:${ECOS_REPOSITORY}/::"`
PACKAGE_INSTALL="${PACKAGE_DIR}/${PACKAGE_VERSION}"
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
# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
cat > conftest.defs <<\EOF
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
s%\[%\\&%g
s%\]%\\&%g
s%\$%$$%g
EOF
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
rm -f conftest.defs
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "Makefile:Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
s%@ACLOCAL@%$ACLOCAL%g
s%@AUTOCONF@%$AUTOCONF%g
s%@AUTOMAKE@%$AUTOMAKE%g
s%@AUTOHEADER@%$AUTOHEADER%g
s%@MAKEINFO@%$MAKEINFO%g
s%@SET_MAKE@%$SET_MAKE%g
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
s%@MAINT@%$MAINT%g
s%@CC@%$CC%g
s%@CXX@%$CXX%g
s%@OBJEXT@%$OBJEXT%g
s%@EXEEXT@%$EXEEXT%g
s%@ecos_CFLAGS@%$ecos_CFLAGS%g
s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
s%@ecos_LDADD@%$ecos_LDADD%g
s%@ecos_INCLUDES@%$ecos_INCLUDES%g
s%@ecos_LIBS@%$ecos_LIBS%g
s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
s%@MSVC_TRUE@%$MSVC_TRUE%g
s%@MSVC_FALSE@%$MSVC_FALSE%g
s%@ecos_tk_includes@%$ecos_tk_includes%g
s%@ecos_tk_libs@%$ecos_tk_libs%g
s%@ECOS_REPOSITORY@%$ECOS_REPOSITORY%g
s%@PACKAGE_DIR@%$PACKAGE_DIR%g
s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
s%@PACKAGE_INSTALL@%$PACKAGE_INSTALL%g
s%@SUPPORTED_TRUE@%$SUPPORTED_TRUE%g
s%@SUPPORTED_FALSE@%$SUPPORTED_FALSE%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'`
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -