~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty
  • Date: 2008-10-23 23:49:37 UTC
  • Revision ID: mordred@palanthas.inaugust.com-20081023234937-ueil5uovlke1trow
Added impl of macro missing from old systems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
  AC_PROG_CC_C99([],[AC_MSG_ERROR([C99 support required for compiling Drizzle])])
68
68
  C99_SUPPORT_HACK=""
69
69
],[C99_SUPPORT_HACK="-std=gnu99"])
70
 
AC_USE_SYSTEM_EXTENSIONS
 
70
 
 
71
ifdef([AC_USE_SYSTEM_EXTENSIONS],[
 
72
  AC_USE_SYSTEM_EXTENSIONS
 
73
],[
 
74
 
 
75
  AH_VERBATIM([__EXTENSIONS__],
 
76
[/* Enable extensions on Solaris.  */
 
77
#ifndef __EXTENSIONS__
 
78
# undef __EXTENSIONS__
 
79
#endif
 
80
#ifndef _POSIX_PTHREAD_SEMANTICS
 
81
# undef _POSIX_PTHREAD_SEMANTICS
 
82
#endif
 
83
#ifndef _TANDEM_SOURCE
 
84
# undef _TANDEM_SOURCE
 
85
#endif])
 
86
 
 
87
  AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
 
88
    [ac_cv_safe_to_define___extensions__],
 
89
    [AC_COMPILE_IFELSE(
 
90
       [AC_LANG_PROGRAM([
 
91
#         define __EXTENSIONS__ 1
 
92
          AC_INCLUDES_DEFAULT])],
 
93
       [ac_cv_safe_to_define___extensions__=yes],
 
94
       [ac_cv_safe_to_define___extensions__=no])])
 
95
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
96
    AC_DEFINE([__EXTENSIONS__])
 
97
  AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
 
98
  AC_DEFINE([_TANDEM_SOURCE])
 
99
])
 
100
 
71
101
AC_PROG_CXX
72
102
AC_CXX_HEADER_STDCXX_98
73
103
if test "$ac_cv_cxx_stdcxx_98" = "no"