~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to m4/pandora_visibility.m4

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
dnl Set the variable CFLAG_VISIBILITY.
21
21
dnl Defines and sets the variable HAVE_VISIBILITY.
22
22
 
23
 
AC_DEFUN([PANDORA_VISIBILITY],
 
23
AC_DEFUN([PANDORA_CHECK_VISIBILITY],
24
24
[
25
25
  AC_REQUIRE([AC_PROG_CC])
26
26
  AC_REQUIRE([PANDORA_PLATFORM])
43
43
    AC_MSG_RESULT([$gl_cv_cc_visibility])
44
44
    if test $gl_cv_cc_visibility = yes; then
45
45
      CFLAG_VISIBILITY="-fvisibility=hidden"
 
46
      NO_VISIBILITY="-fvisibility=default"
46
47
      HAVE_VISIBILITY=1
47
48
    fi
48
49
  ])
49
50
  AS_IF([test "x$SUNCC" = "xyes"],[
50
51
    CFLAG_VISIBILITY="-xldscope=hidden"
 
52
    NO_VISIBILITY="-xldscope=global"
51
53
    HAVE_VISIBILITY=1
52
54
  ])
53
55
  AC_SUBST([CFLAG_VISIBILITY])
 
56
  AC_SUBST([NO_VISIBILITY])
54
57
  AC_SUBST([HAVE_VISIBILITY])
55
58
  AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
56
59
    [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])
57
60
])
 
61
 
 
62
AC_DEFUN([PANDORA_ENABLE_VISIBILITY],[
 
63
  AC_REQUIRE([PANDORA_CHECK_VISIBILITY])
 
64
  AM_CFLAGS="${AM_CFLAGS} ${CFLAG_VISIBILITY}"
 
65
  AM_CXXFLAGS="${AM_CXXFLAGS} ${CFLAG_VISIBILITY}"
 
66
])