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

📄 configure

📁 粗糙集应用软件
💻
📖 第 1 页 / 共 5 页
字号:


if test "$ac_cv_c_cross" = "yes"; then
  CXXFLAGS="${CXXFLAGS} -c"
fi

ac_ext=$use_ac_ext

echo $ac_n "checking for basic STL compatibility""... $ac_c" 1>&6
echo "configure:915: checking for basic STL compatibility" >&5
cat > conftest.$ac_ext <<EOF
#line 917 "configure"
#include "confdefs.h"

template <class Arg1, class Arg2, class Result>
struct binary_function {
    typedef Arg1 first_argument_type;
    typedef Arg2 second_argument_type;
    typedef Result result_type;
};      
template <class T>
struct plus : public binary_function<T, T, T> {
    T operator()(const T& x, const T& y) const;
};

template <class T>
T plus<T>::operator()(const T& x, const T& y) const { return x + y; }
plus<int> p;

int main() {

; return 0; }
EOF
if { (eval echo configure:939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_compat="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  { echo "configure: error: Your compiler won't be able to compile this implementation. Sorry." 1>&2; exit 1; } 
 ac_cv_compat="no"

fi
rm -f conftest*
echo "$ac_t""$ac_cv_compat" 1>&6

echo $ac_n "checking for partial specialization syntax""... $ac_c" 1>&6
echo "configure:954: checking for partial specialization syntax" >&5
cat > conftest.$ac_ext <<EOF
#line 956 "configure"
#include "confdefs.h"

     template <class T> class fs_foo {};
     template <> class fs_foo<int> {};
int main() {
 fs_foo<int> i;
; return 0; }
EOF
if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
    _FULL_SPEC="template <>" ac_cv_spec_syntax="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
    cat >> confdefs.h <<\EOF
#define __STL_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
EOF
 ac_cv_spec_syntax="no" _FULL_SPEC=""
fi
rm -f conftest*
echo "$ac_t""$ac_cv_spec_syntax" 1>&6

echo $ac_n "checking for bool keyword""... $ac_c" 1>&6
echo "configure:981: checking for bool keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 983 "configure"
#include "confdefs.h"
bool b_foo() { return true; }
int main() {
(void)b_foo();
; return 0; }
EOF
if { (eval echo configure:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_bool="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_NO_BOOL 1
EOF
 ac_cv_bool="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_bool" 1>&6
if test "$ac_cv_bool" = "no"; then
  echo $ac_n "checking for yvals.h header""... $ac_c" 1>&6
echo "configure:1006: checking for yvals.h header" >&5
  cat > conftest.$ac_ext <<EOF
#line 1008 "configure"
#include "confdefs.h"
#include <yvals.h> 
    extern bool aaa=true;
   
int main() {

; return 0; }
EOF
if { (eval echo configure:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_YVALS_H 1
EOF
 echo "$ac_t""yes" 1>&6 
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
  echo "$ac_t""no" 1>&6
  echo $ac_n "checking whether bool is reserved word""... $ac_c" 1>&6
echo "configure:1030: checking whether bool is reserved word" >&5
  cat > conftest.$ac_ext <<EOF
#line 1032 "configure"
#include "confdefs.h"
typedef int bool;
int main() {

; return 0; }
EOF
if { (eval echo configure:1039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_bool_reserved="no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_DONT_USE_BOOL_TYPEDEF 1
EOF
 ac_cv_bool_reserved="yes"
fi
rm -f conftest*
  echo "$ac_t""$ac_cv_bool_reserved" 1>&6
  
fi
rm -f conftest*
fi

echo $ac_n "checking for wchar_t type""... $ac_c" 1>&6
echo "configure:1059: checking for wchar_t type" >&5
cat > conftest.$ac_ext <<EOF
#line 1061 "configure"
#include "confdefs.h"
 #include <wchar.h>
      wchar_t wc_foo() { return 'a'; }
int main() {
(void)wc_foo();
; return 0; }
EOF
if { (eval echo configure:1069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_wchar="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_NO_WCHAR_T 1
EOF
 ac_cv_wchar="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_wchar" 1>&6

echo $ac_n "checking if wchar_t is unsigned short""... $ac_c" 1>&6
echo "configure:1085: checking if wchar_t is unsigned short" >&5
cat > conftest.$ac_ext <<EOF
#line 1087 "configure"
#include "confdefs.h"

     # include <wchar.h>
     template <class T> struct foo {};
     $_FULL_SPEC struct foo <wchar_t> {};
     typedef unsigned short u__short;
     $_FULL_SPEC struct foo <u__short> {};
     foo<wchar_t> f1;
     foo<u__short> f2;
	
int main() {

; return 0; }
EOF
if { (eval echo configure:1102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_wchar_short="no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_WCHAR_T_IS_USHORT 1
EOF
 ac_cv_wchar_short="yes"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_wchar_short" 1>&6

echo $ac_n "checking for long long type""... $ac_c" 1>&6
echo "configure:1118: checking for long long type" >&5
cat > conftest.$ac_ext <<EOF
#line 1120 "configure"
#include "confdefs.h"
long long ll_foo() { return 0; }
int main() {
(void)ll_foo();
; return 0; }
EOF
if { (eval echo configure:1127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_LONG_LONG 1
EOF
 ac_cv_long_long="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_long_long="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_long_long" 1>&6

echo $ac_n "checking for long double type""... $ac_c" 1>&6
echo "configure:1143: checking for long double type" >&5
cat > conftest.$ac_ext <<EOF
#line 1145 "configure"
#include "confdefs.h"
long double ld_foo() { return 0; }
int main() {
(void)ld_foo();
; return 0; }
EOF
if { (eval echo configure:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_long_double="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_NO_LONG_DOUBLE 1
EOF
 ac_cv_long_double="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_long_double" 1>&6

echo $ac_n "checking for typename keyword""... $ac_c" 1>&6
echo "configure:1168: checking for typename keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 1170 "configure"
#include "confdefs.h"

template <class T1, class T2>
struct pair {
    typedef T1 first_type;
    typedef T2 second_type;
};

template <class Arg, class Result>
struct unary_function {
    typedef Arg argument_type;
    typedef Result result_type;
};

template <class Pair>
struct select2nd : public unary_function<Pair, typename Pair::second_type> {
  typedef typename Pair::first_type ignored_type;
  const typename Pair::second_type& operator()(const typename Pair::second_type& x,
						const ignored_type& ) const
  {
    return x;
  }
  
};
    
int main() {
 
	typedef pair<int,int> tn_p;
	select2nd< tn_p > tn_s;
	(void)tn_s(1,5);
    
; return 0; }
EOF
if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  __TYPENAME="typename" 
     ac_cv_typename="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  __TYPENAME="" 
     cat >> confdefs.h <<\EOF
#define __STL_NEED_TYPENAME 1
EOF

     ac_cv_typename="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_typename" 1>&6

echo $ac_n "checking for explicit keyword""... $ac_c" 1>&6
echo "configure:1223: checking for explicit keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 1225 "configure"
#include "confdefs.h"
struct expl_Class { int a; explicit expl_Class(int t): a(t) {} };
    expl_Class c(1);
    
int main() {

; return 0; }
EOF
if { (eval echo configure:1234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_explicit="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_NO_EXPLICIT 1
EOF
 ac_cv_explicit="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_explicit" 1>&6

echo $ac_n "checking for mutable keyword""... $ac_c" 1>&6
echo "configure:1250: checking for mutable keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 1252 "configure"
#include "confdefs.h"
struct mut_Class { mutable int a; void update() const { a=0; }  };
    mut_Class c;
    
int main() {
c.update()
; return 0; }
EOF
if { (eval echo configure:1261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_mutable="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_NEED_MUTABLE 1
EOF
 ac_cv_mutable="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_mutable" 1>&6

echo $ac_n "checking for new style casts""... $ac_c" 1>&6
echo "configure:1277: checking for new style casts" >&5
cat > conftest.$ac_ext <<EOF
#line 1279 "configure"
#include "confdefs.h"
struct ncast_Class { 
	int a; void update(int* i) { *i=a; }  };
    ncast_Class c;
    
int main() {

  const int a(5);
  c.update(const_cast<int*>(&a))
    
; return 0; }
EOF
if { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_new_cast="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_NO_NEW_STYLE_CASTS 1
EOF
 ac_cv_new_cast="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_new_cast" 1>&6

echo $ac_n "checking for new-style C library headers""... $ac_c" 1>&6
echo "configure:1308: checking for new-style C library headers" >&5
cat > conftest.$ac_ext <<EOF
#line 1310 "configure"
#include "confdefs.h"

     #include <cctype>
     #include <cstddef>
     #include <cstdio>
     #include <cstdlib>
     #include <cstring>
     #include <cassert>
     #include <climits>
     #include <new>
     #include <iosfwd>
     #include <iostream>
     #ifndef __STL_NO_WCHAR_T
     #include <cwchar>
     #endif
       
int main() {

; return 0; }
EOF
if { (eval echo configure:1331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_newheaders="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define __STL_HAS_NO_NEW_C_HEADERS 1
EOF
 ac_cv_newheaders="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_newheaders" 1>&6

echo $ac_n "checking for new-style <new> header""... $ac_c" 1>&6
echo "configure:1347: checking for new-style <new> header" >&5
cat > conftest.$ac_ext <<EOF
#line 1349 "configure"
#include "confdefs.h"

     #include <new>
       
int main() {

; return 0; }
EOF

⌨️ 快捷键说明

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