]> git.pld-linux.org Git - packages/crossmingw32-wxWidgets.git/blob - wxWidgets-ac.patch
- updated from wxWindows-*
[packages/crossmingw32-wxWidgets.git] / wxWidgets-ac.patch
1 --- wxWindows-2.4.2/acinclude.m4.wiget  2002-12-18 19:13:53.000000000 +0100
2 +++ wxWindows-2.4.2/acinclude.m4        2003-09-23 14:44:44.000000000 +0200
3 @@ -96,8 +96,7 @@
4    if test "$cross_compiling" = "yes"; then
5      ifelse([$2], , :, [$2])
6    else
7 -    AC_LANG_SAVE
8 -    AC_LANG_CPLUSPLUS
9 +    AC_LANG_PUSH(C++)
10  
11      AC_CHECK_HEADERS(iostream)
12  
13 @@ -107,7 +106,7 @@
14        ifelse([$2], , :, [$2])
15      fi
16  
17 -    AC_LANG_RESTORE
18 +    AC_LANG_POP(C++)
19    fi
20  ])
21  
22 @@ -121,8 +120,7 @@
23  [
24    AC_CACHE_CHECK([if C++ compiler supports bool], wx_cv_cpp_bool,
25    [
26 -    AC_LANG_SAVE
27 -    AC_LANG_CPLUSPLUS
28 +    AC_LANG_PUSH(C++)
29  
30      AC_TRY_COMPILE(
31        [
32 @@ -140,7 +138,7 @@
33        ]
34      )
35  
36 -    AC_LANG_RESTORE
37 +    AC_LANG_POP(C++)
38    ])
39  
40    if test "$wx_cv_cpp_bool" = "yes"; then
41 @@ -158,8 +156,7 @@
42    AC_CACHE_CHECK([if C++ compiler supports the explicit keyword],
43                   wx_cv_explicit,
44    [
45 -    AC_LANG_SAVE
46 -    AC_LANG_CPLUSPLUS
47 +    AC_LANG_PUSH(C++)
48  
49      dnl do the test in 2 steps: first check that the compiler knows about the
50      dnl explicit keyword at all and then verify that it really honours it
51 @@ -187,7 +184,7 @@
52        wx_cv_explicit=no
53      )
54  
55 -    AC_LANG_RESTORE
56 +    AC_LANG_POP(C++)
57    ])
58  
59    if test "$wx_cv_explicit" = "yes"; then
60 --- wxWidgets-2.5.3/configure.in.orig   2005-02-20 19:38:45.461014000 +0100
61 +++ wxWidgets-2.5.3/configure.in        2005-02-20 20:58:15.485860176 +0100
62 @@ -1337,8 +1337,7 @@
63  dnl   adds -traditional for gcc if needed
64  AC_PROG_GCC_TRADITIONAL
65  
66 -AC_LANG_SAVE
67 -AC_LANG_CPLUSPLUS
68 +AC_LANG_PUSH(C++)
69  
70  dnl C++-compiler checks
71  dnl   defines CXX with the compiler to use
72 @@ -1350,7 +1349,7 @@
73  CXXFLAGS=${CXXFLAGS:=}
74  AC_PROG_CXX
75  
76 -AC_LANG_RESTORE
77 +AC_LANG_POP(C++)
78  
79  dnl ranlib command
80  dnl   defines RANLIB with the appropriate command
81 @@ -2218,7 +2217,7 @@
82              dnl HAVE_STDLIB_H which are already defined and this provokes
83              dnl a compiler warning which configure considers as an error...
84              AC_MSG_CHECKING(for jpeglib.h)
85 -            AC_CACHE_VAL(ac_cv_header_jpeglib_h,
86 +            AC_CACHE_VAL(ac_cv_header_jpeglib_h,[
87                  AC_TRY_COMPILE(
88                      [
89                          #undef HAVE_STDLIB_H
90 @@ -2230,7 +2229,7 @@
91                      ac_cv_header_jpeglib_h=yes,
92                      ac_cv_header_jpeglib_h=no
93                  )
94 -            )
95 +            ])
96              AC_MSG_RESULT($ac_cv_header_jpeglib_h)
97  
98              if test "$ac_cv_header_jpeglib_h" = "yes"; then
This page took 0.054714 seconds and 3 git commands to generate.