1 // (C) Copyright John Maddock 2001 - 2003.
2 // (C) Copyright Jens Maurer 2001 - 2003.
3 // (C) Copyright David Abrahams 2002.
4 // (C) Copyright Toon Knapen 2003.
5 // (C) Copyright Boris Gubenko 2006.
6 // Use, modification and distribution are subject to the
7 // Boost Software License, Version 1.0. (See accompanying file
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 // See http://www.boost.org for most recent version.
12 // hpux specific config options:
14 #define BOOST_PLATFORM "HP-UX"
16 // In principle, HP-UX has a nice <stdint.h> under the name <inttypes.h>
17 // However, it has the following problem:
18 // Use of UINT32_C(0) results in "0u l" for the preprocessed source
19 // (verifyable with gcc 2.95.3)
20 #if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined(__HP_aCC)
21 # define BOOST_HAS_STDINT_H
24 #if !(defined(__HP_aCC) || !defined(_INCLUDE__STDC_A1_SOURCE))
25 # define BOOST_NO_SWPRINTF
26 # define BOOST_NO_CWCTYPE
30 # if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))
31 // GNU C on HP-UX does not support threads (checked up to gcc 3.3)
32 # define BOOST_DISABLE_THREADS
33 # elif !defined(BOOST_DISABLE_THREADS)
34 // threads supported from gcc-3.3 onwards:
35 # define BOOST_HAS_THREADS
36 # define BOOST_HAS_PTHREADS
38 #elif defined(__HP_aCC) && !defined(BOOST_DISABLE_THREADS)
39 # define BOOST_HAS_PTHREADS
43 #define BOOST_HAS_UNISTD_H
44 #include <boost/config/posix_features.hpp>
46 // the following are always available:
47 #ifndef BOOST_HAS_GETTIMEOFDAY
48 # define BOOST_HAS_GETTIMEOFDAY
50 #ifndef BOOST_HAS_SCHED_YIELD
51 # define BOOST_HAS_SCHED_YIELD
53 #ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
54 # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
56 #ifndef BOOST_HAS_NL_TYPES_H
57 # define BOOST_HAS_NL_TYPES_H
59 #ifndef BOOST_HAS_NANOSLEEP
60 # define BOOST_HAS_NANOSLEEP
62 #ifndef BOOST_HAS_GETTIMEOFDAY
63 # define BOOST_HAS_GETTIMEOFDAY
65 #ifndef BOOST_HAS_DIRENT_H
66 # define BOOST_HAS_DIRENT_H
68 #ifndef BOOST_HAS_CLOCK_GETTIME
69 # define BOOST_HAS_CLOCK_GETTIME
71 #ifndef BOOST_HAS_SIGACTION
72 # define BOOST_HAS_SIGACTION
74 #ifndef BOOST_HAS_NRVO
75 # define BOOST_HAS_NRVO
77 #ifndef BOOST_HAS_LOG1P
78 # define BOOST_HAS_LOG1P
80 #ifndef BOOST_HAS_EXPM1
81 # define BOOST_HAS_EXPM1