Line 0
Link Here
|
|
|
1 |
--- configure.orig Mon Nov 14 19:34:54 2005 |
2 |
+++ configure Sun Jan 29 16:34:06 2006 |
3 |
@@ -8613,104 +8613,9 @@ |
4 |
|
5 |
fi |
6 |
|
7 |
- |
8 |
- |
9 |
-echo "$as_me:$LINENO: checking if the stl throws an exception at memory allocation failure" >&5 |
10 |
-echo $ECHO_N "checking if the stl throws an exception at memory allocation failure... $ECHO_C" >&6 |
11 |
-if test "${ac_cv_cxx_exception_on_failed_alloc+set}" = set; then |
12 |
- echo "$as_me:$LINENO: result: (cached) $ac_cv_cxx_exception_on_failed_alloc" >&5 |
13 |
-echo "${ECHO_T}(cached) $ac_cv_cxx_exception_on_failed_alloc" >&6 |
14 |
-else |
15 |
- if test "$cross_compiling" = yes; then |
16 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17 |
-See \`config.log' for more details." >&5 |
18 |
-echo "$as_me: error: cannot run test program while cross compiling |
19 |
-See \`config.log' for more details." >&2;} |
20 |
- { (exit 1); exit 1; }; } |
21 |
-else |
22 |
- cat >conftest.$ac_ext <<_ACEOF |
23 |
-/* confdefs.h. */ |
24 |
-_ACEOF |
25 |
-cat confdefs.h >>conftest.$ac_ext |
26 |
-cat >>conftest.$ac_ext <<_ACEOF |
27 |
-/* end confdefs.h. */ |
28 |
-#include <string> |
29 |
-#include <exception> |
30 |
- |
31 |
-int main(int argc, char **argv) |
32 |
-{ |
33 |
- std::string str; |
34 |
- |
35 |
- str = "a"; |
36 |
- while (true) { |
37 |
- try { |
38 |
- str += str; |
39 |
- } |
40 |
- catch(...) { |
41 |
- return(0); |
42 |
- } |
43 |
- } |
44 |
- return(0); |
45 |
-} |
46 |
- |
47 |
-_ACEOF |
48 |
-rm -f conftest$ac_exeext |
49 |
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
50 |
- (eval $ac_link) 2>&5 |
51 |
- ac_status=$? |
52 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
53 |
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
54 |
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
55 |
- (eval $ac_try) 2>&5 |
56 |
- ac_status=$? |
57 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
58 |
- (exit $ac_status); }; }; then |
59 |
- echo "$as_me:$LINENO: result: yes" >&5 |
60 |
-echo "${ECHO_T}yes" >&6 |
61 |
- ac_cv_cxx_exception_on_failed_alloc=yes |
62 |
- |
63 |
-else |
64 |
- echo "$as_me: program exited with status $ac_status" >&5 |
65 |
-echo "$as_me: failed program was:" >&5 |
66 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
67 |
- |
68 |
-( exit $ac_status ) |
69 |
-echo "$as_me:$LINENO: result: no" >&5 |
70 |
-echo "${ECHO_T}no" >&6 |
71 |
- ac_cv_cxx_exception_on_failed_alloc=no |
72 |
- |
73 |
-fi |
74 |
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
75 |
-fi |
76 |
-fi |
77 |
-if test $ac_cv_cxx_exception_on_failed_alloc = yes; then |
78 |
- |
79 |
cat >>confdefs.h <<\_ACEOF |
80 |
#define HAVE_EXCEPTION_ON_ALLOC_FAILURE 1 |
81 |
_ACEOF |
82 |
- |
83 |
-else |
84 |
- { echo "$as_me:$LINENO: WARNING: |
85 |
- |
86 |
-*** NOTICE: This implementation of the STL does not throw an exception for |
87 |
-memory allocation failure. (This feature is known to be lacking in at least |
88 |
-some pre 3.x versions of the gcc compiler suite.) Memory allocation failure |
89 |
-should not mean program termination, but without this feature in the STL, the |
90 |
-author of this software package cannot guarentee the ability to handle memory |
91 |
-allocation failure gracefully. |
92 |
- |
93 |
- " >&5 |
94 |
-echo "$as_me: WARNING: |
95 |
- |
96 |
-*** NOTICE: This implementation of the STL does not throw an exception for |
97 |
-memory allocation failure. (This feature is known to be lacking in at least |
98 |
-some pre 3.x versions of the gcc compiler suite.) Memory allocation failure |
99 |
-should not mean program termination, but without this feature in the STL, the |
100 |
-author of this software package cannot guarentee the ability to handle memory |
101 |
-allocation failure gracefully. |
102 |
- |
103 |
- " >&2;} |
104 |
-fi |
105 |
|
106 |
# Extract the first word of "rsync", so it can be a program name with args. |
107 |
set dummy rsync; ac_word=$2 |