~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_visibility.m4

  • Committer: Monty Taylor
  • Date: 2010-01-01 20:10:49 UTC
  • mto: (1259.3.1 build)
  • mto: This revision was merged to the branch mainline in revision 1262.
  • Revision ID: mordred@inaugust.com-20100101201049-51iwebcwv3rn4l3s
Updates to pandora-build visibility settings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# visibility.m4 serial 2 (gettext-0.18)
2
1
dnl Copyright (C) 2005, 2008 Free Software Foundation, Inc.
 
2
dnl Copyright (C) 2009 Monty Taylor
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
20
20
dnl Set the variable CFLAG_VISIBILITY.
21
21
dnl Defines and sets the variable HAVE_VISIBILITY.
22
22
 
23
 
AC_DEFUN([gl_VISIBILITY],
 
23
AC_DEFUN([PANDORA_VISIBILITY],
24
24
[
25
25
  AC_REQUIRE([AC_PROG_CC])
 
26
  AC_REQUIRE([PANDORA_PLATFORM])
26
27
  CFLAG_VISIBILITY=
27
28
  HAVE_VISIBILITY=0
28
 
  if test -n "$GCC"; then
 
29
  AS_IF([test -n "$GCC"],[
29
30
    AC_MSG_CHECKING([for simple visibility declarations])
30
31
    AC_CACHE_VAL([gl_cv_cc_visibility], [
31
32
      gl_save_CFLAGS="$CFLAGS"
44
45
      CFLAG_VISIBILITY="-fvisibility=hidden"
45
46
      HAVE_VISIBILITY=1
46
47
    fi
47
 
  fi
 
48
  ])
 
49
  AS_IF([test "x$SUNCC" = "xyes"],[
 
50
    CFLAG_VISIBILITY="-xldscope=hidden"
 
51
    HAVE_VISIBILITY=1
 
52
  ])
48
53
  AC_SUBST([CFLAG_VISIBILITY])
49
54
  AC_SUBST([HAVE_VISIBILITY])
50
55
  AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],