~ubuntu-branches/ubuntu/maverick/ncbi-tools6/maverick

« back to all changes in this revision

Viewing changes to regexp/pcre_config.h

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef NCBI_CONFIG_REGEXP__H
 
2
#define NCBI_CONFIG_REGEXP__H
 
3
 
 
4
/*  $Id: pcre_config.h,v 1.1 2002/05/08 15:10:56 ivanov Exp $
 
5
 * ===========================================================================
 
6
 *
 
7
 *                            PUBLIC DOMAIN NOTICE
 
8
 *               National Center for Biotechnology Information
 
9
 *
 
10
 *  This software/database is a "United States Government Work" under the
 
11
 *  terms of the United States Copyright Act.  It was written as part of
 
12
 *  the author's official duties as a United States Government employee and
 
13
 *  thus cannot be copyrighted.  This software/database is freely available
 
14
 *  to the public for use. The National Library of Medicine and the U.S.
 
15
 *  Government have not placed any restriction on its use or reproduction.
 
16
 *
 
17
 *  Although all reasonable efforts have been taken to ensure the accuracy
 
18
 *  and reliability of the software and data, the NLM and the U.S.
 
19
 *  Government do not and cannot warrant the performance or results that
 
20
 *  may be obtained by using this software or data. The NLM and the U.S.
 
21
 *  Government disclaim all warranties, express or implied, including
 
22
 *  warranties of performance, merchantability or fitness for any particular
 
23
 *  purpose.
 
24
 *
 
25
 *  Please cite the author in any work or product based on this material.
 
26
 *
 
27
 * ===========================================================================
 
28
 *
 
29
 * Author:  Vladimir Ivanov
 
30
 *
 
31
 * File Description:
 
32
 *   Configuration wrapper for PCRE REGEXP library in NCBI C Toolkit
 
33
 *
 
34
 * Based on "config.h" generated the PCRE's autuconfigure.
 
35
 *
 
36
 * ===========================================================================
 
37
 */
 
38
 
 
39
 
 
40
/* Real configuration
 
41
 */
 
42
#include <ncbilcl.h>
 
43
 
 
44
#if defined(OS_UNIX)
 
45
#  define NCBI_OS_UNIX 1
 
46
#elif defined(OS_MSWIN)
 
47
#  define NCBI_OS_MSWIN 1
 
48
#elif defined(OS_MAC)
 
49
#  define NCBI_OS_MAC 1
 
50
#endif
 
51
 
 
52
/* PCRE is written in Standard C, but there are a few non-standard things it
 
53
   can cope with, allowing it to run on SunOS4 and other "close to standard" 
 
54
   systems.
 
55
 
 
56
   You should normally change the definitions of HAVE_STRERROR and 
 
57
   HAVE_MEMMOVE to 1. If your system has bcopy() and not memmove(), change 
 
58
   the definition of HAVE_BCOPY instead of HAVE_MEMMOVE. If your system 
 
59
   has neither bcopy() nor memmove(), leave them both as 0; an emulation 
 
60
   function will be used. */
 
61
 
 
62
/* Define to empty if the keyword does not work. */
 
63
/* #undef const */
 
64
 
 
65
/* Define to `unsigned' if <stddef.h> doesn't define size_t. */
 
66
/* #undef size_t */
 
67
 
 
68
/* The following two definitions are mainly for the benefit of SunOS4, which
 
69
   doesn't have the strerror() or memmove() functions that should be present in
 
70
   all Standard C libraries. The macros HAVE_STRERROR and HAVE_MEMMOVE should
 
71
   normally be defined with the value 1 for other systems, but unfortunately we
 
72
   can't make this the default because "configure" files generated by autoconf
 
73
   will only change 0 to 1; they won't change 1 to 0 if the functions are not
 
74
   found. */
 
75
 
 
76
#define HAVE_STRERROR 1
 
77
#define HAVE_MEMMOVE 1
 
78
 
 
79
/* There are some non-Unix systems that don't even have bcopy(). If this macro
 
80
   is false, an emulation is used. If HAVE_MEMMOVE is set to 1, the value of
 
81
   HAVE_BCOPY is not relevant. */
 
82
 
 
83
#define HAVE_BCOPY 1
 
84
 
 
85
/* The value of NEWLINE determines the newline character. The default is to
 
86
   leave it up to the compiler, but some sites want to force a particular 
 
87
   value. On Unix systems, "configure" can be used to override this default. */
 
88
 
 
89
#ifndef NEWLINE
 
90
#  define NEWLINE '\n'
 
91
#endif
 
92
 
 
93
/* Disable support UTF-8 by default */
 
94
 
 
95
#define SUPPORT_UTF8 0
 
96
 
 
97
/* End */
 
98
 
 
99
 
 
100
#endif /* NCBI_CONFIG_REGEXP__H */