root/jlog_config.h.in

Revision 81ac86a15e3940ff0b787698853fb6a6157f800b, 2.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

initial import with Ecelerity bits removed and some autoconf glue added in. Could certainly use some work on the build/install. Needs shared lib support for multiple platforms

  • Property mode set to 100644
Line 
1 #ifndef __JLOG_CONFIG_H
2 #define __JLOG_CONFIG_H
3
4 /* define inline unless that is what the compiler already calls it. */
5 #undef inline
6
7 #undef HAVE_FCNTL_H
8 #undef HAVE_SYS_TYPES_H
9 #undef HAVE_DIRENT_H
10 #undef HAVE_ERRNO_H
11 #undef HAVE_STRING_H
12 #undef HAVE_STDLIB_H
13 #undef HAVE_SYS_PARAM_H
14 #undef HAVE_TIME_H
15 #undef HAVE_SYS_STAT_H
16 #define IFS_CH '/'
17
18 #ifdef HAVE_STRING_H
19 #include <string.h>
20 #endif
21 #ifdef HAVE_STDLIB_H
22 #include <stdlib.h>
23 #endif
24 #ifdef HAVE_SYS_PARAM_H
25 #include <sys/param.h>
26 #endif
27 #ifdef HAVE_SYS_TYPES_H
28 #include <sys/types.h>
29 #endif
30 #ifdef HAVE_SYS_STAT_H
31 #include <sys/stat.h>
32 #endif
33
34 /* The number of bytes in a char.  */
35 #undef SIZEOF_CHAR
36
37 /* The number of bytes in a int.  */
38 #undef SIZEOF_INT
39
40 /* The number of bytes in a size_t.  */
41 #undef SIZEOF_SIZE_T
42
43
44 /* The number of bytes in a long int.  */
45 #undef SIZEOF_LONG_INT
46
47 /* The number of bytes in a long long int.  */
48 #undef SIZEOF_LONG_LONG_INT
49
50 /* The number of bytes in a short int.  */
51 #undef SIZEOF_SHORT_INT
52
53 /* The number of bytes in a void *.  */
54 #undef SIZEOF_VOID_P
55
56 #ifndef HAVE_U_INT
57 typedef unsigned int u_int;
58 #endif
59
60 #undef HAVE_INTXX_T
61 #ifndef HAVE_INTXX_T
62 #if (SIZEOF_CHAR == 1)
63 typedef char int8_t;
64 #else
65 #error "8 bit int type not found."
66 #endif
67 #if (SIZEOF_SHORT_INT == 2)
68 typedef short int int16_t;
69 #else
70 #ifdef _CRAY
71 typedef long int16_t;
72 #else
73 #warning "16 bit int type not found."
74 #endif /* _CRAY */
75 #endif
76 #if (SIZEOF_INT == 4)
77 typedef int int32_t;
78 #else
79 #ifdef _CRAY
80 typedef long int32_t;
81 #else
82 #error "32 bit int type not found."
83 #endif /* _CRAY */
84 #endif
85 #endif
86
87 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
88 #ifndef HAVE_U_INTXX_T
89 #ifdef HAVE_UINTXX_T
90 typedef uint8_t u_int8_t;
91 typedef uint16_t u_int16_t;
92 typedef uint32_t u_int32_t;
93 #define HAVE_U_INTXX_T 1
94 #else
95 #if (SIZEOF_CHAR == 1)
96 typedef unsigned char u_int8_t;
97 #else
98 #error "8 bit int type not found."
99 #endif
100 #if (SIZEOF_SHORT_INT == 2)
101 typedef unsigned short int u_int16_t;
102 #else
103 #ifdef _CRAY
104 typedef unsigned long u_int16_t;
105 #else
106 #warning "16 bit int type not found."
107 #endif
108 #endif
109 #if (SIZEOF_INT == 4)
110 typedef unsigned int u_int32_t;
111 #else
112 #ifdef _CRAY
113 typedef unsigned long u_int32_t;
114 #else
115 #error "32 bit int type not found."
116 #endif
117 #endif
118 #endif
119 #endif
120
121 /* 64-bit types */
122 #ifndef HAVE_INT64_T
123 #if (SIZEOF_LONG_INT == 8)
124 typedef long int int64_t;
125 #define HAVE_INT64_T 1
126 #else
127 #if (SIZEOF_LONG_LONG_INT == 8)
128 typedef long long int int64_t;
129 #define HAVE_INT64_T 1
130 #define HAVE_LONG_LONG_INT
131 #endif
132 #endif
133 #endif
134 #ifndef HAVE_U_INT64_T
135 #if (SIZEOF_LONG_INT == 8)
136 typedef unsigned long int u_int64_t;
137 #define HAVE_U_INT64_T 1
138 #else
139 #if (SIZEOF_LONG_LONG_INT == 8)
140 typedef unsigned long long int u_int64_t;
141 #define HAVE_U_INT64_T 1
142 #endif
143 #endif
144 #endif
145
146 #endif
Note: See TracBrowser for help on using the browser.