4
4
dnl with or without modifications, as long as this notice is preserved.
6
6
dnl Which version of the canonical setup we're using
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.71])
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.72])
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
10
dnl Force dependency tracking on for Sun Studio builds
118
PANDORA_CHECK_C_VERSION
119
PANDORA_CHECK_CXX_VERSION
121
# off_t is not a builtin type
122
AC_CHECK_SIZEOF(off_t, 4)
123
AS_IF([test "$ac_cv_sizeof_off_t" -eq 0],[
124
AC_MSG_ERROR("${PACKAGE} needs an off_t type.")
127
AC_CHECK_SIZEOF(size_t)
128
AS_IF([test "$ac_cv_sizeof_size_t" -eq 0],[
129
AC_MSG_ERROR("${PACKAGE} needs an size_t type.")
132
AC_DEFINE_UNQUOTED([SIZEOF_SIZE_T],[$ac_cv_sizeof_size_t],[Size of size_t as computed by sizeof()])
133
AC_CHECK_SIZEOF(long long)
134
AC_DEFINE_UNQUOTED([SIZEOF_LONG_LONG],[$ac_cv_sizeof_long_long],[Size of long long as computed by sizeof()])
135
AC_CACHE_CHECK([if time_t is unsigned], [ac_cv_time_t_unsigned],[
136
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
141
int array[(((time_t)-1) > 0) ? 1 : -1];
144
ac_cv_time_t_unsigned=yes
146
ac_cv_time_t_unsigned=no
149
AS_IF([test "$ac_cv_time_t_unsigned" = "yes"],[
150
AC_DEFINE([TIME_T_UNSIGNED], 1, [Define to 1 if time_t is unsigned])
153
dnl AC_FUNC_ALLOCA would test for stack direction if we didn't have a working
154
dnl alloca - but we need to know it anyway for check_stack_overrun.
155
PANDORA_STACK_DIRECTION
160
# Test whether madvise() is declared in C++ code -- it is not on some
161
# systems, such as Solaris
162
AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
164
#include <sys/types.h>
165
#include <sys/mman.h>
170
PANDORA_HAVE_GCC_ATOMICS
123
172
dnl We need to inject error into the cflags to test if visibility works or not
124
173
dnl save_CFLAGS="${CFLAGS}"
125
174
dnl CFLAGS="${CFLAGS} -Werror"