~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to build/aclocal/bakefile-lang.m4

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2008-06-30 22:02:17 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080630220217-vag3tkfp91t0453d
Tags: 2.8.8.0-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.8.0.tar.bz2, remove upstream debian dir (LP: #244355).
* Add debian/watch file, LP: #242164.
* Edit get-orig-source target to provide a .orig.tar.gz with the same md5 for
  each .orig.tar.gz generated.
* debian/rules: remove get-orig-source from .PHONY target.
* debian/control.in: add python-wxtools in python-wxgtk=V=U Suggests field.
* Do not apply fix_from_upstream_svn_r52465 patch, not needed.
* Regenerate octave_oct, tcl_tk_tcl patches for the new version.
* Fix spelling-error-in-description lintian warning.
* Fix depends-on-obsolete-package lintian error.
* Fix executable-not-elf-or-script lintian warnings.
* Fix script-not-executable lintian warnings.
* Fix missing-dependency-on-libc lintian error.
* Fix dbg-package-missing-depends lintian warnings.
* Fix package-contains-empty-directory lintian warnings.
* Fix manpage-has-errors-from-man lintian warning.
* Fix image-file-in-usr-lib lintian warnings:
  - add editra_pixmaps patch
  - add xrced_bitmaps patch
* Fix unused-override lintian info.
* Fix malformed-override lintian errors.
* Fix extra-license-file lintian warnings.
* Install upstream wx.pth instead of generated file links (LP: #211553).
* Add editra.png, pyshell.png (encoded using uuencode) icons, LP: #236876:
  - debian/rules: use uudecode to decode .png icons.
* Add a new pyshell.xpm icon.
* Fix doc-base-file-references-missing-file lintian error.
* Fix doc-base-unknown-section lintian warning.
* Fix ruby-script-but-no-ruby-dep lintian errors.
* Fix wish-script-but-no-wish-dep lintian errors.
* Fix missing-dep-for-interpreter errors.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl
2
 
dnl  This file is part of Bakefile (http://bakefile.sourceforge.net)
 
2
dnl  This file is part of Bakefile (http://www.bakefile.org)
3
3
dnl
4
4
dnl  Copyright (C) 2003-2007 Vaclav Slavik, David Elliott and others
5
5
dnl
21
21
dnl  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
22
dnl  DEALINGS IN THE SOFTWARE.
23
23
dnl
24
 
dnl  $Id: bakefile-lang.m4 45826 2007-05-05 14:27:16Z VZ $
25
 
dnl
26
 
dnl  Compiler detection macros by David Elliott
27
 
dnl
28
 
 
29
 
 
30
 
dnl ===========================================================================
31
 
dnl Macros to detect non-GNU compilers (MetroWerks, XLC)
32
 
dnl ===========================================================================
33
 
 
34
 
dnl Based on autoconf _AC_LANG_COMPILER_GNU
35
 
AC_DEFUN([_AC_BAKEFILE_LANG_COMPILER_MWERKS],
36
 
[AC_CACHE_CHECK([whether we are using the Metrowerks _AC_LANG compiler],
37
 
    [bakefile_cv_[]_AC_LANG_ABBREV[]_compiler_mwerks],
38
 
    [AC_TRY_COMPILE([],[#ifndef __MWERKS__
39
 
       choke me
40
 
#endif
41
 
],
42
 
        [bakefile_compiler_mwerks=yes],
43
 
        [bakefile_compiler_mwerks=no])
44
 
    bakefile_cv_[]_AC_LANG_ABBREV[]_compiler_mwerks=$bakefile_compiler_mwerks
45
 
    ])
46
 
])
47
 
 
48
 
dnl Loosely based on autoconf AC_PROG_CC
49
 
dnl TODO: Maybe this should wrap the call to AC_PROG_CC and be used instead.
50
 
AC_DEFUN([AC_BAKEFILE_PROG_MWCC],
51
 
[AC_LANG_PUSH(C)
52
 
_AC_BAKEFILE_LANG_COMPILER_MWERKS
53
 
MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
54
 
AC_LANG_POP(C)
55
 
])
56
 
 
57
 
dnl Loosely based on autoconf AC_PROG_CXX
58
 
dnl TODO: Maybe this should wrap the call to AC_PROG_CXX and be used instead.
59
 
AC_DEFUN([AC_BAKEFILE_PROG_MWCXX],
60
 
[AC_LANG_PUSH(C++)
61
 
_AC_BAKEFILE_LANG_COMPILER_MWERKS
62
 
MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
63
 
AC_LANG_POP(C++)
64
 
])
65
 
 
66
 
dnl Based on autoconf _AC_LANG_COMPILER_GNU
67
 
AC_DEFUN([_AC_BAKEFILE_LANG_COMPILER_XLC],
68
 
[AC_CACHE_CHECK([whether we are using the IBM xlC _AC_LANG compiler],
69
 
    [bakefile_cv_[]_AC_LANG_ABBREV[]_compiler_xlc],
70
 
    [AC_TRY_COMPILE([],[#ifndef __xlC__
71
 
       choke me
72
 
#endif
73
 
],
74
 
        [bakefile_compiler_xlc=yes],
75
 
        [bakefile_compiler_xlc=no])
76
 
    bakefile_cv_[]_AC_LANG_ABBREV[]_compiler_xlc=$bakefile_compiler_xlc
77
 
    ])
78
 
])
79
 
 
80
 
dnl Loosely based on autoconf AC_PROG_CC
81
 
AC_DEFUN([AC_BAKEFILE_PROG_XLCC],
82
 
[AC_LANG_PUSH(C)
83
 
_AC_BAKEFILE_LANG_COMPILER_XLC
84
 
XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
85
 
AC_LANG_POP(C)
86
 
])
87
 
 
88
 
dnl Loosely based on autoconf AC_PROG_CXX
89
 
AC_DEFUN([AC_BAKEFILE_PROG_XLCXX],
90
 
[AC_LANG_PUSH(C++)
91
 
_AC_BAKEFILE_LANG_COMPILER_XLC
92
 
XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
93
 
AC_LANG_POP(C++)
94
 
])
 
24
dnl  $Id: bakefile-lang.m4 53750 2008-05-26 09:21:56Z VS $
 
25
dnl
 
26
dnl  Compiler detection macros by David Elliott and Vadim Zeitlin
 
27
dnl
 
28
 
 
29
 
 
30
dnl ===========================================================================
 
31
dnl Macros to detect different C/C++ compilers
 
32
dnl ===========================================================================
95
33
 
96
34
dnl Based on autoconf _AC_LANG_COMPILER_GNU
97
35
dnl _AC_BAKEFILE_LANG_COMPILER(NAME, LANG, SYMBOL, IF-YES, IF-NO)
113
51
         )
114
52
        ]
115
53
    )
116
 
    AC_LANG_POP($2)
117
54
    if test "x$bakefile_cv_[]_AC_LANG_ABBREV[]_compiler_[]$3" = "xyes"; then
118
55
        :; $4
119
56
    else
120
57
        :; $5
121
58
    fi
 
59
    AC_LANG_POP($2)
 
60
])
 
