summaryrefslogtreecommitdiff
path: root/packages/libsigcx/libsigcx0/libsigcx-0.6.4-fix-ac-try-run-swb.patch
blob: 66d63537771361c06f8d3a971aab3621a8f99284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2005-05-06  Steven Brown  <swbrown@ucsd.edu>

	* scripts/macros.m4: Assume the AC_TRY_RUN test of exceptions worked
	if we were cross compiling (and therefore can't use AC_TRY_RUN).


diff -ruN libsigcx-old/scripts/macros.m4 libsigcx/scripts/macros.m4
--- libsigcx-old/scripts/macros.m4	2005-05-06 21:04:44.000000000 -0700
+++ libsigcx/scripts/macros.m4	2005-05-06 21:07:40.000000000 -0700
@@ -68,6 +68,10 @@
 AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS) has correct exception handling])
 AC_CACHE_VAL(ac_cv_cxx_eh,
 [
+if test x"$cross_compiling" = x"yes"; then
+  dnl Assume true when cross compiling.
+  ac_cv_cxx_eh=yes
+else
 AC_TRY_RUN(
 [
 #include <stdexcept>
@@ -92,7 +96,7 @@
 ],
 ac_cv_cxx_eh=yes,
 ac_cv_cxx_eh=no)
-])
+fi])
 AC_MSG_RESULT([$ac_cv_cxx_eh])
 if test "x$ac_cv_cxx_eh" = "xyes"
 then