~ubuntu-branches/ubuntu/intrepid/poppler/intrepid-security

« back to all changes in this revision

Viewing changes to poppler-config.h.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2008-05-15 12:33:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080515123318-4ou7y7oa1wz54f3u
Tags: 0.8.2-2
* Upload to unstable.
* Set myself as Maintainer instead of Uploader, taking over from Ondřej Surý
  but I wish we move to an official team; closes: #481323.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//================================================= -*- mode: c++ -*- ====
 
2
//
 
3
// poppler-config.h
 
4
//
 
5
// Copyright 1996-2004 Glyph & Cog, LLC
 
6
//
 
7
//========================================================================
 
8
 
 
9
#ifndef POPPLER_CONFIG_H
 
10
#define POPPLER_CONFIG_H
 
11
 
 
12
// We duplicate some of the config.h #define's here since they are
 
13
// used in some of the header files we install.  The #ifndef/#endif
 
14
// around #undef look odd, but it's to silence warnings about
 
15
// redefining those symbols.
 
16
 
 
17
/* Enable multithreading support. */
 
18
#ifndef MULTITHREADED
 
19
#cmakedefine MULTITHREADED 1
 
20
#endif
 
21
 
 
22
/* Enable exceptions. */
 
23
#ifndef USE_EXCEPTIONS
 
24
#cmakedefine USE_EXCEPTIONS 1
 
25
#endif
 
26
 
 
27
/* Use fixedpoint. */
 
28
#ifndef USE_FIXEDPOINT
 
29
#cmakedefine USE_FIXEDPOINT 1
 
30
#endif
 
31
 
 
32
/* Full path for the system-wide xpdfrc file. */
 
33
#ifndef SYSTEM_XPDFRC
 
34
#cmakedefine SYSTEM_XPDFRC 1
 
35
#endif
 
36
 
 
37
/* Include support for OPI comments. */
 
38
#ifndef OPI_SUPPORT
 
39
#cmakedefine OPI_SUPPORT 1
 
40
#endif
 
41
 
 
42
/* Enable word list support. */
 
43
#ifndef TEXTOUT_WORD_LIST
 
44
#cmakedefine TEXTOUT_WORD_LIST 1
 
45
#endif
 
46
 
 
47
// Also, there's a couple of preprocessor symbols in the header files
 
48
// that are used but never defined: DISABLE_OUTLINE, DEBUG_MEM and
 
49
 
 
50
//------------------------------------------------------------------------
 
51
// version
 
52
//------------------------------------------------------------------------
 
53
 
 
54
// xpdf version
 
55
#define xpdfVersion         "3.00"
 
56
#define xpdfVersionNum      3.00
 
57
#define xpdfMajorVersion    3
 
58
#define xpdfMinorVersion    0
 
59
#define xpdfMajorVersionStr "3"
 
60
#define xpdfMinorVersionStr "0"
 
61
 
 
62
// supported PDF version
 
63
#define supportedPDFVersionStr "1.5"
 
64
#define supportedPDFVersionNum 1.5
 
65
 
 
66
// copyright notice
 
67
#define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
 
68
 
 
69
// Windows resource file stuff
 
70
#define winxpdfVersion "WinXpdf 3.00"
 
71
#define xpdfCopyrightAmp "Copyright 1996-2004 Glyph && Cog, LLC"
 
72
 
 
73
//------------------------------------------------------------------------
 
74
// paper size
 
75
//------------------------------------------------------------------------
 
76
 
 
77
// default paper size (in points) for PostScript output
 
78
#ifdef A4_PAPER
 
79
#define defPaperWidth  595    // ISO A4 (210x297 mm)
 
80
#define defPaperHeight 842
 
81
#else
 
82
#define defPaperWidth  612    // American letter (8.5x11")
 
83
#define defPaperHeight 792
 
84
#endif
 
85
 
 
86
//------------------------------------------------------------------------
 
87
// config file (xpdfrc) path
 
88
//------------------------------------------------------------------------
 
89
 
 
90
// user config file name, relative to the user's home directory
 
91
#if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
 
92
#define xpdfUserConfigFile "xpdfrc"
 
93
#else
 
94
#define xpdfUserConfigFile ".xpdfrc"
 
95
#endif
 
96
 
 
97
// system config file name (set via the configure script)
 
98
#ifdef SYSTEM_XPDFRC
 
99
#define xpdfSysConfigFile SYSTEM_XPDFRC
 
100
#else
 
101
// under Windows, we get the directory with the executable and then
 
102
// append this file name
 
103
#define xpdfSysConfigFile "xpdfrc"
 
104
#endif
 
105
 
 
106
//------------------------------------------------------------------------
 
107
// X-related constants
 
108
//------------------------------------------------------------------------
 
109
 
 
110
// default maximum size of color cube to allocate
 
111
#define defaultRGBCube 5
 
112
 
 
113
// number of fonts (combined t1lib, FreeType, X server) to cache
 
114
#define xOutFontCacheSize 64
 
115
 
 
116
// number of Type 3 fonts to cache
 
117
#define xOutT3FontCacheSize 8
 
118
 
 
119
//------------------------------------------------------------------------
 
120
// popen
 
121
//------------------------------------------------------------------------
 
122
 
 
123
#if defined(_MSC_VER) || defined(__BORLANDC__)
 
124
#define popen _popen
 
125
#define pclose _pclose
 
126
#endif
 
127
 
 
128
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
 
129
#define POPEN_READ_MODE "rb"
 
130
#else
 
131
#define POPEN_READ_MODE "r"
 
132
#endif
 
133
 
 
134
//------------------------------------------------------------------------
 
135
// Win32 stuff
 
136
//------------------------------------------------------------------------
 
137
 
 
138
#ifdef CDECL
 
139
#undef CDECL
 
140
#endif
 
141
 
 
142
#if defined(_MSC_VER) || defined(__BORLANDC__)
 
143
#define CDECL __cdecl
 
144
#else
 
145
#define CDECL
 
146
#endif
 
147
 
 
148
//------------------------------------------------------------------------
 
149
// Compiler
 
150
//------------------------------------------------------------------------
 
151
 
 
152
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
 
153
#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
 
154
        __attribute__((__format__(__printf__, fmt_index, va_index)))
 
155
#else
 
156
#define GCC_PRINTF_FORMAT(fmt_index, va_index)
 
157
#endif
 
158
 
 
159
 
 
160
#endif /* POPPLER_CONFIG_H */