~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Monty Taylor
  • Date: 2009-07-26 20:11:34 UTC
  • mto: (1093.7.1 captain)
  • mto: This revision was merged to the branch mainline in revision 1101.
  • Revision ID: mordred@inaugust.com-20090726201134-e2x88ifdpau68t41
pandora-buildĀ v0.25

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.24])
 
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.25])
8
8
 
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
10
  dnl Force dependency tracking on for Sun Studio builds
73
73
    AS_IF([test "$GCC" = "yes"], PANDORA_ENSURE_GCC_VERSION)
74
74
  ])
75
75
 
76
 
  case $SYSTEM_TYPE in
 
76
  dnl Canonicalize the configuration name.
 
77
 
 
78
  AC_DEFINE_UNQUOTED([HOST_VENDOR], ["$host_vendor"],[Vendor of Build System])
 
79
  AC_DEFINE_UNQUOTED([HOST_OS], ["$host_os"], [OS of Build System])
 
80
  AC_DEFINE_UNQUOTED([HOST_CPU], ["$host_cpu"], [CPU of Build System])
 
81
 
 
82
  AC_DEFINE_UNQUOTED([TARGET_VENDOR], ["$target_vendor"],[Vendor of Target System])
 
83
  AC_DEFINE_UNQUOTED([TARGET_OS], ["$target_os"], [OS of Target System])
 
84
  AC_DEFINE_UNQUOTED([TARGET_CPU], ["$target_cpu"], [CPU of Target System])
 
85
 
 
86
 
 
87
  case "$target_os" in
 
88
    *linux*)
 
89
    TARGET_LINUX="true"
 
90
    AC_SUBST(TARGET_LINUX)
 
91
    AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
 
92
      ;;
 
93
    *darwin*)
 
94
      TARGET_OSX="true"
 
95
      AC_SUBST(TARGET_OSX)
 
96
      AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX])
 
97
      ;;
 
98
    *solaris*)
 
99
      TARGET_SOLARIS="true"
 
100
      AC_SUBST(TARGET_SOLARIS)
 
101
      AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
 
102
      ;;
77
103
    *freebsd*)
 
104
      TARGET_FREEBSD="true"
 
105
      AC_SUBST(TARGET_FREEBSD)
 
106
      AC_DEFINE([TARGET_OS_FREEBSD], [1], [Whether we are building for FreeBSD])
78
107
      AC_DEFINE([__APPLE_CC__],[1],[Workaround for bug in FreeBSD headers])
79
108
      ;;
 
109
    *)
 
110
      ;;
80
111
  esac
81
112
 
82
113