Config.Linux.pp 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // Config.Linux.pp
  3. //
  4. // This file defines some custom config variables for the Linux
  5. // platform. It makes some initial guesses about compiler features,
  6. // etc.
  7. //
  8. // What additional flags should we pass to interrogate?
  9. #define SYSTEM_IGATE_FLAGS -D__i386__
  10. // Is the platform big-endian (like an SGI workstation) or
  11. // little-endian (like a PC)? Define this to the empty string to
  12. // indicate little-endian, or nonempty to indicate big-endian.
  13. #define WORDS_BIGENDIAN
  14. // Does the C++ compiler support namespaces?
  15. #define HAVE_NAMESPACE 1
  16. // Does the C++ compiler support ios::binary?
  17. #define HAVE_IOS_BINARY 1
  18. // Do we have a gettimeofday() function?
  19. #define HAVE_GETTIMEOFDAY 1
  20. // Does gettimeofday() take only one parameter?
  21. #define GETTIMEOFDAY_ONE_PARAM
  22. // Do we have getopt() and/or getopt_long_only() built into the
  23. // system?
  24. #define HAVE_GETOPT 1
  25. #define HAVE_GETOPT_LONG_ONLY 1
  26. // Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
  27. #define IOCTL_TERMINAL_WIDTH 1
  28. // Do the compiler or the system headers define a "streamsize" typedef?
  29. #define HAVE_STREAMSIZE 1
  30. // Can we safely call getenv() at static init time?
  31. #define STATIC_INIT_GETENV
  32. // Can we read the file /proc/self/environ to determine our
  33. // environment variables at static init time?
  34. #define HAVE_PROC_SELF_ENVIRON 1
  35. // Do we have a global pair of argc/argv variables that we can read at
  36. // static init time? Should we prototype them? What are they called?
  37. #define HAVE_GLOBAL_ARGV
  38. #define PROTOTYPE_GLOBAL_ARGV
  39. #define GLOBAL_ARGV
  40. #define GLOBAL_ARGC
  41. // Can we read the file /proc/self/cmdline to determine our
  42. // command-line arguments at static init time?
  43. #define HAVE_PROC_SELF_CMDLINE 1
  44. // Should we include <iostream> or <iostream.h>? Define HAVE_IOSTREAM
  45. // to nonempty if we should use <iostream>, or empty if we should use
  46. // <iostream.h>.
  47. #define HAVE_IOSTREAM
  48. // Do we have a true stringstream class defined in <sstream>?
  49. #define HAVE_SSTREAM
  50. // Do we have <io.h>?
  51. #define HAVE_IO_H
  52. // Do we have <malloc.h>?
  53. #define HAVE_MALLOC_H 1
  54. // Do we have <alloca.h>?
  55. #define HAVE_ALLOCA_H 1
  56. // Do we have <minmax.h>?
  57. #define HAVE_MINMAX_H
  58. // Do we have <sys/types.h>?
  59. #define HAVE_SYS_TYPES_H 1
  60. // Do we have <unistd.h>?
  61. #define HAVE_UNISTD_H 1
  62. // Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  63. // interface)?
  64. #define HAVE_SYS_SOUNDCARD_H 1