~ubuntu-branches/ubuntu/maverick/clamav/maverick-backports

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/autoconf/m4/visibility_inlines_hidden.m4

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran, Stephen Gran, Michael Tautschnig
  • Date: 2010-04-26 21:41:18 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100426214118-i6lo606wnh7ywfj6
Tags: 0.96+dfsg-4
[ Stephen Gran ]
* Fixed typo in clamav-milter's postinst

[ Michael Tautschnig ]
* Fixed typo in clamav-freshclam's postinst (closes: #579271)
* Debconf translation updates
  - Portuguese (closes: #579068)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Determine if the compiler accepts -fvisibility-inlines-hidden
 
3
#
 
4
# This macro is specific to LLVM.
 
5
#
 
6
AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN],
 
7
[AC_CACHE_CHECK([for compiler -fvisibility-inlines-hidden option],
 
8
                [llvm_cv_cxx_visibility_inlines_hidden],
 
9
[ AC_LANG_PUSH([C++])
 
10
  oldcxxflags="$CXXFLAGS"
 
11
  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
 
12
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
 
13
    [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
 
14
  CXXFLAGS="$oldcxxflags"
 
15
  AC_LANG_POP([C++])
 
16
])
 
17
if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
 
18
  AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[1])
 
19
else
 
20
  AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[0])
 
21
fi
 
22
])