5
5
[ac_save_CXXFLAGS="$CXXFLAGS"
6
6
AC_CACHE_CHECK([base type of last arg to accept], mysql_cv_btype_last_arg_accept,
8
if test "$ac_cv_prog_gxx" = "yes"
10
10
# Add -Werror, remove -fbranch-probabilities (Bug #268)
11
11
CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-Wcheck//'`
44
dnl Find type of qsort
45
AC_DEFUN([DRIZZLE_TYPE_QSORT],
46
[AC_CACHE_CHECK([return type of qsort], mysql_cv_type_qsort,
47
[AC_TRY_COMPILE([#include <stdlib.h>
51
void qsort(void *base, size_t nel, size_t width,
52
int (*compar) (const void *, const void *));
54
[int i;], mysql_cv_type_qsort=void, mysql_cv_type_qsort=int)])
55
AC_DEFINE_UNQUOTED([RETQSORTTYPE], [$mysql_cv_type_qsort],
56
[The return type of qsort (int or void).])
57
if test "$mysql_cv_type_qsort" = "void"
59
AC_DEFINE_UNQUOTED([QSORT_TYPE_IS_VOID], [1], [qsort returns void])
63
45
#---START: Figure out whether to use 'struct rlimit' or 'struct rlimit64'
64
46
AC_DEFUN([DRIZZLE_TYPE_STRUCT_RLIMIT],
65
47
[ac_save_CXXFLAGS="$CXXFLAGS"
66
48
AC_CACHE_CHECK([struct type to use with setrlimit], mysql_cv_btype_struct_rlimit,
68
if test "$ac_cv_prog_gxx" = "yes"
50
if test "$GXX" = "yes"
70
52
# Add -Werror, remove -fbranch-probabilities (Bug #268)
71
53
CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-Wcheck//'`
309
AC_DEFUN([DRIZZLE_TYPE_SIGHANDLER],
310
[AC_MSG_CHECKING([whether signal handlers are of type void])
311
AC_CACHE_VAL(mysql_cv_void_sighandler,
312
[AC_TRY_COMPILE([#include <sys/types.h>
320
void (*signal ()) ();],
321
[int i;], mysql_cv_void_sighandler=yes, mysql_cv_void_sighandler=no)])dnl
322
AC_MSG_RESULT($mysql_cv_void_sighandler)
323
if test "$mysql_cv_void_sighandler" = "yes"; then
324
AC_DEFINE(VOID_SIGHANDLER, [1], [sighandler type is void (*signal ()) ();])
328
292
AC_DEFUN([DRIZZLE_STACK_DIRECTION],
329
293
[AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,