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

📄 configure

📁 基于ecos的redboot
💻
📖 第 1 页 / 共 5 页
字号:
if test $ac_cv_prog_gxx = yes; then
  GXX=yes
else
  GXX=
fi

ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
echo "configure:1179: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.cc
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  ac_cv_prog_cxx_g=yes
else
  ac_cv_prog_cxx_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS="$ac_save_CXXFLAGS"
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi

echo $ac_n "checking for object suffix""... $ac_c" 1>&6
echo "configure:1211: checking for object suffix" >&5
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftest*
echo 'int i = 1;' > conftest.$ac_ext
if { (eval echo configure:1217: \"$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
  done
else
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_objext" 1>&6
OBJEXT=$ac_cv_objext
ac_objext=$ac_cv_objext

echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:1235: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1240 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
EOF
if { (eval echo configure:1251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_cygwin=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_cygwin=no
fi
rm -f conftest*
rm -f conftest*
fi

echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo "configure:1268: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1273 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
EOF
if { (eval echo configure:1280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_mingw32=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_mingw32=no
fi
rm -f conftest*
rm -f conftest*
fi

echo "$ac_t""$ac_cv_mingw32" 1>&6
MINGW32=
test "$ac_cv_mingw32" = yes && MINGW32=yes


echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:1299: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  ac_cv_exeext=.exe
else
  rm -f conftest*
  echo 'int main () { return 0; }' > conftest.$ac_ext
  ac_cv_exeext=
  if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    for file in conftest.*; do
      case $file in
      *.c | *.o | *.obj) ;;
      *) 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=no
fi
fi

EXEEXT=""
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
echo "$ac_t""${ac_cv_exeext}" 1>&6
ac_exeext=$EXEEXT


    
    

    echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
echo "configure:1334: checking "for Visual C++"" >&5
    MSVC="no";
    if test "${CC}" = "cl" ; then
       MSVC="yes"
    fi
    if test "${CXX}" = "cl" ; then
       MSVC="yes"
    fi
    

if test "${MSVC}" = "yes"; then
  MSVC_TRUE=
  MSVC_FALSE='#'
else
  MSVC_TRUE='#'
  MSVC_FALSE=
fi
    echo "$ac_t""${MSVC}" 1>&6


    
    
    

    echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
echo "configure:1359: checking "the default compiler flags"" >&5

                        cygflags_enable_debug="no"
    # Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval="$enable_debug"
  case "${enableval}" in
       yes) cygflags_enable_debug="yes" ;;
       *)   cygflags_enable_debug="no" ;;
    esac
fi


            cygflags_enable_ansi="no"
    if test "${MSVC}" = "yes" ; then
      # Check whether --enable-ansi or --disable-ansi was given.
if test "${enable_ansi+set}" = set; then
  enableval="$enable_ansi"
  case "${enableval}" in
         yes) cygflags_enable_ansi="yes" ;;
         *)   cygflags_enable_ansi="no" ;;
      esac
