~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

pandora-buildĀ r0.7

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.1])
 
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.7])
8
8
 
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
10
  dnl Force dependency tracking on for Sun Studio builds
16
16
dnl The standard setup for how we build Pandora projects
17
17
AC_DEFUN([PANDORA_CANONICAL_TARGET],[
18
18
  AC_REQUIRE([PANDORA_FORCE_DEPEND_TRACKING])
19
 
  m4_define([PCT_ALL_ARGS],[$@])
 
19
  ifdef([m4_define],,[define([m4_define],   defn([define]))])
 
20
  ifdef([m4_undefine],,[define([m4_undefine],   defn([undefine]))])
 
21
  m4_define([PCT_ALL_ARGS],[$*])
20
22
  m4_define([PCT_USE_GNULIB],[no])
21
23
  m4_define([PCT_REQUIRE_CXX],[no])
22
24
  m4_define([PCT_IGNORE_SHARED_PTR],[no])
23
 
  m4_foreach_w([pct_arg],$@,[
 
25
  m4_define([PCT_FORCE_GCC42],[no])
 
26
  m4_foreach([pct_arg],$*,[
24
27
    m4_case(pct_arg,
25
28
      [use-gnulib], [
26
29
        m4_undefine([PCT_USE_GNULIB])
33
36
      [ignore-shared-ptr], [
34
37
        m4_undefine([PCT_IGNORE_SHARED_PTR])
35
38
        m4_define([PCT_IGNORE_SHARED_PTR],[yes])
 
39
      ],
 
40
      [force-gcc42], [
 
41
        m4_undefine([PCT_FORCE_GCC42])
 
42
        m4_define([PCT_FORCE_GCC42],[yes])
36
43
    ])
37
44
  ])
38
45
 
51
58
  m4_if(PCT_USE_GNULIB,yes,[ gl_EARLY ])
52
59
  
53
60
  AC_REQUIRE([AC_PROG_CC])
 
61
  AC_REQUIRE([PANDORA_MAC_GCC42])
54
62
 
55
63
  dnl Once we can use a modern autoconf, we can use this
56
64
  dnl AC_PROG_CC_C99
59
67
  AM_PROG_CC_C_O
60
68
 
61
69
  gl_USE_SYSTEM_EXTENSIONS
 
70
  m4_if(PCT_FORCE_GCC42, [yes], [
 
71
    AS_IF([test "$GCC" = "yes"], PANDORA_ENSURE_GCC_VERSION)
 
72
  ])
62
73
  
63
74
 
64
75
  PANDORA_LIBTOOL
97
108
 
98
109
  AC_SYS_LARGEFILE
99
110
 
100
 
  AS_IF([test "$GCC" = "yes"], PANDORA_ENSURE_GCC_VERSION)
101
111
 
102
112
  PANDORA_CHECK_C_VERSION
103
113
  PANDORA_CHECK_CXX_VERSION
104
114
 
105
115
  PANDORA_OPTIMIZE
106
116
  PANDORA_64BIT
 
117
 
 
118
  gl_VISIBILITY
 
119
 
107
120
  PANDORA_WARNINGS(PCT_ALL_ARGS)
108
121
 
109
 
  gl_VISIBILITY
110
 
 
111
122
  PANDORA_ENABLE_DTRACE
112
123
  PANDORA_HEADER_ASSERT
113
124