~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/cxx_cstdint.m4

  • Committer: Brian Aker
  • Date: 2009-06-16 00:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1094.
  • Revision ID: brian@gaz-20090616005322-w0ode4jul9z8s2y9
Partial fix for tests for tmp

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Sun Microsystems, Inc.
2
 
# This file is free software; Sun Microsystems, Inc.
3
 
# gives unlimited permission to copy and/or distribute it,
4
 
# with or without modifications, as long as this notice is preserved.
5
 
 
6
1
# We check two things: where the include file is for cstdint. We
7
2
# include AC_TRY_COMPILE for all the combinations we've seen in the
8
3
# wild.  We define one of HAVE_CSTDINT or HAVE_TR1_CSTDINT or 
9
4
# HAVE_BOOST_CSTDINT depending
10
5
# on location.
11
6
 
12
 
AC_DEFUN([PANDORA_CXX_CSTDINT],
 
7
AC_DEFUN([AC_CXX_CSTDINT],
13
8
  [AC_MSG_CHECKING(the location of cstdint)
14
9
   AC_LANG_PUSH(C++)
15
 
   save_CXXFLAGS="${CXXFLAGS}"
16
 
   CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
17
10
   ac_cv_cxx_cstdint=""
18
11
   for location in tr1/cstdint boost/cstdint cstdint; do
19
12
     if test -z "$ac_cv_cxx_cstdint"; then
23
16
     fi
24
17
   done
25
18
   AC_LANG_POP()
26
 
   CXXFLAGS="${save_CXXFLAGS}"
27
19
   if test -n "$ac_cv_cxx_cstdint"; then
28
20
      AC_MSG_RESULT([$ac_cv_cxx_cstdint])
29
21
   else