fi

    fi

        if test "${GCC}" = "yes" ; then
        cyg_CFLAGS="-pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
        cyg_CXXFLAGS="-pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
    elif test "${MSVC}" = "yes" ; then
        cyg_CFLAGS="-nologo -W3"
        cyg_CXXFLAGS="-nologo -W3 -GR -GX"
    else
        { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
    fi

        if test "${cygflags_enable_debug}" = "yes" ; then
        if test "${GCC}" = "yes" ; then
            cyg_CFLAGS="${cyg_CFLAGS} -g -O0"
            cyg_CXXFLAGS="${cyg_CXXFLAGS} -g -O0"
        elif test "${MSVC}" = "yes" ; then
            cyg_CFLAGS="${cyg_CFLAGS} -MDd -Zi"
            cyg_CXXFLAGS="${cyg_CXXFLAGS} -MDd -Zi"
        fi
    else
        if test "${GCC}" = "yes" ; then
            cyg_CFLAGS="${cyg_CFLAGS} -O0"
            cyg_CXXFLAGS="${cyg_CXXFLAGS} -O0"
        elif test "${MSVC}" = "yes" ; then
            cyg_CFLAGS="${cyg_CFLAGS} -MD -O2"
            cyg_CXXFLAGS="${cyg_CXXFLAGS} -MD -O2"
        fi
    fi

    CFLAGS="${ac_save_CFLAGS}"
    CXXFLAGS="${ac_save_CXXFLAGS}"
    
    
    echo "$ac_t""done" 1>&6








echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
echo "configure:1427: checking for Tcl version" >&5
# Check whether --with-tcl-version or --without-tcl-version was given.
if test "${with_tcl_version+set}" = set; then
  withval="$with_tcl_version"
  
  cyg_ac_tcl_version=${with_tcl_version}

else
  
  if test "${MSVC}" = "yes" ; then
    cyg_ac_tcl_version=80
  else
    if test "${ac_cv_cygwin}" = "yes" ; then
      cyg_ac_tcl_version=80
    else
      cyg_ac_tcl_version=""
    fi
  fi

fi

echo "$ac_t""${cyg_ac_tcl_version}" 1>&6



# Check whether --with-tcl or --without-tcl was given.
if test "${with_tcl+set}" = set; then
  withval="$with_tcl"
  :
fi

# Check whether --with-tcl or --without-tcl was given.
if test "${with_tcl+set}" = set; then
  withval="$with_tcl"
  :
fi

# Check whether --with-tcl or --without-tcl was given.
if test "${with_tcl+set}" = set; then
  withval="$with_tcl"
  :
fi


echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
echo "configure:1472: checking for Tcl installation" >&5


if test "${MSVC}" = "yes" ; then
  if test "${with_tcl_header+set}" = set; then
    cyg_ac_tcl_incdir=${with_tcl_header}
  else
    if test "${with_tcl+set}" = set; then
      cyg_ac_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
  fi
  if test "${with_tcl_lib+set}" = set; then
    cyg_ac_tcl_libdir=${with_tcl_lib}
  else
    if test "${with_tcl+set}" = set; then
      cyg_ac_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
  fi
  cyg_ac_tcl_libs="tcl${cyg_ac_tcl_version}.lib"
else
  tcl_incdirs="${with_tcl_header} ${with_tcl}/include ${prefix}/include /usr/include/tcl$cyg_ac_tcl_version /usr/include"
  
cyg_ac_tcl_incdir=NO
for i in $tcl_incdirs;
do
  for j in tcl.h;
  do
    if test -r "$i/$j"; then
      cyg_ac_tcl_incdir=$i
      break 2
    fi
  done
done

  tcl_libdirs="${with_tcl_lib} ${with_tcl}/lib ${libdir} ${prefix}/lib /usr/lib/tcl$cyg_ac_tcl_version /usr/lib"
  
cyg_ac_tcl_libdir=NO
for i in $tcl_libdirs;
do
  for j in tclConfig.sh;
  do
    if test -r "$i/$j"; then
      cyg_ac_tcl_libdir=$i
      break 2
    fi
  done
done

  if test \! -r ${cyg_ac_tcl_libdir}/tclConfig.sh ; then
    { echo "configure: error: unable to locate Tcl config file tclConfig.sh" 1>&2; exit 1; }
  else
    . ${cyg_ac_tcl_libdir}/tclConfig.sh
    cyg_ac_tcl_libs="-ltcl${cyg_ac_tcl_version} ${TCL_LIBS}"
  fi
fi

if test \! -r ${cyg_ac_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
  
    
    

    if test "${MSVC}" = "yes" ; then
      cyg_ac_tcl_incdir=`cygpath -w ${cyg_ac_tcl_incdir} | tr \\\\\\\\ /`
    fi

  
    
    

    if test "${MSVC}" = "yes" ; then
      cyg_ac_tcl_libdir=`cygpath -w ${cyg_ac_tcl_libdir} | tr \\\\\\\\ /`
    fi

fi

echo "$ac_t""${cyg_ac_tcl_libdir}" 1>&6


⌨️ 快捷键说明

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