~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_visibility.m4

  • Committer: Lee Bieber
  • Date: 2011-01-25 02:10:42 UTC
  • mfrom: (2109.1.4 build)
  • Revision ID: kalebral@gmail.com-20110125021042-ocqa0v509ae7fmtz
Need to add a "drop table a" in execute.wait test
Add execute test suite to regular test run
Merge Lee - fix second part of 705699, check for both client and server before building and testing rabbitmq plugin
Merge Shrews - Changes TransactionServices methods to use references to Session objects instead of pointers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
         extern __attribute__((__visibility__("default"))) int exportedvar;
36
36
         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
37
37
         extern __attribute__((__visibility__("default"))) int exportedfunc (void);],
38
 
        [],[
39
 
        case "$host_os" in
40
 
          *darwin*)
41
 
            gl_cv_cc_visibility=no
42
 
            ;;
43
 
          *)
44
 
            gl_cv_cc_visibility=yes
45
 
            ;;
46
 
        esac
47
 
        ],[gl_cv_cc_visibility=no])
 
38
        [],
 
39
        [gl_cv_cc_visibility=yes],
 
40
        [gl_cv_cc_visibility=no])
48
41
      CFLAGS="$gl_save_CFLAGS"])
49
42
    AC_MSG_RESULT([$gl_cv_cc_visibility])
50
43
    if test $gl_cv_cc_visibility = yes; then
51
44
      CFLAG_VISIBILITY="-fvisibility=hidden"
52
 
      CXXFLAG_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
53
45
      NO_VISIBILITY="-fvisibility=default"
54
46
      HAVE_VISIBILITY=1
55
47
    fi
56
48
  ])
57
49
  AS_IF([test "x$SUNCC" = "xyes"],[
58
50
    CFLAG_VISIBILITY="-xldscope=hidden"
59
 
    CXXFLAG_VISIBILITY="-xldscope=hidden"
60
51
    NO_VISIBILITY="-xldscope=global"
61
52
    HAVE_VISIBILITY=1
62
53
  ])
63
54
  AC_SUBST([CFLAG_VISIBILITY])
64
 
  AC_SUBST([CXXFLAG_VISIBILITY])
65
55
  AC_SUBST([NO_VISIBILITY])
66
56
  AC_SUBST([HAVE_VISIBILITY])
67
57
  AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
71
61
AC_DEFUN([PANDORA_ENABLE_VISIBILITY],[
72
62
  AC_REQUIRE([PANDORA_CHECK_VISIBILITY])
73
63
  AM_CFLAGS="${AM_CFLAGS} ${CFLAG_VISIBILITY}"
74
 
  AM_CXXFLAGS="${AM_CXXFLAGS} ${CXXFLAG_VISIBILITY}"
 
64
  AM_CXXFLAGS="${AM_CXXFLAGS} ${CFLAG_VISIBILITY}"
75
65
])