~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Brian Aker
  • Date: 2008-10-07 15:13:28 UTC
  • mfrom: (481.1.19 codestyle)
  • Revision ID: brian@tangent.org-20081007151328-m49yev7qggqmzxg1
Mergining Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
AC_PROG_CPP
226
226
AM_PROG_CC_C_O
227
227
 
 
228
AC_CXX_STL_HASH
 
229
AC_CXX_CSTDINT
 
230
AC_CXX_CINTTYPES
 
231
AC_CXX_CMATH
 
232
 
228
233
# Print version of CC and CXX compiler (if they support --version)
229
234
case $SYSTEM_TYPE in
230
235
  *apple-darwin*)
291
296
 
292
297
dnl TODO: Can _ISOC99_SOURCE be defined on all platforms and remove the 
293
298
dnl       Need for all of this? 
294
 
if test "${build_vendor}" = "sun"
295
 
then
 
299
case "$target_os" in
 
300
  *solaris*)
296
301
  dnl Do we need both of these? 
297
 
  dnl This is for C++
298
 
  AC_DEFINE([__C99FEATURES__],[1],[C99 Features])
299
 
  dnl This is for C
300
 
  AC_DEFINE([_XOPEN_SOURCE],[600],[X/Open Level])
301
 
fi
 
302
  CXXFLAGS="${CXXFLAGS} -D_C99FEATURES"
 
303
  CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=600"
 
304
  ;;
 
305
esac
 
306
 
302
307
 
303
308
# We use libtool
304
309
#AC_LIBTOOL_WIN32_DLL
861
866
  AC_CHECK_FUNC(gtty, [], [AC_CHECK_LIB(compat, gtty)])
862
867
fi
863
868
 
864
 
AC_CHECK_TYPES([int8, uint8, int16, uint16, int32, uint32, int64, uint64,
865
 
                uchar, uint, ulong],[],[], [
866
 
#include <sys/types.h>
867
 
])
868
869
AC_CHECK_TYPES([fp_except], [], [], [
869
870
#include <sys/types.h>
870
871
#include <ieeefp.h>
941
942
then
942
943
  AC_MSG_ERROR("No size for int type.")
943
944
fi
944
 
AC_CHECK_SIZEOF(long, 4)
945
 
if test "$ac_cv_sizeof_long" -eq 0
946
 
then
947
 
  AC_MSG_ERROR("No size for long type.")
948
 
fi
949
 
AC_CHECK_SIZEOF(long long, 8)
950
 
if test "$ac_cv_sizeof_long_long" -eq 0
951
 
then
952
 
  AC_MSG_ERROR("Drizzle needs a long long type.")
953
 
fi
954
945
# off_t is not a builtin type
955
946
AC_CHECK_SIZEOF(off_t, 4)
956
947
if test "$ac_cv_sizeof_off_t" -eq 0
1002
993
DRIZZLE_CXX_BOOL
1003
994
AC_CHECK_TYPES([sigset_t, off_t], [], [], [#include <sys/types.h>])
1004
995
AC_CHECK_TYPES([size_t], [], [], [#include <stdio.h>])
1005
 
AC_CHECK_TYPES([u_int32_t])
1006
996
 
1007
997
DRIZZLE_PTHREAD_YIELD
1008
998
 
1370
1360
AC_HEADER_ASSERT
1371
1361
 
1372
1362
CFLAGS="${SYMBOLS_CFLAGS} ${CFLAGS}"
1373
 
CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
 
1363
CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}"
 
1364
#CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
1374
1365
 
1375
1366
AC_ARG_WITH([debug],
1376
1367
    [AS_HELP_STRING([--with-debug],