📄 configure
字号:
#include "confdefs.h"template <class T, int N=0 > struct Class { private: T* t; enum { t1=N };public: int get_n() { return N; }};Class<int> cl;Class<int, 2> cl2; int main() {; return 0; }EOFif { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_default_nontype_param="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1EOF ac_cv_default_nontype_param="no" firm -f conftest*echo "$ac_t""$ac_cv_default_nontype_param" 1>&6echo $ac_n "checking for non-type parameter bug""... $ac_c" 1>&6echo "configure:1925: checking for non-type parameter bug" >&5cat > conftest.$ac_ext <<EOF#line 1927 "configure"#include "confdefs.h"template <class T, int N> struct Class { private: T* t; enum { t1=N };public: int get_n() { return N; }};template <class T, int N>int operator==(const Class<T,N>& , const Class<T,N>& ) { return 0; }Class<int, 1> cl;Class<int, 1> cl2;int i(cl==cl2); int main() {; return 0; }EOFif { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_nontype_param_bug="no"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_NON_TYPE_TMPL_PARAM_BUG 1EOF ac_cv_nontype_param_bug="yes" firm -f conftest*echo "$ac_t""$ac_cv_nontype_param_bug" 1>&6echo $ac_n "checking for static data member templates""... $ac_c" 1>&6echo "configure:1967: checking for static data member templates" >&5cat > conftest.$ac_ext <<EOF#line 1969 "configure"#include "confdefs.h"template <class T> struct Class { static int a; }; template <class T> int Class<T>::a;int main() {; return 0; }EOFif { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_static_templates="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_NO_STATIC_TEMPLATE_DATA 1EOF ac_cv_static_templates="no"firm -f conftest*echo "$ac_t""$ac_cv_static_templates" 1>&6if test "$ac_cv_static_templates" = no; then echo $ac_n "checking for weak attribute""... $ac_c" 1>&6echo "configure:1994: checking for weak attribute" >&5 cat > conftest.$ac_ext <<EOF#line 1996 "configure"#include "confdefs.h"int a_w __attribute__((weak));int main() {; return 0; }EOFif { (eval echo configure:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_WEAK_ATTRIBUTE 1EOF ac_cv_weak_attribute="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_weak_attribute="no"firm -f conftest* echo "$ac_t""$ac_cv_weak_attribute" 1>&6fiif test "$ac_cv_static_templates" = yes; thenecho $ac_n "checking for static array member size bug""... $ac_c" 1>&6echo "configure:2021: checking for static array member size bug" >&5cat > conftest.$ac_ext <<EOF#line 2023 "configure"#include "confdefs.h"template <class T> struct Class { enum { sz=5 }; static int a[sz]; }; template <class T> int Class<T>::a[Class<T>::sz];int main() {; return 0; }EOFif { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_static_array_bug="no"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_STATIC_ARRAY_BUG 1EOF ac_cv_static_array_bug="yes"firm -f conftest*echo "$ac_t""$ac_cv_static_array_bug" 1>&6fiecho $ac_n "checking for static data member const initializer bug""... $ac_c" 1>&6echo "configure:2048: checking for static data member const initializer bug" >&5cat > conftest.$ac_ext <<EOF#line 2050 "configure"#include "confdefs.h"template <class T> struct Class { static const int a = 1; }; template <class T> const int Class<T>::a;int main() {; return 0; }EOFif { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_static_init_bug="no"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_STATIC_CONST_INIT_BUG 1EOF ac_cv_static_init_bug="yes"firm -f conftest*echo "$ac_t""$ac_cv_static_init_bug" 1>&6echo $ac_n "checking for namespaces support""... $ac_c" 1>&6echo "configure:2074: checking for namespaces support" >&5cat > conftest.$ac_ext <<EOF#line 2076 "configure"#include "confdefs.h"class test_class {}; namespace std { using ::test_class; template <class T> struct Class { typedef T my_type; }; typedef Class<int>::my_type int_type; }; inline int ns_foo (std::int_type t) { using namespace std; int_type i =2; return i+t; } int main() {(void)ns_foo(1);; return 0; }EOFif { (eval echo configure:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* _TEST_STD="std" _TEST_STD_BEGIN="namespace $_TEST_STD" _TEST_STD_END="namespace $_TEST_STD" ac_cv_namespaces="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_HAS_NO_NAMESPACES 1EOF _TEST_STD="" _TEST_STD_BEGIN="" _TEST_STD_END="" ac_cv_namespaces="no"firm -f conftest*echo "$ac_t""$ac_cv_namespaces" 1>&6echo $ac_n "checking for broken "using" directive""... $ac_c" 1>&6echo "configure:2110: checking for broken "using" directive" >&5cat > conftest.$ac_ext <<EOF#line 2112 "configure"#include "confdefs.h"namespace std { template <class T> struct Class { typedef T my_type; }; typedef Class<int>::my_type int_type; template <class T> void foo(T,int) {} template <class T> void foo(T,int,int) {} }; using std::Class; using std::foo; int main() {(void)foo(1,1);; return 0; }EOFif { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_broken_using="no"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_broken_using="yes"firm -f conftest*if test "$ac_cv_broken_using" = no; then# check if no warnings have been issued if `check_warning` ; then ac_cv_broken_using=no else cat >> confdefs.h <<\EOF#define _STLP_BROKEN_USING_DIRECTIVE 1EOF fielse cat >> confdefs.h <<\EOF#define _STLP_BROKEN_USING_DIRECTIVE 1EOFfiecho "$ac_t""$ac_cv_broken_using" 1>&6if test "$ac_cv_namespaces" = yes; then# Check whether --enable-namespaces or --disable-namespaces was given.if test "${enable_namespaces+set}" = set; then enableval="$enable_namespaces" case "$enableval" in no) cat >> confdefs.h <<\EOF#define _STLP_NO_NAMESPACES 1EOF _TEST_STD="" _TEST_STD_BEGIN="" _TEST_STD_END="" echo "$ac_t""Config arg --disable-namespaces : code not put into namespace by user request" 1>&6;; *) echo "$ac_t""Config default: code put into namespace" 1>&6esacelse echo "$ac_t""Config default: code put into namespace" 1>&6fielse echo "$ac_t""Compiler restriction : no namespaces support used" 1>&6fiecho $ac_n "checking for exceptions support""... $ac_c" 1>&6echo "configure:2184: checking for exceptions support" >&5cat > conftest.$ac_ext <<EOF#line 2186 "configure"#include "confdefs.h"int ex_foo() { try { try { throw(1); } catch (int a) { throw; } } catch (...) {;} return 0; }int main() {(void)ex_foo();; return 0; }EOFif { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_exceptions="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_HAS_NO_EXCEPTIONS 1EOF ac_cv_exceptions="no"firm -f conftest*echo "$ac_t""$ac_cv_exceptions" 1>&6if test "$ac_cv_exceptions" = yes; thenecho $ac_n "checking if exceptions specification works""... $ac_c" 1>&6echo "configure:2217: checking if exceptions specification works" >&5cat > conftest.$ac_ext <<EOF#line 2219 "configure"#include "confdefs.h"template <class T> inline int ex_spec_foo(const T&) throw () { return 0;} int main() {(void)ex_spec_foo(5);; return 0; }EOFif { (eval echo configure:2226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_exception_spec="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_NO_EXCEPTION_SPEC 1EOF ac_cv_exception_spec="no"firm -f conftest*echo "$ac_t""$ac_cv_exception_spec" 1>&6echo $ac_n "checking if return is required after throw""... $ac_c" 1>&6echo "configure:2242: checking if return is required after throw" >&5cat > conftest.$ac_ext <<EOF#line 2244 "configure"#include "confdefs.h"int ex_foo() { try { try { throw(1); } catch (int a) { throw; } } catch (...) {;} return 0; }int main() {(void)ex_foo();; return 0; }EOFif { (eval echo configure:2257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_throw_return_bug="no"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_THROW_RETURN_BUG 1EOF ac_cv_throw_return_bug="yes"firm -f conftest* if test "$ac_cv_throw_return_bug" = no; then # check if no warnings have been issued if `check_warning` ; then ac_cv_throw_return_bug="no" else cat >> confdefs.h <<\EOF#define _STLP_THROW_RETURN_BUG 1EOF ac_cv_throw_return_bug="yes" fi fiecho "$ac_t""$ac_cv_throw_return_bug" 1>&6fiecho $ac_n "checking for native <string> header with basic_string defined ""... $ac_c" 1>&6echo "configure:2288: checking for native <string> header with basic_string defined " >&5cat > conftest.$ac_ext <<EOF#line 2290 "configure"#include "confdefs.h" #include <string> # if !defined (_STLP_HAS_NO_NAMESPACES) using namespace $_TEST_STD; # endif basic_string<char, char_traits<char>, allocator<char> > bs; string bd = bs; int main() {; return 0; }EOFif { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_string_header="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_NO_STRING_HEADER 1EOF ac_cv_string_header="no"firm -f conftest*echo "$ac_t""$ac_cv_string_header" 1>&6if test "$ac_cv_string_header" = yes; thenecho $ac_n "checking for native <stdexcept> header""... $ac_c" 1>&6echo "configure:2322: checking for native <stdexcept> header" >&5cat > conftest.$ac_ext <<EOF#line 2324 "configure"#include "confdefs.h" #include <stdexcept> # if !defined (_STLP_HAS_NO_NAMESPACES) using namespace $_TEST_STD; # endif string s; logic_error le(s); runtime_error re(s); domain_error de(s); invalid_argument ia(s); length_error lne(s); out_of_range or(s); range_error rne(s); overflow_error ove(s); underflow_error ue(s); int main() {; return 0; }EOFif { (eval echo configure:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_stdexcept_header="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat >> confdefs.h <<\EOF#define _STLP_NO_STDEXCEPT_HEADER 1EOF ac_cv_stdexcept_header="no"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -