~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

pandora-buildĀ v0.76

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
6
6
dnl Which version of the canonical setup we're using
7
 
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.74])
 
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.76])
8
8
 
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
10
  dnl Force dependency tracking on for Sun Studio builds
24
24
  m4_define([PCT_IGNORE_SHARED_PTR],[no])
25
25
  m4_define([PCT_FORCE_GCC42],[no])
26
26
  m4_define([PCT_SRC_IN_SRC],[no])
 
27
  m4_define([PCT_USE_VISIBILITY],[yes])
27
28
  m4_foreach([pct_arg],[$*],[
28
29
    m4_case(pct_arg,
29
30
      [use-gnulib], [
42
43
        m4_undefine([PCT_FORCE_GCC42])
43
44
        m4_define([PCT_FORCE_GCC42],[yes])
44
45
      ],
 
46
      [skip-visibility], [
 
47
        m4_undefine([PCT_USE_VISIBILITY])
 
48
        m4_define([PCT_USE_VISIBILITY],[no])
 
49
      ],
45
50
      [src-in-src], [
46
51
        m4_undefine([PCT_SRC_IN_SRC])
47
52
        m4_define([PCT_SRC_IN_SRC],[yes])
82
87
 
83
88
  PANDORA_LIBTOOL
84
89
 
 
90
  AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
 
91
    AM_LDFLAGS="${AM_LDFLAGS} -Wl,--default-symver"
 
92
  ])
 
93
 
85
94
  dnl autoconf doesn't automatically provide a fail-if-no-C++ macro
86
95
  dnl so we check c++98 features and fail if we don't have them, mainly
87
96
  dnl for that reason
154
163
  dnl alloca - but we need to know it anyway for check_stack_overrun.
155
164
  PANDORA_STACK_DIRECTION
156
165
 
 
166
  save_LIBS="${LIBS}"
 
167
  LIBS=""
 
168
  AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
 
169
  LIBM="${LIBS}"
 
170
  LIBS="${save_LIBS}"
 
171
  AC_SUBST([LIBM])
 
172
  
 
173
  AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
 
174
  AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])
 
175
 
 
176
 
 
177
 
157
178
  PANDORA_OPTIMIZE
158
179
 
159
180
  AC_LANG_PUSH(C++)
169
190
 
170
191
  PANDORA_HAVE_GCC_ATOMICS
171
192
 
172
 
  dnl We need to inject error into the cflags to test if visibility works or not
173
 
  dnl save_CFLAGS="${CFLAGS}"
174
 
  dnl CFLAGS="${CFLAGS} -Werror"
175
 
  dnl gl_VISIBILITY
176
 
  dnl CFLAGS="${save_CFLAGS}"
 
193
  m4_if(PCT_USE_VISIBILITY,[yes],[
 
194
    dnl We need to inject error into the cflags to test if visibility works or not
 
195
    save_CFLAGS="${CFLAGS}"
 
196
    CFLAGS="${CFLAGS} -Werror"
 
197
    gl_VISIBILITY
 
198
    CFLAGS="${save_CFLAGS}"
 
199
  ])
177
200
 
178
201
  PANDORA_HEADER_ASSERT
179
202
 
208
231
  AC_SUBST([AM_CFLAGS])
209
232
  AC_SUBST([AM_CXXFLAGS])
210
233
  AC_SUBST([AM_CPPFLAGS])
 
234
  AC_SUBST([AM_LDFLAGS])
211
235
 
212
236
])