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],[
233
235
AC_CHECK_LIB(intl, libintl_gettext)
234
236
AC_SUBST([GETTEXT_PACKAGE])
235
237
AS_IF([test "x${USE_NLS}" = "xyes" -a "x${pandora_have_intltool}" = "xyes"],
236
[AC_DEFINE([ENABLE_NLS],[1],[Turn on language support])])
238
[AC_DEFINE([ENABLE_NLS],[1],[Turn on language support])
239
AC_CONFIG_FILES([po/Makefile.in])
242
AM_CONDITIONAL(BUILD_PO,[test "x${USE_NLS}" = "xyes" -a "x${pandora_have_intltool}" = "xyes"])
239
244
AS_IF([test "x${gl_LIBOBJS}" != "x"],[
240
245
AS_IF([test "$GCC" = "yes"],[
263
/* _SYS_FEATURE_TESTS_H is Solaris, _FEATURES_H is GCC */
264
#if defined( _SYS_FEATURE_TESTS_H) || defined(_FEATURES_H)
265
#error "You should include config.h as your first include file"
268
#include "config/top.h"
271
cat > config/top.h.stamp <<EOF_CONFIG_TOP
273
#if defined(i386) && !defined(__i386__)
277
#if defined(_FILE_OFFSET_BITS)
278
# undef _FILE_OFFSET_BITS
282
diff config/top.h.stamp config/top.h >/dev/null 2>&1 || mv config/top.h.stamp config/top.h
283
rm -f config/top.h.stamp
286
#if defined(__cplusplus)
288
# include CINTTYPES_H
291
# include <inttypes.h>
294
#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
295
typedef unsigned long int ulong;
298
/* To hide the platform differences between MS Windows and Unix, I am
299
* going to use the Microsoft way and #define the Microsoft-specific
300
* functions to the unix way. Microsoft use a separate subsystem for sockets,
301
* but Unix normally just use a filedescriptor on the same functions. It is
302
* a lot easier to map back to the unix way with macros than going the other
303
* way without side effect ;-)
305
#ifdef TARGET_OS_WINDOWS
306
#define random() rand()
307
#define srandom(a) srand(a)
308
#define get_socket_errno() WSAGetLastError()
310
#define INVALID_SOCKET -1
311
#define SOCKET_ERROR -1
312
#define closesocket(a) close(a)
313
#define get_socket_errno() errno
316
#endif /* __CONFIG_H__ */
255
319
AM_CFLAGS="${AM_CFLAGS} ${CC_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
256
320
AM_CXXFLAGS="${AM_CXXFLAGS} ${CXX_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"