~ubuntu-branches/ubuntu/raring/clucene-core/raring-proposed

« back to all changes in this revision

Viewing changes to m4/dps_static_const_type.m4

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-08-11 09:33:38 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120811093338-fgrx41ftqew3qt6a
Tags: 2.3.3.4-1
* New upstream release (Closes: #661703).
* Convert package to multiarch.
* Drop obsolete patches:
  - 01_add_missing_include_bug505667.diff
  - 02_posixness_fix_bug530308.diff
* Add patches:
  - Fixing_ZLIB_configuration_in_shared_CMakeLists.patch
  - Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
  - Install-contribs-lib.patch
  - multiarch.patch
* Update debian/compat: bump to 8.
* Update debian/control:
  - update build dependencies (add cmake, libboost-dev and libz-dev).
  - bump Standards-Version to 3.9.3.
  - rename packages due to ABI bump: libclucene0ldbl -> libclucene-core1.
  - add libclucene-contribs1 package.
* Update debian/rules:
  - rewrite to use CMake.
  - add multiarch support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl dps_static_const
2
 
AC_DEFUN([dps_static_const],
3
 
    [AC_MSG_CHECKING(whether ${CXX} supports static const definitions in classes)
4
 
     AC_CACHE_VAL(dps_static_const_type,
5
 
                [ 
6
 
                 AC_LANG_SAVE
7
 
                 AC_LANG_CPLUSPLUS
8
 
                 
9
 
                 AC_TRY_RUN([class x{public: static const int SCI=55; }; int main(){ x a; if ( a.SCI!=55 ) throw "err"; }],
10
 
                         dps_static_const_type=1,
11
 
                         dps_static_const_type=0,
12
 
                         dps_static_const_type=0)
13
 
                
14
 
                 if test $dps_static_const_type -eq 0; then
15
 
                         AC_TRY_RUN([class x{public: enum{ SCI=55 }; }; int main(){ x a; if ( a.SCI!=55 ) throw "err"; }],
16
 
                                 dps_static_const_type=2,
17
 
                                 dps_static_const_type=0,
18
 
                                 dps_static_const_type=0)
19
 
                 fi
20
 
                 
21
 
                 AC_LANG_RESTORE
22
 
                ])
23
 
    if test $dps_static_const_type -eq 1; then
24
 
      AC_MSG_RESULT([yes])
25
 
      AC_DEFINE([LUCENE_STATIC_CONSTANT_SYNTAX], 1, [How to define a static const in a class])
26
 
    elif test $dps_static_const_type -eq 2; then
27
 
      AC_MSG_RESULT([yes])
28
 
      AC_DEFINE([LUCENE_STATIC_CONSTANT_SYNTAX], 2, [How to define a static const in a class])
29
 
    else
30
 
      AC_MSG_ERROR([Cannot figure out how to write static consts in classes. Check the m4 script or upgrade your compiler])
31
 
    fi
32
 
 
33
 
])
 
 
b'\\ No newline at end of file'