61
 
 
62
dnl CodeWarrior Metrowerks compiler defines __MWERKS__ for both C and C++
 
63
AC_DEFUN([AC_BAKEFILE_PROG_MWCC],
 
64
[
 
65
    _AC_BAKEFILE_LANG_COMPILER(Metrowerks, C, __MWERKS__, MWCC=yes)
 
66
])
 
67
 
 
68
AC_DEFUN([AC_BAKEFILE_PROG_MWCXX],
 
69
[
 
70
    _AC_BAKEFILE_LANG_COMPILER(Metrowerks, C++, __MWERKS__, MWCXX=yes)
 
71
])
 
72
 
 
73
dnl IBM xlC compiler defines __xlC__ for both C and C++
 
74
AC_DEFUN([AC_BAKEFILE_PROG_XLCC],
 
75
[
 
76
    _AC_BAKEFILE_LANG_COMPILER([IBM xlC], C, __xlC__, XLCC=yes)
 
77
])
 
78
 
 
79
AC_DEFUN([AC_BAKEFILE_PROG_XLCXX],
 
80
[
 
81
    _AC_BAKEFILE_LANG_COMPILER([IBM xlC], C++, __xlC__, XLCXX=yes)
122
82
])
123
83
 
124
84
dnl recent versions of SGI mipsPro compiler define _SGI_COMPILER_VERSION
228
188
AC_DEFUN([_AC_BAKEFILE_PROG_COMPILER],
229
189
[
230
190
    AC_PROG_$1
 
191
 
 
192
    dnl Intel compiler can be used under several different OS and even
 
193
    dnl different architectures (x86, amd64 and Itanium) so it's easier to just
 
194
    dnl always test for it
231
195
    AC_BAKEFILE_PROG_INTEL$1
 
196
 
232
197
    dnl if we're using gcc, we can't be using any of incompatible compilers
233
198
    if test "x$G$1" != "xyes"; then
234
199
        if test "x$1" = "xC"; then
255
220
                AC_BAKEFILE_PROG_SGI$1
256
221
                ;;
257
222
 
 
223
            Linux*)
 
224
                dnl Sun CC is now available under Linux too
 
225
                AC_BAKEFILE_PROG_SUN$1
 
226
                ;;
 
227
 
258
228
            HP-UX*)
259
229
                AC_BAKEFILE_PROG_HP$1
260
230
                ;;