4
4
dnl with or without modifications, as long as this notice is preserved.
6
6
dnl Which version of the canonical setup we're using
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.146])
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.150])
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
10
AC_ARG_ENABLE([fat-binaries],
147
147
PANDORA_CLOCK_GETTIME
149
AC_CHECK_HEADERS(sys/socket.h)
149
151
# off_t is not a builtin type
150
152
AC_CHECK_SIZEOF(off_t, 4)
151
153
AS_IF([test "$ac_cv_sizeof_off_t" -eq 0],[
235
237
AS_IF([test "x${USE_NLS}" = "xyes" -a "x${pandora_have_intltool}" = "xyes"],
236
238
[AC_DEFINE([ENABLE_NLS],[1],[Turn on language support])
237
239
AC_CONFIG_FILES([po/Makefile.in])
240
242
AM_CONDITIONAL(BUILD_PO,[test "x${USE_NLS}" = "xyes" -a "x${pandora_have_intltool}" = "xyes"])
263
#ifdef _SYS_FEATURE_TESTS_H
264
#error "You should include config.h as your first include file"
267
#include "config/top.h"
270
cat > config/top.h.stamp <<EOF_CONFIG_TOP
272
#if defined(i386) && !defined(__i386__)
276
#if defined(_FILE_OFFSET_BITS)
277
# undef _FILE_OFFSET_BITS
281
diff config/top.h.stamp config/top.h >/dev/null 2>&1 || mv config/top.h.stamp config/top.h
282
rm -f config/top.h.stamp
285
#if defined(__cplusplus)
287
# include CINTTYPES_H
290
# include <inttypes.h>
293
#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
294
typedef unsigned long int ulong;
297
/* To hide the platform differences between MS Windows and Unix, I am
298
* going to use the Microsoft way and #define the Microsoft-specific
299
* functions to the unix way. Microsoft use a separate subsystem for sockets,
300
* but Unix normally just use a filedescriptor on the same functions. It is
301
* a lot easier to map back to the unix way with macros than going the other
302
* way without side effect ;-)
304
#ifdef TARGET_OS_WINDOWS
305
#define random() rand()
306
#define srandom(a) srand(a)
307
#define get_socket_errno() WSAGetLastError()
309
#define INVALID_SOCKET -1
310
#define SOCKET_ERROR -1
311
#define closesocket(a) close(a)
312
#define get_socket_errno() errno
315
#endif /* __CONFIG_H__ */
258
318
AM_CFLAGS="${AM_CFLAGS} ${CC_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
259
319
AM_CXXFLAGS="${AM_CXXFLAGS} ${CXX_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"