~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_drizzle_build.m4

  • Committer: Monty Taylor
  • Date: 2010-03-02 19:10:25 UTC
  • mto: (1317.1.8)
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: mordred@inaugust.com-20100302191025-zoxjz4xwkoa6160h
Prevent unauthorized users from changing schema.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
 
dnl This file is free software; Sun Microsystems, Inc.
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
9
9
 
10
10
AC_DEFUN([PANDORA_DRIZZLE_BUILD],[
11
11
 
 
12
  dnl We need to turn on our CXXFLAGS to make sure it shows up correctly
 
13
  PANDORA_CXX_STL_HASH
 
14
 
 
15
  PANDORA_CXX_CSTDINT
 
16
  PANDORA_CXX_CINTTYPES
 
17
 
12
18
  AC_STRUCT_TM
13
19
 
14
20
  AC_FUNC_ALLOCA
33
39
  AC_CHECK_HEADERS(sys/types.h sys/fpu.h fpu_control.h ieeefp.h)
34
40
  AC_CHECK_HEADERS(select.h sys/select.h)
35
41
  AC_CHECK_HEADERS(utime.h sys/utime.h )
36
 
  AC_CHECK_HEADERS(synch.h sys/mman.h)
 
42
  AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
37
43
  AC_CHECK_HEADERS(sched.h)
38
44
  AC_CHECK_HEADERS(sys/prctl.h)
39
45
  AC_CHECK_HEADERS(execinfo.h)
63
69
  ]])
64
70
  AC_CHECK_TYPES([uint, ulong])
65
71
 
66
 
  PANDORA_REQUIRE_BISON
67
 
 
68
72
  PANDORA_CXX_DEMANGLE
69
 
  PANDORA_REQUIRE_BOOST([1.38])
70
 
  PANDORA_REQUIRE_BOOST_PROGRAM_OPTIONS
71
 
  PANDORA_REQUIRE_BOOST_THREAD
72
 
  PANDORA_REQUIRE_BOOST_REGEX
73
 
  PANDORA_REQUIRE_BOOST_DATE_TIME
74
 
  PANDORA_REQUIRE_BOOST_FILESYSTEM
75
 
  PANDORA_REQUIRE_BOOST_IOSTREAMS
76
 
 
 
73
 
 
74
  AH_TOP([
 
75
#ifndef __CONFIG_H__
 
76
#define __CONFIG_H__
 
77
 
 
78
#include "config/top.h"
 
79
])
 
80
  mkdir -p config
 
81
  cat > config/top.h.stamp <<EOF_CONFIG_TOP
 
82
 
 
83
#if defined(i386) && !defined(__i386__)
 
84
#define __i386__
 
85
#endif
 
86
 
 
87
#if defined(_FILE_OFFSET_BITS)
 
88
# undef _FILE_OFFSET_BITS
 
89
#endif
 
90
EOF_CONFIG_TOP
 
91
  diff config/top.h.stamp config/top.h >/dev/null 2>&1 || mv config/top.h.stamp config/top.h
 
92
  rm -f config/top.h.stamp
 
93
 
 
94
 
 
95
  AH_BOTTOM([
 
96
#if defined(__cplusplus)
 
97
# include CSTDINT_H
 
98
# include CINTTYPES_H
 
99
#else
 
100
# include <stdint.h>
 
101
# include <inttypes.h>
 
102
#endif
 
103
 
 
104
#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
 
105
typedef unsigned long int ulong;
 
106
#endif
 
107
 
 
108
#endif /* __CONFIG_H__ */
 
109
  ])
77
110
])