2037.1.1
by kalebral at gmail
More copyright updates |
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 |
||
481.1.9
by Monty Taylor
Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand. |
6 |
# We check two things: where the include file is for cinttypes. We |
7 |
# include AC_TRY_COMPILE for all the combinations we've seen in the |
|
8 |
# wild. We define one of HAVE_CINTTYPES or HAVE_TR1_CINTTYPES or |
|
9 |
# HAVE_BOOST_CINTTYPES depending |
|
10 |
# on location. |
|
11 |
||
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
12 |
AC_DEFUN([PANDORA_CXX_CINTTYPES], |
13 |
[AC_REQUIRE([PANDORA_CXX_CSTDINT]) |
|
779.2.11
by Monty Taylor
General build cleanup - removed cruft, removed depreated checks. |
14 |
AC_MSG_CHECKING(the location of cinttypes) |
15 |
AC_LANG_PUSH(C++) |
|
1241.11.1
by Monty Taylor
pandora-build v0.85 - Fixed C++ standard setting. |
16 |
save_CXXFLAGS="${CXXFLAGS}" |
17 |
CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}" |
|
481.1.9
by Monty Taylor
Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand. |
18 |
ac_cv_cxx_cinttypes="" |
19 |
for location in tr1/cinttypes boost/cinttypes cinttypes; do |
|
20 |
if test -z "$ac_cv_cxx_cinttypes"; then |
|
21 |
AC_TRY_COMPILE([#include $ac_cv_cxx_cstdint; |
|
22 |
#include <$location>], |
|
23 |
[uint32_t foo= UINT32_C(1)], |
|
24 |
[ac_cv_cxx_cinttypes="<$location>";]) |
|
25 |
fi |
|
26 |
done |
|
779.2.11
by Monty Taylor
General build cleanup - removed cruft, removed depreated checks. |
27 |
AC_LANG_POP() |
1241.11.1
by Monty Taylor
pandora-build v0.85 - Fixed C++ standard setting. |
28 |
CXXFLAGS="${save_CXXFLAGS}" |
481.1.9
by Monty Taylor
Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand. |
29 |
if test -n "$ac_cv_cxx_cinttypes"; then |
30 |
AC_MSG_RESULT([$ac_cv_cxx_cinttypes]) |
|
31 |
else |
|
481.1.18
by Monty
Fixed m4 files for older C compilers that don't have ext/cstdint, etc. |
32 |
ac_cv_cxx_cinttypes="<inttypes.h>" |
481.1.9
by Monty Taylor
Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand. |
33 |
AC_MSG_RESULT() |
481.1.18
by Monty
Fixed m4 files for older C compilers that don't have ext/cstdint, etc. |
34 |
AC_MSG_WARN([Could not find a cinttypes header.]) |
481.1.9
by Monty Taylor
Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand. |
35 |
fi |
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
36 |
AC_DEFINE([__STDC_LIMIT_MACROS],[1],[Use STDC Limit Macros in C++]) |
481.1.18
by Monty
Fixed m4 files for older C compilers that don't have ext/cstdint, etc. |
37 |
AC_DEFINE_UNQUOTED(CINTTYPES_H,$ac_cv_cxx_cinttypes, |
38 |
[the location of <cinttypes>]) |
|
481.1.9
by Monty Taylor
Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand. |
39 |
]) |