summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:40:37 +0000
committernigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:40:37 +0000
commit455fcc7e13a175722acfd2cca6ab99caa9606a22 (patch)
tree6561516fd308ce5b1b077797ad2f508701014cc6
parent568064fe47fac0c7caffc684e6ea227ad8127b70 (diff)
downloadpcre-455fcc7e13a175722acfd2cca6ab99caa9606a22.tar.gz
Load pcre-5.0 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@75 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r--AUTHORS2
-rw-r--r--COPYING73
-rw-r--r--ChangeLog136
-rw-r--r--LICENCE73
-rw-r--r--Makefile.in24
-rw-r--r--NEWS47
-rw-r--r--NON-UNIX-USE142
-rw-r--r--README102
-rwxr-xr-xRunTest.in101
-rwxr-xr-xconfig.guess263
-rw-r--r--config.in2
-rwxr-xr-xconfig.sub161
-rwxr-xr-xconfigure16434
-rw-r--r--configure.in35
-rw-r--r--dftables.c46
-rw-r--r--doc/Tech.Notes100
-rw-r--r--doc/html/index.html8
-rw-r--r--doc/html/pcre.html114
-rw-r--r--doc/html/pcre_compile.html36
-rw-r--r--doc/html/pcre_config.html32
-rw-r--r--doc/html/pcre_copy_named_substring.html25
-rw-r--r--doc/html/pcre_copy_substring.html25
-rw-r--r--doc/html/pcre_exec.html46
-rw-r--r--doc/html/pcre_free_substring.html19
-rw-r--r--doc/html/pcre_free_substring_list.html19
-rw-r--r--doc/html/pcre_fullinfo.html79
-rw-r--r--doc/html/pcre_get_named_substring.html32
-rw-r--r--doc/html/pcre_get_stringnumber.html25
-rw-r--r--doc/html/pcre_get_substring.html32
-rw-r--r--doc/html/pcre_get_substring_list.html32
-rw-r--r--doc/html/pcre_info.html19
-rw-r--r--doc/html/pcre_maketables.html29
-rw-r--r--doc/html/pcre_study.html25
-rw-r--r--doc/html/pcre_version.html21
-rw-r--r--doc/html/pcreapi.html973
-rw-r--r--doc/html/pcrebuild.html147
-rw-r--r--doc/html/pcrecallout.html131
-rw-r--r--doc/html/pcrecompat.html128
-rw-r--r--doc/html/pcregrep.html29
-rw-r--r--doc/html/pcrepartial.html111
-rw-r--r--doc/html/pcrepattern.html943
-rw-r--r--doc/html/pcreperform.html66
-rw-r--r--doc/html/pcreposix.html101
-rw-r--r--doc/html/pcreprecompile.html133
-rw-r--r--doc/html/pcresample.html82
-rw-r--r--doc/html/pcretest.html388
-rw-r--r--doc/pcre.3164
-rw-r--r--doc/pcre.txt2448
-rw-r--r--doc/pcre_compile.331
-rw-r--r--doc/pcre_config.319
-rw-r--r--doc/pcre_copy_named_substring.338
-rw-r--r--doc/pcre_copy_substring.334
-rw-r--r--doc/pcre_exec.355
-rw-r--r--doc/pcre_free_substring.316
-rw-r--r--doc/pcre_free_substring_list.316
-rw-r--r--doc/pcre_fullinfo.372
-rw-r--r--doc/pcre_get_named_substring.343
-rw-r--r--doc/pcre_get_stringnumber.324
-rw-r--r--doc/pcre_get_substring.339
-rw-r--r--doc/pcre_get_substring_list.335
-rw-r--r--doc/pcre_info.318
-rw-r--r--doc/pcre_maketables.322
-rw-r--r--doc/pcre_study.331
-rw-r--r--doc/pcre_version.314
-rw-r--r--doc/pcreapi.31412
-rw-r--r--doc/pcrebuild.3163
-rw-r--r--doc/pcrecallout.3191
-rw-r--r--doc/pcrecompat.3110
-rw-r--r--doc/pcregrep.178
-rw-r--r--doc/pcregrep.txt8
-rw-r--r--doc/pcrepartial.395
-rw-r--r--doc/pcrepattern.31301
-rw-r--r--doc/pcreperform.350
-rw-r--r--doc/pcreposix.3187
-rw-r--r--doc/pcreprecompile.3125
-rw-r--r--doc/pcresample.368
-rw-r--r--doc/pcretest.1563
-rw-r--r--doc/pcretest.txt389
-rw-r--r--doc/perltest.txt27
-rw-r--r--get.c44
-rw-r--r--internal.h363
-rw-r--r--libpcre.pc.in12
-rw-r--r--ltmain.sh3164
-rw-r--r--maketables.c44
-rw-r--r--pcre-config.in11
-rw-r--r--pcre.c2305
-rw-r--r--pcre.in52
-rw-r--r--pcredemo.c42
-rw-r--r--pcregrep.c33
-rw-r--r--pcreposix.c53
-rw-r--r--pcreposix.h35
-rw-r--r--pcretest.c457
-rwxr-xr-xperltest2
-rw-r--r--printint.c183
-rw-r--r--study.c72
-rw-r--r--testdata/testinput2157
-rw-r--r--testdata/testinput412
-rw-r--r--testdata/testinput59
-rw-r--r--testdata/testinput6517
-rw-r--r--testdata/testoutput12
-rw-r--r--testdata/testoutput21890
-rw-r--r--testdata/testoutput36
-rw-r--r--testdata/testoutput418
-rw-r--r--testdata/testoutput5528
-rw-r--r--testdata/testoutput61013
-rw-r--r--ucp.c151
-rw-r--r--ucp.h58
-rw-r--r--ucpinternal.h91
-rw-r--r--ucptable.c15105
-rw-r--r--ucptypetable.c93
110 files changed, 45824 insertions, 10175 deletions
diff --git a/AUTHORS b/AUTHORS
index 622ba1c..00bd1d0 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -3,4 +3,4 @@ Written by: Philip Hazel <ph10@cam.ac.uk>
University of Cambridge Computing Service,
Cambridge, England. Phone: +44 1223 334714.
-Copyright (c) 1997-2003 University of Cambridge
+Copyright (c) 1997-2004 University of Cambridge
diff --git a/COPYING b/COPYING
index 09a242c..1573583 100644
--- a/COPYING
+++ b/COPYING
@@ -4,51 +4,42 @@ PCRE LICENCE
PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
+Release 5 of PCRE is distributed under the terms of the "BSD" licence, as
+specified below. The documentation for PCRE, supplied in the "doc"
+directory, is distributed under the same terms as the software itself.
+
Written by: Philip Hazel <ph10@cam.ac.uk>
University of Cambridge Computing Service,
Cambridge, England. Phone: +44 1223 334714.
-Copyright (c) 1997-2003 University of Cambridge
-
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission. In practice, this means that if you use
- PCRE in software that you distribute to others, commercially or
- otherwise, you must put a sentence like this
-
- Regular expression support is provided by the PCRE library package,
- which is open source software, written by Philip Hazel, and copyright
- by the University of Cambridge, England.
-
- somewhere reasonably visible in your documentation and in any relevant
- files or online help data or similar. A reference to the ftp site for
- the source, that is, to
-
- ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
-
- should also be given in the documentation. However, this condition is not
- intended to apply to whole chains of software. If package A includes PCRE,
- it must acknowledge it, but if package B is software that includes package
- A, the condition is not imposed on package B (unless it uses PCRE
- independently).
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL),
- then the terms of that licence shall supersede any condition above with
- which it is incompatible.
-
-The documentation for PCRE, supplied in the "doc" directory, is distributed
-under the same terms as the software itself.
+Copyright (c) 1997-2004 University of Cambridge
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
End
diff --git a/ChangeLog b/ChangeLog
index edc4aea..59aa955 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,142 @@
ChangeLog for PCRE
------------------
+Version 5.0 13-Sep-04
+---------------------
+
+ 1. Internal change: literal characters are no longer packed up into items
+ containing multiple characters in a single byte-string. Each character
+ is now matched using a separate opcode. However, there may be more than one
+ byte in the character in UTF-8 mode.
+
+ 2. The pcre_callout_block structure has two new fields: pattern_position and
+ next_item_length. These contain the offset in the pattern to the next match
+ item, and its length, respectively.
+
+ 3. The PCRE_AUTO_CALLOUT option for pcre_compile() requests the automatic
+ insertion of callouts before each pattern item. Added the /C option to
+ pcretest to make use of this.
+
+ 4. On the advice of a Windows user, the lines
+
+ #if defined(_WIN32) || defined(WIN32)
+ _setmode( _fileno( stdout ), 0x8000 );
+ #endif /* defined(_WIN32) || defined(WIN32) */
+
+ have been added to the source of pcretest. This apparently does useful
+ magic in relation to line terminators.
+
+ 5. Changed "r" and "w" in the calls to fopen() in pcretest to "rb" and "wb"
+ for the benefit of those environments where the "b" makes a difference.
+
+ 6. The icc compiler has the same options as gcc, but "configure" doesn't seem
+ to know about it. I have put a hack into configure.in that adds in code
+ to set GCC=yes if CC=icc. This seems to end up at a point in the
+ generated configure script that is early enough to affect the setting of
+ compiler options, which is what is needed, but I have no means of testing
+ whether it really works. (The user who reported this had patched the
+ generated configure script, which of course I cannot do.)
+
+ LATER: After change 22 below (new libtool files), the configure script
+ seems to know about icc (and also ecc). Therefore, I have commented out
+ this hack in configure.in.
+
+ 7. Added support for pkg-config (2 patches were sent in).
+
+ 8. Negated POSIX character classes that used a combination of internal tables
+ were completely broken. These were [[:^alpha:]], [[:^alnum:]], and
+ [[:^ascii]]. Typically, they would match almost any characters. The other
+ POSIX classes were not broken in this way.
+
+ 9. Matching the pattern "\b.*?" against "ab cd", starting at offset 1, failed
+ to find the match, as PCRE was deluded into thinking that the match had to
+ start at the start point or following a newline. The same bug applied to
+ patterns with negative forward assertions or any backward assertions
+ preceding ".*" at the start, unless the pattern required a fixed first
+ character. This was a failing pattern: "(?!.bcd).*". The bug is now fixed.
+
+10. In UTF-8 mode, when moving forwards in the subject after a failed match
+ starting at the last subject character, bytes beyond the end of the subject
+ string were read.
+
+11. Renamed the variable "class" as "classbits" to make life easier for C++
+ users. (Previously there was a macro definition, but it apparently wasn't
+ enough.)
+
+12. Added the new field "tables" to the extra data so that tables can be passed
+ in at exec time, or the internal tables can be re-selected. This allows
+ a compiled regex to be saved and re-used at a later time by a different
+ program that might have everything at different addresses.
+
+13. Modified the pcre-config script so that, when run on Solaris, it shows a
+ -R library as well as a -L library.
+
+14. The debugging options of pcretest (-d on the command line or D on a
+ pattern) showed incorrect output for anything following an extended class
+ that contained multibyte characters and which was followed by a quantifier.
+
+15. Added optional support for general category Unicode character properties
+ via the \p, \P, and \X escapes. Unicode property support implies UTF-8
+ support. It adds about 90K to the size of the library. The meanings of the
+ inbuilt class escapes such as \d and \s have NOT been changed.
+
+16. Updated pcredemo.c to include calls to free() to release the memory for the
+ compiled pattern.
+
+17. The generated file chartables.c was being created in the source directory
+ instead of in the building directory. This caused the build to fail if the
+ source directory was different from the building directory, and was
+ read-only.
+
+18. Added some sample Win commands from Mark Tetrode into the NON-UNIX-USE
+ file. No doubt somebody will tell me if they don't make sense... Also added
+ Dan Mooney's comments about building on OpenVMS.
+
+19. Added support for partial matching via the PCRE_PARTIAL option for
+ pcre_exec() and the \P data escape in pcretest.
+
+20. Extended pcretest with 3 new pattern features:
+
+ (i) A pattern option of the form ">rest-of-line" causes pcretest to
+ write the compiled pattern to the file whose name is "rest-of-line".
+ This is a straight binary dump of the data, with the saved pointer to
+ the character tables forced to be NULL. The study data, if any, is
+ written too. After writing, pcretest reads a new pattern.
+
+ (ii) If, instead of a pattern, "<rest-of-line" is given, pcretest reads a
+ compiled pattern from the given file. There must not be any
+ occurrences of "<" in the file name (pretty unlikely); if there are,
+ pcretest will instead treat the initial "<" as a pattern delimiter.
+ After reading in the pattern, pcretest goes on to read data lines as
+ usual.
+
+ (iii) The F pattern option causes pcretest to flip the bytes in the 32-bit
+ and 16-bit fields in a compiled pattern, to simulate a pattern that
+ was compiled on a host of opposite endianness.
+
+21. The pcre-exec() function can now cope with patterns that were compiled on
+ hosts of opposite endianness, with this restriction:
+
+ As for any compiled expression that is saved and used later, the tables
+ pointer field cannot be preserved; the extra_data field in the arguments
+ to pcre_exec() should be used to pass in a tables address if a value
+ other than the default internal tables were used at compile time.
+
+22. Calling pcre_exec() with a negative value of the "ovecsize" parameter is
+ now diagnosed as an error. Previously, most of the time, a negative number
+ would have been treated as zero, but if in addition "ovector" was passed as
+ NULL, a crash could occur.
+
+23. Updated the files ltmain.sh, config.sub, config.guess, and aclocal.m4 with
+ new versions from the libtool 1.5 distribution (the last one is a copy of
+ a file called libtool.m4). This seems to have fixed the need to patch
+ "configure" to support Darwin 1.3 (which I used to do). However, I still
+ had to patch ltmain.sh to ensure that ${SED} is set (it isn't on my
+ workstation).
+
+24. Changed the PCRE licence to be the more standard "BSD" licence.
+
+
Version 4.5 01-Dec-03
---------------------
diff --git a/LICENCE b/LICENCE
index 09a242c..1573583 100644
--- a/LICENCE
+++ b/LICENCE
@@ -4,51 +4,42 @@ PCRE LICENCE
PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
+Release 5 of PCRE is distributed under the terms of the "BSD" licence, as
+specified below. The documentation for PCRE, supplied in the "doc"
+directory, is distributed under the same terms as the software itself.
+
Written by: Philip Hazel <ph10@cam.ac.uk>
University of Cambridge Computing Service,
Cambridge, England. Phone: +44 1223 334714.
-Copyright (c) 1997-2003 University of Cambridge
-
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission. In practice, this means that if you use
- PCRE in software that you distribute to others, commercially or
- otherwise, you must put a sentence like this
-
- Regular expression support is provided by the PCRE library package,
- which is open source software, written by Philip Hazel, and copyright
- by the University of Cambridge, England.
-
- somewhere reasonably visible in your documentation and in any relevant
- files or online help data or similar. A reference to the ftp site for
- the source, that is, to
-
- ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
-
- should also be given in the documentation. However, this condition is not
- intended to apply to whole chains of software. If package A includes PCRE,
- it must acknowledge it, but if package B is software that includes package
- A, the condition is not imposed on package B (unless it uses PCRE
- independently).
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL),
- then the terms of that licence shall supersede any condition above with
- which it is incompatible.
-
-The documentation for PCRE, supplied in the "doc" directory, is distributed
-under the same terms as the software itself.
+Copyright (c) 1997-2004 University of Cambridge
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
End
diff --git a/Makefile.in b/Makefile.in
index 8fd1e1a..5354f39 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -68,6 +68,7 @@ CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
+UCP = @UCP@
UTF8 = @UTF8@
NEWLINE = @NEWLINE@
POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
@@ -119,10 +120,14 @@ libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
$(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
'$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
-pcre.@OBJEXT@: $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
+# Note that chartables.c is in the current directory, not the source directory.
+
+pcre.@OBJEXT@: chartables.c $(top_srcdir)/pcre.c \
$(top_srcdir)/internal.h $(top_srcdir)/printint.c \
+ $(top_srcdir)/ucp.c $(top_srcdir)/ucp.h $(top_srcdir)/ucpinternal.h \
+ $(top_srcdir)/ucptable.c $(top_srcdir)/ucptypetable.c \
pcre.h config.h Makefile
- $(LTCOMPILE) $(UTF8) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c
+ $(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c
pcreposix.@OBJEXT@: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
$(top_srcdir)/internal.h pcre.h config.h Makefile
@@ -138,15 +143,15 @@ get.@OBJEXT@: $(top_srcdir)/get.c $(top_srcdir)/internal.h \
study.@OBJEXT@: $(top_srcdir)/study.c $(top_srcdir)/internal.h \
pcre.h config.h Makefile
- $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
+ $(LTCOMPILE) $(UTF8) $(UCP) $(top_srcdir)/study.c
pcretest.@OBJEXT@: $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \
$(top_srcdir)/printint.c \
pcre.h config.h Makefile
- $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c
+ $(CC) -c $(CFLAGS) -I. $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcretest.c
pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
- $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
+ $(CC) -c $(CFLAGS) -I. $(UTF8) $(UCP) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
# Some Windows-specific targets for MinGW. Do not use for Cygwin.
@@ -198,10 +203,11 @@ wininstall : winshared
-strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
-strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
-# An auxiliary program makes the default character table source
+# An auxiliary program makes the default character table source. This is put
+# in the current directory, NOT the $top_srcdir directory.
-$(top_srcdir)/chartables.c: dftables
- ./dftables $(top_srcdir)/chartables.c
+chartables.c: dftables
+ ./dftables chartables.c
dftables.@BUILD_OBJEXT@: $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
$(top_srcdir)/internal.h pcre.h config.h Makefile
@@ -253,6 +259,8 @@ install: all @ON_WINDOWS@ wininstall
$(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
$(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
$(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
+ $(mkinstalldirs) $(DESTDIR)$(LIBDIR)/pkgconfig
+ $(INSTALL) libpcre.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
# We deliberately omit dftables and chartables.c from 'make clean'; once made
# chartables.c shouldn't change, and if people have edited the tables by hand,
diff --git a/NEWS b/NEWS
index 2621974..e9a5cf2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,53 @@
News about PCRE releases
------------------------
+Release 5.0 13-Sep-04
+---------------------
+
+The licence under which PCRE is released has been changed to the more
+conventional "BSD" licence.
+
+In the code, some bugs have been fixed, and there are also some major changes
+in this release (which is why I've increased the number to 5.0). Some changes
+are internal rearrangements, and some provide a number of new facilities. The
+new features are:
+
+1. There's an "automatic callout" feature that inserts callouts before every
+ item in the regex, and there's a new callout field that gives the position
+ in the pattern - useful for debugging and tracing.
+
+2. The extra_data structure can now be used to pass in a set of character
+ tables at exec time. This is useful if compiled regex are saved and re-used
+ at a later time when the tables may not be at the same address. If the
+ default internal tables are used, the pointer saved with the compiled
+ pattern is now set to NULL, which means that you don't need to do anything
+ special unless you are using custom tables.
+
+3. It is possible, with some restrictions on the content of the regex, to
+ request "partial" matching. A special return code is given if all of the
+ subject string matched part of the regex. This could be useful for testing
+ an input field as it is being typed.
+
+4. There is now some optional support for Unicode character properties, which
+ means that the patterns items such as \p{Lu} and \X can now be used. Only
+ the general category properties are supported. If PCRE is compiled with this
+ support, an additional 90K data structure is include, which increases the
+ size of the library dramatically.
+
+5. There is support for saving compiled patterns and re-using them later.
+
+6. There is support for running regular expressions that were compiled on a
+ different host with the opposite endianness.
+
+7. The pcretest program has been extended to accommodate the new features.
+
+The main internal rearrangement is that sequences of literal characters are no
+longer handled as strings. Instead, each character is handled on its own. This
+makes some UTF-8 handling easier, and makes the support of partial matching
+possible. Compiled patterns containing long literal strings will be larger as a
+result of this change; I hope that performance will not be much affected.
+
+
Release 4.5 01-Dec-03
---------------------
diff --git a/NON-UNIX-USE b/NON-UNIX-USE
index c015b21..f6280af 100644
--- a/NON-UNIX-USE
+++ b/NON-UNIX-USE
@@ -1,19 +1,25 @@
Compiling PCRE on non-Unix systems
----------------------------------
-See below for comments on Cygwin or MinGW usage. I (Philip Hazel) have no
-knowledge of Windows sytems and how their libraries work. The items in the
-PCRE Makefile that relate to anything other than Unix-like systems have been
-contributed by PCRE users. There are some other comments and files in the
-Contrib directory on the ftp site that you may find useful.
+See below for comments on Cygwin or MinGW and OpenVMS usage. I (Philip Hazel)
+have no knowledge of Windows or VMS sytems and how their libraries work. The
+items in the PCRE Makefile that relate to anything other than Unix-like systems
+have been contributed by PCRE users. There are some other comments and files in
+the Contrib directory on the ftp site that you may find useful. See
-The following are generic comments about building PCRE:
+ ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Contrib
If you want to compile PCRE for a non-Unix system (or perhaps, more strictly,
-for a system that does not support "configure" and make files), note that PCRE
-consists entirely of code written in Standard C, and so should compile
-successfully on any machine with a Standard C compiler and library, using
-normal compiling commands to do the following:
+for a system that does not support "configure" and "make" files), note that
+PCRE consists entirely of code written in Standard C, and so should compile
+successfully on any system that has a Standard C compiler and library.
+
+
+GENERIC INSTRUCTIONS
+
+The following are generic comments about building PCRE. The interspersed
+indented commands are suggestions from Mark Tetrode as to which commands you
+might use on a Windows system to build a static library.
(1) Copy or rename the file config.in as config.h, and change the macros that
define HAVE_STRERROR and HAVE_MEMMOVE to define them as 1 rather than 0.
@@ -23,32 +29,85 @@ particular, if you want to force a specific value for newline, you can define
the NEWLINE macro. The default is to use '\n', thereby using whatever value
your compiler gives to '\n'.
+ rem Mark Tetrode's commands
+ copy config.in config.h
+ rem Use write, because notepad cannot handle UNIX files. Change values.
+ write config.h
+
(2) Copy or rename the file pcre.in as pcre.h, and change the macro definitions
for PCRE_MAJOR, PCRE_MINOR, and PCRE_DATE near its start to the values set in
configure.in.
+ rem Mark Tetrode's commands
+ copy pcre.in pcre.h
+ rem Read values from configure.in
+ write configure.in
+ rem Change values
+ write pcre.h
+
(3) Compile dftables.c as a stand-alone program, and then run it with
the single argument "chartables.c". This generates a set of standard
character tables and writes them to that file.
+ rem Mark Tetrode's commands
+ rem Compile & run
+ cl -DSUPPORT_UTF8 dftables.c
+ dftables.exe > chartables.c
+
(4) Compile maketables.c, get.c, study.c and pcre.c and link them all
together into an object library in whichever form your system keeps such
libraries. This is the pcre library (chartables.c is included by means of an
#include directive). If your system has static and shared libraries, you may
have to do this once for each type.
+ rem Mark Tetrode's commands, for a static library
+ rem Compile & lib
+ cl -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 /c maketables.c get.c study.c pcre.c
+ lib /OUT:pcre.lib maketables.obj get.obj study.obj pcre.obj
+
(5) Similarly, compile pcreposix.c and link it (on its own) as the pcreposix
library.
+ rem Mark Tetrode's commands, for a static library
+ rem Compile & lib
+ cl -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 /c pcreposix.c
+ lib /OUT:pcreposix.lib pcreposix.obj
+
(6) Compile the test program pcretest.c. This needs the functions in the
pcre and pcreposix libraries when linking.
+ rem Mark Tetrode's commands
+ rem compile & link
+ cl pcretest.c pcre.lib pcreposix.lib
+
(7) Run pcretest on the testinput files in the testdata directory, and check
that the output matches the corresponding testoutput files. You must use the
-i option when checking testinput2. Note that the supplied files are in Unix
format, with just LF characters as line terminators. You may need to edit them
to change this if your system uses a different convention.
+ rem Mark Tetrode's commands
+ rem Make a change, i.e. space, backspace, and save again - do this for all
+ rem to change UNIX to Win, \n to \n\r
+ write testoutput1
+ write testoutput2
+ write testoutput3
+ write testoutput4
+ write testoutput5
+ pcretest testdata\testinput1 testdata\myoutput1
+ windiff testdata\testoutput1 testdata\myoutput1
+ pcretest -i testdata\testinput2 testdata\myoutput2
+ windiff testdata\testoutput2 testdata\myoutput2
+ pcretest testdata\testinput3 testdata\myoutput3
+ windiff testdata\testoutput3 testdata\myoutput3
+ pcretest testdata\testinput4 testdata\myoutput4
+ windiff testdata\testoutput4 testdata\myoutput4
+ pcretest testdata\testinput5 testdata\myoutput5
+ windiff testdata\testoutput5 testdata\myoutput5
+
+
+FURTHER REMARKS
+
If you have a system without "configure" but where you can use a Makefile, edit
Makefile.in to create Makefile, substituting suitable values for the variables
at the head of the file.
@@ -119,4 +178,67 @@ void (*pcre_free)(void *) = free;
#endif
=========================
+
+BUILDING PCRE ON OPENVMS
+
+Dan Mooney sent the following comments about building PCRE on OpenVMS:
+
+"It was quite easy to compile and link the library. I don't have a formal
+make file but the attached file [reproduced below] contains the OpenVMS DCL
+commands I used to build the library. I had to add #define
+POSIX_MALLOC_THRESHOLD 10 to pcre.h since it was not defined anywhere.
+
+The library was built on:
+O/S: HP OpenVMS v7.3-1
+Compiler: Compaq C v6.5-001-48BCD
+Linker: vA13-01
+
+The test results did not match 100% due to the issues you mention in your
+documentation regarding isprint(), iscntrl(), isgraph() and ispunct(). I
+modified some of the character tables temporarily and was able to get the
+results to match. Tests using the fr locale did not match since I don't have
+that locale loaded. The study size was always reported to be 3 less than the
+value in the standard test output files."
+
+=========================
+$! This DCL procedure builds PCRE on OpenVMS
+$!
+$! I followed the instructions in the non-unix-use file in the distribution.
+$!
+$ COMPILE == "CC/LIST/NOMEMBER_ALIGNMENT/PREFIX_LIBRARY_ENTRIES=ALL_ENTRIES
+$ COMPILE DFTABLES.C
+$ LINK/EXE=DFTABLES.EXE DFTABLES.OBJ
+$ RUN DFTABLES.EXE/OUTPUT=CHARTABLES.C
+$ COMPILE MAKETABLES.C
+$ COMPILE GET.C
+$ COMPILE STUDY.C
+$! I had to set POSIX_MALLOC_THRESHOLD to 10 in PCRE.H since the symbol
+$! did not seem to be defined anywhere.
+$! I edited pcre.h and added #DEFINE SUPPORT_UTF8 to enable UTF8 support.
+$ COMPILE PCRE.C
+$ LIB/CREATE PCRE MAKETABLES.OBJ, GET.OBJ, STUDY.OBJ, PCRE.OBJ
+$! I had to set POSIX_MALLOC_THRESHOLD to 10 in PCRE.H since the symbol
+$! did not seem to be defined anywhere.
+$ COMPILE PCREPOSIX.C
+$ LIB/CREATE PCREPOSIX PCREPOSIX.OBJ
+$ COMPILE PCRETEST.C
+$ LINK/EXE=PCRETEST.EXE PCRETEST.OBJ, PCRE/LIB, PCREPOSIX/LIB
+$! C programs that want access to command line arguments must be
+$! defined as a symbol
+$ PCRETEST :== "$ SYS$ROADSUSERS:[DMOONEY.REGEXP]PCRETEST.EXE"
+$! Arguments must be enclosed in quotes.
+$ PCRETEST "-C"
+$! Test results:
+$!
+$! The test results did not match 100%. The functions isprint(), iscntrl(),
+$! isgraph() and ispunct() on OpenVMS must not produce the same results
+$! as the system that built the test output files provided with the
+$! distribution.
+$!
+$! The study size did not match and was always 3 less on OpenVMS.
+$!
+$! Locale could not be set to fr
+$!
+=========================
+
****
diff --git a/README b/README
index 879ba04..fc5397e 100644
--- a/README
+++ b/README
@@ -22,6 +22,28 @@ ensure that they link with PCRE's libpcreposix library. Otherwise they may pick
up the "real" POSIX functions of the same name.
+Documentation for PCRE
+----------------------
+
+If you install PCRE in the normal way, you will end up with an installed set of
+man pages whose names all start with "pcre". The one that is called "pcre"
+lists all the others. In addition to these man pages, the PCRE documentation is
+supplied in two other forms; however, as there is no standard place to install
+them, they are left in the doc directory of the unpacked source distribution.
+These forms are:
+
+ 1. Files called doc/pcre.txt, doc/pcregrep.txt, and doc/pcretest.txt. The
+ first of these is a concatenation of the text forms of all the section 3
+ man pages except those that summarize individual functions. The other two
+ are the text forms of the section 1 man pages for the pcregrep and
+ pcretest commands. Text forms are provided for ease of scanning with text
+ editors or similar tools.
+
+ 2. A subdirectory called doc/html contains all the documentation in HTML
+ form, hyperlinked in various ways, and rooted in a file called
+ doc/index.html.
+
+
Contributions by users of PCRE
------------------------------
@@ -46,7 +68,7 @@ INSTALL.
Most commonly, people build PCRE within its own distribution directory, and in
this case, on many systems, just running "./configure" is sufficient, but the
-usual methods of changing standard defaults are available. For example,
+usual methods of changing standard defaults are available. For example:
CFLAGS='-O2 -Wall' ./configure --prefix=/opt/local
@@ -69,6 +91,13 @@ library. You can read more about them in the pcrebuild man page.
for handling UTF-8 is not included in the library. (Even when included, it
still has to be enabled by an option at run time.)
+. If, in addition to support for UTF-8 character strings, you want to include
+ support for the \P, \p, and \X sequences that recognize Unicode character
+ properties, you must add --enable-unicode-properties to the "configure"
+ command. This adds about 90K to the size of the library (in the form of a
+ property table); only the basic two-letter properties such as Lu are
+ supported.
+
. You can build PCRE to recognized CR or NL as the newline character, instead
of whatever your compiler uses for "\n", by adding --newline-is-cr or
--newline-is-nl to the "configure" command, respectively. Only do this if you
@@ -111,12 +140,14 @@ library. You can read more about them in the pcrebuild man page.
on the "configure" command. PCRE runs more slowly in this mode, but it may be
necessary in environments with limited stack sizes.
-The "configure" script builds five files:
+The "configure" script builds seven files:
-. libtool is a script that builds shared and/or static libraries
+. pcre.h is build by copying pcre.in and making substitutions
. Makefile is built by copying Makefile.in and making substitutions.
. config.h is built by copying config.in and making substitutions.
. pcre-config is built by copying pcre-config.in and making substitutions.
+. libpcre.pc is data for the pkg-config command, built from libpcre.pc.in
+. libtool is a script that builds shared and/or static libraries
. RunTest is a script for running tests
Once "configure" has run, you can run "make". It builds two libraries called
@@ -125,20 +156,33 @@ command. You can use "make install" to copy these, the public header files
pcre.h and pcreposix.h, and the man pages to appropriate live directories on
your system, in the normal way.
+
+Retrieving configuration information on Unix-like systems
+---------------------------------------------------------
+
Running "make install" also installs the command pcre-config, which can be used
to recall information about the PCRE configuration and installation. For
-example,
+example:
pcre-config --version
prints the version number, and
- pcre-config --libs
+ pcre-config --libs
outputs information about where the library is installed. This command can be
included in makefiles for programs that use PCRE, saving the programmer from
having to remember too many details.
+The pkg-config command is another system for saving and retrieving information
+about installed libraries. Instead of separate commands for each library, a
+single command is used. For example:
+
+ pkg-config --cflags pcre
+
+The data is held in *.pc files that are installed in a directory called
+pkgconfig.
+
Shared libraries on Unix-like systems
-------------------------------------
@@ -158,7 +202,7 @@ installed themselves. However, the versions left in the source directory still
use the uninstalled libraries.
To build PCRE using static libraries only you must use --disable-shared when
-configuring it. For example
+configuring it. For example:
./configure --prefix=/usr/gnu --disable-shared
@@ -202,9 +246,9 @@ configuring process. (This can also be run by "make runtest", "make check", or
The script runs the pcretest test program (which is documented in its own man
page) on each of the testinput files (in the testdata directory) in turn,
and compares the output with the contents of the corresponding testoutput file.
-A file called testtry is used to hold the output from pcretest. To run pcretest
-on just one of the test files, give its number as an argument to RunTest, for
-example:
+A file called testtry is used to hold the main output from pcretest
+(testsavedregex is also used as a working file). To run pcretest on just one of
+the test files, give its number as an argument to RunTest, for example:
RunTest 2
@@ -247,19 +291,23 @@ running "configure". This file can be also fed directly to the perltest script,
provided you are running Perl 5.8 or higher. (For Perl 5.6, a small patch,
commented in the script, can be be used.)
-The fifth and final file tests error handling with UTF-8 encoding, and internal
-UTF-8 features of PCRE that are not relevant to Perl.
+The fifth test checks error handling with UTF-8 encoding, and internal UTF-8
+features of PCRE that are not relevant to Perl.
+
+The sixth and final test checks the support for Unicode character properties.
+It it not run automatically unless PCRE is built with Unicode property support.
+To to this you must set --enable-unicode-properties when running "configure".
Character tables
----------------
-PCRE uses four tables for manipulating and identifying characters. The final
-argument of the pcre_compile() function is a pointer to a block of memory
-containing the concatenated tables. A call to pcre_maketables() can be used to
-generate a set of tables in the current locale. If the final argument for
-pcre_compile() is passed as NULL, a set of default tables that is built into
-the binary is used.
+PCRE uses four tables for manipulating and identifying characters whose values
+are less than 256. The final argument of the pcre_compile() function is a
+pointer to a block of memory containing the concatenated tables. A call to
+pcre_maketables() can be used to generate a set of tables in the current
+locale. If the final argument for pcre_compile() is passed as NULL, a set of
+default tables that is built into the binary is used.
The source file called chartables.c contains the default set of tables. This is
not supplied in the distribution, but is built by the program dftables
@@ -299,12 +347,20 @@ The distribution should contain the following files:
headers:
dftables.c auxiliary program for building chartables.c
+
get.c )
maketables.c )
- study.c ) source of
- pcre.c ) the functions
+ study.c ) source of the functions
+ pcre.c ) in the library
pcreposix.c )
printint.c )
+
+ ucp.c )
+ ucp.h ) source for the code that is used for
+ ucpinternal.h ) Unicode property handling
+ ucptable.c )
+ ucptypetable.c )
+
pcre.in "source" for the header for the external API; pcre.h
is built from this by "configure"
pcreposix.h header for the external POSIX wrapper API
@@ -335,7 +391,9 @@ The distribution should contain the following files:
doc/pcretest.txt plain text documentation of test program
doc/perltest.txt plain text documentation of Perl test program
install-sh a shell script for installing files
+ libpcre.pc.in "source" for libpcre.pc for pkg-config
ltmain.sh file used to build a libtool script
+ mkinstalldirs script for making install directories
pcretest.c comprehensive test program
pcredemo.c simple demonstration of coding calls to PCRE
perltest Perl test program
@@ -346,15 +404,19 @@ The distribution should contain the following files:
testdata/testinput3 test data for locale-specific tests
testdata/testinput4 test data for UTF-8 tests compatible with Perl
testdata/testinput5 test data for other UTF-8 tests
+ testdata/testinput6 test data for Unicode property support tests
testdata/testoutput1 test results corresponding to testinput1
testdata/testoutput2 test results corresponding to testinput2
testdata/testoutput3 test results corresponding to testinput3
testdata/testoutput4 test results corresponding to testinput4
testdata/testoutput5 test results corresponding to testinput5
+ testdata/testoutput6 test results corresponding to testinput6
(C) Auxiliary files for Win32 DLL
dll.mk
+ libpcre.def
+ libpcreposix.def
pcre.def
(D) Auxiliary file for VPASCAL
@@ -362,4 +424,4 @@ The distribution should contain the following files:
makevp.bat
Philip Hazel <ph10@cam.ac.uk>
-December 2003
+September 2004
diff --git a/RunTest.in b/RunTest.in
index f203ac7..5e945e1 100755
--- a/RunTest.in
+++ b/RunTest.in
@@ -15,6 +15,7 @@ do2=no
do3=no
do4=no
do5=no
+do6=no
while [ $# -gt 0 ] ; do
case $1 in
@@ -23,29 +24,57 @@ while [ $# -gt 0 ] ; do
3) do3=yes;;
4) do4=yes;;
5) do5=yes;;
+ 6) do6=yes;;
*) echo "Unknown test number $1"; exit 1;;
esac
shift
done
+if [ "@LINK_SIZE@" != "" -a "@LINK_SIZE@" != "-DLINK_SIZE=2" ] ; then
+ if [ $do2 = yes ] ; then
+ echo "Can't run test 2 with an internal link size other than 2"
+ exit 1
+ fi
+ if [ $do5 = yes ] ; then
+ echo "Can't run test 5 with an internal link size other than 2"
+ exit 1
+ fi
+ if [ $do6 = yes ] ; then
+ echo "Can't run test 6 with an internal link size other than 2"
+ exit 1
+ fi
+fi
+
if [ "@UTF8@" = "" ] ; then
if [ $do4 = yes ] ; then
- echo "Can't run test 4 because UFT8 support is not configured"
+ echo "Can't run test 4 because UTF-8 support is not configured"
exit 1
fi
if [ $do5 = yes ] ; then
- echo "Can't run test 5 because UFT8 support is not configured"
+ echo "Can't run test 5 because UTF-8 support is not configured"
+ exit 1
+ fi
+ if [ $do6 = yes ] ; then
+ echo "Can't run test 6 because UTF-8 support is not configured"
exit 1
fi
fi
-if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a\
- $do5 = no ] ; then
+if [ "@UCP@" = "" ] ; then
+ if [ $do6 = yes ] ; then
+ echo "Can't run test 6 because Unicode property support is not configured"
+ exit 1
+ fi
+fi
+
+if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a \
+ $do5 = no -a $do6 = no ] ; then
do1=yes
- do2=yes
+ do2=yes
do3=yes
if [ "@UTF8@" != "" ] ; then do4=yes; fi
if [ "@UTF8@" != "" ] ; then do5=yes; fi
+ if [ "@UTF8@" != "" -a "@UCP@" != "" ] ; then do6=yes; fi
fi
# Show which release
@@ -55,7 +84,7 @@ fi
# Primary test, Perl-compatible
if [ $do1 = yes ] ; then
- echo "Testing main functionality (Perl compatible)"
+ echo "Test 1: main functionality (Perl compatible)"
./pcretest $testdata/testinput1 testtry
if [ $? = 0 ] ; then
$cf testtry $testdata/testoutput1
@@ -68,13 +97,17 @@ fi
# PCRE tests that are not Perl-compatible - API & error tests, mostly
if [ $do2 = yes ] ; then
- echo "Testing API and error handling (not Perl compatible)"
- ./pcretest -i $testdata/testinput2 testtry
- if [ $? = 0 ] ; then
- $cf testtry $testdata/testoutput2
- if [ $? != 0 ] ; then exit 1; fi
- else exit 1
- fi
+ if [ "@LINK_SIZE@" = "" -o "@LINK_SIZE@" = "-DLINK_SIZE=2" ] ; then
+ echo "Test 2: API and error handling (not Perl compatible)"
+ ./pcretest -i $testdata/testinput2 testtry
+ if [ $? = 0 ] ; then
+ $cf testtry $testdata/testoutput2
+ if [ $? != 0 ] ; then exit 1; fi
+ else exit 1
+ fi
+ else
+ echo Test 2 skipped for link size other than 2 \(@LINK_SIZE@\)
+ fi
fi
if [ $do1 = yes -a $do2 = yes ] ; then
@@ -88,7 +121,7 @@ fi
if [ $do3 = yes ] ; then
locale -a | grep '^fr_FR$' >/dev/null
if [ $? -eq 0 ] ; then
- echo "Testing locale-specific features (using 'fr_FR' locale)"
+ echo "Test 3: locale-specific features (using 'fr_FR' locale)"
./pcretest $testdata/testinput3 testtry
if [ $? = 0 ] ; then
$cf testtry $testdata/testoutput3
@@ -113,7 +146,7 @@ fi
# Additional tests for UTF8 support
if [ $do4 = yes ] ; then
- echo "Testing UTF-8 support (Perl compatible)"
+ echo "Test 4: UTF-8 support (Perl compatible)"
./pcretest $testdata/testinput4 testtry
if [ $? = 0 ] ; then
$cf testtry $testdata/testoutput4
@@ -125,15 +158,35 @@ if [ $do4 = yes ] ; then
fi
if [ $do5 = yes ] ; then
- echo "Testing API and internals for UTF-8 support (not Perl compatible)"
- ./pcretest $testdata/testinput5 testtry
- if [ $? = 0 ] ; then
- $cf testtry $testdata/testoutput5
- if [ $? != 0 ] ; then exit 1; fi
- else exit 1
- fi
- echo "UTF8 internals test ran OK"
- echo " "
+ if [ "@LINK_SIZE@" = "" -o "@LINK_SIZE@" = "-DLINK_SIZE=2" ] ; then
+ echo "Test 5: API and internals for UTF-8 support (not Perl compatible)"
+ ./pcretest $testdata/testinput5 testtry
+ if [ $? = 0 ] ; then
+ $cf testtry $testdata/testoutput5
+ if [ $? != 0 ] ; then exit 1; fi
+ else exit 1
+ fi
+ echo "UTF8 internals test ran OK"
+ echo " "
+ else
+ echo Test 5 skipped for link size other than 2 \(@LINK_SIZE@\)
+ fi
+fi
+
+if [ $do6 = yes ] ; then
+ if [ "@LINK_SIZE@" = "" -o "@LINK_SIZE@" = "-DLINK_SIZE=2" ] ; then
+ echo "Test 6: Unicode property support"
+ ./pcretest $testdata/testinput6 testtry
+ if [ $? = 0 ] ; then
+ $cf testtry $testdata/testoutput6
+ if [ $? != 0 ] ; then exit 1; fi
+ else exit 1
+ fi
+ echo "Unicode properties test ran OK"
+ echo " "
+ else
+ echo Test 6 skipped for link size other than 2 \(@LINK_SIZE@\)
+ fi
fi
# End
diff --git a/config.guess b/config.guess
index 9b1384b..6641456 100755
--- a/config.guess
+++ b/config.guess
@@ -1,9 +1,9 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
-timestamp='2002-11-30'
+timestamp='2004-07-19'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -53,7 +53,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@@ -98,14 +98,18 @@ trap 'exit 1' 1 2 15
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
-# This shell variable is my proudest work .. or something. --bje
+# Portable tmp directory creation inspired by the Autoconf team.
-set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
-(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
- || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
-dummy=$tmpdir/dummy ;
-files="$dummy.c $dummy.o $dummy.rel $dummy" ;
-trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
,,) echo "int x;" > $dummy.c ;
for c in cc gcc c89 c99 ; do
@@ -113,15 +117,13 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
CC_FOR_BUILD="$c"; break ;
fi ;
done ;
- rm -f $files ;
if test x"$CC_FOR_BUILD" = x ; then
CC_FOR_BUILD=no_compiler_found ;
fi
;;
,,*) CC_FOR_BUILD=$CC ;;
,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac ;
-unset files'
+esac ;'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 1994-08-24)
@@ -195,15 +197,24 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
echo "${machine}-${os}${release}"
exit 0 ;;
+ amd64:OpenBSD:*:*)
+ echo x86_64-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
amiga:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
arc:OpenBSD:*:*)
echo mipsel-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
+ cats:OpenBSD:*:*)
+ echo arm-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
hp300:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
+ luna88k:OpenBSD:*:*)
+ echo m88k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
mac68k:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
@@ -234,71 +245,67 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:OpenBSD:*:*)
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit 0 ;;
+ macppc:MirBSD:*:*)
+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
+ exit 0 ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit 0 ;;
alpha:OSF1:*:*)
- if test $UNAME_RELEASE = "V4.0"; then
+ case $UNAME_RELEASE in
+ *4.0)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- fi
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
- eval $set_cc_for_build
- cat <<EOF >$dummy.s
- .data
-\$Lformat:
- .byte 37,100,45,37,120,10,0 # "%d-%x\n"
-
- .text
- .globl main
- .align 4
- .ent main
-main:
- .frame \$30,16,\$26,0
- ldgp \$29,0(\$27)
- .prologue 1
- .long 0x47e03d80 # implver \$0
- lda \$2,-1
- .long 0x47e20c21 # amask \$2,\$1
- lda \$16,\$Lformat
- mov \$0,\$17
- not \$1,\$18
- jsr \$26,printf
- ldgp \$29,0(\$26)
- mov 0,\$16
- jsr \$26,exit
- .end main
-EOF
- $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
- if test "$?" = 0 ; then
- case `$dummy` in
- 0-0)
- UNAME_MACHINE="alpha"
- ;;
- 1-0)
- UNAME_MACHINE="alphaev5"
- ;;
- 1-1)
- UNAME_MACHINE="alphaev56"
- ;;
- 1-101)
- UNAME_MACHINE="alphapca56"
- ;;
- 2-303)
- UNAME_MACHINE="alphaev6"
- ;;
- 2-307)
- UNAME_MACHINE="alphaev67"
- ;;
- 2-1307)
- UNAME_MACHINE="alphaev68"
- ;;
- 3-1307)
- UNAME_MACHINE="alphaev7"
- ;;
- esac
- fi
- rm -f $dummy.s $dummy && rmdir $tmpdir
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
exit 0 ;;
Alpha\ *:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
@@ -321,6 +328,9 @@ EOF
*:OS/390:*:*)
echo i370-ibm-openedition
exit 0 ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit 0 ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit 0;;
@@ -338,6 +348,9 @@ EOF
NILE*:*:*:dcosx)
echo pyramid-pyramid-svr4
exit 0 ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit 0 ;;
DRS?6000:UNIX_SV:4.2*:7*)
case `/usr/bin/uname -p` in
sparc) echo sparc-icl-nx7 && exit 0 ;;
@@ -410,6 +423,9 @@ EOF
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
echo m68k-unknown-mint${UNAME_RELEASE}
exit 0 ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit 0 ;;
powerpc:machten:*:*)
echo powerpc-apple-machten${UNAME_RELEASE}
exit 0 ;;
@@ -450,8 +466,7 @@ EOF
EOF
$CC_FOR_BUILD -o $dummy $dummy.c \
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
- && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
- rm -f $dummy.c $dummy && rmdir $tmpdir
+ && exit 0
echo mips-mips-riscos${UNAME_RELEASE}
exit 0 ;;
Motorola:PowerMAX_OS:*:*)
@@ -535,8 +550,7 @@ EOF
exit(0);
}
EOF
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
- rm -f $dummy.c $dummy && rmdir $tmpdir
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
echo rs6000-ibm-aix3.2.5
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
echo rs6000-ibm-aix3.2.4
@@ -635,10 +649,20 @@ EOF
}
EOF
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
- rm -f $dummy.c $dummy && rmdir $tmpdir
+ test -z "$HP_ARCH" && HP_ARCH=hppa
fi ;;
esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ # avoid double evaluation of $set_cc_for_build
+ test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
exit 0 ;;
ia64:HP-UX:*:*)
@@ -672,8 +696,7 @@ EOF
exit (0);
}
EOF
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
- rm -f $dummy.c $dummy && rmdir $tmpdir
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
echo unknown-hitachi-hiuxwe2
exit 0 ;;
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
@@ -731,21 +754,26 @@ EOF
CRAY*TS:*:*:*)
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
- CRAY*T3D:*:*:*)
- echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
CRAY*T3E:*:*:*)
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
CRAY*SV1:*:*:*)
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit 0 ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit 0 ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
exit 0 ;;
@@ -756,19 +784,7 @@ EOF
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit 0 ;;
*:FreeBSD:*:*)
- # Determine whether the default compiler uses glibc.
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <features.h>
- #if __GLIBC__ >= 2
- LIBC=gnu
- #else
- LIBC=
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- rm -f $dummy.c && rmdir $tmpdir
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit 0 ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
@@ -779,8 +795,8 @@ EOF
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit 0 ;;
- x86:Interix*:3*)
- echo i586-pc-interix3
+ x86:Interix*:[34]*)
+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
exit 0 ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
@@ -801,17 +817,28 @@ EOF
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
*:GNU:*:*)
+ # the GNU system
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit 0 ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit 0 ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit 0 ;;
arm*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit 0 ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit 0 ;;
ia64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit 0 ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
m68*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit 0 ;;
@@ -832,7 +859,6 @@ EOF
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- rm -f $dummy.c && rmdir $tmpdir
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
;;
mips64:Linux:*:*)
@@ -852,7 +878,6 @@ EOF
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- rm -f $dummy.c && rmdir $tmpdir
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
;;
ppc:Linux:*:*)
@@ -889,6 +914,9 @@ EOF
s390:Linux:*:* | s390x:Linux:*:*)
echo ${UNAME_MACHINE}-ibm-linux
exit 0 ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
sh*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit 0 ;;
@@ -946,9 +974,11 @@ EOF
LIBC=gnuaout
#endif
#endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- rm -f $dummy.c && rmdir $tmpdir
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
;;
@@ -977,6 +1007,9 @@ EOF
i*86:atheos:*:*)
echo ${UNAME_MACHINE}-unknown-atheos
exit 0 ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit 0 ;;
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
echo i386-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
@@ -1046,9 +1079,9 @@ EOF
M680?0:D-NIX:5.3:*)
echo m68k-diab-dnix
exit 0 ;;
- M68*:*:R3V[567]*:*)
+ M68*:*:R3V[5678]*:*)
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0)
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
OS_REL=''
test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
@@ -1146,7 +1179,11 @@ EOF
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
exit 0 ;;
*:Darwin:*:*)
- echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ case `uname -p` in
+ *86) UNAME_PROCESSOR=i686 ;;
+ powerpc) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit 0 ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
UNAME_PROCESSOR=`uname -p`
@@ -1159,7 +1196,7 @@ EOF
*:QNX:*:4*)
echo i386-pc-qnx
exit 0 ;;
- NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
+ NSR-?:NONSTOP_KERNEL:*:*)
echo nsr-tandem-nsk${UNAME_RELEASE}
exit 0 ;;
*:NonStop-UX:*:*)
@@ -1200,6 +1237,19 @@ EOF
*:ITS:*:*)
echo pdp10-unknown-its
exit 0 ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit 0 ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit 0 ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms && exit 0 ;;
+ I*) echo ia64-dec-vms && exit 0 ;;
+ V*) echo vax-dec-vms && exit 0 ;;
+ esac
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
@@ -1320,8 +1370,7 @@ main ()
}
EOF
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
-rm -f $dummy.c $dummy && rmdir $tmpdir
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
# Apollos put the system type in the environment.
diff --git a/config.in b/config.in
index cb926a4..fc17ddd 100644
--- a/config.in
+++ b/config.in
@@ -100,7 +100,7 @@ Define NO_RECURSE to get a version that doesn't use recursion in the match()
function; instead it creates its own stack by steam using pcre_recurse_malloc
to get memory. For more detail, see comments and other stuff just above the
match() function. On Unix systems, "configure" can be used to set this in the
-Makefile (use --disable-recursion). */
+Makefile (use --disable-stack-for-recursion). */
/* #define NO_RECURSE */
diff --git a/config.sub b/config.sub
index f0675aa..ac6de98 100755
--- a/config.sub
+++ b/config.sub
@@ -1,9 +1,9 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
-timestamp='2002-11-30'
+timestamp='2004-06-24'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -70,7 +70,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@@ -118,7 +118,8 @@ esac
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
- nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
+ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
@@ -144,7 +145,7 @@ case $os in
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis)
+ -apple | -axis | -knuth | -cray)
os=
basic_machine=$1
;;
@@ -228,14 +229,15 @@ case $basic_machine in
| a29k \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
- | clipper \
+ | c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
- | ip2k \
- | m32r | m68000 | m68k | m88k | mcore \
+ | ip2k | iq2000 \
+ | m32r | m32rle | m68000 | m68k | m88k | mcore \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
@@ -245,21 +247,24 @@ case $basic_machine in
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
| mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
| mipsisa64sb1 | mipsisa64sb1el \
| mipsisa64sr71k | mipsisa64sr71kel \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
+ | msp430 \
| ns16k | ns32k \
| openrisc | or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
- | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
+ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
| strongarm \
- | tahoe | thumb | tic80 | tron \
+ | tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
| we32k \
| x86 | xscale | xstormy16 | xtensa \
@@ -294,16 +299,16 @@ case $basic_machine in
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* \
| bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
- | clipper-* | cydra-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| i*86-* | i860-* | i960-* | ia64-* \
- | ip2k-* \
- | m32r-* \
+ | ip2k-* | iq2000-* \
+ | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | mcore-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
@@ -315,21 +320,27 @@ case $basic_machine in
| mips64vr4300-* | mips64vr4300el-* \
| mips64vr5000-* | mips64vr5000el-* \
| mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
| mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
| mipsisa64sb1-* | mipsisa64sb1el-* \
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
- | mipstx39 | mipstx39el \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | msp430-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| pyramid-* \
| romp-* | rs6000-* \
- | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
+ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
- | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tron-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
@@ -353,6 +364,9 @@ case $basic_machine in
basic_machine=a29k-amd
os=-udi
;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
adobe68k)
basic_machine=m68010-adobe
os=-scout
@@ -367,6 +381,12 @@ case $basic_machine in
basic_machine=a29k-none
os=-bsd
;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
amdahl)
basic_machine=580-amdahl
os=-sysv
@@ -426,12 +446,24 @@ case $basic_machine in
basic_machine=j90-cray
os=-unicos
;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16c)
+ basic_machine=cr16c-unknown
+ os=-elf
+ ;;
crds | unos)
basic_machine=m68k-crds
;;
cris | cris-* | etrax*)
basic_machine=cris-axis
;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
da30 | da30-*)
basic_machine=m68k-da30
;;
@@ -632,10 +664,6 @@ case $basic_machine in
mips3*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
;;
- mmix*)
- basic_machine=mmix-knuth
- os=-mmixware
- ;;
monitor)
basic_machine=m68k-rom68k
os=-coff
@@ -727,6 +755,10 @@ case $basic_machine in
basic_machine=or32-unknown
os=-coff
;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
OSE68000 | ose68000)
basic_machine=m68000-ericsson
os=-ose
@@ -758,18 +790,24 @@ case $basic_machine in
pentiumpro | p6 | 6x86 | athlon | athlon_*)
basic_machine=i686-pc
;;
- pentiumii | pentium2)
+ pentiumii | pentium2 | pentiumiii | pentium3)
basic_machine=i686-pc
;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentiumpro-* | p6-* | 6x86-* | athlon-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
- pentiumii-* | pentium2-*)
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
pn)
basic_machine=pn-gould
;;
@@ -828,6 +866,10 @@ case $basic_machine in
sb1el)
basic_machine=mipsisa64sb1el-unknown
;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
sequent)
basic_machine=i386-sequent
;;
@@ -835,6 +877,9 @@ case $basic_machine in
basic_machine=sh-hitachi
os=-hms
;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
sparclite-wrs | simso-wrs)
basic_machine=sparclite-wrs
os=-vxworks
@@ -901,10 +946,6 @@ case $basic_machine in
basic_machine=i386-sequent
os=-dynix
;;
- t3d)
- basic_machine=alpha-cray
- os=-unicos
- ;;
t3e)
basic_machine=alphaev5-cray
os=-unicos
@@ -913,14 +954,18 @@ case $basic_machine in
basic_machine=t90-cray
os=-unicos
;;
- tic4x | c4x*)
- basic_machine=tic4x-unknown
- os=-coff
- ;;
tic54x | c54x*)
basic_machine=tic54x-unknown
os=-coff
;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
tx39)
basic_machine=mipstx39-unknown
;;
@@ -934,6 +979,10 @@ case $basic_machine in
tower | tower-32)
basic_machine=m68k-ncr
;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
udi29k)
basic_machine=a29k-amd
os=-udi
@@ -1007,6 +1056,9 @@ case $basic_machine in
romp)
basic_machine=romp-ibm
;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
rs6000)
basic_machine=rs6000-ibm
;;
@@ -1023,13 +1075,13 @@ case $basic_machine in
we32k)
basic_machine=we32k-att
;;
- sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
+ sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
- sparc | sparcv9 | sparcv9b)
+ sparc | sparcv8 | sparcv9 | sparcv9b)
basic_machine=sparc-sun
;;
cydra)
@@ -1102,19 +1154,20 @@ case $os in
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
- | -powermax* | -dnix*)
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1138,6 +1191,9 @@ case $os in
-mac*)
os=`echo $os | sed -e 's|mac|macos|'`
;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
-linux*)
os=`echo $os | sed -e 's|linux|linux-gnu|'`
;;
@@ -1150,6 +1206,9 @@ case $os in
-opened*)
os=-openedition
;;
+ -os400*)
+ os=-os400
+ ;;
-wince*)
os=-wince
;;
@@ -1171,6 +1230,9 @@ case $os in
-atheos*)
os=-atheos
;;
+ -syllable*)
+ os=-syllable
+ ;;
-386bsd)
os=-bsd
;;
@@ -1193,6 +1255,9 @@ case $os in
-sinix*)
os=-sysv4
;;
+ -tpf*)
+ os=-tpf
+ ;;
-triton*)
os=-sysv3
;;
@@ -1223,6 +1288,12 @@ case $os in
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
os=-mint
;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
-none)
;;
*)
@@ -1254,6 +1325,9 @@ case $basic_machine in
arm*-semi)
os=-aout
;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
# This must come before the *-dec entry.
pdp10-*)
os=-tops20
@@ -1300,6 +1374,9 @@ case $basic_machine in
*-ibm)
os=-aix
;;
+ *-knuth)
+ os=-mmixware
+ ;;
*-wec)
os=-proelf
;;
@@ -1432,9 +1509,15 @@ case $basic_machine in
-mvs* | -opened*)
vendor=ibm
;;
+ -os400*)
+ vendor=ibm
+ ;;
-ptx*)
vendor=sequent
;;
+ -tpf*)
+ vendor=ibm
+ ;;
-vxsim* | -vxworks* | -windiss*)
vendor=wrs
;;
diff --git a/configure b/configure
index da706e0..d805565 100755
--- a/configure
+++ b/configure
@@ -1,9 +1,8 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.57.
+# Generated by GNU Autoconf 2.59.
#
-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
@@ -20,9 +19,10 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
+DUALCASE=1; export DUALCASE # for MKS sh
# Support unset when possible.
-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
as_unset=unset
else
as_unset=false
@@ -41,7 +41,7 @@ for as_var in \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
do
- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
eval $as_var=C; export $as_var
else
$as_unset $as_var
@@ -218,16 +218,17 @@ rm -f conf$$ conf$$.exe conf$$.file
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
+ test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
-as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# IFS
@@ -240,16 +241,6 @@ IFS=" $as_nl"
$as_unset CDPATH
-# Find the correct PATH separator. Usually this is `:', but
-# DJGPP uses `;' like DOS.
-if test "X${PATH_SEPARATOR+set}" != Xset; then
- UNAME=${UNAME-`uname 2>/dev/null`}
- case X$UNAME in
- *-DOS) lt_cv_sys_path_separator=';' ;;
- *) lt_cv_sys_path_separator=':' ;;
- esac
-fi
-
# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}
@@ -268,7 +259,7 @@ if test "X$1" = X--no-reexec; then
elif test "X$1" = X--fallback-echo; then
# Avoid inline document here, it may be left over
:
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
# Yippee, $echo works!
:
else
@@ -280,14 +271,14 @@ if test "X$1" = X--fallback-echo; then
# used as fallback echo
shift
cat <<EOF
-
+$*
EOF
exit 0
fi
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
-if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
@@ -314,8 +305,9 @@ else
#
# So, first we look for a working echo in the user's PATH.
- IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
@@ -324,7 +316,7 @@ else
break
fi
done
- IFS="$save_ifs"
+ IFS="$lt_save_ifs"
if test "X$echo" = Xecho; then
# We didn't find a better echo, so look for alternatives.
@@ -398,6 +390,11 @@ fi
+
+tagnames=${tagnames+${tagnames},}CXX
+
+tagnames=${tagnames+${tagnames},}F77
+
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
@@ -466,7 +463,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION POSIX_MALLOC_THRESHOLD UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -825,7 +822,7 @@ done
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
- localstatedir libdir includedir oldincludedir infodir mandir
+ localstatedir libdir includedir oldincludedir infodir mandir
do
eval ac_val=$`echo $ac_var`
case $ac_val in
@@ -865,10 +862,10 @@ if test -z "$srcdir"; then
# Try the directory containing this script, then its parent.
ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$0" : 'X\(//\)[^/]' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$0" : 'X\(//\)[^/]' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
echo X"$0" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -927,6 +924,26 @@ ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
+ac_env_CXX_set=${CXX+set}
+ac_env_CXX_value=$CXX
+ac_cv_env_CXX_set=${CXX+set}
+ac_cv_env_CXX_value=$CXX
+ac_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_env_CXXFLAGS_value=$CXXFLAGS
+ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_cv_env_CXXFLAGS_value=$CXXFLAGS
+ac_env_CXXCPP_set=${CXXCPP+set}
+ac_env_CXXCPP_value=$CXXCPP
+ac_cv_env_CXXCPP_set=${CXXCPP+set}
+ac_cv_env_CXXCPP_value=$CXXCPP
+ac_env_F77_set=${F77+set}
+ac_env_F77_value=$F77
+ac_cv_env_F77_set=${F77+set}
+ac_cv_env_F77_value=$F77
+ac_env_FFLAGS_set=${FFLAGS+set}
+ac_env_FFLAGS_value=$FFLAGS
+ac_cv_env_FFLAGS_set=${FFLAGS+set}
+ac_cv_env_FFLAGS_value=$FFLAGS
#
# Report the --help message.
@@ -942,6 +959,15 @@ if test "$ac_init_help" = "long"; then
# The list generated by autoconf has been trimmed to remove many
# options that are totally irrelevant to PCRE (e.g. relating to X),
# or are not supported by its Makefile.
+ # The list generated by autoconf has been trimmed to remove many
+ # options that are totally irrelevant to PCRE (e.g. relating to X),
+ # or are not supported by its Makefile.
+ # The list generated by autoconf has been trimmed to remove many
+ # options that are totally irrelevant to PCRE (e.g. relating to X),
+ # or are not supported by its Makefile.
+ # The list generated by autoconf has been trimmed to remove many
+ # options that are totally irrelevant to PCRE (e.g. relating to X),
+ # or are not supported by its Makefile.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.
@@ -969,9 +995,9 @@ _ACEOF
cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
+ [$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [PREFIX]
+ [PREFIX]
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
@@ -999,19 +1025,26 @@ if test -n "$ac_init_help"; then
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-shared build shared libraries default=yes
- --enable-static build static libraries default=yes
- --enable-fast-install optimize for fast installation default=yes
+ --enable-shared[ ]
+ build shared libraries [default=yes]
+ --enable-static[ ]
+ build static libraries [default=yes]
+ --enable-fast-install[ ]
+ optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-utf8 enable UTF8 support
+ --enable-unicode-properties enable Unicode properties support
--enable-newline-is-cr use CR as the newline character
--enable-newline-is-lf use LF as the newline character
--enable-ebcdic assume EBCDIC coding rather than ASCII
--disable-stack-for-recursion disable use of stack recursion when matching
Optional Packages:
- --with-gnu-ld assume the C compiler uses GNU ld default=no
- --with-pic try to use only PIC/non-PIC objects default=use both
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-pic try to use only PIC/non-PIC objects [default=use
+ both]
+ --with-tags[=TAGS]
+ include additional configurations [automatic]
--with-posix-malloc-threshold=5 threshold for POSIX malloc usage
--with-link-size=2 internal link size (2, 3, or 4 allowed)
--with-match-limit=10000000 default limit on internal looping)
@@ -1024,6 +1057,11 @@ Some influential environment variables:
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor
+ CXX C++ compiler command
+ CXXFLAGS C++ compiler flags
+ CXXCPP C++ preprocessor
+ F77 Fortran 77 compiler command
+ FFLAGS Fortran 77 compiler flags
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@@ -1061,12 +1099,45 @@ case $srcdir in
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+ case "$ac_dir" in
+ .) ac_abs_builddir=`pwd`;;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+ case ${ac_top_builddir}. in
+ .) ac_abs_top_builddir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+ case $ac_srcdir in
+ .) ac_abs_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+ case $ac_top_srcdir in
+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ esac;;
+esac
cd $ac_dir
# Check for guested configure; otherwise get Cygnus style configure.
@@ -1077,7 +1148,7 @@ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
echo
$SHELL $ac_srcdir/configure --help=recursive
elif test -f $ac_srcdir/configure.ac ||
- test -f $ac_srcdir/configure.in; then
+ test -f $ac_srcdir/configure.in; then
echo
$ac_configure --help
else
@@ -1091,8 +1162,7 @@ test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
-Free Software Foundation, Inc.
+Copyright (C) 2003 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
@@ -1104,7 +1174,7 @@ This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
-generated by GNU Autoconf 2.57. Invocation command line was
+generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1181,19 +1251,19 @@ do
2)
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
if test $ac_must_keep_next = true; then
- ac_must_keep_next=false # Got value, back to normal.
+ ac_must_keep_next=false # Got value, back to normal.
else
- case $ac_arg in
- *=* | --config-cache | -C | -disable-* | --disable-* \
- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
- | -with-* | --with-* | -without-* | --without-* | --x)
- case "$ac_configure_args0 " in
- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
- esac
- ;;
- -* ) ac_must_keep_next=true ;;
- esac
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
fi
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
# Get rid of the leading space.
@@ -1227,12 +1297,12 @@ _ASBOX
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
*ac_space=\ *)
sed -n \
- "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
;;
*)
sed -n \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
;;
esac;
}
@@ -1261,7 +1331,7 @@ _ASBOX
for ac_var in $ac_subst_files
do
eval ac_val=$`echo $ac_var`
- echo "$ac_var='"'"'$ac_val'"'"'"
+ echo "$ac_var='"'"'$ac_val'"'"'"
done | sort
echo
fi
@@ -1280,7 +1350,7 @@ _ASBOX
echo "$as_me: caught signal $ac_signal"
echo "$as_me: exit $exit_status"
} >&5
- rm -f core core.* *.core &&
+ rm -f core *.core &&
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
@@ -1360,7 +1430,7 @@ fi
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
- sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
@@ -1377,13 +1447,13 @@ echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
- { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
echo "$as_me: former value: $ac_old_val" >&2;}
- { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
echo "$as_me: current value: $ac_new_val" >&2;}
- ac_cache_corrupted=:
+ ac_cache_corrupted=:
fi;;
esac
# Pass precious variables to config.status.
@@ -1439,9 +1509,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-PCRE_MAJOR=4
-PCRE_MINOR=5
-PCRE_DATE=01-December-2003
+PCRE_MAJOR=5
+PCRE_MINOR=0
+PCRE_DATE=13-Sep-2004
PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
@@ -1788,7 +1858,6 @@ ac_compiler=`set X $ac_compile; echo $2`
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -1808,8 +1877,8 @@ ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
-echo "$as_me:$LINENO: checking for C compiler default output" >&5
-echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
(eval $ac_link_default) 2>&5
@@ -1829,23 +1898,23 @@ do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
- ;;
+ ;;
conftest.$ac_ext )
- # This is the source file.
- ;;
+ # This is the source file.
+ ;;
[ab].out )
- # We found the default executable, but exeext='' is most
- # certainly right.
- break;;
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
*.* )
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- # FIXME: I believe we export ac_cv_exeext for Libtool,
- # but it would be cool to find out if it's true. Does anybody
- # maintain Libtool? --akim.
- export ac_cv_exeext
- break;;
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ # FIXME: I believe we export ac_cv_exeext for Libtool,
+ # but it would be cool to find out if it's true. Does anybody
+ # maintain Libtool? --akim.
+ export ac_cv_exeext
+ break;;
* )
- break;;
+ break;;
esac
done
else
@@ -1919,8 +1988,8 @@ for ac_file in conftest.exe conftest conftest.*; do
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- export ac_cv_exeext
- break;;
+ export ac_cv_exeext
+ break;;
* ) break;;
esac
done
@@ -1945,7 +2014,6 @@ if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -1996,7 +2064,6 @@ if test "${ac_cv_c_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -2016,11 +2083,21 @@ main ()
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2033,7 +2110,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
@@ -2049,7 +2126,6 @@ if test "${ac_cv_prog_cc_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -2066,11 +2142,21 @@ main ()
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2083,7 +2169,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
@@ -2110,7 +2196,6 @@ else
ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -2138,6 +2223,16 @@ static char *f (char * (*g) (char **, int), char **p, ...)
va_end (v);
return s;
}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std1 is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std1. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
@@ -2164,11 +2259,21 @@ do
CC="$ac_save_CC $ac_arg"
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2181,7 +2286,7 @@ else
sed 's/^/| /' conftest.$ac_ext >&5
fi
-rm -f conftest.$ac_objext
+rm -f conftest.err conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC
@@ -2209,19 +2314,28 @@ cat >conftest.$ac_ext <<_ACEOF
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
for ac_declaration in \
- ''\
- '#include <stdlib.h>' \
+ '' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
@@ -2229,14 +2343,13 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
'void exit (int);'
do
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <stdlib.h>
$ac_declaration
+#include <stdlib.h>
int
main ()
{
@@ -2247,11 +2360,21 @@ exit (42);
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2264,9 +2387,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
continue
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -2283,11 +2405,21 @@ exit (42);
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2299,7 +2431,7 @@ else
sed 's/^/| /' conftest.$ac_ext >&5
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
@@ -2313,13 +2445,15 @@ else
sed 's/^/| /' conftest.$ac_ext >&5
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
if test -f $ac_dir/install-sh; then
@@ -2356,6 +2490,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
@@ -2372,6 +2507,7 @@ do
case $as_dir/ in
./ | .// | /cC/* | \
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
/usr/ucb/* ) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
@@ -2379,20 +2515,20 @@ case $as_dir/ in
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
- if test $ac_prog = install &&
- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- elif test $ac_prog = install &&
- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # program-specific install script used by HP pwplus--don't use.
- :
- else
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
done
done
;;
@@ -2423,72 +2559,79 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
-case $enableval in
-yes) enable_shared=yes ;;
-no) enable_shared=no ;;
-*)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
else
enable_shared=yes
fi;
+
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
-case $enableval in
-yes) enable_static=yes ;;
-no) enable_static=no ;;
-*)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
else
enable_static=yes
fi;
+
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
enableval="$enable_fast_install"
p=${PACKAGE-default}
-case $enableval in
-yes) enable_fast_install=yes ;;
-no) enable_fast_install=no ;;
-*)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
else
enable_fast_install=yes
fi;
+
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
@@ -2543,6 +2686,78 @@ host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
+echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
+if test "${lt_cv_path_SED+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for lt_ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+ fi
+ done
+ done
+done
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+ test ! -f $lt_ac_sed && break
+ cat /dev/null > conftest.in
+ lt_ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+ # Check for GNU sed and select it if it is found.
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+ lt_cv_path_SED=$lt_ac_sed
+ break
+ fi
+ while true; do
+ cat conftest.in conftest.in >conftest.tmp
+ mv conftest.tmp conftest.in
+ cp conftest.in conftest.nl
+ echo >>conftest.nl
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+ cmp -s conftest.out conftest.nl || break
+ # 10000 chars as input seems more than enough
+ test $lt_ac_count -gt 10 && break
+ lt_ac_count=`expr $lt_ac_count + 1`
+ if test $lt_ac_count -gt $lt_ac_max; then
+ lt_ac_max=$lt_ac_count
+ lt_cv_path_SED=$lt_ac_sed
+ fi
+ done
+done
+
+fi
+
+SED=$lt_cv_path_SED
+echo "$as_me:$LINENO: result: $SED" >&5
+echo "${ECHO_T}$SED" >&6
+
+echo "$as_me:$LINENO: checking for egrep" >&5
+echo $ECHO_N "checking for egrep... $ECHO_C" >&6
+if test "${ac_cv_prog_egrep+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if echo a | (grep -E '(a|b)') >/dev/null 2>&1
+ then ac_cv_prog_egrep='grep -E'
+ else ac_cv_prog_egrep='egrep'
+ fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
+echo "${ECHO_T}$ac_cv_prog_egrep" >&6
+ EGREP=$ac_cv_prog_egrep
+
+
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
@@ -2554,8 +2769,8 @@ fi;
ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
- echo "$as_me:$LINENO: checking for ld used by GCC" >&5
-echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
+echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
case $host in
*-*-mingw*)
# gcc leaves a trailing carriage return which upsets mingw
@@ -2565,12 +2780,12 @@ echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
esac
case $ac_prog in
# Accept absolute paths.
- [\\/]* | [A-Za-z]:[\\/]*)
+ [\\/]* | ?:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the path of ld
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+ # Canonicalize the pathname of ld
+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
@@ -2594,22 +2809,26 @@ if test "${lt_cv_path_LD+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -z "$LD"; then
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
lt_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
- if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
test "$with_gnu_ld" != no && break
- else
+ ;;
+ *)
test "$with_gnu_ld" != yes && break
- fi
+ ;;
+ esac
fi
done
- IFS="$ac_save_ifs"
+ IFS="$lt_save_ifs"
else
lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
@@ -2632,11 +2851,14 @@ if test "${lt_cv_prog_gnu_ld+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
lt_cv_prog_gnu_ld=yes
-else
+ ;;
+*)
lt_cv_prog_gnu_ld=no
-fi
+ ;;
+esac
fi
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
@@ -2653,7 +2875,20 @@ fi
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
-test -n "$reload_flag" && reload_flag=" $reload_flag"
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
@@ -2664,35 +2899,42 @@ else
# Let the user override the test.
lt_cv_path_NM="$NM"
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
test -z "$ac_dir" && ac_dir=.
- tmp_nm=$ac_dir/${ac_tool_prefix}nm
- if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
+ tmp_nm="$ac_dir/${ac_tool_prefix}nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
# Tru64's nm complains that /dev/null is an invalid object file
- if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
lt_cv_path_NM="$tmp_nm -B"
break
- elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- lt_cv_path_NM="$tmp_nm -p"
- break
- else
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- fi
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ esac
fi
done
- IFS="$ac_save_ifs"
+ IFS="$lt_save_ifs"
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
fi
-
+echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
+echo "${ECHO_T}$lt_cv_path_NM" >&6
NM="$lt_cv_path_NM"
-echo "$as_me:$LINENO: result: $NM" >&5
-echo "${ECHO_T}$NM" >&6
echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
@@ -2705,8 +2947,8 @@ else
echo "${ECHO_T}no, using $LN_S" >&6
fi
-echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
-echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
+echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
@@ -2719,8 +2961,8 @@ lt_cv_deplibs_check_method='unknown'
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
-# ['file_magic [regex]'] -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given egrep regex.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
@@ -2733,31 +2975,30 @@ beos*)
lt_cv_deplibs_check_method=pass_all
;;
-bsdi4*)
+bsdi[45]*)
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
lt_cv_file_magic_cmd='/usr/bin/file -L'
lt_cv_file_magic_test_file=/shlib/libc.so
;;
-cygwin* | mingw* | pw32*)
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump'.
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
lt_cv_file_magic_cmd='$OBJDUMP -f'
;;
darwin* | rhapsody*)
- lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- case "$host_os" in
- rhapsody* | darwin1.012)
- lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
- ;;
- *) # Darwin 1.3 on
- lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
- ;;
- esac
+ lt_cv_deplibs_check_method=pass_all
;;
-freebsd*)
+freebsd* | kfreebsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
case $host_cpu in
i*86 )
@@ -2777,50 +3018,53 @@ gnu*)
lt_cv_deplibs_check_method=pass_all
;;
-hpux10.20*|hpux11*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+hpux10.20* | hpux11*)
lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
-
-irix5* | irix6*)
- case $host_os in
- irix5*)
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
+ case "$host_cpu" in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
;;
*)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
- esac
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
;;
esac
- lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
lt_cv_deplibs_check_method=pass_all
;;
# This must be Linux ELF.
-linux-gnu*)
+linux*)
case $host_cpu in
- alpha* | i*86 | powerpc* | sparc* | ia64* )
+ alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
+ # this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
esac
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
+ lt_cv_deplibs_check_method=pass_all
;;
netbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
else
- lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
fi
;;
@@ -2830,10 +3074,19 @@ newos6*)
lt_cv_file_magic_test_file=/usr/lib/libnls.so
;;
+nto-qnx*)
+ lt_cv_deplibs_check_method=unknown
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ fi
+ ;;
+
osf3* | osf4* | osf5*)
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
- lt_cv_file_magic_test_file=/shlib/libc.so
lt_cv_deplibs_check_method=pass_all
;;
@@ -2843,11 +3096,6 @@ sco3.2v5*)
solaris*)
lt_cv_deplibs_check_method=pass_all
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
-
-sysv5uw[78]* | sysv4*uw2*)
- lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
@@ -2868,8 +3116,15 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
lt_cv_file_magic_test_file=/lib/libc.so
;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
esac
;;
+
+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
esac
fi
@@ -2877,201 +3132,452 @@ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+# Allow CC to be a program name with arguments.
+compiler=$CC
+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then
+ enableval="$enable_libtool_lock"
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-echo "$as_me:$LINENO: checking command to parse $NM output" >&5
-echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
-if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[BCDEGRST]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
-
-# Transform the above into a raw symbol and a C symbol.
-symxfrm='\1 \2\3 \3'
-
-# Transform an extracted symbol line into a proper C declaration
-lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
+fi;
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-# Define system-specific variables.
-case $host_os in
-aix*)
- symcode='[BCDT]'
- ;;
-cygwin* | mingw* | pw32*)
- symcode='[ABCDGISTW]'
- ;;
-hpux*) # Its linker distinguishes data from code symbols
- lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- ;;
-irix*)
- symcode='[BCDEGRST]'
- ;;
-solaris* | sysv5*)
- symcode='[BDT]'
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
;;
-sysv4)
- symcode='[DFNSTU]'
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '#line 3173 "configure"' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
;;
-esac
-# Handle CRLF in mingw tool chain
-opt_cr=
-case $host_os in
-mingw*)
- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case "`/usr/bin/file conftest.o`" in
+ *32-bit*)
+ case $host in
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
;;
-esac
-# If we're using GNU nm, then use its standard symbol codes.
-if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
- symcode='[ABCDGISTW]'
-fi
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
+echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
+if test "${lt_cv_cc_needs_belf+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
-# Try without a prefix undercore, then with it.
-for ac_symprfx in "" "_"; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
- # Write the raw and C identifiers.
-lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
+int
+main ()
+{
- # Check to see that the pipe works correctly.
- pipe_works=no
- rm -f conftest*
- cat > conftest.$ac_ext <<EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(){}
-#ifdef __cplusplus
+ ;
+ return 0;
}
-#endif
-int main(){nm_test_var='a';nm_test_func();return(0);}
-EOF
-
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- # Now try to grab the symbols.
- nlist=conftest.nm
- if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
- (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && test -s "$nlist"; then
- # Try sorting and uniquifying the output.
- if sort "$nlist" | uniq > "$nlist"T; then
- mv -f "$nlist"T "$nlist"
- else
- rm -f "$nlist"T
- fi
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ lt_cv_cc_needs_belf=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
- # Make sure that we snagged all the symbols we need.
- if egrep ' nm_test_var$' "$nlist" >/dev/null; then
- if egrep ' nm_test_func$' "$nlist" >/dev/null; then
- cat <<EOF > conftest.$ac_ext
-#ifdef __cplusplus
-extern "C" {
-#endif
+lt_cv_cc_needs_belf=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
-EOF
- # Now generate the symbol file.
- eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
+fi
+echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
+echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+*-*-cygwin* | *-*-mingw* | *-*-pw32*)
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_DLLTOOL+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$DLLTOOL"; then
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
- cat <<EOF >> conftest.$ac_ext
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
+fi
+fi
+DLLTOOL=$ac_cv_prog_DLLTOOL
+if test -n "$DLLTOOL"; then
+ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
+echo "${ECHO_T}$DLLTOOL" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
-/* The mapping between symbol names and symbols. */
-const struct {
- const char *name;
- lt_ptr_t address;
-}
-lt_preloaded_symbols[] =
-{
-EOF
- sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
- cat <<\EOF >> conftest.$ac_ext
- {0, (lt_ptr_t) 0}
-};
+fi
+if test -z "$ac_cv_prog_DLLTOOL"; then
+ ac_ct_DLLTOOL=$DLLTOOL
+ # Extract the first word of "dlltool", so it can be a program name with args.
+set dummy dlltool; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_DLLTOOL"; then
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
-#ifdef __cplusplus
-}
-#endif
-EOF
- # Now try linking the two files.
- mv conftest.$ac_objext conftstm.$ac_objext
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- LIBS="conftstm.$ac_objext"
- CFLAGS="$CFLAGS$no_builtin_flag"
- if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest; then
- pipe_works=yes
- fi
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
- else
- echo "cannot find nm_test_func in $nlist" >&5
- fi
- else
- echo "cannot find nm_test_var in $nlist" >&5
- fi
- else
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
- fi
- else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
+ test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
+fi
+fi
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
+if test -n "$ac_ct_DLLTOOL"; then
+ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
+echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ DLLTOOL=$ac_ct_DLLTOOL
+else
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
+set dummy ${ac_tool_prefix}as; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_AS+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$AS"; then
+ ac_cv_prog_AS="$AS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AS="${ac_tool_prefix}as"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
- rm -f conftest* conftst*
+done
+done
- # Do not use the global_symbol_pipe unless it works.
- if test "$pipe_works" = yes; then
- break
- else
- lt_cv_sys_global_symbol_pipe=
+fi
+fi
+AS=$ac_cv_prog_AS
+if test -n "$AS"; then
+ echo "$as_me:$LINENO: result: $AS" >&5
+echo "${ECHO_T}$AS" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_AS"; then
+ ac_ct_AS=$AS
+ # Extract the first word of "as", so it can be a program name with args.
+set dummy as; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_AS"; then
+ ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AS="as"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
done
+done
+ test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
+fi
+fi
+ac_ct_AS=$ac_cv_prog_ac_ct_AS
+if test -n "$ac_ct_AS"; then
+ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
+echo "${ECHO_T}$ac_ct_AS" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
-global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
- global_symbol_to_cdecl=
+ AS=$ac_ct_AS
else
- global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
+ AS="$ac_cv_prog_AS"
fi
-if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
- echo "$as_me:$LINENO: result: failed" >&5
-echo "${ECHO_T}failed" >&6
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}objdump; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_OBJDUMP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$as_me:$LINENO: result: ok" >&5
-echo "${ECHO_T}ok" >&6
+ if test -n "$OBJDUMP"; then
+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
+echo "${ECHO_T}$OBJDUMP" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_OBJDUMP"; then
+ ac_ct_OBJDUMP=$OBJDUMP
+ # Extract the first word of "objdump", so it can be a program name with args.
+set dummy objdump; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_OBJDUMP"; then
+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
+echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ OBJDUMP=$ac_ct_OBJDUMP
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+ ;;
+
+esac
+
+need_locks="$enable_libtool_lock"
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@@ -3101,7 +3607,6 @@ do
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3112,7 +3617,7 @@ cat >>conftest.$ac_ext <<_ACEOF
#else
# include <assert.h>
#endif
- Syntax error
+ Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -3124,6 +3629,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
@@ -3144,7 +3650,6 @@ rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3162,6 +3667,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
@@ -3208,7 +3714,6 @@ do
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3219,7 +3724,7 @@ cat >>conftest.$ac_ext <<_ACEOF
#else
# include <assert.h>
#endif
- Syntax error
+ Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -3231,6 +3736,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
@@ -3251,7 +3757,6 @@ rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3269,6 +3774,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
@@ -3308,28 +3814,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:$LINENO: checking for egrep" >&5
-echo $ECHO_N "checking for egrep... $ECHO_C" >&6
-if test "${ac_cv_prog_egrep+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if echo a | (grep -E '(a|b)') >/dev/null 2>&1
- then ac_cv_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
- fi
-fi
-echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
-echo "${ECHO_T}$ac_cv_prog_egrep" >&6
- EGREP=$ac_cv_prog_egrep
-
-
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3350,11 +3840,21 @@ main ()
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3367,12 +3867,11 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3394,7 +3893,6 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3419,7 +3917,6 @@ if test $ac_cv_header_stdc = yes; then
:
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3431,9 +3928,9 @@ cat >>conftest.$ac_ext <<_ACEOF
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
@@ -3444,7 +3941,7 @@ main ()
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
+ || toupper (i) != TOUPPER (i))
exit(2);
exit (0);
}
@@ -3469,7 +3966,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_header_stdc=no
fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
@@ -3494,7 +3991,7 @@ fi
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
- inttypes.h stdint.h unistd.h
+ inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
@@ -3503,7 +4000,6 @@ if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3515,11 +4011,21 @@ $ac_includes_default
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3532,7 +4038,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -3563,7 +4069,6 @@ else
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3574,11 +4079,21 @@ $ac_includes_default
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3591,7 +4106,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
@@ -3599,7 +4114,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3617,6 +4131,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
@@ -3636,33 +4151,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc in
- yes:no )
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
;;
- no:yes )
+ no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
@@ -3673,7 +4187,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- eval "$as_ac_Header=$ac_header_preproc"
+ eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -3688,148 +4202,1262 @@ fi
done
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CXX+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CXX"; then
+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n "$CXX"; then
+ echo "$as_me:$LINENO: result: $CXX" >&5
+echo "${ECHO_T}$CXX" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$CXX" && break
+ done
+fi
+if test -z "$CXX"; then
+ ac_ct_CXX=$CXX
+ for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CXX"; then
+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CXX="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n "$ac_ct_CXX"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
+echo "${ECHO_T}$ac_ct_CXX" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+ test -n "$ac_ct_CXX" && break
+done
+test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
+ CXX=$ac_ct_CXX
+fi
-# Only perform the check for file, if the check method requires it
-case $deplibs_check_method in
-file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
-echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
-if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+ "checking for C++ compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
+if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- case $MAGIC_CMD in
- /*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
- ?:/*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
- ;;
- *)
- ac_save_MAGIC_CMD="$MAGIC_CMD"
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="/usr/bin:$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/${ac_tool_prefix}file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- egrep "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
-EOF
- fi ;;
- esac
- fi
- break
- fi
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
+GXX=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CXXFLAGS=${CXXFLAGS+set}
+ac_save_CXXFLAGS=$CXXFLAGS
+CXXFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
+echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cxx_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cxx_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cxx_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
+if test "$ac_test_CXXFLAGS" = set; then
+ CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+ if test "$GXX" = yes; then
+ CXXFLAGS="-g -O2"
+ else
+ CXXFLAGS="-g"
+ fi
+else
+ if test "$GXX" = yes; then
+ CXXFLAGS="-O2"
+ else
+ CXXFLAGS=
+ fi
+fi
+for ac_declaration in \
+ '' \
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
+ 'extern "C" void std::exit (int); using std::exit;' \
+ 'extern "C" void exit (int) throw ();' \
+ 'extern "C" void exit (int);' \
+ 'void exit (int);'
+do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+#include <stdlib.h>
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
+echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
+if test -z "$CXXCPP"; then
+ if test "${ac_cv_prog_CXXCPP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # Double quotes because CXXCPP needs to be expanded
+ for CXXCPP in "$CXX -E" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_cxx_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ break
+fi
+
+ done
+ ac_cv_prog_CXXCPP=$CXXCPP
+
+fi
+ CXXCPP=$ac_cv_prog_CXXCPP
+else
+ ac_cv_prog_CXXCPP=$CXXCPP
+fi
+echo "$as_me:$LINENO: result: $CXXCPP" >&5
+echo "${ECHO_T}$CXXCPP" >&6
+ac_preproc_ok=false
+for ac_cxx_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ :
+else
+ { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
+See \`config.log' for more details." >&5
+echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+ac_ext=f
+ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
+ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_f77_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_F77+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$F77"; then
+ ac_cv_prog_F77="$F77" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+F77=$ac_cv_prog_F77
+if test -n "$F77"; then
+ echo "$as_me:$LINENO: result: $F77" >&5
+echo "${ECHO_T}$F77" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$F77" && break
done
- IFS="$ac_save_ifs"
- MAGIC_CMD="$ac_save_MAGIC_CMD"
- ;;
-esac
fi
+if test -z "$F77"; then
+ ac_ct_F77=$F77
+ for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_F77"; then
+ ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_F77="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
-echo "${ECHO_T}$MAGIC_CMD" >&6
+fi
+fi
+ac_ct_F77=$ac_cv_prog_ac_ct_F77
+if test -n "$ac_ct_F77"; then
+ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
+echo "${ECHO_T}$ac_ct_F77" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
-if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- echo "$as_me:$LINENO: checking for file" >&5
-echo $ECHO_N "checking for file... $ECHO_C" >&6
-if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+ test -n "$ac_ct_F77" && break
+done
+
+ F77=$ac_ct_F77
+fi
+
+
+# Provide some information about the compiler.
+echo "$as_me:4878:" \
+ "checking for Fortran 77 compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+rm -f a.out
+
+# If we don't use `.F' as extension, the preprocessor is not run on the
+# input file. (Note that this only needs to work for GNU compilers.)
+ac_save_ext=$ac_ext
+ac_ext=F
+echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
+if test "${ac_cv_f77_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- case $MAGIC_CMD in
- /*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ cat >conftest.$ac_ext <<_ACEOF
+ program main
+#ifndef __GNUC__
+ choke me
+#endif
+
+ end
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_f77_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_f77_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
+ac_ext=$ac_save_ext
+ac_test_FFLAGS=${FFLAGS+set}
+ac_save_FFLAGS=$FFLAGS
+FFLAGS=
+echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
+echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_f77_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ FFLAGS=-g
+cat >conftest.$ac_ext <<_ACEOF
+ program main
+
+ end
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_f77_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_f77_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_f77_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
+echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
+if test "$ac_test_FFLAGS" = set; then
+ FFLAGS=$ac_save_FFLAGS
+elif test $ac_cv_prog_f77_g = yes; then
+ if test "x$ac_cv_f77_compiler_gnu" = xyes; then
+ FFLAGS="-g -O2"
+ else
+ FFLAGS="-g"
+ fi
+else
+ if test "x$ac_cv_f77_compiler_gnu" = xyes; then
+ FFLAGS="-O2"
+ else
+ FFLAGS=
+ fi
+fi
+
+G77=`test $ac_compiler_gnu = yes && echo yes`
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+
+# find the maximum length of command line arguments
+echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
+echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
+if test "${lt_cv_sys_max_cmd_len+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* )
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ ;;
+
+ *)
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
+ = "XX$teststring") >/dev/null 2>&1 &&
+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
+ lt_cv_sys_max_cmd_len=$new_result &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on massive
+ # amounts of additional arguments before passing them to the linker.
+ # It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ ;;
+ esac
+
+fi
+
+if test -n $lt_cv_sys_max_cmd_len ; then
+ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
+echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
+else
+ echo "$as_me:$LINENO: result: none" >&5
+echo "${ECHO_T}none" >&6
+fi
+
+
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
+echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
+if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Transform the above into a raw symbol and a C symbol.
+symxfrm='\1 \2\3 \3'
+
+# Transform an extracted symbol line into a proper C declaration
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[BCDT]'
;;
- ?:/*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
+cygwin* | mingw* | pw32*)
+ symcode='[ABCDGISTW]'
;;
- *)
- ac_save_MAGIC_CMD="$MAGIC_CMD"
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="/usr/bin:$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- egrep "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
+hpux*) # Its linker distinguishes data from code symbols
+ if test "$host_cpu" = ia64; then
+ symcode='[ABCDEGRST]'
+ fi
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+ ;;
+irix* | nonstopux*)
+ symcode='[BCDEGRST]'
+ ;;
+osf*)
+ symcode='[BCDEGQRST]'
+ ;;
+solaris* | sysv5*)
+ symcode='[BDRT]'
+ ;;
+sysv4)
+ symcode='[DFNSTU]'
+ ;;
+esac
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[ABCDGIRSTW]' ;;
+esac
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Write the raw and C identifiers.
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
EOF
- fi ;;
- esac
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
+ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
fi
- break
+
+ # Make sure that we snagged all the symbols we need.
+ if grep ' nm_test_var$' "$nlist" >/dev/null; then
+ if grep ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
+
+ cat <<EOF >> conftest.$ac_ext
+#if defined (__STDC__) && __STDC__
+# define lt_ptr_t void *
+#else
+# define lt_ptr_t char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ lt_ptr_t address;
+}
+lt_preloaded_symbols[] =
+{
+EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
+ cat <<\EOF >> conftest.$ac_ext
+ {0, (lt_ptr_t) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&5
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&5
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
fi
- done
- IFS="$ac_save_ifs"
- MAGIC_CMD="$ac_save_MAGIC_CMD"
+ else
+ echo "$progname: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ fi
+ rm -f conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+
+fi
+
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ echo "$as_me:$LINENO: result: failed" >&5
+echo "${ECHO_T}failed" >&6
+else
+ echo "$as_me:$LINENO: result: ok" >&5
+echo "${ECHO_T}ok" >&6
+fi
+
+echo "$as_me:$LINENO: checking for objdir" >&5
+echo $ECHO_N "checking for objdir... $ECHO_C" >&6
+if test "${lt_cv_objdir+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+fi
+echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
+echo "${ECHO_T}$lt_cv_objdir" >&6
+objdir=$lt_cv_objdir
+
+
+
+
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
;;
esac
-fi
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
-echo "${ECHO_T}$MAGIC_CMD" >&6
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e s/^X//'
+sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Constants:
+rm="rm -f"
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except M$VC,
+# which needs '.lib').
+libext=a
+ltmain="$ac_aux_dir/ltmain.sh"
+ofile="$default_ofile"
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_AR+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ echo "$as_me:$LINENO: result: $AR" >&5
+echo "${ECHO_T}$AR" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
- else
- MAGIC_CMD=:
+fi
+if test -z "$ac_cv_prog_AR"; then
+ ac_ct_AR=$AR
+ # Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AR="ar"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
+done
+done
+
+ test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
+echo "${ECHO_T}$ac_ct_AR" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
- fi
- ;;
-esac
+ AR=$ac_ct_AR
+else
+ AR="$ac_cv_prog_AR"
+fi
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
@@ -3992,393 +5620,991 @@ else
fi
-enable_dlopen=no
-enable_win32_dll=no
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
-# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
-if test "${enable_libtool_lock+set}" = set; then
- enableval="$enable_libtool_lock"
+# Set sane defaults for various variables
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+test -z "$AS" && AS=as
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+test -z "$LD" && LD=ld
+test -z "$LN_S" && LN_S="ln -s"
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+test -z "$NM" && NM=nm
+test -z "$SED" && SED=sed
+test -z "$OBJDUMP" && OBJDUMP=objdump
+test -z "$RANLIB" && RANLIB=:
+test -z "$STRIP" && STRIP=:
+test -z "$ac_objext" && ac_objext=o
-fi;
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-*-*-irix6*)
- # Find out which ABI we are using.
- echo '#line 4014 "configure"' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+ ;;
+ *)
+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
-*-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
-echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
-if test "${lt_cv_cc_needs_belf+set}" = set; then
+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
+echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/${ac_tool_prefix}file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<EOF 1>&2
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+echo "${ECHO_T}$MAGIC_CMD" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
-int
-main ()
-{
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ echo "$as_me:$LINENO: checking for file" >&5
+echo $ECHO_N "checking for file... $ECHO_C" >&6
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<EOF 1>&2
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- lt_cv_cc_needs_belf=yes
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+echo "${ECHO_T}$MAGIC_CMD" >&6
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
-lt_cv_cc_needs_belf=no
+ else
+ MAGIC_CMD=:
+ fi
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- ac_ext=c
+
+ fi
+ ;;
+esac
+
+enable_dlopen=no
+enable_win32_dll=yes
+
+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then
+ enableval="$enable_libtool_lock"
+
+fi;
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+
+# Check whether --with-pic or --without-pic was given.
+if test "${with_pic+set}" = set; then
+ withval="$with_pic"
+ pic_mode="$withval"
+else
+ pic_mode=default
+fi;
+test -z "$pic_mode" && pic_mode=default
+
+# Use C for the default configuration in the libtool script
+tagname=
+lt_save_CC="$CC"
+ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-fi
-echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
-echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
- ;;
+# Source file extension for C test sources.
+ac_ext=c
-esac
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e s/^X//'
-sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;\n"
-# Same as above, but do not quote variable references.
-double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}\n'
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-# Constants:
-rm="rm -f"
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
-# Global variables:
-default_ofile=libtool
-can_build_shared=yes
+# Allow CC to be a program name with arguments.
+compiler=$CC
-# All known linkers require a `.a' archive for static linking (except M$VC,
-# which needs '.lib').
-libext=a
-ltmain="$ac_aux_dir/ltmain.sh"
-ofile="$default_ofile"
-with_gnu_ld="$lt_cv_prog_gnu_ld"
-need_locks="$enable_libtool_lock"
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
+#
+# Check for any special shared library compilation flags.
+#
+lt_prog_cc_shlib=
+if test "$GCC" = no; then
+ case $host_os in
+ sco3.2v5*)
+ lt_prog_cc_shlib='-belf'
+ ;;
+ esac
+fi
+if test -n "$lt_prog_cc_shlib"; then
+ { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
+echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
+ if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
+ else
+ { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
+echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
+ lt_cv_prog_cc_can_build_shared=no
+ fi
+fi
-# Set sane defaults for various variables
-test -z "$AR" && AR=ar
-test -z "$AR_FLAGS" && AR_FLAGS=cru
-test -z "$AS" && AS=as
-test -z "$CC" && CC=cc
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-test -z "$LD" && LD=ld
-test -z "$LN_S" && LN_S="ln -s"
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
-test -z "$NM" && NM=nm
-test -z "$OBJDUMP" && OBJDUMP=objdump
-test -z "$RANLIB" && RANLIB=:
-test -z "$STRIP" && STRIP=:
-test -z "$ac_objext" && ac_objext=o
-if test x"$host" != x"$build"; then
- ac_tool_prefix=${host_alias}-
+#
+# Check to make sure the static flag actually works.
+#
+echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
+echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
+if test "${lt_prog_compiler_static_works+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_tool_prefix=
+ lt_prog_compiler_static_works=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
+ printf "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&5
+ else
+ lt_prog_compiler_static_works=yes
+ fi
+ fi
+ $rm conftest*
+ LDFLAGS="$save_LDFLAGS"
+
fi
+echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
+echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
-# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
-case $host_os in
-linux-gnu*) ;;
-linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
-esac
+if test x"$lt_prog_compiler_static_works" = xyes; then
+ :
+else
+ lt_prog_compiler_static=
+fi
-case $host_os in
-aix3*)
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- ;;
-esac
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-if test -n "$RANLIB"; then
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
-fi
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
-# Allow CC to be a program name with arguments.
-set dummy $CC
-compiler="$2"
+lt_prog_compiler_no_builtin_flag=
-## FIXME: this should be a separate macro
-##
-echo "$as_me:$LINENO: checking for objdir" >&5
-echo $ECHO_N "checking for objdir... $ECHO_C" >&6
-rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
- objdir=.libs
+if test "$GCC" = yes; then
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin'
+
+
+echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- # MS-DOS does not allow filenames that begin with a dot.
- objdir=_libs
+ lt_cv_prog_compiler_rtti_exceptions=no
+ ac_outfile=conftest.$ac_objext
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="-fno-rtti -fno-exceptions"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:5932: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:5936: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s conftest.err; then
+ lt_cv_prog_compiler_rtti_exceptions=yes
+ fi
+ fi
+ $rm conftest*
+
fi
-rmdir .libs 2>/dev/null
-echo "$as_me:$LINENO: result: $objdir" >&5
-echo "${ECHO_T}$objdir" >&6
-##
-## END FIXME
+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
+else
+ :
+fi
-## FIXME: this should be a separate macro
-##
+fi
-# Check whether --with-pic or --without-pic was given.
-if test "${with_pic+set}" = set; then
- withval="$with_pic"
- pic_mode="$withval"
-else
- pic_mode=default
-fi;
-test -z "$pic_mode" && pic_mode=default
+lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
-# We assume here that the value for lt_cv_prog_cc_pic will not be cached
-# in isolation, and that seeing it set (from the cache) indicates that
-# the associated values are set (in the cache) correctly too.
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
-if test "${lt_cv_prog_cc_pic+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_prog_cc_pic=
- lt_cv_prog_cc_shlib=
- lt_cv_prog_cc_wl=
- lt_cv_prog_cc_static=
- lt_cv_prog_cc_no_builtin=
- lt_cv_prog_cc_can_build_shared=$can_build_shared
if test "$GCC" = yes; then
- lt_cv_prog_cc_wl='-Wl,'
- lt_cv_prog_cc_static='-static'
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_static='-static'
case $host_os in
- aix*)
- # Below there is a dirty hack to force normal static linking with -ldl
- # The problem is because libdl dynamically linked with both libc and
- # libC (AIX C++ library), which obviously doesn't included in libraries
- # list by gcc. This cause undefined symbols with -static flags.
- # This hack allows C programs to be linked with "-static -ldl", but
- # we not sure about C++ programs.
- lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ fi
;;
+
amigaos*)
# FIXME: we need at least 68020 code to build shared libraries, but
# adding the `-m68020' flag to GCC prevents building anything better,
# like `-m68040'.
- lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
;;
- beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
+
+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
# PIC is the default for these OSes.
;;
+
+ mingw* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
darwin* | rhapsody*)
# PIC is the default on this platform
# Common symbols not allowed in MH_DYLIB files
- lt_cv_prog_cc_pic='-fno-common'
+ lt_prog_compiler_pic='-fno-common'
;;
- cygwin* | mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_cv_prog_cc_pic='-DDLL_EXPORT'
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ lt_prog_compiler_can_build_shared=no
+ enable_shared=no
;;
+
sysv4*MP*)
if test -d /usr/nec; then
- lt_cv_prog_cc_pic=-Kconform_pic
+ lt_prog_compiler_pic=-Kconform_pic
fi
;;
+
+ hpux*)
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ ;;
+
*)
- lt_cv_prog_cc_pic='-fPIC'
+ lt_prog_compiler_pic='-fPIC'
;;
esac
else
- # PORTME Check for PIC flags for the system compiler.
+ # PORTME Check for flag to pass linker flags through the system compiler.
case $host_os in
- aix3* | aix4* | aix5*)
- # All AIX code is PIC.
+ aix*)
+ lt_prog_compiler_wl='-Wl,'
if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_cv_prog_cc_static='-Bstatic'
- lt_cv_prog_cc_wl='-Wl,'
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
else
- lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
fi
;;
+ darwin*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ case "$cc_basename" in
+ xlc*)
+ lt_prog_compiler_pic='-qnocommon'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ esac
+ ;;
+
+ mingw* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
hpux9* | hpux10* | hpux11*)
- # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
- lt_cv_prog_cc_wl='-Wl,'
- lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
- lt_cv_prog_cc_pic='+Z'
+ lt_prog_compiler_wl='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ lt_prog_compiler_static='${wl}-a ${wl}archive'
;;
- irix5* | irix6*)
- lt_cv_prog_cc_wl='-Wl,'
- lt_cv_prog_cc_static='-non_shared'
+ irix5* | irix6* | nonstopux*)
+ lt_prog_compiler_wl='-Wl,'
# PIC (with -KPIC) is the default.
+ lt_prog_compiler_static='-non_shared'
;;
- cygwin* | mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_cv_prog_cc_pic='-DDLL_EXPORT'
+ newsos6)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
;;
- newsos6)
- lt_cv_prog_cc_pic='-KPIC'
- lt_cv_prog_cc_static='-Bstatic'
+ linux*)
+ case $CC in
+ icc* | ecc*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+ esac
;;
osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl='-Wl,'
# All OSF/1 code is PIC.
- lt_cv_prog_cc_wl='-Wl,'
- lt_cv_prog_cc_static='-non_shared'
+ lt_prog_compiler_static='-non_shared'
;;
sco3.2v5*)
- lt_cv_prog_cc_pic='-Kpic'
- lt_cv_prog_cc_static='-dn'
- lt_cv_prog_cc_shlib='-belf'
+ lt_prog_compiler_pic='-Kpic'
+ lt_prog_compiler_static='-dn'
;;
solaris*)
- lt_cv_prog_cc_pic='-KPIC'
- lt_cv_prog_cc_static='-Bstatic'
- lt_cv_prog_cc_wl='-Wl,'
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
;;
sunos4*)
- lt_cv_prog_cc_pic='-PIC'
- lt_cv_prog_cc_static='-Bstatic'
- lt_cv_prog_cc_wl='-Qoption ld '
+ lt_prog_compiler_wl='-Qoption ld '
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- lt_cv_prog_cc_pic='-KPIC'
- lt_cv_prog_cc_static='-Bstatic'
- if test "x$host_vendor" = xsni; then
- lt_cv_prog_cc_wl='-LD'
- else
- lt_cv_prog_cc_wl='-Wl,'
- fi
- ;;
-
- uts4*)
- lt_cv_prog_cc_pic='-pic'
- lt_cv_prog_cc_static='-Bstatic'
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
;;
sysv4*MP*)
if test -d /usr/nec ;then
- lt_cv_prog_cc_pic='-Kconform_pic'
- lt_cv_prog_cc_static='-Bstatic'
+ lt_prog_compiler_pic='-Kconform_pic'
+ lt_prog_compiler_static='-Bstatic'
fi
;;
+ uts4*)
+ lt_prog_compiler_pic='-pic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
*)
- lt_cv_prog_cc_can_build_shared=no
+ lt_prog_compiler_can_build_shared=no
;;
esac
fi
-fi
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic" >&6
-if test -z "$lt_cv_prog_cc_pic"; then
- echo "$as_me:$LINENO: result: none" >&5
-echo "${ECHO_T}none" >&6
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic"; then
+
+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
+if test "${lt_prog_compiler_pic_works+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
-echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
+ lt_prog_compiler_pic_works=no
+ ac_outfile=conftest.$ac_objext
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:6175: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:6179: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s conftest.err; then
+ lt_prog_compiler_pic_works=yes
+ fi
+ fi
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
+
+if test x"$lt_prog_compiler_pic_works" = xyes; then
+ case $lt_prog_compiler_pic in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
+ esac
+else
+ lt_prog_compiler_pic=
+ lt_prog_compiler_can_build_shared=no
+fi
+
+fi
+case "$host_os" in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic=
+ ;;
+ *)
+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
+ ;;
+esac
- # Check to make sure the pic_flag actually works.
- echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
-echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
- if test "${lt_cv_prog_cc_pic_works+set}" = set; then
+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
+if test "${lt_cv_prog_compiler_c_o+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
+ lt_cv_prog_compiler_c_o=no
+ $rm -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:6235: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:6239: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s out/conftest.err; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w .
+ $rm conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
+ $rm out/* && rmdir out
+ cd ..
+ rmdir conftest
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
+echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
+
+
+hard_links="nottested"
+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
+ hard_links=yes
+ $rm conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ echo "$as_me:$LINENO: result: $hard_links" >&5
+echo "${ECHO_T}$hard_links" >&6
+ if test "$hard_links" = no; then
+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+
+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
+
+ runpath_var=
+ allow_undefined_flag=
+ enable_shared_with_static_runtimes=no
+ archive_cmds=
+ archive_expsym_cmds=
+ old_archive_From_new_cmds=
+ old_archive_from_expsyms_cmds=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
+ thread_safe_flag_spec=
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_flag_spec_ld=
+ hardcode_libdir_separator=
+ hardcode_direct=no
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=unsupported
+ link_all_deplibs=unknown
+ hardcode_automatic=no
+ module_cmds=
+ module_expsym_cmds=
+ always_export_symbols=no
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ include_expsyms=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ ld_shlibs=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix3* | aix4* | aix5*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs=no
+ cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
+ # that the semantics of dynamic libraries on AmigaOS, at least up
+ # to version 4, is to share data among multiple programs linked
+ # with the same dynamic library. Since this doesn't match the
+ # behavior of shared libraries on other platforms, we can't use
+ # them.
+ ld_shlibs=no
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec='-L$libdir'
+ allow_undefined_flag=unsupported
+ always_export_symbols=no
+ enable_shared_with_static_runtimes=yes
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris* | sysv5*)
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+ ld_shlibs=no
+ cat <<EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ sunos4*)
+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ linux*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_cmds="$tmp_archive_cmds"
+ supports_anon_versioning=no
+ case `$LD -v 2>/dev/null` in
+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+ if test $supports_anon_versioning = yes; then
+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+$echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ else
+ archive_expsym_cmds="$tmp_archive_cmds"
+ fi
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ *)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+
+ if test "$ld_shlibs" = yes; then
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+ export_dynamic_flag_spec='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ whole_archive_flag_spec=
+ fi
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ allow_undefined_flag=unsupported
+ always_export_symbols=yes
+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L=yes
+ if test "$GCC" = yes && test -z "$link_static_flag"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct=unsupported
+ fi
+ ;;
+
+ aix4* | aix5*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds=''
+ hardcode_direct=yes
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.012|aix4.012.*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ hardcode_direct=yes
+ else
+ # We have old collect2
+ hardcode_direct=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L=yes
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_libdir_separator=
+ fi
+ esac
+ shared_flag='-shared'
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag='-berok'
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -4393,200 +6619,2919 @@ main ()
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- case $host_os in
- hpux9* | hpux10* | hpux11*)
- # On HP-UX, both CC and GCC only warn that PIC is supported... then
- # they create non-PIC objects. So, if there were any warnings, we
- # assume that PIC is not supported.
- if test -s conftest.err; then
- lt_cv_prog_cc_pic_works=no
+
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag="-z nodefs"
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
else
- lt_cv_prog_cc_pic_works=yes
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag=' ${wl}-bernotok'
+ allow_undefined_flag=' ${wl}-berok'
+ # -bexpall does not export symbols beginning with underscore (_)
+ always_export_symbols=yes
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec=' '
+ archive_cmds_need_lc=yes
+ # This is similar to how AIX traditionally builds it's shared libraries.
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
fi
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ # see comment about different semantics on the GNU ld section
+ ld_shlibs=no
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec=' '
+ allow_undefined_flag=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ old_archive_From_new_cmds='true'
+ # FIXME: Should let the user specify the lib program.
+ old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
+ fix_srcfile_path='`cygpath -w "$srcfile"`'
+ enable_shared_with_static_runtimes=yes
+ ;;
+
+ darwin* | rhapsody*)
+ case "$host_os" in
+ rhapsody* | darwin1.[012])
+ allow_undefined_flag='${wl}-undefined ${wl}suppress'
+ ;;
+ *) # Darwin 1.3 on
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+ allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ else
+ case ${MACOSX_DEPLOYMENT_TARGET} in
+ 10.[012])
+ allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ ;;
+ 10.*)
+ allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ archive_cmds_need_lc=no
+ hardcode_direct=no
+ hardcode_automatic=yes
+ hardcode_shlibpath_var=unsupported
+ whole_archive_flag_spec=''
+ link_all_deplibs=yes
+ if test "$GCC" = yes ; then
+ output_verbose_link_cmd='echo'
+ archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+ module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ else
+ case "$cc_basename" in
+ xlc*)
+ output_verbose_link_cmd='echo'
+ archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+ module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+ fi
+ ;;
+
+ dgux*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ freebsd1*)
+ ld_shlibs=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | kfreebsd*-gnu)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ export_dynamic_flag_spec='${wl}-E'
+ ;;
+
+ hpux10* | hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+ ;;
+ *)
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ case "$host_cpu" in
+ hppa*64*)
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_flag_spec_ld='+b $libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ ;;
+ ia64*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ *)
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+ export_dynamic_flag_spec='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec_ld='-rpath $libdir'
+ fi
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ link_all_deplibs=yes
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ newsos6)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_shlibpath_var=no
+ ;;
+
+ openbsd*)
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ else
+ case $host_os in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ allow_undefined_flag=unsupported
+ archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec='-rpath $libdir'
+ fi
+ hardcode_libdir_separator=:
+ ;;
+
+ sco3.2v5*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ export_dynamic_flag_spec='${wl}-Bexport'
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ;;
+
+ solaris*)
+ no_undefined_flag=' -z text'
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+ else
+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_shlibpath_var=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+ esac
+ link_all_deplibs=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes # is this really true???
;;
- *)
- lt_cv_prog_cc_pic_works=yes
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ reload_cmds='$CC -r -o $output$reload_objs'
+ hardcode_direct=no
+ ;;
+ motorola)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ sysv4.3*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ export_dynamic_flag_spec='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ld_shlibs=yes
+ fi
+ ;;
+
+ sysv4.2uw2*)
+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=no
+ hardcode_runpath_var=yes
+ runpath_var=LD_RUN_PATH
+ ;;
+
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
+ no_undefined_flag='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv5*)
+ no_undefined_flag=' -z text'
+ # $CC -shared without GNU ld will not create a library from C++
+ # object files and a static libstdc++, better avoid it by now
+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ hardcode_libdir_flag_spec=
+ hardcode_shlibpath_var=no
+ runpath_var='LD_RUN_PATH'
+ ;;
- lt_cv_prog_cc_pic_works=no
+ uts4*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+ fi
+
+echo "$as_me:$LINENO: result: $ld_shlibs" >&5
+echo "${ECHO_T}$ld_shlibs" >&6
+test "$ld_shlibs" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$save_CFLAGS"
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
+ $rm conftest*
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag
+ allow_undefined_flag=
+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
+ (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ then
+ archive_cmds_need_lc=no
+ else
+ archive_cmds_need_lc=yes
+ fi
+ allow_undefined_flag=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $rm conftest*
+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
+echo "${ECHO_T}$archive_cmds_need_lc" >&6
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
- if test "X$lt_cv_prog_cc_pic_works" = Xno; then
- lt_cv_prog_cc_pic=
- lt_cv_prog_cc_can_build_shared=no
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix4* | aix5*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
else
- lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[01] | aix4.[01].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
fi
+ ;;
- echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
-echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
-fi
-##
-## END FIXME
+amigaos*)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
-# Check for any special shared library compilation flags.
-if test -n "$lt_cv_prog_cc_shlib"; then
- { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
-echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
- if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $rm \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+ if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
else
- { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
-echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
- lt_cv_prog_cc_can_build_shared=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
fi
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+kfreebsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
+
+freebsd*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.01* | freebsdelf3.01*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ *) # from 3.2 on
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case "$host_cpu" in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+knetbsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+nto-qnx*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+openbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+sco3.2v5*)
+ version_type=osf
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
+echo "${ECHO_T}$dynamic_linker" >&6
+test "$dynamic_linker" = no && can_build_shared=no
+
+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" || \
+ test -n "$runpath_var" || \
+ test "X$hardcode_automatic" = "Xyes" ; then
+
+ # We can hardcode non-existant directories.
+ if test "$hardcode_direct" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
+ test "$hardcode_minus_L" != no; then
+ # Linking always hardcodes the temporary library directory.
+ hardcode_action=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ hardcode_action=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ hardcode_action=unsupported
+fi
+echo "$as_me:$LINENO: result: $hardcode_action" >&5
+echo "${ECHO_T}$hardcode_action" >&6
+
+if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+striplib=
+old_striplib=
+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+ ;;
+ *)
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ ;;
+ esac
fi
-## FIXME: this should be a separate macro
-##
-echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
-echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
-if test "${lt_cv_prog_cc_static_works+set}" = set; then
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- lt_cv_prog_cc_static_works=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
int
main ()
{
+dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ *)
+ echo "$as_me:$LINENO: checking for shl_load" >&5
+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
+if test "${ac_cv_func_shl_load+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define shl_load innocuous_shl_load
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char shl_load (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef shl_load
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char shl_load ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != shl_load;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- lt_cv_prog_cc_static_works=yes
+ ac_cv_func_shl_load=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- LDFLAGS="$save_LDFLAGS"
+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
+if test $ac_cv_func_shl_load = yes; then
+ lt_cv_dlopen="shl_load"
+else
+ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dld_shl_load=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_shl_load=no
fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
+if test $ac_cv_lib_dld_shl_load = yes; then
+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
+else
+ echo "$as_me:$LINENO: checking for dlopen" >&5
+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
+if test "${ac_cv_func_dlopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define dlopen innocuous_dlopen
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char dlopen (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
-# Belt *and* braces to stop my trousers falling down:
-test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
-echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
-echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
-pic_flag="$lt_cv_prog_cc_pic"
-special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
-wl="$lt_cv_prog_cc_wl"
-link_static_flag="$lt_cv_prog_cc_static"
-no_builtin_flag="$lt_cv_prog_cc_no_builtin"
-can_build_shared="$lt_cv_prog_cc_can_build_shared"
-##
-## END FIXME
+#undef dlopen
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+char (*f) () = dlopen;
+#endif
+#ifdef __cplusplus
+}
+#endif
-## FIXME: this should be a separate macro
-##
-# Check to see if options -o and -c are simultaneously supported by compiler
-echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
-echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
-if test "${lt_cv_compiler_c_o+set}" = set; then
+int
+main ()
+{
+return f != dlopen;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
+echo "${ECHO_T}$ac_cv_func_dlopen" >&6
+if test $ac_cv_func_dlopen = yes; then
+ lt_cv_dlopen="dlopen"
+else
+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-$rm -r conftest 2>/dev/null
-mkdir conftest
-cd conftest
-echo "int some_variable = 0;" > conftest.$ac_ext
-mkdir out
-# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-# that will create temporary files in the current directory regardless of
-# the output directory. Thus, making CWD read-only will cause this test
-# to fail, enabling locking or at least warning the user not to do parallel
-# builds.
-chmod -w .
-save_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
-compiler_c_o=no
-if { (eval echo configure:4554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s out/conftest.err; then
- lt_cv_compiler_c_o=no
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_svld_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
+if test $ac_cv_lib_svld_dlopen = yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
+else
+ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dld_dld_link=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
+if test $ac_cv_lib_dld_dld_link = yes; then
+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
else
- lt_cv_compiler_c_o=yes
+ enable_dlopen=no
fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
+echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
+if test "${lt_cv_dlopen_self+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<EOF
+#line 8420 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+
+ exit (status);
+}
+EOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
+echo "${ECHO_T}$lt_cv_dlopen_self" >&6
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ LDFLAGS="$LDFLAGS $link_static_flag"
+ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
+echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
+if test "${lt_cv_dlopen_self_static+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self_static=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<EOF
+#line 8518 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+
+ exit (status);
+}
+EOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self_static=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
+echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+
+
+# Report which librarie types wil actually be built
+echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
+echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
+echo "$as_me:$LINENO: result: $can_build_shared" >&5
+echo "${ECHO_T}$can_build_shared" >&6
+
+echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
+echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
+test "$can_build_shared" = "no" && enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case "$host_os" in
+aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+aix4* | aix5*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+esac
+echo "$as_me:$LINENO: result: $enable_shared" >&5
+echo "${ECHO_T}$enable_shared" >&6
+
+echo "$as_me:$LINENO: checking whether to build static libraries" >&5
+echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
+# Make sure either enable_shared or enable_static is yes.
+test "$enable_shared" = yes || enable_static=yes
+echo "$as_me:$LINENO: result: $enable_static" >&5
+echo "${ECHO_T}$enable_static" >&6
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+ # Now quote all the things that may contain metacharacters while being
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
+ # variables and quote the copies for generation of the libtool script.
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+ old_postinstall_cmds old_postuninstall_cmds \
+ compiler \
+ CC \
+ LD \
+ lt_prog_compiler_wl \
+ lt_prog_compiler_pic \
+ lt_prog_compiler_static \
+ lt_prog_compiler_no_builtin_flag \
+ export_dynamic_flag_spec \
+ thread_safe_flag_spec \
+ whole_archive_flag_spec \
+ enable_shared_with_static_runtimes \
+ old_archive_cmds \
+ old_archive_from_new_cmds \
+ predep_objects \
+ postdep_objects \
+ predeps \
+ postdeps \
+ compiler_lib_search_path \
+ archive_cmds \
+ archive_expsym_cmds \
+ postinstall_cmds \
+ postuninstall_cmds \
+ old_archive_from_expsyms_cmds \
+ allow_undefined_flag \
+ no_undefined_flag \
+ export_symbols_cmds \
+ hardcode_libdir_flag_spec \
+ hardcode_libdir_flag_spec_ld \
+ hardcode_libdir_separator \
+ hardcode_automatic \
+ module_cmds \
+ module_expsym_cmds \
+ lt_cv_prog_compiler_c_o \
+ exclude_expsyms \
+ include_expsyms; do
+
+ case $var in
+ old_archive_cmds | \
+ old_archive_from_new_cmds | \
+ archive_cmds | \
+ archive_expsym_cmds | \
+ module_cmds | \
+ module_expsym_cmds | \
+ old_archive_from_expsyms_cmds | \
+ export_symbols_cmds | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
+ postinstall_cmds | postuninstall_cmds | \
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ # Double-quote double-evaled strings.
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+ ;;
+ *)
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+ ;;
+ esac
+ done
+
+ case $lt_echo in
+ *'\$0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
+ ;;
+ esac
+
+cfgfile="${ofile}T"
+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
+ $rm -f "$cfgfile"
+ { echo "$as_me:$LINENO: creating $ofile" >&5
+echo "$as_me: creating $ofile" >&6;}
+
+ cat <<__EOF__ >> "$cfgfile"
+#! $SHELL
+
+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="$SED -e s/^X//"
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+# The names of the tagged configurations supported by this script.
+available_tags=
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS="$AS"
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# Must we lock files when doing compilation ?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path="$fix_srcfile_path"
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# ### END LIBTOOL CONFIG
+
+__EOF__
+
+
+ case $host_os in
+ aix3*)
+ cat <<\EOF >> "$cfgfile"
+
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+EOF
+ ;;
+ esac
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" || \
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+
else
- # Append any errors to the config.log.
- cat out/conftest.err 1>&5
- lt_cv_compiler_c_o=no
+ # If there is no Makefile yet, we rely on a make rule to execute
+ # `config.status --recheck' to rerun these tests and create the
+ # libtool script then.
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
fi
-CFLAGS="$save_CFLAGS"
-chmod u+w .
-$rm conftest* out/*
-rmdir out
-cd ..
-rmdir conftest
-$rm -r conftest 2>/dev/null
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+
+
+# Check whether --with-tags or --without-tags was given.
+if test "${with_tags+set}" = set; then
+ withval="$with_tags"
+ tagnames="$withval"
+fi;
+
+if test -f "$ltmain" && test -n "$tagnames"; then
+ if test ! -f "${ofile}"; then
+ { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
+echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
+ fi
+
+ if test -z "$LTCC"; then
+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
+ if test -z "$LTCC"; then
+ { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
+echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
+ else
+ { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
+echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
+ fi
+ fi
+
+ # Extract list of available tagged configurations in $ofile.
+ # Note that this assumes the entire list is on one line.
+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
+
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for tagname in $tagnames; do
+ IFS="$lt_save_ifs"
+ # Check whether tagname contains only valid characters
+ case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
+ "") ;;
+ *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
+echo "$as_me: error: invalid tag name: $tagname" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
+ then
+ { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
+echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+ # Update the list of available tags.
+ if test -n "$tagname"; then
+ echo appending configuration tag \"$tagname\" to $ofile
+
+ case $tagname in
+ CXX)
+ if test -n "$CXX" && test "X$CXX" != "Xno"; then
+ ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+
+
+archive_cmds_need_lc_CXX=no
+allow_undefined_flag_CXX=
+always_export_symbols_CXX=no
+archive_expsym_cmds_CXX=
+export_dynamic_flag_spec_CXX=
+hardcode_direct_CXX=no
+hardcode_libdir_flag_spec_CXX=
+hardcode_libdir_flag_spec_ld_CXX=
+hardcode_libdir_separator_CXX=
+hardcode_minus_L_CXX=no
+hardcode_automatic_CXX=no
+module_cmds_CXX=
+module_expsym_cmds_CXX=
+link_all_deplibs_CXX=unknown
+old_archive_cmds_CXX=$old_archive_cmds
+no_undefined_flag_CXX=
+whole_archive_flag_spec_CXX=
+enable_shared_with_static_runtimes_CXX=no
+
+# Dependencies to place before and after the object being linked:
+predep_objects_CXX=
+postdep_objects_CXX=
+predeps_CXX=
+postdeps_CXX=
+compiler_lib_search_path_CXX=
+
+# Source file extension for C++ test sources.
+ac_ext=cc
+
+# Object file extension for compiled C++ test sources.
+objext=o
+objext_CXX=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;\n"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_LD=$LD
+lt_save_GCC=$GCC
+GCC=$GXX
+lt_save_with_gnu_ld=$with_gnu_ld
+lt_save_path_LD=$lt_cv_path_LD
+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+else
+ unset lt_cv_prog_gnu_ld
fi
+if test -n "${lt_cv_path_LDCXX+set}"; then
+ lt_cv_path_LD=$lt_cv_path_LDCXX
+else
+ unset lt_cv_path_LD
+fi
+test -z "${LDCXX+set}" || LD=$LDCXX
+CC=${CXX-"c++"}
+compiler=$CC
+compiler_CXX=$CC
+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+
+# We don't want -fno-exception wen compiling C++ code, so set the
+# no_builtin_flag separately
+if test "$GXX" = yes; then
+ lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
+else
+ lt_prog_compiler_no_builtin_flag_CXX=
+fi
+
+if test "$GXX" = yes; then
+ # Set up default GNU C++ configuration
-compiler_c_o=$lt_cv_compiler_c_o
-echo "$as_me:$LINENO: result: $compiler_c_o" >&5
-echo "${ECHO_T}$compiler_c_o" >&6
-if test x"$compiler_c_o" = x"yes"; then
- # Check to see if we can write to a .lo
- echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
-echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
- if test "${lt_cv_compiler_o_lo+set}" = set; then
+# Check whether --with-gnu-ld or --without-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then
+ withval="$with_gnu_ld"
+ test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi;
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
+echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | ?:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ echo "$as_me:$LINENO: checking for GNU ld" >&5
+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
+else
+ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
+echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
+fi
+if test "${lt_cv_path_LD+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
+ if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some GNU ld's only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
- lt_cv_compiler_o_lo=no
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -c -o conftest.lo"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ echo "$as_me:$LINENO: result: $LD" >&5
+echo "${ECHO_T}$LD" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
+echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
+ { (exit 1); exit 1; }; }
+echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
+echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
+if test "${lt_cv_prog_gnu_ld+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac
+fi
+echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
+echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
+ # archiving commands below assume that GNU ld is being used.
+ if test "$with_gnu_ld" = yes; then
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+ hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
+
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+ # investigate it a little bit more. (MM)
+ wlarc='${wl}'
+
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
+ grep 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ whole_archive_flag_spec_CXX=
+ fi
+ else
+ with_gnu_ld=no
+ wlarc=
+
+ # A generic and very simple default shared library creation
+ # command for GNU C++ for the case where it uses the native
+ # linker, instead of GNU ld. If possible, this setting should
+ # overridden to take advantage of the native linker features on
+ # the platform it is being used on.
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ fi
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
+
+else
+ GXX=no
+ with_gnu_ld=no
+ wlarc=
+fi
+
+# PORTME: fill in a description of your system's C++ link characteristics
+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
+ld_shlibs_CXX=yes
+case $host_os in
+ aix3*)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ aix4* | aix5*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+ for ld_flag in $LDFLAGS; do
+ case $ld_flag in
+ *-brtl*)
+ aix_use_runtimelinking=yes
+ break
+ ;;
+ esac
+ done
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds_CXX=''
+ hardcode_direct_CXX=yes
+ hardcode_libdir_separator_CXX=':'
+ link_all_deplibs_CXX=yes
+
+ if test "$GXX" = yes; then
+ case $host_os in aix4.012|aix4.012.*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ hardcode_direct_CXX=yes
+ else
+ # We have old collect2
+ hardcode_direct_CXX=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L_CXX=yes
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
+ hardcode_libdir_separator_CXX=
+ fi
+ esac
+ shared_flag='-shared'
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols_CXX=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag_CXX='-berok'
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -4596,55 +9541,1268 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
-int some_variable = 0;
+
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- lt_cv_compiler_o_lo=no
- else
- lt_cv_compiler_o_lo=yes
- fi
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$save_CFLAGS"
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+ archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag_CXX="-z nodefs"
+ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag_CXX=' ${wl}-bernotok'
+ allow_undefined_flag_CXX=' ${wl}-berok'
+ # -bexpall does not export symbols beginning with underscore (_)
+ always_export_symbols_CXX=yes
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec_CXX=' '
+ archive_cmds_need_lc_CXX=yes
+ # This is similar to how AIX traditionally builds it's shared libraries.
+ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+ chorus*)
+ case $cc_basename in
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ ;;
+
+
+ cygwin* | mingw* | pw32*)
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
+ allow_undefined_flag_CXX=unsupported
+ always_export_symbols_CXX=no
+ enable_shared_with_static_runtimes_CXX=yes
+
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ else
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ darwin* | rhapsody*)
+ case "$host_os" in
+ rhapsody* | darwin1.[012])
+ allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
+ ;;
+ *) # Darwin 1.3 on
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+ allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ else
+ case ${MACOSX_DEPLOYMENT_TARGET} in
+ 10.[012])
+ allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ ;;
+ 10.*)
+ allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ archive_cmds_need_lc_CXX=no
+ hardcode_direct_CXX=no
+ hardcode_automatic_CXX=yes
+ hardcode_shlibpath_var_CXX=unsupported
+ whole_archive_flag_spec_CXX=''
+ link_all_deplibs_CXX=yes
+
+ if test "$GXX" = yes ; then
+ lt_int_apple_cc_single_mod=no
+ output_verbose_link_cmd='echo'
+ if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
+ lt_int_apple_cc_single_mod=yes
+ fi
+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
+ archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+ else
+ archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+ fi
+ module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ else
+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ else
+ case "$cc_basename" in
+ xlc*)
+ output_verbose_link_cmd='echo'
+ archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+ module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ fi
+ ;;
+
+ dgux*)
+ case $cc_basename in
+ ec++)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ ghcx)
+ # Green Hills C++ Compiler
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ ;;
+ freebsd12*)
+ # C++ shared libraries reported to be fairly broken before switch to ELF
+ ld_shlibs_CXX=no
+ ;;
+ freebsd-elf*)
+ archive_cmds_need_lc_CXX=no
+ ;;
+ freebsd* | kfreebsd*-gnu)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ ld_shlibs_CXX=yes
+ ;;
+ gnu*)
+ ;;
+ hpux9*)
+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator_CXX=:
+ export_dynamic_flag_spec_CXX='${wl}-E'
+ hardcode_direct_CXX=yes
+ hardcode_minus_L_CXX=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+
+ case $cc_basename in
+ CC)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ aCC)
+ archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ esac
+ ;;
+ hpux10*|hpux11*)
+ if test $with_gnu_ld = no; then
+ case "$host_cpu" in
+ hppa*64*)
+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
+ hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
+ hardcode_libdir_separator_CXX=:
+ ;;
+ ia64*)
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
+ ;;
+ *)
+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator_CXX=:
+ export_dynamic_flag_spec_CXX='${wl}-E'
+ ;;
+ esac
+ fi
+ case "$host_cpu" in
+ hppa*64*)
+ hardcode_direct_CXX=no
+ hardcode_shlibpath_var_CXX=no
+ ;;
+ ia64*)
+ hardcode_direct_CXX=no
+ hardcode_shlibpath_var_CXX=no
+ hardcode_minus_L_CXX=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+ ;;
+ *)
+ hardcode_direct_CXX=yes
+ hardcode_minus_L_CXX=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+ ;;
+ esac
+
+ case $cc_basename in
+ CC)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ aCC)
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
+ ;;
+ *)
+ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test $with_gnu_ld = no; then
+ case "$host_cpu" in
+ ia64*|hppa*64*)
+ archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
+ ;;
+ *)
+ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ fi
+ else
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ esac
+ ;;
+ irix5* | irix6*)
+ case $cc_basename in
+ CC)
+ # SGI C++
+ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+
+ # Archives containing C++ object files must be created using
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test "$with_gnu_ld" = no; then
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+ else
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
+ fi
+ fi
+ link_all_deplibs_CXX=yes
+ ;;
+ esac
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_CXX=:
+ ;;
+ linux*)
+ case $cc_basename in
+ KCC)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+ archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+
+ hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
+ ;;
+ icpc)
+ # Intel C++
+ with_gnu_ld=yes
+ # version 8.0 and above of icpc choke on multiply defined symbols
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
+ # earlier do not add the objects themselves.
+ case `$CC -V 2>&1` in
+ *"Version 7."*)
+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # Version 8.0 or newer
+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
+ archive_cmds_need_lc_CXX=no
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
+ whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ ;;
+ cxx)
+ # Compaq C++
+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec_CXX='-rpath $libdir'
+ hardcode_libdir_separator_CXX=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ esac
+ ;;
+ lynxos*)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ m88k*)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ ;;
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+ wlarc=
+ hardcode_libdir_flag_spec_CXX='-R$libdir'
+ hardcode_direct_CXX=yes
+ hardcode_shlibpath_var_CXX=no
+ fi
+ # Workaround some broken pre-1.5 toolchains
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+ ;;
+ openbsd2*)
+ # C++ shared libraries are fairly broken
+ ld_shlibs_CXX=no
+ ;;
+ openbsd*)
+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+ export_dynamic_flag_spec_CXX='${wl}-E'
+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ fi
+ output_verbose_link_cmd='echo'
+ ;;
+ osf3*)
+ case $cc_basename in
+ KCC)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+ hardcode_libdir_separator_CXX=:
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
- compiler_o_lo=$lt_cv_compiler_o_lo
- echo "$as_me:$LINENO: result: $compiler_c_lo" >&5
-echo "${ECHO_T}$compiler_c_lo" >&6
+ ;;
+ RCC)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ cxx)
+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_CXX=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_CXX=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ esac
+ ;;
+ osf4* | osf5*)
+ case $cc_basename in
+ KCC)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+ hardcode_libdir_separator_CXX=:
+
+ # Archives containing C++ object files must be created using
+ # the KAI C++ compiler.
+ old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
+ ;;
+ RCC)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ cxx)
+ allow_undefined_flag_CXX=' -expect_unresolved \*'
+ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+ archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+ echo "-hidden">> $lib.exp~
+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
+ $rm $lib.exp'
+
+ hardcode_libdir_flag_spec_CXX='-rpath $libdir'
+ hardcode_libdir_separator_CXX=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_CXX=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ esac
+ ;;
+ psos*)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ sco*)
+ archive_cmds_need_lc_CXX=no
+ case $cc_basename in
+ CC)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC)
+ # Sun C++ 4.x
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ lcc)
+ # Lucid
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ no_undefined_flag_CXX=' -zdefs'
+ archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+ hardcode_libdir_flag_spec_CXX='-R$libdir'
+ hardcode_shlibpath_var_CXX=no
+ case $host_os in
+ solaris2.0-5 | solaris2.0-5.*) ;;
+ *)
+ # The C++ compiler is used as linker so we must use $wl
+ # flag to pass the commands to the underlying system
+ # linker.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ link_all_deplibs_CXX=yes
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ gcx)
+ # Green Hills C++ Compiler
+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+ # The C++ compiler must be used to create the archive.
+ old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+ ;;
+ *)
+ # GNU C++ compiler with Solaris linker
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
+ if $CC --version | grep -v '^2\.7' > /dev/null; then
+ archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
+ else
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
+ # platform.
+ archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
+ fi
+
+ hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
+ fi
+ ;;
+ esac
+ ;;
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
+ archive_cmds_need_lc_CXX=no
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC)
+ # NonStop-UX NCC 3.20
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ ;;
+ vxworks*)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+esac
+echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
+echo "${ECHO_T}$ld_shlibs_CXX" >&6
+test "$ld_shlibs_CXX" = no && can_build_shared=no
+
+GCC_CXX="$GXX"
+LD_CXX="$LD"
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+
+cat > conftest.$ac_ext <<EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+EOF
+
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Parse the compiler output and extract the necessary
+ # objects, libraries and library flags.
+
+ # Sentinel used to keep track of whether or not we are before
+ # the conftest object file.
+ pre_test_object_deps_done=no
+
+ # The `*' in the case matches for architectures that use `case' in
+ # $output_verbose_cmd can trigger glob expansion during the loop
+ # eval without this substitution.
+ output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
+
+ for p in `eval $output_verbose_link_cmd`; do
+ case $p in
+
+ -L* | -R* | -l*)
+ # Some compilers place space between "-{L,R}" and the path.
+ # Remove the space.
+ if test $p = "-L" \
+ || test $p = "-R"; then
+ prev=$p
+ continue
+ else
+ prev=
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ case $p in
+ -L* | -R*)
+ # Internal compiler library paths should come after those
+ # provided the user. The postdeps already come after the
+ # user supplied libs so there is no need to process them.
+ if test -z "$compiler_lib_search_path_CXX"; then
+ compiler_lib_search_path_CXX="${prev}${p}"
+ else
+ compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
+ fi
+ ;;
+ # The "-l" case would never come before the object being
+ # linked, so don't bother handling this case.
+ esac
+ else
+ if test -z "$postdeps_CXX"; then
+ postdeps_CXX="${prev}${p}"
+ else
+ postdeps_CXX="${postdeps_CXX} ${prev}${p}"
+ fi
+ fi
+ ;;
+
+ *.$objext)
+ # This assumes that the test object file only shows up
+ # once in the compiler output.
+ if test "$p" = "conftest.$objext"; then
+ pre_test_object_deps_done=yes
+ continue
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ if test -z "$predep_objects_CXX"; then
+ predep_objects_CXX="$p"
+ else
+ predep_objects_CXX="$predep_objects_CXX $p"
+ fi
+ else
+ if test -z "$postdep_objects_CXX"; then
+ postdep_objects_CXX="$p"
+ else
+ postdep_objects_CXX="$postdep_objects_CXX $p"
+ fi
+ fi
+ ;;
+
+ *) ;; # Ignore the rest.
+
+ esac
+ done
+
+ # Clean up.
+ rm -f a.out a.exe
else
- compiler_o_lo=no
+ echo "libtool.m4: error: problem compiling CXX test program"
fi
-##
-## END FIXME
-## FIXME: this should be a separate macro
-##
-# Check to see if we can do hard links to lock some files if needed
+$rm -f confest.$objext
+
+case " $postdeps_CXX " in
+*" -lc "*) archive_cmds_need_lc_CXX=no ;;
+esac
+
+lt_prog_compiler_wl_CXX=
+lt_prog_compiler_pic_CXX=
+lt_prog_compiler_static_CXX=
+
+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
+
+ # C++ specific cases for pic, static, wl, etc.
+ if test "$GXX" = yes; then
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_static_CXX='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static_CXX='-Bstatic'
+ fi
+ ;;
+ amigaos*)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | os2* | pw32*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
+ ;;
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic_CXX='-fno-common'
+ ;;
+ *djgpp*)
+ # DJGPP does not support shared libraries at all
+ lt_prog_compiler_pic_CXX=
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic_CXX=-Kconform_pic
+ fi
+ ;;
+ hpux*)
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ ;;
+ *)
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ esac
+ ;;
+ *)
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ esac
+ else
+ case $host_os in
+ aix4* | aix5*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static_CXX='-Bstatic'
+ else
+ lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ chorus*)
+ case $cc_basename in
+ cxch68)
+ # Green Hills C++ Compiler
+ # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+ ;;
+ esac
+ ;;
+ darwin*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ case "$cc_basename" in
+ xlc*)
+ lt_prog_compiler_pic_CXX='-qnocommon'
+ lt_prog_compiler_wl_CXX='-Wl,'
+ ;;
+ esac
+ ;;
+ dgux*)
+ case $cc_basename in
+ ec++)
+ lt_prog_compiler_pic_CXX='-KPIC'
+ ;;
+ ghcx)
+ # Green Hills C++ Compiler
+ lt_prog_compiler_pic_CXX='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ freebsd* | kfreebsd*-gnu)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case $cc_basename in
+ CC)
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
+ if test "$host_cpu" != ia64; then
+ lt_prog_compiler_pic_CXX='+Z'
+ fi
+ ;;
+ aCC)
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic_CXX='+Z'
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ irix5* | irix6* | nonstopux*)
+ case $cc_basename in
+ CC)
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_static_CXX='-non_shared'
+ # CC pic flag -KPIC is the default.
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ linux*)
+ case $cc_basename in
+ KCC)
+ # KAI C++ Compiler
+ lt_prog_compiler_wl_CXX='--backend -Wl,'
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ icpc)
+ # Intel C++
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_pic_CXX='-KPIC'
+ lt_prog_compiler_static_CXX='-static'
+ ;;
+ cxx)
+ # Compaq C++
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ lt_prog_compiler_pic_CXX=
+ lt_prog_compiler_static_CXX='-non_shared'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ lynxos*)
+ ;;
+ m88k*)
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx)
+ lt_prog_compiler_pic_CXX='-W c,exportall'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ netbsd*)
+ ;;
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC)
+ lt_prog_compiler_wl_CXX='--backend -Wl,'
+ ;;
+ RCC)
+ # Rational C++ 2.4.1
+ lt_prog_compiler_pic_CXX='-pic'
+ ;;
+ cxx)
+ # Digital/Compaq C++
+ lt_prog_compiler_wl_CXX='-Wl,'
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ lt_prog_compiler_pic_CXX=
+ lt_prog_compiler_static_CXX='-non_shared'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ psos*)
+ ;;
+ sco*)
+ case $cc_basename in
+ CC)
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ lt_prog_compiler_pic_CXX='-KPIC'
+ lt_prog_compiler_static_CXX='-Bstatic'
+ lt_prog_compiler_wl_CXX='-Qoption ld '
+ ;;
+ gcx)
+ # Green Hills C++ Compiler
+ lt_prog_compiler_pic_CXX='-PIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC)
+ # Sun C++ 4.x
+ lt_prog_compiler_pic_CXX='-pic'
+ lt_prog_compiler_static_CXX='-Bstatic'
+ ;;
+ lcc)
+ # Lucid
+ lt_prog_compiler_pic_CXX='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC)
+ # NonStop-UX NCC 3.20
+ lt_prog_compiler_pic_CXX='-KPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ unixware*)
+ ;;
+ vxworks*)
+ ;;
+ *)
+ lt_prog_compiler_can_build_shared_CXX=no
+ ;;
+ esac
+ fi
+
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic_CXX"; then
+
+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
+if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ lt_prog_compiler_pic_works_CXX=no
+ ac_outfile=conftest.$ac_objext
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:10711: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:10715: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s conftest.err; then
+ lt_prog_compiler_pic_works_CXX=yes
+ fi
+ fi
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
+
+if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
+ case $lt_prog_compiler_pic_CXX in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
+ esac
+else
+ lt_prog_compiler_pic_CXX=
+ lt_prog_compiler_can_build_shared_CXX=no
+fi
+
+fi
+case "$host_os" in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic_CXX=
+ ;;
+ *)
+ lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
+ ;;
+esac
+
+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
+if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ lt_cv_prog_compiler_c_o_CXX=no
+ $rm -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:10771: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:10775: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s out/conftest.err; then
+ lt_cv_prog_compiler_c_o_CXX=yes
+ fi
+ fi
+ chmod u+w .
+ $rm conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
+ $rm out/* && rmdir out
+ cd ..
+ rmdir conftest
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
+
+
hard_links="nottested"
-if test "$compiler_c_o" = no && test "$need_locks" != no; then
+if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
# do not overwrite the value of need_locks provided by the user
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
@@ -4664,268 +10822,2504 @@ echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un
else
need_locks=no
fi
-##
-## END FIXME
-## FIXME: this should be a separate macro
-##
+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
+
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ case $host_os in
+ aix4* | aix5*)
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
+ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ fi
+ ;;
+ pw32*)
+ export_symbols_cmds_CXX="$ltdll_cmds"
+ ;;
+ cygwin* | mingw*)
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ *)
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ esac
+
+echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
+echo "${ECHO_T}$ld_shlibs_CXX" >&6
+test "$ld_shlibs_CXX" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
- # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
- echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
-echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
- echo "int some_variable = 0;" > conftest.$ac_ext
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
- compiler_rtti_exceptions=no
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc_CXX" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc_CXX=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds_CXX in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
+ $rm conftest*
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl_CXX
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
+ allow_undefined_flag_CXX=
+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
+ (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ then
+ archive_cmds_need_lc_CXX=no
+ else
+ archive_cmds_need_lc_CXX=yes
+ fi
+ allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $rm conftest*
+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
+echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix4* | aix5*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[01] | aix4.[01].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $rm \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+ if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
+ else
+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+ fi
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+kfreebsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
+
+freebsd*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.01* | freebsdelf3.01*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ *) # from 3.2 on
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case "$host_cpu" in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+knetbsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+nto-qnx*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+openbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+sco3.2v5*)
+ version_type=osf
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
+echo "${ECHO_T}$dynamic_linker" >&6
+test "$dynamic_linker" = no && can_build_shared=no
+
+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
+hardcode_action_CXX=
+if test -n "$hardcode_libdir_flag_spec_CXX" || \
+ test -n "$runpath_var_CXX" || \
+ test "X$hardcode_automatic_CXX" = "Xyes" ; then
+
+ # We can hardcode non-existant directories.
+ if test "$hardcode_direct_CXX" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
+ test "$hardcode_minus_L_CXX" != no; then
+ # Linking always hardcodes the temporary library directory.
+ hardcode_action_CXX=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ hardcode_action_CXX=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ hardcode_action_CXX=unsupported
+fi
+echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
+echo "${ECHO_T}$hardcode_action_CXX" >&6
+
+if test "$hardcode_action_CXX" = relink; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+striplib=
+old_striplib=
+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+ ;;
+ *)
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ ;;
+ esac
+fi
+
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ *)
+ echo "$as_me:$LINENO: checking for shl_load" >&5
+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
+if test "${ac_cv_func_shl_load+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define shl_load innocuous_shl_load
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char shl_load (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef shl_load
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char shl_load ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
int
main ()
{
-int some_variable = 0;
+return f != shl_load;
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- compiler_rtti_exceptions=no
- else
- compiler_rtti_exceptions=yes
- fi
+ ac_cv_func_shl_load=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
+if test $ac_cv_func_shl_load = yes; then
+ lt_cv_dlopen="shl_load"
+else
+ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dld_shl_load=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
+if test $ac_cv_lib_dld_shl_load = yes; then
+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
+else
+ echo "$as_me:$LINENO: checking for dlopen" >&5
+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
+if test "${ac_cv_func_dlopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define dlopen innocuous_dlopen
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char dlopen (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef dlopen
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+char (*f) () = dlopen;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != dlopen;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
+echo "${ECHO_T}$ac_cv_func_dlopen" >&6
+if test $ac_cv_func_dlopen = yes; then
+ lt_cv_dlopen="dlopen"
+else
+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_svld_dlopen=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$save_CFLAGS"
- echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
-echo "${ECHO_T}$compiler_rtti_exceptions" >&6
+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
+if test $ac_cv_lib_svld_dlopen = yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
+else
+ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
- if test "$compiler_rtti_exceptions" = "yes"; then
- no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dld_dld_link=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
+if test $ac_cv_lib_dld_dld_link = yes; then
+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
else
- no_builtin_flag=' -fno-builtin'
+ enable_dlopen=no
fi
-fi
-##
-## END FIXME
-## FIXME: this should be a separate macro
-##
-# See if the linker supports building shared libraries.
-echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
-echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-allow_undefined_flag=
-no_undefined_flag=
-need_lib_prefix=unknown
-need_version=unknown
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-archive_cmds=
-archive_expsym_cmds=
-old_archive_from_new_cmds=
-old_archive_from_expsyms_cmds=
-export_dynamic_flag_spec=
-whole_archive_flag_spec=
-thread_safe_flag_spec=
-hardcode_into_libs=no
-hardcode_libdir_flag_spec=
-hardcode_libdir_separator=
-hardcode_direct=no
-hardcode_minus_L=no
-hardcode_shlibpath_var=unsupported
-runpath_var=
-link_all_deplibs=unknown
-always_export_symbols=no
-export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
-# include_expsyms should be a list of space-separated symbols to be *always*
-# included in the symbol list
-include_expsyms=
-# exclude_expsyms can be an egrep regular expression of symbols to exclude
-# it will be wrapped by ` (' and `)$', so one must not match beginning or
-# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
-# as well as any symbol that contains `d'.
-exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
-# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
-# platforms (ab)use it in PIC code, but their linkers get confused if
-# the symbol is explicitly referenced. Since portable code cannot
-# rely on this symbol name, it's probably fine to never include it in
-# preloaded symbol tables.
-extract_expsyms_cmds=
+ save_LDFLAGS="$LDFLAGS"
+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-case $host_os in
-cygwin* | mingw* | pw32* )
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
+echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
+if test "${lt_cv_dlopen_self+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<EOF
+#line 12132 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+
+ exit (status);
+}
+EOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self=no
fi
- ;;
+fi
+rm -fr conftest*
-esac
-ld_shlibs=yes
-if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
+fi
+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
+echo "${ECHO_T}$lt_cv_dlopen_self" >&6
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix3* | aix4* | aix5*)
- # On AIX, the GNU linker is very broken
- # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
- ld_shlibs=no
- cat <<EOF 1>&2
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ LDFLAGS="$LDFLAGS $link_static_flag"
+ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
+echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
+if test "${lt_cv_dlopen_self_static+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self_static=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<EOF
+#line 12230 "configure"
+#include "confdefs.h"
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ exit (status);
+}
EOF
- ;;
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self_static=no
+ fi
+fi
+rm -fr conftest*
- amigaos*)
- archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can use
- # them.
- ld_shlibs=no
+fi
+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
+echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
;;
+ esac
- beos*)
- if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs=no
- fi
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+ # Now quote all the things that may contain metacharacters while being
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
+ # variables and quote the copies for generation of the libtool script.
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+ old_postinstall_cmds old_postuninstall_cmds \
+ compiler_CXX \
+ CC_CXX \
+ LD_CXX \
+ lt_prog_compiler_wl_CXX \
+ lt_prog_compiler_pic_CXX \
+ lt_prog_compiler_static_CXX \
+ lt_prog_compiler_no_builtin_flag_CXX \
+ export_dynamic_flag_spec_CXX \
+ thread_safe_flag_spec_CXX \
+ whole_archive_flag_spec_CXX \
+ enable_shared_with_static_runtimes_CXX \
+ old_archive_cmds_CXX \
+ old_archive_from_new_cmds_CXX \
+ predep_objects_CXX \
+ postdep_objects_CXX \
+ predeps_CXX \
+ postdeps_CXX \
+ compiler_lib_search_path_CXX \
+ archive_cmds_CXX \
+ archive_expsym_cmds_CXX \
+ postinstall_cmds_CXX \
+ postuninstall_cmds_CXX \
+ old_archive_from_expsyms_cmds_CXX \
+ allow_undefined_flag_CXX \
+ no_undefined_flag_CXX \
+ export_symbols_cmds_CXX \
+ hardcode_libdir_flag_spec_CXX \
+ hardcode_libdir_flag_spec_ld_CXX \
+ hardcode_libdir_separator_CXX \
+ hardcode_automatic_CXX \
+ module_cmds_CXX \
+ module_expsym_cmds_CXX \
+ lt_cv_prog_compiler_c_o_CXX \
+ exclude_expsyms_CXX \
+ include_expsyms_CXX; do
+
+ case $var in
+ old_archive_cmds_CXX | \
+ old_archive_from_new_cmds_CXX | \
+ archive_cmds_CXX | \
+ archive_expsym_cmds_CXX | \
+ module_cmds_CXX | \
+ module_expsym_cmds_CXX | \
+ old_archive_from_expsyms_cmds_CXX | \
+ export_symbols_cmds_CXX | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
+ postinstall_cmds | postuninstall_cmds | \
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ # Double-quote double-evaled strings.
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+ ;;
+ *)
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+ ;;
+ esac
+ done
+
+ case $lt_echo in
+ *'\$0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
;;
+ esac
+
+cfgfile="$ofile"
+
+ cat <<__EOF__ >> "$cfgfile"
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_CXX
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_CXX
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_CXX
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_CXX
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS="$AS"
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_CXX
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_CXX
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
+
+# Must we lock files when doing compilation ?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_CXX
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_CXX
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_CXX
+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_CXX
+module_expsym_cmds=$lt_module_expsym_cmds_CXX
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_CXX
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_CXX
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_CXX
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_CXX
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_CXX
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_CXX
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_CXX
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_CXX
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_CXX
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_CXX
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_CXX
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path="$fix_srcfile_path_CXX"
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_CXX
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_CXX
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_CXX
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_CXX
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
+else
+ # If there is no Makefile yet, we rely on a make rule to execute
+ # `config.status --recheck' to rerun these tests and create the
+ # libtool script then.
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC=$lt_save_CC
+LDCXX=$LD
+LD=$lt_save_LD
+GCC=$lt_save_GCC
+with_gnu_ldcxx=$with_gnu_ld
+with_gnu_ld=$lt_save_with_gnu_ld
+lt_cv_path_LDCXX=$lt_cv_path_LD
+lt_cv_path_LD=$lt_save_path_LD
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+
+ else
+ tagname=""
+ fi
+ ;;
+
+ F77)
+ if test -n "$F77" && test "X$F77" != "Xno"; then
+
+ac_ext=f
+ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
+ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_f77_compiler_gnu
+
+
+archive_cmds_need_lc_F77=no
+allow_undefined_flag_F77=
+always_export_symbols_F77=no
+archive_expsym_cmds_F77=
+export_dynamic_flag_spec_F77=
+hardcode_direct_F77=no
+hardcode_libdir_flag_spec_F77=
+hardcode_libdir_flag_spec_ld_F77=
+hardcode_libdir_separator_F77=
+hardcode_minus_L_F77=no
+hardcode_automatic_F77=no
+module_cmds_F77=
+module_expsym_cmds_F77=
+link_all_deplibs_F77=unknown
+old_archive_cmds_F77=$old_archive_cmds
+no_undefined_flag_F77=
+whole_archive_flag_spec_F77=
+enable_shared_with_static_runtimes_F77=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+objext_F77=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=" subroutine t\n return\n end\n"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code=" program t\n end\n"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+CC=${F77-"f77"}
+compiler=$CC
+compiler_F77=$CC
+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+
+echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
+echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
+echo "$as_me:$LINENO: result: $can_build_shared" >&5
+echo "${ECHO_T}$can_build_shared" >&6
+
+echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
+echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
+test "$can_build_shared" = "no" && enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case "$host_os" in
+aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+aix4* | aix5*)
+ test "$enable_shared" = yes && enable_static=no
+ ;;
+esac
+echo "$as_me:$LINENO: result: $enable_shared" >&5
+echo "${ECHO_T}$enable_shared" >&6
+
+echo "$as_me:$LINENO: checking whether to build static libraries" >&5
+echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
+# Make sure either enable_shared or enable_static is yes.
+test "$enable_shared" = yes || enable_static=yes
+echo "$as_me:$LINENO: result: $enable_static" >&5
+echo "${ECHO_T}$enable_static" >&6
+
+test "$ld_shlibs_F77" = no && can_build_shared=no
+
+GCC_F77="$G77"
+LD_F77="$LD"
+
+lt_prog_compiler_wl_F77=
+lt_prog_compiler_pic_F77=
+lt_prog_compiler_static_F77=
+
+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
+
+ if test "$GCC" = yes; then
+ lt_prog_compiler_wl_F77='-Wl,'
+ lt_prog_compiler_static_F77='-static'
- cygwin* | mingw* | pw32*)
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec='-L$libdir'
- allow_undefined_flag=unsupported
- always_export_symbols=yes
-
- extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
- sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
- test -f $output_objdir/impgen.exe || (cd $output_objdir && \
- if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
- else $CC -o impgen impgen.c ; fi)~
- $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
-
- old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
-
- # cygwin and mingw dlls have different entry points and sets of symbols
- # to exclude.
- # FIXME: what about values for MSVC?
- dll_entry=__cygwin_dll_entry@12
- dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
case $host_os in
- mingw*)
- # mingw values
- dll_entry=_DllMainCRTStartup@12
- dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static_F77='-Bstatic'
+ fi
;;
- esac
- # mingw and cygwin differ, and it's simplest to just exclude the union
- # of the two symbol sets.
- dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
+ amigaos*)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
+ ;;
- # recent cygwin and mingw systems supply a stub DllMain which the user
- # can override, but on older systems we have to supply one (in ltdll.c)
- if test "x$lt_cv_need_dllmain" = "xyes"; then
- ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
- ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
- test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
- else
- ltdll_obj=
- ltdll_cmds=
- fi
+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic_F77='-DDLL_EXPORT'
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic_F77='-fno-common'
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ lt_prog_compiler_can_build_shared_F77=no
+ enable_shared=no
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic_F77=-Kconform_pic
+ fi
+ ;;
- # Extract the symbol export list from an `--export-all' def file,
- # then regenerate the def file from the symbol export list, so that
- # the compiled dll only exports the symbol export list.
- # Be careful not to strip the DATA tag left be newer dlltools.
- export_symbols_cmds="$ltdll_cmds"'
- $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
- sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
-
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is.
- # If DATA tags from a recent dlltool are present, honour them!
- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname-def;
+ hpux*)
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic_F77='-fPIC'
+ ;;
+ esac
+ ;;
+
+ *)
+ lt_prog_compiler_pic_F77='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static_F77='-Bstatic'
else
- echo EXPORTS > $output_objdir/$soname-def;
- _lt_hint=1;
- cat $export_symbols | while read symbol; do
- set dummy \$symbol;
- case \$# in
- 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
- *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
- esac;
- _lt_hint=`expr 1 + \$_lt_hint`;
- done;
- fi~
- '"$ltdll_cmds"'
- $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
- $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
- $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
- $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
- $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
+ lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ darwin*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ case "$cc_basename" in
+ xlc*)
+ lt_prog_compiler_pic_F77='-qnocommon'
+ lt_prog_compiler_wl_F77='-Wl,'
+ ;;
+ esac
+ ;;
+
+ mingw* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic_F77='-DDLL_EXPORT'
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic_F77='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ # PIC (with -KPIC) is the default.
+ lt_prog_compiler_static_F77='-non_shared'
+ ;;
+
+ newsos6)
+ lt_prog_compiler_pic_F77='-KPIC'
+ lt_prog_compiler_static_F77='-Bstatic'
+ ;;
+
+ linux*)
+ case $CC in
+ icc* | ecc*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ lt_prog_compiler_pic_F77='-KPIC'
+ lt_prog_compiler_static_F77='-static'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static_F77='-non_shared'
+ ;;
+ esac
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static_F77='-non_shared'
+ ;;
+
+ sco3.2v5*)
+ lt_prog_compiler_pic_F77='-Kpic'
+ lt_prog_compiler_static_F77='-dn'
+ ;;
+
+ solaris*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ lt_prog_compiler_pic_F77='-KPIC'
+ lt_prog_compiler_static_F77='-Bstatic'
+ ;;
+
+ sunos4*)
+ lt_prog_compiler_wl_F77='-Qoption ld '
+ lt_prog_compiler_pic_F77='-PIC'
+ lt_prog_compiler_static_F77='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ lt_prog_compiler_pic_F77='-KPIC'
+ lt_prog_compiler_static_F77='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ lt_prog_compiler_pic_F77='-Kconform_pic'
+ lt_prog_compiler_static_F77='-Bstatic'
+ fi
+ ;;
+
+ uts4*)
+ lt_prog_compiler_pic_F77='-pic'
+ lt_prog_compiler_static_F77='-Bstatic'
+ ;;
+
+ *)
+ lt_prog_compiler_can_build_shared_F77=no
+ ;;
+ esac
+ fi
+
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic_F77"; then
+
+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
+if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ lt_prog_compiler_pic_works_F77=no
+ ac_outfile=conftest.$ac_objext
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic_F77"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:13067: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:13071: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s conftest.err; then
+ lt_prog_compiler_pic_works_F77=yes
+ fi
+ fi
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
+
+if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
+ case $lt_prog_compiler_pic_F77 in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
+ esac
+else
+ lt_prog_compiler_pic_F77=
+ lt_prog_compiler_can_build_shared_F77=no
+fi
+
+fi
+case "$host_os" in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic_F77=
+ ;;
+ *)
+ lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
;;
+esac
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
+if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ lt_cv_prog_compiler_c_o_F77=no
+ $rm -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:13127: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:13131: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s out/conftest.err; then
+ lt_cv_prog_compiler_c_o_F77=yes
+ fi
+ fi
+ chmod u+w .
+ $rm conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
+ $rm out/* && rmdir out
+ cd ..
+ rmdir conftest
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
+
+
+hard_links="nottested"
+if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
+ hard_links=yes
+ $rm conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ echo "$as_me:$LINENO: result: $hard_links" >&5
+echo "${ECHO_T}$hard_links" >&6
+ if test "$hard_links" = no; then
+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+
+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
+
+ runpath_var=
+ allow_undefined_flag_F77=
+ enable_shared_with_static_runtimes_F77=no
+ archive_cmds_F77=
+ archive_expsym_cmds_F77=
+ old_archive_From_new_cmds_F77=
+ old_archive_from_expsyms_cmds_F77=
+ export_dynamic_flag_spec_F77=
+ whole_archive_flag_spec_F77=
+ thread_safe_flag_spec_F77=
+ hardcode_libdir_flag_spec_F77=
+ hardcode_libdir_flag_spec_ld_F77=
+ hardcode_libdir_separator_F77=
+ hardcode_direct_F77=no
+ hardcode_minus_L_F77=no
+ hardcode_shlibpath_var_F77=unsupported
+ link_all_deplibs_F77=unknown
+ hardcode_automatic_F77=no
+ module_cmds_F77=
+ module_expsym_cmds_F77=
+ always_export_symbols_F77=no
+ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ include_expsyms_F77=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
fi
;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
- solaris* | sysv5*)
- if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
- ld_shlibs=no
- cat <<EOF 1>&2
+ ld_shlibs_F77=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix3* | aix4* | aix5*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs_F77=no
+ cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_minus_L_F77=yes
+
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
+ # that the semantics of dynamic libraries on AmigaOS, at least up
+ # to version 4, is to share data among multiple programs linked
+ # with the same dynamic library. Since this doesn't match the
+ # behavior of shared libraries on other platforms, we can't use
+ # them.
+ ld_shlibs_F77=no
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag_F77=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ ld_shlibs_F77=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ allow_undefined_flag_F77=unsupported
+ always_export_symbols_F77=no
+ enable_shared_with_static_runtimes_F77=yes
+ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris* | sysv5*)
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+ ld_shlibs_F77=no
+ cat <<EOF 1>&2
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems. Therefore, libtool
@@ -4935,468 +13329,1337 @@ EOF
*** used, and then restart.
EOF
- elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs_F77=no
+ fi
+ ;;
- sunos4*)
- archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
+ sunos4*)
+ archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct_F77=yes
+ hardcode_shlibpath_var_F77=no
+ ;;
- *)
- if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ linux*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_cmds_F77="$tmp_archive_cmds"
+ supports_anon_versioning=no
+ case `$LD -v 2>/dev/null` in
+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+ if test $supports_anon_versioning = yes; then
+ archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+$echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ else
+ archive_expsym_cmds_F77="$tmp_archive_cmds"
+ fi
else
- ld_shlibs=no
+ ld_shlibs_F77=no
fi
;;
- esac
- if test "$ld_shlibs" = yes; then
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec='${wl}--export-dynamic'
- case $host_os in
- cygwin* | mingw* | pw32*)
- # dlltool doesn't understand --whole-archive et. al.
- whole_archive_flag_spec=
- ;;
*)
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
else
- whole_archive_flag_spec=
+ ld_shlibs_F77=no
fi
;;
esac
- fi
-else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- allow_undefined_flag=unsupported
- always_export_symbols=yes
- archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- hardcode_minus_L=yes
- if test "$GCC" = yes && test -z "$link_static_flag"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- hardcode_direct=unsupported
- fi
- ;;
-
- aix4* | aix5*)
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
- archive_cmds=''
- hardcode_libdir_separator=':'
- if test "$GCC" = yes; then
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- hardcode_direct=yes
+ if test "$ld_shlibs_F77" = yes; then
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
+ export_dynamic_flag_spec_F77='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
else
- # We have old collect2
- hardcode_direct=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L=yes
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_libdir_separator=
+ whole_archive_flag_spec_F77=
fi
- shared_flag='-shared'
- else
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ allow_undefined_flag_F77=unsupported
+ always_export_symbols_F77=yes
+ archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L_F77=yes
+ if test "$GCC" = yes && test -z "$link_static_flag"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct_F77=unsupported
+ fi
+ ;;
+
+ aix4* | aix5*)
if test "$host_cpu" = ia64; then
- shared_flag='-G'
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
else
- shared_flag='${wl}-bM:SRE'
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
+ export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
fi
- hardcode_direct=yes
- fi
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds_F77=''
+ hardcode_direct_F77=yes
+ hardcode_libdir_separator_F77=':'
+ link_all_deplibs_F77=yes
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.012|aix4.012.*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ hardcode_direct_F77=yes
+ else
+ # We have old collect2
+ hardcode_direct_F77=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L_F77=yes
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_libdir_separator_F77=
+ fi
+ esac
+ shared_flag='-shared'
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols_F77=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag_F77='-berok'
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+ program main
+
+ end
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_f77_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag_F77="-z nodefs"
+ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+ program main
+
+ end
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_f77_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag_F77=' ${wl}-bernotok'
+ allow_undefined_flag_F77=' ${wl}-berok'
+ # -bexpall does not export symbols beginning with underscore (_)
+ always_export_symbols_F77=yes
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec_F77=' '
+ archive_cmds_need_lc_F77=yes
+ # This is similar to how AIX traditionally builds it's shared libraries.
+ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_minus_L_F77=yes
+ # see comment about different semantics on the GNU ld section
+ ld_shlibs_F77=no
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec_F77=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec_F77=' '
+ allow_undefined_flag_F77=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ old_archive_From_new_cmds_F77='true'
+ # FIXME: Should let the user specify the lib program.
+ old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
+ fix_srcfile_path='`cygpath -w "$srcfile"`'
+ enable_shared_with_static_runtimes_F77=yes
+ ;;
+
+ darwin* | rhapsody*)
+ case "$host_os" in
+ rhapsody* | darwin1.[012])
+ allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
+ ;;
+ *) # Darwin 1.3 on
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+ allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ else
+ case ${MACOSX_DEPLOYMENT_TARGET} in
+ 10.[012])
+ allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ ;;
+ 10.*)
+ allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ archive_cmds_need_lc_F77=no
+ hardcode_direct_F77=no
+ hardcode_automatic_F77=yes
+ hardcode_shlibpath_var_F77=unsupported
+ whole_archive_flag_spec_F77=''
+ link_all_deplibs_F77=yes
+ if test "$GCC" = yes ; then
+ output_verbose_link_cmd='echo'
+ archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+ module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
else
- # Test if we are trying to use run time linking, or normal AIX style linking.
- # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
- aix_use_runtimelinking=no
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
+ case "$cc_basename" in
+ xlc*)
+ output_verbose_link_cmd='echo'
+ archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+ module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ ld_shlibs_F77=no
+ ;;
+ esac
fi
- # It seems that -bexpall can do strange things, so it is better to
- # generate a list of symbols to export.
- always_export_symbols=yes
- if test "$aix_use_runtimelinking" = yes; then
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
- allow_undefined_flag=' -Wl,-G'
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag="-znodefs"
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+ ;;
+
+ dgux*)
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ freebsd1*)
+ ld_shlibs_F77=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ hardcode_direct_F77=yes
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_F77=yes
+ hardcode_minus_L_F77=yes
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | kfreebsd*-gnu)
+ archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ hardcode_direct_F77=yes
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
else
- hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
- # Warning - without using the other run time loading flags, -berok will
- # link without error, but may produce a broken library.
- allow_undefined_flag='${wl}-berok"
- # This is a bit strange, but is similar to how AIX traditionally builds
- # it's shared libraries.
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
+ archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
fi
- fi
- ;;
+ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator_F77=:
+ hardcode_direct_F77=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L_F77=yes
+ export_dynamic_flag_spec_F77='${wl}-E'
+ ;;
- amigaos*)
- archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # see comment about different semantics on the GNU ld section
- ld_shlibs=no
- ;;
+ hpux10* | hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+ ;;
+ *)
+ archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ case "$host_cpu" in
+ hppa*64*)
+ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
+ hardcode_libdir_flag_spec_ld_F77='+b $libdir'
+ hardcode_libdir_separator_F77=:
+ hardcode_direct_F77=no
+ hardcode_shlibpath_var_F77=no
+ ;;
+ ia64*)
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_direct_F77=no
+ hardcode_shlibpath_var_F77=no
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L_F77=yes
+ ;;
+ *)
+ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator_F77=:
+ hardcode_direct_F77=yes
+ export_dynamic_flag_spec_F77='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L_F77=yes
+ ;;
+ esac
+ fi
+ ;;
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec=' '
- allow_undefined_flag=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # FIXME: Setting linknames here is a bad hack.
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- old_archive_from_new_cmds='true'
- # FIXME: Should let the user specify the lib program.
- old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
- fix_srcfile_path='`cygpath -w "$srcfile"`'
- ;;
-
- darwin* | rhapsody*)
- # This patch put in by hand by PH (10-Dec-2003) for Darwin 1.3.
- case "$host_os" in
- rhapsody* | darwin1.[[012]])
- allow_undefined_flag='-undefined suppress'
- ;;
- *) # Darwin 1.3 on
- allow_undefined_flag='-flat_namespace -undefined suppress'
- ;;
- esac
- # End of hand-inserted patch
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
+ fi
+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_F77=:
+ link_all_deplibs_F77=yes
+ ;;
- # FIXME: Relying on posixy $() will cause problems for
- # cross-compilation, but unfortunately the echo tests do not
- # yet detect zsh echo's removal of \ escapes.
- archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
- # We need to add '_' to the symbols in $export_symbols first
- #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- whole_archive_flag_spec='-all_load $convenience'
- ;;
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ hardcode_direct_F77=yes
+ hardcode_shlibpath_var_F77=no
+ ;;
- freebsd1*)
- ld_shlibs=no
- ;;
+ newsos6)
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_F77=yes
+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_F77=:
+ hardcode_shlibpath_var_F77=no
+ ;;
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
+ openbsd*)
+ hardcode_direct_F77=yes
+ hardcode_shlibpath_var_F77=no
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec_F77='${wl}-E'
+ else
+ case $host_os in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ ;;
+ *)
+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ ;;
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
- ;;
+ os2*)
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_minus_L_F77=yes
+ allow_undefined_flag_F77=unsupported
+ archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd*)
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
+ osf3*)
+ if test "$GCC" = yes; then
+ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ allow_undefined_flag_F77=' -expect_unresolved \*'
+ archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_F77=:
+ ;;
- hpux9* | hpux10* | hpux11*)
- case $host_os in
- hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
- *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+ else
+ allow_undefined_flag_F77=' -expect_unresolved \*'
+ archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec_F77='-rpath $libdir'
+ fi
+ hardcode_libdir_separator_F77=:
+ ;;
+
+ sco3.2v5*)
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var_F77=no
+ export_dynamic_flag_spec_F77='${wl}-Bexport'
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ;;
+
+ solaris*)
+ no_undefined_flag_F77=' -z text'
+ if test "$GCC" = yes; then
+ archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+ else
+ archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ fi
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ hardcode_shlibpath_var_F77=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+ whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
+ esac
+ link_all_deplibs_F77=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_direct_F77=yes
+ hardcode_minus_L_F77=yes
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_F77=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ reload_cmds_F77='$CC -r -o $output$reload_objs'
+ hardcode_direct_F77=no
+ ;;
+ motorola)
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ sysv4.3*)
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var_F77=no
+ export_dynamic_flag_spec_F77='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var_F77=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ld_shlibs_F77=yes
+ fi
+ ;;
+
+ sysv4.2uw2*)
+ archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_F77=yes
+ hardcode_minus_L_F77=no
+ hardcode_shlibpath_var_F77=no
+ hardcode_runpath_var=yes
+ runpath_var=LD_RUN_PATH
+ ;;
+
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
+ no_undefined_flag_F77='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ sysv5*)
+ no_undefined_flag_F77=' -z text'
+ # $CC -shared without GNU ld will not create a library from C++
+ # object files and a static libstdc++, better avoid it by now
+ archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ hardcode_libdir_flag_spec_F77=
+ hardcode_shlibpath_var_F77=no
+ runpath_var='LD_RUN_PATH'
+ ;;
+
+ uts4*)
+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec_F77='-L$libdir'
+ hardcode_shlibpath_var_F77=no
+ ;;
+
+ *)
+ ld_shlibs_F77=no
+ ;;
esac
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_direct=yes
- hardcode_minus_L=yes # Not in the search PATH, but as the default
- # location of the library.
- export_dynamic_flag_spec='${wl}-E'
- ;;
+ fi
- irix5* | irix6*)
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- link_all_deplibs=yes
- ;;
+echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
+echo "${ECHO_T}$ld_shlibs_F77" >&6
+test "$ld_shlibs_F77" = no && can_build_shared=no
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
- newsos6)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- hardcode_direct=yes
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_shlibpath_var=no
- ;;
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc_F77" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc_F77=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds_F77 in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
+ $rm conftest*
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl_F77
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag_F77
+ allow_undefined_flag_F77=
+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
+ (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ then
+ archive_cmds_need_lc_F77=no
+ else
+ archive_cmds_need_lc_F77=yes
+ fi
+ allow_undefined_flag_F77=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $rm conftest*
+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
+echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
+ ;;
+ esac
+ fi
+ ;;
+esac
- os2*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- allow_undefined_flag=unsupported
- archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
- osf3*)
- if test "$GCC" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix4* | aix5*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[01] | aix4.[01].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
+ shlibpath_var=LIBPATH
+ fi
+ ;;
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+amigaos*)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
- #Both c and cxx compiler support -rpath directly
- hardcode_libdir_flag_spec='-rpath $libdir'
- fi
- hardcode_libdir_separator=:
- ;;
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
- sco3.2v5*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ;;
+bsdi[45]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $rm \$dlpath'
+ shlibpath_overrides_runpath=yes
- solaris*)
- no_undefined_flag=' -z defs'
- # $CC -shared without GNU ld will not create a library from C++
- # object files and a static libstdc++, better avoid it by now
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_shlibpath_var=no
case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *) # Supported since Solaris 2.6 (maybe 2.5.1?)
- whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
+ ;;
esac
- link_all_deplibs=yes
;;
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
- sysv4)
- if test "x$host_vendor" = xsno; then
- archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
- hardcode_direct=yes # is this really true???
- else
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=no #Motorola manual says yes, but my tests say they lie
- fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- ;;
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+ if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
+ else
+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+ fi
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
- sysv4.3*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var=no
- export_dynamic_flag_spec='-Bexport'
- ;;
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
- sysv5*)
- no_undefined_flag=' -z text'
- # $CC -shared without GNU ld will not create a library from C++
- # object files and a static libstdc++, better avoid it by now
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- hardcode_libdir_flag_spec=
- hardcode_shlibpath_var=no
- runpath_var='LD_RUN_PATH'
- ;;
+freebsd1*)
+ dynamic_linker=no
+ ;;
- uts4*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
- ;;
+kfreebsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
- dgux*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
+freebsd*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ld_shlibs=yes
- fi
+ freebsd3.01* | freebsdelf3.01*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
;;
-
- sysv4.2uw2*)
- archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes
- hardcode_minus_L=no
- hardcode_shlibpath_var=no
- hardcode_runpath_var=yes
- runpath_var=LD_RUN_PATH
+ *) # from 3.2 on
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
;;
+ esac
+ ;;
- sysv5uw7* | unixware7*)
- no_undefined_flag='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case "$host_cpu" in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
else
- archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
*)
- ld_shlibs=no
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
;;
esac
-fi
-echo "$as_me:$LINENO: result: $ld_shlibs" >&5
-echo "${ECHO_T}$ld_shlibs" >&6
-test "$ld_shlibs" = no && can_build_shared=no
-##
-## END FIXME
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+knetbsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+nto-qnx*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+openbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+sco3.2v5*)
+ version_type=osf
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
+echo "${ECHO_T}$dynamic_linker" >&6
+test "$dynamic_linker" = no && can_build_shared=no
-## FIXME: this should be a separate macro
-##
-# Check hardcoding attributes.
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
-hardcode_action=
-if test -n "$hardcode_libdir_flag_spec" || \
- test -n "$runpath_var"; then
+hardcode_action_F77=
+if test -n "$hardcode_libdir_flag_spec_F77" || \
+ test -n "$runpath_var_F77" || \
+ test "X$hardcode_automatic_F77" = "Xyes" ; then
# We can hardcode non-existant directories.
- if test "$hardcode_direct" != no &&
+ if test "$hardcode_direct_F77" != no &&
# If the only mechanism to avoid hardcoding is shlibpath_var, we
# have to relink, otherwise we might link with an installed library
# when we should be linking with a yet-to-be-installed one
- ## test "$hardcode_shlibpath_var" != no &&
- test "$hardcode_minus_L" != no; then
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
+ test "$hardcode_minus_L_F77" != no; then
# Linking always hardcodes the temporary library directory.
- hardcode_action=relink
+ hardcode_action_F77=relink
else
# We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action=immediate
+ hardcode_action_F77=immediate
fi
else
# We cannot hardcode anything, or else we can only hardcode existing
# directories.
- hardcode_action=unsupported
+ hardcode_action_F77=unsupported
+fi
+echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
+echo "${ECHO_T}$hardcode_action_F77" >&6
+
+if test "$hardcode_action_F77" = relink; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
fi
-echo "$as_me:$LINENO: result: $hardcode_action" >&5
-echo "${ECHO_T}$hardcode_action" >&6
-##
-## END FIXME
-## FIXME: this should be a separate macro
-##
striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
@@ -5407,23 +14670,1783 @@ if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
-##
-## END FIXME
+ ;;
+ *)
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ ;;
+ esac
+fi
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
-## FIXME: this should be a separate macro
-##
-# PORTME Fill in your ld.so characteristics
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+ # Now quote all the things that may contain metacharacters while being
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
+ # variables and quote the copies for generation of the libtool script.
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+ old_postinstall_cmds old_postuninstall_cmds \
+ compiler_F77 \
+ CC_F77 \
+ LD_F77 \
+ lt_prog_compiler_wl_F77 \
+ lt_prog_compiler_pic_F77 \
+ lt_prog_compiler_static_F77 \
+ lt_prog_compiler_no_builtin_flag_F77 \
+ export_dynamic_flag_spec_F77 \
+ thread_safe_flag_spec_F77 \
+ whole_archive_flag_spec_F77 \
+ enable_shared_with_static_runtimes_F77 \
+ old_archive_cmds_F77 \
+ old_archive_from_new_cmds_F77 \
+ predep_objects_F77 \
+ postdep_objects_F77 \
+ predeps_F77 \
+ postdeps_F77 \
+ compiler_lib_search_path_F77 \
+ archive_cmds_F77 \
+ archive_expsym_cmds_F77 \
+ postinstall_cmds_F77 \
+ postuninstall_cmds_F77 \
+ old_archive_from_expsyms_cmds_F77 \
+ allow_undefined_flag_F77 \
+ no_undefined_flag_F77 \
+ export_symbols_cmds_F77 \
+ hardcode_libdir_flag_spec_F77 \
+ hardcode_libdir_flag_spec_ld_F77 \
+ hardcode_libdir_separator_F77 \
+ hardcode_automatic_F77 \
+ module_cmds_F77 \
+ module_expsym_cmds_F77 \
+ lt_cv_prog_compiler_c_o_F77 \
+ exclude_expsyms_F77 \
+ include_expsyms_F77; do
+
+ case $var in
+ old_archive_cmds_F77 | \
+ old_archive_from_new_cmds_F77 | \
+ archive_cmds_F77 | \
+ archive_expsym_cmds_F77 | \
+ module_cmds_F77 | \
+ module_expsym_cmds_F77 | \
+ old_archive_from_expsyms_cmds_F77 | \
+ export_symbols_cmds_F77 | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
+ postinstall_cmds | postuninstall_cmds | \
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ # Double-quote double-evaled strings.
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+ ;;
+ *)
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+ ;;
+ esac
+ done
+
+ case $lt_echo in
+ *'\$0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
+ ;;
+ esac
+
+cfgfile="$ofile"
+
+ cat <<__EOF__ >> "$cfgfile"
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_F77
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_F77
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_F77
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_F77
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS="$AS"
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_F77
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_F77
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
+
+# Must we lock files when doing compilation ?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_F77
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_F77
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_F77
+archive_expsym_cmds=$lt_archive_expsym_cmds_F77
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_F77
+module_expsym_cmds=$lt_module_expsym_cmds_F77
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_F77
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_F77
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_F77
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_F77
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_F77
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_F77
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_F77
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_F77
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_F77
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_F77
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_F77
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_F77
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path="$fix_srcfile_path_F77"
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_F77
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_F77
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_F77
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_F77
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
+else
+ # If there is no Makefile yet, we rely on a make rule to execute
+ # `config.status --recheck' to rerun these tests and create the
+ # libtool script then.
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+
+ else
+ tagname=""
+ fi
+ ;;
+
+ GCJ)
+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
+
+
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+objext_GCJ=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}\n"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+CC=${GCJ-"gcj"}
+compiler=$CC
+compiler_GCJ=$CC
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+archive_cmds_need_lc_GCJ=no
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+
+lt_prog_compiler_no_builtin_flag_GCJ=
+
+if test "$GCC" = yes; then
+ lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
+
+
+echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ lt_cv_prog_compiler_rtti_exceptions=no
+ ac_outfile=conftest.$ac_objext
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="-fno-rtti -fno-exceptions"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:15166: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:15170: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s conftest.err; then
+ lt_cv_prog_compiler_rtti_exceptions=yes
+ fi
+ fi
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
+
+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
+ lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
+else
+ :
+fi
+
+fi
+
+lt_prog_compiler_wl_GCJ=
+lt_prog_compiler_pic_GCJ=
+lt_prog_compiler_static_GCJ=
+
+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
+
+ if test "$GCC" = yes; then
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ lt_prog_compiler_static_GCJ='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
+ ;;
+
+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic_GCJ='-fno-common'
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ lt_prog_compiler_can_build_shared_GCJ=no
+ enable_shared=no
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic_GCJ=-Kconform_pic
+ fi
+ ;;
+
+ hpux*)
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic_GCJ='-fPIC'
+ ;;
+ esac
+ ;;
+
+ *)
+ lt_prog_compiler_pic_GCJ='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ else
+ lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ darwin*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ case "$cc_basename" in
+ xlc*)
+ lt_prog_compiler_pic_GCJ='-qnocommon'
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ ;;
+ esac
+ ;;
+
+ mingw* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic_GCJ='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ # PIC (with -KPIC) is the default.
+ lt_prog_compiler_static_GCJ='-non_shared'
+ ;;
+
+ newsos6)
+ lt_prog_compiler_pic_GCJ='-KPIC'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ ;;
+
+ linux*)
+ case $CC in
+ icc* | ecc*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ lt_prog_compiler_pic_GCJ='-KPIC'
+ lt_prog_compiler_static_GCJ='-static'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static_GCJ='-non_shared'
+ ;;
+ esac
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static_GCJ='-non_shared'
+ ;;
+
+ sco3.2v5*)
+ lt_prog_compiler_pic_GCJ='-Kpic'
+ lt_prog_compiler_static_GCJ='-dn'
+ ;;
+
+ solaris*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ lt_prog_compiler_pic_GCJ='-KPIC'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ ;;
+
+ sunos4*)
+ lt_prog_compiler_wl_GCJ='-Qoption ld '
+ lt_prog_compiler_pic_GCJ='-PIC'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ lt_prog_compiler_pic_GCJ='-KPIC'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ lt_prog_compiler_pic_GCJ='-Kconform_pic'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ fi
+ ;;
+
+ uts4*)
+ lt_prog_compiler_pic_GCJ='-pic'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ ;;
+
+ *)
+ lt_prog_compiler_can_build_shared_GCJ=no
+ ;;
+ esac
+ fi
+
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic_GCJ"; then
+
+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
+if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ lt_prog_compiler_pic_works_GCJ=no
+ ac_outfile=conftest.$ac_objext
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:15409: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:15413: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s conftest.err; then
+ lt_prog_compiler_pic_works_GCJ=yes
+ fi
+ fi
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
+echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
+
+if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
+ case $lt_prog_compiler_pic_GCJ in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
+ esac
+else
+ lt_prog_compiler_pic_GCJ=
+ lt_prog_compiler_can_build_shared_GCJ=no
+fi
+
+fi
+case "$host_os" in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic_GCJ=
+ ;;
+ *)
+ lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
+ ;;
+esac
+
+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
+if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ lt_cv_prog_compiler_c_o_GCJ=no
+ $rm -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:15469: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:15473: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test ! -s out/conftest.err; then
+ lt_cv_prog_compiler_c_o_GCJ=yes
+ fi
+ fi
+ chmod u+w .
+ $rm conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
+ $rm out/* && rmdir out
+ cd ..
+ rmdir conftest
+ $rm conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
+
+
+hard_links="nottested"
+if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
+ hard_links=yes
+ $rm conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ echo "$as_me:$LINENO: result: $hard_links" >&5
+echo "${ECHO_T}$hard_links" >&6
+ if test "$hard_links" = no; then
+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+
+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
+
+ runpath_var=
+ allow_undefined_flag_GCJ=
+ enable_shared_with_static_runtimes_GCJ=no
+ archive_cmds_GCJ=
+ archive_expsym_cmds_GCJ=
+ old_archive_From_new_cmds_GCJ=
+ old_archive_from_expsyms_cmds_GCJ=
+ export_dynamic_flag_spec_GCJ=
+ whole_archive_flag_spec_GCJ=
+ thread_safe_flag_spec_GCJ=
+ hardcode_libdir_flag_spec_GCJ=
+ hardcode_libdir_flag_spec_ld_GCJ=
+ hardcode_libdir_separator_GCJ=
+ hardcode_direct_GCJ=no
+ hardcode_minus_L_GCJ=no
+ hardcode_shlibpath_var_GCJ=unsupported
+ link_all_deplibs_GCJ=unknown
+ hardcode_automatic_GCJ=no
+ module_cmds_GCJ=
+ module_expsym_cmds_GCJ=
+ always_export_symbols_GCJ=no
+ export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ include_expsyms_GCJ=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ ld_shlibs_GCJ=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix3* | aix4* | aix5*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs_GCJ=no
+ cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_minus_L_GCJ=yes
+
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
+ # that the semantics of dynamic libraries on AmigaOS, at least up
+ # to version 4, is to share data among multiple programs linked
+ # with the same dynamic library. Since this doesn't match the
+ # behavior of shared libraries on other platforms, we can't use
+ # them.
+ ld_shlibs_GCJ=no
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag_GCJ=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ ld_shlibs_GCJ=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ allow_undefined_flag_GCJ=unsupported
+ always_export_symbols_GCJ=no
+ enable_shared_with_static_runtimes_GCJ=yes
+ export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris* | sysv5*)
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+ ld_shlibs_GCJ=no
+ cat <<EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs_GCJ=no
+ fi
+ ;;
+
+ sunos4*)
+ archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct_GCJ=yes
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ linux*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_cmds_GCJ="$tmp_archive_cmds"
+ supports_anon_versioning=no
+ case `$LD -v 2>/dev/null` in
+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+ if test $supports_anon_versioning = yes; then
+ archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+$echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ else
+ archive_expsym_cmds_GCJ="$tmp_archive_cmds"
+ fi
+ else
+ ld_shlibs_GCJ=no
+ fi
+ ;;
+
+ *)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs_GCJ=no
+ fi
+ ;;
+ esac
+
+ if test "$ld_shlibs_GCJ" = yes; then
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
+ export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ whole_archive_flag_spec_GCJ=
+ fi
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ allow_undefined_flag_GCJ=unsupported
+ always_export_symbols_GCJ=yes
+ archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L_GCJ=yes
+ if test "$GCC" = yes && test -z "$link_static_flag"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct_GCJ=unsupported
+ fi
+ ;;
+
+ aix4* | aix5*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
+ export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds_GCJ=''
+ hardcode_direct_GCJ=yes
+ hardcode_libdir_separator_GCJ=':'
+ link_all_deplibs_GCJ=yes
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.012|aix4.012.*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ hardcode_direct_GCJ=yes
+ else
+ # We have old collect2
+ hardcode_direct_GCJ=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L_GCJ=yes
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_libdir_separator_GCJ=
+ fi
+ esac
+ shared_flag='-shared'
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols_GCJ=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag_GCJ='-berok'
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag_GCJ="-z nodefs"
+ archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`; fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag_GCJ=' ${wl}-bernotok'
+ allow_undefined_flag_GCJ=' ${wl}-berok'
+ # -bexpall does not export symbols beginning with underscore (_)
+ always_export_symbols_GCJ=yes
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec_GCJ=' '
+ archive_cmds_need_lc_GCJ=yes
+ # This is similar to how AIX traditionally builds it's shared libraries.
+ archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_minus_L_GCJ=yes
+ # see comment about different semantics on the GNU ld section
+ ld_shlibs_GCJ=no
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec_GCJ=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec_GCJ=' '
+ allow_undefined_flag_GCJ=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ old_archive_From_new_cmds_GCJ='true'
+ # FIXME: Should let the user specify the lib program.
+ old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
+ fix_srcfile_path='`cygpath -w "$srcfile"`'
+ enable_shared_with_static_runtimes_GCJ=yes
+ ;;
+
+ darwin* | rhapsody*)
+ case "$host_os" in
+ rhapsody* | darwin1.[012])
+ allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
+ ;;
+ *) # Darwin 1.3 on
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+ allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ else
+ case ${MACOSX_DEPLOYMENT_TARGET} in
+ 10.[012])
+ allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ ;;
+ 10.*)
+ allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ archive_cmds_need_lc_GCJ=no
+ hardcode_direct_GCJ=no
+ hardcode_automatic_GCJ=yes
+ hardcode_shlibpath_var_GCJ=unsupported
+ whole_archive_flag_spec_GCJ=''
+ link_all_deplibs_GCJ=yes
+ if test "$GCC" = yes ; then
+ output_verbose_link_cmd='echo'
+ archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+ module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ else
+ case "$cc_basename" in
+ xlc*)
+ output_verbose_link_cmd='echo'
+ archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+ module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
+ archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ ld_shlibs_GCJ=no
+ ;;
+ esac
+ fi
+ ;;
+
+ dgux*)
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ freebsd1*)
+ ld_shlibs_GCJ=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
+ hardcode_direct_GCJ=yes
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_GCJ=yes
+ hardcode_minus_L_GCJ=yes
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | kfreebsd*-gnu)
+ archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
+ hardcode_direct_GCJ=yes
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator_GCJ=:
+ hardcode_direct_GCJ=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L_GCJ=yes
+ export_dynamic_flag_spec_GCJ='${wl}-E'
+ ;;
+
+ hpux10* | hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case "$host_cpu" in
+ hppa*64*|ia64*)
+ archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+ ;;
+ *)
+ archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ case "$host_cpu" in
+ hppa*64*)
+ hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
+ hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
+ hardcode_libdir_separator_GCJ=:
+ hardcode_direct_GCJ=no
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+ ia64*)
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_direct_GCJ=no
+ hardcode_shlibpath_var_GCJ=no
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L_GCJ=yes
+ ;;
+ *)
+ hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator_GCJ=:
+ hardcode_direct_GCJ=yes
+ export_dynamic_flag_spec_GCJ='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L_GCJ=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
+ fi
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_GCJ=:
+ link_all_deplibs_GCJ=yes
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
+ hardcode_direct_GCJ=yes
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ newsos6)
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_GCJ=yes
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_GCJ=:
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ openbsd*)
+ hardcode_direct_GCJ=yes
+ hardcode_shlibpath_var_GCJ=no
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec_GCJ='${wl}-E'
+ else
+ case $host_os in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
+ ;;
+ *)
+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_minus_L_GCJ=yes
+ allow_undefined_flag_GCJ=unsupported
+ archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ allow_undefined_flag_GCJ=' -expect_unresolved \*'
+ archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator_GCJ=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+ else
+ allow_undefined_flag_GCJ=' -expect_unresolved \*'
+ archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
+ fi
+ hardcode_libdir_separator_GCJ=:
+ ;;
+
+ sco3.2v5*)
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var_GCJ=no
+ export_dynamic_flag_spec_GCJ='${wl}-Bexport'
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ;;
+
+ solaris*)
+ no_undefined_flag_GCJ=' -z text'
+ if test "$GCC" = yes; then
+ archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+ else
+ archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ fi
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
+ hardcode_shlibpath_var_GCJ=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+ whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
+ esac
+ link_all_deplibs_GCJ=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_direct_GCJ=yes
+ hardcode_minus_L_GCJ=yes
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_GCJ=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ reload_cmds_GCJ='$CC -r -o $output$reload_objs'
+ hardcode_direct_GCJ=no
+ ;;
+ motorola)
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ sysv4.3*)
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var_GCJ=no
+ export_dynamic_flag_spec_GCJ='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var_GCJ=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ld_shlibs_GCJ=yes
+ fi
+ ;;
+
+ sysv4.2uw2*)
+ archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct_GCJ=yes
+ hardcode_minus_L_GCJ=no
+ hardcode_shlibpath_var_GCJ=no
+ hardcode_runpath_var=yes
+ runpath_var=LD_RUN_PATH
+ ;;
+
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
+ no_undefined_flag_GCJ='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ sysv5*)
+ no_undefined_flag_GCJ=' -z text'
+ # $CC -shared without GNU ld will not create a library from C++
+ # object files and a static libstdc++, better avoid it by now
+ archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ hardcode_libdir_flag_spec_GCJ=
+ hardcode_shlibpath_var_GCJ=no
+ runpath_var='LD_RUN_PATH'
+ ;;
+
+ uts4*)
+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
+ *)
+ ld_shlibs_GCJ=no
+ ;;
+ esac
+ fi
+
+echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
+echo "${ECHO_T}$ld_shlibs_GCJ" >&6
+test "$ld_shlibs_GCJ" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc_GCJ" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc_GCJ=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds_GCJ in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
+ $rm conftest*
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl_GCJ
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
+ allow_undefined_flag_GCJ=
+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
+ (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ then
+ archive_cmds_need_lc_GCJ=no
+ else
+ archive_cmds_need_lc_GCJ=yes
+ fi
+ allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $rm conftest*
+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
+echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
+ ;;
+ esac
+ fi
+ ;;
+esac
+
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
+shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
@@ -5433,23 +16456,45 @@ shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
case $host_os in
aix3*)
version_type=linux
- library_names_spec='${libname}${release}.so$versuffix $libname.a'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
shlibpath_var=LIBPATH
- # AIX has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}.so$major'
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
;;
aix4* | aix5*)
version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
if test "$host_cpu" = ia64; then
# AIX 5 supports IA64
- library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
shlibpath_var=LD_LIBRARY_PATH
else
# With GCC up to 2.95.x, collect2 would create an import file
@@ -5458,13 +16503,13 @@ aix4* | aix5*)
# depend on `.', always an invalid library. This was fixed in
# development snapshots of GCC prior to 3.0.
case $host_os in
- aix4 | aix4.[01] | aix4.[01].*)
+ aix4 | aix4.[01] | aix4.[01].*)
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+ :
else
- can_build_shared=no
+ can_build_shared=no
fi
;;
esac
@@ -5472,42 +16517,41 @@ aix4* | aix5*)
# soname into executable. Probably we can add versioning support to
# collect2, so additional links can be useful in future.
if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
- # lib<name>.a to let people know that these are not typical AIX shared libraries.
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
else
# We preserve .a as extension for shared libraries through AIX4.2
# and later when we are not doing run time linking.
library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}.so$major'
+ soname_spec='${libname}${release}${shared_ext}$major'
fi
shlibpath_var=LIBPATH
- deplibs_check_method=pass_all
fi
;;
amigaos*)
library_names_spec='$libname.ixlibrary $libname.a'
# Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
;;
beos*)
- library_names_spec='${libname}.so'
+ library_names_spec='${libname}${shared_ext}'
dynamic_linker="$host_os ld.so"
shlibpath_var=LIBRARY_PATH
;;
-bsdi4*)
+bsdi[45]*)
version_type=linux
need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- export_dynamic_flag_spec=-rdynamic
# the default ld.so.conf also contains /usr/contrib/lib and
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
# libtool to hard-code these into programs
@@ -5515,29 +16559,55 @@ bsdi4*)
cygwin* | mingw* | pw32*)
version_type=windows
+ shrext_cmds=".dll"
need_version=no
need_lib_prefix=no
+
case $GCC,$host_os in
- yes,cygwin*)
+ yes,cygwin* | yes,mingw* | yes,pw32*)
library_names_spec='$libname.dll.a'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
- postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~
- $install_prog .libs/$dlname \$dldir/$dlname'
- postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ $install_prog $dir/$dlname \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
dlpath=$dir/\$dldll~
$rm \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
;;
- yes,mingw*)
- library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
- ;;
- yes,pw32*)
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
- ;;
+
*)
- library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
;;
esac
dynamic_linker='Win32 ld.exe'
@@ -5550,30 +16620,56 @@ darwin* | rhapsody*)
version_type=darwin
need_lib_prefix=no
need_version=no
- # FIXME: Relying on posixy $() will cause problems for
- # cross-compilation, but unfortunately the echo tests do not
- # yet detect zsh echo's removal of \ escapes.
- library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
- soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
shlibpath_overrides_runpath=yes
shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+ if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
+ else
+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+ fi
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
;;
freebsd1*)
dynamic_linker=no
;;
+kfreebsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
+
freebsd*)
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
need_version=no
need_lib_prefix=no
;;
freebsd-*)
- library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
need_version=yes
;;
esac
@@ -5582,7 +16678,11 @@ freebsd*)
freebsd2*)
shlibpath_overrides_runpath=yes
;;
- *)
+ freebsd3.01* | freebsdelf3.01*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ *) # from 3.2 on
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
;;
@@ -5593,8 +16693,8 @@ gnu*)
version_type=linux
need_lib_prefix=no
need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
- soname_spec='${libname}${release}.so$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LD_LIBRARY_PATH
hardcode_into_libs=yes
;;
@@ -5602,33 +16702,75 @@ gnu*)
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions.
- dynamic_linker="$host_os dld.sl"
version_type=sunos
need_lib_prefix=no
need_version=no
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
- soname_spec='${libname}${release}.sl$major'
+ case "$host_cpu" in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
# HP-UX runs *really* slowly unless shared libraries are mode 555.
postinstall_cmds='chmod 555 $lib'
;;
-irix5* | irix6*)
- version_type=irix
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
need_lib_prefix=no
need_version=no
- soname_spec='${libname}${release}.so$major'
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
case $host_os in
- irix5*)
+ irix5* | nonstopux*)
libsuff= shlibsuff=
;;
*)
case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
*) libsuff= shlibsuff= libmagic=never-match;;
esac
;;
@@ -5637,20 +16779,21 @@ irix5* | irix6*)
shlibpath_overrides_runpath=no
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
;;
# No shared lib support for Linux oldld, aout, or coff.
-linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
+linux*oldld* | linux*aout* | linux*coff*)
dynamic_linker=no
;;
# This must be Linux ELF.
-linux-gnu*)
+linux*)
version_type=linux
need_lib_prefix=no
need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
@@ -5659,6 +16802,12 @@ linux-gnu*)
# before this can be enabled.
hardcode_into_libs=yes
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
# We used to test for /lib/ld.so.1 and disable shared libraries on
# powerpc, because MkLinux only supported shared libraries with the
# GNU dynamic linker. Since this was broken with cross compilers,
@@ -5668,17 +16817,29 @@ linux-gnu*)
dynamic_linker='GNU/Linux ld.so'
;;
+knetbsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='GNU ld.so'
+ ;;
+
netbsd*)
version_type=sunos
need_lib_prefix=no
need_version=no
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
dynamic_linker='NetBSD (a.out) ld.so'
else
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
- soname_spec='${libname}${release}.so$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
dynamic_linker='NetBSD ld.elf_so'
fi
shlibpath_var=LD_LIBRARY_PATH
@@ -5688,35 +16849,57 @@ netbsd*)
newsos6)
version_type=linux
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+nto-qnx*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes
;;
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
- library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
;;
os2*)
libname_spec='$name'
+ shrext_cmds=".dll"
need_lib_prefix=no
- library_names_spec='$libname.dll $libname.a'
+ library_names_spec='$libname${shared_ext} $libname.a'
dynamic_linker='OS/2 ld.exe'
shlibpath_var=LIBPATH
;;
osf3* | osf4* | osf5*)
version_type=osf
+ need_lib_prefix=no
need_version=no
- soname_spec='${libname}${release}.so'
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
@@ -5724,8 +16907,8 @@ osf3* | osf4* | osf5*)
sco3.2v5*)
version_type=osf
- soname_spec='${libname}${release}.so$major'
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
shlibpath_var=LD_LIBRARY_PATH
;;
@@ -5733,8 +16916,8 @@ solaris*)
version_type=linux
need_lib_prefix=no
need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes
hardcode_into_libs=yes
@@ -5744,7 +16927,7 @@ solaris*)
sunos4*)
version_type=sunos
- library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes
@@ -5756,12 +16939,18 @@ sunos4*)
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
version_type=linux
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LD_LIBRARY_PATH
case $host_vendor in
sni)
shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
;;
motorola)
need_lib_prefix=no
@@ -5772,31 +16961,22 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
esac
;;
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
sysv4*MP*)
if test -d /usr/nec ;then
version_type=linux
- library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
- soname_spec='$libname.so.$major'
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
shlibpath_var=LD_LIBRARY_PATH
fi
;;
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
*)
dynamic_linker=no
;;
@@ -5804,20 +16984,36 @@ esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no
-##
-## END FIXME
-## FIXME: this should be a separate macro
-##
-# Report the final consequences.
-echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
-echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
-echo "$as_me:$LINENO: result: $can_build_shared" >&5
-echo "${ECHO_T}$can_build_shared" >&6
-##
-## END FIXME
+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
+hardcode_action_GCJ=
+if test -n "$hardcode_libdir_flag_spec_GCJ" || \
+ test -n "$runpath_var_GCJ" || \
+ test "X$hardcode_automatic_GCJ" = "Xyes" ; then
-if test "$hardcode_action" = relink; then
+ # We can hardcode non-existant directories.
+ if test "$hardcode_direct_GCJ" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
+ test "$hardcode_minus_L_GCJ" != no; then
+ # Linking always hardcodes the temporary library directory.
+ hardcode_action_GCJ=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ hardcode_action_GCJ=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ hardcode_action_GCJ=unsupported
+fi
+echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
+echo "${ECHO_T}$hardcode_action_GCJ" >&6
+
+if test "$hardcode_action_GCJ" = relink; then
# Fast installation is not supported
enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
@@ -5826,9 +17022,33 @@ elif test "$shlibpath_overrides_runpath" = yes ||
enable_fast_install=needless
fi
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+striplib=
+old_striplib=
+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+ ;;
+ *)
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ ;;
+ esac
fi
if test "x$enable_dlopen" != xyes; then
@@ -5846,12 +17066,18 @@ else
lt_cv_dlopen_self=yes
;;
- cygwin* | mingw* | pw32*)
+ mingw* | pw32*)
lt_cv_dlopen="LoadLibrary"
lt_cv_dlopen_libs=
;;
- *)
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
@@ -5860,7 +17086,6 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -5884,11 +17109,21 @@ dlopen ();
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -5901,7 +17136,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_dl_dlopen=no
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
@@ -5909,27 +17145,44 @@ echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
- echo "$as_me:$LINENO: checking for dlopen" >&5
-echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
-if test "${ac_cv_func_dlopen+set}" = set; then
+
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ *)
+ echo "$as_me:$LINENO: checking for shl_load" >&5
+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
+if test "${ac_cv_func_shl_load+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define shl_load innocuous_shl_load
+
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlopen (); below.
+ which can conflict with char shl_load (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
+
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
+
+#undef shl_load
+
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
@@ -5937,14 +17190,14 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dlopen ();
+char shl_load ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_dlopen) || defined (__stub___dlopen)
+#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
-char (*f) () = dlopen;
+char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
@@ -5953,58 +17206,143 @@ char (*f) () = dlopen;
int
main ()
{
-return f != dlopen;
+return f != shl_load;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_func_dlopen=yes
+ ac_cv_func_shl_load=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_func_dlopen=no
+ac_cv_func_shl_load=no
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
-echo "${ECHO_T}$ac_cv_func_dlopen" >&6
-if test $ac_cv_func_dlopen = yes; then
- lt_cv_dlopen="dlopen"
+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
+if test $ac_cv_func_shl_load = yes; then
+ lt_cv_dlopen="shl_load"
else
- echo "$as_me:$LINENO: checking for shl_load" >&5
-echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
-if test "${ac_cv_func_shl_load+set}" = set; then
+ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dld_shl_load=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
+if test $ac_cv_lib_dld_shl_load = yes; then
+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
+else
+ echo "$as_me:$LINENO: checking for dlopen" >&5
+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
+if test "${ac_cv_func_dlopen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define dlopen innocuous_dlopen
+
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shl_load (); below.
+ which can conflict with char dlopen (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
+
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
+
+#undef dlopen
+
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
@@ -6012,14 +17350,14 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char shl_load ();
+char dlopen ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_shl_load) || defined (__stub___shl_load)
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
-char (*f) () = shl_load;
+char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
@@ -6028,36 +17366,114 @@ char (*f) () = shl_load;
int
main ()
{
-return f != shl_load;
+return f != dlopen;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_func_shl_load=yes
+ ac_cv_func_dlopen=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_func_shl_load=no
+ac_cv_func_dlopen=no
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
-echo "${ECHO_T}$ac_cv_func_shl_load" >&6
-if test $ac_cv_func_shl_load = yes; then
- lt_cv_dlopen="shl_load"
+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
+echo "${ECHO_T}$ac_cv_func_dlopen" >&6
+if test $ac_cv_func_dlopen = yes; then
+ lt_cv_dlopen="dlopen"
+else
+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
@@ -6067,7 +17483,6 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld $LIBS"
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -6091,11 +17506,21 @@ dlopen ();
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -6108,7 +17533,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_svld_dlopen=no
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
@@ -6116,15 +17542,14 @@ echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
- echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
-echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
-if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld $LIBS"
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -6137,40 +17562,51 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char shl_load ();
+char dld_link ();
int
main ()
{
-shl_load ();
+dld_link ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_dld_shl_load=yes
+ ac_cv_lib_dld_dld_link=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_lib_dld_shl_load=no
+ac_cv_lib_dld_dld_link=no
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
-echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
-if test $ac_cv_lib_dld_shl_load = yes; then
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
+if test $ac_cv_lib_dld_dld_link = yes; then
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi
@@ -6186,6 +17622,9 @@ fi
fi
+
+fi
+
;;
esac
@@ -6198,7 +17637,7 @@ fi
case $lt_cv_dlopen in
dlopen)
save_CPPFLAGS="$CPPFLAGS"
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
save_LDFLAGS="$LDFLAGS"
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
@@ -6214,10 +17653,10 @@ else
if test "$cross_compiling" = yes; then :
lt_cv_dlopen_self=cross
else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6214 "configure"
+#line 17654 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -6312,10 +17751,10 @@ else
if test "$cross_compiling" = yes; then :
lt_cv_dlopen_self_static=cross
else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6312 "configure"
+#line 17752 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -6419,114 +17858,522 @@ echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
fi
-## FIXME: this should be a separate macro
-##
-if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $archive_cmds in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
-echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
- if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- $rm conftest*
- echo 'static int dummy;' > conftest.$ac_ext
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+ # Now quote all the things that may contain metacharacters while being
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
+ # variables and quote the copies for generation of the libtool script.
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+ old_postinstall_cmds old_postuninstall_cmds \
+ compiler_GCJ \
+ CC_GCJ \
+ LD_GCJ \
+ lt_prog_compiler_wl_GCJ \
+ lt_prog_compiler_pic_GCJ \
+ lt_prog_compiler_static_GCJ \
+ lt_prog_compiler_no_builtin_flag_GCJ \
+ export_dynamic_flag_spec_GCJ \
+ thread_safe_flag_spec_GCJ \
+ whole_archive_flag_spec_GCJ \
+ enable_shared_with_static_runtimes_GCJ \
+ old_archive_cmds_GCJ \
+ old_archive_from_new_cmds_GCJ \
+ predep_objects_GCJ \
+ postdep_objects_GCJ \
+ predeps_GCJ \
+ postdeps_GCJ \
+ compiler_lib_search_path_GCJ \
+ archive_cmds_GCJ \
+ archive_expsym_cmds_GCJ \
+ postinstall_cmds_GCJ \
+ postuninstall_cmds_GCJ \
+ old_archive_from_expsyms_cmds_GCJ \
+ allow_undefined_flag_GCJ \
+ no_undefined_flag_GCJ \
+ export_symbols_cmds_GCJ \
+ hardcode_libdir_flag_spec_GCJ \
+ hardcode_libdir_flag_spec_ld_GCJ \
+ hardcode_libdir_separator_GCJ \
+ hardcode_automatic_GCJ \
+ module_cmds_GCJ \
+ module_expsym_cmds_GCJ \
+ lt_cv_prog_compiler_c_o_GCJ \
+ exclude_expsyms_GCJ \
+ include_expsyms_GCJ; do
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$lt_cv_prog_cc_wl
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- save_allow_undefined_flag=$allow_undefined_flag
- allow_undefined_flag=
- if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
- (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- then
- lt_cv_archive_cmds_need_lc=no
- else
- lt_cv_archive_cmds_need_lc=yes
- fi
- allow_undefined_flag=$save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
-fi
+ case $var in
+ old_archive_cmds_GCJ | \
+ old_archive_from_new_cmds_GCJ | \
+ archive_cmds_GCJ | \
+ archive_expsym_cmds_GCJ | \
+ module_cmds_GCJ | \
+ module_expsym_cmds_GCJ | \
+ old_archive_from_expsyms_cmds_GCJ | \
+ export_symbols_cmds_GCJ | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
+ postinstall_cmds | postuninstall_cmds | \
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ # Double-quote double-evaled strings.
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+ ;;
+ *)
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+ ;;
+ esac
+ done
- echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
-echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
+ case $lt_echo in
+ *'\$0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
;;
esac
-fi
-need_lc=${lt_cv_archive_cmds_need_lc-yes}
-##
-## END FIXME
-## FIXME: this should be a separate macro
-##
-# The second clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- :
+cfgfile="$ofile"
+
+ cat <<__EOF__ >> "$cfgfile"
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_GCJ
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_GCJ
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_GCJ
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_GCJ
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS="$AS"
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_GCJ
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_GCJ
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
+
+# Must we lock files when doing compilation ?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_GCJ
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_GCJ
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_GCJ
+archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_GCJ
+module_expsym_cmds=$lt_module_expsym_cmds_GCJ
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_GCJ
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_GCJ
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_GCJ
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_GCJ
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_GCJ
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_GCJ
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_GCJ
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_GCJ
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_GCJ
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_GCJ
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_GCJ
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path="$fix_srcfile_path_GCJ"
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_GCJ
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_GCJ
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_GCJ
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_GCJ
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
else
# If there is no Makefile yet, we rely on a make rule to execute
# `config.status --recheck' to rerun these tests and create the
# libtool script then.
- test -f Makefile && make "$ltmain"
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
fi
-if test -f "$ltmain"; then
- trap "$rm \"${ofile}T\"; exit 1" 1 2 15
- $rm -f "${ofile}T"
- echo creating $ofile
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+ else
+ tagname=""
+ fi
+ ;;
+
+ RC)
+
+
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+objext_RC=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="$lt_simple_compile_test_code"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+CC=${RC-"windres"}
+compiler=$CC
+compiler_RC=$CC
+lt_cv_prog_compiler_c_o_RC=yes
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
# Now quote all the things that may contain metacharacters while being
# careful not to overquote the AC_SUBSTed values. We take copies of the
# variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS \
- AR AR_FLAGS CC LD LN_S NM SHELL \
- reload_flag reload_cmds wl \
- pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
- thread_safe_flag_spec whole_archive_flag_spec libname_spec \
- library_names_spec soname_spec \
- RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
- old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
- postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
- old_striplib striplib file_magic_cmd export_symbols_cmds \
- deplibs_check_method allow_undefined_flag no_undefined_flag \
- finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
- hardcode_libdir_flag_spec hardcode_libdir_separator \
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
+ old_postinstall_cmds old_postuninstall_cmds \
+ compiler_RC \
+ CC_RC \
+ LD_RC \
+ lt_prog_compiler_wl_RC \
+ lt_prog_compiler_pic_RC \
+ lt_prog_compiler_static_RC \
+ lt_prog_compiler_no_builtin_flag_RC \
+ export_dynamic_flag_spec_RC \
+ thread_safe_flag_spec_RC \
+ whole_archive_flag_spec_RC \
+ enable_shared_with_static_runtimes_RC \
+ old_archive_cmds_RC \
+ old_archive_from_new_cmds_RC \
+ predep_objects_RC \
+ postdep_objects_RC \
+ predeps_RC \
+ postdeps_RC \
+ compiler_lib_search_path_RC \
+ archive_cmds_RC \
+ archive_expsym_cmds_RC \
+ postinstall_cmds_RC \
+ postuninstall_cmds_RC \
+ old_archive_from_expsyms_cmds_RC \
+ allow_undefined_flag_RC \
+ no_undefined_flag_RC \
+ export_symbols_cmds_RC \
+ hardcode_libdir_flag_spec_RC \
+ hardcode_libdir_flag_spec_ld_RC \
+ hardcode_libdir_separator_RC \
+ hardcode_automatic_RC \
+ module_cmds_RC \
+ module_expsym_cmds_RC \
+ lt_cv_prog_compiler_c_o_RC \
+ exclude_expsyms_RC \
+ include_expsyms_RC; do
case $var in
- reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
- extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
+ old_archive_cmds_RC | \
+ old_archive_from_new_cmds_RC | \
+ archive_cmds_RC | \
+ archive_expsym_cmds_RC | \
+ module_cmds_RC | \
+ module_expsym_cmds_RC | \
+ old_archive_from_expsyms_cmds_RC | \
+ export_symbols_cmds_RC | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
postinstall_cmds | postuninstall_cmds | \
- finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
# Double-quote double-evaled strings.
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
;;
@@ -6536,43 +18383,16 @@ if test -f "$ltmain"; then
esac
done
- cat <<__EOF__ > "${ofile}T"
-#! $SHELL
-
-# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
-#
-# Copyright (C) 1996-2000 Free Software Foundation, Inc.
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
+ case $lt_echo in
+ *'\$0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
+ ;;
+ esac
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="sed -e s/^X//"
+cfgfile="$ofile"
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
-
-# ### BEGIN LIBTOOL CONFIG
+ cat <<__EOF__ >> "$cfgfile"
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
@@ -6582,12 +18402,15 @@ SHELL=$lt_SHELL
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$need_lc
-
# Whether or not to build static libraries.
build_old_libs=$enable_static
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_RC
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
+
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
@@ -6602,14 +18425,20 @@ echo=$lt_echo
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
-# The default C compiler.
-CC=$lt_CC
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_RC
# Is the compiler the GNU C compiler?
-with_gcc=$GCC
+with_gcc=$GCC_RC
+
+# An ERE matcher.
+EGREP=$lt_EGREP
# The linker used to build libraries.
-LD=$lt_LD
+LD=$lt_LD_RC
# Whether we need hard or soft links.
LN_S=$lt_LN_S
@@ -6618,7 +18447,7 @@ LN_S=$lt_LN_S
NM=$lt_NM
# A symbol stripping program
-STRIP=$STRIP
+STRIP=$lt_STRIP
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
@@ -6640,7 +18469,7 @@ reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
# How to pass a linker flag through the compiler.
-wl=$lt_wl
+wl=$lt_lt_prog_compiler_wl_RC
# Object file suffix (normally "o").
objext="$ac_objext"
@@ -6648,18 +18477,21 @@ objext="$ac_objext"
# Old archive suffix (normally "a").
libext="$libext"
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
# Executable file suffix (normally "").
exeext="$exeext"
# Additional compiler flags for building library objects.
-pic_flag=$lt_pic_flag
+pic_flag=$lt_lt_prog_compiler_pic_RC
pic_mode=$pic_mode
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_compiler_c_o
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
-# Can we write directly to a .lo ?
-compiler_o_lo=$lt_compiler_o_lo
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
# Must we lock files when doing compilation ?
need_locks=$lt_need_locks
@@ -6680,19 +18512,19 @@ dlopen_self=$enable_dlopen_self
dlopen_self_static=$enable_dlopen_self_static
# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_link_static_flag
+link_static_flag=$lt_lt_prog_compiler_static_RC
# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_no_builtin_flag
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_whole_archive_flag_spec
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_thread_safe_flag_spec
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
# Library versioning type.
version_type=$version_type
@@ -6709,26 +18541,50 @@ soname_spec=$lt_soname_spec
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_old_archive_cmds
+old_archive_cmds=$lt_old_archive_cmds_RC
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
# Commands used to build and install a shared archive.
-archive_cmds=$lt_archive_cmds
-archive_expsym_cmds=$lt_archive_expsym_cmds
+archive_cmds=$lt_archive_cmds_RC
+archive_expsym_cmds=$lt_archive_expsym_cmds_RC
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_RC
+module_expsym_cmds=$lt_module_expsym_cmds_RC
+
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_RC
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_RC
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_RC
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_RC
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_RC
+
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
@@ -6736,10 +18592,10 @@ deplibs_check_method=$lt_deplibs_check_method
file_magic_cmd=$lt_file_magic_cmd
# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_allow_undefined_flag
+allow_undefined_flag=$lt_allow_undefined_flag_RC
# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_no_undefined_flag
+no_undefined_flag=$lt_no_undefined_flag_RC
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
@@ -6748,10 +18604,13 @@ finish_cmds=$lt_finish_cmds
finish_eval=$lt_finish_eval
# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_global_symbol_pipe
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
# This is the shared library runtime path variable.
runpath_var=$runpath_var
@@ -6763,36 +18622,45 @@ shlibpath_var=$shlibpath_var
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action
+hardcode_action=$hardcode_action_RC
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_hardcode_libdir_separator
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
-# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
-hardcode_direct=$hardcode_direct
+hardcode_direct=$hardcode_direct_RC
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
-hardcode_minus_L=$hardcode_minus_L
+hardcode_minus_L=$hardcode_minus_L_RC
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var
+hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_RC
# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"
# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$link_all_deplibs
+link_all_deplibs=$link_all_deplibs_RC
# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
@@ -6801,236 +18669,75 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path"
+fix_srcfile_path="$fix_srcfile_path_RC"
# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols
+always_export_symbols=$always_export_symbols_RC
# The commands to list exported symbols.
-export_symbols_cmds=$lt_export_symbols_cmds
+export_symbols_cmds=$lt_export_symbols_cmds_RC
# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds
# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_exclude_expsyms
+exclude_expsyms=$lt_exclude_expsyms_RC
# Symbols that must always be exported.
-include_expsyms=$lt_include_expsyms
+include_expsyms=$lt_include_expsyms_RC
-# ### END LIBTOOL CONFIG
+# ### END LIBTOOL TAG CONFIG: $tagname
__EOF__
- case $host_os in
- aix3*)
- cat <<\EOF >> "${ofile}T"
-# AIX sometimes has problems with the GCC collect2 program. For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
+else
+ # If there is no Makefile yet, we rely on a make rule to execute
+ # `config.status --recheck' to rerun these tests and create the
+ # libtool script then.
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
fi
-EOF
- ;;
- esac
- case $host_os in
- cygwin* | mingw* | pw32* | os2*)
- cat <<'EOF' >> "${ofile}T"
- # This is a source program that is used to create dlls on Windows
- # Don't remove nor modify the starting and closing comments
-# /* ltdll.c starts here */
-# #define WIN32_LEAN_AND_MEAN
-# #include <windows.h>
-# #undef WIN32_LEAN_AND_MEAN
-# #include <stdio.h>
-#
-# #ifndef __CYGWIN__
-# # ifdef __CYGWIN32__
-# # define __CYGWIN__ __CYGWIN32__
-# # endif
-# #endif
-#
-# #ifdef __cplusplus
-# extern "C" {
-# #endif
-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
-# #ifdef __cplusplus
-# }
-# #endif
-#
-# #ifdef __CYGWIN__
-# #include <cygwin/cygwin_dll.h>
-# DECLARE_CYGWIN_DLL( DllMain );
-# #endif
-# HINSTANCE __hDllInstance_base;
-#
-# BOOL APIENTRY
-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
-# {
-# __hDllInstance_base = hInst;
-# return TRUE;
-# }
-# /* ltdll.c ends here */
- # This is a source program that is used to create import libraries
- # on Windows for dlls which lack them. Don't remove nor modify the
- # starting and closing comments
-# /* impgen.c starts here */
-# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
-#
-# This file is part of GNU libtool.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-# */
-#
-# #include <stdio.h> /* for printf() */
-# #include <unistd.h> /* for open(), lseek(), read() */
-# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
-# #include <string.h> /* for strdup() */
-#
-# /* O_BINARY isn't required (or even defined sometimes) under Unix */
-# #ifndef O_BINARY
-# #define O_BINARY 0
-# #endif
-#
-# static unsigned int
-# pe_get16 (fd, offset)
-# int fd;
-# int offset;
-# {
-# unsigned char b[2];
-# lseek (fd, offset, SEEK_SET);
-# read (fd, b, 2);
-# return b[0] + (b[1]<<8);
-# }
-#
-# static unsigned int
-# pe_get32 (fd, offset)
-# int fd;
-# int offset;
-# {
-# unsigned char b[4];
-# lseek (fd, offset, SEEK_SET);
-# read (fd, b, 4);
-# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
-# }
-#
-# static unsigned int
-# pe_as32 (ptr)
-# void *ptr;
-# {
-# unsigned char *b = ptr;
-# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
-# }
-#
-# int
-# main (argc, argv)
-# int argc;
-# char *argv[];
-# {
-# int dll;
-# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
-# unsigned long export_rva, export_size, nsections, secptr, expptr;
-# unsigned long name_rvas, nexp;
-# unsigned char *expdata, *erva;
-# char *filename, *dll_name;
-#
-# filename = argv[1];
-#
-# dll = open(filename, O_RDONLY|O_BINARY);
-# if (dll < 1)
-# return 1;
-#
-# dll_name = filename;
-#
-# for (i=0; filename[i]; i++)
-# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
-# dll_name = filename + i +1;
-#
-# pe_header_offset = pe_get32 (dll, 0x3c);
-# opthdr_ofs = pe_header_offset + 4 + 20;
-# num_entries = pe_get32 (dll, opthdr_ofs + 92);
-#
-# if (num_entries < 1) /* no exports */
-# return 1;
-#
-# export_rva = pe_get32 (dll, opthdr_ofs + 96);
-# export_size = pe_get32 (dll, opthdr_ofs + 100);
-# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
-# secptr = (pe_header_offset + 4 + 20 +
-# pe_get16 (dll, pe_header_offset + 4 + 16));
-#
-# expptr = 0;
-# for (i = 0; i < nsections; i++)
-# {
-# char sname[8];
-# unsigned long secptr1 = secptr + 40 * i;
-# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
-# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
-# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
-# lseek(dll, secptr1, SEEK_SET);
-# read(dll, sname, 8);
-# if (vaddr <= export_rva && vaddr+vsize > export_rva)
-# {
-# expptr = fptr + (export_rva - vaddr);
-# if (export_rva + export_size > vaddr + vsize)
-# export_size = vsize - (export_rva - vaddr);
-# break;
-# }
-# }
-#
-# expdata = (unsigned char*)malloc(export_size);
-# lseek (dll, expptr, SEEK_SET);
-# read (dll, expdata, export_size);
-# erva = expdata - export_rva;
-#
-# nexp = pe_as32 (expdata+24);
-# name_rvas = pe_as32 (expdata+32);
-#
-# printf ("EXPORTS\n");
-# for (i = 0; i<nexp; i++)
-# {
-# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
-# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
-# }
-#
-# return 0;
-# }
-# /* impgen.c ends here */
-EOF
- ;;
- esac
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
- sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
+CC="$lt_save_CC"
- mv -f "${ofile}T" "$ofile" || \
- (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
- chmod +x "$ofile"
-fi
-##
-## END FIXME
+ ;;
+ *)
+ { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
+echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+
+ # Append the new tag name to the list of available tags.
+ if test -n "$tagname" ; then
+ available_tags="$available_tags $tagname"
+ fi
+ fi
+ done
+ IFS="$lt_save_ifs"
+ # Now substitute the updated list of available tags.
+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
+ mv "${ofile}T" "$ofile"
+ chmod +x "$ofile"
+ else
+ rm -f "${ofile}T"
+ { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
+echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+fi
@@ -7045,6 +18752,24 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
CC_FOR_BUILD=${CC_FOR_BUILD:-'$(CC)'}
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:-'$(CFLAGS)'}
BUILD_EXEEXT=${BUILD_EXEEXT:-'$(EXEEXT)'}
@@ -7057,7 +18782,6 @@ if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7078,11 +18802,21 @@ main ()
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -7095,12 +18829,11 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7122,7 +18855,6 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7147,7 +18879,6 @@ if test $ac_cv_header_stdc = yes; then
:
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7159,9 +18890,9 @@ cat >>conftest.$ac_ext <<_ACEOF
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
@@ -7172,7 +18903,7 @@ main ()
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
+ || toupper (i) != TOUPPER (i))
exit(2);
exit (0);
}
@@ -7197,7 +18928,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_header_stdc=no
fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
@@ -7228,7 +18959,6 @@ else
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7239,11 +18969,21 @@ $ac_includes_default
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -7256,7 +18996,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
@@ -7264,7 +19004,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7282,6 +19021,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
@@ -7301,33 +19041,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc in
- yes:no )
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
;;
- no:yes )
+ no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
@@ -7338,7 +19077,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- eval "$as_ac_Header=$ac_header_preproc"
+ eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -7361,7 +19100,6 @@ if test "${ac_cv_c_const+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7424,11 +19162,21 @@ main ()
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -7441,7 +19189,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_c_const=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
@@ -7459,7 +19207,6 @@ if test "${ac_cv_type_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -7479,11 +19226,21 @@ if (sizeof (size_t))
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+ (eval $ac_compile) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -7496,7 +19253,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
@@ -7524,21 +19281,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
+
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
@@ -7569,11 +19333,21 @@ return f != $ac_func;
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -7586,7 +19360,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -7610,6 +19385,16 @@ fi
fi;
+# Check whether --enable-unicode-properties or --disable-unicode-properties was given.
+if test "${enable_unicode_properties+set}" = set; then
+ enableval="$enable_unicode_properties"
+ if test "$enableval" = "yes"; then
+ UCP=-DSUPPORT_UCP
+fi
+
+fi;
+
+
# Check whether --enable-newline-is-cr or --disable-newline-is-cr was given.
if test "${enable_newline_is_cr+set}" = set; then
enableval="$enable_newline_is_cr"
@@ -7639,9 +19424,10 @@ fi
fi;
-# Check whether --enable-recursion or --disable-recursion was given.
-if test "${enable_recursion+set}" = set; then
- enableval="$enable_recursion"
+
+# Check whether --enable-stack-for-recursion or --disable-stack-for-recursion was given.
+if test "${enable_stack_for_recursion+set}" = set; then
+ enableval="$enable_stack_for_recursion"
if test "$enableval" = "no"; then
NO_RECURSE=-DNO_RECURSE
fi
@@ -7680,6 +19466,12 @@ fi;
+if test "$UCP" != "" ; then
+ UTF8=-DSUPPORT_UTF8
+fi
+
+
+
@@ -7734,7 +19526,7 @@ _ACEOF
fi
- ac_config_files="$ac_config_files Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in"
+ ac_config_files="$ac_config_files Makefile pcre.h:pcre.in pcre-config:pcre-config.in libpcre.pc:libpcre.pc.in RunTest:RunTest.in"
ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -7764,13 +19556,13 @@ _ACEOF
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
- "s/'/'\\\\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
;;
esac;
} |
@@ -7800,13 +19592,13 @@ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=/{
+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
-s/^\([^=]*=[ ]*\):*/\1/;
+s/^\([^=]*=[ ]*\):*/\1/;
s/:*$//;
-s/^[^=]*=[ ]*$//;
+s/^[^=]*=[ ]*$//;
}'
fi
@@ -7817,7 +19609,7 @@ ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
ac_i=`echo "$ac_i" |
- sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
# 2. Add them.
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
@@ -7861,9 +19653,10 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
+DUALCASE=1; export DUALCASE # for MKS sh
# Support unset when possible.
-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
as_unset=unset
else
as_unset=false
@@ -7882,7 +19675,7 @@ for as_var in \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
do
- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
eval $as_var=C; export $as_var
else
$as_unset $as_var
@@ -8061,16 +19854,17 @@ rm -f conf$$ conf$$.exe conf$$.file
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
+ test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
-as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# IFS
@@ -8097,7 +19891,7 @@ _ASBOX
cat >&5 <<_CSEOF
This file was extended by $as_me, which was
-generated by GNU Autoconf 2.57. Invocation command line was
+generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
@@ -8141,9 +19935,9 @@ Usage: $0 [OPTIONS] [FILE]...
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
- instantiate the configuration file FILE
+ instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
- instantiate the configuration header FILE
+ instantiate the configuration header FILE
Configuration files:
$config_files
@@ -8160,11 +19954,10 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
-configured by $0, generated by GNU Autoconf 2.57,
+configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
+Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
@@ -8266,6 +20059,7 @@ do
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"pcre.h" ) CONFIG_FILES="$CONFIG_FILES pcre.h:pcre.in" ;;
"pcre-config" ) CONFIG_FILES="$CONFIG_FILES pcre-config:pcre-config.in" ;;
+ "libpcre.pc" ) CONFIG_FILES="$CONFIG_FILES libpcre.pc:libpcre.pc.in" ;;
"RunTest" ) CONFIG_FILES="$CONFIG_FILES RunTest:RunTest.in" ;;
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
@@ -8372,14 +20166,29 @@ s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
+s,@EGREP@,$EGREP,;t t
s,@LN_S@,$LN_S,;t t
s,@ECHO@,$ECHO,;t t
+s,@AR@,$AR,;t t
+s,@ac_ct_AR@,$ac_ct_AR,;t t
s,@RANLIB@,$RANLIB,;t t
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
s,@STRIP@,$STRIP,;t t
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
+s,@DLLTOOL@,$DLLTOOL,;t t
+s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
+s,@AS@,$AS,;t t
+s,@ac_ct_AS@,$ac_ct_AS,;t t
+s,@OBJDUMP@,$OBJDUMP,;t t
+s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
s,@CPP@,$CPP,;t t
-s,@EGREP@,$EGREP,;t t
+s,@CXX@,$CXX,;t t
+s,@CXXFLAGS@,$CXXFLAGS,;t t
+s,@ac_ct_CXX@,$ac_ct_CXX,;t t
+s,@CXXCPP@,$CXXCPP,;t t
+s,@F77@,$F77,;t t
+s,@FFLAGS@,$FFLAGS,;t t
+s,@ac_ct_F77@,$ac_ct_F77,;t t
s,@LIBTOOL@,$LIBTOOL,;t t
s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
@@ -8399,6 +20208,7 @@ s,@PCRE_VERSION@,$PCRE_VERSION,;t t
s,@PCRE_LIB_VERSION@,$PCRE_LIB_VERSION,;t t
s,@PCRE_POSIXLIB_VERSION@,$PCRE_POSIXLIB_VERSION,;t t
s,@POSIX_MALLOC_THRESHOLD@,$POSIX_MALLOC_THRESHOLD,;t t
+s,@UCP@,$UCP,;t t
s,@UTF8@,$UTF8,;t t
s,@WIN_PREFIX@,$WIN_PREFIX,;t t
s,@ON_WINDOWS@,$ON_WINDOWS,;t t
@@ -8437,9 +20247,9 @@ _ACEOF
(echo ':t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
else
- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
fi
ac_sed_frag=`expr $ac_sed_frag + 1`
ac_beg=$ac_end
@@ -8457,21 +20267,21 @@ for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case $ac_file in
- | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ cat >$tmp/stdin
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
* ) ac_file_in=$ac_file.in ;;
esac
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -8487,10 +20297,10 @@ echo X"$ac_file" |
as_dirs="$as_dir $as_dirs"
as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -8528,12 +20338,45 @@ case $srcdir in
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+ case "$ac_dir" in
+ .) ac_abs_builddir=`pwd`;;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+ case ${ac_top_builddir}. in
+ .) ac_abs_top_builddir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+ case $ac_srcdir in
+ .) ac_abs_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+ case $ac_top_srcdir in
+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ esac;;
+esac
case $INSTALL in
@@ -8555,7 +20398,7 @@ echo "$as_me: creating $ac_file" >&6;}
configure_input="$ac_file. "
fi
configure_input=$configure_input"Generated from `echo $ac_file_in |
- sed 's,.*/,,'` by configure."
+ sed 's,.*/,,'` by configure."
# First look for the input files in the build tree, otherwise in the
# src tree.
@@ -8564,24 +20407,24 @@ echo "$as_me: creating $ac_file" >&6;}
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
- echo $f;;
+ echo "$f";;
*) # Relative
- if test -f "$f"; then
- # Build tree
- echo $f
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo $srcdir/$f
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ if test -f "$f"; then
+ # Build tree
+ echo "$f"
+ elif test -f "$srcdir/$f"; then
+ # Source tree
+ echo "$srcdir/$f"
+ else
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
- fi;;
+ fi;;
esac
done` || { (exit 1); exit 1; }
_ACEOF
@@ -8623,12 +20466,12 @@ cat >>$CONFIG_STATUS <<\_ACEOF
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
-ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
-ac_dB='[ ].*$,\1#\2'
+ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
+ac_dB='[ ].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
-ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'
@@ -8637,11 +20480,11 @@ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case $ac_file in
- | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ cat >$tmp/stdin
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
* ) ac_file_in=$ac_file.in ;;
esac
@@ -8655,28 +20498,29 @@ echo "$as_me: creating $ac_file" >&6;}
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
- echo $f;;
+ # Do quote $f, to prevent DOS paths from being IFS'd.
+ echo "$f";;
*) # Relative
- if test -f "$f"; then
- # Build tree
- echo $f
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo $srcdir/$f
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ if test -f "$f"; then
+ # Build tree
+ echo "$f"
+ elif test -f "$srcdir/$f"; then
+ # Source tree
+ echo "$srcdir/$f"
+ else
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
- fi;;
+ fi;;
esac
done` || { (exit 1); exit 1; }
# Remove the trailing spaces.
- sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
+ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
_ACEOF
@@ -8699,9 +20543,9 @@ s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
_ACEOF
# If some macros were called several times there might be several times
@@ -8715,13 +20559,13 @@ rm -f confdef2sed.sed
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >>conftest.undefs <<\_ACEOF
-s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
+s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
_ACEOF
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
-echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
+echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo ' :' >>$CONFIG_STATUS
rm -f conftest.tail
@@ -8730,7 +20574,7 @@ do
# Write a limited-size here document to $tmp/defines.sed.
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
# Speed up: don't consider the non `#define' lines.
- echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
+ echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
# Work around the forget-to-reset-the-flag bug.
echo 't clr' >>$CONFIG_STATUS
echo ': clr' >>$CONFIG_STATUS
@@ -8757,7 +20601,7 @@ do
# Write a limited-size here document to $tmp/undefs.sed.
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
# Speed up: don't consider the non `#undef'
- echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
+ echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
# Work around the forget-to-reset-the-flag bug.
echo 't clr' >>$CONFIG_STATUS
echo ': clr' >>$CONFIG_STATUS
@@ -8791,10 +20635,10 @@ echo "$as_me: $ac_file is unchanged" >&6;}
else
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -8810,10 +20654,10 @@ echo X"$ac_file" |
as_dirs="$as_dir $as_dirs"
as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -8845,16 +20689,41 @@ for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_dest" : 'X\(//\)[^/]' \| \
- X"$ac_dest" : 'X\(//\)$' \| \
- X"$ac_dest" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$ac_dest" : 'X\(//\)[^/]' \| \
+ X"$ac_dest" : 'X\(//\)$' \| \
+ X"$ac_dest" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
+ { if $as_mkdir_p; then
+ mkdir -p "$ac_dir"
+ else
+ as_dir="$ac_dir"
+ as_dirs=
+ while test ! -d "$as_dir"; do
+ as_dirs="$as_dir $as_dirs"
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ done
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+ { (exit 1); exit 1; }; }; }
+
ac_builddir=.
if test "$ac_dir" != .; then
@@ -8880,12 +20749,45 @@ case $srcdir in
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+ case "$ac_dir" in
+ .) ac_abs_builddir=`pwd`;;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+ case ${ac_top_builddir}. in
+ .) ac_abs_top_builddir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+ case $ac_srcdir in
+ .) ac_abs_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+ case $ac_top_srcdir in
+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ esac;;
+esac
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
diff --git a/configure.in b/configure.in
index d32b301..f2e4efd 100644
--- a/configure.in
+++ b/configure.in
@@ -20,9 +20,9 @@ dnl macro, and may be treated as octal constants. Stick to single
dnl digits for minor numbers less than 10. There are unlikely to be
dnl that many releases anyway.
-PCRE_MAJOR=4
-PCRE_MINOR=5
-PCRE_DATE=01-December-2003
+PCRE_MAJOR=5
+PCRE_MINOR=0
+PCRE_DATE=13-Sep-2004
PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
dnl Default values for miscellaneous macros
@@ -38,6 +38,14 @@ PCRE_POSIXLIB_VERSION=0:0:0
dnl Checks for programs.
AC_PROG_CC
+
+dnl The icc compiler has the same options as gcc, so let the rest of the
+dnl configure script think it has gcc when setting up dnl options etc.
+dnl This is a nasty hack which no longer seems necessary with the update
+dnl to the latest libtool files, so I have commented it out.
+dnl
+dnl if test "$CC" = "icc" ; then GCC=yes ; fi
+
AC_PROG_INSTALL
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
@@ -79,6 +87,15 @@ if test "$enableval" = "yes"; then
fi
)
+dnl Handle --enable-unicode-properties
+
+AC_ARG_ENABLE(unicode-properties,
+[ --enable-unicode-properties enable Unicode properties support],
+if test "$enableval" = "yes"; then
+ UCP=-DSUPPORT_UCP
+fi
+)
+
dnl Handle --enable-newline-is-cr
AC_ARG_ENABLE(newline-is-cr,
@@ -107,7 +124,8 @@ fi
)
dnl Handle --disable-stack-for-recursion
-AC_ARG_ENABLE(recursion,
+
+AC_ARG_ENABLE(stack-for-recursion,
[ --disable-stack-for-recursion disable use of stack recursion when matching],
if test "$enableval" = "no"; then
NO_RECURSE=-DNO_RECURSE
@@ -143,6 +161,12 @@ dnl Now arrange to build libtool
AC_PROG_LIBTOOL
+dnl Unicode character property support implies UTF-8 support
+
+if test "$UCP" != "" ; then
+ UTF8=-DSUPPORT_UTF8
+fi
+
dnl "Export" these variables
AC_SUBST(BUILD_EXEEXT)
@@ -163,6 +187,7 @@ AC_SUBST(PCRE_VERSION)
AC_SUBST(PCRE_LIB_VERSION)
AC_SUBST(PCRE_POSIXLIB_VERSION)
AC_SUBST(POSIX_MALLOC_THRESHOLD)
+AC_SUBST(UCP)
AC_SUBST(UTF8)
dnl Stuff to make MinGW work better. Special treatment is no longer
@@ -198,4 +223,4 @@ if test "x$enable_shared" = "xno" ; then
fi
dnl This must be last; it determines what files are written as well as config.h
-AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])
+AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in libpcre.pc:libpcre.pc.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])
diff --git a/dftables.c b/dftables.c
index 0c9f9a1..8458c60 100644
--- a/dftables.c
+++ b/dftables.c
@@ -8,29 +8,35 @@ and semantics are as close as possible to those of the Perl 5 language.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997-2003 University of Cambridge
+ Copyright (c) 1997-2004 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
-
-See the file Tech.Notes for some information on the internals.
*/
diff --git a/doc/Tech.Notes b/doc/Tech.Notes
index 73c31c7..18eb72b 100644
--- a/doc/Tech.Notes
+++ b/doc/Tech.Notes
@@ -1,6 +1,9 @@
Technical Notes about PCRE
--------------------------
+Historical note 1
+-----------------
+
Many years ago I implemented some regular expression functions to an algorithm
suggested by Martin Richards. These were not Unix-like in form, and were quite
restricted in what they could do by comparison with Perl. The interesting part
@@ -9,12 +12,15 @@ form of an expression was known in advance. The code to apply an expression did
not operate by backtracking, as the original Henry Spencer code and current
Perl code does, but instead checked all possibilities simultaneously by keeping
a list of current states and checking all of them as it advanced through the
-subject string. (In the terminology of Jeffrey Friedl's book, it was a "DFA
-algorithm".) When the pattern was all used up, all remaining states were
+subject string. In the terminology of Jeffrey Friedl's book, it was a "DFA
+algorithm". When the pattern was all used up, all remaining states were
possible matches, and the one matching the longest subset of the subject string
was chosen. This did not necessarily maximize the individual wild portions of
the pattern, as is expected in Unix and Perl-style regular expressions.
+Historical note 2
+-----------------
+
By contrast, the code originally written by Henry Spencer and subsequently
heavily modified for Perl actually compiles the expression twice: once in a
dummy mode in order to find out how much store will be needed, and then for
@@ -23,6 +29,9 @@ optionally, minimizing in Perl) the amount of the subject that matches
individual wild portions of the pattern. This is an "NFA algorithm" in Friedl's
terminology.
+OK, here's the real stuff
+-------------------------
+
For the set of functions that forms PCRE (which are unrelated to those
mentioned above), I tried at first to invent an algorithm that used an amount
of store bounded by a multiple of the number of characters in the pattern, to
@@ -38,8 +47,16 @@ got quite big anyway to handle all the Perl stuff.
The compiled form of a pattern is a vector of bytes, containing items of
variable length. The first byte in an item is an opcode, and the length of the
-item is either implicit in the opcode or contained in the data bytes which
-follow it. A list of all the opcodes follows:
+item is either implicit in the opcode or contained in the data bytes that
+follow it.
+
+In many cases below "two-byte" data values are specified. This is in fact just
+a default. PCRE can be compiled to use 3-byte or 4-byte values (impairing the
+performance). This is necessary only when patterns whose compiled length is
+greater than 64K are going to be processed. In this description, we assume the
+"normal" compilation options.
+
+A list of all the opcodes follows:
Opcodes with no following data
------------------------------
@@ -48,7 +65,7 @@ These items are all just one byte long
OP_END end of pattern
OP_ANY match any character
- OP_ANYBYTE match any single byte, even in UTF-8 mode
+ OP_ANYBYTE match any single byte, even in UTF-8 mode
OP_SOD match start of data: \A
OP_SOM, start of match (subject + offset): \G
OP_CIRC ^ (start of data, or after \n in multiline)
@@ -63,13 +80,14 @@ These items are all just one byte long
OP_EODN match end of data or \n at end: \Z
OP_EOD match end of data: \z
OP_DOLL $ (end of data, or before \n in multiline)
-
+ OP_EXTUNI match an extended Unicode character
+
Repeating single characters
---------------------------
-The common repeats (*, +, ?) when applied to a single character appear as
-two-byte items using the following opcodes:
+The common repeats (*, +, ?) when applied to a single character use the
+following opcodes:
OP_STAR
OP_MINSTAR
@@ -78,6 +96,7 @@ two-byte items using the following opcodes:
OP_QUERY
OP_MINQUERY
+In ASCII mode, these are two-byte items; in UTF-8 mode, the length is variable.
Those with "MIN" in their name are the minimizing versions. Each is followed by
the character that is to be repeated. Other repeats make use of
@@ -109,39 +128,52 @@ byte. The opcodes are:
OP_TYPEEXACT
-Matching a character string
+Match by Unicode property
+-------------------------
+
+OP_PROP and OP_NOTPROP are used for positive and negative matches of a
+character by testing its Unicode property (the \p and \P escape sequences).
+Each is followed by a single byte that encodes the desired property value.
+
+Repeats of these items use the OP_TYPESTAR etc. set of opcodes, followed by two
+bytes: OP_PROP or OP_NOTPROP and then the desired property value.
+
+
+Matching literal characters
---------------------------
-The OP_CHARS opcode is followed by a one-byte count and then that number of
-characters. If there are more than 255 characters in sequence, successive
-instances of OP_CHARS are used.
+The OP_CHAR opcode is followed by a single character that is to be matched
+casefully. For caseless matching, OP_CHARNC is used. In UTF-8 mode, the
+character may be more than one byte long. (Earlier versions of PCRE used
+multi-character strings, but this was changed to allow some new features to be
+added.)
Character classes
-----------------
-If there is only one character, OP_CHARS is used for a positive class,
-and OP_NOT for a negative one (that is, for something like [^a]). However, in
-UTF-8 mode, this applies only to characters with values < 128, because OP_NOT
-is confined to single bytes.
+If there is only one character, OP_CHAR or OP_CHARNC is used for a positive
+class, and OP_NOT for a negative one (that is, for something like [^a]).
+However, in UTF-8 mode, the use of OP_NOT applies only to characters with
+values < 128, because OP_NOT is confined to single bytes.
Another set of repeating opcodes (OP_NOTSTAR etc.) are used for a repeated,
negated, single-character class. The normal ones (OP_STAR etc.) are used for a
repeated positive single-character class.
When there's more than one character in a class and all the characters are less
-than 256, OP_CLASS is used for a positive class, and OP_NCLASS for a negative
+than 256, OP_CLASS is used for a positive class, and OP_NCLASS for a negative
one. In either case, the opcode is followed by a 32-byte bit map containing a 1
bit for every character that is acceptable. The bits are counted from the least
significant end of each byte.
-The reason for having both OP_CLASS and OP_NCLASS is so that, in UTF-8 mode,
-subject characters with values greater than 256 can be handled correctly. For
+The reason for having both OP_CLASS and OP_NCLASS is so that, in UTF-8 mode,
+subject characters with values greater than 256 can be handled correctly. For
OP_CLASS they don't match, whereas for OP_NCLASS they do.
For classes containing characters with values > 255, OP_XCLASS is used. It
optionally uses a bit map (if any characters lie within it), followed by a list
-of pairs and single characters. There is a flag character than indicates
+of pairs and single characters. There is a flag character than indicates
whether it's a positive or a negative class.
@@ -192,14 +224,14 @@ the bracket itself. (They could have all been done like this, but I was making
minimal changes.)
A bracket opcode is followed by two bytes which give the offset to the next
-alternative OP_ALT or, if there aren't any branches, to the matching KET
+alternative OP_ALT or, if there aren't any branches, to the matching OP_KET
opcode. Each OP_ALT is followed by two bytes giving the offset to the next one,
-or to the KET opcode.
+or to the OP_KET opcode.
OP_KET is used for subpatterns that do not repeat indefinitely, while
OP_KETRMIN and OP_KETRMAX are used for indefinite repetitions, minimally or
maximally respectively. All three are followed by two bytes giving (as a
-positive number) the offset back to the matching BRA opcode.
+positive number) the offset back to the matching OP_BRA opcode.
If a subpattern is quantified such that it is permitted to match zero times, it
is preceded by one of OP_BRAZERO or OP_BRAMINZERO. These are single-byte
@@ -207,15 +239,14 @@ opcodes which tell the matcher that skipping this subpattern entirely is a
valid branch.
A subpattern with an indefinite maximum repetition is replicated in the
-compiled data its minimum number of times (or once with a BRAZERO if the
-minimum is zero), with the final copy terminating with a KETRMIN or KETRMAX as
-appropriate.
+compiled data its minimum number of times (or once with OP_BRAZERO if the
+minimum is zero), with the final copy terminating with OP_KETRMIN or OP_KETRMAX
+as appropriate.
A subpattern with a bounded maximum repetition is replicated in a nested
-fashion up to the maximum number of times, with BRAZERO or BRAMINZERO before
-each replication after the minimum, so that, for example, (abc){2,5} is
-compiled as (abc)(abc)((abc)((abc)(abc)?)?)?. The 99 and 200 bracket limits do
-not apply to these internally generated brackets.
+fashion up to the maximum number of times, with OP_BRAZERO or OP_BRAMINZERO
+before each replication after the minimum, so that, for example, (abc){2,5} is
+compiled as (abc)(abc)((abc)((abc)(abc)?)?)?.
Assertions
@@ -260,8 +291,11 @@ from the start of the whole pattern.
Callout
-------
-OP_CALLOUT is followed by one byte of data that holds a callout number in the
-range 0 to 255.
+OP_CALLOUT is followed by one byte of data that holds a callout number in the
+range 0 to 254 for manual callouts, or 255 for an automatic callout. In both
+cases there follows a two-byte value giving the offset in the pattern to the
+start of the following item, and another two-byte item giving the length of the
+next item.
Changing options
@@ -278,4 +312,4 @@ at compile time, and so does not cause anything to be put into the compiled
data.
Philip Hazel
-August 2003
+September 2004
diff --git a/doc/html/index.html b/doc/html/index.html
index 3751ff0..c0dbf59 100644
--- a/doc/html/index.html
+++ b/doc/html/index.html
@@ -27,8 +27,11 @@ The HTML documentation for PCRE comprises the following pages:
<tr><td><a href="pcregrep.html">pcregrep</a></td>
<td>&nbsp;&nbsp;The <b>pcregrep</b> command</td></tr>
+<tr><td><a href="pcrepartial.html">pcrepartial</a></td>
+ <td>&nbsp;&nbsp;Using PCRE for partial matching</td></tr>
+
<tr><td><a href="pcrepattern.html">pcrepattern</a></td>
- <td>&nbsp;&nbsp;Regular expressions supported by PCRE</td></tr>
+ <td>&nbsp;&nbsp;Specification of the regular expressions supported by PCRE</td></tr>
<tr><td><a href="pcreperform.html">pcreperform</a></td>
<td>&nbsp;&nbsp;Some comments on performance</td></tr>
@@ -36,6 +39,9 @@ The HTML documentation for PCRE comprises the following pages:
<tr><td><a href="pcreposix.html">pcreposix</a></td>
<td>&nbsp;&nbsp;The POSIX API to the PCRE library</td></tr>
+<tr><td><a href="pcreprecompile.html">pcreprecompile</a></td>
+ <td>&nbsp;&nbsp;How to save and re-use compiled patterns</td></tr>
+
<tr><td><a href="pcresample.html">pcresample</a></td>
<td>&nbsp;&nbsp;Description of the sample program</td></tr>
diff --git a/doc/html/pcre.html b/doc/html/pcre.html
index bb0d354..b1caf80 100644
--- a/doc/html/pcre.html
+++ b/doc/html/pcre.html
@@ -3,31 +3,38 @@
<title>pcre specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
-<li><a name="TOC1" href="#SEC1">DESCRIPTION</a>
+<li><a name="TOC1" href="#SEC1">INTRODUCTION</a>
<li><a name="TOC2" href="#SEC2">USER DOCUMENTATION</a>
<li><a name="TOC3" href="#SEC3">LIMITATIONS</a>
-<li><a name="TOC4" href="#SEC4">UTF-8 SUPPORT</a>
+<li><a name="TOC4" href="#SEC4">UTF-8 AND UNICODE PROPERTY SUPPORT</a>
<li><a name="TOC5" href="#SEC5">AUTHOR</a>
</ul>
-<br><a name="SEC1" href="#TOC1">DESCRIPTION</a><br>
+<br><a name="SEC1" href="#TOC1">INTRODUCTION</a><br>
<P>
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with just a few
-differences. The current implementation of PCRE (release 4.x) corresponds
-approximately with Perl 5.8, including support for UTF-8 encoded strings.
-However, this support has to be explicitly enabled; it is not the default.
+differences. The current implementation of PCRE (release 5.x) corresponds
+approximately with Perl 5.8, including support for UTF-8 encoded strings and
+Unicode general category properties. However, this support has to be explicitly
+enabled; it is not the default.
</P>
<P>
-PCRE is written in C and released as a C library. However, a number of people
-have written wrappers and interfaces of various kinds. A C++ class is included
-in these contributions, which can be found in the <i>Contrib</i> directory at
-the primary FTP site, which is:
-</P>
+PCRE is written in C and released as a C library. A number of people have
+written wrappers and interfaces of various kinds. A C++ class is included in
+these contributions, which can be found in the <i>Contrib</i> directory at the
+primary FTP site, which is:
<a href="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre">ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre</a>
+</P>
<P>
Details of exactly which Perl regular expression features are and are not
supported by PCRE are given in separate documents. See the
@@ -41,18 +48,18 @@ Some features of PCRE can be included, excluded, or changed when the library is
built. The
<a href="pcre_config.html"><b>pcre_config()</b></a>
function makes it possible for a client to discover which features are
-available. Documentation about building PCRE for various operating systems can
-be found in the <b>README</b> file in the source distribution.
+available. The features themselves are described in the
+<a href="pcrebuild.html"><b>pcrebuild</b></a>
+page. Documentation about building PCRE for various operating systems can be
+found in the <b>README</b> file in the source distribution.
</P>
<br><a name="SEC2" href="#TOC1">USER DOCUMENTATION</a><br>
<P>
-The user documentation for PCRE has been split up into a number of different
-sections. In the "man" format, each of these is a separate "man page". In the
-HTML format, each is a separate page, linked from the index page. In the plain
-text format, all the sections are concatenated, for ease of searching. The
-sections are as follows:
-</P>
-<P>
+The user documentation for PCRE comprises a number of different sections. In
+the "man" format, each of these is a separate "man page". In the HTML format,
+each is a separate page, linked from the index page. In the plain text format,
+all the sections are concatenated, for ease of searching. The sections are as
+follows:
<pre>
pcre this document
pcreapi details of PCRE's native API
@@ -60,15 +67,14 @@ sections are as follows:
pcrecallout details of the callout feature
pcrecompat discussion of Perl compatibility
pcregrep description of the <b>pcregrep</b> command
- pcrepattern syntax and semantics of supported
- regular expressions
+ pcrepartial details of the partial matching facility
+ pcrepattern syntax and semantics of supported regular expressions
pcreperform discussion of performance issues
pcreposix the POSIX-compatible API
+ pcreprecompile details of saving and re-using precompiled patterns
pcresample discussion of the sample program
- pcretest the <b>pcretest</b> testing command
-</PRE>
-</P>
-<P>
+ pcretest description of the <b>pcretest</b> testing command
+</pre>
In addition, in the "man" and HTML formats, there is a short page for each
library function, listing its arguments and results.
</P>
@@ -84,7 +90,7 @@ regular expressions that are truly enormous, you can compile PCRE with an
internal linkage size of 3 or 4 (see the <b>README</b> file in the source
distribution and the
<a href="pcrebuild.html"><b>pcrebuild</b></a>
-documentation for details). If these cases the limit is substantially larger.
+documentation for details). In these cases the limit is substantially larger.
However, the speed of execution will be slower.
</P>
<P>
@@ -101,12 +107,13 @@ The maximum length of a subject string is the largest positive number that an
integer variable can hold. However, PCRE uses recursion to handle subpatterns
and indefinite repetition. This means that the available stack space may limit
the size of a subject string that can be processed by certain patterns.
-</P>
-<a name="utf8support"></a><br><a name="SEC4" href="#TOC1">UTF-8 SUPPORT</a><br>
+<a name="utf8support"></a></P>
+<br><a name="SEC4" href="#TOC1">UTF-8 AND UNICODE PROPERTY SUPPORT</a><br>
<P>
-Starting at release 3.3, PCRE has had some support for character strings
-encoded in the UTF-8 format. For release 4.0 this has been greatly extended to
-cover most common requirements.
+From release 3.3, PCRE has had some support for character strings encoded in
+the UTF-8 format. For release 4.0 this was greatly extended to cover most
+common requirements, and in release 5.0 additional support for Unicode general
+category properties was added.
</P>
<P>
In order process UTF-8 strings, you must build PCRE to include UTF-8 support in
@@ -122,6 +129,16 @@ library will be a bit bigger, but the additional run time overhead is limited
to testing the PCRE_UTF8 flag in several places, so should not be very large.
</P>
<P>
+If PCRE is built with Unicode character property support (which implies UTF-8
+support), the escape sequences \p{..}, \P{..}, and \X are supported.
+The available properties that can be tested are limited to the general
+category properties such as Lu for an upper case letter or Nd for a decimal
+number. A full list is given in the
+<a href="pcrepattern.html"><b>pcrepattern</b></a>
+documentation. The PCRE library is increased in size by about 90K when Unicode
+property support is included.
+</P>
+<P>
The following comments apply when PCRE is running in UTF-8 mode:
</P>
<P>
@@ -163,16 +180,22 @@ but its use can lead to some strange effects.
7. The character escapes \b, \B, \d, \D, \s, \S, \w, and \W correctly
test characters of any code value, but the characters that PCRE recognizes as
digits, spaces, or word characters remain the same set as before, all with
-values less than 256.
+values less than 256. This remains true even when PCRE includes Unicode
+property support, because to do otherwise would slow down PCRE in many common
+cases. If you really want to test for a wider sense of, say, "digit", you
+must use Unicode property tests such as \p{Nd}.
</P>
<P>
-8. Case-insensitive matching applies only to characters whose values are less
-than 256. PCRE does not support the notion of "case" for higher-valued
-characters.
+8. Similarly, characters that match the POSIX named character classes are all
+low-valued characters.
</P>
<P>
-9. PCRE does not support the use of Unicode tables and properties or the Perl
-escapes \p, \P, and \X.
+9. Case-insensitive matching applies only to characters whose values are less
+than 128, unless PCRE is built with Unicode property support. Even when Unicode
+property support is available, PCRE still uses its own character tables when
+checking the case of low-valued characters, so as not to degrade performance.
+The Unicode property information is used only for characters with higher
+values.
</P>
<br><a name="SEC5" href="#TOC1">AUTHOR</a><br>
<P>
@@ -183,8 +206,9 @@ University Computing Service,
Cambridge CB2 3QG, England.
<br>
Phone: +44 1223 334714
-</P>
-<P>
-Last updated: 20 August 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_compile.html b/doc/html/pcre_compile.html
index e1a4379..0d417a1 100644
--- a/doc/html/pcre_compile.html
+++ b/doc/html/pcre_compile.html
@@ -3,9 +3,15 @@
<title>pcre_compile specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_compile man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -23,8 +29,6 @@ DESCRIPTION
<P>
This function compiles a regular expression into an internal form. Its
arguments are:
-</P>
-<P>
<pre>
<i>pattern</i> A zero-terminated string containing the
regular expression to be compiled
@@ -33,14 +37,11 @@ arguments are:
<i>erroffset</i> Offset in pattern where error was found
<i>tableptr</i> Pointer to character tables, or NULL to
use the built-in default
-</PRE>
-</P>
-<P>
+</pre>
The option bits are:
-</P>
-<P>
<pre>
PCRE_ANCHORED Force pattern anchoring
+ PCRE_AUTO_CALLOUT Compile automatic callouts
PCRE_CASELESS Do caseless matching
PCRE_DOLLAR_ENDONLY $ not to match newline at end
PCRE_DOTALL . matches anything including NL
@@ -55,17 +56,20 @@ The option bits are:
PCRE_NO_UTF8_CHECK Do not check the pattern for UTF-8
validity (only relevant if
PCRE_UTF8 is set)
-</PRE>
-</P>
-<P>
-PCRE must be compiled with UTF-8 support in order to use PCRE_UTF8
-(or PCRE_NO_UTF8_CHECK).
+</pre>
+PCRE must be built with UTF-8 support in order to use PCRE_UTF8 and
+PCRE_NO_UTF8_CHECK.
</P>
<P>
The yield of the function is a pointer to a private data structure that
contains the compiled pattern, or NULL if an error was detected.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_config.html b/doc/html/pcre_config.html
index 3328b79..8d8cc60 100644
--- a/doc/html/pcre_config.html
+++ b/doc/html/pcre_config.html
@@ -3,9 +3,15 @@
<title>pcre_config specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_config man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -22,17 +28,11 @@ DESCRIPTION
This function makes it possible for a client program to find out which optional
features are available in the version of the PCRE library it is using. Its
arguments are as follows:
-</P>
-<P>
<pre>
<i>what</i> A code specifying what information is required
<i>where</i> Points to where to put the data
-</PRE>
-</P>
-<P>
+</pre>
The available codes are:
-</P>
-<P>
<pre>
PCRE_CONFIG_LINK_SIZE Internal link size: 2, 3, or 4
PCRE_CONFIG_MATCH_LIMIT Internal resource limit
@@ -43,14 +43,18 @@ The available codes are:
the POSIX API
PCRE_CONFIG_STACKRECURSE Recursion implementation (1=stack 0=heap)
PCRE_CONFIG_UTF8 Availability of UTF-8 support (1=yes 0=no)
-</PRE>
-</P>
-<P>
+ PCRE_CONFIG_UNICODE_PROPERTIES
+ Availability of Unicode property support
+ (1=yes 0=no)
+</pre>
The function yields 0 on success or PCRE_ERROR_BADOPTION otherwise.
</P>
<P>
There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
-page, and a description of the POSIX API in the
+page and a description of the POSIX API in the
<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_copy_named_substring.html b/doc/html/pcre_copy_named_substring.html
index 3b1da36..2185518 100644
--- a/doc/html/pcre_copy_named_substring.html
+++ b/doc/html/pcre_copy_named_substring.html
@@ -3,9 +3,15 @@
<title>pcre_copy_named_substring specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_copy_named_substring man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -24,8 +30,6 @@ DESCRIPTION
<P>
This is a convenience function for extracting a captured substring, identified
by name, into a given buffer. The arguments are:
-</P>
-<P>
<pre>
<i>code</i> Pattern that was successfully matched
<i>subject</i> Subject that has been successfully matched
@@ -34,13 +38,16 @@ by name, into a given buffer. The arguments are:
<i>stringname</i> Name of the required substring
<i>buffer</i> Buffer to receive the string
<i>buffersize</i> Size of buffer
-</PRE>
-</P>
-<P>
+</pre>
The yield is the length of the substring, PCRE_ERROR_NOMEMORY if the buffer was
too small, or PCRE_ERROR_NOSUBSTRING if the string name is invalid.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_copy_substring.html b/doc/html/pcre_copy_substring.html
index f5b9b55..9aa87c1 100644
--- a/doc/html/pcre_copy_substring.html
+++ b/doc/html/pcre_copy_substring.html
@@ -3,9 +3,15 @@
<title>pcre_copy_substring specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_copy_substring man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -23,8 +29,6 @@ DESCRIPTION
<P>
This is a convenience function for extracting a captured substring into a given
buffer. The arguments are:
-</P>
-<P>
<pre>
<i>subject</i> Subject that has been successfully matched
<i>ovector</i> Offset vector that <b>pcre_exec()</b> used
@@ -32,13 +36,16 @@ buffer. The arguments are:
<i>stringnumber</i> Number of the required substring
<i>buffer</i> Buffer to receive the string
<i>buffersize</i> Size of buffer
-</PRE>
-</P>
-<P>
+</pre>
The yield is the legnth of the string, PCRE_ERROR_NOMEMORY if the buffer was
too small, or PCRE_ERROR_NOSUBSTRING if the string number is invalid.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_exec.html b/doc/html/pcre_exec.html
index cf86dfd..fc3d322 100644
--- a/doc/html/pcre_exec.html
+++ b/doc/html/pcre_exec.html
@@ -3,9 +3,15 @@
<title>pcre_exec specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_exec man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -23,8 +29,6 @@ DESCRIPTION
<P>
This function matches a compiled regular expression against a given subject
string, and returns offsets to capturing subexpressions. Its arguments are:
-</P>
-<P>
<pre>
<i>code</i> Points to the compiled pattern
<i>extra</i> Points to an associated <b>pcre_extra</b> structure,
@@ -35,13 +39,9 @@ string, and returns offsets to capturing subexpressions. Its arguments are:
start matching
<i>options</i> Option bits
<i>ovector</i> Points to a vector of ints for result offsets
- <i>ovecsize</i> Size of the vector (a multiple of 3)
-</PRE>
-</P>
-<P>
+ <i>ovecsize</i> Number of elements in the vector (a multiple of 3)
+</pre>
The options are:
-</P>
-<P>
<pre>
PCRE_ANCHORED Match only at the first position
PCRE_NOTBOL Subject is not the beginning of a line
@@ -50,9 +50,29 @@ The options are:
PCRE_NO_UTF8_CHECK Do not check the subject for UTF-8
validity (only relevant if PCRE_UTF8
was set at compile time)
-</PRE>
+ PCRE_PARTIAL Return PCRE_ERROR_PARTIAL for a partial match
+</pre>
+There are restrictions on what may appear in a pattern when partial matching is
+requested.
+</P>
+<P>
+A <b>pcre_extra</b> structure contains the following fields:
+<pre>
+ <i>flags</i> Bits indicating which fields are set
+ <i>study_data</i> Opaque data from <b>pcre_study()</b>
+ <i>match_limit</i> Limit on internal recursion
+ <i>callout_data</i> Opaque data passed back to callouts
+ <i>tables</i> Points to character tables or is NULL
+</pre>
+The flag bits are PCRE_EXTRA_STUDY_DATA, PCRE_EXTRA_MATCH_LIMIT,
+PCRE_EXTRA_CALLOUT_DATA, and PCRE_EXTRA_TABLES.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_free_substring.html b/doc/html/pcre_free_substring.html
index 08b1607..fe62614 100644
--- a/doc/html/pcre_free_substring.html
+++ b/doc/html/pcre_free_substring.html
@@ -3,9 +3,15 @@
<title>pcre_free_substring specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_free_substring man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -24,6 +30,11 @@ call to <b>pcre_get_substring()</b> or <b>pcre_get_named_substring()</b>. Its
only argument is a pointer to the string.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_free_substring_list.html b/doc/html/pcre_free_substring_list.html
index c130f28..a92c960 100644
--- a/doc/html/pcre_free_substring_list.html
+++ b/doc/html/pcre_free_substring_list.html
@@ -3,9 +3,15 @@
<title>pcre_free_substring_list specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_free_substring_list man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -24,6 +30,11 @@ call to <b>pcre_get_substring_list()</b>. Its only argument is a pointer to the
list of string pointers.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_fullinfo.html b/doc/html/pcre_fullinfo.html
index f43fa65..3488285 100644
--- a/doc/html/pcre_fullinfo.html
+++ b/doc/html/pcre_fullinfo.html
@@ -3,9 +3,15 @@
<title>pcre_fullinfo specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_fullinfo man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -21,48 +27,45 @@ DESCRIPTION
</b><br>
<P>
This function returns information about a compiled pattern. Its arguments are:
-</P>
-<P>
<pre>
- <i>code</i> Compiled regular expression
- <i>extra</i> Result of <b>pcre_study()</b> or NULL
- <i>what</i> What information is required
- <i>where</i> Where to put the information
-</PRE>
-</P>
-<P>
+ <i>code</i> Compiled regular expression
+ <i>extra</i> Result of <b>pcre_study()</b> or NULL
+ <i>what</i> What information is required
+ <i>where</i> Where to put the information
+</pre>
The following information is available:
-</P>
-<P>
<pre>
- PCRE_INFO_BACKREFMAX Number of highest back reference
- PCRE_INFO_CAPTURECOUNT Number of capturing subpatterns
- PCRE_INFO_FIRSTBYTE Fixed first byte for a match, or
- -1 for start of string
- or after newline, or
- -2 otherwise
- PCRE_INFO_FIRSTTABLE Table of first bytes
- (after studying)
- PCRE_INFO_LASTLITERAL Literal last byte required
- PCRE_INFO_NAMECOUNT Number of named subpatterns
- PCRE_INFO_NAMEENTRYSIZE Size of name table entry
- PCRE_INFO_NAMETABLE Pointer to name table
- PCRE_INFO_OPTIONS Options used for compilation
- PCRE_INFO_SIZE Size of compiled pattern
-</PRE>
-</P>
-<P>
+ PCRE_INFO_BACKREFMAX Number of highest back reference
+ PCRE_INFO_CAPTURECOUNT Number of capturing subpatterns
+ PCRE_INFO_DEFAULT_TABLES Pointer to default tables
+ PCRE_INFO_FIRSTBYTE Fixed first byte for a match, or
+ -1 for start of string
+ or after newline, or
+ -2 otherwise
+ PCRE_INFO_FIRSTTABLE Table of first bytes
+ (after studying)
+ PCRE_INFO_LASTLITERAL Literal last byte required
+ PCRE_INFO_NAMECOUNT Number of named subpatterns
+ PCRE_INFO_NAMEENTRYSIZE Size of name table entry
+ PCRE_INFO_NAMETABLE Pointer to name table
+ PCRE_INFO_OPTIONS Options used for compilation
+ PCRE_INFO_SIZE Size of compiled pattern
+ PCRE_INFO_STUDYSIZE Size of study data
+</pre>
The yield of the function is zero on success or:
-</P>
-<P>
<pre>
- PCRE_ERROR_NULL the argument <i>code</i> was NULL
- the argument <i>where</i> was NULL
- PCRE_ERROR_BADMAGIC the "magic number" was not found
- PCRE_ERROR_BADOPTION the value of <i>what</i> was invalid
+ PCRE_ERROR_NULL the argument <i>code</i> was NULL
+ the argument <i>where</i> was NULL
+ PCRE_ERROR_BADMAGIC the "magic number" was not found
+ PCRE_ERROR_BADOPTION the value of <i>what</i> was invalid
</PRE>
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_get_named_substring.html b/doc/html/pcre_get_named_substring.html
index 89a2bee..ff8456b 100644
--- a/doc/html/pcre_get_named_substring.html
+++ b/doc/html/pcre_get_named_substring.html
@@ -3,9 +3,15 @@
<title>pcre_get_named_substring specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_get_named_substring man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -24,8 +30,6 @@ DESCRIPTION
<P>
This is a convenience function for extracting a captured substring by name. The
arguments are:
-</P>
-<P>
<pre>
<i>code</i> Compiled pattern
<i>subject</i> Subject that has been successfully matched
@@ -33,14 +37,18 @@ arguments are:
<i>stringcount</i> Value returned by <b>pcre_exec()</b>
<i>stringname</i> Name of the required substring
<i>stringptr</i> Where to put the string pointer
-</PRE>
-</P>
-<P>
-The yield is the length of the extracted substring, PCRE_ERROR_NOMEMORY if
-sufficient memory could not be obtained, or PCRE_ERROR_NOSUBSTRING if the
-string name is invalid.
+</pre>
+The memory in which the substring is placed is obtained by calling
+<b>pcre_malloc()</b>. The yield of the function is the length of the extracted
+substring, PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
+PCRE_ERROR_NOSUBSTRING if the string name is invalid.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_get_stringnumber.html b/doc/html/pcre_get_stringnumber.html
index ee1c0a9..9c8bea0 100644
--- a/doc/html/pcre_get_stringnumber.html
+++ b/doc/html/pcre_get_stringnumber.html
@@ -3,9 +3,15 @@
<title>pcre_get_stringnumber specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_get_stringnumber man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -22,18 +28,19 @@ DESCRIPTION
<P>
This convenience function finds the number of a named substring capturing
parenthesis in a compiled pattern. Its arguments are:
-</P>
-<P>
<pre>
<i>code</i> Compiled regular expression
<i>name</i> Name whose number is required
-</PRE>
-</P>
-<P>
+</pre>
The yield of the function is the number of the parenthesis if the name is
found, or PCRE_ERROR_NOSUBSTRING otherwise.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_get_substring.html b/doc/html/pcre_get_substring.html
index 2a55c10..14a4132 100644
--- a/doc/html/pcre_get_substring.html
+++ b/doc/html/pcre_get_substring.html
@@ -3,9 +3,15 @@
<title>pcre_get_substring specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_get_substring man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -23,22 +29,24 @@ DESCRIPTION
<P>
This is a convenience function for extracting a captured substring. The
arguments are:
-</P>
-<P>
<pre>
<i>subject</i> Subject that has been successfully matched
<i>ovector</i> Offset vector that <b>pcre_exec()</b> used
<i>stringcount</i> Value returned by <b>pcre_exec()</b>
<i>stringnumber</i> Number of the required substring
<i>stringptr</i> Where to put the string pointer
-</PRE>
-</P>
-<P>
-The yield is the length of the substring, PCRE_ERROR_NOMEMORY if sufficient
-memory could not be obtained, or PCRE_ERROR_NOSUBSTRING if the string number is
-invalid.
+</pre>
+The memory in which the substring is placed is obtained by calling
+<b>pcre_malloc()</b>. The yield of the function is the length of the substring,
+PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
+PCRE_ERROR_NOSUBSTRING if the string number is invalid.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_get_substring_list.html b/doc/html/pcre_get_substring_list.html
index 7e91f56..d278b17 100644
--- a/doc/html/pcre_get_substring_list.html
+++ b/doc/html/pcre_get_substring_list.html
@@ -3,9 +3,15 @@
<title>pcre_get_substring_list specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_get_substring_list man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -22,20 +28,24 @@ DESCRIPTION
<P>
This is a convenience function for extracting a list of all the captured
substrings. The arguments are:
-</P>
-<P>
<pre>
<i>subject</i> Subject that has been successfully matched
<i>ovector</i> Offset vector that <b>pcre_exec</b> used
<i>stringcount</i> Value returned by <b>pcre_exec</b>
<i>listptr</i> Where to put a pointer to the list
-</PRE>
-</P>
-<P>
-The yield is zero on success or PCRE_ERROR_NOMEMORY if sufficient memory could
-not be obtained.
+</pre>
+The memory in which the substrings and the list are placed is obtained by
+calling <b>pcre_malloc()</b>. A pointer to a list of pointers is put in
+the variable whose address is in <i>listptr</i>. The list is terminated by a
+NULL pointer. The yield of the function is zero on success or
+PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_info.html b/doc/html/pcre_info.html
index 97fc59b..6693ffe 100644
--- a/doc/html/pcre_info.html
+++ b/doc/html/pcre_info.html
@@ -3,9 +3,15 @@
<title>pcre_info specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_info man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -23,6 +29,11 @@ DESCRIPTION
This function is obsolete. You should be using <b>pcre_fullinfo()</b> instead.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_maketables.html b/doc/html/pcre_maketables.html
index ba3e026..cf8d69e 100644
--- a/doc/html/pcre_maketables.html
+++ b/doc/html/pcre_maketables.html
@@ -3,9 +3,15 @@
<title>pcre_maketables specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_maketables man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -19,13 +25,18 @@ SYNOPSIS
DESCRIPTION
</b><br>
<P>
-This function builds a set of character tables which can be passed to
-<b>pcre_compile()</b> to override PCRE's internal, built-in tables (which were
-made by <b>pcre_maketables()</b> when PCRE was compiled). You might want to do
-this if you are using a non-standard locale. The function yields a pointer to
-the tables.
+This function builds a set of character tables for character values less than
+256. These can be passed to <b>pcre_compile()</b> to override PCRE's internal,
+built-in tables (which were made by <b>pcre_maketables()</b> when PCRE was
+compiled). You might want to do this if you are using a non-standard locale.
+The function yields a pointer to the tables.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_study.html b/doc/html/pcre_study.html
index f3727d1..d290420 100644
--- a/doc/html/pcre_study.html
+++ b/doc/html/pcre_study.html
@@ -3,9 +3,15 @@
<title>pcre_study specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_study man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -22,13 +28,13 @@ DESCRIPTION
<P>
This function studies a compiled pattern, to see if additional information can
be extracted that might speed up matching. Its arguments are:
-</P>
-<P>
<pre>
<i>code</i> A compiled regular expression
<i>options</i> Options for <b>pcre_study()</b>
<i>errptr</i> Where to put an error message
-</PRE>
+</pre>
+If the function succeeds, it returns a value that can be passed to
+<b>pcre_exec()</b> via its <i>extra</i> argument.
</P>
<P>
If the function returns NULL, either it could not find any additional
@@ -40,6 +46,11 @@ There are currently no options defined; the value of the second argument should
always be zero.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcre_version.html b/doc/html/pcre_version.html
index 35c47cd..7bc8f86 100644
--- a/doc/html/pcre_version.html
+++ b/doc/html/pcre_version.html
@@ -3,9 +3,15 @@
<title>pcre_version specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcre_version man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<br><b>
SYNOPSIS
</b><br>
@@ -20,9 +26,14 @@ DESCRIPTION
</b><br>
<P>
This function returns a character string that gives the version number of the
-PCRE library, and its date of release.
+PCRE library and the date of its release.
</P>
<P>
-There is a complete description of the PCRE API in the
+There is a complete description of the PCRE native API in the
<a href="pcreapi.html"><b>pcreapi</b></a>
+page and a description of the POSIX API in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
page.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcreapi.html b/doc/html/pcreapi.html
index 8ae6fb1..72639f4 100644
--- a/doc/html/pcreapi.html
+++ b/doc/html/pcreapi.html
@@ -3,24 +3,31 @@
<title>pcreapi specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcreapi man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
-<li><a name="TOC1" href="#SEC1">SYNOPSIS OF PCRE API</a>
-<li><a name="TOC2" href="#SEC2">PCRE API</a>
+<li><a name="TOC1" href="#SEC1">PCRE NATIVE API</a>
+<li><a name="TOC2" href="#SEC2">PCRE API OVERVIEW</a>
<li><a name="TOC3" href="#SEC3">MULTITHREADING</a>
-<li><a name="TOC4" href="#SEC4">CHECKING BUILD-TIME OPTIONS</a>
-<li><a name="TOC5" href="#SEC5">COMPILING A PATTERN</a>
-<li><a name="TOC6" href="#SEC6">STUDYING A PATTERN</a>
-<li><a name="TOC7" href="#SEC7">LOCALE SUPPORT</a>
-<li><a name="TOC8" href="#SEC8">INFORMATION ABOUT A PATTERN</a>
-<li><a name="TOC9" href="#SEC9">OBSOLETE INFO FUNCTION</a>
-<li><a name="TOC10" href="#SEC10">MATCHING A PATTERN</a>
-<li><a name="TOC11" href="#SEC11">EXTRACTING CAPTURED SUBSTRINGS BY NUMBER</a>
-<li><a name="TOC12" href="#SEC12">EXTRACTING CAPTURED SUBSTRINGS BY NAME</a>
+<li><a name="TOC4" href="#SEC4">SAVING PRECOMPILED PATTERNS FOR LATER USE</a>
+<li><a name="TOC5" href="#SEC5">CHECKING BUILD-TIME OPTIONS</a>
+<li><a name="TOC6" href="#SEC6">COMPILING A PATTERN</a>
+<li><a name="TOC7" href="#SEC7">STUDYING A PATTERN</a>
+<li><a name="TOC8" href="#SEC8">LOCALE SUPPORT</a>
+<li><a name="TOC9" href="#SEC9">INFORMATION ABOUT A PATTERN</a>
+<li><a name="TOC10" href="#SEC10">OBSOLETE INFO FUNCTION</a>
+<li><a name="TOC11" href="#SEC11">MATCHING A PATTERN</a>
+<li><a name="TOC12" href="#SEC12">EXTRACTING CAPTURED SUBSTRINGS BY NUMBER</a>
+<li><a name="TOC13" href="#SEC13">EXTRACTING CAPTURED SUBSTRINGS BY NAME</a>
</ul>
-<br><a name="SEC1" href="#TOC1">SYNOPSIS OF PCRE API</a><br>
+<br><a name="SEC1" href="#TOC1">PCRE NATIVE API</a><br>
<P>
<b>#include &#60;pcre.h&#62;</b>
</P>
@@ -106,57 +113,62 @@ conversion went wrong.<br>
<P>
<b>int (*pcre_callout)(pcre_callout_block *);</b>
</P>
-<br><a name="SEC2" href="#TOC1">PCRE API</a><br>
+<br><a name="SEC2" href="#TOC1">PCRE API OVERVIEW</a><br>
<P>
PCRE has its own native API, which is described in this document. There is also
a set of wrapper functions that correspond to the POSIX regular expression API.
-These are described in the <b>pcreposix</b> documentation.
+These are described in the
+<a href="pcreposix.html"><b>pcreposix</b></a>
+documentation.
</P>
<P>
The native API function prototypes are defined in the header file <b>pcre.h</b>,
-and on Unix systems the library itself is called <b>libpcre.a</b>, so can be
-accessed by adding <b>-lpcre</b> to the command for linking an application which
-calls it. The header file defines the macros PCRE_MAJOR and PCRE_MINOR to
-contain the major and minor release numbers for the library. Applications can
-use these to include support for different releases.
+and on Unix systems the library itself is called <b>libpcre</b>. It can
+normally be accessed by adding <b>-lpcre</b> to the command for linking an
+application that uses PCRE. The header file defines the macros PCRE_MAJOR and
+PCRE_MINOR to contain the major and minor release numbers for the library.
+Applications can use these to include support for different releases of PCRE.
</P>
<P>
The functions <b>pcre_compile()</b>, <b>pcre_study()</b>, and <b>pcre_exec()</b>
are used for compiling and matching regular expressions. A sample program that
-demonstrates the simplest way of using them is given in the file
-<i>pcredemo.c</i>. The <b>pcresample</b> documentation describes how to run it.
-</P>
-<P>
-There are convenience functions for extracting captured substrings from a
-matched subject string. They are:
+demonstrates the simplest way of using them is provided in the file called
+<i>pcredemo.c</i> in the source distribution. The
+<a href="pcresample.html"><b>pcresample</b></a>
+documentation describes how to run it.
</P>
<P>
+In addition to the main compiling and matching functions, there are convenience
+functions for extracting captured substrings from a matched subject string.
+They are:
<pre>
<b>pcre_copy_substring()</b>
<b>pcre_copy_named_substring()</b>
<b>pcre_get_substring()</b>
<b>pcre_get_named_substring()</b>
<b>pcre_get_substring_list()</b>
-</PRE>
-</P>
-<P>
+ <b>pcre_get_stringnumber()</b>
+</pre>
<b>pcre_free_substring()</b> and <b>pcre_free_substring_list()</b> are also
provided, to free the memory used for extracted strings.
</P>
<P>
-The function <b>pcre_maketables()</b> is used (optionally) to build a set of
-character tables in the current locale for passing to <b>pcre_compile()</b>.
+The function <b>pcre_maketables()</b> is used to build a set of character tables
+in the current locale for passing to <b>pcre_compile()</b> or <b>pcre_exec()</b>.
+This is an optional facility that is provided for specialist use. Most
+commonly, no special tables are passed, in which case internal tables that are
+generated when PCRE is built are used.
</P>
<P>
The function <b>pcre_fullinfo()</b> is used to find out information about a
-compiled pattern; <b>pcre_info()</b> is an obsolete version which returns only
+compiled pattern; <b>pcre_info()</b> is an obsolete version that returns only
some of the available information, but is retained for backwards compatibility.
The function <b>pcre_version()</b> returns a pointer to a string containing the
version of PCRE and its date of release.
</P>
<P>
The global variables <b>pcre_malloc</b> and <b>pcre_free</b> initially contain
-the entry points of the standard <b>malloc()</b> and <b>free()</b> functions
+the entry points of the standard <b>malloc()</b> and <b>free()</b> functions,
respectively. PCRE calls the memory management functions via these variables,
so a calling program can replace them if it wishes to intercept the calls. This
should be done before calling any PCRE functions.
@@ -175,7 +187,8 @@ freed), and always for memory blocks of the same size.
<P>
The global variable <b>pcre_callout</b> initially contains NULL. It can be set
by the caller to a "callout" function, which PCRE will then call at specified
-points during a matching operation. Details are given in the <b>pcrecallout</b>
+points during a matching operation. Details are given in the
+<a href="pcrecallout.html"><b>pcrecallout</b></a>
documentation.
</P>
<br><a name="SEC3" href="#TOC1">MULTITHREADING</a><br>
@@ -189,7 +202,15 @@ callout function pointed to by <b>pcre_callout</b>, are shared by all threads.
The compiled form of a regular expression is not altered during matching, so
the same compiled pattern can safely be used by several threads at once.
</P>
-<br><a name="SEC4" href="#TOC1">CHECKING BUILD-TIME OPTIONS</a><br>
+<br><a name="SEC4" href="#TOC1">SAVING PRECOMPILED PATTERNS FOR LATER USE</a><br>
+<P>
+The compiled form of a regular expression can be saved and re-used at a later
+time, possibly by a different program, and even on a host other than the one on
+which it was compiled. Details are given in the
+<a href="pcreprecompile.html"><b>pcreprecompile</b></a>
+documentation.
+</P>
+<br><a name="SEC5" href="#TOC1">CHECKING BUILD-TIME OPTIONS</a><br>
<P>
<b>int pcre_config(int <i>what</i>, void *<i>where</i>);</b>
</P>
@@ -203,64 +224,47 @@ documentation has more details about these optional features.
The first argument for <b>pcre_config()</b> is an integer, specifying which
information is required; the second argument is a pointer to a variable into
which the information is placed. The following information is available:
-</P>
-<P>
<pre>
PCRE_CONFIG_UTF8
-</PRE>
-</P>
-<P>
+</pre>
The output is an integer that is set to one if UTF-8 support is available;
otherwise it is set to zero.
-</P>
-<P>
+<pre>
+ PCRE_CONFIG_UNICODE_PROPERTIES
+</pre>
+The output is an integer that is set to one if support for Unicode character
+properties is available; otherwise it is set to zero.
<pre>
PCRE_CONFIG_NEWLINE
-</PRE>
-</P>
-<P>
+</pre>
The output is an integer that is set to the value of the code that is used for
the newline character. It is either linefeed (10) or carriage return (13), and
should normally be the standard character for your operating system.
-</P>
-<P>
<pre>
PCRE_CONFIG_LINK_SIZE
-</PRE>
-</P>
-<P>
+</pre>
The output is an integer that contains the number of bytes used for internal
linkage in compiled regular expressions. The value is 2, 3, or 4. Larger values
allow larger regular expressions to be compiled, at the expense of slower
matching. The default value of 2 is sufficient for all but the most massive
patterns, since it allows the compiled pattern to be up to 64K in size.
-</P>
-<P>
<pre>
PCRE_CONFIG_POSIX_MALLOC_THRESHOLD
-</PRE>
-</P>
-<P>
+</pre>
The output is an integer that contains the threshold above which the POSIX
interface uses <b>malloc()</b> for output vectors. Further details are given in
-the <b>pcreposix</b> documentation.
-</P>
-<P>
+the
+<a href="pcreposix.html"><b>pcreposix</b></a>
+documentation.
<pre>
PCRE_CONFIG_MATCH_LIMIT
-</PRE>
-</P>
-<P>
+</pre>
The output is an integer that gives the default limit for the number of
internal matching function calls in a <b>pcre_exec()</b> execution. Further
details are given with <b>pcre_exec()</b> below.
-</P>
-<P>
<pre>
PCRE_CONFIG_STACKRECURSE
-</PRE>
-</P>
-<P>
+</pre>
The output is an integer that is set to one if internal recursion is
implemented by recursive function calls that use the stack to remember their
state. This is the usual way that PCRE is compiled. The output is zero if PCRE
@@ -268,7 +272,7 @@ was compiled to use blocks of data on the heap instead of recursive function
calls. In this case, <b>pcre_stack_malloc</b> and <b>pcre_stack_free</b> are
called to manage memory blocks on the heap, thus avoiding the use of the stack.
</P>
-<br><a name="SEC5" href="#TOC1">COMPILING A PATTERN</a><br>
+<br><a name="SEC6" href="#TOC1">COMPILING A PATTERN</a><br>
<P>
<b>pcre *pcre_compile(const char *<i>pattern</i>, int <i>options</i>,</b>
<b>const char **<i>errptr</i>, int *<i>erroffset</i>,</b>
@@ -277,7 +281,7 @@ called to manage memory blocks on the heap, thus avoiding the use of the stack.
<P>
The function <b>pcre_compile()</b> is called to compile a pattern into an
internal form. The pattern is a C string terminated by a binary zero, and
-is passed in the argument <i>pattern</i>. A pointer to a single block of memory
+is passed in the <i>pattern</i> argument. A pointer to a single block of memory
that is obtained via <b>pcre_malloc</b> is returned. This contains the compiled
code and related data. The <b>pcre</b> type is defined for the returned block;
this is a typedef for a structure whose contents are not externally defined. It
@@ -286,18 +290,20 @@ is up to the caller to free the memory when it is no longer required.
<P>
Although the compiled code of a PCRE regex is relocatable, that is, it does not
depend on memory location, the complete <b>pcre</b> data block is not
-fully relocatable, because it contains a copy of the <i>tableptr</i> argument,
-which is an address (see below).
+fully relocatable, because it may contain a copy of the <i>tableptr</i>
+argument, which is an address (see below).
</P>
<P>
The <i>options</i> argument contains independent bits that affect the
-compilation. It should be zero if no options are required. Some of the options,
-in particular, those that are compatible with Perl, can also be set and unset
-from within the pattern (see the detailed description of regular expressions
-in the <b>pcrepattern</b> documentation). For these options, the contents of the
-<i>options</i> argument specifies their initial settings at the start of
-compilation and execution. The PCRE_ANCHORED option can be set at the time of
-matching as well as at compile time.
+compilation. It should be zero if no options are required. The available
+options are described below. Some of them, in particular, those that are
+compatible with Perl, can also be set and unset from within the pattern (see
+the detailed description in the
+<a href="pcrepattern.html"><b>pcrepattern</b></a>
+documentation). For these options, the contents of the <i>options</i> argument
+specifies their initial settings at the start of compilation and execution. The
+PCRE_ANCHORED option can be set at the time of matching as well as at compile
+time.
</P>
<P>
If <i>errptr</i> is NULL, <b>pcre_compile()</b> returns NULL immediately.
@@ -309,14 +315,14 @@ the error was discovered is placed in the variable pointed to by
</P>
<P>
If the final argument, <i>tableptr</i>, is NULL, PCRE uses a default set of
-character tables which are built when it is compiled, using the default C
-locale. Otherwise, <i>tableptr</i> must be the result of a call to
-<b>pcre_maketables()</b>. See the section on locale support below.
+character tables that are built when PCRE is compiled, using the default C
+locale. Otherwise, <i>tableptr</i> must be an address that is the result of a
+call to <b>pcre_maketables()</b>. This value is stored with the compiled
+pattern, and used again by <b>pcre_exec()</b>, unless another table pointer is
+passed to it. For more discussion, see the section on locale support below.
</P>
<P>
This code fragment shows a typical straightforward call to <b>pcre_compile()</b>:
-</P>
-<P>
<pre>
pcre *re;
const char *error;
@@ -327,64 +333,53 @@ This code fragment shows a typical straightforward call to <b>pcre_compile()</b>
&error, /* for error message */
&erroffset, /* for error offset */
NULL); /* use default character tables */
-</PRE>
-</P>
-<P>
-The following option bits are defined:
-</P>
-<P>
+</pre>
+The following names for option bits are defined in the <b>pcre.h</b> header
+file:
<pre>
PCRE_ANCHORED
-</PRE>
-</P>
-<P>
+</pre>
If this bit is set, the pattern is forced to be "anchored", that is, it is
-constrained to match only at the first matching point in the string which is
+constrained to match only at the first matching point in the string that is
being searched (the "subject string"). This effect can also be achieved by
appropriate constructs in the pattern itself, which is the only way to do it in
Perl.
-</P>
-<P>
+<pre>
+ PCRE_AUTO_CALLOUT
+</pre>
+If this bit is set, <b>pcre_compile()</b> automatically inserts callout items,
+all with number 255, before each pattern item. For discussion of the callout
+facility, see the
+<a href="pcrecallout.html"><b>pcrecallout</b></a>
+documentation.
<pre>
PCRE_CASELESS
-</PRE>
-</P>
-<P>
+</pre>
If this bit is set, letters in the pattern match both upper and lower case
letters. It is equivalent to Perl's /i option, and it can be changed within a
-pattern by a (?i) option setting.
-</P>
-<P>
+pattern by a (?i) option setting. When running in UTF-8 mode, case support for
+high-valued characters is available only when PCRE is built with Unicode
+character property support.
<pre>
PCRE_DOLLAR_ENDONLY
-</PRE>
-</P>
-<P>
+</pre>
If this bit is set, a dollar metacharacter in the pattern matches only at the
end of the subject string. Without this option, a dollar also matches
immediately before the final character if it is a newline (but not before any
other newlines). The PCRE_DOLLAR_ENDONLY option is ignored if PCRE_MULTILINE is
set. There is no equivalent to this option in Perl, and no way to set it within
a pattern.
-</P>
-<P>
<pre>
PCRE_DOTALL
-</PRE>
-</P>
-<P>
+</pre>
If this bit is set, a dot metacharater in the pattern matches all characters,
including newlines. Without it, newlines are excluded. This option is
equivalent to Perl's /s option, and it can be changed within a pattern by a
(?s) option setting. A negative class such as [^a] always matches a newline
character, independent of the setting of this option.
-</P>
-<P>
<pre>
PCRE_EXTENDED
-</PRE>
-</P>
-<P>
+</pre>
If this bit is set, whitespace data characters in the pattern are totally
ignored except when escaped or inside a character class. Whitespace does not
include the VT character (code 11). In addition, characters between an
@@ -397,13 +392,9 @@ This option makes it possible to include comments inside complicated patterns.
Note, however, that this applies only to data characters. Whitespace characters
may never appear within special character sequences in a pattern, for example
within the sequence (?( which introduces a conditional subpattern.
-</P>
-<P>
<pre>
PCRE_EXTRA
-</PRE>
-</P>
-<P>
+</pre>
This option was invented in order to turn on additional functionality of PCRE
that is incompatible with Perl, but it is currently of very little use. When
set, any backslash in a pattern that is followed by a letter that has no
@@ -412,15 +403,11 @@ expansion. By default, as in Perl, a backslash followed by a letter with no
special meaning is treated as a literal. There are at present no other features
controlled by this option. It can also be set by a (?X) option setting within a
pattern.
-</P>
-<P>
<pre>
PCRE_MULTILINE
-</PRE>
-</P>
-<P>
-By default, PCRE treats the subject string as consisting of a single "line" of
-characters (even if it actually contains several newlines). The "start of line"
+</pre>
+By default, PCRE treats the subject string as consisting of a single line of
+characters (even if it actually contains newlines). The "start of line"
metacharacter (^) matches only at the start of the string, while the "end of
line" metacharacter ($) matches only at the end of the string, or before a
terminating newline (unless PCRE_DOLLAR_ENDONLY is set). This is the same as
@@ -433,85 +420,75 @@ string, respectively, as well as at the very start and end. This is equivalent
to Perl's /m option, and it can be changed within a pattern by a (?m) option
setting. If there are no "\n" characters in a subject string, or no
occurrences of ^ or $ in a pattern, setting PCRE_MULTILINE has no effect.
-</P>
-<P>
<pre>
PCRE_NO_AUTO_CAPTURE
-</PRE>
-</P>
-<P>
+</pre>
If this option is set, it disables the use of numbered capturing parentheses in
the pattern. Any opening parenthesis that is not followed by ? behaves as if it
were followed by ?: but named parentheses can still be used for capturing (and
they acquire numbers in the usual way). There is no equivalent of this option
in Perl.
-</P>
-<P>
<pre>
PCRE_UNGREEDY
-</PRE>
-</P>
-<P>
+</pre>
This option inverts the "greediness" of the quantifiers so that they are not
greedy by default, but become greedy if followed by "?". It is not compatible
with Perl. It can also be set by a (?U) option setting within the pattern.
-</P>
-<P>
<pre>
PCRE_UTF8
-</PRE>
-</P>
-<P>
+</pre>
This option causes PCRE to regard both the pattern and the subject as strings
of UTF-8 characters instead of single-byte character strings. However, it is
-available only if PCRE has been built to include UTF-8 support. If not, the use
+available only when PCRE is built to include UTF-8 support. If not, the use
of this option provokes an error. Details of how this option changes the
behaviour of PCRE are given in the
<a href="pcre.html#utf8support">section on UTF-8 support</a>
in the main
<a href="pcre.html"><b>pcre</b></a>
page.
-</P>
-<P>
<pre>
PCRE_NO_UTF8_CHECK
-</PRE>
-</P>
-<P>
+</pre>
When PCRE_UTF8 is set, the validity of the pattern as a UTF-8 string is
automatically checked. If an invalid UTF-8 sequence of bytes is found,
<b>pcre_compile()</b> returns an error. If you already know that your pattern is
valid, and you want to skip this check for performance reasons, you can set the
PCRE_NO_UTF8_CHECK option. When it is set, the effect of passing an invalid
UTF-8 string as a pattern is undefined. It may cause your program to crash.
-Note that there is a similar option for suppressing the checking of subject
-strings passed to <b>pcre_exec()</b>.
+Note that this option can also be passed to <b>pcre_exec()</b>, to suppress the
+UTF-8 validity checking of subject strings.
</P>
-<br><a name="SEC6" href="#TOC1">STUDYING A PATTERN</a><br>
+<br><a name="SEC7" href="#TOC1">STUDYING A PATTERN</a><br>
<P>
<b>pcre_extra *pcre_study(const pcre *<i>code</i>, int <i>options</i>,</b>
<b>const char **<i>errptr</i>);</b>
</P>
<P>
-When a pattern is going to be used several times, it is worth spending more
-time analyzing it in order to speed up the time taken for matching. The
+If a compiled pattern is going to be used several times, it is worth spending
+more time analyzing it in order to speed up the time taken for matching. The
function <b>pcre_study()</b> takes a pointer to a compiled pattern as its first
-argument. If studing the pattern produces additional information that will help
-speed up matching, <b>pcre_study()</b> returns a pointer to a <b>pcre_extra</b>
-block, in which the <i>study_data</i> field points to the results of the study.
+argument. If studying the pattern produces additional information that will
+help speed up matching, <b>pcre_study()</b> returns a pointer to a
+<b>pcre_extra</b> block, in which the <i>study_data</i> field points to the
+results of the study.
</P>
<P>
-The returned value from a <b>pcre_study()</b> can be passed directly to
-<b>pcre_exec()</b>. However, the <b>pcre_extra</b> block also contains other
+The returned value from <b>pcre_study()</b> can be passed directly to
+<b>pcre_exec()</b>. However, a <b>pcre_extra</b> block also contains other
fields that can be set by the caller before the block is passed; these are
-described below. If studying the pattern does not produce any additional
-information, <b>pcre_study()</b> returns NULL. In that circumstance, if the
-calling program wants to pass some of the other fields to <b>pcre_exec()</b>, it
-must set up its own <b>pcre_extra</b> block.
+described
+<a href="#extradata">below</a>
+in the section on matching a pattern.
</P>
<P>
-The second argument contains option bits. At present, no options are defined
-for <b>pcre_study()</b>, and this argument should always be zero.
+If studying the pattern does not produce any additional information,
+<b>pcre_study()</b> returns NULL. In that circumstance, if the calling program
+wants to pass any of the other fields to <b>pcre_exec()</b>, it must set up its
+own <b>pcre_extra</b> block.
+</P>
+<P>
+The second argument of <b>pcre_study()</b> contains option bits. At present, no
+options are defined, and this argument should always be zero.
</P>
<P>
The third argument for <b>pcre_study()</b> is a pointer for an error message. If
@@ -522,55 +499,66 @@ be sure that it has run successfully.
</P>
<P>
This is a typical call to <b>pcre_study</b>():
-</P>
-<P>
<pre>
pcre_extra *pe;
pe = pcre_study(
re, /* result of pcre_compile() */
0, /* no options exist */
&error); /* set to NULL or points to a message */
-</PRE>
-</P>
-<P>
+</pre>
At present, studying a pattern is useful only for non-anchored patterns that do
not have a single fixed starting character. A bitmap of possible starting
-characters is created.
-</P>
-<a name="localesupport"></a><br><a name="SEC7" href="#TOC1">LOCALE SUPPORT</a><br>
+bytes is created.
+<a name="localesupport"></a></P>
+<br><a name="SEC8" href="#TOC1">LOCALE SUPPORT</a><br>
<P>
PCRE handles caseless matching, and determines whether characters are letters,
-digits, or whatever, by reference to a set of tables. When running in UTF-8
-mode, this applies only to characters with codes less than 256. The library
-contains a default set of tables that is created in the default C locale when
-PCRE is compiled. This is used when the final argument of <b>pcre_compile()</b>
-is NULL, and is sufficient for many applications.
-</P>
-<P>
-An alternative set of tables can, however, be supplied. Such tables are built
-by calling the <b>pcre_maketables()</b> function, which has no arguments, in the
-relevant locale. The result can then be passed to <b>pcre_compile()</b> as often
-as necessary. For example, to build and use tables that are appropriate for the
-French locale (where accented characters with codes greater than 128 are
-treated as letters), the following code could be used:
-</P>
-<P>
+digits, or whatever, by reference to a set of tables, indexed by character
+value. (When running in UTF-8 mode, this applies only to characters with codes
+less than 128. Higher-valued codes never match escapes such as \w or \d, but
+can be tested with \p if PCRE is built with Unicode character property
+support.)
+</P>
+<P>
+An internal set of tables is created in the default C locale when PCRE is
+built. This is used when the final argument of <b>pcre_compile()</b> is NULL,
+and is sufficient for many applications. An alternative set of tables can,
+however, be supplied. These may be created in a different locale from the
+default. As more and more applications change to using Unicode, the need for
+this locale support is expected to die away.
+</P>
+<P>
+External tables are built by calling the <b>pcre_maketables()</b> function,
+which has no arguments, in the relevant locale. The result can then be passed
+to <b>pcre_compile()</b> or <b>pcre_exec()</b> as often as necessary. For
+example, to build and use tables that are appropriate for the French locale
+(where accented characters with values greater than 128 are treated as letters),
+the following code could be used:
<pre>
- setlocale(LC_CTYPE, "fr");
+ setlocale(LC_CTYPE, "fr_FR");
tables = pcre_maketables();
re = pcre_compile(..., tables);
-</PRE>
+</pre>
+When <b>pcre_maketables()</b> runs, the tables are built in memory that is
+obtained via <b>pcre_malloc</b>. It is the caller's responsibility to ensure
+that the memory containing the tables remains available for as long as it is
+needed.
</P>
<P>
-The tables are built in memory that is obtained via <b>pcre_malloc</b>. The
-pointer that is passed to <b>pcre_compile</b> is saved with the compiled
+The pointer that is passed to <b>pcre_compile()</b> is saved with the compiled
pattern, and the same tables are used via this pointer by <b>pcre_study()</b>
-and <b>pcre_exec()</b>. Thus, for any single pattern, compilation, studying and
-matching all happen in the same locale, but different patterns can be compiled
-in different locales. It is the caller's responsibility to ensure that the
-memory containing the tables remains available for as long as it is needed.
+and normally also by <b>pcre_exec()</b>. Thus, by default, for any single
+pattern, compilation, studying and matching all happen in the same locale, but
+different patterns can be compiled in different locales.
+</P>
+<P>
+It is possible to pass a table pointer or NULL (indicating the use of the
+internal tables) to <b>pcre_exec()</b>. Although not intended for this purpose,
+this facility could be used to match a pattern in a different locale from the
+one in which it was compiled. Passing table pointers at run time is discussed
+below in the section on matching a pattern.
</P>
-<br><a name="SEC8" href="#TOC1">INFORMATION ABOUT A PATTERN</a><br>
+<br><a name="SEC9" href="#TOC1">INFORMATION ABOUT A PATTERN</a><br>
<P>
<b>int pcre_fullinfo(const pcre *<i>code</i>, const pcre_extra *<i>extra</i>,</b>
<b>int <i>what</i>, void *<i>where</i>);</b>
@@ -587,20 +575,15 @@ the pattern was not studied. The third argument specifies which piece of
information is required, and the fourth argument is a pointer to a variable
to receive the data. The yield of the function is zero for success, or one of
the following negative numbers:
-</P>
-<P>
<pre>
PCRE_ERROR_NULL the argument <i>code</i> was NULL
the argument <i>where</i> was NULL
PCRE_ERROR_BADMAGIC the "magic number" was not found
PCRE_ERROR_BADOPTION the value of <i>what</i> was invalid
-</PRE>
-</P>
-<P>
-Here is a typical call of <b>pcre_fullinfo()</b>, to obtain the length of the
-compiled pattern:
-</P>
-<P>
+</pre>
+The "magic number" is placed at the start of each compiled pattern as an simple
+check against passing an arbitrary memory pointer. Here is a typical call of
+<b>pcre_fullinfo()</b>, to obtain the length of the compiled pattern:
<pre>
int rc;
unsigned long int length;
@@ -609,75 +592,62 @@ compiled pattern:
pe, /* result of pcre_study(), or NULL */
PCRE_INFO_SIZE, /* what is required */
&length); /* where to put the data */
-</PRE>
-</P>
-<P>
+</pre>
The possible values for the third argument are defined in <b>pcre.h</b>, and are
as follows:
-</P>
-<P>
<pre>
PCRE_INFO_BACKREFMAX
-</PRE>
-</P>
-<P>
+</pre>
Return the number of the highest back reference in the pattern. The fourth
argument should point to an <b>int</b> variable. Zero is returned if there are
no back references.
-</P>
-<P>
<pre>
PCRE_INFO_CAPTURECOUNT
-</PRE>
-</P>
-<P>
+</pre>
Return the number of capturing subpatterns in the pattern. The fourth argument
-should point to an \fbint\fR variable.
-</P>
-<P>
+should point to an <b>int</b> variable.
+<pre>
+ PCRE_INFO_DEFAULTTABLES
+</pre>
+Return a pointer to the internal default character tables within PCRE. The
+fourth argument should point to an <b>unsigned char *</b> variable. This
+information call is provided for internal use by the <b>pcre_study()</b>
+function. External callers can cause PCRE to use its internal tables by passing
+a NULL table pointer.
<pre>
PCRE_INFO_FIRSTBYTE
-</PRE>
-</P>
-<P>
+</pre>
Return information about the first byte of any matched string, for a
non-anchored pattern. (This option used to be called PCRE_INFO_FIRSTCHAR; the
old name is still recognized for backwards compatibility.)
</P>
<P>
-If there is a fixed first byte, e.g. from a pattern such as (cat|cow|coyote),
-it is returned in the integer pointed to by <i>where</i>. Otherwise, if either
-</P>
-<P>
+If there is a fixed first byte, for example, from a pattern such as
+(cat|cow|coyote), it is returned in the integer pointed to by <i>where</i>.
+Otherwise, if either
+<br>
+<br>
(a) the pattern was compiled with the PCRE_MULTILINE option, and every branch
starts with "^", or
-</P>
-<P>
+<br>
+<br>
(b) every branch of the pattern starts with ".*" and PCRE_DOTALL is not set
(if it were set, the pattern would be anchored),
-</P>
-<P>
+<br>
+<br>
-1 is returned, indicating that the pattern matches only at the start of a
subject string or after any newline within the string. Otherwise -2 is
returned. For anchored patterns, -2 is returned.
-</P>
-<P>
<pre>
PCRE_INFO_FIRSTTABLE
-</PRE>
-</P>
-<P>
+</pre>
If the pattern was studied, and this resulted in the construction of a 256-bit
table indicating a fixed set of bytes for the first byte in any matching
string, a pointer to the table is returned. Otherwise NULL is returned. The
fourth argument should point to an <b>unsigned char *</b> variable.
-</P>
-<P>
<pre>
PCRE_INFO_LASTLITERAL
-</PRE>
-</P>
-<P>
+</pre>
Return the value of the rightmost literal byte that must exist in any matched
string, other than at its start, if such a byte has been recorded. The fourth
argument should point to an <b>int</b> variable. If there is no such byte, -1 is
@@ -685,22 +655,19 @@ returned. For anchored patterns, a last literal byte is recorded only if it
follows something of variable length. For example, for the pattern
/^a\d+z\d+/ the returned value is "z", but for /^a\dz\d/ the returned value
is -1.
-</P>
-<P>
<pre>
PCRE_INFO_NAMECOUNT
PCRE_INFO_NAMEENTRYSIZE
PCRE_INFO_NAMETABLE
-</PRE>
-</P>
-<P>
+</pre>
PCRE supports the use of named as well as numbered capturing parentheses. The
names are just an additional way of identifying the parentheses, which still
-acquire a number. A caller that wants to extract data from a named subpattern
-must convert the name to a number in order to access the correct pointers in
-the output vector (described with <b>pcre_exec()</b> below). In order to do
-this, it must first use these three values to obtain the name-to-number mapping
-table for the pattern.
+acquire numbers. A convenience function called <b>pcre_get_named_substring()</b>
+is provided for extracting an individual captured substring by name. It is also
+possible to extract the data directly, by first converting the name to a number
+in order to access the correct pointers in the output vector (described with
+<b>pcre_exec()</b> below). To do the conversion, you need to use the
+name-to-number map, which is described by these three values.
</P>
<P>
The map consists of a number of fixed-size entries. PCRE_INFO_NAMECOUNT gives
@@ -712,36 +679,24 @@ are the number of the capturing parenthesis, most significant byte first. The
rest of the entry is the corresponding name, zero terminated. The names are in
alphabetical order. For example, consider the following pattern (assume
PCRE_EXTENDED is set, so white space - including newlines - is ignored):
-</P>
-<P>
<pre>
- (?P&#60;date&#62; (?P&#60;year&#62;(\d\d)?\d\d) -
- (?P&#60;month&#62;\d\d) - (?P&#60;day&#62;\d\d) )
-</PRE>
-</P>
-<P>
+ (?P&#60;date&#62; (?P&#60;year&#62;(\d\d)?\d\d) - (?P&#60;month&#62;\d\d) - (?P&#60;day&#62;\d\d) )
+</pre>
There are four named subpatterns, so the table has four entries, and each entry
in the table is eight bytes long. The table is as follows, with non-printing
-bytes shows in hex, and undefined bytes shown as ??:
-</P>
-<P>
+bytes shows in hexadecimal, and undefined bytes shown as ??:
<pre>
00 01 d a t e 00 ??
00 05 d a y 00 ?? ??
00 04 m o n t h 00
00 02 y e a r 00 ??
-</PRE>
-</P>
-<P>
-When writing code to extract data from named subpatterns, remember that the
-length of each entry may be different for each compiled pattern.
-</P>
-<P>
+</pre>
+When writing code to extract data from named subpatterns using the
+name-to-number map, remember that the length of each entry is likely to be
+different for each compiled pattern.
<pre>
PCRE_INFO_OPTIONS
-</PRE>
-</P>
-<P>
+</pre>
Return a copy of the options with which the pattern was compiled. The fourth
argument should point to an <b>unsigned long int</b> variable. These option bits
are those specified in the call to <b>pcre_compile()</b>, modified by any
@@ -750,44 +705,31 @@ top-level option settings within the pattern itself.
<P>
A pattern is automatically anchored by PCRE if all of its top-level
alternatives begin with one of the following:
-</P>
-<P>
<pre>
^ unless PCRE_MULTILINE is set
\A always
\G always
- .* if PCRE_DOTALL is set and there are no back
- references to the subpattern in which .* appears
-</PRE>
-</P>
-<P>
+ .* if PCRE_DOTALL is set and there are no back references to the subpattern in which .* appears
+</pre>
For such patterns, the PCRE_ANCHORED bit is set in the options returned by
<b>pcre_fullinfo()</b>.
-</P>
-<P>
<pre>
PCRE_INFO_SIZE
-</PRE>
-</P>
-<P>
+</pre>
Return the size of the compiled pattern, that is, the value that was passed as
the argument to <b>pcre_malloc()</b> when PCRE was getting memory in which to
place the compiled data. The fourth argument should point to a <b>size_t</b>
variable.
-</P>
-<P>
<pre>
PCRE_INFO_STUDYSIZE
-</PRE>
-</P>
-<P>
-Returns the size of the data block pointed to by the <i>study_data</i> field in
+</pre>
+Return the size of the data block pointed to by the <i>study_data</i> field in
a <b>pcre_extra</b> block. That is, it is the value that was passed to
<b>pcre_malloc()</b> when PCRE was getting memory into which to place the data
created by <b>pcre_study()</b>. The fourth argument should point to a
<b>size_t</b> variable.
</P>
-<br><a name="SEC9" href="#TOC1">OBSOLETE INFO FUNCTION</a><br>
+<br><a name="SEC10" href="#TOC1">OBSOLETE INFO FUNCTION</a><br>
<P>
<b>int pcre_info(const pcre *<i>code</i>, int *<i>optptr</i>, int</b>
<b>*<i>firstcharptr</i>);</b>
@@ -798,14 +740,10 @@ restrictive to return all the available data about a compiled pattern. New
programs should use <b>pcre_fullinfo()</b> instead. The yield of
<b>pcre_info()</b> is the number of capturing subpatterns, or one of the
following negative numbers:
-</P>
-<P>
<pre>
PCRE_ERROR_NULL the argument <i>code</i> was NULL
PCRE_ERROR_BADMAGIC the "magic number" was not found
-</PRE>
-</P>
-<P>
+</pre>
If the <i>optptr</i> argument is not NULL, a copy of the options with which the
pattern was compiled is placed in the integer it points to (see
PCRE_INFO_OPTIONS above).
@@ -815,7 +753,7 @@ If the pattern is not anchored and the <i>firstcharptr</i> argument is not NULL,
it is used to pass back information about the first character of any matched
string (see PCRE_INFO_FIRSTBYTE above).
</P>
-<br><a name="SEC10" href="#TOC1">MATCHING A PATTERN</a><br>
+<br><a name="SEC11" href="#TOC1">MATCHING A PATTERN</a><br>
<P>
<b>int pcre_exec(const pcre *<i>code</i>, const pcre_extra *<i>extra</i>,</b>
<b>const char *<i>subject</i>, int <i>length</i>, int <i>startoffset</i>,</b>
@@ -823,14 +761,21 @@ string (see PCRE_INFO_FIRSTBYTE above).
</P>
<P>
The function <b>pcre_exec()</b> is called to match a subject string against a
-pre-compiled pattern, which is passed in the <i>code</i> argument. If the
+compiled pattern, which is passed in the <i>code</i> argument. If the
pattern has been studied, the result of the study should be passed in the
<i>extra</i> argument.
</P>
<P>
-Here is an example of a simple call to <b>pcre_exec()</b>:
+In most applications, the pattern will have been compiled (and optionally
+studied) in the same process that calls <b>pcre_exec()</b>. However, it is
+possible to save compiled patterns and study data, and then use them later
+in different processes, possibly even on different hosts. For a discussion
+about this, see the
+<a href="pcreprecompile.html"><b>pcreprecompile</b></a>
+documentation.
</P>
<P>
+Here is an example of a simple call to <b>pcre_exec()</b>:
<pre>
int rc;
int ovector[30];
@@ -841,130 +786,118 @@ Here is an example of a simple call to <b>pcre_exec()</b>:
11, /* the length of the subject string */
0, /* start at offset 0 in the subject */
0, /* default options */
- ovector, /* vector for substring information */
- 30); /* number of elements in the vector */
-</PRE>
+ ovector, /* vector of integers for substring information */
+ 30); /* number of elements in the vector (NOT size in bytes) */
+<a name="extradata"></a></PRE>
</P>
+<br><b>
+Extra data for <b>pcre_exec()</b>
+</b><br>
<P>
If the <i>extra</i> argument is not NULL, it must point to a <b>pcre_extra</b>
data block. The <b>pcre_study()</b> function returns such a block (when it
doesn't return NULL), but you can also create one for yourself, and pass
-additional information in it. The fields in the block are as follows:
-</P>
-<P>
+additional information in it. The fields in a <b>pcre_extra</b> block are as
+follows:
<pre>
unsigned long int <i>flags</i>;
void *<i>study_data</i>;
unsigned long int <i>match_limit</i>;
void *<i>callout_data</i>;
-</PRE>
-</P>
-<P>
+ const unsigned char *<i>tables</i>;
+</pre>
The <i>flags</i> field is a bitmap that specifies which of the other fields
are set. The flag bits are:
-</P>
-<P>
<pre>
PCRE_EXTRA_STUDY_DATA
PCRE_EXTRA_MATCH_LIMIT
PCRE_EXTRA_CALLOUT_DATA
-</PRE>
-</P>
-<P>
+ PCRE_EXTRA_TABLES
+</pre>
Other flag bits should be set to zero. The <i>study_data</i> field is set in the
<b>pcre_extra</b> block that is returned by <b>pcre_study()</b>, together with
-the appropriate flag bit. You should not set this yourself, but you can add to
-the block by setting the other fields.
+the appropriate flag bit. You should not set this yourself, but you may add to
+the block by setting the other fields and their corresponding flag bits.
</P>
<P>
The <i>match_limit</i> field provides a means of preventing PCRE from using up a
vast amount of resources when running patterns that are not going to match,
but which have a very large number of possibilities in their search trees. The
-classic example is the use of nested unlimited repeats. Internally, PCRE uses a
-function called <b>match()</b> which it calls repeatedly (sometimes
-recursively). The limit is imposed on the number of times this function is
-called during a match, which has the effect of limiting the amount of recursion
-and backtracking that can take place. For patterns that are not anchored, the
-count starts from zero for each position in the subject string.
+classic example is the use of nested unlimited repeats.
+</P>
+<P>
+Internally, PCRE uses a function called <b>match()</b> which it calls repeatedly
+(sometimes recursively). The limit is imposed on the number of times this
+function is called during a match, which has the effect of limiting the amount
+of recursion and backtracking that can take place. For patterns that are not
+anchored, the count starts from zero for each position in the subject string.
</P>
<P>
The default limit for the library can be set when PCRE is built; the default
default is 10 million, which handles all but the most extreme cases. You can
-reduce the default by suppling <b>pcre_exec()</b> with a \fRpcre_extra\fR block
+reduce the default by suppling <b>pcre_exec()</b> with a <b>pcre_extra</b> block
in which <i>match_limit</i> is set to a smaller value, and
PCRE_EXTRA_MATCH_LIMIT is set in the <i>flags</i> field. If the limit is
exceeded, <b>pcre_exec()</b> returns PCRE_ERROR_MATCHLIMIT.
</P>
<P>
The <i>pcre_callout</i> field is used in conjunction with the "callout" feature,
-which is described in the <b>pcrecallout</b> documentation.
-</P>
-<P>
-The PCRE_ANCHORED option can be passed in the <i>options</i> argument, whose
-unused bits must be zero. This limits <b>pcre_exec()</b> to matching at the
-first matching position. However, if a pattern was compiled with PCRE_ANCHORED,
-or turned out to be anchored by virtue of its contents, it cannot be made
-unachored at matching time.
-</P>
-<P>
-When PCRE_UTF8 was set at compile time, the validity of the subject as a UTF-8
-string is automatically checked, and the value of <i>startoffset</i> is also
-checked to ensure that it points to the start of a UTF-8 character. If an
-invalid UTF-8 sequence of bytes is found, <b>pcre_exec()</b> returns the error
-PCRE_ERROR_BADUTF8. If <i>startoffset</i> contains an invalid value,
-PCRE_ERROR_BADUTF8_OFFSET is returned.
-</P>
-<P>
-If you already know that your subject is valid, and you want to skip these
-checks for performance reasons, you can set the PCRE_NO_UTF8_CHECK option when
-calling <b>pcre_exec()</b>. You might want to do this for the second and
-subsequent calls to <b>pcre_exec()</b> if you are making repeated calls to find
-all the matches in a single subject string. However, you should be sure that
-the value of <i>startoffset</i> points to the start of a UTF-8 character. When
-PCRE_NO_UTF8_CHECK is set, the effect of passing an invalid UTF-8 string as a
-subject, or a value of <i>startoffset</i> that does not point to the start of a
-UTF-8 character, is undefined. Your program may crash.
-</P>
-<P>
-There are also three further options that can be set only at matching time:
+which is described in the
+<a href="pcrecallout.html"><b>pcrecallout</b></a>
+documentation.
</P>
<P>
+The <i>tables</i> field is used to pass a character tables pointer to
+<b>pcre_exec()</b>; this overrides the value that is stored with the compiled
+pattern. A non-NULL value is stored with the compiled pattern only if custom
+tables were supplied to <b>pcre_compile()</b> via its <i>tableptr</i> argument.
+If NULL is passed to <b>pcre_exec()</b> using this mechanism, it forces PCRE's
+internal tables to be used. This facility is helpful when re-using patterns
+that have been saved after compiling with an external set of tables, because
+the external tables might be at a different address when <b>pcre_exec()</b> is
+called. See the
+<a href="pcreprecompile.html"><b>pcreprecompile</b></a>
+documentation for a discussion of saving compiled patterns for later use.
+</P>
+<br><b>
+Option bits for <b>pcre_exec()</b>
+</b><br>
+<P>
+The unused bits of the <i>options</i> argument for <b>pcre_exec()</b> must be
+zero. The only bits that may be set are PCRE_ANCHORED, PCRE_NOTBOL,
+PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NO_UTF8_CHECK and PCRE_PARTIAL.
+<pre>
+ PCRE_ANCHORED
+</pre>
+The PCRE_ANCHORED option limits <b>pcre_exec()</b> to matching at the first
+matching position. If a pattern was compiled with PCRE_ANCHORED, or turned out
+to be anchored by virtue of its contents, it cannot be made unachored at
+matching time.
<pre>
PCRE_NOTBOL
-</PRE>
-</P>
-<P>
-The first character of the string is not the beginning of a line, so the
-circumflex metacharacter should not match before it. Setting this without
-PCRE_MULTILINE (at compile time) causes circumflex never to match.
-</P>
-<P>
+</pre>
+This option specifies that first character of the subject string is not the
+beginning of a line, so the circumflex metacharacter should not match before
+it. Setting this without PCRE_MULTILINE (at compile time) causes circumflex
+never to match. This option affects only the behaviour of the circumflex
+metacharacter. It does not affect \A.
<pre>
PCRE_NOTEOL
-</PRE>
-</P>
-<P>
-The end of the string is not the end of a line, so the dollar metacharacter
-should not match it nor (except in multiline mode) a newline immediately before
-it. Setting this without PCRE_MULTILINE (at compile time) causes dollar never
-to match.
-</P>
-<P>
+</pre>
+This option specifies that the end of the subject string is not the end of a
+line, so the dollar metacharacter should not match it nor (except in multiline
+mode) a newline immediately before it. Setting this without PCRE_MULTILINE (at
+compile time) causes dollar never to match. This option affects only the
+behaviour of the dollar metacharacter. It does not affect \Z or \z.
<pre>
PCRE_NOTEMPTY
-</PRE>
-</P>
-<P>
+</pre>
An empty string is not considered to be a valid match if this option is set. If
there are alternatives in the pattern, they are tried. If all the alternatives
match the empty string, the entire match fails. For example, if the pattern
-</P>
-<P>
<pre>
a?b?
-</PRE>
-</P>
-<P>
+</pre>
is applied to a string not beginning with "a" or "b", it matches the empty
string at the start of the subject. With PCRE_NOTEMPTY set, this match is not
valid, so PCRE searches further into the string for occurrences of "a" or "b".
@@ -974,23 +907,52 @@ Perl has no direct equivalent of PCRE_NOTEMPTY, but it does make a special case
of a pattern match of the empty string within its <b>split()</b> function, and
when using the /g modifier. It is possible to emulate Perl's behaviour after
matching a null string by first trying the match again at the same offset with
-PCRE_NOTEMPTY set, and then if that fails by advancing the starting offset (see
-below) and trying an ordinary match again.
+PCRE_NOTEMPTY and PCRE_ANCHORED, and then if that fails by advancing the
+starting offset (see below) and trying an ordinary match again. There is some
+code that demonstrates how to do this in the <i>pcredemo.c</i> sample program.
+<pre>
+ PCRE_NO_UTF8_CHECK
+</pre>
+When PCRE_UTF8 is set at compile time, the validity of the subject as a UTF-8
+string is automatically checked when <b>pcre_exec()</b> is subsequently called.
+The value of <i>startoffset</i> is also checked to ensure that it points to the
+start of a UTF-8 character. If an invalid UTF-8 sequence of bytes is found,
+<b>pcre_exec()</b> returns the error PCRE_ERROR_BADUTF8. If <i>startoffset</i>
+contains an invalid value, PCRE_ERROR_BADUTF8_OFFSET is returned.
</P>
<P>
-The subject string is passed to <b>pcre_exec()</b> as a pointer in
-<i>subject</i>, a length in <i>length</i>, and a starting byte offset in
-<i>startoffset</i>. Unlike the pattern string, the subject may contain binary
-zero bytes. When the starting offset is zero, the search for a match starts at
-the beginning of the subject, and this is by far the most common case.
+If you already know that your subject is valid, and you want to skip these
+checks for performance reasons, you can set the PCRE_NO_UTF8_CHECK option when
+calling <b>pcre_exec()</b>. You might want to do this for the second and
+subsequent calls to <b>pcre_exec()</b> if you are making repeated calls to find
+all the matches in a single subject string. However, you should be sure that
+the value of <i>startoffset</i> points to the start of a UTF-8 character. When
+PCRE_NO_UTF8_CHECK is set, the effect of passing an invalid UTF-8 string as a
+subject, or a value of <i>startoffset</i> that does not point to the start of a
+UTF-8 character, is undefined. Your program may crash.
+<pre>
+ PCRE_PARTIAL
+</pre>
+This option turns on the partial matching feature. If the subject string fails
+to match the pattern, but at some point during the matching process the end of
+the subject was reached (that is, the subject partially matches the pattern and
+the failure to match occurred only because there were not enough subject
+characters), <b>pcre_exec()</b> returns PCRE_ERROR_PARTIAL instead of
+PCRE_ERROR_NOMATCH. When PCRE_PARTIAL is used, there are restrictions on what
+may appear in the pattern. These are discussed in the
+<a href="pcrepartial.html"><b>pcrepartial</b></a>
+documentation.
</P>
+<br><b>
+The string to be matched by <b>pcre_exec()</b>
+</b><br>
<P>
-If the pattern was compiled with the PCRE_UTF8 option, the subject must be a
-sequence of bytes that is a valid UTF-8 string, and the starting offset must
-point to the beginning of a UTF-8 character. If an invalid UTF-8 string or
-offset is passed, an error (either PCRE_ERROR_BADUTF8 or
-PCRE_ERROR_BADUTF8_OFFSET) is returned, unless the option PCRE_NO_UTF8_CHECK is
-set, in which case PCRE's behaviour is not defined.
+The subject string is passed to <b>pcre_exec()</b> as a pointer in
+<i>subject</i>, a length in <i>length</i>, and a starting byte offset in
+<i>startoffset</i>. In UTF-8 mode, the byte offset must point to the start of a
+UTF-8 character. Unlike the pattern string, the subject may contain binary zero
+bytes. When the starting offset is zero, the search for a match starts at the
+beginning of the subject, and this is by far the most common case.
</P>
<P>
A non-zero starting offset is useful when searching for another match in the
@@ -998,13 +960,9 @@ same subject by calling <b>pcre_exec()</b> again after a previous success.
Setting <i>startoffset</i> differs from just passing over a shortened string and
setting PCRE_NOTBOL in the case of a pattern that begins with any kind of
lookbehind. For example, consider the pattern
-</P>
-<P>
<pre>
\Biss\B
-</PRE>
-</P>
-<P>
+</pre>
which finds occurrences of "iss" in the middle of words. (\B matches only if
the current position in the subject is not a word boundary.) When applied to
the string "Mississipi" the first call to <b>pcre_exec()</b> finds the first
@@ -1017,9 +975,12 @@ behind the starting point to discover that it is preceded by a letter.
</P>
<P>
If a non-zero starting offset is passed when the pattern is anchored, one
-attempt to match at the given offset is tried. This can only succeed if the
+attempt to match at the given offset is made. This can only succeed if the
pattern does not require the match to be at the start of the subject.
</P>
+<br><b>
+How <b>pcre_exec()</b> returns captured substrings
+</b><br>
<P>
In general, a pattern matches a certain portion of the subject, and in
addition, further substrings from the subject may be picked out by parts of the
@@ -1031,16 +992,20 @@ kinds of parenthesized subpattern that do not cause substrings to be captured.
<P>
Captured substrings are returned to the caller via a vector of integer offsets
whose address is passed in <i>ovector</i>. The number of elements in the vector
-is passed in <i>ovecsize</i>. The first two-thirds of the vector is used to pass
-back captured substrings, each substring using a pair of integers. The
-remaining third of the vector is used as workspace by <b>pcre_exec()</b> while
-matching capturing subpatterns, and is not available for passing back
-information. The length passed in <i>ovecsize</i> should always be a multiple of
-three. If it is not, it is rounded down.
+is passed in <i>ovecsize</i>, which must be a non-negative number. <b>Note</b>:
+this argument is NOT the size of <i>ovector</i> in bytes.
</P>
<P>
-When a match has been successful, information about captured substrings is
-returned in pairs of integers, starting at the beginning of <i>ovector</i>, and
+The first two-thirds of the vector is used to pass back captured substrings,
+each substring using a pair of integers. The remaining third of the vector is
+used as workspace by <b>pcre_exec()</b> while matching capturing subpatterns,
+and is not available for passing back information. The length passed in
+<i>ovecsize</i> should always be a multiple of three. If it is not, it is
+rounded down.
+</P>
+<P>
+When a match is successful, information about captured substrings is returned
+in pairs of integers, starting at the beginning of <i>ovector</i>, and
continuing up to two-thirds of its length at the most. The first element of a
pair is set to the offset of the first character in a substring, and the second
is set to the offset of the first character after the end of a substring. The
@@ -1064,17 +1029,17 @@ values corresponding to the unused subpattern are set to -1.
</P>
<P>
If a capturing subpattern is matched repeatedly, it is the last portion of the
-string that it matched that gets returned.
+string that it matched that is returned.
</P>
<P>
-If the vector is too small to hold all the captured substrings, it is used as
-far as possible (up to two-thirds of its length), and the function returns a
-value of zero. In particular, if the substring offsets are not of interest,
-<b>pcre_exec()</b> may be called with <i>ovector</i> passed as NULL and
+If the vector is too small to hold all the captured substring offsets, it is
+used as far as possible (up to two-thirds of its length), and the function
+returns a value of zero. In particular, if the substring offsets are not of
+interest, <b>pcre_exec()</b> may be called with <i>ovector</i> passed as NULL and
<i>ovecsize</i> as zero. However, if the pattern contains back references and
-the <i>ovector</i> isn't big enough to remember the related substrings, PCRE has
-to get additional memory for use during matching. Thus it is usually advisable
-to supply an <i>ovector</i>.
+the <i>ovector</i> is not big enough to remember the related substrings, PCRE
+has to get additional memory for use during matching. Thus it is usually
+advisable to supply an <i>ovector</i>.
</P>
<P>
Note that <b>pcre_info()</b> can be used to find out how many capturing
@@ -1082,115 +1047,99 @@ subpatterns there are in a compiled pattern. The smallest size for
<i>ovector</i> that will allow for <i>n</i> captured substrings, in addition to
the offsets of the substring matched by the whole pattern, is (<i>n</i>+1)*3.
</P>
+<br><b>
+Return values from <b>pcre_exec()</b>
+</b><br>
<P>
If <b>pcre_exec()</b> fails, it returns a negative number. The following are
defined in the header file:
-</P>
-<P>
<pre>
PCRE_ERROR_NOMATCH (-1)
-</PRE>
-</P>
-<P>
+</pre>
The subject string did not match the pattern.
-</P>
-<P>
<pre>
PCRE_ERROR_NULL (-2)
-</PRE>
-</P>
-<P>
+</pre>
Either <i>code</i> or <i>subject</i> was passed as NULL, or <i>ovector</i> was
NULL and <i>ovecsize</i> was not zero.
-</P>
-<P>
<pre>
PCRE_ERROR_BADOPTION (-3)
-</PRE>
-</P>
-<P>
+</pre>
An unrecognized bit was set in the <i>options</i> argument.
-</P>
-<P>
<pre>
PCRE_ERROR_BADMAGIC (-4)
-</PRE>
-</P>
-<P>
+</pre>
PCRE stores a 4-byte "magic number" at the start of the compiled code, to catch
-the case when it is passed a junk pointer. This is the error it gives when the
-magic number isn't present.
-</P>
-<P>
+the case when it is passed a junk pointer and to detect when a pattern that was
+compiled in an environment of one endianness is run in an environment with the
+other endianness. This is the error that PCRE gives when the magic number is
+not present.
<pre>
PCRE_ERROR_UNKNOWN_NODE (-5)
-</PRE>
-</P>
-<P>
+</pre>
While running the pattern match, an unknown item was encountered in the
compiled pattern. This error could be caused by a bug in PCRE or by overwriting
of the compiled pattern.
-</P>
-<P>
<pre>
PCRE_ERROR_NOMEMORY (-6)
-</PRE>
-</P>
-<P>
+</pre>
If a pattern contains back references, but the <i>ovector</i> that is passed to
<b>pcre_exec()</b> is not big enough to remember the referenced substrings, PCRE
gets a block of memory at the start of matching to use for this purpose. If the
-call via <b>pcre_malloc()</b> fails, this error is given. The memory is freed at
-the end of matching.
-</P>
-<P>
+call via <b>pcre_malloc()</b> fails, this error is given. The memory is
+automatically freed at the end of matching.
<pre>
PCRE_ERROR_NOSUBSTRING (-7)
-</PRE>
-</P>
-<P>
+</pre>
This error is used by the <b>pcre_copy_substring()</b>,
<b>pcre_get_substring()</b>, and <b>pcre_get_substring_list()</b> functions (see
below). It is never returned by <b>pcre_exec()</b>.
-</P>
-<P>
<pre>
PCRE_ERROR_MATCHLIMIT (-8)
-</PRE>
-</P>
-<P>
+</pre>
The recursion and backtracking limit, as specified by the <i>match_limit</i>
field in a <b>pcre_extra</b> structure (or defaulted) was reached. See the
description above.
-</P>
-<P>
<pre>
PCRE_ERROR_CALLOUT (-9)
-</PRE>
-</P>
-<P>
+</pre>
This error is never generated by <b>pcre_exec()</b> itself. It is provided for
use by callout functions that want to yield a distinctive error code. See the
-<b>pcrecallout</b> documentation for details.
-</P>
-<P>
+<a href="pcrecallout.html"><b>pcrecallout</b></a>
+documentation for details.
<pre>
PCRE_ERROR_BADUTF8 (-10)
-</PRE>
-</P>
-<P>
+</pre>
A string that contains an invalid UTF-8 byte sequence was passed as a subject.
-</P>
-<P>
<pre>
PCRE_ERROR_BADUTF8_OFFSET (-11)
-</PRE>
-</P>
-<P>
+</pre>
The UTF-8 byte sequence that was passed as a subject was valid, but the value
of <i>startoffset</i> did not point to the beginning of a UTF-8 character.
+<pre>
+ PCRE_ERROR_PARTIAL (-12)
+</pre>
+The subject string did not match, but it did match partially. See the
+<a href="pcrepartial.html"><b>pcrepartial</b></a>
+documentation for details of partial matching.
+<pre>
+ PCRE_ERROR_BAD_PARTIAL (-13)
+</pre>
+The PCRE_PARTIAL option was used with a compiled pattern containing items that
+are not supported for partial matching. See the
+<a href="pcrepartial.html"><b>pcrepartial</b></a>
+documentation for details of partial matching.
+<pre>
+ PCRE_ERROR_INTERNAL (-14)
+</pre>
+An unexpected internal error has occurred. This error could be caused by a bug
+in PCRE or by overwriting of the compiled pattern.
+<pre>
+ PCRE_ERROR_BADCOUNT (-15)
+</pre>
+This error is given if the value of the <i>ovecsize</i> argument is negative.
</P>
-<br><a name="SEC11" href="#TOC1">EXTRACTING CAPTURED SUBSTRINGS BY NUMBER</a><br>
+<br><a name="SEC12" href="#TOC1">EXTRACTING CAPTURED SUBSTRINGS BY NUMBER</a><br>
<P>
<b>int pcre_copy_substring(const char *<i>subject</i>, int *<i>ovector</i>,</b>
<b>int <i>stringcount</i>, int <i>stringnumber</i>, char *<i>buffer</i>,</b>
@@ -1218,57 +1167,45 @@ a C string.
</P>
<P>
The first three arguments are the same for all three of these functions:
-<i>subject</i> is the subject string which has just been successfully matched,
+<i>subject</i> is the subject string that has just been successfully matched,
<i>ovector</i> is a pointer to the vector of integer offsets that was passed to
<b>pcre_exec()</b>, and <i>stringcount</i> is the number of substrings that were
captured by the match, including the substring that matched the entire regular
-expression. This is the value returned by <b>pcre_exec</b> if it is greater than
-zero. If <b>pcre_exec()</b> returned zero, indicating that it ran out of space
-in <i>ovector</i>, the value passed as <i>stringcount</i> should be the size of
-the vector divided by three.
+expression. This is the value returned by <b>pcre_exec()</b> if it is greater
+than zero. If <b>pcre_exec()</b> returned zero, indicating that it ran out of
+space in <i>ovector</i>, the value passed as <i>stringcount</i> should be the
+number of elements in the vector divided by three.
</P>
<P>
The functions <b>pcre_copy_substring()</b> and <b>pcre_get_substring()</b>
extract a single substring, whose number is given as <i>stringnumber</i>. A
-value of zero extracts the substring that matched the entire pattern, while
+value of zero extracts the substring that matched the entire pattern, whereas
higher values extract the captured substrings. For <b>pcre_copy_substring()</b>,
the string is placed in <i>buffer</i>, whose length is given by
<i>buffersize</i>, while for <b>pcre_get_substring()</b> a new block of memory is
obtained via <b>pcre_malloc</b>, and its address is returned via
<i>stringptr</i>. The yield of the function is the length of the string, not
including the terminating zero, or one of
-</P>
-<P>
<pre>
PCRE_ERROR_NOMEMORY (-6)
-</PRE>
-</P>
-<P>
+</pre>
The buffer was too small for <b>pcre_copy_substring()</b>, or the attempt to get
memory failed for <b>pcre_get_substring()</b>.
-</P>
-<P>
<pre>
PCRE_ERROR_NOSUBSTRING (-7)
-</PRE>
-</P>
-<P>
+</pre>
There is no substring whose number is <i>stringnumber</i>.
</P>
<P>
The <b>pcre_get_substring_list()</b> function extracts all available substrings
and builds a list of pointers to them. All this is done in a single block of
-memory which is obtained via <b>pcre_malloc</b>. The address of the memory block
+memory that is obtained via <b>pcre_malloc</b>. The address of the memory block
is returned via <i>listptr</i>, which is also the start of the list of string
pointers. The end of the list is marked by a NULL pointer. The yield of the
function is zero if all went well, or
-</P>
-<P>
<pre>
PCRE_ERROR_NOMEMORY (-6)
-</PRE>
-</P>
-<P>
+</pre>
if the attempt to get the memory block failed.
</P>
<P>
@@ -1290,7 +1227,11 @@ linked via a special interface to another programming language which cannot use
<b>pcre_free</b> directly; it is for these cases that the functions are
provided.
</P>
-<br><a name="SEC12" href="#TOC1">EXTRACTING CAPTURED SUBSTRINGS BY NAME</a><br>
+<br><a name="SEC13" href="#TOC1">EXTRACTING CAPTURED SUBSTRINGS BY NAME</a><br>
+<P>
+<b>int pcre_get_stringnumber(const pcre *<i>code</i>,</b>
+<b>const char *<i>name</i>);</b>
+</P>
<P>
<b>int pcre_copy_named_substring(const pcre *<i>code</i>,</b>
<b>const char *<i>subject</i>, int *<i>ovector</i>,</b>
@@ -1298,36 +1239,33 @@ provided.
<b>char *<i>buffer</i>, int <i>buffersize</i>);</b>
</P>
<P>
-<b>int pcre_get_stringnumber(const pcre *<i>code</i>,</b>
-<b>const char *<i>name</i>);</b>
-</P>
-<P>
<b>int pcre_get_named_substring(const pcre *<i>code</i>,</b>
<b>const char *<i>subject</i>, int *<i>ovector</i>,</b>
<b>int <i>stringcount</i>, const char *<i>stringname</i>,</b>
<b>const char **<i>stringptr</i>);</b>
</P>
<P>
-To extract a substring by name, you first have to find associated number. This
-can be done by calling <b>pcre_get_stringnumber()</b>. The first argument is the
-compiled pattern, and the second is the name. For example, for this pattern
-</P>
-<P>
+To extract a substring by name, you first have to find associated number.
+For example, for this pattern
<pre>
- ab(?&#60;xxx&#62;\d+)...
-</PRE>
+ (a+)b(?&#60;xxx&#62;\d+)...
+</pre>
+the number of the subpattern called "xxx" is 2. You can find the number from
+the name by calling <b>pcre_get_stringnumber()</b>. The first argument is the
+compiled pattern, and the second is the name. The yield of the function is the
+subpattern number, or PCRE_ERROR_NOSUBSTRING (-7) if there is no subpattern of
+that name.
</P>
<P>
-the number of the subpattern called "xxx" is 1. Given the number, you can then
-extract the substring directly, or use one of the functions described in the
-previous section. For convenience, there are also two functions that do the
-whole job.
+Given the number, you can extract the substring directly, or use one of the
+functions described in the previous section. For convenience, there are also
+two functions that do the whole job.
</P>
<P>
Most of the arguments of <i>pcre_copy_named_substring()</i> and
-<i>pcre_get_named_substring()</i> are the same as those for the functions that
-extract by number, and so are not re-described here. There are just two
-differences.
+<i>pcre_get_named_substring()</i> are the same as those for the similarly named
+functions that extract by number. As these are described in the previous
+section, they are not re-described here. There are just two differences:
</P>
<P>
First, instead of a substring number, a substring name is given. Second, there
@@ -1341,6 +1279,9 @@ then call <i>pcre_copy_substring()</i> or <i>pcre_get_substring()</i>, as
appropriate.
</P>
<P>
-Last updated: 09 December 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcrebuild.html b/doc/html/pcrebuild.html
index c70f822..98c7d27 100644
--- a/doc/html/pcrebuild.html
+++ b/doc/html/pcrebuild.html
@@ -3,35 +3,38 @@
<title>pcrebuild specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcrebuild man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
<li><a name="TOC1" href="#SEC1">PCRE BUILD-TIME OPTIONS</a>
<li><a name="TOC2" href="#SEC2">UTF-8 SUPPORT</a>
-<li><a name="TOC3" href="#SEC3">CODE VALUE OF NEWLINE</a>
-<li><a name="TOC4" href="#SEC4">BUILDING SHARED AND STATIC LIBRARIES</a>
-<li><a name="TOC5" href="#SEC5">POSIX MALLOC USAGE</a>
-<li><a name="TOC6" href="#SEC6">LIMITING PCRE RESOURCE USAGE</a>
-<li><a name="TOC7" href="#SEC7">HANDLING VERY LARGE PATTERNS</a>
-<li><a name="TOC8" href="#SEC8">AVOIDING EXCESSIVE STACK USAGE</a>
-<li><a name="TOC9" href="#SEC9">USING EBCDIC CODE</a>
+<li><a name="TOC3" href="#SEC3">UNICODE CHARACTER PROPERTY SUPPORT</a>
+<li><a name="TOC4" href="#SEC4">CODE VALUE OF NEWLINE</a>
+<li><a name="TOC5" href="#SEC5">BUILDING SHARED AND STATIC LIBRARIES</a>
+<li><a name="TOC6" href="#SEC6">POSIX MALLOC USAGE</a>
+<li><a name="TOC7" href="#SEC7">LIMITING PCRE RESOURCE USAGE</a>
+<li><a name="TOC8" href="#SEC8">HANDLING VERY LARGE PATTERNS</a>
+<li><a name="TOC9" href="#SEC9">AVOIDING EXCESSIVE STACK USAGE</a>
+<li><a name="TOC10" href="#SEC10">USING EBCDIC CODE</a>
</ul>
<br><a name="SEC1" href="#TOC1">PCRE BUILD-TIME OPTIONS</a><br>
<P>
This document describes the optional features of PCRE that can be selected when
the library is compiled. They are all selected, or deselected, by providing
-options to the <b>configure</b> script which is run before the <b>make</b>
+options to the <b>configure</b> script that is run before the <b>make</b>
command. The complete list of options for <b>configure</b> (which includes the
standard ones such as the selection of the installation directory) can be
obtained by running
-</P>
-<P>
<pre>
./configure --help
-</PRE>
-</P>
-<P>
+</pre>
The following sections describe certain options whose names begin with --enable
or --disable. These settings specify changes to the defaults for the
<b>configure</b> command. Because of the way that <b>configure</b> works,
@@ -41,100 +44,99 @@ exists as well, but as it specifies the default, it is not described.
<br><a name="SEC2" href="#TOC1">UTF-8 SUPPORT</a><br>
<P>
To build PCRE with support for UTF-8 character strings, add
-</P>
-<P>
<pre>
--enable-utf8
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command. Of itself, this does not make PCRE treat
strings as UTF-8. As well as compiling PCRE with this option, you also have
have to set the PCRE_UTF8 option when you call the <b>pcre_compile()</b>
function.
</P>
-<br><a name="SEC3" href="#TOC1">CODE VALUE OF NEWLINE</a><br>
+<br><a name="SEC3" href="#TOC1">UNICODE CHARACTER PROPERTY SUPPORT</a><br>
+<P>
+UTF-8 support allows PCRE to process character values greater than 255 in the
+strings that it handles. On its own, however, it does not provide any
+facilities for accessing the properties of such characters. If you want to be
+able to use the pattern escapes \P, \p, and \X, which refer to Unicode
+character properties, you must add
+<pre>
+ --enable-unicode-properties
+</pre>
+to the <b>configure</b> command. This implies UTF-8 support, even if you have
+not explicitly requested it.
+</P>
+<P>
+Including Unicode property support adds around 90K of tables to the PCRE
+library, approximately doubling its size. Only the general category properties
+such as <i>Lu</i> and <i>Nd</i> are supported. Details are given in the
+<a href="pcrepattern.html"><b>pcrepattern</b></a>
+documentation.
+</P>
+<br><a name="SEC4" href="#TOC1">CODE VALUE OF NEWLINE</a><br>
<P>
By default, PCRE treats character 10 (linefeed) as the newline character. This
is the normal newline character on Unix-like systems. You can compile PCRE to
use character 13 (carriage return) instead by adding
-</P>
-<P>
<pre>
--enable-newline-is-cr
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command. For completeness there is also a
--enable-newline-is-lf option, which explicitly specifies linefeed as the
newline character.
</P>
-<br><a name="SEC4" href="#TOC1">BUILDING SHARED AND STATIC LIBRARIES</a><br>
+<br><a name="SEC5" href="#TOC1">BUILDING SHARED AND STATIC LIBRARIES</a><br>
<P>
The PCRE building process uses <b>libtool</b> to build both shared and static
Unix libraries by default. You can suppress one of these by adding one of
-</P>
-<P>
<pre>
--disable-shared
--disable-static
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command, as required.
</P>
-<br><a name="SEC5" href="#TOC1">POSIX MALLOC USAGE</a><br>
+<br><a name="SEC6" href="#TOC1">POSIX MALLOC USAGE</a><br>
<P>
-When PCRE is called through the POSIX interface (see the <b>pcreposix</b>
+When PCRE is called through the POSIX interface (see the
+<a href="pcreposix.html"><b>pcreposix</b></a>
documentation), additional working storage is required for holding the pointers
-to capturing substrings because PCRE requires three integers per substring,
+to capturing substrings, because PCRE requires three integers per substring,
whereas the POSIX interface provides only two. If the number of expected
substrings is small, the wrapper function uses space on the stack, because this
is faster than using <b>malloc()</b> for each call. The default threshold above
which the stack is no longer used is 10; it can be changed by adding a setting
such as
-</P>
-<P>
<pre>
--with-posix-malloc-threshold=20
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command.
</P>
-<br><a name="SEC6" href="#TOC1">LIMITING PCRE RESOURCE USAGE</a><br>
-<P>
-Internally, PCRE has a function called <b>match()</b> which it calls repeatedly
-(possibly recursively) when performing a matching operation. By limiting the
-number of times this function may be called, a limit can be placed on the
-resources used by a single call to <b>pcre_exec()</b>. The limit can be changed
-at run time, as described in the <b>pcreapi</b> documentation. The default is 10
-million, but this can be changed by adding a setting such as
-</P>
+<br><a name="SEC7" href="#TOC1">LIMITING PCRE RESOURCE USAGE</a><br>
<P>
+Internally, PCRE has a function called <b>match()</b>, which it calls repeatedly
+(possibly recursively) when matching a pattern. By controlling the maximum
+number of times this function may be called during a single matching operation,
+a limit can be placed on the resources used by a single call to
+<b>pcre_exec()</b>. The limit can be changed at run time, as described in the
+<a href="pcreapi.html"><b>pcreapi</b></a>
+documentation. The default is 10 million, but this can be changed by adding a
+setting such as
<pre>
--with-match-limit=500000
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command.
</P>
-<br><a name="SEC7" href="#TOC1">HANDLING VERY LARGE PATTERNS</a><br>
+<br><a name="SEC8" href="#TOC1">HANDLING VERY LARGE PATTERNS</a><br>
<P>
Within a compiled pattern, offset values are used to point from one part to
another (for example, from an opening parenthesis to an alternation
-metacharacter). By default two-byte values are used for these offsets, leading
+metacharacter). By default, two-byte values are used for these offsets, leading
to a maximum size for a compiled pattern of around 64K. This is sufficient to
handle all but the most gigantic patterns. Nevertheless, some people do want to
process enormous patterns, so it is possible to compile PCRE to use three-byte
or four-byte offsets by adding a setting such as
-</P>
-<P>
<pre>
--with-link-size=3
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command. The value given must be 2, 3, or 4. Using
longer offsets slows down the operation of PCRE because it has to load
additional bytes when handling them.
@@ -144,7 +146,7 @@ If you build PCRE with an increased link size, test 2 (and test 5 if you are
using UTF-8) will fail. Part of the output of these tests is a representation
of the compiled pattern, and this changes with the link size.
</P>
-<br><a name="SEC8" href="#TOC1">AVOIDING EXCESSIVE STACK USAGE</a><br>
+<br><a name="SEC9" href="#TOC1">AVOIDING EXCESSIVE STACK USAGE</a><br>
<P>
PCRE implements backtracking while matching by making recursive calls to an
internal function called <b>match()</b>. In environments where the size of the
@@ -153,13 +155,9 @@ environment does not usually suffer from this problem.) An alternative approach
that uses memory from the heap to remember data, instead of using recursive
function calls, has been implemented to work round this problem. If you want to
build a version of PCRE that works this way, add
-</P>
-<P>
<pre>
--disable-stack-for-recursion
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command. With this configuration, PCRE will use the
<b>pcre_stack_malloc</b> and <b>pcre_stack_free</b> variables to call memory
management functions. Separate functions are provided because the usage is very
@@ -169,21 +167,20 @@ optimized functions that perform better than the standard <b>malloc()</b> and
<b>free()</b> functions. PCRE runs noticeably more slowly when built in this
way.
</P>
-<br><a name="SEC9" href="#TOC1">USING EBCDIC CODE</a><br>
+<br><a name="SEC10" href="#TOC1">USING EBCDIC CODE</a><br>
<P>
PCRE assumes by default that it will run in an environment where the character
-code is ASCII (or UTF-8, which is a superset of ASCII). PCRE can, however, be
+code is ASCII (or Unicode, which is a superset of ASCII). PCRE can, however, be
compiled to run in an EBCDIC environment by adding
-</P>
-<P>
<pre>
--enable-ebcdic
-</PRE>
-</P>
-<P>
+</pre>
to the <b>configure</b> command.
</P>
<P>
-Last updated: 09 December 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcrecallout.html b/doc/html/pcrecallout.html
index f4b7104..dc2ef51 100644
--- a/doc/html/pcrecallout.html
+++ b/doc/html/pcrecallout.html
@@ -3,12 +3,20 @@
<title>pcrecallout specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcrecallout man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
<li><a name="TOC1" href="#SEC1">PCRE CALLOUTS</a>
-<li><a name="TOC2" href="#SEC2">RETURN VALUES</a>
+<li><a name="TOC2" href="#SEC2">MISSING CALLOUTS</a>
+<li><a name="TOC3" href="#SEC3">THE CALLOUT INTERFACE</a>
+<li><a name="TOC4" href="#SEC4">RETURN VALUES</a>
</ul>
<br><a name="SEC1" href="#TOC1">PCRE CALLOUTS</a><br>
<P>
@@ -26,18 +34,47 @@ Within a regular expression, (?C) indicates the points at which the external
function is to be called. Different callout points can be identified by putting
a number less than 256 after the letter C. The default value is zero.
For example, this pattern has two callout points:
-</P>
-<P>
<pre>
- (?C1)\dabc(?C2)def
-</PRE>
-</P>
-<P>
-During matching, when PCRE reaches a callout point (and <i>pcre_callout</i> is
-set), the external function is called. Its only argument is a pointer to a
-<b>pcre_callout</b> block. This contains the following variables:
-</P>
-<P>
+ (?C1)\deabc(?C2)def
+</pre>
+If the PCRE_AUTO_CALLOUT option bit is set when <b>pcre_compile()</b> is called,
+PCRE automatically inserts callouts, all with number 255, before each item in
+the pattern. For example, if PCRE_AUTO_CALLOUT is used with the pattern
+<pre>
+ A(\d{2}|--)
+</pre>
+it is processed as if it were
+<br>
+<br>
+(?C255)A(?C255)((?C255)\d{2}(?C255)|(?C255)-(?C255)-(?C255))(?C255)
+<br>
+<br>
+Notice that there is a callout before and after each parenthesis and
+alternation bar. Automatic callouts can be used for tracking the progress of
+pattern matching. The
+<a href="pcretest.html"><b>pcretest</b></a>
+command has an option that sets automatic callouts; when it is used, the output
+indicates how the pattern is matched. This is useful information when you are
+trying to optimize the performance of a particular pattern.
+</P>
+<br><a name="SEC2" href="#TOC1">MISSING CALLOUTS</a><br>
+<P>
+You should be aware that, because of optimizations in the way PCRE matches
+patterns, callouts sometimes do not happen. For example, if the pattern is
+<pre>
+ ab(?C4)cd
+</pre>
+PCRE knows that any matching string must contain the letter "d". If the subject
+string is "abyz", the lack of "d" means that matching doesn't ever start, and
+the callout is never reached. However, with "abyd", though the result is still
+no match, the callout is obeyed.
+</P>
+<br><a name="SEC3" href="#TOC1">THE CALLOUT INTERFACE</a><br>
+<P>
+During matching, when PCRE reaches a callout point, the external function
+defined by <i>pcre_callout</i> is called (if it is set). The only argument is a
+pointer to a <b>pcre_callout</b> block. This structure contains the following
+fields:
<pre>
int <i>version</i>;
int <i>callout_number</i>;
@@ -49,17 +86,18 @@ set), the external function is called. Its only argument is a pointer to a
int <i>capture_top</i>;
int <i>capture_last</i>;
void *<i>callout_data</i>;
-</PRE>
-</P>
-<P>
+ int <i>pattern_position</i>;
+ int <i>next_item_length</i>;
+</pre>
The <i>version</i> field is an integer containing the version number of the
-block format. The current version is zero. The version number may change in
-future if additional fields are added, but the intention is never to remove any
-of the existing fields.
+block format. The initial version was 0; the current version is 1. The version
+number will change again in future if additional fields are added, but the
+intention is never to remove any of the existing fields.
</P>
<P>
The <i>callout_number</i> field contains the number of the callout, as compiled
-into the pattern (that is, the number after ?C).
+into the pattern (that is, the number after ?C for manual callouts, and 255 for
+automatically generated callouts).
</P>
<P>
The <i>offset_vector</i> field is a pointer to the vector of offsets that was
@@ -68,13 +106,14 @@ order to extract substrings that have been matched so far, in the same way as
for extracting substrings after a match has completed.
</P>
<P>
-The <i>subject</i> and <i>subject_length</i> fields contain copies the values
+The <i>subject</i> and <i>subject_length</i> fields contain copies of the values
that were passed to <b>pcre_exec()</b>.
</P>
<P>
The <i>start_match</i> field contains the offset within the subject at which the
current match attempt started. If the pattern is not anchored, the callout
-function may be called several times for different starting points.
+function may be called several times from the same point in the pattern for
+different starting points in the subject.
</P>
<P>
The <i>current_position</i> field contains the offset within the subject of the
@@ -87,7 +126,7 @@ the value of <i>capture_top</i> is one.
</P>
<P>
The <i>capture_last</i> field contains the number of the most recently captured
-substring.
+substring. If no substrings have been captured, its value is -1.
</P>
<P>
The <i>callout_data</i> field contains a value that is passed to
@@ -95,15 +134,36 @@ The <i>callout_data</i> field contains a value that is passed to
callouts. It is passed in the <i>pcre_callout</i> field of the <b>pcre_extra</b>
data structure. If no such data was passed, the value of <i>callout_data</i> in
a <b>pcre_callout</b> block is NULL. There is a description of the
-<b>pcre_extra</b> structure in the <b>pcreapi</b> documentation.
+<b>pcre_extra</b> structure in the
+<a href="pcreapi.html"><b>pcreapi</b></a>
+documentation.
+</P>
+<P>
+The <i>pattern_position</i> field is present from version 1 of the
+<i>pcre_callout</i> structure. It contains the offset to the next item to be
+matched in the pattern string.
+</P>
+<P>
+The <i>next_item_length</i> field is present from version 1 of the
+<i>pcre_callout</i> structure. It contains the length of the next item to be
+matched in the pattern string. When the callout immediately precedes an
+alternation bar, a closing parenthesis, or the end of the pattern, the length
+is zero. When the callout precedes an opening parenthesis, the length is that
+of the entire subpattern.
+</P>
+<P>
+The <i>pattern_position</i> and <i>next_item_length</i> fields are intended to
+help in distinguishing between different automatic callouts, which all have the
+same callout number. However, they are set for all callouts.
</P>
-<br><a name="SEC2" href="#TOC1">RETURN VALUES</a><br>
+<br><a name="SEC4" href="#TOC1">RETURN VALUES</a><br>
<P>
-The callout function returns an integer. If the value is zero, matching
-proceeds as normal. If the value is greater than zero, matching fails at the
-current point, but backtracking to test other possibilities goes ahead, just as
-if a lookahead assertion had failed. If the value is less than zero, the match
-is abandoned, and <b>pcre_exec()</b> returns the value.
+The external callout function returns an integer to PCRE. If the value is zero,
+matching proceeds as normal. If the value is greater than zero, matching fails
+at the current point, but backtracking to test other matching possibilities
+goes ahead, just as if a lookahead assertion had failed. If the value is less
+than zero, the match is abandoned, and <b>pcre_exec()</b> returns the negative
+value.
</P>
<P>
Negative values should normally be chosen from the set of PCRE_ERROR_xxx
@@ -112,6 +172,9 @@ The error number PCRE_ERROR_CALLOUT is reserved for use by callout functions;
it will never be used by PCRE itself.
</P>
<P>
-Last updated: 21 January 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcrecompat.html b/doc/html/pcrecompat.html
index 1ec2203..6529c09 100644
--- a/doc/html/pcrecompat.html
+++ b/doc/html/pcrecompat.html
@@ -3,13 +3,18 @@
<title>pcrecompat specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
-<ul>
-<li><a name="TOC1" href="#SEC1">DIFFERENCES FROM PERL</a>
-</ul>
-<br><a name="SEC1" href="#TOC1">DIFFERENCES FROM PERL</a><br>
+<h1>pcrecompat man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
+<br><b>
+DIFFERENCES BETWEEN PCRE AND PERL
+</b><br>
<P>
This document describes the differences in the ways that PCRE and Perl handle
regular expressions. The differences described here are with respect to Perl
@@ -39,98 +44,107 @@ negative lookahead assertion contains just one branch.
<P>
4. Though binary zero characters are supported in the subject string, they are
not allowed in a pattern string because it is passed as a normal C string,
-terminated by zero. The escape sequence "\0" can be used in the pattern to
+terminated by zero. The escape sequence \0 can be used in the pattern to
represent a binary zero.
</P>
<P>
5. The following Perl escape sequences are not supported: \l, \u, \L,
-\U, \P, \p, \N, and \X. In fact these are implemented by Perl's general
-string-handling and are not part of its pattern matching engine. If any of
-these are encountered by PCRE, an error is generated.
+\U, and \N. In fact these are implemented by Perl's general string-handling
+and are not part of its pattern matching engine. If any of these are
+encountered by PCRE, an error is generated.
+</P>
+<P>
+6. The Perl escape sequences \p, \P, and \X are supported only if PCRE is
+built with Unicode character property support. The properties that can be
+tested with \p and \P are limited to the general category properties such as
+Lu and Nd.
</P>
<P>
-6. PCRE does support the \Q...\E escape for quoting substrings. Characters in
+7. PCRE does support the \Q...\E escape for quoting substrings. Characters in
between are treated as literals. This is slightly different from Perl in that $
and @ are also handled as literals inside the quotes. In Perl, they cause
variable interpolation (but of course PCRE does not have variables). Note the
following examples:
-</P>
-<P>
<pre>
Pattern PCRE matches Perl matches
-</PRE>
-</P>
-<P>
-<pre>
- \Qabc$xyz\E abc$xyz abc followed by the
- contents of $xyz
+
+ \Qabc$xyz\E abc$xyz abc followed by the contents of $xyz
\Qabc\$xyz\E abc\$xyz abc\$xyz
\Qabc\E\$\Qxyz\E abc$xyz abc$xyz
-</PRE>
-</P>
-<P>
+</pre>
The \Q...\E sequence is recognized both inside and outside character classes.
</P>
<P>
-7. Fairly obviously, PCRE does not support the (?{code}) and (?p{code})
-constructions. However, there is some experimental support for recursive
-patterns using the non-Perl items (?R), (?number) and (?P&#62;name). Also, the PCRE
-"callout" feature allows an external function to be called during pattern
-matching.
+8. Fairly obviously, PCRE does not support the (?{code}) and (?p{code})
+constructions. However, there is support for recursive patterns using the
+non-Perl items (?R), (?number), and (?P&#62;name). Also, the PCRE "callout" feature
+allows an external function to be called during pattern matching. See the
+<a href="pcrecallout.html"><b>pcrecallout</b></a>
+documentation for details.
</P>
<P>
-8. There are some differences that are concerned with the settings of captured
+9. There are some differences that are concerned with the settings of captured
strings when part of a pattern is repeated. For example, matching "aba" against
the pattern /^(a(b)?)+$/ in Perl leaves $2 unset, but in PCRE it is set to "b".
</P>
<P>
-9. PCRE provides some extensions to the Perl regular expression facilities:
-</P>
-<P>
+10. PCRE provides some extensions to the Perl regular expression facilities:
+<br>
+<br>
(a) Although lookbehind assertions must match fixed length strings, each
alternative branch of a lookbehind assertion can match a different length of
string. Perl requires them all to have the same length.
-</P>
-<P>
+<br>
+<br>
(b) If PCRE_DOLLAR_ENDONLY is set and PCRE_MULTILINE is not set, the $
meta-character matches only at the very end of the string.
-</P>
-<P>
-&copy; If PCRE_EXTRA is set, a backslash followed by a letter with no special
+<br>
+<br>
+(c) If PCRE_EXTRA is set, a backslash followed by a letter with no special
meaning is faulted.
-</P>
-<P>
+<br>
+<br>
(d) If PCRE_UNGREEDY is set, the greediness of the repetition quantifiers is
inverted, that is, by default they are not greedy, but if followed by a
question mark they are.
-</P>
-<P>
-(e) PCRE_ANCHORED can be used to force a pattern to be tried only at the first
-matching position in the subject string.
-</P>
-<P>
+<br>
+<br>
+(e) PCRE_ANCHORED can be used at matching time to force a pattern to be tried
+only at the first matching position in the subject string.
+<br>
+<br>
(f) The PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, and PCRE_NO_AUTO_CAPTURE
options for <b>pcre_exec()</b> have no Perl equivalents.
-</P>
-<P>
+<br>
+<br>
(g) The (?R), (?number), and (?P&#62;name) constructs allows for recursive pattern
matching (Perl can do this using the (?p{code}) construct, which PCRE cannot
support.)
-</P>
-<P>
+<br>
+<br>
(h) PCRE supports named capturing substrings, using the Python syntax.
-</P>
-<P>
+<br>
+<br>
(i) PCRE supports the possessive quantifier "++" syntax, taken from Sun's Java
package.
-</P>
-<P>
+<br>
+<br>
(j) The (R) condition, for testing recursion, is a PCRE extension.
-</P>
-<P>
+<br>
+<br>
(k) The callout facility is PCRE-specific.
+<br>
+<br>
+(l) The partial matching facility is PCRE-specific.
+<br>
+<br>
+(m) Patterns compiled by PCRE can be saved and re-used at a later time, even on
+different hosts that have the other endianness.
</P>
<P>
-Last updated: 09 December 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcregrep.html b/doc/html/pcregrep.html
index a76cac2..922487d 100644
--- a/doc/html/pcregrep.html
+++ b/doc/html/pcregrep.html
@@ -3,9 +3,15 @@
<title>pcregrep specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcregrep man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
<li><a name="TOC1" href="#SEC1">SYNOPSIS</a>
<li><a name="TOC2" href="#SEC2">DESCRIPTION</a>
@@ -94,8 +100,8 @@ The exit status indicates whether any matches were found.
<P>
<b>-u</b>
Operate in UTF-8 mode. This option is available only if PCRE has been compiled
-with UTF-8 support. Both the pattern and each subject line are assumed to be
-valid strings of UTF-8 characters.
+with UTF-8 support. Both the pattern and each subject line must be valid
+strings of UTF-8 characters.
</P>
<P>
<b>-v</b>
@@ -113,8 +119,6 @@ alternative branch in the regular expression.
<P>
Long forms of all the options are available, as in GNU grep. They are shown in
the following table:
-</P>
-<P>
<pre>
-c --count
-h --no-filename
@@ -128,9 +132,7 @@ the following table:
-v --invert-match
-x --line-regex
-x --line-regexp
-</PRE>
-</P>
-<P>
+</pre>
In addition, --file=<i>filename</i> is equivalent to -f<i>filename</i>, and
--help shows the list of options and then exits.
</P>
@@ -148,6 +150,9 @@ University Computing Service
Cambridge CB2 3QG, England.
</P>
<P>
-Last updated: 03 February 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcrepartial.html b/doc/html/pcrepartial.html
new file mode 100644
index 0000000..c4dd886
--- /dev/null
+++ b/doc/html/pcrepartial.html
@@ -0,0 +1,111 @@
+<html>
+<head>
+<title>pcrepartial specification</title>
+</head>
+<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
+<h1>pcrepartial man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
+<ul>
+<li><a name="TOC1" href="#SEC1">PARTIAL MATCHING IN PCRE</a>
+<li><a name="TOC2" href="#SEC2">RESTRICTED PATTERNS FOR PCRE_PARTIAL</a>
+<li><a name="TOC3" href="#SEC3">EXAMPLE OF PARTIAL MATCHING USING PCRETEST</a>
+</ul>
+<br><a name="SEC1" href="#TOC1">PARTIAL MATCHING IN PCRE</a><br>
+<P>
+In normal use of PCRE, if the subject string that is passed to
+<b>pcre_exec()</b> matches as far as it goes, but is too short to match the
+entire pattern, PCRE_ERROR_NOMATCH is returned. There are circumstances where
+it might be helpful to distinguish this case from other cases in which there is
+no match.
+</P>
+<P>
+Consider, for example, an application where a human is required to type in data
+for a field with specific formatting requirements. An example might be a date
+in the form <i>ddmmmyy</i>, defined by this pattern:
+<pre>
+ ^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$
+</pre>
+If the application sees the user's keystrokes one by one, and can check that
+what has been typed so far is potentially valid, it is able to raise an error
+as soon as a mistake is made, possibly beeping and not reflecting the
+character that has been typed. This immediate feedback is likely to be a better
+user interface than a check that is delayed until the entire string has been
+entered.
+</P>
+<P>
+PCRE supports the concept of partial matching by means of the PCRE_PARTIAL
+option, which can be set when calling <b>pcre_exec()</b>. When this is done, the
+return code PCRE_ERROR_NOMATCH is converted into PCRE_ERROR_PARTIAL if at any
+time during the matching process the entire subject string matched part of the
+pattern. No captured data is set when this occurs.
+</P>
+<P>
+Using PCRE_PARTIAL disables one of PCRE's optimizations. PCRE remembers the
+last literal byte in a pattern, and abandons matching immediately if such a
+byte is not present in the subject string. This optimization cannot be used
+for a subject string that might match only partially.
+</P>
+<br><a name="SEC2" href="#TOC1">RESTRICTED PATTERNS FOR PCRE_PARTIAL</a><br>
+<P>
+Because of the way certain internal optimizations are implemented in PCRE, the
+PCRE_PARTIAL option cannot be used with all patterns. Repeated single
+characters such as
+<pre>
+ a{2,4}
+</pre>
+and repeated single metasequences such as
+<pre>
+ \d+
+</pre>
+are not permitted if the maximum number of occurrences is greater than one.
+Optional items such as \d? (where the maximum is one) are permitted.
+Quantifiers with any values are permitted after parentheses, so the invalid
+examples above can be coded thus:
+<pre>
+ (a){2,4}
+ (\d)+
+</pre>
+These constructions run more slowly, but for the kinds of application that are
+envisaged for this facility, this is not felt to be a major restriction.
+</P>
+<P>
+If PCRE_PARTIAL is set for a pattern that does not conform to the restrictions,
+<b>pcre_exec()</b> returns the error code PCRE_ERROR_BADPARTIAL (-13).
+</P>
+<br><a name="SEC3" href="#TOC1">EXAMPLE OF PARTIAL MATCHING USING PCRETEST</a><br>
+<P>
+If the escape sequence \P is present in a <b>pcretest</b> data line, the
+PCRE_PARTIAL flag is used for the match. Here is a run of <b>pcretest</b> that
+uses the date example quoted above:
+<pre>
+ re&#62; /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/
+ data&#62; 25jun04\P
+ 0: 25jun04
+ 1: jun
+ data&#62; 25dec3\P
+ Partial match
+ data&#62; 3ju\P
+ Partial match
+ data&#62; 3juj\P
+ No match
+ data&#62; j\P
+ No match
+</pre>
+The first data string is matched completely, so <b>pcretest</b> shows the
+matched substrings. The remaining four strings do not match the complete
+pattern, but the first two are partial matches.
+</P>
+<P>
+Last updated: 08 September 2004
+<br>
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcrepattern.html b/doc/html/pcrepattern.html
index 65abcc2..1220eb7 100644
--- a/doc/html/pcrepattern.html
+++ b/doc/html/pcrepattern.html
@@ -3,16 +3,22 @@
<title>pcrepattern specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcrepattern man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
<li><a name="TOC1" href="#SEC1">PCRE REGULAR EXPRESSION DETAILS</a>
<li><a name="TOC2" href="#SEC2">BACKSLASH</a>
<li><a name="TOC3" href="#SEC3">CIRCUMFLEX AND DOLLAR</a>
<li><a name="TOC4" href="#SEC4">FULL STOP (PERIOD, DOT)</a>
<li><a name="TOC5" href="#SEC5">MATCHING A SINGLE BYTE</a>
-<li><a name="TOC6" href="#SEC6">SQUARE BRACKETS</a>
+<li><a name="TOC6" href="#SEC6">SQUARE BRACKETS AND CHARACTER CLASSES</a>
<li><a name="TOC7" href="#SEC7">POSIX CHARACTER CLASSES</a>
<li><a name="TOC8" href="#SEC8">VERTICAL BAR</a>
<li><a name="TOC9" href="#SEC9">INTERNAL OPTION SETTING</a>
@@ -32,17 +38,17 @@ conversion went wrong.<br>
<P>
The syntax and semantics of the regular expressions supported by PCRE are
described below. Regular expressions are also described in the Perl
-documentation and in a number of other books, some of which have copious
-examples. Jeffrey Friedl's "Mastering Regular Expressions", published by
-O'Reilly, covers them in great detail. The description here is intended as
-reference documentation.
+documentation and in a number of books, some of which have copious examples.
+Jeffrey Friedl's "Mastering Regular Expressions", published by O'Reilly, covers
+regular expressions in great detail. This description of PCRE's regular
+expressions is intended as reference material.
</P>
<P>
-The basic operation of PCRE is on strings of bytes. However, there is also
-support for UTF-8 character strings. To use this support you must build PCRE to
-include UTF-8 support, and then call <b>pcre_compile()</b> with the PCRE_UTF8
-option. How this affects the pattern matching is mentioned in several places
-below. There is also a summary of UTF-8 features in the
+The original operation of PCRE was on strings of one-byte characters. However,
+there is now also support for UTF-8 character strings. To use this, you must
+build PCRE to include UTF-8 support, and then call <b>pcre_compile()</b> with
+the PCRE_UTF8 option. How this affects pattern matching is mentioned in several
+places below. There is also a summary of UTF-8 features in the
<a href="pcre.html#utf8support">section on UTF-8 support</a>
in the main
<a href="pcre.html"><b>pcre</b></a>
@@ -52,26 +58,20 @@ page.
A regular expression is a pattern that is matched against a subject string from
left to right. Most characters stand for themselves in a pattern, and match the
corresponding characters in the subject. As a trivial example, the pattern
-</P>
-<P>
<pre>
The quick brown fox
-</PRE>
-</P>
-<P>
+</pre>
matches a portion of a subject string that is identical to itself. The power of
regular expressions comes from the ability to include alternatives and
repetitions in the pattern. These are encoded in the pattern by the use of
-<i>meta-characters</i>, which do not stand for themselves but instead are
+<i>metacharacters</i>, which do not stand for themselves but instead are
interpreted in some special way.
</P>
<P>
-There are two different sets of meta-characters: those that are recognized
+There are two different sets of metacharacters: those that are recognized
anywhere in the pattern except within square brackets, and those that are
-recognized in square brackets. Outside square brackets, the meta-characters are
+recognized in square brackets. Outside square brackets, the metacharacters are
as follows:
-</P>
-<P>
<pre>
\ general escape character with several uses
^ assert start of string (or line, in multiline mode)
@@ -88,37 +88,30 @@ as follows:
+ 1 or more quantifier
also "possessive quantifier"
{ start min/max quantifier
-</PRE>
-</P>
-<P>
+</pre>
Part of a pattern that is in square brackets is called a "character class". In
-a character class the only meta-characters are:
-</P>
-<P>
+a character class the only metacharacters are:
<pre>
\ general escape character
^ negate the class, but only if the first character
- indicates character range
- [ POSIX character class (only if followed by POSIX
- syntax)
+ [ POSIX character class (only if followed by POSIX syntax)
] terminates the character class
-</PRE>
-</P>
-<P>
-The following sections describe the use of each of the meta-characters.
+</pre>
+The following sections describe the use of each of the metacharacters.
</P>
<br><a name="SEC2" href="#TOC1">BACKSLASH</a><br>
<P>
The backslash character has several uses. Firstly, if it is followed by a
-non-alphameric character, it takes away any special meaning that character may
+non-alphanumeric character, it takes away any special meaning that character may
have. This use of backslash as an escape character applies both inside and
outside character classes.
</P>
<P>
For example, if you want to match a * character, you write \* in the pattern.
This escaping action applies whether or not the following character would
-otherwise be interpreted as a meta-character, so it is always safe to precede a
-non-alphameric with backslash to specify that it stands for itself. In
+otherwise be interpreted as a metacharacter, so it is always safe to precede a
+non-alphanumeric with backslash to specify that it stands for itself. In
particular, if you want to match a backslash, you write \\.
</P>
<P>
@@ -133,23 +126,18 @@ If you want to remove the special meaning from a sequence of characters, you
can do so by putting them between \Q and \E. This is different from Perl in
that $ and @ are handled as literals in \Q...\E sequences in PCRE, whereas in
Perl, $ and @ cause variable interpolation. Note the following examples:
-</P>
-<P>
<pre>
Pattern PCRE matches Perl matches
-</PRE>
-</P>
-<P>
-<pre>
- \Qabc$xyz\E abc$xyz abc followed by the
- contents of $xyz
+
+ \Qabc$xyz\E abc$xyz abc followed by the contents of $xyz
\Qabc\$xyz\E abc\$xyz abc\$xyz
\Qabc\E\$\Qxyz\E abc$xyz abc$xyz
-</PRE>
-</P>
-<P>
+</pre>
The \Q...\E sequence is recognized both inside and outside character classes.
-</P>
+<a name="digitsafterbackslash"></a></P>
+<br><b>
+Non-printing characters
+</b><br>
<P>
A second use of backslash provides a way of encoding non-printing characters
in patterns in a visible manner. There is no restriction on the appearance of
@@ -157,8 +145,6 @@ non-printing characters, apart from the binary zero that terminates a pattern,
but when a pattern is being prepared by text editing, it is usually easier to
use one of the following escape sequences than the binary character it
represents:
-</P>
-<P>
<pre>
\a alarm, that is, the BEL character (hex 07)
\cx "control-x", where x is any character
@@ -170,9 +156,7 @@ represents:
\ddd character with octal code ddd, or backreference
\xhh character with hex code hh
\x{hhh..} character with hex code hhh... (UTF-8 mode only)
-</PRE>
-</P>
-<P>
+</pre>
The precise effect of \cx is as follows: if x is a lower case letter, it
is converted to upper case. Then bit 6 of the character (hex 40) is inverted.
Thus \cz becomes hex 1A, but \c{ becomes hex 3B, while \c; becomes hex
@@ -186,7 +170,7 @@ than 2**31 (that is, the maximum hexadecimal value is 7FFFFFFF). If characters
other than hexadecimal digits appear between \x{ and }, or if there is no
terminating }, this form of escape is not recognized. Instead, the initial
\x will be interpreted as a basic hexadecimal escape, with no following
-digits, giving a byte whose value is zero.
+digits, giving a character whose value is zero.
</P>
<P>
Characters whose value is less than 256 can be defined by either of the two
@@ -198,7 +182,7 @@ After \0 up to two further octal digits are read. In both cases, if there
are fewer than two digits, just those that are present are used. Thus the
sequence \0\x\07 specifies two binary zeros followed by a BEL character
(code value 7). Make sure you supply two digits after the initial zero if the
-character that follows is itself an octal digit.
+pattern character that follows is itself an octal digit.
</P>
<P>
The handling of a backslash followed by a digit other than 0 is complicated.
@@ -206,7 +190,9 @@ Outside a character class, PCRE reads it and any following digits as a decimal
number. If the number is less than 10, or if there have been at least that many
previous capturing left parentheses in the expression, the entire sequence is
taken as a <i>back reference</i>. A description of how this works is given
-later, following the discussion of parenthesized subpatterns.
+<a href="#backreferences">later,</a>
+following the discussion of
+<a href="#subpattern">parenthesized subpatterns.</a>
</P>
<P>
Inside a character class, or if the decimal number is greater than 9 and there
@@ -214,26 +200,17 @@ have not been that many capturing subpatterns, PCRE re-reads up to three octal
digits following the backslash, and generates a single byte from the least
significant 8 bits of the value. Any subsequent digits stand for themselves.
For example:
-</P>
-<P>
<pre>
\040 is another way of writing a space
- \40 is the same, provided there are fewer than 40
- previous capturing subpatterns
+ \40 is the same, provided there are fewer than 40 previous capturing subpatterns
\7 is always a back reference
- \11 might be a back reference, or another way of
- writing a tab
+ \11 might be a back reference, or another way of writing a tab
\011 is always a tab
\0113 is a tab followed by the character "3"
- \113 might be a back reference, otherwise the
- character with octal code 113
- \377 might be a back reference, otherwise
- the byte consisting entirely of 1 bits
- \81 is either a back reference, or a binary zero
- followed by the two characters "8" and "1"
-</PRE>
-</P>
-<P>
+ \113 might be a back reference, otherwise the character with octal code 113
+ \377 might be a back reference, otherwise the byte consisting entirely of 1 bits
+ \81 is either a back reference, or a binary zero followed by the two characters "8" and "1"
+</pre>
Note that octal values of 100 or greater must not be introduced by a leading
zero, because no more than three octal digits are ever read.
</P>
@@ -241,13 +218,17 @@ zero, because no more than three octal digits are ever read.
All the sequences that define a single byte value or a single UTF-8 character
(in UTF-8 mode) can be used both inside and outside character classes. In
addition, inside a character class, the sequence \b is interpreted as the
-backspace character (hex 08). Outside a character class it has a different
-meaning (see below).
-</P>
-<P>
-The third use of backslash is for specifying generic character types:
+backspace character (hex 08), and the sequence \X is interpreted as the
+character "X". Outside a character class, these sequences have different
+meanings
+<a href="#uniextseq">(see below).</a>
</P>
+<br><b>
+Generic character types
+</b><br>
<P>
+The third use of backslash is for specifying generic character types. The
+following are always recognized:
<pre>
\d any decimal digit
\D any character that is not a decimal digit
@@ -255,15 +236,15 @@ The third use of backslash is for specifying generic character types:
\S any character that is not a whitespace character
\w any "word" character
\W any "non-word" character
-</PRE>
-</P>
-<P>
+</pre>
Each pair of escape sequences partitions the complete set of characters into
two disjoint sets. Any given character matches one, and only one, of each pair.
</P>
<P>
-In UTF-8 mode, characters with values greater than 255 never match \d, \s, or
-\w, and always match \D, \S, and \W.
+These character type sequences can appear both inside and outside character
+classes. They each match one character of the appropriate type. If the current
+matching point is at the end of the subject string, all of them fail, since
+there is no character to match.
</P>
<P>
For compatibility with Perl, \s does not match the VT character (code 11).
@@ -271,30 +252,131 @@ This makes it different from the the POSIX "space" class. The \s characters
are HT (9), LF (10), FF (12), CR (13), and space (32).
</P>
<P>
-A "word" character is any letter or digit or the underscore character, that is,
-any character which can be part of a Perl "word". The definition of letters and
-digits is controlled by PCRE's character tables, and may vary if locale-
-specific matching is taking place (see
+A "word" character is an underscore or any character less than 256 that is a
+letter or digit. The definition of letters and digits is controlled by PCRE's
+low-valued character tables, and may vary if locale-specific matching is taking
+place (see
<a href="pcreapi.html#localesupport">"Locale support"</a>
in the
<a href="pcreapi.html"><b>pcreapi</b></a>
-page). For example, in the "fr" (French) locale, some character codes greater
-than 128 are used for accented letters, and these are matched by \w.
-</P>
-<P>
-These character type sequences can appear both inside and outside character
-classes. They each match one character of the appropriate type. If the current
-matching point is at the end of the subject string, all of them fail, since
-there is no character to match.
-</P>
+page). For example, in the "fr_FR" (French) locale, some character codes
+greater than 128 are used for accented letters, and these are matched by \w.
+</P>
+<P>
+In UTF-8 mode, characters with values greater than 128 never match \d, \s, or
+\w, and always match \D, \S, and \W. This is true even when Unicode
+character property support is available.
+<a name="uniextseq"></a></P>
+<br><b>
+Unicode character properties
+</b><br>
+<P>
+When PCRE is built with Unicode character property support, three additional
+escape sequences to match generic character types are available when UTF-8 mode
+is selected. They are:
+<pre>
+ \p{<i>xx</i>} a character with the <i>xx</i> property
+ \P{<i>xx</i>} a character without the <i>xx</i> property
+ \X an extended Unicode sequence
+</pre>
+The property names represented by <i>xx</i> above are limited to the
+Unicode general category properties. Each character has exactly one such
+property, specified by a two-letter abbreviation. For compatibility with Perl,
+negation can be specified by including a circumflex between the opening brace
+and the property name. For example, \p{^Lu} is the same as \P{Lu}.
+</P>
+<P>
+If only one letter is specified with \p or \P, it includes all the properties
+that start with that letter. In this case, in the absence of negation, the
+curly brackets in the escape sequence are optional; these two examples have
+the same effect:
+<pre>
+ \p{L}
+ \pL
+</pre>
+The following property codes are supported:
+<pre>
+ C Other
+ Cc Control
+ Cf Format
+ Cn Unassigned
+ Co Private use
+ Cs Surrogate
+
+ L Letter
+ Ll Lower case letter
+ Lm Modifier letter
+ Lo Other letter
+ Lt Title case letter
+ Lu Upper case letter
+
+ M Mark
+ Mc Spacing mark
+ Me Enclosing mark
+ Mn Non-spacing mark
+
+ N Number
+ Nd Decimal number
+ Nl Letter number
+ No Other number
+
+ P Punctuation
+ Pc Connector punctuation
+ Pd Dash punctuation
+ Pe Close punctuation
+ Pf Final punctuation
+ Pi Initial punctuation
+ Po Other punctuation
+ Ps Open punctuation
+
+ S Symbol
+ Sc Currency symbol
+ Sk Modifier symbol
+ Sm Mathematical symbol
+ So Other symbol
+
+ Z Separator
+ Zl Line separator
+ Zp Paragraph separator
+ Zs Space separator
+</pre>
+Extended properties such as "Greek" or "InMusicalSymbols" are not supported by
+PCRE.
+</P>
+<P>
+Specifying caseless matching does not affect these escape sequences. For
+example, \p{Lu} always matches only upper case letters.
+</P>
+<P>
+The \X escape matches any number of Unicode characters that form an extended
+Unicode sequence. \X is equivalent to
+<pre>
+ (?&#62;\PM\pM*)
+</pre>
+That is, it matches a character without the "mark" property, followed by zero
+or more characters with the "mark" property, and treats the sequence as an
+atomic group
+<a href="#atomicgroup">(see below).</a>
+Characters with the "mark" property are typically accents that affect the
+preceding character.
+</P>
+<P>
+Matching characters by Unicode property is not fast, because PCRE has to search
+a structure that contains data for over fifteen thousand characters. That is
+why the traditional escape sequences such as \d and \w do not use Unicode
+properties in PCRE.
+<a name="smallassertions"></a></P>
+<br><b>
+Simple assertions
+</b><br>
<P>
The fourth use of backslash is for certain simple assertions. An assertion
specifies a condition that has to be met at a particular point in a match,
without consuming any characters from the subject string. The use of
-subpatterns for more complicated assertions is described below. The backslashed
-assertions are
-</P>
-<P>
+subpatterns for more complicated assertions is described
+<a href="#bigassertions">below.</a>
+The backslashed
+assertions are:
<pre>
\b matches at a word boundary
\B matches when not at a word boundary
@@ -302,9 +384,7 @@ assertions are
\Z matches at end of subject or before newline at end
\z matches at end of subject
\G matches at first matching position in subject
-</PRE>
-</P>
-<P>
+</pre>
These assertions may not appear in character classes (but note that \b has a
different meaning, namely the backspace character, inside a character class).
</P>
@@ -316,17 +396,16 @@ first or last character matches \w, respectively.
</P>
<P>
The \A, \Z, and \z assertions differ from the traditional circumflex and
-dollar (described below) in that they only ever match at the very start and end
-of the subject string, whatever options are set. Thus, they are independent of
-multiline mode.
-</P>
-<P>
-They are not affected by the PCRE_NOTBOL or PCRE_NOTEOL options. If the
-<i>startoffset</i> argument of <b>pcre_exec()</b> is non-zero, indicating that
-matching is to start at a point other than the beginning of the subject, \A
-can never match. The difference between \Z and \z is that \Z matches before
-a newline that is the last character of the string as well as at the end of the
-string, whereas \z matches only at the end.
+dollar (described in the next section) in that they only ever match at the very
+start and end of the subject string, whatever options are set. Thus, they are
+independent of multiline mode. These three assertions are not affected by the
+PCRE_NOTBOL or PCRE_NOTEOL options, which affect only the behaviour of the
+circumflex and dollar metacharacters. However, if the <i>startoffset</i>
+argument of <b>pcre_exec()</b> is non-zero, indicating that matching is to start
+at a point other than the beginning of the subject, \A can never match. The
+difference between \Z and \z is that \Z matches before a newline that is the
+last character of the string as well as at the end of the string, whereas \z
+matches only at the end.
</P>
<P>
The \G assertion is true only when the current matching position is at the
@@ -351,11 +430,12 @@ regular expression.
<br><a name="SEC3" href="#TOC1">CIRCUMFLEX AND DOLLAR</a><br>
<P>
Outside a character class, in the default matching mode, the circumflex
-character is an assertion which is true only if the current matching point is
+character is an assertion that is true only if the current matching point is
at the start of the subject string. If the <i>startoffset</i> argument of
<b>pcre_exec()</b> is non-zero, circumflex can never match if the PCRE_MULTILINE
option is unset. Inside a character class, circumflex has an entirely different
-meaning (see below).
+meaning
+<a href="#characterclass">(see below).</a>
</P>
<P>
Circumflex need not be the first character of the pattern if a number of
@@ -367,7 +447,7 @@ constrained to match only at the start of the subject, it is said to be an
to be anchored.)
</P>
<P>
-A dollar character is an assertion which is true only if the current matching
+A dollar character is an assertion that is true only if the current matching
point is at the end of the subject string, or immediately before a newline
character that is the last character in the string (by default). Dollar need
not be the last character of the pattern if a number of alternatives are
@@ -384,12 +464,13 @@ The meanings of the circumflex and dollar characters are changed if the
PCRE_MULTILINE option is set. When this is the case, they match immediately
after and immediately before an internal newline character, respectively, in
addition to matching at the start and end of the subject string. For example,
-the pattern /^abc$/ matches the subject string "def\nabc" in multiline mode,
-but not otherwise. Consequently, patterns that are anchored in single line mode
-because all branches start with ^ are not anchored in multiline mode, and a
-match for circumflex is possible when the <i>startoffset</i> argument of
-<b>pcre_exec()</b> is non-zero. The PCRE_DOLLAR_ENDONLY option is ignored if
-PCRE_MULTILINE is set.
+the pattern /^abc$/ matches the subject string "def\nabc" (where \n
+represents a newline character) in multiline mode, but not otherwise.
+Consequently, patterns that are anchored in single line mode because all
+branches start with ^ are not anchored in multiline mode, and a match for
+circumflex is possible when the <i>startoffset</i> argument of <b>pcre_exec()</b>
+is non-zero. The PCRE_DOLLAR_ENDONLY option is ignored if PCRE_MULTILINE is
+set.
</P>
<P>
Note that the sequences \A, \Z, and \z can be used to match the start and
@@ -401,7 +482,7 @@ end of the subject in both modes, and if all branches of a pattern start with
Outside a character class, a dot in the pattern matches any one character in
the subject, including a non-printing character, but not (by default) newline.
In UTF-8 mode, a dot matches any UTF-8 character, which might be more than one
-byte long, except (by default) for newline. If the PCRE_DOTALL option is set,
+byte long, except (by default) newline. If the PCRE_DOTALL option is set,
dots match newlines as well. The handling of dot is entirely independent of the
handling of circumflex and dollar, the only relationship being that they both
involve newline characters. Dot has no special meaning in a character class.
@@ -409,16 +490,19 @@ involve newline characters. Dot has no special meaning in a character class.
<br><a name="SEC5" href="#TOC1">MATCHING A SINGLE BYTE</a><br>
<P>
Outside a character class, the escape sequence \C matches any one byte, both
-in and out of UTF-8 mode. Unlike a dot, it always matches a newline. The
-feature is provided in Perl in order to match individual bytes in UTF-8 mode.
-Because it breaks up UTF-8 characters into individual bytes, what remains in
-the string may be a malformed UTF-8 string. For this reason it is best avoided.
+in and out of UTF-8 mode. Unlike a dot, it can match a newline. The feature is
+provided in Perl in order to match individual bytes in UTF-8 mode. Because it
+breaks up UTF-8 characters into individual bytes, what remains in the string
+may be a malformed UTF-8 string. For this reason, the \C escape sequence is
+best avoided.
</P>
<P>
-PCRE does not allow \C to appear in lookbehind assertions (see below), because
-in UTF-8 mode it makes it impossible to calculate the length of the lookbehind.
-</P>
-<br><a name="SEC6" href="#TOC1">SQUARE BRACKETS</a><br>
+PCRE does not allow \C to appear in lookbehind assertions
+<a href="#lookbehind">(described below),</a>
+because in UTF-8 mode this would make it impossible to calculate the length of
+the lookbehind.
+<a name="characterclass"></a></P>
+<br><a name="SEC6" href="#TOC1">SQUARE BRACKETS AND CHARACTER CLASSES</a><br>
<P>
An opening square bracket introduces a character class, terminated by a closing
square bracket. A closing square bracket on its own is not special. If a
@@ -438,10 +522,11 @@ backslash.
<P>
For example, the character class [aeiou] matches any lower case vowel, while
[^aeiou] matches any character that is not a lower case vowel. Note that a
-circumflex is just a convenient notation for specifying the characters which
-are in the class by enumerating those that are not. It is not an assertion: it
-still consumes a character from the subject string, and fails if the current
-pointer is at the end of the string.
+circumflex is just a convenient notation for specifying the characters that
+are in the class by enumerating those that are not. A class that starts with a
+circumflex is not an assertion: it still consumes a character from the subject
+string, and therefore it fails if the current pointer is at the end of the
+string.
</P>
<P>
In UTF-8 mode, characters with values greater than 255 can be included in a
@@ -451,8 +536,9 @@ class as a literal string of bytes, or by using the \x{ escaping mechanism.
When caseless matching is set, any letters in a class represent both their
upper case and lower case versions, so for example, a caseless [aeiou] matches
"A" as well as "a", and a caseless [^aeiou] does not match "A", whereas a
-caseful version would. PCRE does not support the concept of case for characters
-with values greater than 255.
+caseful version would. When running in UTF-8 mode, PCRE supports the concept of
+case for characters with values greater than 128 only when it is compiled with
+Unicode property support.
</P>
<P>
The newline character is never treated in any special way in character classes,
@@ -471,9 +557,9 @@ It is not possible to have the literal character "]" as the end character of a
range. A pattern such as [W-]46] is interpreted as a class of two characters
("W" and "-") followed by a literal string "46]", so it would match "W46]" or
"-46]". However, if the "]" is escaped with a backslash it is interpreted as
-the end of range, so [W-\]46] is interpreted as a single class containing a
-range followed by two separate characters. The octal or hexadecimal
-representation of "]" can also be used to end a range.
+the end of range, so [W-\]46] is interpreted as a class containing a range
+followed by two other characters. The octal or hexadecimal representation of
+"]" can also be used to end a range.
</P>
<P>
Ranges operate in the collating sequence of character values. They can also be
@@ -484,38 +570,38 @@ example [\x{100}-\x{2ff}].
<P>
If a range that includes letters is used when caseless matching is set, it
matches the letters in either case. For example, [W-c] is equivalent to
-[][\^_`wxyzabc], matched caselessly, and if character tables for the "fr"
-locale are in use, [\xc8-\xcb] matches accented E characters in both cases.
+[][\\^_`wxyzabc], matched caselessly, and in non-UTF-8 mode, if character
+tables for the "fr_FR" locale are in use, [\xc8-\xcb] matches accented E
+characters in both cases. In UTF-8 mode, PCRE supports the concept of case for
+characters with values greater than 128 only when it is compiled with Unicode
+property support.
</P>
<P>
-The character types \d, \D, \s, \S, \w, and \W may also appear in a
-character class, and add the characters that they match to the class. For
+The character types \d, \D, \p, \P, \s, \S, \w, and \W may also appear
+in a character class, and add the characters that they match to the class. For
example, [\dABCDEF] matches any hexadecimal digit. A circumflex can
conveniently be used with the upper case character types to specify a more
restricted set of characters than the matching lower case type. For example,
the class [^\W_] matches any letter or digit, but not underscore.
</P>
<P>
-All non-alphameric characters other than \, -, ^ (at the start) and the
-terminating ] are non-special in character classes, but it does no harm if they
-are escaped.
+The only metacharacters that are recognized in character classes are backslash,
+hyphen (only where it can be interpreted as specifying a range), circumflex
+(only at the start), opening square bracket (only when it can be interpreted as
+introducing a POSIX class name - see the next section), and the terminating
+closing square bracket. However, escaping other non-alphanumeric characters
+does no harm.
</P>
<br><a name="SEC7" href="#TOC1">POSIX CHARACTER CLASSES</a><br>
<P>
-Perl supports the POSIX notation for character classes, which uses names
+Perl supports the POSIX notation for character classes. This uses names
enclosed by [: and :] within the enclosing square brackets. PCRE also supports
this notation. For example,
-</P>
-<P>
<pre>
[01[:alpha:]%]
-</PRE>
-</P>
-<P>
+</pre>
matches "0", "1", any alphabetic character, or "%". The supported class names
are
-</P>
-<P>
<pre>
alnum letters and digits
alpha letters
@@ -531,9 +617,7 @@ are
upper upper case letters
word "word" characters (same as \w)
xdigit hexadecimal digits
-</PRE>
-</P>
-<P>
+</pre>
The "space" characters are HT (9), LF (10), VT (11), FF (12), CR (13), and
space (32). Notice that this list includes the VT character (code 11). This
makes "space" different to \s, which does not include VT (for Perl
@@ -543,54 +627,44 @@ compatibility).
The name "word" is a Perl extension, and "blank" is a GNU extension from Perl
5.8. Another Perl extension is negation, which is indicated by a ^ character
after the colon. For example,
-</P>
-<P>
<pre>
[12[:^digit:]]
-</PRE>
-</P>
-<P>
+</pre>
matches "1", "2", or any non-digit. PCRE (and Perl) also recognize the POSIX
syntax [.ch.] and [=ch=] where "ch" is a "collating element", but these are not
supported, and an error is given if they are encountered.
</P>
<P>
-In UTF-8 mode, characters with values greater than 255 do not match any of
+In UTF-8 mode, characters with values greater than 128 do not match any of
the POSIX character classes.
</P>
<br><a name="SEC8" href="#TOC1">VERTICAL BAR</a><br>
<P>
Vertical bar characters are used to separate alternative patterns. For example,
the pattern
-</P>
-<P>
<pre>
gilbert|sullivan
-</PRE>
-</P>
-<P>
+</pre>
matches either "gilbert" or "sullivan". Any number of alternatives may appear,
and an empty alternative is permitted (matching the empty string).
The matching process tries each alternative in turn, from left to right,
and the first one that succeeds is used. If the alternatives are within a
-subpattern (defined below), "succeeds" means matching the rest of the main
-pattern as well as the alternative in the subpattern.
+subpattern
+<a href="#subpattern">(defined below),</a>
+"succeeds" means matching the rest of the main pattern as well as the
+alternative in the subpattern.
</P>
<br><a name="SEC9" href="#TOC1">INTERNAL OPTION SETTING</a><br>
<P>
The settings of the PCRE_CASELESS, PCRE_MULTILINE, PCRE_DOTALL, and
PCRE_EXTENDED options can be changed from within the pattern by a sequence of
Perl option letters enclosed between "(?" and ")". The option letters are
-</P>
-<P>
<pre>
i for PCRE_CASELESS
m for PCRE_MULTILINE
s for PCRE_DOTALL
x for PCRE_EXTENDED
-</PRE>
-</P>
-<P>
+</pre>
For example, (?im) sets caseless, multiline matching. It is also possible to
unset these options by preceding the letter with a hyphen, and a combined
setting and unsetting such as (?im-sx), which sets PCRE_CASELESS and
@@ -608,24 +682,16 @@ the global options (and it will therefore show up in data extracted by the
<P>
An option change within a subpattern affects only that part of the current
pattern that follows it, so
-</P>
-<P>
<pre>
(a(?i)b)c
-</PRE>
-</P>
-<P>
+</pre>
matches abc and aBc and no other strings (assuming PCRE_CASELESS is not used).
By this means, options can be made to have different settings in different
parts of the pattern. Any changes made in one alternative do carry on
into subsequent branches within the same subpattern. For example,
-</P>
-<P>
<pre>
(a(?i)b|c)
-</PRE>
-</P>
-<P>
+</pre>
matches "ab", "aB", "c", and "C", even though when matching "C" the first
branch is abandoned before the option setting. This is because the effects of
option settings happen at compile time. There would be some very weird
@@ -636,41 +702,33 @@ The PCRE-specific options PCRE_UNGREEDY and PCRE_EXTRA can be changed in the
same way as the Perl-compatible options by using the characters U and X
respectively. The (?X) flag setting is special in that it must always occur
earlier in the pattern than any of the additional features it turns on, even
-when it is at top level. It is best put at the start.
-</P>
+when it is at top level. It is best to put it at the start.
+<a name="subpattern"></a></P>
<br><a name="SEC10" href="#TOC1">SUBPATTERNS</a><br>
<P>
Subpatterns are delimited by parentheses (round brackets), which can be nested.
-Marking part of a pattern as a subpattern does two things:
-</P>
-<P>
+Turning part of a pattern into a subpattern does two things:
+<br>
+<br>
1. It localizes a set of alternatives. For example, the pattern
-</P>
-<P>
<pre>
cat(aract|erpillar|)
-</PRE>
-</P>
-<P>
+</pre>
matches one of the words "cat", "cataract", or "caterpillar". Without the
parentheses, it would match "cataract", "erpillar" or the empty string.
-</P>
-<P>
-2. It sets up the subpattern as a capturing subpattern (as defined above).
-When the whole pattern matches, that portion of the subject string that matched
-the subpattern is passed back to the caller via the <i>ovector</i> argument of
+<br>
+<br>
+2. It sets up the subpattern as a capturing subpattern. This means that, when
+the whole pattern matches, that portion of the subject string that matched the
+subpattern is passed back to the caller via the <i>ovector</i> argument of
<b>pcre_exec()</b>. Opening parentheses are counted from left to right (starting
-from 1) to obtain the numbers of the capturing subpatterns.
+from 1) to obtain numbers for the capturing subpatterns.
</P>
<P>
For example, if the string "the red king" is matched against the pattern
-</P>
-<P>
<pre>
the ((red|white) (king|queen))
-</PRE>
-</P>
-<P>
+</pre>
the captured substrings are "red king", "red", and "king", and are numbered 1,
2, and 3, respectively.
</P>
@@ -681,13 +739,9 @@ capturing requirement. If an opening parenthesis is followed by a question mark
and a colon, the subpattern does not do any capturing, and is not counted when
computing the number of any subsequent capturing subpatterns. For example, if
the string "the white queen" is matched against the pattern
-</P>
-<P>
<pre>
the ((?:red|white) (king|queen))
-</PRE>
-</P>
-<P>
+</pre>
the captured substrings are "white queen" and "queen", and are numbered 1 and
2. The maximum number of capturing subpatterns is 65535, and the maximum depth
of nesting of all subpatterns, both capturing and non-capturing, is 200.
@@ -696,14 +750,10 @@ of nesting of all subpatterns, both capturing and non-capturing, is 200.
As a convenient shorthand, if any option settings are required at the start of
a non-capturing subpattern, the option letters may appear between the "?" and
the ":". Thus the two patterns
-</P>
-<P>
<pre>
(?i:saturday|sunday)
(?:(?i)saturday|sunday)
-</PRE>
-</P>
-<P>
+</pre>
match exactly the same set of strings. Because alternative branches are tried
from left to right, and options are not reset until the end of the subpattern
is reached, an option setting in one branch does affect subsequent branches, so
@@ -713,7 +763,7 @@ the above patterns match "SUNDAY" as well as "Saturday".
<P>
Identifying capturing parentheses by number is simple, but it can be very hard
to keep track of the numbers in complicated regular expressions. Furthermore,
-if an expression is modified, the numbers may change. To help with the
+if an expression is modified, the numbers may change. To help with this
difficulty, PCRE supports the naming of subpatterns, something that Perl does
not provide. The Python syntax (?P&#60;name&#62;...) is used. Names consist of
alphanumeric characters and underscores, and must be unique within a pattern.
@@ -721,7 +771,8 @@ alphanumeric characters and underscores, and must be unique within a pattern.
<P>
Named capturing parentheses are still allocated numbers as well as names. The
PCRE API provides function calls for extracting the name-to-number translation
-table from a compiled pattern. For further details see the
+table from a compiled pattern. There is also a convenience function for
+extracting a captured substring by name. For further details see the
<a href="pcreapi.html"><b>pcreapi</b></a>
documentation.
</P>
@@ -729,49 +780,34 @@ documentation.
<P>
Repetition is specified by quantifiers, which can follow any of the following
items:
-</P>
-<P>
<pre>
a literal data character
the . metacharacter
the \C escape sequence
- escapes such as \d that match single characters
+ the \X escape sequence (in UTF-8 mode with Unicode properties)
+ an escape such as \d that matches a single character
a character class
a back reference (see next section)
a parenthesized subpattern (unless it is an assertion)
-</PRE>
-</P>
-<P>
+</pre>
The general repetition quantifier specifies a minimum and maximum number of
permitted matches, by giving the two numbers in curly brackets (braces),
separated by a comma. The numbers must be less than 65536, and the first must
be less than or equal to the second. For example:
-</P>
-<P>
<pre>
z{2,4}
-</PRE>
-</P>
-<P>
+</pre>
matches "zz", "zzz", or "zzzz". A closing brace on its own is not a special
character. If the second number is omitted, but the comma is present, there is
no upper limit; if the second number and the comma are both omitted, the
quantifier specifies an exact number of required matches. Thus
-</P>
-<P>
<pre>
[aeiou]{3,}
-</PRE>
-</P>
-<P>
+</pre>
matches at least 3 successive vowels, but may match many more, while
-</P>
-<P>
<pre>
\d{8}
-</PRE>
-</P>
-<P>
+</pre>
matches exactly 8 digits. An opening curly bracket that appears in a position
where a quantifier is not allowed, or one that does not match the syntax of a
quantifier, is taken as a literal character. For example, {,6} is not a
@@ -780,7 +816,9 @@ quantifier, but a literal string of four characters.
<P>
In UTF-8 mode, quantifiers apply to UTF-8 characters rather than to individual
bytes. Thus, for example, \x{100}{2} matches two UTF-8 characters, each of
-which is represented by a two-byte sequence.
+which is represented by a two-byte sequence. Similarly, when Unicode property
+support is available, \X{3} matches three Unicode extended sequences, each of
+which may be several bytes long (and they may be of different lengths).
</P>
<P>
The quantifier {0} is permitted, causing the expression to behave as if the
@@ -789,24 +827,16 @@ previous item and the quantifier were not present.
<P>
For convenience (and historical compatibility) the three most common
quantifiers have single-character abbreviations:
-</P>
-<P>
<pre>
* is equivalent to {0,}
+ is equivalent to {1,}
? is equivalent to {0,1}
-</PRE>
-</P>
-<P>
+</pre>
It is possible to construct infinite loops by following a subpattern that can
match no characters with a quantifier that has no upper limit, for example:
-</P>
-<P>
<pre>
(a?)*
-</PRE>
-</P>
-<P>
+</pre>
Earlier versions of Perl and PCRE used to give an error at compile time for
such patterns. However, because there are cases where this can be useful, such
patterns are now accepted, but if any repetition of the subpattern does in fact
@@ -816,24 +846,16 @@ match no characters, the loop is forcibly broken.
By default, the quantifiers are "greedy", that is, they match as much as
possible (up to the maximum number of permitted times), without causing the
rest of the pattern to fail. The classic example of where this gives problems
-is in trying to match comments in C programs. These appear between the
-sequences /* and */ and within the sequence, individual * and / characters may
-appear. An attempt to match C comments by applying the pattern
-</P>
-<P>
+is in trying to match comments in C programs. These appear between /* and */
+and within the comment, individual * and / characters may appear. An attempt to
+match C comments by applying the pattern
<pre>
/\*.*\*/
-</PRE>
-</P>
-<P>
+</pre>
to the string
-</P>
-<P>
<pre>
- /* first command */ not comment /* second comment */
-</PRE>
-</P>
-<P>
+ /* first comment */ not comment /* second comment */
+</pre>
fails, because it matches the entire string owing to the greediness of the .*
item.
</P>
@@ -841,24 +863,16 @@ item.
However, if a quantifier is followed by a question mark, it ceases to be
greedy, and instead matches the minimum number of times possible, so the
pattern
-</P>
-<P>
<pre>
/\*.*?\*/
-</PRE>
-</P>
-<P>
+</pre>
does the right thing with the C comments. The meaning of the various
quantifiers is not otherwise changed, just the preferred number of matches.
Do not confuse this use of question mark with its use as a quantifier in its
own right. Because it has two uses, it can sometimes appear doubled, as in
-</P>
-<P>
<pre>
\d??\d
-</PRE>
-</P>
-<P>
+</pre>
which matches one digit by preference, but can match two if that is the only
way the rest of the pattern matches.
</P>
@@ -870,7 +884,7 @@ default behaviour.
</P>
<P>
When a parenthesized subpattern is quantified with a minimum repeat count that
-is greater than 1 or with a limited maximum, more store is required for the
+is greater than 1 or with a limited maximum, more memory is required for the
compiled pattern, in proportion to the size of the minimum or maximum.
</P>
<P>
@@ -891,39 +905,27 @@ However, there is one situation where the optimization cannot be used. When .*
is inside capturing parentheses that are the subject of a backreference
elsewhere in the pattern, a match at the start may fail, and a later one
succeed. Consider, for example:
-</P>
-<P>
<pre>
(.*)abc\1
-</PRE>
-</P>
-<P>
+</pre>
If the subject is "xyz123abc123" the match point is the fourth character. For
this reason, such a pattern is not implicitly anchored.
</P>
<P>
When a capturing subpattern is repeated, the value captured is the substring
that matched the final iteration. For example, after
-</P>
-<P>
<pre>
(tweedle[dume]{3}\s*)+
-</PRE>
-</P>
-<P>
+</pre>
has matched "tweedledum tweedledee" the value of the captured substring is
"tweedledee". However, if there are nested capturing subpatterns, the
corresponding captured values may have been set in previous iterations. For
example, after
-</P>
-<P>
<pre>
/(a|(b))+/
-</PRE>
-</P>
-<P>
+</pre>
matches "aba" the value of the second captured substring is "b".
-</P>
+<a name="atomicgroup"></a></P>
<br><a name="SEC13" href="#TOC1">ATOMIC GROUPING AND POSSESSIVE QUANTIFIERS</a><br>
<P>
With both maximizing and minimizing repetition, failure of what follows
@@ -935,13 +937,9 @@ there is no point in carrying on.
</P>
<P>
Consider, for example, the pattern \d+foo when applied to the subject line
-</P>
-<P>
<pre>
123456bar
-</PRE>
-</P>
-<P>
+</pre>
After matching all 6 digits and then failing to match "foo", the normal
action of the matcher is to try again with only 5 digits matching the \d+
item, and then with 4, and so on, before ultimately failing. "Atomic grouping"
@@ -952,13 +950,9 @@ that once a subpattern has matched, it is not to be re-evaluated in this way.
If we use atomic grouping for the previous example, the matcher would give up
immediately on failing to match "foo" the first time. The notation is a kind of
special parenthesis, starting with (?&#62; as in this example:
-</P>
-<P>
<pre>
(?&#62;\d+)foo
-</PRE>
-</P>
-<P>
+</pre>
This kind of parenthesis "locks up" the part of the pattern it contains once
it has matched, and a failure further into the pattern is prevented from
backtracking into it. Backtracking past it to previous items, however, works as
@@ -983,13 +977,9 @@ group is just a single repeated item, as in the example above, a simpler
notation, called a "possessive quantifier" can be used. This consists of an
additional + character following a quantifier. Using this notation, the
previous example can be rewritten as
-</P>
-<P>
<pre>
- \d++bar
-</PRE>
-</P>
-<P>
+ \d++foo
+</pre>
Possessive quantifiers are always greedy; the setting of the PCRE_UNGREEDY
option is ignored. They are a convenient notation for the simpler forms of
atomic group. However, there is no difference in the meaning or processing of a
@@ -1004,39 +994,28 @@ When a pattern contains an unlimited repeat inside a subpattern that can itself
be repeated an unlimited number of times, the use of an atomic group is the
only way to avoid some failing matches taking a very long time indeed. The
pattern
-</P>
-<P>
<pre>
(\D+|&#60;\d+&#62;)*[!?]
-</PRE>
-</P>
-<P>
+</pre>
matches an unlimited number of substrings that either consist of non-digits, or
digits enclosed in &#60;&#62;, followed by either ! or ?. When it matches, it runs
quickly. However, if it is applied to
-</P>
-<P>
<pre>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-</PRE>
-</P>
-<P>
+</pre>
it takes a long time before reporting failure. This is because the string can
-be divided between the two repeats in a large number of ways, and all have to
-be tried. (The example used [!?] rather than a single character at the end,
-because both PCRE and Perl have an optimization that allows for fast failure
-when a single character is used. They remember the last single character that
-is required for a match, and fail early if it is not present in the string.)
-If the pattern is changed to
-</P>
-<P>
+be divided between the internal \D+ repeat and the external * repeat in a
+large number of ways, and all have to be tried. (The example uses [!?] rather
+than a single character at the end, because both PCRE and Perl have an
+optimization that allows for fast failure when a single character is used. They
+remember the last single character that is required for a match, and fail early
+if it is not present in the string.) If the pattern is changed so that it uses
+an atomic group, like this:
<pre>
((?&#62;\D+)|&#60;\d+&#62;)*[!?]
-</PRE>
-</P>
-<P>
+</pre>
sequences of non-digits cannot be broken, and failure happens quickly.
-</P>
+<a name="backreferences"></a></P>
<br><a name="SEC14" href="#TOC1">BACK REFERENCES</a><br>
<P>
Outside a character class, a backslash followed by a digit greater than 0 (and
@@ -1049,8 +1028,9 @@ However, if the decimal number following the backslash is less than 10, it is
always taken as a back reference, and causes an error only if there are not
that many capturing left parentheses in the entire pattern. In other words, the
parentheses that are referenced need not be to the left of the reference for
-numbers less than 10. See the section entitled "Backslash" above for further
-details of the handling of digits following a backslash.
+numbers less than 10. See the subsection entitled "Non-printing characters"
+<a href="#digitsafterbackslash">above</a>
+for further details of the handling of digits following a backslash.
</P>
<P>
A back reference matches whatever actually matched the capturing subpattern in
@@ -1058,169 +1038,136 @@ the current subject string, rather than anything matching the subpattern
itself (see
<a href="#subpatternsassubroutines">"Subpatterns as subroutines"</a>
below for a way of doing that). So the pattern
-</P>
-<P>
<pre>
(sens|respons)e and \1ibility
-</PRE>
-</P>
-<P>
+</pre>
matches "sense and sensibility" and "response and responsibility", but not
"sense and responsibility". If caseful matching is in force at the time of the
back reference, the case of letters is relevant. For example,
-</P>
-<P>
<pre>
((?i)rah)\s+\1
-</PRE>
-</P>
-<P>
+</pre>
matches "rah rah" and "RAH RAH", but not "RAH rah", even though the original
capturing subpattern is matched caselessly.
</P>
<P>
Back references to named subpatterns use the Python syntax (?P=name). We could
rewrite the above example as follows:
-</P>
-<P>
<pre>
(?&#60;p1&#62;(?i)rah)\s+(?P=p1)
-</PRE>
-</P>
-<P>
+</pre>
There may be more than one back reference to the same subpattern. If a
subpattern has not actually been used in a particular match, any back
references to it always fail. For example, the pattern
-</P>
-<P>
<pre>
(a|(bc))\2
-</PRE>
-</P>
-<P>
+</pre>
always fails if it starts to match "a" rather than "bc". Because there may be
many capturing parentheses in a pattern, all digits following the backslash are
taken as part of a potential back reference number. If the pattern continues
with a digit character, some delimiter must be used to terminate the back
reference. If the PCRE_EXTENDED option is set, this can be whitespace.
-Otherwise an empty comment can be used.
+Otherwise an empty comment (see
+<a href="#comments">"Comments"</a>
+below) can be used.
</P>
<P>
A back reference that occurs inside the parentheses to which it refers fails
when the subpattern is first used, so, for example, (a\1) never matches.
However, such references can be useful inside repeated subpatterns. For
example, the pattern
-</P>
-<P>
<pre>
(a|b\1)+
-</PRE>
-</P>
-<P>
+</pre>
matches any number of "a"s and also "aba", "ababbaa" etc. At each iteration of
the subpattern, the back reference matches the character string corresponding
to the previous iteration. In order for this to work, the pattern must be such
that the first iteration does not need to match the back reference. This can be
done using alternation, as in the example above, or by a quantifier with a
minimum of zero.
-</P>
+<a name="bigassertions"></a></P>
<br><a name="SEC15" href="#TOC1">ASSERTIONS</a><br>
<P>
An assertion is a test on the characters following or preceding the current
matching point that does not actually consume any characters. The simple
-assertions coded as \b, \B, \A, \G, \Z, \z, ^ and $ are described above.
+assertions coded as \b, \B, \A, \G, \Z, \z, ^ and $ are described
+<a href="#smallassertions">above.</a>
+</P>
+<P>
More complicated assertions are coded as subpatterns. There are two kinds:
those that look ahead of the current position in the subject string, and those
-that look behind it.
+that look behind it. An assertion subpattern is matched in the normal way,
+except that it does not cause the current matching position to be changed.
</P>
<P>
-An assertion subpattern is matched in the normal way, except that it does not
-cause the current matching position to be changed. Lookahead assertions start
-with (?= for positive assertions and (?! for negative assertions. For example,
+Assertion subpatterns are not capturing subpatterns, and may not be repeated,
+because it makes no sense to assert the same thing several times. If any kind
+of assertion contains capturing subpatterns within it, these are counted for
+the purposes of numbering the capturing subpatterns in the whole pattern.
+However, substring capturing is carried out only for positive assertions,
+because it does not make sense for negative assertions.
</P>
+<br><b>
+Lookahead assertions
+</b><br>
<P>
+Lookahead assertions start
+with (?= for positive assertions and (?! for negative assertions. For example,
<pre>
\w+(?=;)
-</PRE>
-</P>
-<P>
+</pre>
matches a word followed by a semicolon, but does not include the semicolon in
the match, and
-</P>
-<P>
<pre>
foo(?!bar)
-</PRE>
-</P>
-<P>
+</pre>
matches any occurrence of "foo" that is not followed by "bar". Note that the
apparently similar pattern
-</P>
-<P>
<pre>
(?!foo)bar
-</PRE>
-</P>
-<P>
+</pre>
does not find an occurrence of "bar" that is preceded by something other than
"foo"; it finds any occurrence of "bar" whatsoever, because the assertion
(?!foo) is always true when the next three characters are "bar". A
-lookbehind assertion is needed to achieve this effect.
+lookbehind assertion is needed to achieve the other effect.
</P>
<P>
If you want to force a matching failure at some point in a pattern, the most
convenient way to do it is with (?!) because an empty string always matches, so
an assertion that requires there not to be an empty string must always fail.
-</P>
+<a name="lookbehind"></a></P>
+<br><b>
+Lookbehind assertions
+</b><br>
<P>
Lookbehind assertions start with (?&#60;= for positive assertions and (?&#60;! for
negative assertions. For example,
-</P>
-<P>
<pre>
(?&#60;!foo)bar
-</PRE>
-</P>
-<P>
+</pre>
does find an occurrence of "bar" that is not preceded by "foo". The contents of
a lookbehind assertion are restricted such that all the strings it matches must
have a fixed length. However, if there are several alternatives, they do not
all have to have the same fixed length. Thus
-</P>
-<P>
<pre>
(?&#60;=bullock|donkey)
-</PRE>
-</P>
-<P>
+</pre>
is permitted, but
-</P>
-<P>
<pre>
(?&#60;!dogs?|cats?)
-</PRE>
-</P>
-<P>
+</pre>
causes an error at compile time. Branches that match different length strings
are permitted only at the top level of a lookbehind assertion. This is an
extension compared with Perl (at least for 5.8), which requires all branches to
match the same length of string. An assertion such as
-</P>
-<P>
<pre>
(?&#60;=ab(c|de))
-</PRE>
-</P>
-<P>
+</pre>
is not permitted, because its single top-level branch can match two different
lengths, but it is acceptable if rewritten to use two top-level branches:
-</P>
-<P>
<pre>
(?&#60;=abc|abde)
-</PRE>
-</P>
-<P>
+</pre>
The implementation of lookbehind assertions is, for each alternative, to
temporarily move the current position back by the fixed width and then try to
match. If there are insufficient characters before the current position, the
@@ -1229,63 +1176,47 @@ match is deemed to fail.
<P>
PCRE does not allow the \C escape (which matches a single byte in UTF-8 mode)
to appear in lookbehind assertions, because it makes it impossible to calculate
-the length of the lookbehind.
+the length of the lookbehind. The \X escape, which can match different numbers
+of bytes, is also not permitted.
</P>
<P>
Atomic groups can be used in conjunction with lookbehind assertions to specify
efficient matching at the end of the subject string. Consider a simple pattern
such as
-</P>
-<P>
<pre>
abcd$
-</PRE>
-</P>
-<P>
+</pre>
when applied to a long string that does not match. Because matching proceeds
from left to right, PCRE will look for each "a" in the subject and then see if
what follows matches the rest of the pattern. If the pattern is specified as
-</P>
-<P>
<pre>
^.*abcd$
-</PRE>
-</P>
-<P>
+</pre>
the initial .* matches the entire string at first, but when this fails (because
there is no following "a"), it backtracks to match all but the last character,
then all but the last two characters, and so on. Once again the search for "a"
covers the entire string, from right to left, so we are no better off. However,
if the pattern is written as
-</P>
-<P>
<pre>
^(?&#62;.*)(?&#60;=abcd)
-</PRE>
-</P>
-<P>
-or, equivalently,
-</P>
-<P>
+</pre>
+or, equivalently, using the possessive quantifier syntax,
<pre>
^.*+(?&#60;=abcd)
-</PRE>
-</P>
-<P>
+</pre>
there can be no backtracking for the .* item; it can match only the entire
string. The subsequent lookbehind assertion does a single test on the last four
characters. If it fails, the match fails immediately. For long strings, this
approach makes a significant difference to the processing time.
</P>
+<br><b>
+Using multiple assertions
+</b><br>
<P>
Several assertions (of any sort) may occur in succession. For example,
-</P>
-<P>
<pre>
(?&#60;=\d{3})(?&#60;!999)foo
-</PRE>
-</P>
-<P>
+</pre>
matches "foo" preceded by three digits that are not "999". Notice that each of
the assertions is applied independently at the same point in the subject
string. First there is a check that the previous three characters are all
@@ -1293,60 +1224,36 @@ digits, and then there is a check that the same three characters are not "999".
This pattern does <i>not</i> match "foo" preceded by six characters, the first
of which are digits and the last three of which are not "999". For example, it
doesn't match "123abcfoo". A pattern to do that is
-</P>
-<P>
<pre>
(?&#60;=\d{3}...)(?&#60;!999)foo
-</PRE>
-</P>
-<P>
+</pre>
This time the first assertion looks at the preceding six characters, checking
that the first three are digits, and then the second assertion checks that the
preceding three characters are not "999".
</P>
<P>
Assertions can be nested in any combination. For example,
-</P>
-<P>
<pre>
(?&#60;=(?&#60;!foo)bar)baz
-</PRE>
-</P>
-<P>
+</pre>
matches an occurrence of "baz" that is preceded by "bar" which in turn is not
preceded by "foo", while
-</P>
-<P>
<pre>
(?&#60;=\d{3}(?!999)...)foo
-</PRE>
-</P>
-<P>
-is another pattern which matches "foo" preceded by three digits and any three
+</pre>
+is another pattern that matches "foo" preceded by three digits and any three
characters that are not "999".
</P>
-<P>
-Assertion subpatterns are not capturing subpatterns, and may not be repeated,
-because it makes no sense to assert the same thing several times. If any kind
-of assertion contains capturing subpatterns within it, these are counted for
-the purposes of numbering the capturing subpatterns in the whole pattern.
-However, substring capturing is carried out only for positive assertions,
-because it does not make sense for negative assertions.
-</P>
<br><a name="SEC16" href="#TOC1">CONDITIONAL SUBPATTERNS</a><br>
<P>
It is possible to cause the matching process to obey a subpattern
conditionally or to choose between two alternative subpatterns, depending on
the result of an assertion, or whether a previous capturing subpattern matched
or not. The two possible forms of conditional subpattern are
-</P>
-<P>
<pre>
(?(condition)yes-pattern)
(?(condition)yes-pattern|no-pattern)
-</PRE>
-</P>
-<P>
+</pre>
If the condition is satisfied, the yes-pattern is used; otherwise the
no-pattern (if present) is used. If there are more than two alternatives in the
subpattern, a compile-time error occurs.
@@ -1358,13 +1265,9 @@ subpattern of that number has previously matched. The number must be greater
than zero. Consider the following pattern, which contains non-significant white
space to make it more readable (assume the PCRE_EXTENDED option) and to divide
it into three parts for ease of discussion:
-</P>
-<P>
<pre>
( \( )? [^()]+ (?(1) \) )
-</PRE>
-</P>
-<P>
+</pre>
The first part matches an optional opening parenthesis, and if that
character is present, sets it as the first captured substring. The second part
matches one or more characters that are not parentheses. The third part is a
@@ -1385,24 +1288,20 @@ If the condition is not a sequence of digits or (R), it must be an assertion.
This may be a positive or negative lookahead or lookbehind assertion. Consider
this pattern, again containing non-significant white space, and with the two
alternatives on the second line:
-</P>
-<P>
<pre>
(?(?=[^a-z]*[a-z])
\d{2}-[a-z]{3}-\d{2} | \d{2}-\d{2}-\d{2} )
-</PRE>
-</P>
-<P>
+</pre>
The condition is a positive lookahead assertion that matches an optional
sequence of non-letters followed by a letter. In other words, it tests for the
presence of at least one letter in the subject. If a letter is found, the
subject is matched against the first alternative; otherwise it is matched
against the second. This pattern matches strings in one of the two forms
dd-aaa-dd or dd-dd-dd, where aaa are letters and dd are digits.
-</P>
+<a name="comments"></a></P>
<br><a name="SEC17" href="#TOC1">COMMENTS</a><br>
<P>
-The sequence (?# marks the start of a comment which continues up to the next
+The sequence (?# marks the start of a comment that continues up to the next
closing parenthesis. Nested parentheses are not permitted. The characters
that make up a comment play no part in the pattern matching at all.
</P>
@@ -1416,18 +1315,14 @@ character in the pattern.
Consider the problem of matching a string in parentheses, allowing for
unlimited nested parentheses. Without the use of recursion, the best that can
be done is to use a pattern that matches up to some fixed depth of nesting. It
-is not possible to handle an arbitrary nesting depth. Perl has provided an
-experimental facility that allows regular expressions to recurse (amongst other
-things). It does this by interpolating Perl code in the expression at run time,
-and the code can refer to the expression itself. A Perl pattern to solve the
-parentheses problem can be created like this:
-</P>
-<P>
+is not possible to handle an arbitrary nesting depth. Perl provides a facility
+that allows regular expressions to recurse (amongst other things). It does this
+by interpolating Perl code in the expression at run time, and the code can
+refer to the expression itself. A Perl pattern to solve the parentheses problem
+can be created like this:
<pre>
$re = qr{\( (?: (?&#62;[^()]+) | (?p{$re}) )* \)}x;
-</PRE>
-</P>
-<P>
+</pre>
The (?p{...}) item interpolates Perl code at run time, and in this case refers
recursively to the pattern in which it appears. Obviously, PCRE cannot support
the interpolation of Perl code. Instead, it supports some special syntax for
@@ -1443,13 +1338,9 @@ number, provided that it occurs inside that subpattern. (If not, it is a
<P>
For example, this PCRE pattern solves the nested parentheses problem (assume
the PCRE_EXTENDED option is set so that white space is ignored):
-</P>
-<P>
<pre>
\( ( (?&#62;[^()]+) | (?R) )* \)
-</PRE>
-</P>
-<P>
+</pre>
First it matches an opening parenthesis. Then it matches any number of
substrings which can either be a sequence of non-parentheses, or a recursive
match of the pattern itself (that is a correctly parenthesized substring).
@@ -1458,37 +1349,25 @@ Finally there is a closing parenthesis.
<P>
If this were part of a larger pattern, you would not want to recurse the entire
pattern, so instead you could use this:
-</P>
-<P>
<pre>
( \( ( (?&#62;[^()]+) | (?1) )* \) )
-</PRE>
-</P>
-<P>
+</pre>
We have put the pattern into parentheses, and caused the recursion to refer to
them instead of the whole pattern. In a larger pattern, keeping track of
parenthesis numbers can be tricky. It may be more convenient to use named
parentheses instead. For this, PCRE uses (?P&#62;name), which is an extension to
the Python syntax that PCRE uses for named parentheses (Perl does not provide
named parentheses). We could rewrite the above example as follows:
-</P>
-<P>
<pre>
(?P&#60;pn&#62; \( ( (?&#62;[^()]+) | (?P&#62;pn) )* \) )
-</PRE>
-</P>
-<P>
+</pre>
This particular example pattern contains nested unlimited repeats, and so the
use of atomic grouping for matching strings of non-parentheses is important
when applying the pattern to strings that do not match. For example, when this
pattern is applied to
-</P>
-<P>
<pre>
(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa()
-</PRE>
-</P>
-<P>
+</pre>
it yields "no match" quickly. However, if atomic grouping is not used,
the match runs for a very long time indeed because there are so many different
ways the + and * repeats can carve up the subject, and all have to be tested
@@ -1498,27 +1377,19 @@ before failure can be reported.
At the end of a match, the values set for any capturing subpatterns are those
from the outermost level of the recursion at which the subpattern value is set.
If you want to obtain intermediate values, a callout function can be used (see
-below and the
+the next section and the
<a href="pcrecallout.html"><b>pcrecallout</b></a>
documentation). If the pattern above is matched against
-</P>
-<P>
<pre>
(ab(cd)ef)
-</PRE>
-</P>
-<P>
+</pre>
the value for the capturing parentheses is "ef", which is the last value taken
on at the top level. If additional parentheses are added, giving
-</P>
-<P>
<pre>
\( ( ( (?&#62;[^()]+) | (?R) )* ) \)
^ ^
^ ^
-</PRE>
-</P>
-<P>
+</pre>
the string they capture is "ab(cd)ef", the contents of the top level
parentheses. If there are more than 15 capturing parentheses in a pattern, PCRE
has to obtain extra memory to store data during a recursion, which it does by
@@ -1530,39 +1401,27 @@ Do not confuse the (?R) item with the condition (R), which tests for recursion.
Consider this pattern, which matches text in angle brackets, allowing for
arbitrary nesting. Only digits are allowed in nested brackets (that is, when
recursing), whereas any characters are permitted at the outer level.
-</P>
-<P>
<pre>
&#60; (?: (?(R) \d++ | [^&#60;&#62;]*+) | (?R)) * &#62;
-</PRE>
-</P>
-<P>
+</pre>
In this pattern, (?(R) is the start of a conditional subpattern, with two
different alternatives for the recursive and non-recursive cases. The (?R) item
is the actual recursive call.
-</P>
-<a name="subpatternsassubroutines"></a><br><a name="SEC19" href="#TOC1">SUBPATTERNS AS SUBROUTINES</a><br>
+<a name="subpatternsassubroutines"></a></P>
+<br><a name="SEC19" href="#TOC1">SUBPATTERNS AS SUBROUTINES</a><br>
<P>
If the syntax for a recursive subpattern reference (either by number or by
name) is used outside the parentheses to which it refers, it operates like a
subroutine in a programming language. An earlier example pointed out that the
pattern
-</P>
-<P>
<pre>
(sens|respons)e and \1ibility
-</PRE>
-</P>
-<P>
+</pre>
matches "sense and sensibility" and "response and responsibility", but not
"sense and responsibility". If instead the pattern
-</P>
-<P>
<pre>
(sens|respons)e and (?1)ibility
-</PRE>
-</P>
-<P>
+</pre>
is used, it does match "sense and responsibility" as well as the other two
strings. Such references must, however, follow the subpattern to which they
refer.
@@ -1585,23 +1444,27 @@ Within a regular expression, (?C) indicates the points at which the external
function is to be called. If you want to identify different callout points, you
can put a number less than 256 after the letter C. The default value is zero.
For example, this pattern has two callout points:
-</P>
-<P>
<pre>
(?C1)\dabc(?C2)def
-</PRE>
+</pre>
+If the PCRE_AUTO_CALLOUT flag is passed to <b>pcre_compile()</b>, callouts are
+automatically installed before each item in the pattern. They are all numbered
+255.
</P>
<P>
During matching, when PCRE reaches a callout point (and <i>pcre_callout</i> is
set), the external function is called. It is provided with the number of the
-callout, and, optionally, one item of data originally supplied by the caller of
-<b>pcre_exec()</b>. The callout function may cause matching to backtrack, or to
-fail altogether. A complete description of the interface to the callout
-function is given in the
+callout, the position in the pattern, and, optionally, one item of data
+originally supplied by the caller of <b>pcre_exec()</b>. The callout function
+may cause matching to proceed, to backtrack, or to fail altogether. A complete
+description of the interface to the callout function is given in the
<a href="pcrecallout.html"><b>pcrecallout</b></a>
documentation.
</P>
<P>
-Last updated: 03 February 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcreperform.html b/doc/html/pcreperform.html
index 418ac6d..f0ffa68 100644
--- a/doc/html/pcreperform.html
+++ b/doc/html/pcreperform.html
@@ -3,20 +3,33 @@
<title>pcreperform specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
-<ul>
-<li><a name="TOC1" href="#SEC1">PCRE PERFORMANCE</a>
-</ul>
-<br><a name="SEC1" href="#TOC1">PCRE PERFORMANCE</a><br>
+<h1>pcreperform man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
+<br><b>
+PCRE PERFORMANCE
+</b><br>
<P>
Certain items that may appear in regular expression patterns are more efficient
than others. It is more efficient to use a character class like [aeiou] than a
set of alternatives such as (a|e|i|o|u). In general, the simplest construction
that provides the required behaviour is usually the most efficient. Jeffrey
-Friedl's book contains a lot of discussion about optimizing regular expressions
-for efficient performance.
+Friedl's book contains a lot of useful general discussion about optimizing
+regular expressions for efficient performance. This document contains a few
+observations about PCRE.
+</P>
+<P>
+Using Unicode character properties (the \p, \P, and \X escapes) is slow,
+because PCRE has to scan a structure that contains data for over fifteen
+thousand characters whenever it needs a character's property. If you can find
+an alternative pattern that does not use character properties, it will probably
+be faster.
</P>
<P>
When a pattern begins with .* not in parentheses, or in parentheses that are
@@ -27,13 +40,9 @@ optimization, because the . metacharacter does not then match a newline, and if
the subject string contains newlines, the pattern may match from the character
immediately following one of them instead of from the very start. For example,
the pattern
-</P>
-<P>
<pre>
.*second
-</PRE>
-</P>
-<P>
+</pre>
matches the subject "first\nand second" (where \n stands for a newline
character), with the match starting at the seventh character. In order to do
this, PCRE has to retry the match starting after every newline in the subject.
@@ -48,13 +57,9 @@ having to scan along the subject looking for a newline to restart at.
Beware of patterns that contain nested indefinite repeats. These can take a
long time to run when applied to a string that does not match. Consider the
pattern fragment
-</P>
-<P>
<pre>
(a+)*
-</PRE>
-</P>
-<P>
+</pre>
This can match "aaaa" in 33 different ways, and this number increases very
rapidly as the string gets longer. (The * repeat can match 0, 1, 2, 3, or 4
times, and for each of those cases other than 0, the + repeats can match
@@ -64,30 +69,29 @@ variation, and this can take an extremely long time.
</P>
<P>
An optimization catches some of the more simple cases such as
-</P>
-<P>
<pre>
(a+)*b
-</PRE>
-</P>
-<P>
+</pre>
where a literal character follows. Before embarking on the standard matching
procedure, PCRE checks that there is a "b" later in the subject string, and if
there is not, it fails the match immediately. However, when there is no
following literal this optimization cannot be used. You can see the difference
by comparing the behaviour of
-</P>
-<P>
<pre>
(a+)*\d
-</PRE>
-</P>
-<P>
+</pre>
with the pattern above. The former gives a failure almost instantly when
applied to a whole line of "a" characters, whereas the latter takes an
appreciable time with strings longer than about 20 characters.
</P>
<P>
-Last updated: 03 February 2003
+In many cases, the solution to this kind of performance issue is to use an
+atomic group or a possessive quantifier.
+</P>
+<P>
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcreposix.html b/doc/html/pcreposix.html
index d0a5e12..2f7aaa9 100644
--- a/doc/html/pcreposix.html
+++ b/doc/html/pcreposix.html
@@ -3,9 +3,15 @@
<title>pcreposix specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcreposix man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
<li><a name="TOC1" href="#SEC1">SYNOPSIS OF POSIX API</a>
<li><a name="TOC2" href="#SEC2">DESCRIPTION</a>
@@ -13,7 +19,7 @@ conversion went wrong.<br>
<li><a name="TOC4" href="#SEC4">MATCHING NEWLINE CHARACTERS</a>
<li><a name="TOC5" href="#SEC5">MATCHING A PATTERN</a>
<li><a name="TOC6" href="#SEC6">ERROR MESSAGES</a>
-<li><a name="TOC7" href="#SEC7">STORAGE</a>
+<li><a name="TOC7" href="#SEC7">MEMORY USAGE</a>
<li><a name="TOC8" href="#SEC8">AUTHOR</a>
</ul>
<br><a name="SEC1" href="#TOC1">SYNOPSIS OF POSIX API</a><br>
@@ -40,7 +46,7 @@ conversion went wrong.<br>
This set of functions provides a POSIX-style API to the PCRE regular expression
package. See the
<a href="pcreapi.html"><b>pcreapi</b></a>
-documentation for a description of the native API, which contains additional
+documentation for a description of PCRE's native API, which contains additional
functionality.
</P>
<P>
@@ -48,8 +54,8 @@ The functions described here are just wrapper functions that ultimately call
the PCRE native API. Their prototypes are defined in the <b>pcreposix.h</b>
header file, and on Unix systems the library itself is called
<b>pcreposix.a</b>, so can be accessed by adding <b>-lpcreposix</b> to the
-command for linking an application which uses them. Because the POSIX functions
-call the native ones, it is also necessary to add \fR-lpcre\fR.
+command for linking an application that uses them. Because the POSIX functions
+call the native ones, it is also necessary to add <b>-lpcre</b>.
</P>
<P>
I have implemented only those option bits that can be reasonably mapped to PCRE
@@ -75,33 +81,27 @@ structure types, <i>regex_t</i> for compiled internal forms, and
constants whose names start with "REG_"; these are used for setting options and
identifying error codes.
</P>
+<P>
+</P>
<br><a name="SEC3" href="#TOC1">COMPILING A PATTERN</a><br>
<P>
The function <b>regcomp()</b> is called to compile a pattern into an
internal form. The pattern is a C string terminated by a binary zero, and
is passed in the argument <i>pattern</i>. The <i>preg</i> argument is a pointer
-to a regex_t structure which is used as a base for storing information about
-the compiled expression.
+to a <b>regex_t</b> structure that is used as a base for storing information
+about the compiled expression.
</P>
<P>
The argument <i>cflags</i> is either zero, or contains one or more of the bits
defined by the following macros:
-</P>
-<P>
<pre>
REG_ICASE
-</PRE>
-</P>
-<P>
+</pre>
The PCRE_CASELESS option is set when the expression is passed for compilation
to the native function.
-</P>
-<P>
<pre>
REG_NEWLINE
-</PRE>
-</P>
-<P>
+</pre>
The PCRE_MULTILINE option is set when the expression is passed for compilation
to the native function. Note that this does <i>not</i> mimic the defined POSIX
behaviour for REG_NEWLINE (see the following section).
@@ -127,69 +127,47 @@ This area is not simple, because POSIX and Perl take different views of things.
It is not possible to get PCRE to obey POSIX semantics, but then PCRE was never
intended to be a POSIX engine. The following table lists the different
possibilities for matching newline characters in PCRE:
-</P>
-<P>
<pre>
Default Change with
-</PRE>
-</P>
-<P>
-<pre>
+
. matches newline no PCRE_DOTALL
newline matches [^a] yes not changeable
$ matches \n at end yes PCRE_DOLLARENDONLY
$ matches \n in middle no PCRE_MULTILINE
^ matches \n in middle no PCRE_MULTILINE
-</PRE>
-</P>
-<P>
+</pre>
This is the equivalent table for POSIX:
-</P>
-<P>
<pre>
Default Change with
-</PRE>
-</P>
-<P>
-<pre>
- . matches newline yes REG_NEWLINE
- newline matches [^a] yes REG_NEWLINE
- $ matches \n at end no REG_NEWLINE
- $ matches \n in middle no REG_NEWLINE
- ^ matches \n in middle no REG_NEWLINE
-</PRE>
-</P>
-<P>
+
+ . matches newline yes REG_NEWLINE
+ newline matches [^a] yes REG_NEWLINE
+ $ matches \n at end no REG_NEWLINE
+ $ matches \n in middle no REG_NEWLINE
+ ^ matches \n in middle no REG_NEWLINE
+</pre>
PCRE's behaviour is the same as Perl's, except that there is no equivalent for
-PCRE_DOLLARENDONLY in Perl. In both PCRE and Perl, there is no way to stop
+PCRE_DOLLAR_ENDONLY in Perl. In both PCRE and Perl, there is no way to stop
newline from matching [^a].
</P>
<P>
The default POSIX newline handling can be obtained by setting PCRE_DOTALL and
-PCRE_DOLLARENDONLY, but there is no way to make PCRE behave exactly as for the
+PCRE_DOLLAR_ENDONLY, but there is no way to make PCRE behave exactly as for the
REG_NEWLINE action.
</P>
<br><a name="SEC5" href="#TOC1">MATCHING A PATTERN</a><br>
<P>
-The function <b>regexec()</b> is called to match a pre-compiled pattern
-<i>preg</i> against a given <i>string</i>, which is terminated by a zero byte,
-subject to the options in <i>eflags</i>. These can be:
-</P>
-<P>
+The function <b>regexec()</b> is called to match a compiled pattern <i>preg</i>
+against a given <i>string</i>, which is terminated by a zero byte, subject to
+the options in <i>eflags</i>. These can be:
<pre>
REG_NOTBOL
-</PRE>
-</P>
-<P>
+</pre>
The PCRE_NOTBOL option is set when calling the underlying PCRE matching
function.
-</P>
-<P>
<pre>
REG_NOTEOL
-</PRE>
-</P>
-<P>
+</pre>
The PCRE_NOTEOL option is set when calling the underlying PCRE matching
function.
</P>
@@ -217,7 +195,7 @@ terminated by a binary zero is placed in <i>errbuf</i>. The length of the
message, including the zero, is limited to <i>errbuf_size</i>. The yield of the
function is the size of buffer needed to hold the whole message.
</P>
-<br><a name="SEC7" href="#TOC1">STORAGE</a><br>
+<br><a name="SEC7" href="#TOC1">MEMORY USAGE</a><br>
<P>
Compiling a regular expression causes memory to be allocated and associated
with the <i>preg</i> structure. The function <b>regfree()</b> frees all such
@@ -232,6 +210,9 @@ University Computing Service,
Cambridge CB2 3QG, England.
</P>
<P>
-Last updated: 03 February 2003
+Last updated: 07 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcreprecompile.html b/doc/html/pcreprecompile.html
new file mode 100644
index 0000000..f1c109e
--- /dev/null
+++ b/doc/html/pcreprecompile.html
@@ -0,0 +1,133 @@
+<html>
+<head>
+<title>pcreprecompile specification</title>
+</head>
+<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
+<h1>pcreprecompile man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
+<ul>
+<li><a name="TOC1" href="#SEC1">SAVING AND RE-USING PRECOMPILED PCRE PATTERNS</a>
+<li><a name="TOC2" href="#SEC2">SAVING A COMPILED PATTERN</a>
+<li><a name="TOC3" href="#SEC3">RE-USING A PRECOMPILED PATTERN</a>
+<li><a name="TOC4" href="#SEC4">COMPATIBILITY WITH DIFFERENT PCRE RELEASES</a>
+</ul>
+<br><a name="SEC1" href="#TOC1">SAVING AND RE-USING PRECOMPILED PCRE PATTERNS</a><br>
+<P>
+If you are running an application that uses a large number of regular
+expression patterns, it may be useful to store them in a precompiled form
+instead of having to compile them every time the application is run.
+If you are not using any private character tables (see the
+<a href="pcre_maketables.html"><b>pcre_maketables()</b></a>
+documentation), this is relatively straightforward. If you are using private
+tables, it is a little bit more complicated.
+</P>
+<P>
+If you save compiled patterns to a file, you can copy them to a different host
+and run them there. This works even if the new host has the opposite endianness
+to the one on which the patterns were compiled. There may be a small
+performance penalty, but it should be insignificant.
+</P>
+<br><a name="SEC2" href="#TOC1">SAVING A COMPILED PATTERN</a><br>
+<P>
+The value returned by <b>pcre_compile()</b> points to a single block of memory
+that holds the compiled pattern and associated data. You can find the length of
+this block in bytes by calling <b>pcre_fullinfo()</b> with an argument of
+PCRE_INFO_SIZE. You can then save the data in any appropriate manner. Here is
+sample code that compiles a pattern and writes it to a file. It assumes that
+the variable <i>fd</i> refers to a file that is open for output:
+<pre>
+ int erroroffset, rc, size;
+ char *error;
+ pcre *re;
+
+ re = pcre_compile("my pattern", 0, &error, &erroroffset, NULL);
+ if (re == NULL) { ... handle errors ... }
+ rc = pcre_fullinfo(re, NULL, PCRE_INFO_SIZE, &size);
+ if (rc &#60; 0) { ... handle errors ... }
+ rc = fwrite(re, 1, size, fd);
+ if (rc != size) { ... handle errors ... }
+</pre>
+In this example, the bytes that comprise the compiled pattern are copied
+exactly. Note that this is binary data that may contain any of the 256 possible
+byte values. On systems that make a distinction between binary and non-binary
+data, be sure that the file is opened for binary output.
+</P>
+<P>
+If you want to write more than one pattern to a file, you will have to devise a
+way of separating them. For binary data, preceding each pattern with its length
+is probably the most straightforward approach. Another possibility is to write
+out the data in hexadecimal instead of binary, one pattern to a line.
+</P>
+<P>
+Saving compiled patterns in a file is only one possible way of storing them for
+later use. They could equally well be saved in a database, or in the memory of
+some daemon process that passes them via sockets to the processes that want
+them.
+</P>
+<P>
+If the pattern has been studied, it is also possible to save the study data in
+a similar way to the compiled pattern itself. When studying generates
+additional information, <b>pcre_study()</b> returns a pointer to a
+<b>pcre_extra</b> data block. Its format is defined in the
+<a href="pcreapi.html#extradata">section on matching a pattern</a>
+in the
+<a href="pcreapi.html"><b>pcreapi</b></a>
+documentation. The <i>study_data</i> field points to the binary study data, and
+this is what you must save (not the <b>pcre_extra</b> block itself). The length
+of the study data can be obtained by calling <b>pcre_fullinfo()</b> with an
+argument of PCRE_INFO_STUDYSIZE. Remember to check that <b>pcre_study()</b> did
+return a non-NULL value before trying to save the study data.
+</P>
+<br><a name="SEC3" href="#TOC1">RE-USING A PRECOMPILED PATTERN</a><br>
+<P>
+Re-using a precompiled pattern is straightforward. Having reloaded it into main
+memory, you pass its pointer to <b>pcre_exec()</b> in the usual way. This should
+work even on another host, and even if that host has the opposite endianness to
+the one where the pattern was compiled.
+</P>
+<P>
+However, if you passed a pointer to custom character tables when the pattern
+was compiled (the <i>tableptr</i> argument of <b>pcre_compile()</b>), you must
+now pass a similar pointer to <b>pcre_exec()</b>, because the value saved with
+the compiled pattern will obviously be nonsense. A field in a
+<b>pcre_extra()</b> block is used to pass this data, as described in the
+<a href="pcreapi.html#extradata">section on matching a pattern</a>
+in the
+<a href="pcreapi.html"><b>pcreapi</b></a>
+documentation.
+</P>
+<P>
+If you did not provide custom character tables when the pattern was compiled,
+the pointer in the compiled pattern is NULL, which causes <b>pcre_exec()</b> to
+use PCRE's internal tables. Thus, you do not need to take any special action at
+run time in this case.
+</P>
+<P>
+If you saved study data with the compiled pattern, you need to create your own
+<b>pcre_extra</b> data block and set the <i>study_data</i> field to point to the
+reloaded study data. You must also set the PCRE_EXTRA_STUDY_DATA bit in the
+<i>flags</i> field to indicate that study data is present. Then pass the
+<b>pcre_extra</b> block to <b>pcre_exec()</b> in the usual way.
+</P>
+<br><a name="SEC4" href="#TOC1">COMPATIBILITY WITH DIFFERENT PCRE RELEASES</a><br>
+<P>
+The layout of the control block that is at the start of the data that makes up
+a compiled pattern was changed for release 5.0. If you have any saved patterns
+that were compiled with previous releases (not a facility that was previously
+advertised), you will have to recompile them for release 5.0. However, from now
+on, it should be possible to make changes in a compabible manner.
+</P>
+<P>
+Last updated: 10 September 2004
+<br>
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcresample.html b/doc/html/pcresample.html
index fed41f6..91cd411 100644
--- a/doc/html/pcresample.html
+++ b/doc/html/pcresample.html
@@ -3,13 +3,18 @@
<title>pcresample specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
-<ul>
-<li><a name="TOC1" href="#SEC1">PCRE SAMPLE PROGRAM</a>
-</ul>
-<br><a name="SEC1" href="#TOC1">PCRE SAMPLE PROGRAM</a><br>
+<h1>pcresample man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
+<br><b>
+PCRE SAMPLE PROGRAM
+</b><br>
<P>
A simple, complete demonstration program, to get you started with using PCRE,
is supplied in the file <i>pcredemo.c</i> in the PCRE distribution.
@@ -28,52 +33,49 @@ string. The logic is a little bit tricky because of the possibility of matching
an empty string. Comments in the code explain what is going on.
</P>
<P>
-On a Unix system that has PCRE installed in <i>/usr/local</i>, you can compile
-the demonstration program using a command like this:
-</P>
-<P>
+If PCRE is installed in the standard include and library directories for your
+system, you should be able to compile the demonstration program using this
+command:
<pre>
- gcc -o pcredemo pcredemo.c -I/usr/local/include \
- -L/usr/local/lib -lpcre
-</PRE>
-</P>
-<P>
-Then you can run simple tests like this:
-</P>
-<P>
+ gcc -o pcredemo pcredemo.c -lpcre
+</pre>
+If PCRE is installed elsewhere, you may need to add additional options to the
+command line. For example, on a Unix-like system that has PCRE installed in
+<i>/usr/local</i>, you can compile the demonstration program using a command
+like this:
+<pre>
+ gcc -o pcredemo -I/usr/local/include pcredemo.c -L/usr/local/lib -lpcre
+</pre>
+Once you have compiled the demonstration program, you can run simple tests like
+this:
<pre>
./pcredemo 'cat|dog' 'the cat sat on the mat'
./pcredemo -g 'cat|dog' 'the dog sat on the cat'
-</PRE>
-</P>
-<P>
+</pre>
Note that there is a much more comprehensive test program, called
-<b>pcretest</b>, which supports many more facilities for testing regular
-expressions and the PCRE library. The <b>pcredemo</b> program is provided as a
-simple coding example.
-</P>
-<P>
-On some operating systems (e.g. Solaris) you may get an error like this when
-you try to run <b>pcredemo</b>:
+<a href="pcretest.html"><b>pcretest</b>,</a>
+which supports many more facilities for testing regular expressions and the
+PCRE library. The <b>pcredemo</b> program is provided as a simple coding
+example.
</P>
<P>
+On some operating systems (e.g. Solaris), when PCRE is not installed in the
+standard library directory, you may get an error like this when you try to run
+<b>pcredemo</b>:
<pre>
ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or directory
-</PRE>
-</P>
-<P>
+</pre>
This is caused by the way shared library support works on those systems. You
need to add
-</P>
-<P>
<pre>
-R/usr/local/lib
-</PRE>
-</P>
-<P>
-to the compile command to get round this problem.
+</pre>
+(for example) to the compile command to get round this problem.
</P>
<P>
-Last updated: 28 January 2003
+Last updated: 09 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/html/pcretest.html b/doc/html/pcretest.html
index 2ba9893..d82dfcc 100644
--- a/doc/html/pcretest.html
+++ b/doc/html/pcretest.html
@@ -3,22 +3,30 @@
<title>pcretest specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
-This HTML document has been generated automatically from the original man page.
-If there is any nonsense in it, please consult the man page, in case the
-conversion went wrong.<br>
+<h1>pcretest man page</h1>
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
+<p>
+This page is part of the PCRE HTML documentation. It was generated automatically
+from the original man page. If there is any nonsense in it, please consult the
+man page, in case the conversion went wrong.
+<br>
<ul>
<li><a name="TOC1" href="#SEC1">SYNOPSIS</a>
<li><a name="TOC2" href="#SEC2">OPTIONS</a>
<li><a name="TOC3" href="#SEC3">DESCRIPTION</a>
<li><a name="TOC4" href="#SEC4">PATTERN MODIFIERS</a>
-<li><a name="TOC5" href="#SEC5">CALLOUTS</a>
-<li><a name="TOC6" href="#SEC6">DATA LINES</a>
-<li><a name="TOC7" href="#SEC7">OUTPUT FROM PCRETEST</a>
-<li><a name="TOC8" href="#SEC8">AUTHOR</a>
+<li><a name="TOC5" href="#SEC5">DATA LINES</a>
+<li><a name="TOC6" href="#SEC6">OUTPUT FROM PCRETEST</a>
+<li><a name="TOC7" href="#SEC7">CALLOUTS</a>
+<li><a name="TOC8" href="#SEC8">SAVING AND RELOADING COMPILED PATTERNS</a>
+<li><a name="TOC9" href="#SEC9">AUTHOR</a>
</ul>
<br><a name="SEC1" href="#TOC1">SYNOPSIS</a><br>
<P>
-<b>pcretest [-d] [-i] [-m] [-o osize] [-p] [-t] [source] [destination]</b>
+<b>pcretest [-C] [-d] [-i] [-m] [-o osize] [-p] [-t] [source]</b>
+<b>[destination]</b>
</P>
<P>
<b>pcretest</b> was written as a test program for the PCRE regular expression
@@ -26,7 +34,8 @@ library itself, but it can also be used for experimenting with regular
expressions. This document describes the features of the test program; for
details of the regular expressions themselves, see the
<a href="pcrepattern.html"><b>pcrepattern</b></a>
-documentation. For details of PCRE and its options, see the
+documentation. For details of the PCRE library function calls and their
+options, see the
<a href="pcreapi.html"><b>pcreapi</b></a>
documentation.
</P>
@@ -38,7 +47,7 @@ about the optional features that are included, and then exit.
</P>
<P>
<b>-d</b>
-Behave as if each regex had the <b>/D</b> modifier (see below); the internal
+Behave as if each regex had the <b>/D</b> (debug) modifier; the internal
form is output after compilation.
</P>
<P>
@@ -49,15 +58,15 @@ compiled pattern is given after compilation.
<P>
<b>-m</b>
Output the size of each compiled pattern after it has been compiled. This is
-equivalent to adding /M to each regular expression. For compatibility with
-earlier versions of pcretest, <b>-s</b> is a synonym for <b>-m</b>.
+equivalent to adding <b>/M</b> to each regular expression. For compatibility
+with earlier versions of pcretest, <b>-s</b> is a synonym for <b>-m</b>.
</P>
<P>
<b>-o</b> <i>osize</i>
-Set the number of elements in the output vector that is used when calling PCRE
-to be <i>osize</i>. The default value is 45, which is enough for 14 capturing
-subexpressions. The vector size can be changed for individual matching calls by
-including \O in the data line (see below).
+Set the number of elements in the output vector that is used when calling
+<b>pcre_exec()</b> to be <i>osize</i>. The default value is 45, which is enough
+for 14 capturing subexpressions. The vector size can be changed for individual
+matching calls by including \O in the data line (see below).
</P>
<P>
<b>-p</b>
@@ -67,9 +76,9 @@ to call PCRE. None of the other options has any effect when <b>-p</b> is set.
<P>
<b>-t</b>
Run each compile, study, and match many times with a timer, and output
-resulting time per compile or match (in milliseconds). Do not set <b>-t</b> with
-<b>-m</b>, because you will then get the size output 20000 times and the timing
-will be distorted.
+resulting time per compile or match (in milliseconds). Do not set <b>-m</b> with
+<b>-t</b>, because you will then get the size output a zillion times, and the
+timing will be distorted.
</P>
<br><a name="SEC3" href="#TOC1">DESCRIPTION</a><br>
<P>
@@ -85,7 +94,7 @@ set starts with a regular expression, and continues with any number of data
lines to be matched against the pattern.
</P>
<P>
-Each line is matched separately and independently. If you want to do
+Each data line is matched separately and independently. If you want to do
multiple-line matches, you have to use the \n escape sequence in a single line
of input to encode the newline characters. The maximum length of data line is
30,000 characters.
@@ -93,68 +102,60 @@ of input to encode the newline characters. The maximum length of data line is
<P>
An empty line signals the end of the data lines, at which point a new regular
expression is read. The regular expressions are given enclosed in any
-non-alphameric delimiters other than backslash, for example
-</P>
-<P>
+non-alphanumeric delimiters other than backslash, for example
<pre>
/(a|bc)x+yz/
-</PRE>
-</P>
-<P>
+</pre>
White space before the initial delimiter is ignored. A regular expression may
be continued over several input lines, in which case the newline characters are
included within it. It is possible to include the delimiter within the pattern
by escaping it, for example
-</P>
-<P>
<pre>
/abc\/def/
-</PRE>
-</P>
-<P>
+</pre>
If you do so, the escape and the delimiter form part of the pattern, but since
-delimiters are always non-alphameric, this does not affect its interpretation.
+delimiters are always non-alphanumeric, this does not affect its interpretation.
If the terminating delimiter is immediately followed by a backslash, for
example,
-</P>
-<P>
<pre>
/abc/\
-</PRE>
-</P>
-<P>
+</pre>
then a backslash is added to the end of the pattern. This is done to provide a
way of testing the error condition that arises if a pattern finishes with a
backslash, because
-</P>
-<P>
<pre>
/abc\/
-</PRE>
-</P>
-<P>
+</pre>
is interpreted as the first line of a pattern that starts with "abc/", causing
pcretest to read the next line as a continuation of the regular expression.
</P>
<br><a name="SEC4" href="#TOC1">PATTERN MODIFIERS</a><br>
<P>
-The pattern may be followed by <b>i</b>, <b>m</b>, <b>s</b>, or <b>x</b> to set the
-PCRE_CASELESS, PCRE_MULTILINE, PCRE_DOTALL, or PCRE_EXTENDED options,
-respectively. For example:
+A pattern may be followed by any number of modifiers, which are mostly single
+characters. Following Perl usage, these are referred to below as, for example,
+"the <b>/i</b> modifier", even though the delimiter of the pattern need not
+always be a slash, and no slash is used when writing modifiers. Whitespace may
+appear between the final pattern delimiter and the first modifier, and between
+the modifiers themselves.
</P>
<P>
+The <b>/i</b>, <b>/m</b>, <b>/s</b>, and <b>/x</b> modifiers set the PCRE_CASELESS,
+PCRE_MULTILINE, PCRE_DOTALL, or PCRE_EXTENDED options, respectively, when
+<b>pcre_compile()</b> is called. These four modifier letters have the same
+effect as they do in Perl. For example:
<pre>
/caseless/i
-</PRE>
-</P>
-<P>
-These modifier letters have the same effect as they do in Perl. There are
-others that set PCRE options that do not correspond to anything in Perl:
-<b>/A</b>, <b>/E</b>, <b>/N</b>, <b>/U</b>, and <b>/X</b> set PCRE_ANCHORED,
-PCRE_DOLLAR_ENDONLY, PCRE_NO_AUTO_CAPTURE, PCRE_UNGREEDY, and PCRE_EXTRA
-respectively.
-</P>
-<P>
+</pre>
+The following table shows additional modifiers for setting PCRE options that do
+not correspond to anything in Perl:
+<pre>
+ <b>/A</b> PCRE_ANCHORED
+ <b>/C</b> PCRE_AUTO_CALLOUT
+ <b>/E</b> PCRE_DOLLAR_ENDONLY
+ <b>/N</b> PCRE_NO_AUTO_CAPTURE
+ <b>/U</b> PCRE_UNGREEDY
+ <b>/X</b> PCRE_EXTRA
+</pre>
Searching for all possible matches within each subject string can be requested
by the <b>/g</b> or <b>/G</b> modifier. After finding a match, PCRE is called
again to search the remainder of the subject string. The difference between
@@ -173,7 +174,7 @@ match is retried. This imitates the way Perl handles such cases when using the
<b>/g</b> modifier or the <b>split()</b> function.
</P>
<P>
-There are a number of other modifiers for controlling the way <b>pcretest</b>
+There are yet more modifiers for controlling the way <b>pcretest</b>
operates.
</P>
<P>
@@ -185,14 +186,10 @@ multiple copies of the same substring.
<P>
The <b>/L</b> modifier must be followed directly by the name of a locale, for
example,
-</P>
-<P>
<pre>
- /pattern/Lfr
-</PRE>
-</P>
-<P>
-For this reason, it must be the last modifier letter. The given locale is set,
+ /pattern/Lfr_FR
+</pre>
+For this reason, it must be the last modifier. The given locale is set,
<b>pcre_maketables()</b> is called to build a set of character tables for the
locale, and this is then passed to <b>pcre_compile()</b> when compiling the
regular expression. Without an <b>/L</b> modifier, NULL is passed as the tables
@@ -200,10 +197,9 @@ pointer; that is, <b>/L</b> applies only to the expression on which it appears.
</P>
<P>
The <b>/I</b> modifier requests that <b>pcretest</b> output information about the
-compiled expression (whether it is anchored, has a fixed first character, and
-so on). It does this by calling <b>pcre_fullinfo()</b> after compiling an
-expression, and outputting the information it gets back. If the pattern is
-studied, the results of that are also output.
+compiled pattern (whether it is anchored, has a fixed first character, and
+so on). It does this by calling <b>pcre_fullinfo()</b> after compiling a
+pattern. If the pattern is studied, the results of that are also output.
</P>
<P>
The <b>/D</b> modifier is a PCRE debugging feature, which also assumes <b>/I</b>.
@@ -212,6 +208,15 @@ compilation. If the pattern was studied, the information returned is also
output.
</P>
<P>
+The <b>/F</b> modifier causes <b>pcretest</b> to flip the byte order of the
+fields in the compiled pattern that contain 2-byte and 4-byte numbers. This
+facility is for testing the feature in PCRE that allows it to execute patterns
+that were compiled on a host with a different endianness. This feature is not
+available when the POSIX interface to PCRE is being used, that is, when the
+<b>/P</b> pattern modifier is specified. See also the section about saving and
+reloading compiled patterns below.
+</P>
+<P>
The <b>/S</b> modifier causes <b>pcre_study()</b> to be called after the
expression has been compiled, and the results used when the expression is
matched.
@@ -239,38 +244,7 @@ If the <b>/?</b> modifier is used with <b>/8</b>, it causes <b>pcretest</b> to
call <b>pcre_compile()</b> with the PCRE_NO_UTF8_CHECK option, to suppress the
checking of the string for UTF-8 validity.
</P>
-<br><a name="SEC5" href="#TOC1">CALLOUTS</a><br>
-<P>
-If the pattern contains any callout requests, <b>pcretest</b>'s callout function
-will be called. By default, it displays the callout number, and the start and
-current positions in the text at the callout time. For example, the output
-</P>
-<P>
-<pre>
- ---&#62;pqrabcdef
- 0 ^ ^
-</PRE>
-</P>
-<P>
-indicates that callout number 0 occurred for a match attempt starting at the
-fourth character of the subject string, when the pointer was at the seventh
-character. The callout function returns zero (carry on matching) by default.
-</P>
-<P>
-Inserting callouts may be helpful when using <b>pcretest</b> to check
-complicated regular expressions. For further information about callouts, see
-the
-<a href="pcrecallout.html"><b>pcrecallout</b></a>
-documentation.
-</P>
-<P>
-For testing the PCRE library, additional control of callout behaviour is
-available via escape sequences in the data, as described in the following
-section. In particular, it is possible to pass in a number as callout data (the
-default is zero). If the callout function receives a non-zero number, it
-returns that value instead of zero.
-</P>
-<br><a name="SEC6" href="#TOC1">DATA LINES</a><br>
+<br><a name="SEC5" href="#TOC1">DATA LINES</a><br>
<P>
Before each data line is passed to <b>pcre_exec()</b>, leading and trailing
whitespace is removed, and it is then scanned for \ escapes. Some of these are
@@ -278,8 +252,6 @@ pretty esoteric features, intended for checking out some of the more
complicated features of PCRE. If you are just testing "ordinary" regular
expressions, you probably don't need any of these. The following escapes are
recognized:
-</P>
-<P>
<pre>
\a alarm (= BEL)
\b backspace
@@ -291,43 +263,34 @@ recognized:
\v vertical tab
\nnn octal character (up to 3 octal digits)
\xhh hexadecimal character (up to 2 hex digits)
- \x{hh...} hexadecimal character, any number of digits
- in UTF-8 mode
+ \x{hh...} hexadecimal character, any number of digits in UTF-8 mode
\A pass the PCRE_ANCHORED option to <b>pcre_exec()</b>
\B pass the PCRE_NOTBOL option to <b>pcre_exec()</b>
- \Cdd call pcre_copy_substring() for substring dd
- after a successful match (any decimal number
- less than 32)
- \Cname call pcre_copy_named_substring() for substring
- "name" after a successful match (name termin-
+ \Cdd call pcre_copy_substring() for substring dd after a successful match (number less than 32)
+ \Cname call pcre_copy_named_substring() for substring "name" after a successful match (name termin-
ated by next non alphanumeric character)
- \C+ show the current captured substrings at callout
- time
+ \C+ show the current captured substrings at callout time
\C- do not supply a callout function
- \C!n return 1 instead of 0 when callout number n is
- reached
- \C!n!m return 1 instead of 0 when callout number n is
- reached for the nth time
- \C*n pass the number n (may be negative) as callout
- data
- \Gdd call pcre_get_substring() for substring dd
- after a successful match (any decimal number
- less than 32)
- \Gname call pcre_get_named_substring() for substring
- "name" after a successful match (name termin-
+ \C!n return 1 instead of 0 when callout number n is reached
+ \C!n!m return 1 instead of 0 when callout number n is reached for the nth time
+ \C*n pass the number n (may be negative) as callout data; this is used as the callout return value
+ \Gdd call pcre_get_substring() for substring dd after a successful match (number less than 32)
+ \Gname call pcre_get_named_substring() for substring "name" after a successful match (name termin-
ated by next non-alphanumeric character)
- \L call pcre_get_substringlist() after a
- successful match
+ \L call pcre_get_substringlist() after a successful match
\M discover the minimum MATCH_LIMIT setting
\N pass the PCRE_NOTEMPTY option to <b>pcre_exec()</b>
- \Odd set the size of the output vector passed to
- <b>pcre_exec()</b> to dd (any number of decimal
- digits)
+ \Odd set the size of the output vector passed to <b>pcre_exec()</b> to dd (any number of digits)
+ \P pass the PCRE_PARTIAL option to <b>pcre_exec()</b>
\S output details of memory get/free calls during matching
\Z pass the PCRE_NOTEOL option to <b>pcre_exec()</b>
- \? pass the PCRE_NO_UTF8_CHECK option to
- <b>pcre_exec()</b>
-</PRE>
+ \? pass the PCRE_NO_UTF8_CHECK option to <b>pcre_exec()</b>
+ \&#62;dd start the match at offset dd (any number of digits);
+ this sets the <i>startoffset</i> argument for <b>pcre_exec()</b>
+</pre>
+A backslash followed by anything else just escapes the anything else. If the
+very last character is a backslash, it is ignored. This gives a way of passing
+an empty line as data, since a real empty line terminates the data input.
</P>
<P>
If \M is present, <b>pcretest</b> calls <b>pcre_exec()</b> several times, with
@@ -340,19 +303,14 @@ patterns with very large numbers of matching possibilities, it can become large
very quickly with increasing length of subject string.
</P>
<P>
-When \O is used, it may be higher or lower than the size set by the <b>-O</b>
-option (or defaulted to 45); \O applies only to the call of <b>pcre_exec()</b>
-for the line in which it appears.
+When \O is used, the value specified may be higher or lower than the size set
+by the <b>-O</b> command line option (or defaulted to 45); \O applies only to
+the call of <b>pcre_exec()</b> for the line in which it appears.
</P>
<P>
-A backslash followed by anything else just escapes the anything else. If the
-very last character is a backslash, it is ignored. This gives a way of passing
-an empty line as data, since a real empty line terminates the data input.
-</P>
-<P>
-If <b>/P</b> was present on the regex, causing the POSIX wrapper API to be used,
-only <b>\B</b>, and <b>\Z</b> have any effect, causing REG_NOTBOL and REG_NOTEOL
-to be passed to <b>regexec()</b> respectively.
+If the <b>/P</b> modifier was present on the pattern, causing the POSIX wrapper
+API to be used, only \B and \Z have any effect, causing REG_NOTBOL and
+REG_NOTEOL to be passed to <b>regexec()</b> respectively.
</P>
<P>
The use of \x{hh...} to represent UTF-8 characters is not dependent on the use
@@ -360,48 +318,38 @@ of the <b>/8</b> modifier on the pattern. It is recognized always. There may be
any number of hexadecimal digits inside the braces. The result is from one to
six bytes, encoded according to the UTF-8 rules.
</P>
-<br><a name="SEC7" href="#TOC1">OUTPUT FROM PCRETEST</a><br>
+<br><a name="SEC6" href="#TOC1">OUTPUT FROM PCRETEST</a><br>
<P>
When a match succeeds, pcretest outputs the list of captured substrings that
<b>pcre_exec()</b> returns, starting with number 0 for the string that matched
-the whole pattern. Here is an example of an interactive pcretest run.
-</P>
-<P>
+the whole pattern. Otherwise, it outputs "No match" or "Partial match"
+when <b>pcre_exec()</b> returns PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL,
+respectively, and otherwise the PCRE negative error number. Here is an example
+of an interactive pcretest run.
<pre>
$ pcretest
- PCRE version 4.00 08-Jan-2003
-</PRE>
-</P>
-<P>
-<pre>
+ PCRE version 5.00 07-Sep-2004
+
re&#62; /^abc(\d+)/
data&#62; abc123
0: abc123
1: 123
data&#62; xyz
No match
-</PRE>
-</P>
-<P>
+</pre>
If the strings contain any non-printing characters, they are output as \0x
escapes, or as \x{...} escapes if the <b>/8</b> modifier was present on the
-pattern. If the pattern has the <b>/+</b> modifier, then the output for
-substring 0 is followed by the the rest of the subject string, identified by
-"0+" like this:
-</P>
-<P>
+pattern. If the pattern has the <b>/+</b> modifier, the output for substring 0
+is followed by the the rest of the subject string, identified by "0+" like
+this:
<pre>
re&#62; /cat/+
data&#62; cataract
0: cat
0+ aract
-</PRE>
-</P>
-<P>
+</pre>
If the pattern has the <b>/g</b> or <b>/G</b> modifier, the results of successive
matching attempts are output in sequence, like this:
-</P>
-<P>
<pre>
re&#62; /\Bi(\w\w)/g
data&#62; Mississippi
@@ -411,9 +359,7 @@ matching attempts are output in sequence, like this:
1: ss
0: ipp
1: pp
-</PRE>
-</P>
-<P>
+</pre>
"No match" is output only if the first match attempt fails.
</P>
<P>
@@ -429,7 +375,110 @@ Note that while patterns can be continued over several lines (a plain "&#62;"
prompt is used for continuations), data lines may not. However newlines can be
included in data by means of the \n escape.
</P>
-<br><a name="SEC8" href="#TOC1">AUTHOR</a><br>
+<br><a name="SEC7" href="#TOC1">CALLOUTS</a><br>
+<P>
+If the pattern contains any callout requests, <b>pcretest</b>'s callout function
+is called during matching. By default, it displays the callout number, the
+start and current positions in the text at the callout time, and the next
+pattern item to be tested. For example, the output
+<pre>
+ ---&#62;pqrabcdef
+ 0 ^ ^ \d
+</pre>
+indicates that callout number 0 occurred for a match attempt starting at the
+fourth character of the subject string, when the pointer was at the seventh
+character of the data, and when the next pattern item was \d. Just one
+circumflex is output if the start and current positions are the same.
+</P>
+<P>
+Callouts numbered 255 are assumed to be automatic callouts, inserted as a
+result of the <b>/C</b> pattern modifier. In this case, instead of showing the
+callout number, the offset in the pattern, preceded by a plus, is output. For
+example:
+<pre>
+ re&#62; /\d?[A-E]\*/C
+ data&#62; E*
+ ---&#62;E*
+ +0 ^ \d?
+ +3 ^ [A-E]
+ +8 ^^ \*
+ +10 ^ ^
+ 0: E*
+</pre>
+The callout function in <b>pcretest</b> returns zero (carry on matching) by
+default, but you can use an \C item in a data line (as described above) to
+change this.
+</P>
+<P>
+Inserting callouts can be helpful when using <b>pcretest</b> to check
+complicated regular expressions. For further information about callouts, see
+the
+<a href="pcrecallout.html"><b>pcrecallout</b></a>
+documentation.
+</P>
+<br><a name="SEC8" href="#TOC1">SAVING AND RELOADING COMPILED PATTERNS</a><br>
+<P>
+The facilities described in this section are not available when the POSIX
+inteface to PCRE is being used, that is, when the <b>/P</b> pattern modifier is
+specified.
+</P>
+<P>
+When the POSIX interface is not in use, you can cause <b>pcretest</b> to write a
+compiled pattern to a file, by following the modifiers with &#62; and a file name.
+For example:
+<pre>
+ /pattern/im &#62;/some/file
+</pre>
+See the
+<a href="pcreprecompile.html"><b>pcreprecompile</b></a>
+documentation for a discussion about saving and re-using compiled patterns.
+</P>
+<P>
+The data that is written is binary. The first eight bytes are the length of the
+compiled pattern data followed by the length of the optional study data, each
+written as four bytes in big-endian order (most significant byte first). If
+there is no study data (either the pattern was not studied, or studying did not
+return any data), the second length is zero. The lengths are followed by an
+exact copy of the compiled pattern. If there is additional study data, this
+follows immediately after the compiled pattern. After writing the file,
+<b>pcretest</b> expects to read a new pattern.
+</P>
+<P>
+A saved pattern can be reloaded into <b>pcretest</b> by specifing &#60; and a file
+name instead of a pattern. The name of the file must not contain a &#60; character,
+as otherwise <b>pcretest</b> will interpret the line as a pattern delimited by &#60;
+characters.
+For example:
+<pre>
+ re&#62; &#60;/some/file
+ Compiled regex loaded from /some/file
+ No study data
+</pre>
+When the pattern has been loaded, <b>pcretest</b> proceeds to read data lines in
+the usual way.
+</P>
+<P>
+You can copy a file written by <b>pcretest</b> to a different host and reload it
+there, even if the new host has opposite endianness to the one on which the
+pattern was compiled. For example, you can compile on an i86 machine and run on
+a SPARC machine.
+</P>
+<P>
+File names for saving and reloading can be absolute or relative, but note that
+the shell facility of expanding a file name that starts with a tilde (~) is not
+available.
+</P>
+<P>
+The ability to save and reload files in <b>pcretest</b> is intended for testing
+and experimentation. It is not intended for production use because only a
+single pattern can be written to a file. Furthermore, there is no facility for
+supplying custom character tables for use with a reloaded pattern. If the
+original pattern was compiled with custom tables, an attempt to match a subject
+string using a reloaded pattern is likely to cause <b>pcretest</b> to crash.
+Finally, if you attempt to load a file that is not in the correct format, the
+result is undefined.
+</P>
+<br><a name="SEC9" href="#TOC1">AUTHOR</a><br>
<P>
Philip Hazel &#60;ph10@cam.ac.uk&#62;
<br>
@@ -438,6 +487,9 @@ University Computing Service,
Cambridge CB2 3QG, England.
</P>
<P>
-Last updated: 09 December 2003
+Last updated: 10 September 2004
<br>
-Copyright &copy; 1997-2003 University of Cambridge.
+Copyright &copy; 1997-2004 University of Cambridge.
+<p>
+Return to the <a href="index.html">PCRE index page</a>.
+</p>
diff --git a/doc/pcre.3 b/doc/pcre.3
index c0c7141..54b0c33 100644
--- a/doc/pcre.3
+++ b/doc/pcre.3
@@ -1,24 +1,25 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH DESCRIPTION
+.SH INTRODUCTION
.rs
.sp
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with just a few
-differences. The current implementation of PCRE (release 4.x) corresponds
-approximately with Perl 5.8, including support for UTF-8 encoded strings.
-However, this support has to be explicitly enabled; it is not the default.
-
-PCRE is written in C and released as a C library. However, a number of people
-have written wrappers and interfaces of various kinds. A C++ class is included
-in these contributions, which can be found in the \fIContrib\fR directory at
-the primary FTP site, which is:
-
+differences. The current implementation of PCRE (release 5.x) corresponds
+approximately with Perl 5.8, including support for UTF-8 encoded strings and
+Unicode general category properties. However, this support has to be explicitly
+enabled; it is not the default.
+.P
+PCRE is written in C and released as a C library. A number of people have
+written wrappers and interfaces of various kinds. A C++ class is included in
+these contributions, which can be found in the \fIContrib\fR directory at the
+primary FTP site, which is:
+.sp
.\" HTML <a href="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre">
.\" </a>
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
-
+.P
Details of exactly which Perl regular expression features are and are not
supported by PCRE are given in separate documents. See the
.\" HREF
@@ -29,93 +30,116 @@ and
\fBpcrecompat\fR
.\"
pages.
-
+.P
Some features of PCRE can be included, excluded, or changed when the library is
built. The
.\" HREF
\fBpcre_config()\fR
.\"
function makes it possible for a client to discover which features are
-available. Documentation about building PCRE for various operating systems can
-be found in the \fBREADME\fR file in the source distribution.
-
-.SH USER DOCUMENTATION
+available. The features themselves are described in the
+.\" HREF
+\fBpcrebuild\fP
+.\"
+page. Documentation about building PCRE for various operating systems can be
+found in the \fBREADME\fP file in the source distribution.
+.
+.
+.SH "USER DOCUMENTATION"
.rs
.sp
-The user documentation for PCRE has been split up into a number of different
-sections. In the "man" format, each of these is a separate "man page". In the
-HTML format, each is a separate page, linked from the index page. In the plain
-text format, all the sections are concatenated, for ease of searching. The
-sections are as follows:
-
+The user documentation for PCRE comprises a number of different sections. In
+the "man" format, each of these is a separate "man page". In the HTML format,
+each is a separate page, linked from the index page. In the plain text format,
+all the sections are concatenated, for ease of searching. The sections are as
+follows:
+.sp
pcre this document
pcreapi details of PCRE's native API
pcrebuild options for building PCRE
pcrecallout details of the callout feature
pcrecompat discussion of Perl compatibility
- pcregrep description of the \fBpcregrep\fR command
+ pcregrep description of the \fBpcregrep\fP command
+ pcrepartial details of the partial matching facility
+.\" JOIN
pcrepattern syntax and semantics of supported
regular expressions
pcreperform discussion of performance issues
pcreposix the POSIX-compatible API
+ pcreprecompile details of saving and re-using precompiled patterns
pcresample discussion of the sample program
- pcretest the \fBpcretest\fR testing command
-
+ pcretest description of the \fBpcretest\fP testing command
+.sp
In addition, in the "man" and HTML formats, there is a short page for each
library function, listing its arguments and results.
-
+.
+.
.SH LIMITATIONS
.rs
.sp
There are some size limitations in PCRE but it is hoped that they will never in
practice be relevant.
-
+.P
The maximum length of a compiled pattern is 65539 (sic) bytes if PCRE is
compiled with the default internal linkage size of 2. If you want to process
regular expressions that are truly enormous, you can compile PCRE with an
-internal linkage size of 3 or 4 (see the \fBREADME\fR file in the source
+internal linkage size of 3 or 4 (see the \fBREADME\fP file in the source
distribution and the
.\" HREF
-\fBpcrebuild\fR
+\fBpcrebuild\fP
.\"
-documentation for details). If these cases the limit is substantially larger.
+documentation for details). In these cases the limit is substantially larger.
However, the speed of execution will be slower.
-
+.P
All values in repeating quantifiers must be less than 65536.
The maximum number of capturing subpatterns is 65535.
-
+.P
There is no limit to the number of non-capturing subpatterns, but the maximum
depth of nesting of all kinds of parenthesized subpattern, including capturing
subpatterns, assertions, and other types of subpattern, is 200.
-
+.P
The maximum length of a subject string is the largest positive number that an
integer variable can hold. However, PCRE uses recursion to handle subpatterns
and indefinite repetition. This means that the available stack space may limit
the size of a subject string that can be processed by certain patterns.
-
+.sp
.\" HTML <a name="utf8support"></a>
-.SH UTF-8 SUPPORT
+.
+.
+.SH "UTF-8 AND UNICODE PROPERTY SUPPORT"
.rs
.sp
-Starting at release 3.3, PCRE has had some support for character strings
-encoded in the UTF-8 format. For release 4.0 this has been greatly extended to
-cover most common requirements.
-
+From release 3.3, PCRE has had some support for character strings encoded in
+the UTF-8 format. For release 4.0 this was greatly extended to cover most
+common requirements, and in release 5.0 additional support for Unicode general
+category properties was added.
+.P
In order process UTF-8 strings, you must build PCRE to include UTF-8 support in
the code, and, in addition, you must call
.\" HREF
-\fBpcre_compile()\fR
+\fBpcre_compile()\fP
.\"
with the PCRE_UTF8 option flag. When you do this, both the pattern and any
subject strings that are matched against it are treated as UTF-8 strings
instead of just strings of bytes.
-
+.P
If you compile PCRE with UTF-8 support, but do not use it at run time, the
library will be a bit bigger, but the additional run time overhead is limited
to testing the PCRE_UTF8 flag in several places, so should not be very large.
-
+.P
+If PCRE is built with Unicode character property support (which implies UTF-8
+support), the escape sequences \ep{..}, \eP{..}, and \eX are supported.
+The available properties that can be tested are limited to the general
+category properties such as Lu for an upper case letter or Nd for a decimal
+number. A full list is given in the
+.\" HREF
+\fBpcrepattern\fP
+.\"
+documentation. The PCRE library is increased in size by about 90K when Unicode
+property support is included.
+.P
The following comments apply when PCRE is running in UTF-8 mode:
-
+.P
1. When you set the PCRE_UTF8 flag, the strings passed as patterns and subjects
are checked for validity on entry to the relevant functions. If an invalid
UTF-8 string is passed, an error return is given. In some situations, you may
@@ -126,37 +150,43 @@ is given (respectively) contains only valid UTF-8 codes. In this case, it does
not diagnose an invalid UTF-8 string. If you pass an invalid UTF-8 string to
PCRE when PCRE_NO_UTF8_CHECK is set, the results are undefined. Your program
may crash.
-
-2. In a pattern, the escape sequence \\x{...}, where the contents of the braces
+.P
+2. In a pattern, the escape sequence \ex{...}, where the contents of the braces
is a string of hexadecimal digits, is interpreted as a UTF-8 character whose
-code number is the given hexadecimal number, for example: \\x{1234}. If a
+code number is the given hexadecimal number, for example: \ex{1234}. If a
non-hexadecimal digit appears between the braces, the item is not recognized.
This escape sequence can be used either as a literal, or within a character
class.
-
-3. The original hexadecimal escape sequence, \\xhh, matches a two-byte UTF-8
+.P
+3. The original hexadecimal escape sequence, \exhh, matches a two-byte UTF-8
character if the value is greater than 127.
-
+.P
4. Repeat quantifiers apply to complete UTF-8 characters, not to individual
-bytes, for example: \\x{100}{3}.
-
+bytes, for example: \ex{100}{3}.
+.P
5. The dot metacharacter matches one UTF-8 character instead of a single byte.
-
-6. The escape sequence \\C can be used to match a single byte in UTF-8 mode,
+.P
+6. The escape sequence \eC can be used to match a single byte in UTF-8 mode,
but its use can lead to some strange effects.
-
-7. The character escapes \\b, \\B, \\d, \\D, \\s, \\S, \\w, and \\W correctly
+.P
+7. The character escapes \eb, \eB, \ed, \eD, \es, \eS, \ew, and \eW correctly
test characters of any code value, but the characters that PCRE recognizes as
digits, spaces, or word characters remain the same set as before, all with
-values less than 256.
-
-8. Case-insensitive matching applies only to characters whose values are less
-than 256. PCRE does not support the notion of "case" for higher-valued
-characters.
-
-9. PCRE does not support the use of Unicode tables and properties or the Perl
-escapes \\p, \\P, and \\X.
-
+values less than 256. This remains true even when PCRE includes Unicode
+property support, because to do otherwise would slow down PCRE in many common
+cases. If you really want to test for a wider sense of, say, "digit", you
+must use Unicode property tests such as \ep{Nd}.
+.P
+8. Similarly, characters that match the POSIX named character classes are all
+low-valued characters.
+.P
+9. Case-insensitive matching applies only to characters whose values are less
+than 128, unless PCRE is built with Unicode property support. Even when Unicode
+property support is available, PCRE still uses its own character tables when
+checking the case of low-valued characters, so as not to degrade performance.
+The Unicode property information is used only for characters with higher
+values.
+.
.SH AUTHOR
.rs
.sp
@@ -167,8 +197,8 @@ University Computing Service,
Cambridge CB2 3QG, England.
.br
Phone: +44 1223 334714
-
+.sp
.in 0
-Last updated: 20 August 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcre.txt b/doc/pcre.txt
index 698baa5..fdf0d6f 100644
--- a/doc/pcre.txt
+++ b/doc/pcre.txt
@@ -1,3 +1,4 @@
+-----------------------------------------------------------------------------
This file contains a concatenation of the PCRE man pages, converted to plain
text format for ease of searching with a text editor, or for use on systems
that do not have a man page processor. The small individual files that give
@@ -12,19 +13,19 @@ PCRE(3) PCRE(3)
NAME
PCRE - Perl-compatible regular expressions
-DESCRIPTION
+INTRODUCTION
The PCRE library is a set of functions that implement regular expres-
sion pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE (release
- 4.x) corresponds approximately with Perl 5.8, including support for
- UTF-8 encoded strings. However, this support has to be explicitly
- enabled; it is not the default.
+ 5.x) corresponds approximately with Perl 5.8, including support for
+ UTF-8 encoded strings and Unicode general category properties. However,
+ this support has to be explicitly enabled; it is not the default.
- PCRE is written in C and released as a C library. However, a number of
- people have written wrappers and interfaces of various kinds. A C++
- class is included in these contributions, which can be found in the
- Contrib directory at the primary FTP site, which is:
+ PCRE is written in C and released as a C library. A number of people
+ have written wrappers and interfaces of various kinds. A C++ class is
+ included in these contributions, which can be found in the Contrib
+ directory at the primary FTP site, which is:
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
@@ -34,18 +35,19 @@ DESCRIPTION
Some features of PCRE can be included, excluded, or changed when the
library is built. The pcre_config() function makes it possible for a
- client to discover which features are available. Documentation about
- building PCRE for various operating systems can be found in the README
- file in the source distribution.
+ client to discover which features are available. The features them-
+ selves are described in the pcrebuild page. Documentation about build-
+ ing PCRE for various operating systems can be found in the README file
+ in the source distribution.
USER DOCUMENTATION
- The user documentation for PCRE has been split up into a number of dif-
- ferent sections. In the "man" format, each of these is a separate "man
- page". In the HTML format, each is a separate page, linked from the
- index page. In the plain text format, all the sections are concate-
- nated, for ease of searching. The sections are as follows:
+ The user documentation for PCRE comprises a number of different sec-
+ tions. In the "man" format, each of these is a separate "man page". In
+ the HTML format, each is a separate page, linked from the index page.
+ In the plain text format, all the sections are concatenated, for ease
+ of searching. The sections are as follows:
pcre this document
pcreapi details of PCRE's native API
@@ -53,12 +55,14 @@ USER DOCUMENTATION
pcrecallout details of the callout feature
pcrecompat discussion of Perl compatibility
pcregrep description of the pcregrep command
+ pcrepartial details of the partial matching facility
pcrepattern syntax and semantics of supported
regular expressions
pcreperform discussion of performance issues
pcreposix the POSIX-compatible API
+ pcreprecompile details of saving and re-using precompiled patterns
pcresample discussion of the sample program
- pcretest the pcretest testing command
+ pcretest description of the pcretest testing command
In addition, in the "man" and HTML formats, there is a short page for
each library function, listing its arguments and results.
@@ -74,7 +78,7 @@ LIMITATIONS
process regular expressions that are truly enormous, you can compile
PCRE with an internal linkage size of 3 or 4 (see the README file in
the source distribution and the pcrebuild documentation for details).
- If these cases the limit is substantially larger. However, the speed
+ In these cases the limit is substantially larger. However, the speed
of execution will be slower.
All values in repeating quantifiers must be less than 65536. The maxi-
@@ -92,67 +96,83 @@ LIMITATIONS
processed by certain patterns.
-UTF-8 SUPPORT
+UTF-8 AND UNICODE PROPERTY SUPPORT
- Starting at release 3.3, PCRE has had some support for character
- strings encoded in the UTF-8 format. For release 4.0 this has been
- greatly extended to cover most common requirements.
+ From release 3.3, PCRE has had some support for character strings
+ encoded in the UTF-8 format. For release 4.0 this was greatly extended
+ to cover most common requirements, and in release 5.0 additional sup-
+ port for Unicode general category properties was added.
- In order process UTF-8 strings, you must build PCRE to include UTF-8
- support in the code, and, in addition, you must call pcre_compile()
- with the PCRE_UTF8 option flag. When you do this, both the pattern and
- any subject strings that are matched against it are treated as UTF-8
+ In order process UTF-8 strings, you must build PCRE to include UTF-8
+ support in the code, and, in addition, you must call pcre_compile()
+ with the PCRE_UTF8 option flag. When you do this, both the pattern and
+ any subject strings that are matched against it are treated as UTF-8
strings instead of just strings of bytes.
- If you compile PCRE with UTF-8 support, but do not use it at run time,
- the library will be a bit bigger, but the additional run time overhead
- is limited to testing the PCRE_UTF8 flag in several places, so should
+ If you compile PCRE with UTF-8 support, but do not use it at run time,
+ the library will be a bit bigger, but the additional run time overhead
+ is limited to testing the PCRE_UTF8 flag in several places, so should
not be very large.
+ If PCRE is built with Unicode character property support (which implies
+ UTF-8 support), the escape sequences \p{..}, \P{..}, and \X are sup-
+ ported. The available properties that can be tested are limited to the
+ general category properties such as Lu for an upper case letter or Nd
+ for a decimal number. A full list is given in the pcrepattern documen-
+ tation. The PCRE library is increased in size by about 90K when Unicode
+ property support is included.
+
The following comments apply when PCRE is running in UTF-8 mode:
- 1. When you set the PCRE_UTF8 flag, the strings passed as patterns and
- subjects are checked for validity on entry to the relevant functions.
+ 1. When you set the PCRE_UTF8 flag, the strings passed as patterns and
+ subjects are checked for validity on entry to the relevant functions.
If an invalid UTF-8 string is passed, an error return is given. In some
- situations, you may already know that your strings are valid, and
+ situations, you may already know that your strings are valid, and
therefore want to skip these checks in order to improve performance. If
- you set the PCRE_NO_UTF8_CHECK flag at compile time or at run time,
- PCRE assumes that the pattern or subject it is given (respectively)
- contains only valid UTF-8 codes. In this case, it does not diagnose an
- invalid UTF-8 string. If you pass an invalid UTF-8 string to PCRE when
- PCRE_NO_UTF8_CHECK is set, the results are undefined. Your program may
+ you set the PCRE_NO_UTF8_CHECK flag at compile time or at run time,
+ PCRE assumes that the pattern or subject it is given (respectively)
+ contains only valid UTF-8 codes. In this case, it does not diagnose an
+ invalid UTF-8 string. If you pass an invalid UTF-8 string to PCRE when
+ PCRE_NO_UTF8_CHECK is set, the results are undefined. Your program may
crash.
2. In a pattern, the escape sequence \x{...}, where the contents of the
- braces is a string of hexadecimal digits, is interpreted as a UTF-8
- character whose code number is the given hexadecimal number, for exam-
- ple: \x{1234}. If a non-hexadecimal digit appears between the braces,
+ braces is a string of hexadecimal digits, is interpreted as a UTF-8
+ character whose code number is the given hexadecimal number, for exam-
+ ple: \x{1234}. If a non-hexadecimal digit appears between the braces,
the item is not recognized. This escape sequence can be used either as
a literal, or within a character class.
- 3. The original hexadecimal escape sequence, \xhh, matches a two-byte
+ 3. The original hexadecimal escape sequence, \xhh, matches a two-byte
UTF-8 character if the value is greater than 127.
- 4. Repeat quantifiers apply to complete UTF-8 characters, not to indi-
+ 4. Repeat quantifiers apply to complete UTF-8 characters, not to indi-
vidual bytes, for example: \x{100}{3}.
- 5. The dot metacharacter matches one UTF-8 character instead of a
- single byte.
+ 5. The dot metacharacter matches one UTF-8 character instead of a sin-
+ gle byte.
- 6. The escape sequence \C can be used to match a single byte in UTF-8
+ 6. The escape sequence \C can be used to match a single byte in UTF-8
mode, but its use can lead to some strange effects.
- 7. The character escapes \b, \B, \d, \D, \s, \S, \w, and \W correctly
- test characters of any code value, but the characters that PCRE recog-
- nizes as digits, spaces, or word characters remain the same set as
- before, all with values less than 256.
+ 7. The character escapes \b, \B, \d, \D, \s, \S, \w, and \W correctly
+ test characters of any code value, but the characters that PCRE recog-
+ nizes as digits, spaces, or word characters remain the same set as
+ before, all with values less than 256. This remains true even when PCRE
+ includes Unicode property support, because to do otherwise would slow
+ down PCRE in many common cases. If you really want to test for a wider
+ sense of, say, "digit", you must use Unicode property tests such as
+ \p{Nd}.
- 8. Case-insensitive matching applies only to characters whose values
- are less than 256. PCRE does not support the notion of "case" for
- higher-valued characters.
+ 8. Similarly, characters that match the POSIX named character classes
+ are all low-valued characters.
- 9. PCRE does not support the use of Unicode tables and properties or
- the Perl escapes \p, \P, and \X.
+ 9. Case-insensitive matching applies only to characters whose values
+ are less than 128, unless PCRE is built with Unicode property support.
+ Even when Unicode property support is available, PCRE still uses its
+ own character tables when checking the case of low-valued characters,
+ so as not to degrade performance. The Unicode property information is
+ used only for characters with higher values.
AUTHOR
@@ -162,8 +182,8 @@ AUTHOR
Cambridge CB2 3QG, England.
Phone: +44 1223 334714
-Last updated: 20 August 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -177,10 +197,10 @@ PCRE BUILD-TIME OPTIONS
This document describes the optional features of PCRE that can be
selected when the library is compiled. They are all selected, or dese-
- lected, by providing options to the configure script which is run
- before the make command. The complete list of options for configure
- (which includes the standard ones such as the selection of the instal-
- lation directory) can be obtained by running
+ lected, by providing options to the configure script that is run before
+ the make command. The complete list of options for configure (which
+ includes the standard ones such as the selection of the installation
+ directory) can be obtained by running
./configure --help
@@ -204,6 +224,25 @@ UTF-8 SUPPORT
function.
+UNICODE CHARACTER PROPERTY SUPPORT
+
+ UTF-8 support allows PCRE to process character values greater than 255
+ in the strings that it handles. On its own, however, it does not pro-
+ vide any facilities for accessing the properties of such characters. If
+ you want to be able to use the pattern escapes \P, \p, and \X, which
+ refer to Unicode character properties, you must add
+
+ --enable-unicode-properties
+
+ to the configure command. This implies UTF-8 support, even if you have
+ not explicitly requested it.
+
+ Including Unicode property support adds around 90K of tables to the
+ PCRE library, approximately doubling its size. Only the general cate-
+ gory properties such as Lu and Nd are supported. Details are given in
+ the pcrepattern documentation.
+
+
CODE VALUE OF NEWLINE
By default, PCRE treats character 10 (linefeed) as the newline charac-
@@ -231,9 +270,9 @@ BUILDING SHARED AND STATIC LIBRARIES
POSIX MALLOC USAGE
- When PCRE is called through the POSIX interface (see the pcreposix
- documentation), additional working storage is required for holding the
- pointers to capturing substrings because PCRE requires three integers
+ When PCRE is called through the POSIX interface (see the pcreposix doc-
+ umentation), additional working storage is required for holding the
+ pointers to capturing substrings, because PCRE requires three integers
per substring, whereas the POSIX interface provides only two. If the
number of expected substrings is small, the wrapper function uses space
on the stack, because this is faster than using malloc() for each call.
@@ -247,13 +286,13 @@ POSIX MALLOC USAGE
LIMITING PCRE RESOURCE USAGE
- Internally, PCRE has a function called match() which it calls repeat-
- edly (possibly recursively) when performing a matching operation. By
- limiting the number of times this function may be called, a limit can
- be placed on the resources used by a single call to pcre_exec(). The
- limit can be changed at run time, as described in the pcreapi documen-
- tation. The default is 10 million, but this can be changed by adding a
- setting such as
+ Internally, PCRE has a function called match(), which it calls repeat-
+ edly (possibly recursively) when matching a pattern. By controlling the
+ maximum number of times this function may be called during a single
+ matching operation, a limit can be placed on the resources used by a
+ single call to pcre_exec(). The limit can be changed at run time, as
+ described in the pcreapi documentation. The default is 10 million, but
+ this can be changed by adding a setting such as
--with-match-limit=500000
@@ -264,7 +303,7 @@ HANDLING VERY LARGE PATTERNS
Within a compiled pattern, offset values are used to point from one
part to another (for example, from an opening parenthesis to an alter-
- nation metacharacter). By default two-byte values are used for these
+ nation metacharacter). By default, two-byte values are used for these
offsets, leading to a maximum size for a compiled pattern of around
64K. This is sufficient to handle all but the most gigantic patterns.
Nevertheless, some people do want to process enormous patterns, so it
@@ -297,9 +336,9 @@ AVOIDING EXCESSIVE STACK USAGE
--disable-stack-for-recursion
to the configure command. With this configuration, PCRE will use the
- pcre_stack_malloc and pcre_stack_free variables to call memory
- management functions. Separate functions are provided because the usage
- is very predictable: the block sizes requested are always the same, and
+ pcre_stack_malloc and pcre_stack_free variables to call memory manage-
+ ment functions. Separate functions are provided because the usage is
+ very predictable: the block sizes requested are always the same, and
the blocks are always freed in reverse order. A calling program might
be able to implement optimized functions that perform better than the
standard malloc() and free() functions. PCRE runs noticeably more
@@ -309,15 +348,16 @@ AVOIDING EXCESSIVE STACK USAGE
USING EBCDIC CODE
PCRE assumes by default that it will run in an environment where the
- character code is ASCII (or UTF-8, which is a superset of ASCII). PCRE
- can, however, be compiled to run in an EBCDIC environment by adding
+ character code is ASCII (or Unicode, which is a superset of ASCII).
+ PCRE can, however, be compiled to run in an EBCDIC environment by
+ adding
--enable-ebcdic
to the configure command.
-Last updated: 09 December 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -327,7 +367,7 @@ PCRE(3) PCRE(3)
NAME
PCRE - Perl-compatible regular expressions
-SYNOPSIS OF PCRE API
+PCRE NATIVE API
#include <pcre.h>
@@ -392,81 +432,95 @@ SYNOPSIS OF PCRE API
int (*pcre_callout)(pcre_callout_block *);
-PCRE API
+PCRE API OVERVIEW
PCRE has its own native API, which is described in this document. There
is also a set of wrapper functions that correspond to the POSIX regular
expression API. These are described in the pcreposix documentation.
The native API function prototypes are defined in the header file
- pcre.h, and on Unix systems the library itself is called libpcre.a, so
- can be accessed by adding -lpcre to the command for linking an applica-
- tion which calls it. The header file defines the macros PCRE_MAJOR and
- PCRE_MINOR to contain the major and minor release numbers for the
- library. Applications can use these to include support for different
- releases.
+ pcre.h, and on Unix systems the library itself is called libpcre. It
+ can normally be accessed by adding -lpcre to the command for linking an
+ application that uses PCRE. The header file defines the macros
+ PCRE_MAJOR and PCRE_MINOR to contain the major and minor release num-
+ bers for the library. Applications can use these to include support
+ for different releases of PCRE.
The functions pcre_compile(), pcre_study(), and pcre_exec() are used
for compiling and matching regular expressions. A sample program that
- demonstrates the simplest way of using them is given in the file pcre-
- demo.c. The pcresample documentation describes how to run it.
+ demonstrates the simplest way of using them is provided in the file
+ called pcredemo.c in the source distribution. The pcresample documenta-
+ tion describes how to run it.
- There are convenience functions for extracting captured substrings from
- a matched subject string. They are:
+ In addition to the main compiling and matching functions, there are
+ convenience functions for extracting captured substrings from a matched
+ subject string. They are:
pcre_copy_substring()
pcre_copy_named_substring()
pcre_get_substring()
pcre_get_named_substring()
pcre_get_substring_list()
+ pcre_get_stringnumber()
pcre_free_substring() and pcre_free_substring_list() are also provided,
to free the memory used for extracted strings.
- The function pcre_maketables() is used (optionally) to build a set of
- character tables in the current locale for passing to pcre_compile().
+ The function pcre_maketables() is used to build a set of character
+ tables in the current locale for passing to pcre_compile() or
+ pcre_exec(). This is an optional facility that is provided for spe-
+ cialist use. Most commonly, no special tables are passed, in which case
+ internal tables that are generated when PCRE is built are used.
- The function pcre_fullinfo() is used to find out information about a
- compiled pattern; pcre_info() is an obsolete version which returns only
- some of the available information, but is retained for backwards com-
- patibility. The function pcre_version() returns a pointer to a string
+ The function pcre_fullinfo() is used to find out information about a
+ compiled pattern; pcre_info() is an obsolete version that returns only
+ some of the available information, but is retained for backwards com-
+ patibility. The function pcre_version() returns a pointer to a string
containing the version of PCRE and its date of release.
- The global variables pcre_malloc and pcre_free initially contain the
- entry points of the standard malloc() and free() functions respec-
+ The global variables pcre_malloc and pcre_free initially contain the
+ entry points of the standard malloc() and free() functions, respec-
tively. PCRE calls the memory management functions via these variables,
- so a calling program can replace them if it wishes to intercept the
+ so a calling program can replace them if it wishes to intercept the
calls. This should be done before calling any PCRE functions.
- The global variables pcre_stack_malloc and pcre_stack_free are also
- indirections to memory management functions. These special functions
- are used only when PCRE is compiled to use the heap for remembering
- data, instead of recursive function calls. This is a non-standard way
- of building PCRE, for use in environments that have limited stacks.
- Because of the greater use of memory management, it runs more slowly.
- Separate functions are provided so that special-purpose external code
+ The global variables pcre_stack_malloc and pcre_stack_free are also
+ indirections to memory management functions. These special functions
+ are used only when PCRE is compiled to use the heap for remembering
+ data, instead of recursive function calls. This is a non-standard way
+ of building PCRE, for use in environments that have limited stacks.
+ Because of the greater use of memory management, it runs more slowly.
+ Separate functions are provided so that special-purpose external code
can be used for this case. When used, these functions are always called
- in a stack-like manner (last obtained, first freed), and always for
+ in a stack-like manner (last obtained, first freed), and always for
memory blocks of the same size.
The global variable pcre_callout initially contains NULL. It can be set
- by the caller to a "callout" function, which PCRE will then call at
- specified points during a matching operation. Details are given in the
+ by the caller to a "callout" function, which PCRE will then call at
+ specified points during a matching operation. Details are given in the
pcrecallout documentation.
MULTITHREADING
- The PCRE functions can be used in multi-threading applications, with
+ The PCRE functions can be used in multi-threading applications, with
the proviso that the memory management functions pointed to by
pcre_malloc, pcre_free, pcre_stack_malloc, and pcre_stack_free, and the
callout function pointed to by pcre_callout, are shared by all threads.
- The compiled form of a regular expression is not altered during match-
+ The compiled form of a regular expression is not altered during match-
ing, so the same compiled pattern can safely be used by several threads
at once.
+SAVING PRECOMPILED PATTERNS FOR LATER USE
+
+ The compiled form of a regular expression can be saved and re-used at a
+ later time, possibly by a different program, and even on a host other
+ than the one on which it was compiled. Details are given in the
+ pcreprecompile documentation.
+
+
CHECKING BUILD-TIME OPTIONS
int pcre_config(int what, void *where);
@@ -486,42 +540,47 @@ CHECKING BUILD-TIME OPTIONS
The output is an integer that is set to one if UTF-8 support is avail-
able; otherwise it is set to zero.
+ PCRE_CONFIG_UNICODE_PROPERTIES
+
+ The output is an integer that is set to one if support for Unicode
+ character properties is available; otherwise it is set to zero.
+
PCRE_CONFIG_NEWLINE
- The output is an integer that is set to the value of the code that is
- used for the newline character. It is either linefeed (10) or carriage
- return (13), and should normally be the standard character for your
+ The output is an integer that is set to the value of the code that is
+ used for the newline character. It is either linefeed (10) or carriage
+ return (13), and should normally be the standard character for your
operating system.
PCRE_CONFIG_LINK_SIZE
- The output is an integer that contains the number of bytes used for
+ The output is an integer that contains the number of bytes used for
internal linkage in compiled regular expressions. The value is 2, 3, or
- 4. Larger values allow larger regular expressions to be compiled, at
- the expense of slower matching. The default value of 2 is sufficient
- for all but the most massive patterns, since it allows the compiled
+ 4. Larger values allow larger regular expressions to be compiled, at
+ the expense of slower matching. The default value of 2 is sufficient
+ for all but the most massive patterns, since it allows the compiled
pattern to be up to 64K in size.
PCRE_CONFIG_POSIX_MALLOC_THRESHOLD
- The output is an integer that contains the threshold above which the
- POSIX interface uses malloc() for output vectors. Further details are
+ The output is an integer that contains the threshold above which the
+ POSIX interface uses malloc() for output vectors. Further details are
given in the pcreposix documentation.
PCRE_CONFIG_MATCH_LIMIT
The output is an integer that gives the default limit for the number of
- internal matching function calls in a pcre_exec() execution. Further
+ internal matching function calls in a pcre_exec() execution. Further
details are given with pcre_exec() below.
PCRE_CONFIG_STACKRECURSE
- The output is an integer that is set to one if internal recursion is
- implemented by recursive function calls that use the stack to remember
+ The output is an integer that is set to one if internal recursion is
+ implemented by recursive function calls that use the stack to remember
their state. This is the usual way that PCRE is compiled. The output is
- zero if PCRE was compiled to use blocks of data on the heap instead of
- recursive function calls. In this case, pcre_stack_malloc and
- pcre_stack_free are called to manage memory blocks on the heap, thus
+ zero if PCRE was compiled to use blocks of data on the heap instead of
+ recursive function calls. In this case, pcre_stack_malloc and
+ pcre_stack_free are called to manage memory blocks on the heap, thus
avoiding the use of the stack.
@@ -531,29 +590,29 @@ COMPILING A PATTERN
const char **errptr, int *erroffset,
const unsigned char *tableptr);
-
- The function pcre_compile() is called to compile a pattern into an
- internal form. The pattern is a C string terminated by a binary zero,
- and is passed in the argument pattern. A pointer to a single block of
- memory that is obtained via pcre_malloc is returned. This contains the
- compiled code and related data. The pcre type is defined for the
- returned block; this is a typedef for a structure whose contents are
- not externally defined. It is up to the caller to free the memory when
+ The function pcre_compile() is called to compile a pattern into an
+ internal form. The pattern is a C string terminated by a binary zero,
+ and is passed in the pattern argument. A pointer to a single block of
+ memory that is obtained via pcre_malloc is returned. This contains the
+ compiled code and related data. The pcre type is defined for the
+ returned block; this is a typedef for a structure whose contents are
+ not externally defined. It is up to the caller to free the memory when
it is no longer required.
- Although the compiled code of a PCRE regex is relocatable, that is, it
+ Although the compiled code of a PCRE regex is relocatable, that is, it
does not depend on memory location, the complete pcre data block is not
- fully relocatable, because it contains a copy of the tableptr argument,
- which is an address (see below).
+ fully relocatable, because it may contain a copy of the tableptr argu-
+ ment, which is an address (see below).
The options argument contains independent bits that affect the compila-
- tion. It should be zero if no options are required. Some of the
- options, in particular, those that are compatible with Perl, can also
- be set and unset from within the pattern (see the detailed description
- of regular expressions in the pcrepattern documentation). For these
- options, the contents of the options argument specifies their initial
- settings at the start of compilation and execution. The PCRE_ANCHORED
- option can be set at the time of matching as well as at compile time.
+ tion. It should be zero if no options are required. The available
+ options are described below. Some of them, in particular, those that
+ are compatible with Perl, can also be set and unset from within the
+ pattern (see the detailed description in the pcrepattern documenta-
+ tion). For these options, the contents of the options argument speci-
+ fies their initial settings at the start of compilation and execution.
+ The PCRE_ANCHORED option can be set at the time of matching as well as
+ at compile time.
If errptr is NULL, pcre_compile() returns NULL immediately. Otherwise,
if compilation of a pattern fails, pcre_compile() returns NULL, and
@@ -564,11 +623,14 @@ COMPILING A PATTERN
given.
If the final argument, tableptr, is NULL, PCRE uses a default set of
- character tables which are built when it is compiled, using the default
- C locale. Otherwise, tableptr must be the result of a call to
- pcre_maketables(). See the section on locale support below.
-
- This code fragment shows a typical straightforward call to pcre_com-
+ character tables that are built when PCRE is compiled, using the
+ default C locale. Otherwise, tableptr must be an address that is the
+ result of a call to pcre_maketables(). This value is stored with the
+ compiled pattern, and used again by pcre_exec(), unless another table
+ pointer is passed to it. For more discussion, see the section on locale
+ support below.
+
+ This code fragment shows a typical straightforward call to pcre_com-
pile():
pcre *re;
@@ -581,21 +643,30 @@ COMPILING A PATTERN
&erroffset, /* for error offset */
NULL); /* use default character tables */
- The following option bits are defined:
+ The following names for option bits are defined in the pcre.h header
+ file:
PCRE_ANCHORED
If this bit is set, the pattern is forced to be "anchored", that is, it
is constrained to match only at the first matching point in the string
- which is being searched (the "subject string"). This effect can also be
+ that is being searched (the "subject string"). This effect can also be
achieved by appropriate constructs in the pattern itself, which is the
only way to do it in Perl.
+ PCRE_AUTO_CALLOUT
+
+ If this bit is set, pcre_compile() automatically inserts callout items,
+ all with number 255, before each pattern item. For discussion of the
+ callout facility, see the pcrecallout documentation.
+
PCRE_CASELESS
If this bit is set, letters in the pattern match both upper and lower
case letters. It is equivalent to Perl's /i option, and it can be
- changed within a pattern by a (?i) option setting.
+ changed within a pattern by a (?i) option setting. When running in
+ UTF-8 mode, case support for high-valued characters is available only
+ when PCRE is built with Unicode character property support.
PCRE_DOLLAR_ENDONLY
@@ -645,11 +716,11 @@ COMPILING A PATTERN
PCRE_MULTILINE
By default, PCRE treats the subject string as consisting of a single
- "line" of characters (even if it actually contains several newlines).
- The "start of line" metacharacter (^) matches only at the start of the
- string, while the "end of line" metacharacter ($) matches only at the
- end of the string, or before a terminating newline (unless PCRE_DOL-
- LAR_ENDONLY is set). This is the same as Perl.
+ line of characters (even if it actually contains newlines). The "start
+ of line" metacharacter (^) matches only at the start of the string,
+ while the "end of line" metacharacter ($) matches only at the end of
+ the string, or before a terminating newline (unless PCRE_DOLLAR_ENDONLY
+ is set). This is the same as Perl.
When PCRE_MULTILINE it is set, the "start of line" and "end of line"
constructs match immediately following or immediately before any new-
@@ -678,10 +749,10 @@ COMPILING A PATTERN
This option causes PCRE to regard both the pattern and the subject as
strings of UTF-8 characters instead of single-byte character strings.
- However, it is available only if PCRE has been built to include UTF-8
- support. If not, the use of this option provokes an error. Details of
- how this option changes the behaviour of PCRE are given in the section
- on UTF-8 support in the main pcre page.
+ However, it is available only when PCRE is built to include UTF-8 sup-
+ port. If not, the use of this option provokes an error. Details of how
+ this option changes the behaviour of PCRE are given in the section on
+ UTF-8 support in the main pcre page.
PCRE_NO_UTF8_CHECK
@@ -691,9 +762,9 @@ COMPILING A PATTERN
is valid, and you want to skip this check for performance reasons, you
can set the PCRE_NO_UTF8_CHECK option. When it is set, the effect of
passing an invalid UTF-8 string as a pattern is undefined. It may cause
- your program to crash. Note that there is a similar option for sup-
- pressing the checking of subject strings passed to pcre_exec().
-
+ your program to crash. Note that this option can also be passed to
+ pcre_exec(), to suppress the UTF-8 validity checking of subject
+ strings.
STUDYING A PATTERN
@@ -701,29 +772,31 @@ STUDYING A PATTERN
pcre_extra *pcre_study(const pcre *code, int options,
const char **errptr);
- When a pattern is going to be used several times, it is worth spending
- more time analyzing it in order to speed up the time taken for match-
- ing. The function pcre_study() takes a pointer to a compiled pattern as
- its first argument. If studing the pattern produces additional informa-
- tion that will help speed up matching, pcre_study() returns a pointer
- to a pcre_extra block, in which the study_data field points to the
- results of the study.
-
- The returned value from a pcre_study() can be passed directly to
- pcre_exec(). However, the pcre_extra block also contains other fields
- that can be set by the caller before the block is passed; these are
- described below. If studying the pattern does not produce any addi-
- tional information, pcre_study() returns NULL. In that circumstance, if
- the calling program wants to pass some of the other fields to
- pcre_exec(), it must set up its own pcre_extra block.
-
- The second argument contains option bits. At present, no options are
- defined for pcre_study(), and this argument should always be zero.
-
- The third argument for pcre_study() is a pointer for an error message.
- If studying succeeds (even if no data is returned), the variable it
- points to is set to NULL. Otherwise it points to a textual error mes-
- sage. You should therefore test the error pointer for NULL after call-
+ If a compiled pattern is going to be used several times, it is worth
+ spending more time analyzing it in order to speed up the time taken for
+ matching. The function pcre_study() takes a pointer to a compiled pat-
+ tern as its first argument. If studying the pattern produces additional
+ information that will help speed up matching, pcre_study() returns a
+ pointer to a pcre_extra block, in which the study_data field points to
+ the results of the study.
+
+ The returned value from pcre_study() can be passed directly to
+ pcre_exec(). However, a pcre_extra block also contains other fields
+ that can be set by the caller before the block is passed; these are
+ described below in the section on matching a pattern.
+
+ If studying the pattern does not produce any additional information,
+ pcre_study() returns NULL. In that circumstance, if the calling program
+ wants to pass any of the other fields to pcre_exec(), it must set up
+ its own pcre_extra block.
+
+ The second argument of pcre_study() contains option bits. At present,
+ no options are defined, and this argument should always be zero.
+
+ The third argument for pcre_study() is a pointer for an error message.
+ If studying succeeds (even if no data is returned), the variable it
+ points to is set to NULL. Otherwise it points to a textual error mes-
+ sage. You should therefore test the error pointer for NULL after call-
ing pcre_study(), to be sure that it has run successfully.
This is a typical call to pcre_study():
@@ -735,40 +808,53 @@ STUDYING A PATTERN
&error); /* set to NULL or points to a message */
At present, studying a pattern is useful only for non-anchored patterns
- that do not have a single fixed starting character. A bitmap of possi-
- ble starting characters is created.
+ that do not have a single fixed starting character. A bitmap of possi-
+ ble starting bytes is created.
LOCALE SUPPORT
- PCRE handles caseless matching, and determines whether characters are
- letters, digits, or whatever, by reference to a set of tables. When
- running in UTF-8 mode, this applies only to characters with codes less
- than 256. The library contains a default set of tables that is created
- in the default C locale when PCRE is compiled. This is used when the
- final argument of pcre_compile() is NULL, and is sufficient for many
- applications.
-
- An alternative set of tables can, however, be supplied. Such tables are
- built by calling the pcre_maketables() function, which has no argu-
- ments, in the relevant locale. The result can then be passed to
- pcre_compile() as often as necessary. For example, to build and use
- tables that are appropriate for the French locale (where accented char-
- acters with codes greater than 128 are treated as letters), the follow-
- ing code could be used:
-
- setlocale(LC_CTYPE, "fr");
+ PCRE handles caseless matching, and determines whether characters are
+ letters, digits, or whatever, by reference to a set of tables, indexed
+ by character value. (When running in UTF-8 mode, this applies only to
+ characters with codes less than 128. Higher-valued codes never match
+ escapes such as \w or \d, but can be tested with \p if PCRE is built
+ with Unicode character property support.)
+
+ An internal set of tables is created in the default C locale when PCRE
+ is built. This is used when the final argument of pcre_compile() is
+ NULL, and is sufficient for many applications. An alternative set of
+ tables can, however, be supplied. These may be created in a different
+ locale from the default. As more and more applications change to using
+ Unicode, the need for this locale support is expected to die away.
+
+ External tables are built by calling the pcre_maketables() function,
+ which has no arguments, in the relevant locale. The result can then be
+ passed to pcre_compile() or pcre_exec() as often as necessary. For
+ example, to build and use tables that are appropriate for the French
+ locale (where accented characters with values greater than 128 are
+ treated as letters), the following code could be used:
+
+ setlocale(LC_CTYPE, "fr_FR");
tables = pcre_maketables();
re = pcre_compile(..., tables);
- The tables are built in memory that is obtained via pcre_malloc. The
- pointer that is passed to pcre_compile is saved with the compiled pat-
- tern, and the same tables are used via this pointer by pcre_study() and
- pcre_exec(). Thus, for any single pattern, compilation, studying and
- matching all happen in the same locale, but different patterns can be
- compiled in different locales. It is the caller's responsibility to
- ensure that the memory containing the tables remains available for as
- long as it is needed.
+ When pcre_maketables() runs, the tables are built in memory that is
+ obtained via pcre_malloc. It is the caller's responsibility to ensure
+ that the memory containing the tables remains available for as long as
+ it is needed.
+
+ The pointer that is passed to pcre_compile() is saved with the compiled
+ pattern, and the same tables are used via this pointer by pcre_study()
+ and normally also by pcre_exec(). Thus, by default, for any single pat-
+ tern, compilation, studying and matching all happen in the same locale,
+ but different patterns can be compiled in different locales.
+
+ It is possible to pass a table pointer or NULL (indicating the use of
+ the internal tables) to pcre_exec(). Although not intended for this
+ purpose, this facility could be used to match a pattern in a different
+ locale from the one in which it was compiled. Passing table pointers at
+ run time is discussed below in the section on matching a pattern.
INFORMATION ABOUT A PATTERN
@@ -792,8 +878,10 @@ INFORMATION ABOUT A PATTERN
PCRE_ERROR_BADMAGIC the "magic number" was not found
PCRE_ERROR_BADOPTION the value of what was invalid
- Here is a typical call of pcre_fullinfo(), to obtain the length of the
- compiled pattern:
+ The "magic number" is placed at the start of each compiled pattern as
+ an simple check against passing an arbitrary memory pointer. Here is a
+ typical call of pcre_fullinfo(), to obtain the length of the compiled
+ pattern:
int rc;
unsigned long int length;
@@ -817,6 +905,14 @@ INFORMATION ABOUT A PATTERN
Return the number of capturing subpatterns in the pattern. The fourth
argument should point to an int variable.
+ PCRE_INFO_DEFAULTTABLES
+
+ Return a pointer to the internal default character tables within PCRE.
+ The fourth argument should point to an unsigned char * variable. This
+ information call is provided for internal use by the pcre_study() func-
+ tion. External callers can cause PCRE to use its internal tables by
+ passing a NULL table pointer.
+
PCRE_INFO_FIRSTBYTE
Return information about the first byte of any matched string, for a
@@ -824,7 +920,7 @@ INFORMATION ABOUT A PATTERN
PCRE_INFO_FIRSTCHAR; the old name is still recognized for backwards
compatibility.)
- If there is a fixed first byte, e.g. from a pattern such as
+ If there is a fixed first byte, for example, from a pattern such as
(cat|cow|coyote), it is returned in the integer pointed to by where.
Otherwise, if either
@@ -862,11 +958,13 @@ INFORMATION ABOUT A PATTERN
PCRE supports the use of named as well as numbered capturing parenthe-
ses. The names are just an additional way of identifying the parenthe-
- ses, which still acquire a number. A caller that wants to extract data
- from a named subpattern must convert the name to a number in order to
- access the correct pointers in the output vector (described with
- pcre_exec() below). In order to do this, it must first use these three
- values to obtain the name-to-number mapping table for the pattern.
+ ses, which still acquire numbers. A convenience function called
+ pcre_get_named_substring() is provided for extracting an individual
+ captured substring by name. It is also possible to extract the data
+ directly, by first converting the name to a number in order to access
+ the correct pointers in the output vector (described with pcre_exec()
+ below). To do the conversion, you need to use the name-to-number map,
+ which is described by these three values.
The map consists of a number of fixed-size entries. PCRE_INFO_NAMECOUNT
gives the number of entries, and PCRE_INFO_NAMEENTRYSIZE gives the size
@@ -884,15 +982,17 @@ INFORMATION ABOUT A PATTERN
There are four named subpatterns, so the table has four entries, and
each entry in the table is eight bytes long. The table is as follows,
- with non-printing bytes shows in hex, and undefined bytes shown as ??:
+ with non-printing bytes shows in hexadecimal, and undefined bytes shown
+ as ??:
00 01 d a t e 00 ??
00 05 d a y 00 ?? ??
00 04 m o n t h 00
00 02 y e a r 00 ??
- When writing code to extract data from named subpatterns, remember that
- the length of each entry may be different for each compiled pattern.
+ When writing code to extract data from named subpatterns using the
+ name-to-number map, remember that the length of each entry is likely to
+ be different for each compiled pattern.
PCRE_INFO_OPTIONS
@@ -922,8 +1022,8 @@ INFORMATION ABOUT A PATTERN
PCRE_INFO_STUDYSIZE
- Returns the size of the data block pointed to by the study_data field
- in a pcre_extra block. That is, it is the value that was passed to
+ Return the size of the data block pointed to by the study_data field in
+ a pcre_extra block. That is, it is the value that was passed to
pcre_malloc() when PCRE was getting memory into which to place the data
created by pcre_study(). The fourth argument should point to a size_t
variable.
@@ -958,9 +1058,15 @@ MATCHING A PATTERN
int options, int *ovector, int ovecsize);
The function pcre_exec() is called to match a subject string against a
- pre-compiled pattern, which is passed in the code argument. If the pat-
- tern has been studied, the result of the study should be passed in the
- extra argument.
+ compiled pattern, which is passed in the code argument. If the pattern
+ has been studied, the result of the study should be passed in the extra
+ argument.
+
+ In most applications, the pattern will have been compiled (and option-
+ ally studied) in the same process that calls pcre_exec(). However, it
+ is possible to save compiled patterns and study data, and then use them
+ later in different processes, possibly even on different hosts. For a
+ discussion about this, see the pcreprecompile documentation.
Here is an example of a simple call to pcre_exec():
@@ -973,18 +1079,23 @@ MATCHING A PATTERN
11, /* the length of the subject string */
0, /* start at offset 0 in the subject */
0, /* default options */
- ovector, /* vector for substring information */
- 30); /* number of elements in the vector */
+ ovector, /* vector of integers for substring information */
+ 30); /* number of elements in the vector (NOT size in
+ bytes) */
+
+ Extra data for pcre_exec()
- If the extra argument is not NULL, it must point to a pcre_extra data
- block. The pcre_study() function returns such a block (when it doesn't
- return NULL), but you can also create one for yourself, and pass addi-
- tional information in it. The fields in the block are as follows:
+ If the extra argument is not NULL, it must point to a pcre_extra data
+ block. The pcre_study() function returns such a block (when it doesn't
+ return NULL), but you can also create one for yourself, and pass addi-
+ tional information in it. The fields in a pcre_extra block are as fol-
+ lows:
unsigned long int flags;
void *study_data;
unsigned long int match_limit;
void *callout_data;
+ const unsigned char *tables;
The flags field is a bitmap that specifies which of the other fields
are set. The flag bits are:
@@ -992,153 +1103,190 @@ MATCHING A PATTERN
PCRE_EXTRA_STUDY_DATA
PCRE_EXTRA_MATCH_LIMIT
PCRE_EXTRA_CALLOUT_DATA
+ PCRE_EXTRA_TABLES
Other flag bits should be set to zero. The study_data field is set in
the pcre_extra block that is returned by pcre_study(), together with
- the appropriate flag bit. You should not set this yourself, but you can
- add to the block by setting the other fields.
+ the appropriate flag bit. You should not set this yourself, but you may
+ add to the block by setting the other fields and their corresponding
+ flag bits.
The match_limit field provides a means of preventing PCRE from using up
- a vast amount of resources when running patterns that are not going to
- match, but which have a very large number of possibilities in their
- search trees. The classic example is the use of nested unlimited
- repeats. Internally, PCRE uses a function called match() which it calls
- repeatedly (sometimes recursively). The limit is imposed on the number
- of times this function is called during a match, which has the effect
- of limiting the amount of recursion and backtracking that can take
- place. For patterns that are not anchored, the count starts from zero
- for each position in the subject string.
-
- The default limit for the library can be set when PCRE is built; the
- default default is 10 million, which handles all but the most extreme
- cases. You can reduce the default by suppling pcre_exec() with a
- pcre_extra block in which match_limit is set to a smaller value, and
- PCRE_EXTRA_MATCH_LIMIT is set in the flags field. If the limit is
+ a vast amount of resources when running patterns that are not going to
+ match, but which have a very large number of possibilities in their
+ search trees. The classic example is the use of nested unlimited
+ repeats.
+
+ Internally, PCRE uses a function called match() which it calls repeat-
+ edly (sometimes recursively). The limit is imposed on the number of
+ times this function is called during a match, which has the effect of
+ limiting the amount of recursion and backtracking that can take place.
+ For patterns that are not anchored, the count starts from zero for each
+ position in the subject string.
+
+ The default limit for the library can be set when PCRE is built; the
+ default default is 10 million, which handles all but the most extreme
+ cases. You can reduce the default by suppling pcre_exec() with a
+ pcre_extra block in which match_limit is set to a smaller value, and
+ PCRE_EXTRA_MATCH_LIMIT is set in the flags field. If the limit is
exceeded, pcre_exec() returns PCRE_ERROR_MATCHLIMIT.
- The pcre_callout field is used in conjunction with the "callout" fea-
+ The pcre_callout field is used in conjunction with the "callout" fea-
ture, which is described in the pcrecallout documentation.
- The PCRE_ANCHORED option can be passed in the options argument, whose
- unused bits must be zero. This limits pcre_exec() to matching at the
- first matching position. However, if a pattern was compiled with
- PCRE_ANCHORED, or turned out to be anchored by virtue of its contents,
- it cannot be made unachored at matching time.
+ The tables field is used to pass a character tables pointer to
+ pcre_exec(); this overrides the value that is stored with the compiled
+ pattern. A non-NULL value is stored with the compiled pattern only if
+ custom tables were supplied to pcre_compile() via its tableptr argu-
+ ment. If NULL is passed to pcre_exec() using this mechanism, it forces
+ PCRE's internal tables to be used. This facility is helpful when re-
+ using patterns that have been saved after compiling with an external
+ set of tables, because the external tables might be at a different
+ address when pcre_exec() is called. See the pcreprecompile documenta-
+ tion for a discussion of saving compiled patterns for later use.
- When PCRE_UTF8 was set at compile time, the validity of the subject as
- a UTF-8 string is automatically checked, and the value of startoffset
- is also checked to ensure that it points to the start of a UTF-8 char-
- acter. If an invalid UTF-8 sequence of bytes is found, pcre_exec()
- returns the error PCRE_ERROR_BADUTF8. If startoffset contains an
- invalid value, PCRE_ERROR_BADUTF8_OFFSET is returned.
+ Option bits for pcre_exec()
- If you already know that your subject is valid, and you want to skip
- these checks for performance reasons, you can set the
- PCRE_NO_UTF8_CHECK option when calling pcre_exec(). You might want to
- do this for the second and subsequent calls to pcre_exec() if you are
- making repeated calls to find all the matches in a single subject
- string. However, you should be sure that the value of startoffset
- points to the start of a UTF-8 character. When PCRE_NO_UTF8_CHECK is
- set, the effect of passing an invalid UTF-8 string as a subject, or a
- value of startoffset that does not point to the start of a UTF-8 char-
- acter, is undefined. Your program may crash.
+ The unused bits of the options argument for pcre_exec() must be zero.
+ The only bits that may be set are PCRE_ANCHORED, PCRE_NOTBOL,
+ PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NO_UTF8_CHECK and PCRE_PARTIAL.
+
+ PCRE_ANCHORED
- There are also three further options that can be set only at matching
- time:
+ The PCRE_ANCHORED option limits pcre_exec() to matching at the first
+ matching position. If a pattern was compiled with PCRE_ANCHORED, or
+ turned out to be anchored by virtue of its contents, it cannot be made
+ unachored at matching time.
PCRE_NOTBOL
- The first character of the string is not the beginning of a line, so
- the circumflex metacharacter should not match before it. Setting this
- without PCRE_MULTILINE (at compile time) causes circumflex never to
- match.
+ This option specifies that first character of the subject string is not
+ the beginning of a line, so the circumflex metacharacter should not
+ match before it. Setting this without PCRE_MULTILINE (at compile time)
+ causes circumflex never to match. This option affects only the
+ behaviour of the circumflex metacharacter. It does not affect \A.
PCRE_NOTEOL
- The end of the string is not the end of a line, so the dollar metachar-
- acter should not match it nor (except in multiline mode) a newline
- immediately before it. Setting this without PCRE_MULTILINE (at compile
- time) causes dollar never to match.
+ This option specifies that the end of the subject string is not the end
+ of a line, so the dollar metacharacter should not match it nor (except
+ in multiline mode) a newline immediately before it. Setting this with-
+ out PCRE_MULTILINE (at compile time) causes dollar never to match. This
+ option affects only the behaviour of the dollar metacharacter. It does
+ not affect \Z or \z.
PCRE_NOTEMPTY
An empty string is not considered to be a valid match if this option is
- set. If there are alternatives in the pattern, they are tried. If all
- the alternatives match the empty string, the entire match fails. For
+ set. If there are alternatives in the pattern, they are tried. If all
+ the alternatives match the empty string, the entire match fails. For
example, if the pattern
a?b?
- is applied to a string not beginning with "a" or "b", it matches the
- empty string at the start of the subject. With PCRE_NOTEMPTY set, this
+ is applied to a string not beginning with "a" or "b", it matches the
+ empty string at the start of the subject. With PCRE_NOTEMPTY set, this
match is not valid, so PCRE searches further into the string for occur-
rences of "a" or "b".
Perl has no direct equivalent of PCRE_NOTEMPTY, but it does make a spe-
- cial case of a pattern match of the empty string within its split()
- function, and when using the /g modifier. It is possible to emulate
+ cial case of a pattern match of the empty string within its split()
+ function, and when using the /g modifier. It is possible to emulate
Perl's behaviour after matching a null string by first trying the match
- again at the same offset with PCRE_NOTEMPTY set, and then if that fails
- by advancing the starting offset (see below) and trying an ordinary
- match again.
+ again at the same offset with PCRE_NOTEMPTY and PCRE_ANCHORED, and then
+ if that fails by advancing the starting offset (see below) and trying
+ an ordinary match again. There is some code that demonstrates how to do
+ this in the pcredemo.c sample program.
+
+ PCRE_NO_UTF8_CHECK
+
+ When PCRE_UTF8 is set at compile time, the validity of the subject as a
+ UTF-8 string is automatically checked when pcre_exec() is subsequently
+ called. The value of startoffset is also checked to ensure that it
+ points to the start of a UTF-8 character. If an invalid UTF-8 sequence
+ of bytes is found, pcre_exec() returns the error PCRE_ERROR_BADUTF8. If
+ startoffset contains an invalid value, PCRE_ERROR_BADUTF8_OFFSET is
+ returned.
+
+ If you already know that your subject is valid, and you want to skip
+ these checks for performance reasons, you can set the
+ PCRE_NO_UTF8_CHECK option when calling pcre_exec(). You might want to
+ do this for the second and subsequent calls to pcre_exec() if you are
+ making repeated calls to find all the matches in a single subject
+ string. However, you should be sure that the value of startoffset
+ points to the start of a UTF-8 character. When PCRE_NO_UTF8_CHECK is
+ set, the effect of passing an invalid UTF-8 string as a subject, or a
+ value of startoffset that does not point to the start of a UTF-8 char-
+ acter, is undefined. Your program may crash.
+
+ PCRE_PARTIAL
+
+ This option turns on the partial matching feature. If the subject
+ string fails to match the pattern, but at some point during the match-
+ ing process the end of the subject was reached (that is, the subject
+ partially matches the pattern and the failure to match occurred only
+ because there were not enough subject characters), pcre_exec() returns
+ PCRE_ERROR_PARTIAL instead of PCRE_ERROR_NOMATCH. When PCRE_PARTIAL is
+ used, there are restrictions on what may appear in the pattern. These
+ are discussed in the pcrepartial documentation.
+
+ The string to be matched by pcre_exec()
The subject string is passed to pcre_exec() as a pointer in subject, a
- length in length, and a starting byte offset in startoffset. Unlike the
- pattern string, the subject may contain binary zero bytes. When the
- starting offset is zero, the search for a match starts at the beginning
- of the subject, and this is by far the most common case.
-
- If the pattern was compiled with the PCRE_UTF8 option, the subject must
- be a sequence of bytes that is a valid UTF-8 string, and the starting
- offset must point to the beginning of a UTF-8 character. If an invalid
- UTF-8 string or offset is passed, an error (either PCRE_ERROR_BADUTF8
- or PCRE_ERROR_BADUTF8_OFFSET) is returned, unless the option
- PCRE_NO_UTF8_CHECK is set, in which case PCRE's behaviour is not
- defined.
-
- A non-zero starting offset is useful when searching for another match
- in the same subject by calling pcre_exec() again after a previous suc-
- cess. Setting startoffset differs from just passing over a shortened
- string and setting PCRE_NOTBOL in the case of a pattern that begins
+ length in length, and a starting byte offset in startoffset. In UTF-8
+ mode, the byte offset must point to the start of a UTF-8 character.
+ Unlike the pattern string, the subject may contain binary zero bytes.
+ When the starting offset is zero, the search for a match starts at the
+ beginning of the subject, and this is by far the most common case.
+
+ A non-zero starting offset is useful when searching for another match
+ in the same subject by calling pcre_exec() again after a previous suc-
+ cess. Setting startoffset differs from just passing over a shortened
+ string and setting PCRE_NOTBOL in the case of a pattern that begins
with any kind of lookbehind. For example, consider the pattern
\Biss\B
- which finds occurrences of "iss" in the middle of words. (\B matches
- only if the current position in the subject is not a word boundary.)
- When applied to the string "Mississipi" the first call to pcre_exec()
- finds the first occurrence. If pcre_exec() is called again with just
- the remainder of the subject, namely "issipi", it does not match,
+ which finds occurrences of "iss" in the middle of words. (\B matches
+ only if the current position in the subject is not a word boundary.)
+ When applied to the string "Mississipi" the first call to pcre_exec()
+ finds the first occurrence. If pcre_exec() is called again with just
+ the remainder of the subject, namely "issipi", it does not match,
because \B is always false at the start of the subject, which is deemed
- to be a word boundary. However, if pcre_exec() is passed the entire
- string again, but with startoffset set to 4, it finds the second
- occurrence of "iss" because it is able to look behind the starting
- point to discover that it is preceded by a letter.
-
- If a non-zero starting offset is passed when the pattern is anchored,
- one attempt to match at the given offset is tried. This can only suc-
- ceed if the pattern does not require the match to be at the start of
- the subject.
+ to be a word boundary. However, if pcre_exec() is passed the entire
+ string again, but with startoffset set to 4, it finds the second occur-
+ rence of "iss" because it is able to look behind the starting point to
+ discover that it is preceded by a letter.
+
+ If a non-zero starting offset is passed when the pattern is anchored,
+ one attempt to match at the given offset is made. This can only succeed
+ if the pattern does not require the match to be at the start of the
+ subject.
+
+ How pcre_exec() returns captured substrings
- In general, a pattern matches a certain portion of the subject, and in
- addition, further substrings from the subject may be picked out by
- parts of the pattern. Following the usage in Jeffrey Friedl's book,
- this is called "capturing" in what follows, and the phrase "capturing
- subpattern" is used for a fragment of a pattern that picks out a sub-
- string. PCRE supports several other kinds of parenthesized subpattern
+ In general, a pattern matches a certain portion of the subject, and in
+ addition, further substrings from the subject may be picked out by
+ parts of the pattern. Following the usage in Jeffrey Friedl's book,
+ this is called "capturing" in what follows, and the phrase "capturing
+ subpattern" is used for a fragment of a pattern that picks out a sub-
+ string. PCRE supports several other kinds of parenthesized subpattern
that do not cause substrings to be captured.
- Captured substrings are returned to the caller via a vector of integer
- offsets whose address is passed in ovector. The number of elements in
- the vector is passed in ovecsize. The first two-thirds of the vector is
- used to pass back captured substrings, each substring using a pair of
- integers. The remaining third of the vector is used as workspace by
- pcre_exec() while matching capturing subpatterns, and is not available
- for passing back information. The length passed in ovecsize should
- always be a multiple of three. If it is not, it is rounded down.
-
- When a match has been successful, information about captured substrings
- is returned in pairs of integers, starting at the beginning of ovector,
+ Captured substrings are returned to the caller via a vector of integer
+ offsets whose address is passed in ovector. The number of elements in
+ the vector is passed in ovecsize, which must be a non-negative number.
+ Note: this argument is NOT the size of ovector in bytes.
+
+ The first two-thirds of the vector is used to pass back captured sub-
+ strings, each substring using a pair of integers. The remaining third
+ of the vector is used as workspace by pcre_exec() while matching cap-
+ turing subpatterns, and is not available for passing back information.
+ The length passed in ovecsize should always be a multiple of three. If
+ it is not, it is rounded down.
+
+ When a match is successful, information about captured substrings is
+ returned in pairs of integers, starting at the beginning of ovector,
and continuing up to two-thirds of its length at the most. The first
element of a pair is set to the offset of the first character in a sub-
string, and the second is set to the offset of the first character
@@ -1161,15 +1309,15 @@ MATCHING A PATTERN
offset values corresponding to the unused subpattern are set to -1.
If a capturing subpattern is matched repeatedly, it is the last portion
- of the string that it matched that gets returned.
-
- If the vector is too small to hold all the captured substrings, it is
- used as far as possible (up to two-thirds of its length), and the func-
- tion returns a value of zero. In particular, if the substring offsets
- are not of interest, pcre_exec() may be called with ovector passed as
- NULL and ovecsize as zero. However, if the pattern contains back refer-
- ences and the ovector isn't big enough to remember the related sub-
- strings, PCRE has to get additional memory for use during matching.
+ of the string that it matched that is returned.
+
+ If the vector is too small to hold all the captured substring offsets,
+ it is used as far as possible (up to two-thirds of its length), and the
+ function returns a value of zero. In particular, if the substring off-
+ sets are not of interest, pcre_exec() may be called with ovector passed
+ as NULL and ovecsize as zero. However, if the pattern contains back
+ references and the ovector is not big enough to remember the related
+ substrings, PCRE has to get additional memory for use during matching.
Thus it is usually advisable to supply an ovector.
Note that pcre_info() can be used to find out how many capturing sub-
@@ -1177,6 +1325,8 @@ MATCHING A PATTERN
that will allow for n captured substrings, in addition to the offsets
of the substring matched by the whole pattern, is (n+1)*3.
+ Return values from pcre_exec()
+
If pcre_exec() fails, it returns a negative number. The following are
defined in the header file:
@@ -1196,8 +1346,10 @@ MATCHING A PATTERN
PCRE_ERROR_BADMAGIC (-4)
PCRE stores a 4-byte "magic number" at the start of the compiled code,
- to catch the case when it is passed a junk pointer. This is the error
- it gives when the magic number isn't present.
+ to catch the case when it is passed a junk pointer and to detect when a
+ pattern that was compiled in an environment of one endianness is run in
+ an environment with the other endianness. This is the error that PCRE
+ gives when the magic number is not present.
PCRE_ERROR_UNKNOWN_NODE (-5)
@@ -1211,7 +1363,7 @@ MATCHING A PATTERN
to pcre_exec() is not big enough to remember the referenced substrings,
PCRE gets a block of memory at the start of matching to use for this
purpose. If the call via pcre_malloc() fails, this error is given. The
- memory is freed at the end of matching.
+ memory is automatically freed at the end of matching.
PCRE_ERROR_NOSUBSTRING (-7)
@@ -1242,6 +1394,26 @@ MATCHING A PATTERN
value of startoffset did not point to the beginning of a UTF-8 charac-
ter.
+ PCRE_ERROR_PARTIAL (-12)
+
+ The subject string did not match, but it did match partially. See the
+ pcrepartial documentation for details of partial matching.
+
+ PCRE_ERROR_BAD_PARTIAL (-13)
+
+ The PCRE_PARTIAL option was used with a compiled pattern containing
+ items that are not supported for partial matching. See the pcrepartial
+ documentation for details of partial matching.
+
+ PCRE_ERROR_INTERNAL (-14)
+
+ An unexpected internal error has occurred. This error could be caused
+ by a bug in PCRE or by overwriting of the compiled pattern.
+
+ PCRE_ERROR_BADCOUNT (-15)
+
+ This error is given if the value of the ovecsize argument is negative.
+
EXTRACTING CAPTURED SUBSTRINGS BY NUMBER
@@ -1256,117 +1428,121 @@ EXTRACTING CAPTURED SUBSTRINGS BY NUMBER
int pcre_get_substring_list(const char *subject,
int *ovector, int stringcount, const char ***listptr);
- Captured substrings can be accessed directly by using the offsets
- returned by pcre_exec() in ovector. For convenience, the functions
+ Captured substrings can be accessed directly by using the offsets
+ returned by pcre_exec() in ovector. For convenience, the functions
pcre_copy_substring(), pcre_get_substring(), and pcre_get_sub-
- string_list() are provided for extracting captured substrings as new,
- separate, zero-terminated strings. These functions identify substrings
- by number. The next section describes functions for extracting named
- substrings. A substring that contains a binary zero is correctly
- extracted and has a further zero added on the end, but the result is
+ string_list() are provided for extracting captured substrings as new,
+ separate, zero-terminated strings. These functions identify substrings
+ by number. The next section describes functions for extracting named
+ substrings. A substring that contains a binary zero is correctly
+ extracted and has a further zero added on the end, but the result is
not, of course, a C string.
- The first three arguments are the same for all three of these func-
- tions: subject is the subject string which has just been successfully
+ The first three arguments are the same for all three of these func-
+ tions: subject is the subject string that has just been successfully
matched, ovector is a pointer to the vector of integer offsets that was
passed to pcre_exec(), and stringcount is the number of substrings that
- were captured by the match, including the substring that matched the
- entire regular expression. This is the value returned by pcre_exec if
- it is greater than zero. If pcre_exec() returned zero, indicating that
- it ran out of space in ovector, the value passed as stringcount should
- be the size of the vector divided by three.
-
- The functions pcre_copy_substring() and pcre_get_substring() extract a
- single substring, whose number is given as stringnumber. A value of
- zero extracts the substring that matched the entire pattern, while
- higher values extract the captured substrings. For pcre_copy_sub-
- string(), the string is placed in buffer, whose length is given by
- buffersize, while for pcre_get_substring() a new block of memory is
- obtained via pcre_malloc, and its address is returned via stringptr.
- The yield of the function is the length of the string, not including
+ were captured by the match, including the substring that matched the
+ entire regular expression. This is the value returned by pcre_exec() if
+ it is greater than zero. If pcre_exec() returned zero, indicating that
+ it ran out of space in ovector, the value passed as stringcount should
+ be the number of elements in the vector divided by three.
+
+ The functions pcre_copy_substring() and pcre_get_substring() extract a
+ single substring, whose number is given as stringnumber. A value of
+ zero extracts the substring that matched the entire pattern, whereas
+ higher values extract the captured substrings. For pcre_copy_sub-
+ string(), the string is placed in buffer, whose length is given by
+ buffersize, while for pcre_get_substring() a new block of memory is
+ obtained via pcre_malloc, and its address is returned via stringptr.
+ The yield of the function is the length of the string, not including
the terminating zero, or one of
PCRE_ERROR_NOMEMORY (-6)
- The buffer was too small for pcre_copy_substring(), or the attempt to
+ The buffer was too small for pcre_copy_substring(), or the attempt to
get memory failed for pcre_get_substring().
PCRE_ERROR_NOSUBSTRING (-7)
There is no substring whose number is stringnumber.
- The pcre_get_substring_list() function extracts all available sub-
- strings and builds a list of pointers to them. All this is done in a
- single block of memory which is obtained via pcre_malloc. The address
- of the memory block is returned via listptr, which is also the start of
- the list of string pointers. The end of the list is marked by a NULL
+ The pcre_get_substring_list() function extracts all available sub-
+ strings and builds a list of pointers to them. All this is done in a
+ single block of memory that is obtained via pcre_malloc. The address of
+ the memory block is returned via listptr, which is also the start of
+ the list of string pointers. The end of the list is marked by a NULL
pointer. The yield of the function is zero if all went well, or
PCRE_ERROR_NOMEMORY (-6)
if the attempt to get the memory block failed.
- When any of these functions encounter a substring that is unset, which
- can happen when capturing subpattern number n+1 matches some part of
- the subject, but subpattern n has not been used at all, they return an
+ When any of these functions encounter a substring that is unset, which
+ can happen when capturing subpattern number n+1 matches some part of
+ the subject, but subpattern n has not been used at all, they return an
empty string. This can be distinguished from a genuine zero-length sub-
- string by inspecting the appropriate offset in ovector, which is nega-
+ string by inspecting the appropriate offset in ovector, which is nega-
tive for unset substrings.
- The two convenience functions pcre_free_substring() and
- pcre_free_substring_list() can be used to free the memory returned by a
- previous call of pcre_get_substring() or pcre_get_substring_list(),
- respectively. They do nothing more than call the function pointed to by
- pcre_free, which of course could be called directly from a C program.
- However, PCRE is used in some situations where it is linked via a spe-
+ The two convenience functions pcre_free_substring() and pcre_free_sub-
+ string_list() can be used to free the memory returned by a previous
+ call of pcre_get_substring() or pcre_get_substring_list(), respec-
+ tively. They do nothing more than call the function pointed to by
+ pcre_free, which of course could be called directly from a C program.
+ However, PCRE is used in some situations where it is linked via a spe-
cial interface to another programming language which cannot use
- pcre_free directly; it is for these cases that the functions are pro-
- vided.
+ pcre_free directly; it is for these cases that the functions are
+ provided.
EXTRACTING CAPTURED SUBSTRINGS BY NAME
+ int pcre_get_stringnumber(const pcre *code,
+ const char *name);
+
int pcre_copy_named_substring(const pcre *code,
const char *subject, int *ovector,
int stringcount, const char *stringname,
char *buffer, int buffersize);
- int pcre_get_stringnumber(const pcre *code,
- const char *name);
-
int pcre_get_named_substring(const pcre *code,
const char *subject, int *ovector,
int stringcount, const char *stringname,
const char **stringptr);
- To extract a substring by name, you first have to find associated num-
- ber. This can be done by calling pcre_get_stringnumber(). The first
- argument is the compiled pattern, and the second is the name. For exam-
- ple, for this pattern
+ To extract a substring by name, you first have to find associated num-
+ ber. For example, for this pattern
+
+ (a+)b(?<xxx>\d+)...
- ab(?<xxx>\d+)...
+ the number of the subpattern called "xxx" is 2. You can find the number
+ from the name by calling pcre_get_stringnumber(). The first argument is
+ the compiled pattern, and the second is the name. The yield of the
+ function is the subpattern number, or PCRE_ERROR_NOSUBSTRING (-7) if
+ there is no subpattern of that name.
- the number of the subpattern called "xxx" is 1. Given the number, you
- can then extract the substring directly, or use one of the functions
- described in the previous section. For convenience, there are also two
- functions that do the whole job.
+ Given the number, you can extract the substring directly, or use one of
+ the functions described in the previous section. For convenience, there
+ are also two functions that do the whole job.
Most of the arguments of pcre_copy_named_substring() and
- pcre_get_named_substring() are the same as those for the functions that
- extract by number, and so are not re-described here. There are just two
- differences.
+ pcre_get_named_substring() are the same as those for the similarly
+ named functions that extract by number. As these are described in the
+ previous section, they are not re-described here. There are just two
+ differences:
- First, instead of a substring number, a substring name is given. Sec-
+ First, instead of a substring number, a substring name is given. Sec-
ond, there is an extra argument, given at the start, which is a pointer
- to the compiled pattern. This is needed in order to gain access to the
+ to the compiled pattern. This is needed in order to gain access to the
name-to-number translation table.
- These functions call pcre_get_stringnumber(), and if it succeeds, they
- then call pcre_copy_substring() or pcre_get_substring(), as appropri-
+ These functions call pcre_get_stringnumber(), and if it succeeds, they
+ then call pcre_copy_substring() or pcre_get_substring(), as appropri-
ate.
-Last updated: 09 December 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -1392,11 +1568,47 @@ PCRE CALLOUTS
default value is zero. For example, this pattern has two callout
points:
- (?C1)abc(?C2)def
+ (?C1)eabc(?C2)def
- During matching, when PCRE reaches a callout point (and pcre_callout is
- set), the external function is called. Its only argument is a pointer
- to a pcre_callout block. This contains the following variables:
+ If the PCRE_AUTO_CALLOUT option bit is set when pcre_compile() is
+ called, PCRE automatically inserts callouts, all with number 255,
+ before each item in the pattern. For example, if PCRE_AUTO_CALLOUT is
+ used with the pattern
+
+ A(\d{2}|--)
+
+ it is processed as if it were
+
+ (?C255)A(?C255)((?C255)\d{2}(?C255)|(?C255)-(?C255)-(?C255))(?C255)
+
+ Notice that there is a callout before and after each parenthesis and
+ alternation bar. Automatic callouts can be used for tracking the
+ progress of pattern matching. The pcretest command has an option that
+ sets automatic callouts; when it is used, the output indicates how the
+ pattern is matched. This is useful information when you are trying to
+ optimize the performance of a particular pattern.
+
+
+MISSING CALLOUTS
+
+ You should be aware that, because of optimizations in the way PCRE
+ matches patterns, callouts sometimes do not happen. For example, if the
+ pattern is
+
+ ab(?C4)cd
+
+ PCRE knows that any matching string must contain the letter "d". If the
+ subject string is "abyz", the lack of "d" means that matching doesn't
+ ever start, and the callout is never reached. However, with "abyd",
+ though the result is still no match, the callout is obeyed.
+
+
+THE CALLOUT INTERFACE
+
+ During matching, when PCRE reaches a callout point, the external func-
+ tion defined by pcre_callout is called (if it is set). The only argu-
+ ment is a pointer to a pcre_callout block. This structure contains the
+ following fields:
int version;
int callout_number;
@@ -1408,55 +1620,72 @@ PCRE CALLOUTS
int capture_top;
int capture_last;
void *callout_data;
+ int pattern_position;
+ int next_item_length;
The version field is an integer containing the version number of the
- block format. The current version is zero. The version number may
- change in future if additional fields are added, but the intention is
- never to remove any of the existing fields.
+ block format. The initial version was 0; the current version is 1. The
+ version number will change again in future if additional fields are
+ added, but the intention is never to remove any of the existing fields.
- The callout_number field contains the number of the callout, as com-
- piled into the pattern (that is, the number after ?C).
+ The callout_number field contains the number of the callout, as com-
+ piled into the pattern (that is, the number after ?C for manual call-
+ outs, and 255 for automatically generated callouts).
The offset_vector field is a pointer to the vector of offsets that was
passed by the caller to pcre_exec(). The contents can be inspected in
order to extract substrings that have been matched so far, in the same
way as for extracting substrings after a match has completed.
- The subject and subject_length fields contain copies the values that
+ The subject and subject_length fields contain copies of the values that
were passed to pcre_exec().
The start_match field contains the offset within the subject at which
the current match attempt started. If the pattern is not anchored, the
- callout function may be called several times for different starting
- points.
+ callout function may be called several times from the same point in the
+ pattern for different starting points in the subject.
The current_position field contains the offset within the subject of
the current match pointer.
The capture_top field contains one more than the number of the highest
- numbered captured substring so far. If no substrings have been
- captured, the value of capture_top is one.
+ numbered captured substring so far. If no substrings have been cap-
+ tured, the value of capture_top is one.
The capture_last field contains the number of the most recently cap-
- tured substring.
+ tured substring. If no substrings have been captured, its value is -1.
- The callout_data field contains a value that is passed to pcre_exec()
- by the caller specifically so that it can be passed back in callouts.
- It is passed in the pcre_callout field of the pcre_extra data struc-
- ture. If no such data was passed, the value of callout_data in a
- pcre_callout block is NULL. There is a description of the pcre_extra
+ The callout_data field contains a value that is passed to pcre_exec()
+ by the caller specifically so that it can be passed back in callouts.
+ It is passed in the pcre_callout field of the pcre_extra data struc-
+ ture. If no such data was passed, the value of callout_data in a
+ pcre_callout block is NULL. There is a description of the pcre_extra
structure in the pcreapi documentation.
+ The pattern_position field is present from version 1 of the pcre_call-
+ out structure. It contains the offset to the next item to be matched in
+ the pattern string.
+
+ The next_item_length field is present from version 1 of the pcre_call-
+ out structure. It contains the length of the next item to be matched in
+ the pattern string. When the callout immediately precedes an alterna-
+ tion bar, a closing parenthesis, or the end of the pattern, the length
+ is zero. When the callout precedes an opening parenthesis, the length
+ is that of the entire subpattern.
+
+ The pattern_position and next_item_length fields are intended to help
+ in distinguishing between different automatic callouts, which all have
+ the same callout number. However, they are set for all callouts.
RETURN VALUES
- The callout function returns an integer. If the value is zero, matching
- proceeds as normal. If the value is greater than zero, matching fails
- at the current point, but backtracking to test other possibilities goes
- ahead, just as if a lookahead assertion had failed. If the value is
- less than zero, the match is abandoned, and pcre_exec() returns the
- value.
+ The external callout function returns an integer to PCRE. If the value
+ is zero, matching proceeds as normal. If the value is greater than
+ zero, matching fails at the current point, but backtracking to test
+ other matching possibilities goes ahead, just as if a lookahead asser-
+ tion had failed. If the value is less than zero, the match is aban-
+ doned, and pcre_exec() returns the negative value.
Negative values should normally be chosen from the set of
PCRE_ERROR_xxx values. In particular, PCRE_ERROR_NOMATCH forces a stan-
@@ -1464,8 +1693,8 @@ RETURN VALUES
reserved for use by callout functions; it will never be used by PCRE
itself.
-Last updated: 21 January 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -1475,7 +1704,7 @@ PCRE(3) PCRE(3)
NAME
PCRE - Perl-compatible regular expressions
-DIFFERENCES FROM PERL
+DIFFERENCES BETWEEN PCRE AND PERL
This document describes the differences in the ways that PCRE and Perl
handle regular expressions. The differences described here are with
@@ -1498,18 +1727,23 @@ DIFFERENCES FROM PERL
4. Though binary zero characters are supported in the subject string,
they are not allowed in a pattern string because it is passed as a nor-
- mal C string, terminated by zero. The escape sequence "\0" can be used
- in the pattern to represent a binary zero.
+ mal C string, terminated by zero. The escape sequence \0 can be used in
+ the pattern to represent a binary zero.
5. The following Perl escape sequences are not supported: \l, \u, \L,
- \U, \P, \p, \N, and \X. In fact these are implemented by Perl's general
- string-handling and are not part of its pattern matching engine. If any
- of these are encountered by PCRE, an error is generated.
-
- 6. PCRE does support the \Q...\E escape for quoting substrings. Charac-
- ters in between are treated as literals. This is slightly different
- from Perl in that $ and @ are also handled as literals inside the
- quotes. In Perl, they cause variable interpolation (but of course PCRE
+ \U, and \N. In fact these are implemented by Perl's general string-han-
+ dling and are not part of its pattern matching engine. If any of these
+ are encountered by PCRE, an error is generated.
+
+ 6. The Perl escape sequences \p, \P, and \X are supported only if PCRE
+ is built with Unicode character property support. The properties that
+ can be tested with \p and \P are limited to the general category prop-
+ erties such as Lu and Nd.
+
+ 7. PCRE does support the \Q...\E escape for quoting substrings. Charac-
+ ters in between are treated as literals. This is slightly different
+ from Perl in that $ and @ are also handled as literals inside the
+ quotes. In Perl, they cause variable interpolation (but of course PCRE
does not have variables). Note the following examples:
Pattern PCRE matches Perl matches
@@ -1519,58 +1753,63 @@ DIFFERENCES FROM PERL
\Qabc\$xyz\E abc\$xyz abc\$xyz
\Qabc\E\$\Qxyz\E abc$xyz abc$xyz
- The \Q...\E sequence is recognized both inside and outside character
+ The \Q...\E sequence is recognized both inside and outside character
classes.
- 7. Fairly obviously, PCRE does not support the (?{code}) and (?p{code})
- constructions. However, there is some experimental support for recur-
- sive patterns using the non-Perl items (?R), (?number) and (?P>name).
- Also, the PCRE "callout" feature allows an external function to be
- called during pattern matching.
+ 8. Fairly obviously, PCRE does not support the (?{code}) and (?p{code})
+ constructions. However, there is support for recursive patterns using
+ the non-Perl items (?R), (?number), and (?P>name). Also, the PCRE
+ "callout" feature allows an external function to be called during pat-
+ tern matching. See the pcrecallout documentation for details.
- 8. There are some differences that are concerned with the settings of
- captured strings when part of a pattern is repeated. For example,
- matching "aba" against the pattern /^(a(b)?)+$/ in Perl leaves $2
+ 9. There are some differences that are concerned with the settings of
+ captured strings when part of a pattern is repeated. For example,
+ matching "aba" against the pattern /^(a(b)?)+$/ in Perl leaves $2
unset, but in PCRE it is set to "b".
- 9. PCRE provides some extensions to the Perl regular expression
- facilities:
+ 10. PCRE provides some extensions to the Perl regular expression facil-
+ ities:
- (a) Although lookbehind assertions must match fixed length strings,
+ (a) Although lookbehind assertions must match fixed length strings,
each alternative branch of a lookbehind assertion can match a different
length of string. Perl requires them all to have the same length.
- (b) If PCRE_DOLLAR_ENDONLY is set and PCRE_MULTILINE is not set, the $
+ (b) If PCRE_DOLLAR_ENDONLY is set and PCRE_MULTILINE is not set, the $
meta-character matches only at the very end of the string.
(c) If PCRE_EXTRA is set, a backslash followed by a letter with no spe-
cial meaning is faulted.
- (d) If PCRE_UNGREEDY is set, the greediness of the repetition quanti-
+ (d) If PCRE_UNGREEDY is set, the greediness of the repetition quanti-
fiers is inverted, that is, by default they are not greedy, but if fol-
lowed by a question mark they are.
- (e) PCRE_ANCHORED can be used to force a pattern to be tried only at
- the first matching position in the subject string.
+ (e) PCRE_ANCHORED can be used at matching time to force a pattern to be
+ tried only at the first matching position in the subject string.
- (f) The PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, and PCRE_NO_AUTO_CAP-
+ (f) The PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, and PCRE_NO_AUTO_CAP-
TURE options for pcre_exec() have no Perl equivalents.
- (g) The (?R), (?number), and (?P>name) constructs allows for recursive
- pattern matching (Perl can do this using the (?p{code}) construct,
+ (g) The (?R), (?number), and (?P>name) constructs allows for recursive
+ pattern matching (Perl can do this using the (?p{code}) construct,
which PCRE cannot support.)
- (h) PCRE supports named capturing substrings, using the Python syntax.
+ (h) PCRE supports named capturing substrings, using the Python syntax.
- (i) PCRE supports the possessive quantifier "++" syntax, taken from
+ (i) PCRE supports the possessive quantifier "++" syntax, taken from
Sun's Java package.
(j) The (R) condition, for testing recursion, is a PCRE extension.
(k) The callout facility is PCRE-specific.
-Last updated: 09 December 2003
-Copyright (c) 1997-2003 University of Cambridge.
+ (l) The partial matching facility is PCRE-specific.
+
+ (m) Patterns compiled by PCRE can be saved and re-used at a later time,
+ even on different hosts that have the other endianness.
+
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -1584,35 +1823,36 @@ PCRE REGULAR EXPRESSION DETAILS
The syntax and semantics of the regular expressions supported by PCRE
are described below. Regular expressions are also described in the Perl
- documentation and in a number of other books, some of which have copi-
- ous examples. Jeffrey Friedl's "Mastering Regular Expressions", pub-
- lished by O'Reilly, covers them in great detail. The description here
- is intended as reference documentation.
-
- The basic operation of PCRE is on strings of bytes. However, there is
- also support for UTF-8 character strings. To use this support you must
- build PCRE to include UTF-8 support, and then call pcre_compile() with
- the PCRE_UTF8 option. How this affects the pattern matching is men-
- tioned in several places below. There is also a summary of UTF-8 fea-
- tures in the section on UTF-8 support in the main pcre page.
-
- A regular expression is a pattern that is matched against a subject
- string from left to right. Most characters stand for themselves in a
- pattern, and match the corresponding characters in the subject. As a
+ documentation and in a number of books, some of which have copious
+ examples. Jeffrey Friedl's "Mastering Regular Expressions", published
+ by O'Reilly, covers regular expressions in great detail. This descrip-
+ tion of PCRE's regular expressions is intended as reference material.
+
+ The original operation of PCRE was on strings of one-byte characters.
+ However, there is now also support for UTF-8 character strings. To use
+ this, you must build PCRE to include UTF-8 support, and then call
+ pcre_compile() with the PCRE_UTF8 option. How this affects pattern
+ matching is mentioned in several places below. There is also a summary
+ of UTF-8 features in the section on UTF-8 support in the main pcre
+ page.
+
+ A regular expression is a pattern that is matched against a subject
+ string from left to right. Most characters stand for themselves in a
+ pattern, and match the corresponding characters in the subject. As a
trivial example, the pattern
The quick brown fox
- matches a portion of a subject string that is identical to itself. The
+ matches a portion of a subject string that is identical to itself. The
power of regular expressions comes from the ability to include alterna-
- tives and repetitions in the pattern. These are encoded in the pattern
- by the use of meta-characters, which do not stand for themselves but
+ tives and repetitions in the pattern. These are encoded in the pattern
+ by the use of metacharacters, which do not stand for themselves but
instead are interpreted in some special way.
- There are two different sets of meta-characters: those that are recog-
- nized anywhere in the pattern except within square brackets, and those
- that are recognized in square brackets. Outside square brackets, the
- meta-characters are as follows:
+ There are two different sets of metacharacters: those that are recog-
+ nized anywhere in the pattern except within square brackets, and those
+ that are recognized in square brackets. Outside square brackets, the
+ metacharacters are as follows:
\ general escape character with several uses
^ assert start of string (or line, in multiline mode)
@@ -1630,8 +1870,8 @@ PCRE REGULAR EXPRESSION DETAILS
also "possessive quantifier"
{ start min/max quantifier
- Part of a pattern that is in square brackets is called a "character
- class". In a character class the only meta-characters are:
+ Part of a pattern that is in square brackets is called a "character
+ class". In a character class the only metacharacters are:
\ general escape character
^ negate the class, but only if the first character
@@ -1640,33 +1880,33 @@ PCRE REGULAR EXPRESSION DETAILS
syntax)
] terminates the character class
- The following sections describe the use of each of the meta-characters.
+ The following sections describe the use of each of the metacharacters.
BACKSLASH
The backslash character has several uses. Firstly, if it is followed by
- a non-alphameric character, it takes away any special meaning that
- character may have. This use of backslash as an escape character
+ a non-alphanumeric character, it takes away any special meaning that
+ character may have. This use of backslash as an escape character
applies both inside and outside character classes.
- For example, if you want to match a * character, you write \* in the
- pattern. This escaping action applies whether or not the following
- character would otherwise be interpreted as a meta-character, so it is
- always safe to precede a non-alphameric with backslash to specify that
- it stands for itself. In particular, if you want to match a backslash,
- you write \\.
+ For example, if you want to match a * character, you write \* in the
+ pattern. This escaping action applies whether or not the following
+ character would otherwise be interpreted as a metacharacter, so it is
+ always safe to precede a non-alphanumeric with backslash to specify
+ that it stands for itself. In particular, if you want to match a back-
+ slash, you write \\.
- If a pattern is compiled with the PCRE_EXTENDED option, whitespace in
- the pattern (other than in a character class) and characters between a
+ If a pattern is compiled with the PCRE_EXTENDED option, whitespace in
+ the pattern (other than in a character class) and characters between a
# outside a character class and the next newline character are ignored.
- An escaping backslash can be used to include a whitespace or # charac-
+ An escaping backslash can be used to include a whitespace or # charac-
ter as part of the pattern.
- If you want to remove the special meaning from a sequence of charac-
- ters, you can do so by putting them between \Q and \E. This is differ-
- ent from Perl in that $ and @ are handled as literals in \Q...\E
- sequences in PCRE, whereas in Perl, $ and @ cause variable interpola-
+ If you want to remove the special meaning from a sequence of charac-
+ ters, you can do so by putting them between \Q and \E. This is differ-
+ ent from Perl in that $ and @ are handled as literals in \Q...\E
+ sequences in PCRE, whereas in Perl, $ and @ cause variable interpola-
tion. Note the following examples:
Pattern PCRE matches Perl matches
@@ -1676,14 +1916,16 @@ BACKSLASH
\Qabc\$xyz\E abc\$xyz abc\$xyz
\Qabc\E\$\Qxyz\E abc$xyz abc$xyz
- The \Q...\E sequence is recognized both inside and outside character
+ The \Q...\E sequence is recognized both inside and outside character
classes.
+ Non-printing characters
+
A second use of backslash provides a way of encoding non-printing char-
- acters in patterns in a visible manner. There is no restriction on the
- appearance of non-printing characters, apart from the binary zero that
- terminates a pattern, but when a pattern is being prepared by text
- editing, it is usually easier to use one of the following escape
+ acters in patterns in a visible manner. There is no restriction on the
+ appearance of non-printing characters, apart from the binary zero that
+ terminates a pattern, but when a pattern is being prepared by text
+ editing, it is usually easier to use one of the following escape
sequences than the binary character it represents:
\a alarm, that is, the BEL character (hex 07)
@@ -1697,31 +1939,32 @@ BACKSLASH
\xhh character with hex code hh
\x{hhh..} character with hex code hhh... (UTF-8 mode only)
- The precise effect of \cx is as follows: if x is a lower case letter,
- it is converted to upper case. Then bit 6 of the character (hex 40) is
- inverted. Thus \cz becomes hex 1A, but \c{ becomes hex 3B, while \c;
+ The precise effect of \cx is as follows: if x is a lower case letter,
+ it is converted to upper case. Then bit 6 of the character (hex 40) is
+ inverted. Thus \cz becomes hex 1A, but \c{ becomes hex 3B, while \c;
becomes hex 7B.
- After \x, from zero to two hexadecimal digits are read (letters can be
- in upper or lower case). In UTF-8 mode, any number of hexadecimal dig-
- its may appear between \x{ and }, but the value of the character code
- must be less than 2**31 (that is, the maximum hexadecimal value is
- 7FFFFFFF). If characters other than hexadecimal digits appear between
- \x{ and }, or if there is no terminating }, this form of escape is not
+ After \x, from zero to two hexadecimal digits are read (letters can be
+ in upper or lower case). In UTF-8 mode, any number of hexadecimal dig-
+ its may appear between \x{ and }, but the value of the character code
+ must be less than 2**31 (that is, the maximum hexadecimal value is
+ 7FFFFFFF). If characters other than hexadecimal digits appear between
+ \x{ and }, or if there is no terminating }, this form of escape is not
recognized. Instead, the initial \x will be interpreted as a basic hex-
- adecimal escape, with no following digits, giving a byte whose value is
- zero.
+ adecimal escape, with no following digits, giving a character whose
+ value is zero.
Characters whose value is less than 256 can be defined by either of the
- two syntaxes for \x when PCRE is in UTF-8 mode. There is no difference
- in the way they are handled. For example, \xdc is exactly the same as
+ two syntaxes for \x when PCRE is in UTF-8 mode. There is no difference
+ in the way they are handled. For example, \xdc is exactly the same as
\x{dc}.
- After \0 up to two further octal digits are read. In both cases, if
- there are fewer than two digits, just those that are present are used.
- Thus the sequence \0\x\07 specifies two binary zeros followed by a BEL
- character (code value 7). Make sure you supply two digits after the
- initial zero if the character that follows is itself an octal digit.
+ After \0 up to two further octal digits are read. In both cases, if
+ there are fewer than two digits, just those that are present are used.
+ Thus the sequence \0\x\07 specifies two binary zeros followed by a BEL
+ character (code value 7). Make sure you supply two digits after the
+ initial zero if the pattern character that follows is itself an octal
+ digit.
The handling of a backslash followed by a digit other than 0 is compli-
cated. Outside a character class, PCRE reads it and any following dig-
@@ -1758,10 +2001,14 @@ BACKSLASH
All the sequences that define a single byte value or a single UTF-8
character (in UTF-8 mode) can be used both inside and outside character
classes. In addition, inside a character class, the sequence \b is
- interpreted as the backspace character (hex 08). Outside a character
- class it has a different meaning (see below).
+ interpreted as the backspace character (hex 08), and the sequence \X is
+ interpreted as the character "X". Outside a character class, these
+ sequences have different meanings (see below).
+
+ Generic character types
- The third use of backslash is for specifying generic character types:
+ The third use of backslash is for specifying generic character types.
+ The following are always recognized:
\d any decimal digit
\D any character that is not a decimal digit
@@ -1774,31 +2021,126 @@ BACKSLASH
into two disjoint sets. Any given character matches one, and only one,
of each pair.
- In UTF-8 mode, characters with values greater than 255 never match \d,
- \s, or \w, and always match \D, \S, and \W.
+ These character type sequences can appear both inside and outside char-
+ acter classes. They each match one character of the appropriate type.
+ If the current matching point is at the end of the subject string, all
+ of them fail, since there is no character to match.
For compatibility with Perl, \s does not match the VT character (code
11). This makes it different from the the POSIX "space" class. The \s
characters are HT (9), LF (10), FF (12), CR (13), and space (32).
- A "word" character is any letter or digit or the underscore character,
- that is, any character which can be part of a Perl "word". The defini-
- tion of letters and digits is controlled by PCRE's character tables,
- and may vary if locale- specific matching is taking place (see "Locale
- support" in the pcreapi page). For example, in the "fr" (French)
- locale, some character codes greater than 128 are used for accented
- letters, and these are matched by \w.
-
- These character type sequences can appear both inside and outside char-
- acter classes. They each match one character of the appropriate type.
- If the current matching point is at the end of the subject string, all
- of them fail, since there is no character to match.
+ A "word" character is an underscore or any character less than 256 that
+ is a letter or digit. The definition of letters and digits is con-
+ trolled by PCRE's low-valued character tables, and may vary if locale-
+ specific matching is taking place (see "Locale support" in the pcreapi
+ page). For example, in the "fr_FR" (French) locale, some character
+ codes greater than 128 are used for accented letters, and these are
+ matched by \w.
+
+ In UTF-8 mode, characters with values greater than 128 never match \d,
+ \s, or \w, and always match \D, \S, and \W. This is true even when Uni-
+ code character property support is available.
+
+ Unicode character properties
+
+ When PCRE is built with Unicode character property support, three addi-
+ tional escape sequences to match generic character types are available
+ when UTF-8 mode is selected. They are:
+
+ \p{xx} a character with the xx property
+ \P{xx} a character without the xx property
+ \X an extended Unicode sequence
+
+ The property names represented by xx above are limited to the Unicode
+ general category properties. Each character has exactly one such prop-
+ erty, specified by a two-letter abbreviation. For compatibility with
+ Perl, negation can be specified by including a circumflex between the
+ opening brace and the property name. For example, \p{^Lu} is the same
+ as \P{Lu}.
+
+ If only one letter is specified with \p or \P, it includes all the
+ properties that start with that letter. In this case, in the absence of
+ negation, the curly brackets in the escape sequence are optional; these
+ two examples have the same effect:
+
+ \p{L}
+ \pL
+
+ The following property codes are supported:
+
+ C Other
+ Cc Control
+ Cf Format
+ Cn Unassigned
+ Co Private use
+ Cs Surrogate
+
+ L Letter
+ Ll Lower case letter
+ Lm Modifier letter
+ Lo Other letter
+ Lt Title case letter
+ Lu Upper case letter
+
+ M Mark
+ Mc Spacing mark
+ Me Enclosing mark
+ Mn Non-spacing mark
+
+ N Number
+ Nd Decimal number
+ Nl Letter number
+ No Other number
+
+ P Punctuation
+ Pc Connector punctuation
+ Pd Dash punctuation
+ Pe Close punctuation
+ Pf Final punctuation
+ Pi Initial punctuation
+ Po Other punctuation
+ Ps Open punctuation
+
+ S Symbol
+ Sc Currency symbol
+ Sk Modifier symbol
+ Sm Mathematical symbol
+ So Other symbol
+
+ Z Separator
+ Zl Line separator
+ Zp Paragraph separator
+ Zs Space separator
+
+ Extended properties such as "Greek" or "InMusicalSymbols" are not sup-
+ ported by PCRE.
+
+ Specifying caseless matching does not affect these escape sequences.
+ For example, \p{Lu} always matches only upper case letters.
+
+ The \X escape matches any number of Unicode characters that form an
+ extended Unicode sequence. \X is equivalent to
+
+ (?>\PM\pM*)
+
+ That is, it matches a character without the "mark" property, followed
+ by zero or more characters with the "mark" property, and treats the
+ sequence as an atomic group (see below). Characters with the "mark"
+ property are typically accents that affect the preceding character.
+
+ Matching characters by Unicode property is not fast, because PCRE has
+ to search a structure that contains data for over fifteen thousand
+ characters. That is why the traditional escape sequences such as \d and
+ \w do not use Unicode properties in PCRE.
+
+ Simple assertions
The fourth use of backslash is for certain simple assertions. An asser-
tion specifies a condition that has to be met at a particular point in
a match, without consuming any characters from the subject string. The
use of subpatterns for more complicated assertions is described below.
- The backslashed assertions are
+ The backslashed assertions are:
\b matches at a word boundary
\B matches when not at a word boundary
@@ -1817,31 +2159,32 @@ BACKSLASH
string if the first or last character matches \w, respectively.
The \A, \Z, and \z assertions differ from the traditional circumflex
- and dollar (described below) in that they only ever match at the very
- start and end of the subject string, whatever options are set. Thus,
- they are independent of multiline mode.
-
- They are not affected by the PCRE_NOTBOL or PCRE_NOTEOL options. If the
- startoffset argument of pcre_exec() is non-zero, indicating that match-
- ing is to start at a point other than the beginning of the subject, \A
- can never match. The difference between \Z and \z is that \Z matches
- before a newline that is the last character of the string as well as at
- the end of the string, whereas \z matches only at the end.
-
- The \G assertion is true only when the current matching position is at
- the start point of the match, as specified by the startoffset argument
- of pcre_exec(). It differs from \A when the value of startoffset is
- non-zero. By calling pcre_exec() multiple times with appropriate argu-
+ and dollar (described in the next section) in that they only ever match
+ at the very start and end of the subject string, whatever options are
+ set. Thus, they are independent of multiline mode. These three asser-
+ tions are not affected by the PCRE_NOTBOL or PCRE_NOTEOL options, which
+ affect only the behaviour of the circumflex and dollar metacharacters.
+ However, if the startoffset argument of pcre_exec() is non-zero, indi-
+ cating that matching is to start at a point other than the beginning of
+ the subject, \A can never match. The difference between \Z and \z is
+ that \Z matches before a newline that is the last character of the
+ string as well as at the end of the string, whereas \z matches only at
+ the end.
+
+ The \G assertion is true only when the current matching position is at
+ the start point of the match, as specified by the startoffset argument
+ of pcre_exec(). It differs from \A when the value of startoffset is
+ non-zero. By calling pcre_exec() multiple times with appropriate argu-
ments, you can mimic Perl's /g option, and it is in this kind of imple-
mentation where \G can be useful.
- Note, however, that PCRE's interpretation of \G, as the start of the
+ Note, however, that PCRE's interpretation of \G, as the start of the
current match, is subtly different from Perl's, which defines it as the
- end of the previous match. In Perl, these can be different when the
- previously matched string was empty. Because PCRE does just one match
+ end of the previous match. In Perl, these can be different when the
+ previously matched string was empty. Because PCRE does just one match
at a time, it cannot reproduce this behaviour.
- If all the alternatives of a pattern begin with \G, the expression is
+ If all the alternatives of a pattern begin with \G, the expression is
anchored to the starting match position, and the "anchored" flag is set
in the compiled regular expression.
@@ -1849,98 +2192,99 @@ BACKSLASH
CIRCUMFLEX AND DOLLAR
Outside a character class, in the default matching mode, the circumflex
- character is an assertion which is true only if the current matching
- point is at the start of the subject string. If the startoffset argu-
- ment of pcre_exec() is non-zero, circumflex can never match if the
- PCRE_MULTILINE option is unset. Inside a character class, circumflex
+ character is an assertion that is true only if the current matching
+ point is at the start of the subject string. If the startoffset argu-
+ ment of pcre_exec() is non-zero, circumflex can never match if the
+ PCRE_MULTILINE option is unset. Inside a character class, circumflex
has an entirely different meaning (see below).
- Circumflex need not be the first character of the pattern if a number
- of alternatives are involved, but it should be the first thing in each
- alternative in which it appears if the pattern is ever to match that
- branch. If all possible alternatives start with a circumflex, that is,
- if the pattern is constrained to match only at the start of the sub-
- ject, it is said to be an "anchored" pattern. (There are also other
+ Circumflex need not be the first character of the pattern if a number
+ of alternatives are involved, but it should be the first thing in each
+ alternative in which it appears if the pattern is ever to match that
+ branch. If all possible alternatives start with a circumflex, that is,
+ if the pattern is constrained to match only at the start of the sub-
+ ject, it is said to be an "anchored" pattern. (There are also other
constructs that can cause a pattern to be anchored.)
- A dollar character is an assertion which is true only if the current
- matching point is at the end of the subject string, or immediately
+ A dollar character is an assertion that is true only if the current
+ matching point is at the end of the subject string, or immediately
before a newline character that is the last character in the string (by
- default). Dollar need not be the last character of the pattern if a
- number of alternatives are involved, but it should be the last item in
- any branch in which it appears. Dollar has no special meaning in a
+ default). Dollar need not be the last character of the pattern if a
+ number of alternatives are involved, but it should be the last item in
+ any branch in which it appears. Dollar has no special meaning in a
character class.
- The meaning of dollar can be changed so that it matches only at the
- very end of the string, by setting the PCRE_DOLLAR_ENDONLY option at
+ The meaning of dollar can be changed so that it matches only at the
+ very end of the string, by setting the PCRE_DOLLAR_ENDONLY option at
compile time. This does not affect the \Z assertion.
The meanings of the circumflex and dollar characters are changed if the
PCRE_MULTILINE option is set. When this is the case, they match immedi-
- ately after and immediately before an internal newline character,
- respectively, in addition to matching at the start and end of the sub-
- ject string. For example, the pattern /^abc$/ matches the subject
- string "def\nabc" in multiline mode, but not otherwise. Consequently,
- patterns that are anchored in single line mode because all branches
- start with ^ are not anchored in multiline mode, and a match for cir-
- cumflex is possible when the startoffset argument of pcre_exec() is
- non-zero. The PCRE_DOLLAR_ENDONLY option is ignored if PCRE_MULTILINE
- is set.
-
- Note that the sequences \A, \Z, and \z can be used to match the start
- and end of the subject in both modes, and if all branches of a pattern
- start with \A it is always anchored, whether PCRE_MULTILINE is set or
+ ately after and immediately before an internal newline character,
+ respectively, in addition to matching at the start and end of the sub-
+ ject string. For example, the pattern /^abc$/ matches the subject
+ string "def\nabc" (where \n represents a newline character) in multi-
+ line mode, but not otherwise. Consequently, patterns that are anchored
+ in single line mode because all branches start with ^ are not anchored
+ in multiline mode, and a match for circumflex is possible when the
+ startoffset argument of pcre_exec() is non-zero. The PCRE_DOL-
+ LAR_ENDONLY option is ignored if PCRE_MULTILINE is set.
+
+ Note that the sequences \A, \Z, and \z can be used to match the start
+ and end of the subject in both modes, and if all branches of a pattern
+ start with \A it is always anchored, whether PCRE_MULTILINE is set or
not.
FULL STOP (PERIOD, DOT)
Outside a character class, a dot in the pattern matches any one charac-
- ter in the subject, including a non-printing character, but not (by
- default) newline. In UTF-8 mode, a dot matches any UTF-8 character,
- which might be more than one byte long, except (by default) for new-
- line. If the PCRE_DOTALL option is set, dots match newlines as well.
- The handling of dot is entirely independent of the handling of circum-
- flex and dollar, the only relationship being that they both involve
- newline characters. Dot has no special meaning in a character class.
+ ter in the subject, including a non-printing character, but not (by
+ default) newline. In UTF-8 mode, a dot matches any UTF-8 character,
+ which might be more than one byte long, except (by default) newline. If
+ the PCRE_DOTALL option is set, dots match newlines as well. The han-
+ dling of dot is entirely independent of the handling of circumflex and
+ dollar, the only relationship being that they both involve newline
+ characters. Dot has no special meaning in a character class.
MATCHING A SINGLE BYTE
Outside a character class, the escape sequence \C matches any one byte,
- both in and out of UTF-8 mode. Unlike a dot, it always matches a new-
- line. The feature is provided in Perl in order to match individual
- bytes in UTF-8 mode. Because it breaks up UTF-8 characters into indi-
- vidual bytes, what remains in the string may be a malformed UTF-8
- string. For this reason it is best avoided.
+ both in and out of UTF-8 mode. Unlike a dot, it can match a newline.
+ The feature is provided in Perl in order to match individual bytes in
+ UTF-8 mode. Because it breaks up UTF-8 characters into individual
+ bytes, what remains in the string may be a malformed UTF-8 string. For
+ this reason, the \C escape sequence is best avoided.
- PCRE does not allow \C to appear in lookbehind assertions (see below),
- because in UTF-8 mode it makes it impossible to calculate the length of
- the lookbehind.
+ PCRE does not allow \C to appear in lookbehind assertions (described
+ below), because in UTF-8 mode this would make it impossible to calcu-
+ late the length of the lookbehind.
-SQUARE BRACKETS
+SQUARE BRACKETS AND CHARACTER CLASSES
An opening square bracket introduces a character class, terminated by a
closing square bracket. A closing square bracket on its own is not spe-
cial. If a closing square bracket is required as a member of the class,
- it should be the first data character in the class (after an initial
+ it should be the first data character in the class (after an initial
circumflex, if present) or escaped with a backslash.
- A character class matches a single character in the subject. In UTF-8
- mode, the character may occupy more than one byte. A matched character
+ A character class matches a single character in the subject. In UTF-8
+ mode, the character may occupy more than one byte. A matched character
must be in the set of characters defined by the class, unless the first
- character in the class definition is a circumflex, in which case the
- subject character must not be in the set defined by the class. If a
- circumflex is actually required as a member of the class, ensure it is
+ character in the class definition is a circumflex, in which case the
+ subject character must not be in the set defined by the class. If a
+ circumflex is actually required as a member of the class, ensure it is
not the first character, or escape it with a backslash.
- For example, the character class [aeiou] matches any lower case vowel,
- while [^aeiou] matches any character that is not a lower case vowel.
+ For example, the character class [aeiou] matches any lower case vowel,
+ while [^aeiou] matches any character that is not a lower case vowel.
Note that a circumflex is just a convenient notation for specifying the
- characters which are in the class by enumerating those that are not. It
- is not an assertion: it still consumes a character from the subject
- string, and fails if the current pointer is at the end of the string.
+ characters that are in the class by enumerating those that are not. A
+ class that starts with a circumflex is not an assertion: it still con-
+ sumes a character from the subject string, and therefore it fails if
+ the current pointer is at the end of the string.
In UTF-8 mode, characters with values greater than 255 can be included
in a class as a literal string of bytes, or by using the \x{ escaping
@@ -1949,58 +2293,64 @@ SQUARE BRACKETS
When caseless matching is set, any letters in a class represent both
their upper case and lower case versions, so for example, a caseless
[aeiou] matches "A" as well as "a", and a caseless [^aeiou] does not
- match "A", whereas a caseful version would. PCRE does not support the
- concept of case for characters with values greater than 255.
+ match "A", whereas a caseful version would. When running in UTF-8 mode,
+ PCRE supports the concept of case for characters with values greater
+ than 128 only when it is compiled with Unicode property support.
- The newline character is never treated in any special way in character
- classes, whatever the setting of the PCRE_DOTALL or PCRE_MULTILINE
+ The newline character is never treated in any special way in character
+ classes, whatever the setting of the PCRE_DOTALL or PCRE_MULTILINE
options is. A class such as [^a] will always match a newline.
- The minus (hyphen) character can be used to specify a range of charac-
- ters in a character class. For example, [d-m] matches any letter
- between d and m, inclusive. If a minus character is required in a
- class, it must be escaped with a backslash or appear in a position
- where it cannot be interpreted as indicating a range, typically as the
+ The minus (hyphen) character can be used to specify a range of charac-
+ ters in a character class. For example, [d-m] matches any letter
+ between d and m, inclusive. If a minus character is required in a
+ class, it must be escaped with a backslash or appear in a position
+ where it cannot be interpreted as indicating a range, typically as the
first or last character in the class.
It is not possible to have the literal character "]" as the end charac-
- ter of a range. A pattern such as [W-]46] is interpreted as a class of
- two characters ("W" and "-") followed by a literal string "46]", so it
- would match "W46]" or "-46]". However, if the "]" is escaped with a
- backslash it is interpreted as the end of range, so [W-\]46] is inter-
- preted as a single class containing a range followed by two separate
- characters. The octal or hexadecimal representation of "]" can also be
- used to end a range.
-
- Ranges operate in the collating sequence of character values. They can
- also be used for characters specified numerically, for example
- [\000-\037]. In UTF-8 mode, ranges can include characters whose values
+ ter of a range. A pattern such as [W-]46] is interpreted as a class of
+ two characters ("W" and "-") followed by a literal string "46]", so it
+ would match "W46]" or "-46]". However, if the "]" is escaped with a
+ backslash it is interpreted as the end of range, so [W-\]46] is inter-
+ preted as a class containing a range followed by two other characters.
+ The octal or hexadecimal representation of "]" can also be used to end
+ a range.
+
+ Ranges operate in the collating sequence of character values. They can
+ also be used for characters specified numerically, for example
+ [\000-\037]. In UTF-8 mode, ranges can include characters whose values
are greater than 255, for example [\x{100}-\x{2ff}].
If a range that includes letters is used when caseless matching is set,
it matches the letters in either case. For example, [W-c] is equivalent
- to [][\^_`wxyzabc], matched caselessly, and if character tables for the
- "fr" locale are in use, [\xc8-\xcb] matches accented E characters in
- both cases.
-
- The character types \d, \D, \s, \S, \w, and \W may also appear in a
- character class, and add the characters that they match to the class.
- For example, [\dABCDEF] matches any hexadecimal digit. A circumflex can
- conveniently be used with the upper case character types to specify a
- more restricted set of characters than the matching lower case type.
- For example, the class [^\W_] matches any letter or digit, but not
- underscore.
-
- All non-alphameric characters other than \, -, ^ (at the start) and the
- terminating ] are non-special in character classes, but it does no harm
- if they are escaped.
+ to [][\\^_`wxyzabc], matched caselessly, and in non-UTF-8 mode, if
+ character tables for the "fr_FR" locale are in use, [\xc8-\xcb] matches
+ accented E characters in both cases. In UTF-8 mode, PCRE supports the
+ concept of case for characters with values greater than 128 only when
+ it is compiled with Unicode property support.
+
+ The character types \d, \D, \p, \P, \s, \S, \w, and \W may also appear
+ in a character class, and add the characters that they match to the
+ class. For example, [\dABCDEF] matches any hexadecimal digit. A circum-
+ flex can conveniently be used with the upper case character types to
+ specify a more restricted set of characters than the matching lower
+ case type. For example, the class [^\W_] matches any letter or digit,
+ but not underscore.
+
+ The only metacharacters that are recognized in character classes are
+ backslash, hyphen (only where it can be interpreted as specifying a
+ range), circumflex (only at the start), opening square bracket (only
+ when it can be interpreted as introducing a POSIX class name - see the
+ next section), and the terminating closing square bracket. However,
+ escaping other non-alphanumeric characters does no harm.
POSIX CHARACTER CLASSES
- Perl supports the POSIX notation for character classes, which uses
- names enclosed by [: and :] within the enclosing square brackets. PCRE
- also supports this notation. For example,
+ Perl supports the POSIX notation for character classes. This uses names
+ enclosed by [: and :] within the enclosing square brackets. PCRE also
+ supports this notation. For example,
[01[:alpha:]%]
@@ -2037,7 +2387,7 @@ POSIX CHARACTER CLASSES
POSIX syntax [.ch.] and [=ch=] where "ch" is a "collating element", but
these are not supported, and an error is given if they are encountered.
- In UTF-8 mode, characters with values greater than 255 do not match any
+ In UTF-8 mode, characters with values greater than 128 do not match any
of the POSIX character classes.
@@ -2104,13 +2454,14 @@ INTERNAL OPTION SETTING
in the same way as the Perl-compatible options by using the characters
U and X respectively. The (?X) flag setting is special in that it must
always occur earlier in the pattern than any of the additional features
- it turns on, even when it is at top level. It is best put at the start.
+ it turns on, even when it is at top level. It is best to put it at the
+ start.
SUBPATTERNS
Subpatterns are delimited by parentheses (round brackets), which can be
- nested. Marking part of a pattern as a subpattern does two things:
+ nested. Turning part of a pattern into a subpattern does two things:
1. It localizes a set of alternatives. For example, the pattern
@@ -2120,11 +2471,11 @@ SUBPATTERNS
the parentheses, it would match "cataract", "erpillar" or the empty
string.
- 2. It sets up the subpattern as a capturing subpattern (as defined
- above). When the whole pattern matches, that portion of the subject
+ 2. It sets up the subpattern as a capturing subpattern. This means
+ that, when the whole pattern matches, that portion of the subject
string that matched the subpattern is passed back to the caller via the
ovector argument of pcre_exec(). Opening parentheses are counted from
- left to right (starting from 1) to obtain the numbers of the capturing
+ left to right (starting from 1) to obtain numbers for the capturing
subpatterns.
For example, if the string "the red king" is matched against the pat-
@@ -2169,41 +2520,43 @@ NAMED SUBPATTERNS
Identifying capturing parentheses by number is simple, but it can be
very hard to keep track of the numbers in complicated regular expres-
sions. Furthermore, if an expression is modified, the numbers may
- change. To help with the difficulty, PCRE supports the naming of sub-
+ change. To help with this difficulty, PCRE supports the naming of sub-
patterns, something that Perl does not provide. The Python syntax
(?P<name>...) is used. Names consist of alphanumeric characters and
underscores, and must be unique within a pattern.
Named capturing parentheses are still allocated numbers as well as
names. The PCRE API provides function calls for extracting the name-to-
- number translation table from a compiled pattern. For further details
- see the pcreapi documentation.
+ number translation table from a compiled pattern. There is also a con-
+ venience function for extracting a captured substring by name. For fur-
+ ther details see the pcreapi documentation.
REPETITION
- Repetition is specified by quantifiers, which can follow any of the
+ Repetition is specified by quantifiers, which can follow any of the
following items:
a literal data character
the . metacharacter
the \C escape sequence
- escapes such as \d that match single characters
+ the \X escape sequence (in UTF-8 mode with Unicode properties)
+ an escape such as \d that matches a single character
a character class
a back reference (see next section)
a parenthesized subpattern (unless it is an assertion)
- The general repetition quantifier specifies a minimum and maximum num-
- ber of permitted matches, by giving the two numbers in curly brackets
- (braces), separated by a comma. The numbers must be less than 65536,
+ The general repetition quantifier specifies a minimum and maximum num-
+ ber of permitted matches, by giving the two numbers in curly brackets
+ (braces), separated by a comma. The numbers must be less than 65536,
and the first must be less than or equal to the second. For example:
z{2,4}
- matches "zz", "zzz", or "zzzz". A closing brace on its own is not a
- special character. If the second number is omitted, but the comma is
- present, there is no upper limit; if the second number and the comma
- are both omitted, the quantifier specifies an exact number of required
+ matches "zz", "zzz", or "zzzz". A closing brace on its own is not a
+ special character. If the second number is omitted, but the comma is
+ present, there is no upper limit; if the second number and the comma
+ are both omitted, the quantifier specifies an exact number of required
matches. Thus
[aeiou]{3,}
@@ -2212,14 +2565,17 @@ REPETITION
\d{8}
- matches exactly 8 digits. An opening curly bracket that appears in a
- position where a quantifier is not allowed, or one that does not match
- the syntax of a quantifier, is taken as a literal character. For exam-
+ matches exactly 8 digits. An opening curly bracket that appears in a
+ position where a quantifier is not allowed, or one that does not match
+ the syntax of a quantifier, is taken as a literal character. For exam-
ple, {,6} is not a quantifier, but a literal string of four characters.
- In UTF-8 mode, quantifiers apply to UTF-8 characters rather than to
+ In UTF-8 mode, quantifiers apply to UTF-8 characters rather than to
individual bytes. Thus, for example, \x{100}{2} matches two UTF-8 char-
- acters, each of which is represented by a two-byte sequence.
+ acters, each of which is represented by a two-byte sequence. Similarly,
+ when Unicode property support is available, \X{3} matches three Unicode
+ extended sequences, each of which may be several bytes long (and they
+ may be of different lengths).
The quantifier {0} is permitted, causing the expression to behave as if
the previous item and the quantifier were not present.
@@ -2247,15 +2603,15 @@ REPETITION
as possible (up to the maximum number of permitted times), without
causing the rest of the pattern to fail. The classic example of where
this gives problems is in trying to match comments in C programs. These
- appear between the sequences /* and */ and within the sequence, indi-
- vidual * and / characters may appear. An attempt to match C comments by
- applying the pattern
+ appear between /* and */ and within the comment, individual * and /
+ characters may appear. An attempt to match C comments by applying the
+ pattern
/\*.*\*/
to the string
- /* first command */ not comment /* second comment */
+ /* first comment */ not comment /* second comment */
fails, because it matches the entire string owing to the greediness of
the .* item.
@@ -2283,7 +2639,7 @@ REPETITION
words, it inverts the default behaviour.
When a parenthesized subpattern is quantified with a minimum repeat
- count that is greater than 1 or with a limited maximum, more store is
+ count that is greater than 1 or with a limited maximum, more memory is
required for the compiled pattern, in proportion to the size of the
minimum or maximum.
@@ -2374,7 +2730,7 @@ ATOMIC GROUPING AND POSSESSIVE QUANTIFIERS
consists of an additional + character following a quantifier. Using
this notation, the previous example can be rewritten as
- \d++bar
+ \d++foo
Possessive quantifiers are always greedy; the setting of the
PCRE_UNGREEDY option is ignored. They are a convenient notation for the
@@ -2399,68 +2755,70 @@ ATOMIC GROUPING AND POSSESSIVE QUANTIFIERS
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
it takes a long time before reporting failure. This is because the
- string can be divided between the two repeats in a large number of
- ways, and all have to be tried. (The example used [!?] rather than a
- single character at the end, because both PCRE and Perl have an opti-
- mization that allows for fast failure when a single character is used.
- They remember the last single character that is required for a match,
- and fail early if it is not present in the string.) If the pattern is
- changed to
+ string can be divided between the internal \D+ repeat and the external
+ * repeat in a large number of ways, and all have to be tried. (The
+ example uses [!?] rather than a single character at the end, because
+ both PCRE and Perl have an optimization that allows for fast failure
+ when a single character is used. They remember the last single charac-
+ ter that is required for a match, and fail early if it is not present
+ in the string.) If the pattern is changed so that it uses an atomic
+ group, like this:
((?>\D+)|<\d+>)*[!?]
- sequences of non-digits cannot be broken, and failure happens quickly.
+ sequences of non-digits cannot be broken, and failure happens quickly.
BACK REFERENCES
Outside a character class, a backslash followed by a digit greater than
0 (and possibly further digits) is a back reference to a capturing sub-
- pattern earlier (that is, to its left) in the pattern, provided there
+ pattern earlier (that is, to its left) in the pattern, provided there
have been that many previous capturing left parentheses.
However, if the decimal number following the backslash is less than 10,
- it is always taken as a back reference, and causes an error only if
- there are not that many capturing left parentheses in the entire pat-
- tern. In other words, the parentheses that are referenced need not be
- to the left of the reference for numbers less than 10. See the section
- entitled "Backslash" above for further details of the handling of dig-
- its following a backslash.
-
- A back reference matches whatever actually matched the capturing sub-
- pattern in the current subject string, rather than anything matching
+ it is always taken as a back reference, and causes an error only if
+ there are not that many capturing left parentheses in the entire pat-
+ tern. In other words, the parentheses that are referenced need not be
+ to the left of the reference for numbers less than 10. See the subsec-
+ tion entitled "Non-printing characters" above for further details of
+ the handling of digits following a backslash.
+
+ A back reference matches whatever actually matched the capturing sub-
+ pattern in the current subject string, rather than anything matching
the subpattern itself (see "Subpatterns as subroutines" below for a way
of doing that). So the pattern
(sens|respons)e and \1ibility
- matches "sense and sensibility" and "response and responsibility", but
- not "sense and responsibility". If caseful matching is in force at the
- time of the back reference, the case of letters is relevant. For exam-
+ matches "sense and sensibility" and "response and responsibility", but
+ not "sense and responsibility". If caseful matching is in force at the
+ time of the back reference, the case of letters is relevant. For exam-
ple,
((?i)rah)\s+\1
- matches "rah rah" and "RAH RAH", but not "RAH rah", even though the
+ matches "rah rah" and "RAH RAH", but not "RAH rah", even though the
original capturing subpattern is matched caselessly.
- Back references to named subpatterns use the Python syntax (?P=name).
+ Back references to named subpatterns use the Python syntax (?P=name).
We could rewrite the above example as follows:
(?<p1>(?i)rah)\s+(?P=p1)
- There may be more than one back reference to the same subpattern. If a
- subpattern has not actually been used in a particular match, any back
+ There may be more than one back reference to the same subpattern. If a
+ subpattern has not actually been used in a particular match, any back
references to it always fail. For example, the pattern
(a|(bc))\2
- always fails if it starts to match "a" rather than "bc". Because there
- may be many capturing parentheses in a pattern, all digits following
- the backslash are taken as part of a potential back reference number.
+ always fails if it starts to match "a" rather than "bc". Because there
+ may be many capturing parentheses in a pattern, all digits following
+ the backslash are taken as part of a potential back reference number.
If the pattern continues with a digit character, some delimiter must be
- used to terminate the back reference. If the PCRE_EXTENDED option is
- set, this can be whitespace. Otherwise an empty comment can be used.
+ used to terminate the back reference. If the PCRE_EXTENDED option is
+ set, this can be whitespace. Otherwise an empty comment (see "Com-
+ ments" below) can be used.
A back reference that occurs inside the parentheses to which it refers
fails when the subpattern is first used, so, for example, (a\1) never
@@ -2482,14 +2840,26 @@ ASSERTIONS
An assertion is a test on the characters following or preceding the
current matching point that does not actually consume any characters.
The simple assertions coded as \b, \B, \A, \G, \Z, \z, ^ and $ are
- described above. More complicated assertions are coded as subpatterns.
- There are two kinds: those that look ahead of the current position in
- the subject string, and those that look behind it.
+ described above.
+
+ More complicated assertions are coded as subpatterns. There are two
+ kinds: those that look ahead of the current position in the subject
+ string, and those that look behind it. An assertion subpattern is
+ matched in the normal way, except that it does not cause the current
+ matching position to be changed.
+
+ Assertion subpatterns are not capturing subpatterns, and may not be
+ repeated, because it makes no sense to assert the same thing several
+ times. If any kind of assertion contains capturing subpatterns within
+ it, these are counted for the purposes of numbering the capturing sub-
+ patterns in the whole pattern. However, substring capturing is carried
+ out only for positive assertions, because it does not make sense for
+ negative assertions.
- An assertion subpattern is matched in the normal way, except that it
- does not cause the current matching position to be changed. Lookahead
- assertions start with (?= for positive assertions and (?! for negative
- assertions. For example,
+ Lookahead assertions
+
+ Lookahead assertions start with (?= for positive assertions and (?! for
+ negative assertions. For example,
\w+(?=;)
@@ -2506,13 +2876,15 @@ ASSERTIONS
does not find an occurrence of "bar" that is preceded by something
other than "foo"; it finds any occurrence of "bar" whatsoever, because
the assertion (?!foo) is always true when the next three characters are
- "bar". A lookbehind assertion is needed to achieve this effect.
+ "bar". A lookbehind assertion is needed to achieve the other effect.
If you want to force a matching failure at some point in a pattern, the
most convenient way to do it is with (?!) because an empty string
always matches, so an assertion that requires there not to be an empty
string must always fail.
+ Lookbehind assertions
+
Lookbehind assertions start with (?<= for positive assertions and (?<!
for negative assertions. For example,
@@ -2551,55 +2923,58 @@ ASSERTIONS
PCRE does not allow the \C escape (which matches a single byte in UTF-8
mode) to appear in lookbehind assertions, because it makes it impossi-
- ble to calculate the length of the lookbehind.
+ ble to calculate the length of the lookbehind. The \X escape, which can
+ match different numbers of bytes, is also not permitted.
- Atomic groups can be used in conjunction with lookbehind assertions to
+ Atomic groups can be used in conjunction with lookbehind assertions to
specify efficient matching at the end of the subject string. Consider a
simple pattern such as
abcd$
- when applied to a long string that does not match. Because matching
+ when applied to a long string that does not match. Because matching
proceeds from left to right, PCRE will look for each "a" in the subject
- and then see if what follows matches the rest of the pattern. If the
+ and then see if what follows matches the rest of the pattern. If the
pattern is specified as
^.*abcd$
- the initial .* matches the entire string at first, but when this fails
+ the initial .* matches the entire string at first, but when this fails
(because there is no following "a"), it backtracks to match all but the
- last character, then all but the last two characters, and so on. Once
- again the search for "a" covers the entire string, from right to left,
+ last character, then all but the last two characters, and so on. Once
+ again the search for "a" covers the entire string, from right to left,
so we are no better off. However, if the pattern is written as
^(?>.*)(?<=abcd)
- or, equivalently,
+ or, equivalently, using the possessive quantifier syntax,
^.*+(?<=abcd)
- there can be no backtracking for the .* item; it can match only the
- entire string. The subsequent lookbehind assertion does a single test
- on the last four characters. If it fails, the match fails immediately.
- For long strings, this approach makes a significant difference to the
+ there can be no backtracking for the .* item; it can match only the
+ entire string. The subsequent lookbehind assertion does a single test
+ on the last four characters. If it fails, the match fails immediately.
+ For long strings, this approach makes a significant difference to the
processing time.
+ Using multiple assertions
+
Several assertions (of any sort) may occur in succession. For example,
(?<=\d{3})(?<!999)foo
- matches "foo" preceded by three digits that are not "999". Notice that
- each of the assertions is applied independently at the same point in
- the subject string. First there is a check that the previous three
- characters are all digits, and then there is a check that the same
+ matches "foo" preceded by three digits that are not "999". Notice that
+ each of the assertions is applied independently at the same point in
+ the subject string. First there is a check that the previous three
+ characters are all digits, and then there is a check that the same
three characters are not "999". This pattern does not match "foo" pre-
- ceded by six characters, the first of which are digits and the last
- three of which are not "999". For example, it doesn't match "123abc-
+ ceded by six characters, the first of which are digits and the last
+ three of which are not "999". For example, it doesn't match "123abc-
foo". A pattern to do that is
(?<=\d{3}...)(?<!999)foo
- This time the first assertion looks at the preceding six characters,
+ This time the first assertion looks at the preceding six characters,
checking that the first three are digits, and then the second assertion
checks that the preceding three characters are not "999".
@@ -2607,245 +2982,449 @@ ASSERTIONS
(?<=(?<!foo)bar)baz
- matches an occurrence of "baz" that is preceded by "bar" which in turn
+ matches an occurrence of "baz" that is preceded by "bar" which in turn
is not preceded by "foo", while
(?<=\d{3}(?!999)...)foo
- is another pattern which matches "foo" preceded by three digits and any
+ is another pattern that matches "foo" preceded by three digits and any
three characters that are not "999".
- Assertion subpatterns are not capturing subpatterns, and may not be
- repeated, because it makes no sense to assert the same thing several
- times. If any kind of assertion contains capturing subpatterns within
- it, these are counted for the purposes of numbering the capturing sub-
- patterns in the whole pattern. However, substring capturing is carried
- out only for positive assertions, because it does not make sense for
- negative assertions.
-
CONDITIONAL SUBPATTERNS
- It is possible to cause the matching process to obey a subpattern con-
- ditionally or to choose between two alternative subpatterns, depending
- on the result of an assertion, or whether a previous capturing
- subpattern matched or not. The two possible forms of conditional sub-
- pattern are
+ It is possible to cause the matching process to obey a subpattern con-
+ ditionally or to choose between two alternative subpatterns, depending
+ on the result of an assertion, or whether a previous capturing subpat-
+ tern matched or not. The two possible forms of conditional subpattern
+ are
(?(condition)yes-pattern)
(?(condition)yes-pattern|no-pattern)
- If the condition is satisfied, the yes-pattern is used; otherwise the
- no-pattern (if present) is used. If there are more than two alterna-
+ If the condition is satisfied, the yes-pattern is used; otherwise the
+ no-pattern (if present) is used. If there are more than two alterna-
tives in the subpattern, a compile-time error occurs.
There are three kinds of condition. If the text between the parentheses
- consists of a sequence of digits, the condition is satisfied if the
- capturing subpattern of that number has previously matched. The number
- must be greater than zero. Consider the following pattern, which con-
- tains non-significant white space to make it more readable (assume the
- PCRE_EXTENDED option) and to divide it into three parts for ease of
+ consists of a sequence of digits, the condition is satisfied if the
+ capturing subpattern of that number has previously matched. The number
+ must be greater than zero. Consider the following pattern, which con-
+ tains non-significant white space to make it more readable (assume the
+ PCRE_EXTENDED option) and to divide it into three parts for ease of
discussion:
( \( )? [^()]+ (?(1) \) )
- The first part matches an optional opening parenthesis, and if that
+ The first part matches an optional opening parenthesis, and if that
character is present, sets it as the first captured substring. The sec-
- ond part matches one or more characters that are not parentheses. The
+ ond part matches one or more characters that are not parentheses. The
third part is a conditional subpattern that tests whether the first set
of parentheses matched or not. If they did, that is, if subject started
with an opening parenthesis, the condition is true, and so the yes-pat-
- tern is executed and a closing parenthesis is required. Otherwise,
- since no-pattern is not present, the subpattern matches nothing. In
- other words, this pattern matches a sequence of non-parentheses,
+ tern is executed and a closing parenthesis is required. Otherwise,
+ since no-pattern is not present, the subpattern matches nothing. In
+ other words, this pattern matches a sequence of non-parentheses,
optionally enclosed in parentheses.
If the condition is the string (R), it is satisfied if a recursive call
- to the pattern or subpattern has been made. At "top level", the condi-
- tion is false. This is a PCRE extension. Recursive patterns are
+ to the pattern or subpattern has been made. At "top level", the condi-
+ tion is false. This is a PCRE extension. Recursive patterns are
described in the next section.
- If the condition is not a sequence of digits or (R), it must be an
- assertion. This may be a positive or negative lookahead or lookbehind
- assertion. Consider this pattern, again containing non-significant
+ If the condition is not a sequence of digits or (R), it must be an
+ assertion. This may be a positive or negative lookahead or lookbehind
+ assertion. Consider this pattern, again containing non-significant
white space, and with the two alternatives on the second line:
(?(?=[^a-z]*[a-z])
\d{2}-[a-z]{3}-\d{2} | \d{2}-\d{2}-\d{2} )
- The condition is a positive lookahead assertion that matches an
- optional sequence of non-letters followed by a letter. In other words,
- it tests for the presence of at least one letter in the subject. If a
- letter is found, the subject is matched against the first alternative;
- otherwise it is matched against the second. This pattern matches
- strings in one of the two forms dd-aaa-dd or dd-dd-dd, where aaa are
+ The condition is a positive lookahead assertion that matches an
+ optional sequence of non-letters followed by a letter. In other words,
+ it tests for the presence of at least one letter in the subject. If a
+ letter is found, the subject is matched against the first alternative;
+ otherwise it is matched against the second. This pattern matches
+ strings in one of the two forms dd-aaa-dd or dd-dd-dd, where aaa are
letters and dd are digits.
COMMENTS
- The sequence (?# marks the start of a comment which continues up to the
- next closing parenthesis. Nested parentheses are not permitted. The
- characters that make up a comment play no part in the pattern matching
+ The sequence (?# marks the start of a comment that continues up to the
+ next closing parenthesis. Nested parentheses are not permitted. The
+ characters that make up a comment play no part in the pattern matching
at all.
- If the PCRE_EXTENDED option is set, an unescaped # character outside a
+ If the PCRE_EXTENDED option is set, an unescaped # character outside a
character class introduces a comment that continues up to the next new-
line character in the pattern.
RECURSIVE PATTERNS
- Consider the problem of matching a string in parentheses, allowing for
- unlimited nested parentheses. Without the use of recursion, the best
- that can be done is to use a pattern that matches up to some fixed
- depth of nesting. It is not possible to handle an arbitrary nesting
- depth. Perl has provided an experimental facility that allows regular
- expressions to recurse (amongst other things). It does this by interpo-
- lating Perl code in the expression at run time, and the code can refer
- to the expression itself. A Perl pattern to solve the parentheses prob-
- lem can be created like this:
+ Consider the problem of matching a string in parentheses, allowing for
+ unlimited nested parentheses. Without the use of recursion, the best
+ that can be done is to use a pattern that matches up to some fixed
+ depth of nesting. It is not possible to handle an arbitrary nesting
+ depth. Perl provides a facility that allows regular expressions to
+ recurse (amongst other things). It does this by interpolating Perl code
+ in the expression at run time, and the code can refer to the expression
+ itself. A Perl pattern to solve the parentheses problem can be created
+ like this:
$re = qr{\( (?: (?>[^()]+) | (?p{$re}) )* \)}x;
The (?p{...}) item interpolates Perl code at run time, and in this case
- refers recursively to the pattern in which it appears. Obviously, PCRE
- cannot support the interpolation of Perl code. Instead, it supports
- some special syntax for recursion of the entire pattern, and also for
+ refers recursively to the pattern in which it appears. Obviously, PCRE
+ cannot support the interpolation of Perl code. Instead, it supports
+ some special syntax for recursion of the entire pattern, and also for
individual subpattern recursion.
- The special item that consists of (? followed by a number greater than
+ The special item that consists of (? followed by a number greater than
zero and a closing parenthesis is a recursive call of the subpattern of
- the given number, provided that it occurs inside that subpattern. (If
- not, it is a "subroutine" call, which is described in the next sec-
- tion.) The special item (?R) is a recursive call of the entire regular
+ the given number, provided that it occurs inside that subpattern. (If
+ not, it is a "subroutine" call, which is described in the next sec-
+ tion.) The special item (?R) is a recursive call of the entire regular
expression.
- For example, this PCRE pattern solves the nested parentheses problem
- (assume the PCRE_EXTENDED option is set so that white space is
+ For example, this PCRE pattern solves the nested parentheses problem
+ (assume the PCRE_EXTENDED option is set so that white space is
ignored):
\( ( (?>[^()]+) | (?R) )* \)
- First it matches an opening parenthesis. Then it matches any number of
- substrings which can either be a sequence of non-parentheses, or a
- recursive match of the pattern itself (that is a correctly parenthe-
+ First it matches an opening parenthesis. Then it matches any number of
+ substrings which can either be a sequence of non-parentheses, or a
+ recursive match of the pattern itself (that is a correctly parenthe-
sized substring). Finally there is a closing parenthesis.
- If this were part of a larger pattern, you would not want to recurse
+ If this were part of a larger pattern, you would not want to recurse
the entire pattern, so instead you could use this:
( \( ( (?>[^()]+) | (?1) )* \) )
- We have put the pattern into parentheses, and caused the recursion to
- refer to them instead of the whole pattern. In a larger pattern, keep-
- ing track of parenthesis numbers can be tricky. It may be more conve-
- nient to use named parentheses instead. For this, PCRE uses (?P>name),
- which is an extension to the Python syntax that PCRE uses for named
+ We have put the pattern into parentheses, and caused the recursion to
+ refer to them instead of the whole pattern. In a larger pattern, keep-
+ ing track of parenthesis numbers can be tricky. It may be more conve-
+ nient to use named parentheses instead. For this, PCRE uses (?P>name),
+ which is an extension to the Python syntax that PCRE uses for named
parentheses (Perl does not provide named parentheses). We could rewrite
the above example as follows:
(?P<pn> \( ( (?>[^()]+) | (?P>pn) )* \) )
- This particular example pattern contains nested unlimited repeats, and
- so the use of atomic grouping for matching strings of non-parentheses
- is important when applying the pattern to strings that do not match.
+ This particular example pattern contains nested unlimited repeats, and
+ so the use of atomic grouping for matching strings of non-parentheses
+ is important when applying the pattern to strings that do not match.
For example, when this pattern is applied to
(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa()
- it yields "no match" quickly. However, if atomic grouping is not used,
- the match runs for a very long time indeed because there are so many
- different ways the + and * repeats can carve up the subject, and all
+ it yields "no match" quickly. However, if atomic grouping is not used,
+ the match runs for a very long time indeed because there are so many
+ different ways the + and * repeats can carve up the subject, and all
have to be tested before failure can be reported.
At the end of a match, the values set for any capturing subpatterns are
those from the outermost level of the recursion at which the subpattern
- value is set. If you want to obtain intermediate values, a callout
- function can be used (see below and the pcrecallout documentation). If
- the pattern above is matched against
+ value is set. If you want to obtain intermediate values, a callout
+ function can be used (see the next section and the pcrecallout documen-
+ tation). If the pattern above is matched against
(ab(cd)ef)
- the value for the capturing parentheses is "ef", which is the last
- value taken on at the top level. If additional parentheses are added,
+ the value for the capturing parentheses is "ef", which is the last
+ value taken on at the top level. If additional parentheses are added,
giving
\( ( ( (?>[^()]+) | (?R) )* ) \)
^ ^
^ ^
- the string they capture is "ab(cd)ef", the contents of the top level
- parentheses. If there are more than 15 capturing parentheses in a pat-
+ the string they capture is "ab(cd)ef", the contents of the top level
+ parentheses. If there are more than 15 capturing parentheses in a pat-
tern, PCRE has to obtain extra memory to store data during a recursion,
- which it does by using pcre_malloc, freeing it via pcre_free after-
- wards. If no memory can be obtained, the match fails with the
+ which it does by using pcre_malloc, freeing it via pcre_free after-
+ wards. If no memory can be obtained, the match fails with the
PCRE_ERROR_NOMEMORY error.
- Do not confuse the (?R) item with the condition (R), which tests for
- recursion. Consider this pattern, which matches text in angle brack-
- ets, allowing for arbitrary nesting. Only digits are allowed in nested
- brackets (that is, when recursing), whereas any characters are permit-
+ Do not confuse the (?R) item with the condition (R), which tests for
+ recursion. Consider this pattern, which matches text in angle brack-
+ ets, allowing for arbitrary nesting. Only digits are allowed in nested
+ brackets (that is, when recursing), whereas any characters are permit-
ted at the outer level.
< (?: (?(R) \d++ | [^<>]*+) | (?R)) * >
- In this pattern, (?(R) is the start of a conditional subpattern, with
- two different alternatives for the recursive and non-recursive cases.
+ In this pattern, (?(R) is the start of a conditional subpattern, with
+ two different alternatives for the recursive and non-recursive cases.
The (?R) item is the actual recursive call.
SUBPATTERNS AS SUBROUTINES
If the syntax for a recursive subpattern reference (either by number or
- by name) is used outside the parentheses to which it refers, it oper-
- ates like a subroutine in a programming language. An earlier example
+ by name) is used outside the parentheses to which it refers, it oper-
+ ates like a subroutine in a programming language. An earlier example
pointed out that the pattern
(sens|respons)e and \1ibility
- matches "sense and sensibility" and "response and responsibility", but
+ matches "sense and sensibility" and "response and responsibility", but
not "sense and responsibility". If instead the pattern
(sens|respons)e and (?1)ibility
- is used, it does match "sense and responsibility" as well as the other
- two strings. Such references must, however, follow the subpattern to
+ is used, it does match "sense and responsibility" as well as the other
+ two strings. Such references must, however, follow the subpattern to
which they refer.
CALLOUTS
Perl has a feature whereby using the sequence (?{...}) causes arbitrary
- Perl code to be obeyed in the middle of matching a regular expression.
+ Perl code to be obeyed in the middle of matching a regular expression.
This makes it possible, amongst other things, to extract different sub-
strings that match the same pair of parentheses when there is a repeti-
tion.
PCRE provides a similar feature, but of course it cannot obey arbitrary
Perl code. The feature is called "callout". The caller of PCRE provides
- an external function by putting its entry point in the global variable
- pcre_callout. By default, this variable contains NULL, which disables
+ an external function by putting its entry point in the global variable
+ pcre_callout. By default, this variable contains NULL, which disables
all calling out.
- Within a regular expression, (?C) indicates the points at which the
- external function is to be called. If you want to identify different
- callout points, you can put a number less than 256 after the letter C.
- The default value is zero. For example, this pattern has two callout
+ Within a regular expression, (?C) indicates the points at which the
+ external function is to be called. If you want to identify different
+ callout points, you can put a number less than 256 after the letter C.
+ The default value is zero. For example, this pattern has two callout
points:
(?C1)abc(?C2)def
+ If the PCRE_AUTO_CALLOUT flag is passed to pcre_compile(), callouts are
+ automatically installed before each item in the pattern. They are all
+ numbered 255.
+
During matching, when PCRE reaches a callout point (and pcre_callout is
- set), the external function is called. It is provided with the number
- of the callout, and, optionally, one item of data originally supplied
- by the caller of pcre_exec(). The callout function may cause matching
- to backtrack, or to fail altogether. A complete description of the
- interface to the callout function is given in the pcrecallout documen-
- tation.
-
-Last updated: 03 February 2003
-Copyright (c) 1997-2003 University of Cambridge.
+ set), the external function is called. It is provided with the number
+ of the callout, the position in the pattern, and, optionally, one item
+ of data originally supplied by the caller of pcre_exec(). The callout
+ function may cause matching to proceed, to backtrack, or to fail alto-
+ gether. A complete description of the interface to the callout function
+ is given in the pcrecallout documentation.
+
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
+-----------------------------------------------------------------------------
+
+PCRE(3) PCRE(3)
+
+
+
+NAME
+ PCRE - Perl-compatible regular expressions
+
+PARTIAL MATCHING IN PCRE
+
+ In normal use of PCRE, if the subject string that is passed to
+ pcre_exec() matches as far as it goes, but is too short to match the
+ entire pattern, PCRE_ERROR_NOMATCH is returned. There are circumstances
+ where it might be helpful to distinguish this case from other cases in
+ which there is no match.
+
+ Consider, for example, an application where a human is required to type
+ in data for a field with specific formatting requirements. An example
+ might be a date in the form ddmmmyy, defined by this pattern:
+
+ ^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$
+
+ If the application sees the user's keystrokes one by one, and can check
+ that what has been typed so far is potentially valid, it is able to
+ raise an error as soon as a mistake is made, possibly beeping and not
+ reflecting the character that has been typed. This immediate feedback
+ is likely to be a better user interface than a check that is delayed
+ until the entire string has been entered.
+
+ PCRE supports the concept of partial matching by means of the PCRE_PAR-
+ TIAL option, which can be set when calling pcre_exec(). When this is
+ done, the return code PCRE_ERROR_NOMATCH is converted into
+ PCRE_ERROR_PARTIAL if at any time during the matching process the
+ entire subject string matched part of the pattern. No captured data is
+ set when this occurs.
+
+ Using PCRE_PARTIAL disables one of PCRE's optimizations. PCRE remembers
+ the last literal byte in a pattern, and abandons matching immediately
+ if such a byte is not present in the subject string. This optimization
+ cannot be used for a subject string that might match only partially.
+
+
+RESTRICTED PATTERNS FOR PCRE_PARTIAL
+
+ Because of the way certain internal optimizations are implemented in
+ PCRE, the PCRE_PARTIAL option cannot be used with all patterns.
+ Repeated single characters such as
+
+ a{2,4}
+
+ and repeated single metasequences such as
+
+ \d+
+
+ are not permitted if the maximum number of occurrences is greater than
+ one. Optional items such as \d? (where the maximum is one) are permit-
+ ted. Quantifiers with any values are permitted after parentheses, so
+ the invalid examples above can be coded thus:
+
+ (a){2,4}
+ (\d)+
+
+ These constructions run more slowly, but for the kinds of application
+ that are envisaged for this facility, this is not felt to be a major
+ restriction.
+
+ If PCRE_PARTIAL is set for a pattern that does not conform to the
+ restrictions, pcre_exec() returns the error code PCRE_ERROR_BADPARTIAL
+ (-13).
+
+
+EXAMPLE OF PARTIAL MATCHING USING PCRETEST
+
+ If the escape sequence \P is present in a pcretest data line, the
+ PCRE_PARTIAL flag is used for the match. Here is a run of pcretest that
+ uses the date example quoted above:
+
+ re> /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/
+ data> 25jun04P
+ 0: 25jun04
+ 1: jun
+ data> 25dec3P
+ Partial match
+ data> 3juP
+ Partial match
+ data> 3jujP
+ No match
+ data> jP
+ No match
+
+ The first data string is matched completely, so pcretest shows the
+ matched substrings. The remaining four strings do not match the com-
+ plete pattern, but the first two are partial matches.
+
+Last updated: 08 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
+-----------------------------------------------------------------------------
+
+PCRE(3) PCRE(3)
+
+
+
+NAME
+ PCRE - Perl-compatible regular expressions
+
+SAVING AND RE-USING PRECOMPILED PCRE PATTERNS
+
+ If you are running an application that uses a large number of regular
+ expression patterns, it may be useful to store them in a precompiled
+ form instead of having to compile them every time the application is
+ run. If you are not using any private character tables (see the
+ pcre_maketables() documentation), this is relatively straightforward.
+ If you are using private tables, it is a little bit more complicated.
+
+ If you save compiled patterns to a file, you can copy them to a differ-
+ ent host and run them there. This works even if the new host has the
+ opposite endianness to the one on which the patterns were compiled.
+ There may be a small performance penalty, but it should be insignifi-
+ cant.
+
+
+SAVING A COMPILED PATTERN
+ The value returned by pcre_compile() points to a single block of memory
+ that holds the compiled pattern and associated data. You can find the
+ length of this block in bytes by calling pcre_fullinfo() with an argu-
+ ment of PCRE_INFO_SIZE. You can then save the data in any appropriate
+ manner. Here is sample code that compiles a pattern and writes it to a
+ file. It assumes that the variable fd refers to a file that is open for
+ output:
+
+ int erroroffset, rc, size;
+ char *error;
+ pcre *re;
+
+ re = pcre_compile("my pattern", 0, &error, &erroroffset, NULL);
+ if (re == NULL) { ... handle errors ... }
+ rc = pcre_fullinfo(re, NULL, PCRE_INFO_SIZE, &size);
+ if (rc < 0) { ... handle errors ... }
+ rc = fwrite(re, 1, size, fd);
+ if (rc != size) { ... handle errors ... }
+
+ In this example, the bytes that comprise the compiled pattern are
+ copied exactly. Note that this is binary data that may contain any of
+ the 256 possible byte values. On systems that make a distinction
+ between binary and non-binary data, be sure that the file is opened for
+ binary output.
+
+ If you want to write more than one pattern to a file, you will have to
+ devise a way of separating them. For binary data, preceding each pat-
+ tern with its length is probably the most straightforward approach.
+ Another possibility is to write out the data in hexadecimal instead of
+ binary, one pattern to a line.
+
+ Saving compiled patterns in a file is only one possible way of storing
+ them for later use. They could equally well be saved in a database, or
+ in the memory of some daemon process that passes them via sockets to
+ the processes that want them.
+
+ If the pattern has been studied, it is also possible to save the study
+ data in a similar way to the compiled pattern itself. When studying
+ generates additional information, pcre_study() returns a pointer to a
+ pcre_extra data block. Its format is defined in the section on matching
+ a pattern in the pcreapi documentation. The study_data field points to
+ the binary study data, and this is what you must save (not the
+ pcre_extra block itself). The length of the study data can be obtained
+ by calling pcre_fullinfo() with an argument of PCRE_INFO_STUDYSIZE.
+ Remember to check that pcre_study() did return a non-NULL value before
+ trying to save the study data.
+
+
+RE-USING A PRECOMPILED PATTERN
+
+ Re-using a precompiled pattern is straightforward. Having reloaded it
+ into main memory, you pass its pointer to pcre_exec() in the usual way.
+ This should work even on another host, and even if that host has the
+ opposite endianness to the one where the pattern was compiled.
+
+ However, if you passed a pointer to custom character tables when the
+ pattern was compiled (the tableptr argument of pcre_compile()), you
+ must now pass a similar pointer to pcre_exec(), because the value saved
+ with the compiled pattern will obviously be nonsense. A field in a
+ pcre_extra() block is used to pass this data, as described in the sec-
+ tion on matching a pattern in the pcreapi documentation.
+
+ If you did not provide custom character tables when the pattern was
+ compiled, the pointer in the compiled pattern is NULL, which causes
+ pcre_exec() to use PCRE's internal tables. Thus, you do not need to
+ take any special action at run time in this case.
+
+ If you saved study data with the compiled pattern, you need to create
+ your own pcre_extra data block and set the study_data field to point to
+ the reloaded study data. You must also set the PCRE_EXTRA_STUDY_DATA
+ bit in the flags field to indicate that study data is present. Then
+ pass the pcre_extra block to pcre_exec() in the usual way.
+
+
+COMPATIBILITY WITH DIFFERENT PCRE RELEASES
+
+ The layout of the control block that is at the start of the data that
+ makes up a compiled pattern was changed for release 5.0. If you have
+ any saved patterns that were compiled with previous releases (not a
+ facility that was previously advertised), you will have to recompile
+ them for release 5.0. However, from now on, it should be possible to
+ make changes in a compabible manner.
+
+Last updated: 10 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -2862,63 +3441,73 @@ PCRE PERFORMANCE
like [aeiou] than a set of alternatives such as (a|e|i|o|u). In gen-
eral, the simplest construction that provides the required behaviour is
usually the most efficient. Jeffrey Friedl's book contains a lot of
- discussion about optimizing regular expressions for efficient perfor-
- mance.
+ useful general discussion about optimizing regular expressions for
+ efficient performance. This document contains a few observations about
+ PCRE.
- When a pattern begins with .* not in parentheses, or in parentheses
+ Using Unicode character properties (the \p, \P, and \X escapes) is
+ slow, because PCRE has to scan a structure that contains data for over
+ fifteen thousand characters whenever it needs a character's property.
+ If you can find an alternative pattern that does not use character
+ properties, it will probably be faster.
+
+ When a pattern begins with .* not in parentheses, or in parentheses
that are not the subject of a backreference, and the PCRE_DOTALL option
- is set, the pattern is implicitly anchored by PCRE, since it can match
- only at the start of a subject string. However, if PCRE_DOTALL is not
- set, PCRE cannot make this optimization, because the . metacharacter
- does not then match a newline, and if the subject string contains new-
- lines, the pattern may match from the character immediately following
+ is set, the pattern is implicitly anchored by PCRE, since it can match
+ only at the start of a subject string. However, if PCRE_DOTALL is not
+ set, PCRE cannot make this optimization, because the . metacharacter
+ does not then match a newline, and if the subject string contains new-
+ lines, the pattern may match from the character immediately following
one of them instead of from the very start. For example, the pattern
.*second
- matches the subject "first\nand second" (where \n stands for a newline
- character), with the match starting at the seventh character. In order
+ matches the subject "first\nand second" (where \n stands for a newline
+ character), with the match starting at the seventh character. In order
to do this, PCRE has to retry the match starting after every newline in
the subject.
- If you are using such a pattern with subject strings that do not con-
+ If you are using such a pattern with subject strings that do not con-
tain newlines, the best performance is obtained by setting PCRE_DOTALL,
- or starting the pattern with ^.* to indicate explicit anchoring. That
- saves PCRE from having to scan along the subject looking for a newline
+ or starting the pattern with ^.* to indicate explicit anchoring. That
+ saves PCRE from having to scan along the subject looking for a newline
to restart at.
- Beware of patterns that contain nested indefinite repeats. These can
- take a long time to run when applied to a string that does not match.
+ Beware of patterns that contain nested indefinite repeats. These can
+ take a long time to run when applied to a string that does not match.
Consider the pattern fragment
(a+)*
- This can match "aaaa" in 33 different ways, and this number increases
- very rapidly as the string gets longer. (The * repeat can match 0, 1,
- 2, 3, or 4 times, and for each of those cases other than 0, the +
- repeats can match different numbers of times.) When the remainder of
+ This can match "aaaa" in 33 different ways, and this number increases
+ very rapidly as the string gets longer. (The * repeat can match 0, 1,
+ 2, 3, or 4 times, and for each of those cases other than 0, the +
+ repeats can match different numbers of times.) When the remainder of
the pattern is such that the entire match is going to fail, PCRE has in
- principle to try every possible variation, and this can take an
+ principle to try every possible variation, and this can take an
extremely long time.
An optimization catches some of the more simple cases such as
(a+)*b
- where a literal character follows. Before embarking on the standard
- matching procedure, PCRE checks that there is a "b" later in the sub-
- ject string, and if there is not, it fails the match immediately. How-
- ever, when there is no following literal this optimization cannot be
+ where a literal character follows. Before embarking on the standard
+ matching procedure, PCRE checks that there is a "b" later in the
+ subject string, and if there is not, it fails the match immediately.
+ However, when there is no following literal this optimization cannot be
used. You can see the difference by comparing the behaviour of
(a+)*\d
- with the pattern above. The former gives a failure almost instantly
- when applied to a whole line of "a" characters, whereas the latter
+ with the pattern above. The former gives a failure almost instantly
+ when applied to a whole line of "a" characters, whereas the latter
takes an appreciable time with strings longer than about 20 characters.
-Last updated: 03 February 2003
-Copyright (c) 1997-2003 University of Cambridge.
+ In many cases, the solution to this kind of performance issue is to use
+ an atomic group or a possessive quantifier.
+
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -2929,6 +3518,7 @@ NAME
PCRE - Perl-compatible regular expressions.
SYNOPSIS OF POSIX API
+
#include <pcreposix.h>
int regcomp(regex_t *preg, const char *pattern,
@@ -2947,13 +3537,13 @@ DESCRIPTION
This set of functions provides a POSIX-style API to the PCRE regular
expression package. See the pcreapi documentation for a description of
- the native API, which contains additional functionality.
+ PCRE's native API, which contains additional functionality.
The functions described here are just wrapper functions that ultimately
call the PCRE native API. Their prototypes are defined in the
pcreposix.h header file, and on Unix systems the library itself is
called pcreposix.a, so can be accessed by adding -lpcreposix to the
- command for linking an application which uses them. Because the POSIX
+ command for linking an application that uses them. Because the POSIX
functions call the native ones, it is also necessary to add -lpcre.
I have implemented only those option bits that can be reasonably mapped
@@ -2985,7 +3575,7 @@ COMPILING A PATTERN
The function regcomp() is called to compile a pattern into an internal
form. The pattern is a C string terminated by a binary zero, and is
passed in the argument pattern. The preg argument is a pointer to a
- regex_t structure which is used as a base for storing information about
+ regex_t structure that is used as a base for storing information about
the compiled expression.
The argument cflags is either zero, or contains one or more of the bits
@@ -3036,24 +3626,24 @@ MATCHING NEWLINE CHARACTERS
Default Change with
- . matches newline yes REG_NEWLINE
- newline matches [^a] yes REG_NEWLINE
- $ matches \n at end no REG_NEWLINE
- $ matches \n in middle no REG_NEWLINE
- ^ matches \n in middle no REG_NEWLINE
+ . matches newline yes REG_NEWLINE
+ newline matches [^a] yes REG_NEWLINE
+ $ matches \n at end no REG_NEWLINE
+ $ matches \n in middle no REG_NEWLINE
+ ^ matches \n in middle no REG_NEWLINE
PCRE's behaviour is the same as Perl's, except that there is no equiva-
- lent for PCRE_DOLLARENDONLY in Perl. In both PCRE and Perl, there is no
- way to stop newline from matching [^a].
+ lent for PCRE_DOLLAR_ENDONLY in Perl. In both PCRE and Perl, there is
+ no way to stop newline from matching [^a].
The default POSIX newline handling can be obtained by setting
- PCRE_DOTALL and PCRE_DOLLARENDONLY, but there is no way to make PCRE
+ PCRE_DOTALL and PCRE_DOLLAR_ENDONLY, but there is no way to make PCRE
behave exactly as for the REG_NEWLINE action.
MATCHING A PATTERN
- The function regexec() is called to match a pre-compiled pattern preg
+ The function regexec() is called to match a compiled pattern preg
against a given string, which is terminated by a zero byte, subject to
the options in eflags. These can be:
@@ -3092,7 +3682,7 @@ ERROR MESSAGES
tion is the size of buffer needed to hold the whole message.
-STORAGE
+MEMORY USAGE
Compiling a regular expression causes memory to be allocated and asso-
ciated with the preg structure. The function regfree() frees all such
@@ -3106,8 +3696,8 @@ AUTHOR
University Computing Service,
Cambridge CB2 3QG, England.
-Last updated: 03 February 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 07 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
PCRE(3) PCRE(3)
@@ -3134,24 +3724,34 @@ PCRE SAMPLE PROGRAM
bility of matching an empty string. Comments in the code explain what
is going on.
- On a Unix system that has PCRE installed in /usr/local, you can compile
- the demonstration program using a command like this:
+ If PCRE is installed in the standard include and library directories
+ for your system, you should be able to compile the demonstration pro-
+ gram using this command:
+
+ gcc -o pcredemo pcredemo.c -lpcre
+
+ If PCRE is installed elsewhere, you may need to add additional options
+ to the command line. For example, on a Unix-like system that has PCRE
+ installed in /usr/local, you can compile the demonstration program
+ using a command like this:
- gcc -o pcredemo pcredemo.c -I/usr/local/include \
+ gcc -o pcredemo -I/usr/local/include pcredemo.c \
-L/usr/local/lib -lpcre
- Then you can run simple tests like this:
+ Once you have compiled the demonstration program, you can run simple
+ tests like this:
./pcredemo 'cat|dog' 'the cat sat on the mat'
./pcredemo -g 'cat|dog' 'the dog sat on the cat'
- Note that there is a much more comprehensive test program, called
- pcretest, which supports many more facilities for testing regular
+ Note that there is a much more comprehensive test program, called
+ pcretest, which supports many more facilities for testing regular
expressions and the PCRE library. The pcredemo program is provided as a
simple coding example.
- On some operating systems (e.g. Solaris) you may get an error like this
- when you try to run pcredemo:
+ On some operating systems (e.g. Solaris), when PCRE is not installed in
+ the standard library directory, you may get an error like this when you
+ try to run pcredemo:
ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or
directory
@@ -3161,9 +3761,9 @@ PCRE SAMPLE PROGRAM
-R/usr/local/lib
- to the compile command to get round this problem.
+ (for example) to the compile command to get round this problem.
-Last updated: 28 January 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
-----------------------------------------------------------------------------
diff --git a/doc/pcre_compile.3 b/doc/pcre_compile.3
index a827315..37a5f2d 100644
--- a/doc/pcre_compile.3
+++ b/doc/pcre_compile.3
@@ -8,18 +8,18 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B pcre *pcre_compile(const char *\fIpattern\fR, int \fIoptions\fR,
+.B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP,
.ti +5n
-.B const char **\fIerrptr\fR, int *\fIerroffset\fR,
+.B const char **\fIerrptr\fP, int *\fIerroffset\fP,
.ti +5n
-.B const unsigned char *\fItableptr\fR);
-
+.B const unsigned char *\fItableptr\fP);
+.
.SH DESCRIPTION
.rs
.sp
This function compiles a regular expression into an internal form. Its
arguments are:
-
+.sp
\fIpattern\fR A zero-terminated string containing the
regular expression to be compiled
\fIoptions\fR Zero or more option bits
@@ -27,10 +27,11 @@ arguments are:
\fIerroffset\fR Offset in pattern where error was found
\fItableptr\fR Pointer to character tables, or NULL to
use the built-in default
-
+.sp
The option bits are:
-
+.sp
PCRE_ANCHORED Force pattern anchoring
+ PCRE_AUTO_CALLOUT Compile automatic callouts
PCRE_CASELESS Do caseless matching
PCRE_DOLLAR_ENDONLY $ not to match newline at end
PCRE_DOTALL . matches anything including NL
@@ -45,15 +46,19 @@ The option bits are:
PCRE_NO_UTF8_CHECK Do not check the pattern for UTF-8
validity (only relevant if
PCRE_UTF8 is set)
-
-PCRE must be compiled with UTF-8 support in order to use PCRE_UTF8
-(or PCRE_NO_UTF8_CHECK).
-
+.sp
+PCRE must be built with UTF-8 support in order to use PCRE_UTF8 and
+PCRE_NO_UTF8_CHECK.
+.P
The yield of the function is a pointer to a private data structure that
contains the compiled pattern, or NULL if an error was detected.
-
-There is a complete description of the PCRE API in the
+.P
+There is a complete description of the PCRE native API in the
.\" HREF
\fBpcreapi\fR
.\"
+page and a description of the POSIX API in the
+.\" HREF
+\fBpcreposix\fR
+.\"
page.
diff --git a/doc/pcre_config.3 b/doc/pcre_config.3
index 3a0e699..1ba9344 100644
--- a/doc/pcre_config.3
+++ b/doc/pcre_config.3
@@ -8,20 +8,20 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_config(int \fIwhat\fR, void *\fIwhere\fR);
-
+.B int pcre_config(int \fIwhat\fP, void *\fIwhere\fP);
+.
.SH DESCRIPTION
.rs
.sp
This function makes it possible for a client program to find out which optional
features are available in the version of the PCRE library it is using. Its
arguments are as follows:
-
+.sp
\fIwhat\fR A code specifying what information is required
\fIwhere\fR Points to where to put the data
-
+.sp
The available codes are:
-
+.sp
PCRE_CONFIG_LINK_SIZE Internal link size: 2, 3, or 4
PCRE_CONFIG_MATCH_LIMIT Internal resource limit
PCRE_CONFIG_NEWLINE Value of the newline character
@@ -31,14 +31,17 @@ The available codes are:
the POSIX API
PCRE_CONFIG_STACKRECURSE Recursion implementation (1=stack 0=heap)
PCRE_CONFIG_UTF8 Availability of UTF-8 support (1=yes 0=no)
-
+ PCRE_CONFIG_UNICODE_PROPERTIES
+ Availability of Unicode property support
+ (1=yes 0=no)
+.sp
The function yields 0 on success or PCRE_ERROR_BADOPTION otherwise.
-
+.P
There is a complete description of the PCRE native API in the
.\" HREF
\fBpcreapi\fR
.\"
-page, and a description of the POSIX API in the
+page and a description of the POSIX API in the
.\" HREF
\fBpcreposix\fR
.\"
diff --git a/doc/pcre_copy_named_substring.3 b/doc/pcre_copy_named_substring.3
index 915bd0a..92e47be 100644
--- a/doc/pcre_copy_named_substring.3
+++ b/doc/pcre_copy_named_substring.3
@@ -8,33 +8,37 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_copy_named_substring(const pcre *\fIcode\fR,
+.B int pcre_copy_named_substring(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIsubject\fR, int *\fIovector\fR,
+.B const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, const char *\fIstringname\fR,
+.B int \fIstringcount\fP, const char *\fIstringname\fP,
.ti +5n
-.B char *\fIbuffer\fR, int \fIbuffersize\fR);
-
+.B char *\fIbuffer\fP, int \fIbuffersize\fP);
+.
.SH DESCRIPTION
.rs
.sp
This is a convenience function for extracting a captured substring, identified
by name, into a given buffer. The arguments are:
-
- \fIcode\fR Pattern that was successfully matched
- \fIsubject\fR Subject that has been successfully matched
- \fIovector\fR Offset vector that \fBpcre_exec()\fR used
- \fIstringcount\fR Value returned by \fBpcre_exec()\fR
- \fIstringname\fR Name of the required substring
- \fIbuffer\fR Buffer to receive the string
- \fIbuffersize\fR Size of buffer
-
+.sp
+ \fIcode\fP Pattern that was successfully matched
+ \fIsubject\fP Subject that has been successfully matched
+ \fIovector\fP Offset vector that \fBpcre_exec()\fP used
+ \fIstringcount\fP Value returned by \fBpcre_exec()\fP
+ \fIstringname\fP Name of the required substring
+ \fIbuffer\fP Buffer to receive the string
+ \fIbuffersize\fP Size of buffer
+.sp
The yield is the length of the substring, PCRE_ERROR_NOMEMORY if the buffer was
too small, or PCRE_ERROR_NOSUBSTRING if the string name is invalid.
-
-There is a complete description of the PCRE API in the
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_copy_substring.3 b/doc/pcre_copy_substring.3
index d61b99b..c467b50 100644
--- a/doc/pcre_copy_substring.3
+++ b/doc/pcre_copy_substring.3
@@ -8,30 +8,34 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_copy_substring(const char *\fIsubject\fR, int *\fIovector\fR,
+.B int pcre_copy_substring(const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, int \fIstringnumber\fR, char *\fIbuffer\fR,
+.B int \fIstringcount\fP, int \fIstringnumber\fP, char *\fIbuffer\fP,
.ti +5n
-.B int \fIbuffersize\fR);
-
+.B int \fIbuffersize\fP);
+.
.SH DESCRIPTION
.rs
.sp
This is a convenience function for extracting a captured substring into a given
buffer. The arguments are:
-
- \fIsubject\fR Subject that has been successfully matched
- \fIovector\fR Offset vector that \fBpcre_exec()\fR used
- \fIstringcount\fR Value returned by \fBpcre_exec()\fR
- \fIstringnumber\fR Number of the required substring
- \fIbuffer\fR Buffer to receive the string
- \fIbuffersize\fR Size of buffer
-
+.sp
+ \fIsubject\fP Subject that has been successfully matched
+ \fIovector\fP Offset vector that \fBpcre_exec()\fP used
+ \fIstringcount\fP Value returned by \fBpcre_exec()\fP
+ \fIstringnumber\fP Number of the required substring
+ \fIbuffer\fP Buffer to receive the string
+ \fIbuffersize\fP Size of buffer
+.sp
The yield is the legnth of the string, PCRE_ERROR_NOMEMORY if the buffer was
too small, or PCRE_ERROR_NOSUBSTRING if the string number is invalid.
-
-There is a complete description of the PCRE API in the
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_exec.3 b/doc/pcre_exec.3
index 0d6c380..7e071a9 100644
--- a/doc/pcre_exec.3
+++ b/doc/pcre_exec.3
@@ -8,31 +8,31 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_exec(const pcre *\fIcode\fR, "const pcre_extra *\fIextra\fR,"
+.B int pcre_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP,"
.ti +5n
-.B "const char *\fIsubject\fR," int \fIlength\fR, int \fIstartoffset\fR,
+.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
.ti +5n
-.B int \fIoptions\fR, int *\fIovector\fR, int \fIovecsize\fR);
-
+.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP);
+.
.SH DESCRIPTION
.rs
.sp
This function matches a compiled regular expression against a given subject
string, and returns offsets to capturing subexpressions. Its arguments are:
-
- \fIcode\fR Points to the compiled pattern
- \fIextra\fR Points to an associated \fBpcre_extra\fR structure,
+.sp
+ \fIcode\fP Points to the compiled pattern
+ \fIextra\fP Points to an associated \fBpcre_extra\fP structure,
or is NULL
- \fIsubject\fR Points to the subject string
- \fIlength\fR Length of the subject string, in bytes
- \fIstartoffset\fR Offset in bytes in the subject at which to
+ \fIsubject\fP Points to the subject string
+ \fIlength\fP Length of the subject string, in bytes
+ \fIstartoffset\fP Offset in bytes in the subject at which to
start matching
- \fIoptions\fR Option bits
- \fIovector\fR Points to a vector of ints for result offsets
- \fIovecsize\fR Size of the vector (a multiple of 3)
-
+ \fIoptions\fP Option bits
+ \fIovector\fP Points to a vector of ints for result offsets
+ \fIovecsize\fP Number of elements in the vector (a multiple of 3)
+.sp
The options are:
-
+.sp
PCRE_ANCHORED Match only at the first position
PCRE_NOTBOL Subject is not the beginning of a line
PCRE_NOTEOL Subject is not the end of a line
@@ -40,9 +40,28 @@ The options are:
PCRE_NO_UTF8_CHECK Do not check the subject for UTF-8
validity (only relevant if PCRE_UTF8
was set at compile time)
-
-There is a complete description of the PCRE API in the
+ PCRE_PARTIAL Return PCRE_ERROR_PARTIAL for a partial match
+.sp
+There are restrictions on what may appear in a pattern when partial matching is
+requested.
+.P
+A \fBpcre_extra\fP structure contains the following fields:
+.sp
+ \fIflags\fP Bits indicating which fields are set
+ \fIstudy_data\fP Opaque data from \fBpcre_study()\fP
+ \fImatch_limit\fP Limit on internal recursion
+ \fIcallout_data\fP Opaque data passed back to callouts
+ \fItables\fP Points to character tables or is NULL
+.sp
+The flag bits are PCRE_EXTRA_STUDY_DATA, PCRE_EXTRA_MATCH_LIMIT,
+PCRE_EXTRA_CALLOUT_DATA, and PCRE_EXTRA_TABLES.
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_free_substring.3 b/doc/pcre_free_substring.3
index 3fcaf11..1aafd87 100644
--- a/doc/pcre_free_substring.3
+++ b/doc/pcre_free_substring.3
@@ -8,17 +8,21 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B void pcre_free_substring(const char *\fIstringptr\fR);
-
+.B void pcre_free_substring(const char *\fIstringptr\fP);
+.
.SH DESCRIPTION
.rs
.sp
This is a convenience function for freeing the store obtained by a previous
-call to \fBpcre_get_substring()\fR or \fBpcre_get_named_substring()\fR. Its
+call to \fBpcre_get_substring()\fP or \fBpcre_get_named_substring()\fP. Its
only argument is a pointer to the string.
-
-There is a complete description of the PCRE API in the
+.P
+There is a complete description of the PCRE native API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
+.\" HREF
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_free_substring_list.3 b/doc/pcre_free_substring_list.3
index 73d5993..d68c3a1 100644
--- a/doc/pcre_free_substring_list.3
+++ b/doc/pcre_free_substring_list.3
@@ -8,17 +8,21 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B void pcre_free_substring_list(const char **\fIstringptr\fR);
-
+.B void pcre_free_substring_list(const char **\fIstringptr\fP);
+.
.SH DESCRIPTION
.rs
.sp
This is a convenience function for freeing the store obtained by a previous
-call to \fBpcre_get_substring_list()\fR. Its only argument is a pointer to the
+call to \fBpcre_get_substring_list()\fP. Its only argument is a pointer to the
list of string pointers.
-
-There is a complete description of the PCRE API in the
+.P
+There is a complete description of the PCRE native API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
+.\" HREF
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_fullinfo.3 b/doc/pcre_fullinfo.3
index 06de985..4738127 100644
--- a/doc/pcre_fullinfo.3
+++ b/doc/pcre_fullinfo.3
@@ -8,46 +8,52 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_fullinfo(const pcre *\fIcode\fR, "const pcre_extra *\fIextra\fR,"
+.B int pcre_fullinfo(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP,"
.ti +5n
-.B int \fIwhat\fR, void *\fIwhere\fR);
-
+.B int \fIwhat\fP, void *\fIwhere\fP);
+.
.SH DESCRIPTION
.rs
.sp
This function returns information about a compiled pattern. Its arguments are:
-
- \fIcode\fR Compiled regular expression
- \fIextra\fR Result of \fBpcre_study()\fR or NULL
- \fIwhat\fR What information is required
- \fIwhere\fR Where to put the information
-
+.sp
+ \fIcode\fP Compiled regular expression
+ \fIextra\fP Result of \fBpcre_study()\fP or NULL
+ \fIwhat\fP What information is required
+ \fIwhere\fP Where to put the information
+.sp
The following information is available:
-
- PCRE_INFO_BACKREFMAX Number of highest back reference
- PCRE_INFO_CAPTURECOUNT Number of capturing subpatterns
- PCRE_INFO_FIRSTBYTE Fixed first byte for a match, or
- -1 for start of string
- or after newline, or
- -2 otherwise
- PCRE_INFO_FIRSTTABLE Table of first bytes
- (after studying)
- PCRE_INFO_LASTLITERAL Literal last byte required
- PCRE_INFO_NAMECOUNT Number of named subpatterns
- PCRE_INFO_NAMEENTRYSIZE Size of name table entry
- PCRE_INFO_NAMETABLE Pointer to name table
- PCRE_INFO_OPTIONS Options used for compilation
- PCRE_INFO_SIZE Size of compiled pattern
-
+.sp
+ PCRE_INFO_BACKREFMAX Number of highest back reference
+ PCRE_INFO_CAPTURECOUNT Number of capturing subpatterns
+ PCRE_INFO_DEFAULT_TABLES Pointer to default tables
+ PCRE_INFO_FIRSTBYTE Fixed first byte for a match, or
+ -1 for start of string
+ or after newline, or
+ -2 otherwise
+ PCRE_INFO_FIRSTTABLE Table of first bytes
+ (after studying)
+ PCRE_INFO_LASTLITERAL Literal last byte required
+ PCRE_INFO_NAMECOUNT Number of named subpatterns
+ PCRE_INFO_NAMEENTRYSIZE Size of name table entry
+ PCRE_INFO_NAMETABLE Pointer to name table
+ PCRE_INFO_OPTIONS Options used for compilation
+ PCRE_INFO_SIZE Size of compiled pattern
+ PCRE_INFO_STUDYSIZE Size of study data
+.sp
The yield of the function is zero on success or:
-
- PCRE_ERROR_NULL the argument \fIcode\fR was NULL
- the argument \fIwhere\fR was NULL
- PCRE_ERROR_BADMAGIC the "magic number" was not found
- PCRE_ERROR_BADOPTION the value of \fIwhat\fR was invalid
-
-There is a complete description of the PCRE API in the
+.sp
+ PCRE_ERROR_NULL the argument \fIcode\fP was NULL
+ the argument \fIwhere\fP was NULL
+ PCRE_ERROR_BADMAGIC the "magic number" was not found
+ PCRE_ERROR_BADOPTION the value of \fIwhat\fP was invalid
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_get_named_substring.3 b/doc/pcre_get_named_substring.3
index 6d3f80e..9ce27ba 100644
--- a/doc/pcre_get_named_substring.3
+++ b/doc/pcre_get_named_substring.3
@@ -8,33 +8,38 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_get_named_substring(const pcre *\fIcode\fR,
+.B int pcre_get_named_substring(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIsubject\fR, int *\fIovector\fR,
+.B const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, const char *\fIstringname\fR,
+.B int \fIstringcount\fP, const char *\fIstringname\fP,
.ti +5n
-.B const char **\fIstringptr\fR);
-
+.B const char **\fIstringptr\fP);
+.
.SH DESCRIPTION
.rs
.sp
This is a convenience function for extracting a captured substring by name. The
arguments are:
-
- \fIcode\fR Compiled pattern
- \fIsubject\fR Subject that has been successfully matched
- \fIovector\fR Offset vector that \fBpcre_exec()\fR used
- \fIstringcount\fR Value returned by \fBpcre_exec()\fR
- \fIstringname\fR Name of the required substring
- \fIstringptr\fR Where to put the string pointer
-
-The yield is the length of the extracted substring, PCRE_ERROR_NOMEMORY if
-sufficient memory could not be obtained, or PCRE_ERROR_NOSUBSTRING if the
-string name is invalid.
-
-There is a complete description of the PCRE API in the
+.sp
+ \fIcode\fP Compiled pattern
+ \fIsubject\fP Subject that has been successfully matched
+ \fIovector\fP Offset vector that \fBpcre_exec()\fP used
+ \fIstringcount\fP Value returned by \fBpcre_exec()\fP
+ \fIstringname\fP Name of the required substring
+ \fIstringptr\fP Where to put the string pointer
+.sp
+The memory in which the substring is placed is obtained by calling
+\fBpcre_malloc()\fP. The yield of the function is the length of the extracted
+substring, PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
+PCRE_ERROR_NOSUBSTRING if the string name is invalid.
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_get_stringnumber.3 b/doc/pcre_get_stringnumber.3
index f6c9357..8c72894 100644
--- a/doc/pcre_get_stringnumber.3
+++ b/doc/pcre_get_stringnumber.3
@@ -8,24 +8,28 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_get_stringnumber(const pcre *\fIcode\fR,
+.B int pcre_get_stringnumber(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIname\fR);
-
+.B const char *\fIname\fP);
+.
.SH DESCRIPTION
.rs
.sp
This convenience function finds the number of a named substring capturing
parenthesis in a compiled pattern. Its arguments are:
-
- \fIcode\fR Compiled regular expression
- \fIname\fR Name whose number is required
-
+.sp
+ \fIcode\fP Compiled regular expression
+ \fIname\fP Name whose number is required
+.sp
The yield of the function is the number of the parenthesis if the name is
found, or PCRE_ERROR_NOSUBSTRING otherwise.
-
-There is a complete description of the PCRE API in the
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_get_substring.3 b/doc/pcre_get_substring.3
index 4c92c9c..9bef5d3 100644
--- a/doc/pcre_get_substring.3
+++ b/doc/pcre_get_substring.3
@@ -8,30 +8,35 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_get_substring(const char *\fIsubject\fR, int *\fIovector\fR,
+.B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, int \fIstringnumber\fR,
+.B int \fIstringcount\fP, int \fIstringnumber\fP,
.ti +5n
-.B const char **\fIstringptr\fR);
-
+.B const char **\fIstringptr\fP);
+.
.SH DESCRIPTION
.rs
.sp
This is a convenience function for extracting a captured substring. The
arguments are:
-
- \fIsubject\fR Subject that has been successfully matched
- \fIovector\fR Offset vector that \fBpcre_exec()\fR used
- \fIstringcount\fR Value returned by \fBpcre_exec()\fR
- \fIstringnumber\fR Number of the required substring
- \fIstringptr\fR Where to put the string pointer
-
-The yield is the length of the substring, PCRE_ERROR_NOMEMORY if sufficient
-memory could not be obtained, or PCRE_ERROR_NOSUBSTRING if the string number is
-invalid.
-
-There is a complete description of the PCRE API in the
+.sp
+ \fIsubject\fP Subject that has been successfully matched
+ \fIovector\fP Offset vector that \fBpcre_exec()\fP used
+ \fIstringcount\fP Value returned by \fBpcre_exec()\fP
+ \fIstringnumber\fP Number of the required substring
+ \fIstringptr\fP Where to put the string pointer
+.sp
+The memory in which the substring is placed is obtained by calling
+\fBpcre_malloc()\fP. The yield of the function is the length of the substring,
+PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
+PCRE_ERROR_NOSUBSTRING if the string number is invalid.
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_get_substring_list.3 b/doc/pcre_get_substring_list.3
index 69090e1..29ae442 100644
--- a/doc/pcre_get_substring_list.3
+++ b/doc/pcre_get_substring_list.3
@@ -8,26 +8,33 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_get_substring_list(const char *\fIsubject\fR,
+.B int pcre_get_substring_list(const char *\fIsubject\fP,
.ti +5n
-.B int *\fIovector\fR, int \fIstringcount\fR, "const char ***\fIlistptr\fR);"
-
+.B int *\fIovector\fP, int \fIstringcount\fP, "const char ***\fIlistptr\fP);"
+.
.SH DESCRIPTION
.rs
.sp
This is a convenience function for extracting a list of all the captured
substrings. The arguments are:
-
- \fIsubject\fR Subject that has been successfully matched
- \fIovector\fR Offset vector that \fBpcre_exec\fR used
- \fIstringcount\fR Value returned by \fBpcre_exec\fR
- \fIlistptr\fR Where to put a pointer to the list
-
-The yield is zero on success or PCRE_ERROR_NOMEMORY if sufficient memory could
-not be obtained.
-
-There is a complete description of the PCRE API in the
+.sp
+ \fIsubject\fP Subject that has been successfully matched
+ \fIovector\fP Offset vector that \fBpcre_exec\fP used
+ \fIstringcount\fP Value returned by \fBpcre_exec\fP
+ \fIlistptr\fP Where to put a pointer to the list
+.sp
+The memory in which the substrings and the list are placed is obtained by
+calling \fBpcre_malloc()\fP. A pointer to a list of pointers is put in
+the variable whose address is in \fIlistptr\fP. The list is terminated by a
+NULL pointer. The yield of the function is zero on success or
+PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained.
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_info.3 b/doc/pcre_info.3
index c497076..540c152 100644
--- a/doc/pcre_info.3
+++ b/doc/pcre_info.3
@@ -8,16 +8,20 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B int pcre_info(const pcre *\fIcode\fR, int *\fIoptptr\fR, int
-.B *\fIfirstcharptr\fR);
-
+.B int pcre_info(const pcre *\fIcode\fP, int *\fIoptptr\fP, int
+.B *\fIfirstcharptr\fP);
+.
.SH DESCRIPTION
.rs
.sp
-This function is obsolete. You should be using \fBpcre_fullinfo()\fR instead.
-
-There is a complete description of the PCRE API in the
+This function is obsolete. You should be using \fBpcre_fullinfo()\fP instead.
+.P
+There is a complete description of the PCRE native API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
+.\" HREF
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_maketables.3 b/doc/pcre_maketables.3
index 7d459ed..fdc5914 100644
--- a/doc/pcre_maketables.3
+++ b/doc/pcre_maketables.3
@@ -9,18 +9,22 @@ PCRE - Perl-compatible regular expressions
.SM
.br
.B const unsigned char *pcre_maketables(void);
-
+.
.SH DESCRIPTION
.rs
.sp
-This function builds a set of character tables which can be passed to
-\fBpcre_compile()\fR to override PCRE's internal, built-in tables (which were
-made by \fBpcre_maketables()\fR when PCRE was compiled). You might want to do
-this if you are using a non-standard locale. The function yields a pointer to
-the tables.
-
-There is a complete description of the PCRE API in the
+This function builds a set of character tables for character values less than
+256. These can be passed to \fBpcre_compile()\fP to override PCRE's internal,
+built-in tables (which were made by \fBpcre_maketables()\fP when PCRE was
+compiled). You might want to do this if you are using a non-standard locale.
+The function yields a pointer to the tables.
+.P
+There is a complete description of the PCRE native API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
+.\" HREF
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_study.3 b/doc/pcre_study.3
index 69ff20e..df428d0 100644
--- a/doc/pcre_study.3
+++ b/doc/pcre_study.3
@@ -8,29 +8,36 @@ PCRE - Perl-compatible regular expressions
.PP
.SM
.br
-.B pcre_extra *pcre_study(const pcre *\fIcode\fR, int \fIoptions\fR,
+.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP,
.ti +5n
-.B const char **\fIerrptr\fR);
-
+.B const char **\fIerrptr\fP);
+.
.SH DESCRIPTION
.rs
.sp
This function studies a compiled pattern, to see if additional information can
be extracted that might speed up matching. Its arguments are:
-
- \fIcode\fR A compiled regular expression
- \fIoptions\fR Options for \fBpcre_study()\fR
- \fIerrptr\fR Where to put an error message
-
+.sp
+ \fIcode\fP A compiled regular expression
+ \fIoptions\fP Options for \fBpcre_study()\fP
+ \fIerrptr\fP Where to put an error message
+.sp
+If the function succeeds, it returns a value that can be passed to
+\fBpcre_exec()\fP via its \fIextra\fP argument.
+.P
If the function returns NULL, either it could not find any additional
information, or there was an error. You can tell the difference by looking at
the error value. It is NULL in first case.
-
+.P
There are currently no options defined; the value of the second argument should
always be zero.
-
-There is a complete description of the PCRE API in the
+.P
+There is a complete description of the PCRE native API in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcre_version.3 b/doc/pcre_version.3
index 6f98122..9b07407 100644
--- a/doc/pcre_version.3
+++ b/doc/pcre_version.3
@@ -9,15 +9,19 @@ PCRE - Perl-compatible regular expressions
.SM
.br
.B char *pcre_version(void);
-
+.
.SH DESCRIPTION
.rs
.sp
This function returns a character string that gives the version number of the
-PCRE library, and its date of release.
-
-There is a complete description of the PCRE API in the
+PCRE library and the date of its release.
+.P
+There is a complete description of the PCRE native API in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
+.\"
+page and a description of the POSIX API in the
+.\" HREF
+\fBpcreposix\fP
.\"
page.
diff --git a/doc/pcreapi.3 b/doc/pcreapi.3
index 4c7d43c..42a4e59 100644
--- a/doc/pcreapi.3
+++ b/doc/pcreapi.3
@@ -1,93 +1,93 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH SYNOPSIS OF PCRE API
+.SH "PCRE NATIVE API"
.rs
.sp
.B #include <pcre.h>
.PP
.SM
.br
-.B pcre *pcre_compile(const char *\fIpattern\fR, int \fIoptions\fR,
+.B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP,
.ti +5n
-.B const char **\fIerrptr\fR, int *\fIerroffset\fR,
+.B const char **\fIerrptr\fP, int *\fIerroffset\fP,
.ti +5n
-.B const unsigned char *\fItableptr\fR);
+.B const unsigned char *\fItableptr\fP);
.PP
.br
-.B pcre_extra *pcre_study(const pcre *\fIcode\fR, int \fIoptions\fR,
+.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP,
.ti +5n
-.B const char **\fIerrptr\fR);
+.B const char **\fIerrptr\fP);
.PP
.br
-.B int pcre_exec(const pcre *\fIcode\fR, "const pcre_extra *\fIextra\fR,"
+.B int pcre_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP,"
.ti +5n
-.B "const char *\fIsubject\fR," int \fIlength\fR, int \fIstartoffset\fR,
+.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
.ti +5n
-.B int \fIoptions\fR, int *\fIovector\fR, int \fIovecsize\fR);
+.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP);
.PP
.br
-.B int pcre_copy_named_substring(const pcre *\fIcode\fR,
+.B int pcre_copy_named_substring(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIsubject\fR, int *\fIovector\fR,
+.B const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, const char *\fIstringname\fR,
+.B int \fIstringcount\fP, const char *\fIstringname\fP,
.ti +5n
-.B char *\fIbuffer\fR, int \fIbuffersize\fR);
+.B char *\fIbuffer\fP, int \fIbuffersize\fP);
.PP
.br
-.B int pcre_copy_substring(const char *\fIsubject\fR, int *\fIovector\fR,
+.B int pcre_copy_substring(const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, int \fIstringnumber\fR, char *\fIbuffer\fR,
+.B int \fIstringcount\fP, int \fIstringnumber\fP, char *\fIbuffer\fP,
.ti +5n
-.B int \fIbuffersize\fR);
+.B int \fIbuffersize\fP);
.PP
.br
-.B int pcre_get_named_substring(const pcre *\fIcode\fR,
+.B int pcre_get_named_substring(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIsubject\fR, int *\fIovector\fR,
+.B const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, const char *\fIstringname\fR,
+.B int \fIstringcount\fP, const char *\fIstringname\fP,
.ti +5n
-.B const char **\fIstringptr\fR);
+.B const char **\fIstringptr\fP);
.PP
.br
-.B int pcre_get_stringnumber(const pcre *\fIcode\fR,
+.B int pcre_get_stringnumber(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIname\fR);
+.B const char *\fIname\fP);
.PP
.br
-.B int pcre_get_substring(const char *\fIsubject\fR, int *\fIovector\fR,
+.B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, int \fIstringnumber\fR,
+.B int \fIstringcount\fP, int \fIstringnumber\fP,
.ti +5n
-.B const char **\fIstringptr\fR);
+.B const char **\fIstringptr\fP);
.PP
.br
-.B int pcre_get_substring_list(const char *\fIsubject\fR,
+.B int pcre_get_substring_list(const char *\fIsubject\fP,
.ti +5n
-.B int *\fIovector\fR, int \fIstringcount\fR, "const char ***\fIlistptr\fR);"
+.B int *\fIovector\fP, int \fIstringcount\fP, "const char ***\fIlistptr\fP);"
.PP
.br
-.B void pcre_free_substring(const char *\fIstringptr\fR);
+.B void pcre_free_substring(const char *\fIstringptr\fP);
.PP
.br
-.B void pcre_free_substring_list(const char **\fIstringptr\fR);
+.B void pcre_free_substring_list(const char **\fIstringptr\fP);
.PP
.br
.B const unsigned char *pcre_maketables(void);
.PP
.br
-.B int pcre_fullinfo(const pcre *\fIcode\fR, "const pcre_extra *\fIextra\fR,"
+.B int pcre_fullinfo(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP,"
.ti +5n
-.B int \fIwhat\fR, void *\fIwhere\fR);
+.B int \fIwhat\fP, void *\fIwhere\fP);
.PP
.br
-.B int pcre_info(const pcre *\fIcode\fR, int *\fIoptptr\fR, int
-.B *\fIfirstcharptr\fR);
+.B int pcre_info(const pcre *\fIcode\fP, int *\fIoptptr\fP, int
+.B *\fIfirstcharptr\fP);
.PP
.br
-.B int pcre_config(int \fIwhat\fR, void *\fIwhere\fR);
+.B int pcre_config(int \fIwhat\fP, void *\fIwhere\fP);
.PP
.br
.B char *pcre_version(void);
@@ -106,54 +106,68 @@ PCRE - Perl-compatible regular expressions
.PP
.br
.B int (*pcre_callout)(pcre_callout_block *);
-
-.SH PCRE API
+.
+.
+.SH "PCRE API OVERVIEW"
.rs
.sp
PCRE has its own native API, which is described in this document. There is also
a set of wrapper functions that correspond to the POSIX regular expression API.
-These are described in the \fBpcreposix\fR documentation.
-
-The native API function prototypes are defined in the header file \fBpcre.h\fR,
-and on Unix systems the library itself is called \fBlibpcre.a\fR, so can be
-accessed by adding \fB-lpcre\fR to the command for linking an application which
-calls it. The header file defines the macros PCRE_MAJOR and PCRE_MINOR to
-contain the major and minor release numbers for the library. Applications can
-use these to include support for different releases.
-
-The functions \fBpcre_compile()\fR, \fBpcre_study()\fR, and \fBpcre_exec()\fR
+These are described in the
+.\" HREF
+\fBpcreposix\fP
+.\"
+documentation.
+.P
+The native API function prototypes are defined in the header file \fBpcre.h\fP,
+and on Unix systems the library itself is called \fBlibpcre\fP. It can
+normally be accessed by adding \fB-lpcre\fP to the command for linking an
+application that uses PCRE. The header file defines the macros PCRE_MAJOR and
+PCRE_MINOR to contain the major and minor release numbers for the library.
+Applications can use these to include support for different releases of PCRE.
+.P
+The functions \fBpcre_compile()\fP, \fBpcre_study()\fP, and \fBpcre_exec()\fP
are used for compiling and matching regular expressions. A sample program that
-demonstrates the simplest way of using them is given in the file
-\fIpcredemo.c\fR. The \fBpcresample\fR documentation describes how to run it.
-
-There are convenience functions for extracting captured substrings from a
-matched subject string. They are:
-
- \fBpcre_copy_substring()\fR
- \fBpcre_copy_named_substring()\fR
- \fBpcre_get_substring()\fR
- \fBpcre_get_named_substring()\fR
- \fBpcre_get_substring_list()\fR
-
-\fBpcre_free_substring()\fR and \fBpcre_free_substring_list()\fR are also
+demonstrates the simplest way of using them is provided in the file called
+\fIpcredemo.c\fP in the source distribution. The
+.\" HREF
+\fBpcresample\fP
+.\"
+documentation describes how to run it.
+.P
+In addition to the main compiling and matching functions, there are convenience
+functions for extracting captured substrings from a matched subject string.
+They are:
+.sp
+ \fBpcre_copy_substring()\fP
+ \fBpcre_copy_named_substring()\fP
+ \fBpcre_get_substring()\fP
+ \fBpcre_get_named_substring()\fP
+ \fBpcre_get_substring_list()\fP
+ \fBpcre_get_stringnumber()\fP
+.sp
+\fBpcre_free_substring()\fP and \fBpcre_free_substring_list()\fP are also
provided, to free the memory used for extracted strings.
-
-The function \fBpcre_maketables()\fR is used (optionally) to build a set of
-character tables in the current locale for passing to \fBpcre_compile()\fR.
-
-The function \fBpcre_fullinfo()\fR is used to find out information about a
-compiled pattern; \fBpcre_info()\fR is an obsolete version which returns only
+.P
+The function \fBpcre_maketables()\fP is used to build a set of character tables
+in the current locale for passing to \fBpcre_compile()\fP or \fBpcre_exec()\fP.
+This is an optional facility that is provided for specialist use. Most
+commonly, no special tables are passed, in which case internal tables that are
+generated when PCRE is built are used.
+.P
+The function \fBpcre_fullinfo()\fP is used to find out information about a
+compiled pattern; \fBpcre_info()\fP is an obsolete version that returns only
some of the available information, but is retained for backwards compatibility.
-The function \fBpcre_version()\fR returns a pointer to a string containing the
+The function \fBpcre_version()\fP returns a pointer to a string containing the
version of PCRE and its date of release.
-
-The global variables \fBpcre_malloc\fR and \fBpcre_free\fR initially contain
-the entry points of the standard \fBmalloc()\fR and \fBfree()\fR functions
+.P
+The global variables \fBpcre_malloc\fP and \fBpcre_free\fP initially contain
+the entry points of the standard \fBmalloc()\fP and \fBfree()\fP functions,
respectively. PCRE calls the memory management functions via these variables,
so a calling program can replace them if it wishes to intercept the calls. This
should be done before calling any PCRE functions.
-
-The global variables \fBpcre_stack_malloc\fR and \fBpcre_stack_free\fR are also
+.P
+The global variables \fBpcre_stack_malloc\fP and \fBpcre_stack_free\fP are also
indirections to memory management functions. These special functions are used
only when PCRE is compiled to use the heap for remembering data, instead of
recursive function calls. This is a non-standard way of building PCRE, for use
@@ -162,125 +176,157 @@ management, it runs more slowly. Separate functions are provided so that
special-purpose external code can be used for this case. When used, these
functions are always called in a stack-like manner (last obtained, first
freed), and always for memory blocks of the same size.
-
-The global variable \fBpcre_callout\fR initially contains NULL. It can be set
+.P
+The global variable \fBpcre_callout\fP initially contains NULL. It can be set
by the caller to a "callout" function, which PCRE will then call at specified
-points during a matching operation. Details are given in the \fBpcrecallout\fR
+points during a matching operation. Details are given in the
+.\" HREF
+\fBpcrecallout\fP
+.\"
documentation.
-
+.
+.
.SH MULTITHREADING
.rs
.sp
The PCRE functions can be used in multi-threading applications, with the
-proviso that the memory management functions pointed to by \fBpcre_malloc\fR,
-\fBpcre_free\fR, \fBpcre_stack_malloc\fR, and \fBpcre_stack_free\fR, and the
-callout function pointed to by \fBpcre_callout\fR, are shared by all threads.
-
+proviso that the memory management functions pointed to by \fBpcre_malloc\fP,
+\fBpcre_free\fP, \fBpcre_stack_malloc\fP, and \fBpcre_stack_free\fP, and the
+callout function pointed to by \fBpcre_callout\fP, are shared by all threads.
+.P
The compiled form of a regular expression is not altered during matching, so
the same compiled pattern can safely be used by several threads at once.
-
-.SH CHECKING BUILD-TIME OPTIONS
+.
+.
+.SH "SAVING PRECOMPILED PATTERNS FOR LATER USE"
+.rs
+.sp
+The compiled form of a regular expression can be saved and re-used at a later
+time, possibly by a different program, and even on a host other than the one on
+which it was compiled. Details are given in the
+.\" HREF
+\fBpcreprecompile\fP
+.\"
+documentation.
+.
+.
+.SH "CHECKING BUILD-TIME OPTIONS"
.rs
.sp
-.B int pcre_config(int \fIwhat\fR, void *\fIwhere\fR);
+.B int pcre_config(int \fIwhat\fP, void *\fIwhere\fP);
.PP
-The function \fBpcre_config()\fR makes it possible for a PCRE client to
+The function \fBpcre_config()\fP makes it possible for a PCRE client to
discover which optional features have been compiled into the PCRE library. The
.\" HREF
-\fBpcrebuild\fR
+\fBpcrebuild\fP
.\"
documentation has more details about these optional features.
-
-The first argument for \fBpcre_config()\fR is an integer, specifying which
+.P
+The first argument for \fBpcre_config()\fP is an integer, specifying which
information is required; the second argument is a pointer to a variable into
which the information is placed. The following information is available:
-
+.sp
PCRE_CONFIG_UTF8
-
+.sp
The output is an integer that is set to one if UTF-8 support is available;
otherwise it is set to zero.
-
+.sp
+ PCRE_CONFIG_UNICODE_PROPERTIES
+.sp
+The output is an integer that is set to one if support for Unicode character
+properties is available; otherwise it is set to zero.
+.sp
PCRE_CONFIG_NEWLINE
-
+.sp
The output is an integer that is set to the value of the code that is used for
the newline character. It is either linefeed (10) or carriage return (13), and
should normally be the standard character for your operating system.
-
+.sp
PCRE_CONFIG_LINK_SIZE
-
+.sp
The output is an integer that contains the number of bytes used for internal
linkage in compiled regular expressions. The value is 2, 3, or 4. Larger values
allow larger regular expressions to be compiled, at the expense of slower
matching. The default value of 2 is sufficient for all but the most massive
patterns, since it allows the compiled pattern to be up to 64K in size.
-
+.sp
PCRE_CONFIG_POSIX_MALLOC_THRESHOLD
-
+.sp
The output is an integer that contains the threshold above which the POSIX
-interface uses \fBmalloc()\fR for output vectors. Further details are given in
-the \fBpcreposix\fR documentation.
-
+interface uses \fBmalloc()\fP for output vectors. Further details are given in
+the
+.\" HREF
+\fBpcreposix\fP
+.\"
+documentation.
+.sp
PCRE_CONFIG_MATCH_LIMIT
-
+.sp
The output is an integer that gives the default limit for the number of
-internal matching function calls in a \fBpcre_exec()\fR execution. Further
-details are given with \fBpcre_exec()\fR below.
-
+internal matching function calls in a \fBpcre_exec()\fP execution. Further
+details are given with \fBpcre_exec()\fP below.
+.sp
PCRE_CONFIG_STACKRECURSE
-
+.sp
The output is an integer that is set to one if internal recursion is
implemented by recursive function calls that use the stack to remember their
state. This is the usual way that PCRE is compiled. The output is zero if PCRE
was compiled to use blocks of data on the heap instead of recursive function
-calls. In this case, \fBpcre_stack_malloc\fR and \fBpcre_stack_free\fR are
+calls. In this case, \fBpcre_stack_malloc\fP and \fBpcre_stack_free\fP are
called to manage memory blocks on the heap, thus avoiding the use of the stack.
-
-.SH COMPILING A PATTERN
+.
+.
+.SH "COMPILING A PATTERN"
.rs
.sp
-.B pcre *pcre_compile(const char *\fIpattern\fR, int \fIoptions\fR,
+.B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP,
.ti +5n
-.B const char **\fIerrptr\fR, int *\fIerroffset\fR,
+.B const char **\fIerrptr\fP, int *\fIerroffset\fP,
.ti +5n
-.B const unsigned char *\fItableptr\fR);
-.PP
-
-The function \fBpcre_compile()\fR is called to compile a pattern into an
+.B const unsigned char *\fItableptr\fP);
+.P
+The function \fBpcre_compile()\fP is called to compile a pattern into an
internal form. The pattern is a C string terminated by a binary zero, and
-is passed in the argument \fIpattern\fR. A pointer to a single block of memory
-that is obtained via \fBpcre_malloc\fR is returned. This contains the compiled
-code and related data. The \fBpcre\fR type is defined for the returned block;
+is passed in the \fIpattern\fP argument. A pointer to a single block of memory
+that is obtained via \fBpcre_malloc\fP is returned. This contains the compiled
+code and related data. The \fBpcre\fP type is defined for the returned block;
this is a typedef for a structure whose contents are not externally defined. It
is up to the caller to free the memory when it is no longer required.
-
+.P
Although the compiled code of a PCRE regex is relocatable, that is, it does not
-depend on memory location, the complete \fBpcre\fR data block is not
-fully relocatable, because it contains a copy of the \fItableptr\fR argument,
-which is an address (see below).
-
-The \fIoptions\fR argument contains independent bits that affect the
-compilation. It should be zero if no options are required. Some of the options,
-in particular, those that are compatible with Perl, can also be set and unset
-from within the pattern (see the detailed description of regular expressions
-in the \fBpcrepattern\fR documentation). For these options, the contents of the
-\fIoptions\fR argument specifies their initial settings at the start of
-compilation and execution. The PCRE_ANCHORED option can be set at the time of
-matching as well as at compile time.
-
-If \fIerrptr\fR is NULL, \fBpcre_compile()\fR returns NULL immediately.
-Otherwise, if compilation of a pattern fails, \fBpcre_compile()\fR returns
-NULL, and sets the variable pointed to by \fIerrptr\fR to point to a textual
+depend on memory location, the complete \fBpcre\fP data block is not
+fully relocatable, because it may contain a copy of the \fItableptr\fP
+argument, which is an address (see below).
+.P
+The \fIoptions\fP argument contains independent bits that affect the
+compilation. It should be zero if no options are required. The available
+options are described below. Some of them, in particular, those that are
+compatible with Perl, can also be set and unset from within the pattern (see
+the detailed description in the
+.\" HREF
+\fBpcrepattern\fP
+.\"
+documentation). For these options, the contents of the \fIoptions\fP argument
+specifies their initial settings at the start of compilation and execution. The
+PCRE_ANCHORED option can be set at the time of matching as well as at compile
+time.
+.P
+If \fIerrptr\fP is NULL, \fBpcre_compile()\fP returns NULL immediately.
+Otherwise, if compilation of a pattern fails, \fBpcre_compile()\fP returns
+NULL, and sets the variable pointed to by \fIerrptr\fP to point to a textual
error message. The offset from the start of the pattern to the character where
the error was discovered is placed in the variable pointed to by
-\fIerroffset\fR, which must not be NULL. If it is, an immediate error is given.
-
-If the final argument, \fItableptr\fR, is NULL, PCRE uses a default set of
-character tables which are built when it is compiled, using the default C
-locale. Otherwise, \fItableptr\fR must be the result of a call to
-\fBpcre_maketables()\fR. See the section on locale support below.
-
-This code fragment shows a typical straightforward call to \fBpcre_compile()\fR:
-
+\fIerroffset\fP, which must not be NULL. If it is, an immediate error is given.
+.P
+If the final argument, \fItableptr\fP, is NULL, PCRE uses a default set of
+character tables that are built when PCRE is compiled, using the default C
+locale. Otherwise, \fItableptr\fP must be an address that is the result of a
+call to \fBpcre_maketables()\fP. This value is stored with the compiled
+pattern, and used again by \fBpcre_exec()\fP, unless another table pointer is
+passed to it. For more discussion, see the section on locale support below.
+.P
+This code fragment shows a typical straightforward call to \fBpcre_compile()\fP:
+.sp
pcre *re;
const char *error;
int erroffset;
@@ -290,56 +336,69 @@ This code fragment shows a typical straightforward call to \fBpcre_compile()\fR:
&error, /* for error message */
&erroffset, /* for error offset */
NULL); /* use default character tables */
-
-The following option bits are defined:
-
+.sp
+The following names for option bits are defined in the \fBpcre.h\fP header
+file:
+.sp
PCRE_ANCHORED
-
+.sp
If this bit is set, the pattern is forced to be "anchored", that is, it is
-constrained to match only at the first matching point in the string which is
+constrained to match only at the first matching point in the string that is
being searched (the "subject string"). This effect can also be achieved by
appropriate constructs in the pattern itself, which is the only way to do it in
Perl.
-
+.sp
+ PCRE_AUTO_CALLOUT
+.sp
+If this bit is set, \fBpcre_compile()\fP automatically inserts callout items,
+all with number 255, before each pattern item. For discussion of the callout
+facility, see the
+.\" HREF
+\fBpcrecallout\fP
+.\"
+documentation.
+.sp
PCRE_CASELESS
-
+.sp
If this bit is set, letters in the pattern match both upper and lower case
letters. It is equivalent to Perl's /i option, and it can be changed within a
-pattern by a (?i) option setting.
-
+pattern by a (?i) option setting. When running in UTF-8 mode, case support for
+high-valued characters is available only when PCRE is built with Unicode
+character property support.
+.sp
PCRE_DOLLAR_ENDONLY
-
+.sp
If this bit is set, a dollar metacharacter in the pattern matches only at the
end of the subject string. Without this option, a dollar also matches
immediately before the final character if it is a newline (but not before any
other newlines). The PCRE_DOLLAR_ENDONLY option is ignored if PCRE_MULTILINE is
set. There is no equivalent to this option in Perl, and no way to set it within
a pattern.
-
+.sp
PCRE_DOTALL
-
+.sp
If this bit is set, a dot metacharater in the pattern matches all characters,
including newlines. Without it, newlines are excluded. This option is
equivalent to Perl's /s option, and it can be changed within a pattern by a
(?s) option setting. A negative class such as [^a] always matches a newline
character, independent of the setting of this option.
-
+.sp
PCRE_EXTENDED
-
+.sp
If this bit is set, whitespace data characters in the pattern are totally
ignored except when escaped or inside a character class. Whitespace does not
include the VT character (code 11). In addition, characters between an
unescaped # outside a character class and the next newline character,
inclusive, are also ignored. This is equivalent to Perl's /x option, and it can
be changed within a pattern by a (?x) option setting.
-
+.P
This option makes it possible to include comments inside complicated patterns.
Note, however, that this applies only to data characters. Whitespace characters
may never appear within special character sequences in a pattern, for example
within the sequence (?( which introduces a conditional subpattern.
-
+.sp
PCRE_EXTRA
-
+.sp
This option was invented in order to turn on additional functionality of PCRE
that is incompatible with Perl, but it is currently of very little use. When
set, any backslash in a pattern that is followed by a letter that has no
@@ -348,42 +407,42 @@ expansion. By default, as in Perl, a backslash followed by a letter with no
special meaning is treated as a literal. There are at present no other features
controlled by this option. It can also be set by a (?X) option setting within a
pattern.
-
+.sp
PCRE_MULTILINE
-
-By default, PCRE treats the subject string as consisting of a single "line" of
-characters (even if it actually contains several newlines). The "start of line"
+.sp
+By default, PCRE treats the subject string as consisting of a single line of
+characters (even if it actually contains newlines). The "start of line"
metacharacter (^) matches only at the start of the string, while the "end of
line" metacharacter ($) matches only at the end of the string, or before a
terminating newline (unless PCRE_DOLLAR_ENDONLY is set). This is the same as
Perl.
-
+.P
When PCRE_MULTILINE it is set, the "start of line" and "end of line" constructs
match immediately following or immediately before any newline in the subject
string, respectively, as well as at the very start and end. This is equivalent
to Perl's /m option, and it can be changed within a pattern by a (?m) option
-setting. If there are no "\\n" characters in a subject string, or no
+setting. If there are no "\en" characters in a subject string, or no
occurrences of ^ or $ in a pattern, setting PCRE_MULTILINE has no effect.
-
+.sp
PCRE_NO_AUTO_CAPTURE
-
+.sp
If this option is set, it disables the use of numbered capturing parentheses in
the pattern. Any opening parenthesis that is not followed by ? behaves as if it
were followed by ?: but named parentheses can still be used for capturing (and
they acquire numbers in the usual way). There is no equivalent of this option
in Perl.
-
+.sp
PCRE_UNGREEDY
-
+.sp
This option inverts the "greediness" of the quantifiers so that they are not
greedy by default, but become greedy if followed by "?". It is not compatible
with Perl. It can also be set by a (?U) option setting within the pattern.
-
+.sp
PCRE_UTF8
-
+.sp
This option causes PCRE to regard both the pattern and the subject as strings
of UTF-8 characters instead of single-byte character strings. However, it is
-available only if PCRE has been built to include UTF-8 support. If not, the use
+available only when PCRE is built to include UTF-8 support. If not, the use
of this option provokes an error. Details of how this option changes the
behaviour of PCRE are given in the
.\" HTML <a href="pcre.html#utf8support">
@@ -392,121 +451,148 @@ section on UTF-8 support
.\"
in the main
.\" HREF
-\fBpcre\fR
+\fBpcre\fP
.\"
page.
-
+.sp
PCRE_NO_UTF8_CHECK
-
+.sp
When PCRE_UTF8 is set, the validity of the pattern as a UTF-8 string is
automatically checked. If an invalid UTF-8 sequence of bytes is found,
-\fBpcre_compile()\fR returns an error. If you already know that your pattern is
+\fBpcre_compile()\fP returns an error. If you already know that your pattern is
valid, and you want to skip this check for performance reasons, you can set the
PCRE_NO_UTF8_CHECK option. When it is set, the effect of passing an invalid
UTF-8 string as a pattern is undefined. It may cause your program to crash.
-Note that there is a similar option for suppressing the checking of subject
-strings passed to \fBpcre_exec()\fR.
-
-
-.SH STUDYING A PATTERN
+Note that this option can also be passed to \fBpcre_exec()\fP, to suppress the
+UTF-8 validity checking of subject strings.
+.
+.
+.SH "STUDYING A PATTERN"
.rs
.sp
-.B pcre_extra *pcre_study(const pcre *\fIcode\fR, int \fIoptions\fR,
+.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP,
.ti +5n
-.B const char **\fIerrptr\fR);
+.B const char **\fIerrptr\fP);
.PP
-When a pattern is going to be used several times, it is worth spending more
-time analyzing it in order to speed up the time taken for matching. The
-function \fBpcre_study()\fR takes a pointer to a compiled pattern as its first
-argument. If studing the pattern produces additional information that will help
-speed up matching, \fBpcre_study()\fR returns a pointer to a \fBpcre_extra\fR
-block, in which the \fIstudy_data\fR field points to the results of the study.
-
-The returned value from a \fBpcre_study()\fR can be passed directly to
-\fBpcre_exec()\fR. However, the \fBpcre_extra\fR block also contains other
+If a compiled pattern is going to be used several times, it is worth spending
+more time analyzing it in order to speed up the time taken for matching. The
+function \fBpcre_study()\fP takes a pointer to a compiled pattern as its first
+argument. If studying the pattern produces additional information that will
+help speed up matching, \fBpcre_study()\fP returns a pointer to a
+\fBpcre_extra\fP block, in which the \fIstudy_data\fP field points to the
+results of the study.
+.P
+The returned value from \fBpcre_study()\fP can be passed directly to
+\fBpcre_exec()\fP. However, a \fBpcre_extra\fP block also contains other
fields that can be set by the caller before the block is passed; these are
-described below. If studying the pattern does not produce any additional
-information, \fBpcre_study()\fR returns NULL. In that circumstance, if the
-calling program wants to pass some of the other fields to \fBpcre_exec()\fR, it
-must set up its own \fBpcre_extra\fR block.
-
-The second argument contains option bits. At present, no options are defined
-for \fBpcre_study()\fR, and this argument should always be zero.
-
-The third argument for \fBpcre_study()\fR is a pointer for an error message. If
+described
+.\" HTML <a href="#extradata">
+.\" </a>
+below
+.\"
+in the section on matching a pattern.
+.P
+If studying the pattern does not produce any additional information,
+\fBpcre_study()\fP returns NULL. In that circumstance, if the calling program
+wants to pass any of the other fields to \fBpcre_exec()\fP, it must set up its
+own \fBpcre_extra\fP block.
+.P
+The second argument of \fBpcre_study()\fP contains option bits. At present, no
+options are defined, and this argument should always be zero.
+.P
+The third argument for \fBpcre_study()\fP is a pointer for an error message. If
studying succeeds (even if no data is returned), the variable it points to is
set to NULL. Otherwise it points to a textual error message. You should
-therefore test the error pointer for NULL after calling \fBpcre_study()\fR, to
+therefore test the error pointer for NULL after calling \fBpcre_study()\fP, to
be sure that it has run successfully.
-
-This is a typical call to \fBpcre_study\fR():
-
+.P
+This is a typical call to \fBpcre_study\fP():
+.sp
pcre_extra *pe;
pe = pcre_study(
re, /* result of pcre_compile() */
0, /* no options exist */
&error); /* set to NULL or points to a message */
-
+.sp
At present, studying a pattern is useful only for non-anchored patterns that do
not have a single fixed starting character. A bitmap of possible starting
-characters is created.
-
+bytes is created.
+.
+.
.\" HTML <a name="localesupport"></a>
-.SH LOCALE SUPPORT
+.SH "LOCALE SUPPORT"
.rs
.sp
PCRE handles caseless matching, and determines whether characters are letters,
-digits, or whatever, by reference to a set of tables. When running in UTF-8
-mode, this applies only to characters with codes less than 256. The library
-contains a default set of tables that is created in the default C locale when
-PCRE is compiled. This is used when the final argument of \fBpcre_compile()\fR
-is NULL, and is sufficient for many applications.
-
-An alternative set of tables can, however, be supplied. Such tables are built
-by calling the \fBpcre_maketables()\fR function, which has no arguments, in the
-relevant locale. The result can then be passed to \fBpcre_compile()\fR as often
-as necessary. For example, to build and use tables that are appropriate for the
-French locale (where accented characters with codes greater than 128 are
-treated as letters), the following code could be used:
-
- setlocale(LC_CTYPE, "fr");
+digits, or whatever, by reference to a set of tables, indexed by character
+value. (When running in UTF-8 mode, this applies only to characters with codes
+less than 128. Higher-valued codes never match escapes such as \ew or \ed, but
+can be tested with \ep if PCRE is built with Unicode character property
+support.)
+.P
+An internal set of tables is created in the default C locale when PCRE is
+built. This is used when the final argument of \fBpcre_compile()\fP is NULL,
+and is sufficient for many applications. An alternative set of tables can,
+however, be supplied. These may be created in a different locale from the
+default. As more and more applications change to using Unicode, the need for
+this locale support is expected to die away.
+.P
+External tables are built by calling the \fBpcre_maketables()\fP function,
+which has no arguments, in the relevant locale. The result can then be passed
+to \fBpcre_compile()\fP or \fBpcre_exec()\fP as often as necessary. For
+example, to build and use tables that are appropriate for the French locale
+(where accented characters with values greater than 128 are treated as letters),
+the following code could be used:
+.sp
+ setlocale(LC_CTYPE, "fr_FR");
tables = pcre_maketables();
re = pcre_compile(..., tables);
-
-The tables are built in memory that is obtained via \fBpcre_malloc\fR. The
-pointer that is passed to \fBpcre_compile\fR is saved with the compiled
-pattern, and the same tables are used via this pointer by \fBpcre_study()\fR
-and \fBpcre_exec()\fR. Thus, for any single pattern, compilation, studying and
-matching all happen in the same locale, but different patterns can be compiled
-in different locales. It is the caller's responsibility to ensure that the
-memory containing the tables remains available for as long as it is needed.
-
-.SH INFORMATION ABOUT A PATTERN
+.sp
+When \fBpcre_maketables()\fP runs, the tables are built in memory that is
+obtained via \fBpcre_malloc\fP. It is the caller's responsibility to ensure
+that the memory containing the tables remains available for as long as it is
+needed.
+.P
+The pointer that is passed to \fBpcre_compile()\fP is saved with the compiled
+pattern, and the same tables are used via this pointer by \fBpcre_study()\fP
+and normally also by \fBpcre_exec()\fP. Thus, by default, for any single
+pattern, compilation, studying and matching all happen in the same locale, but
+different patterns can be compiled in different locales.
+.P
+It is possible to pass a table pointer or NULL (indicating the use of the
+internal tables) to \fBpcre_exec()\fP. Although not intended for this purpose,
+this facility could be used to match a pattern in a different locale from the
+one in which it was compiled. Passing table pointers at run time is discussed
+below in the section on matching a pattern.
+.
+.
+.SH "INFORMATION ABOUT A PATTERN"
.rs
.sp
-.B int pcre_fullinfo(const pcre *\fIcode\fR, "const pcre_extra *\fIextra\fR,"
+.B int pcre_fullinfo(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP,"
.ti +5n
-.B int \fIwhat\fR, void *\fIwhere\fR);
+.B int \fIwhat\fP, void *\fIwhere\fP);
.PP
-The \fBpcre_fullinfo()\fR function returns information about a compiled
-pattern. It replaces the obsolete \fBpcre_info()\fR function, which is
+The \fBpcre_fullinfo()\fP function returns information about a compiled
+pattern. It replaces the obsolete \fBpcre_info()\fP function, which is
nevertheless retained for backwards compability (and is documented below).
-
-The first argument for \fBpcre_fullinfo()\fR is a pointer to the compiled
-pattern. The second argument is the result of \fBpcre_study()\fR, or NULL if
+.P
+The first argument for \fBpcre_fullinfo()\fP is a pointer to the compiled
+pattern. The second argument is the result of \fBpcre_study()\fP, or NULL if
the pattern was not studied. The third argument specifies which piece of
information is required, and the fourth argument is a pointer to a variable
to receive the data. The yield of the function is zero for success, or one of
the following negative numbers:
-
- PCRE_ERROR_NULL the argument \fIcode\fR was NULL
- the argument \fIwhere\fR was NULL
+.sp
+ PCRE_ERROR_NULL the argument \fIcode\fP was NULL
+ the argument \fIwhere\fP was NULL
PCRE_ERROR_BADMAGIC the "magic number" was not found
- PCRE_ERROR_BADOPTION the value of \fIwhat\fR was invalid
-
-Here is a typical call of \fBpcre_fullinfo()\fR, to obtain the length of the
-compiled pattern:
-
+ PCRE_ERROR_BADOPTION the value of \fIwhat\fP was invalid
+.sp
+The "magic number" is placed at the start of each compiled pattern as an simple
+check against passing an arbitrary memory pointer. Here is a typical call of
+\fBpcre_fullinfo()\fP, to obtain the length of the compiled pattern:
+.sp
int rc;
unsigned long int length;
rc = pcre_fullinfo(
@@ -514,167 +600,192 @@ compiled pattern:
pe, /* result of pcre_study(), or NULL */
PCRE_INFO_SIZE, /* what is required */
&length); /* where to put the data */
-
-The possible values for the third argument are defined in \fBpcre.h\fR, and are
+.sp
+The possible values for the third argument are defined in \fBpcre.h\fP, and are
as follows:
-
+.sp
PCRE_INFO_BACKREFMAX
-
+.sp
Return the number of the highest back reference in the pattern. The fourth
-argument should point to an \fBint\fR variable. Zero is returned if there are
+argument should point to an \fBint\fP variable. Zero is returned if there are
no back references.
-
+.sp
PCRE_INFO_CAPTURECOUNT
-
+.sp
Return the number of capturing subpatterns in the pattern. The fourth argument
-should point to an \fbint\fR variable.
-
+should point to an \fBint\fP variable.
+.sp
+ PCRE_INFO_DEFAULTTABLES
+.sp
+Return a pointer to the internal default character tables within PCRE. The
+fourth argument should point to an \fBunsigned char *\fP variable. This
+information call is provided for internal use by the \fBpcre_study()\fP
+function. External callers can cause PCRE to use its internal tables by passing
+a NULL table pointer.
+.sp
PCRE_INFO_FIRSTBYTE
-
+.sp
Return information about the first byte of any matched string, for a
non-anchored pattern. (This option used to be called PCRE_INFO_FIRSTCHAR; the
old name is still recognized for backwards compatibility.)
-
-If there is a fixed first byte, e.g. from a pattern such as (cat|cow|coyote),
-it is returned in the integer pointed to by \fIwhere\fR. Otherwise, if either
-
+.P
+If there is a fixed first byte, for example, from a pattern such as
+(cat|cow|coyote), it is returned in the integer pointed to by \fIwhere\fP.
+Otherwise, if either
+.sp
(a) the pattern was compiled with the PCRE_MULTILINE option, and every branch
starts with "^", or
-
+.sp
(b) every branch of the pattern starts with ".*" and PCRE_DOTALL is not set
(if it were set, the pattern would be anchored),
-
+.sp
-1 is returned, indicating that the pattern matches only at the start of a
subject string or after any newline within the string. Otherwise -2 is
returned. For anchored patterns, -2 is returned.
-
+.sp
PCRE_INFO_FIRSTTABLE
-
+.sp
If the pattern was studied, and this resulted in the construction of a 256-bit
table indicating a fixed set of bytes for the first byte in any matching
string, a pointer to the table is returned. Otherwise NULL is returned. The
-fourth argument should point to an \fBunsigned char *\fR variable.
-
+fourth argument should point to an \fBunsigned char *\fP variable.
+.sp
PCRE_INFO_LASTLITERAL
-
+.sp
Return the value of the rightmost literal byte that must exist in any matched
string, other than at its start, if such a byte has been recorded. The fourth
-argument should point to an \fBint\fR variable. If there is no such byte, -1 is
+argument should point to an \fBint\fP variable. If there is no such byte, -1 is
returned. For anchored patterns, a last literal byte is recorded only if it
follows something of variable length. For example, for the pattern
-/^a\\d+z\\d+/ the returned value is "z", but for /^a\\dz\\d/ the returned value
+/^a\ed+z\ed+/ the returned value is "z", but for /^a\edz\ed/ the returned value
is -1.
-
+.sp
PCRE_INFO_NAMECOUNT
PCRE_INFO_NAMEENTRYSIZE
PCRE_INFO_NAMETABLE
-
+.sp
PCRE supports the use of named as well as numbered capturing parentheses. The
names are just an additional way of identifying the parentheses, which still
-acquire a number. A caller that wants to extract data from a named subpattern
-must convert the name to a number in order to access the correct pointers in
-the output vector (described with \fBpcre_exec()\fR below). In order to do
-this, it must first use these three values to obtain the name-to-number mapping
-table for the pattern.
-
+acquire numbers. A convenience function called \fBpcre_get_named_substring()\fP
+is provided for extracting an individual captured substring by name. It is also
+possible to extract the data directly, by first converting the name to a number
+in order to access the correct pointers in the output vector (described with
+\fBpcre_exec()\fP below). To do the conversion, you need to use the
+name-to-number map, which is described by these three values.
+.P
The map consists of a number of fixed-size entries. PCRE_INFO_NAMECOUNT gives
the number of entries, and PCRE_INFO_NAMEENTRYSIZE gives the size of each
-entry; both of these return an \fBint\fR value. The entry size depends on the
+entry; both of these return an \fBint\fP value. The entry size depends on the
length of the longest name. PCRE_INFO_NAMETABLE returns a pointer to the first
-entry of the table (a pointer to \fBchar\fR). The first two bytes of each entry
+entry of the table (a pointer to \fBchar\fP). The first two bytes of each entry
are the number of the capturing parenthesis, most significant byte first. The
rest of the entry is the corresponding name, zero terminated. The names are in
alphabetical order. For example, consider the following pattern (assume
PCRE_EXTENDED is set, so white space - including newlines - is ignored):
-
- (?P<date> (?P<year>(\\d\\d)?\\d\\d) -
- (?P<month>\\d\\d) - (?P<day>\\d\\d) )
-
+.sp
+.\" JOIN
+ (?P<date> (?P<year>(\ed\ed)?\ed\ed) -
+ (?P<month>\ed\ed) - (?P<day>\ed\ed) )
+.sp
There are four named subpatterns, so the table has four entries, and each entry
in the table is eight bytes long. The table is as follows, with non-printing
-bytes shows in hex, and undefined bytes shown as ??:
-
+bytes shows in hexadecimal, and undefined bytes shown as ??:
+.sp
00 01 d a t e 00 ??
00 05 d a y 00 ?? ??
00 04 m o n t h 00
00 02 y e a r 00 ??
-
-When writing code to extract data from named subpatterns, remember that the
-length of each entry may be different for each compiled pattern.
-
+.sp
+When writing code to extract data from named subpatterns using the
+name-to-number map, remember that the length of each entry is likely to be
+different for each compiled pattern.
+.sp
PCRE_INFO_OPTIONS
-
+.sp
Return a copy of the options with which the pattern was compiled. The fourth
-argument should point to an \fBunsigned long int\fR variable. These option bits
-are those specified in the call to \fBpcre_compile()\fR, modified by any
+argument should point to an \fBunsigned long int\fP variable. These option bits
+are those specified in the call to \fBpcre_compile()\fP, modified by any
top-level option settings within the pattern itself.
-
+.P
A pattern is automatically anchored by PCRE if all of its top-level
alternatives begin with one of the following:
-
+.sp
^ unless PCRE_MULTILINE is set
- \\A always
- \\G always
+ \eA always
+ \eG always
+.\" JOIN
.* if PCRE_DOTALL is set and there are no back
references to the subpattern in which .* appears
-
+.sp
For such patterns, the PCRE_ANCHORED bit is set in the options returned by
-\fBpcre_fullinfo()\fR.
-
+\fBpcre_fullinfo()\fP.
+.sp
PCRE_INFO_SIZE
-
+.sp
Return the size of the compiled pattern, that is, the value that was passed as
-the argument to \fBpcre_malloc()\fR when PCRE was getting memory in which to
-place the compiled data. The fourth argument should point to a \fBsize_t\fR
+the argument to \fBpcre_malloc()\fP when PCRE was getting memory in which to
+place the compiled data. The fourth argument should point to a \fBsize_t\fP
variable.
-
+.sp
PCRE_INFO_STUDYSIZE
-
-Returns the size of the data block pointed to by the \fIstudy_data\fR field in
-a \fBpcre_extra\fR block. That is, it is the value that was passed to
-\fBpcre_malloc()\fR when PCRE was getting memory into which to place the data
-created by \fBpcre_study()\fR. The fourth argument should point to a
-\fBsize_t\fR variable.
-
-.SH OBSOLETE INFO FUNCTION
+.sp
+Return the size of the data block pointed to by the \fIstudy_data\fP field in
+a \fBpcre_extra\fP block. That is, it is the value that was passed to
+\fBpcre_malloc()\fP when PCRE was getting memory into which to place the data
+created by \fBpcre_study()\fP. The fourth argument should point to a
+\fBsize_t\fP variable.
+.
+.
+.SH "OBSOLETE INFO FUNCTION"
.rs
.sp
-.B int pcre_info(const pcre *\fIcode\fR, int *\fIoptptr\fR, int
-.B *\fIfirstcharptr\fR);
+.B int pcre_info(const pcre *\fIcode\fP, int *\fIoptptr\fP, int
+.B *\fIfirstcharptr\fP);
.PP
-The \fBpcre_info()\fR function is now obsolete because its interface is too
+The \fBpcre_info()\fP function is now obsolete because its interface is too
restrictive to return all the available data about a compiled pattern. New
-programs should use \fBpcre_fullinfo()\fR instead. The yield of
-\fBpcre_info()\fR is the number of capturing subpatterns, or one of the
+programs should use \fBpcre_fullinfo()\fP instead. The yield of
+\fBpcre_info()\fP is the number of capturing subpatterns, or one of the
following negative numbers:
-
- PCRE_ERROR_NULL the argument \fIcode\fR was NULL
+.sp
+ PCRE_ERROR_NULL the argument \fIcode\fP was NULL
PCRE_ERROR_BADMAGIC the "magic number" was not found
-
-If the \fIoptptr\fR argument is not NULL, a copy of the options with which the
+.sp
+If the \fIoptptr\fP argument is not NULL, a copy of the options with which the
pattern was compiled is placed in the integer it points to (see
PCRE_INFO_OPTIONS above).
-
-If the pattern is not anchored and the \fIfirstcharptr\fR argument is not NULL,
+.P
+If the pattern is not anchored and the \fIfirstcharptr\fP argument is not NULL,
it is used to pass back information about the first character of any matched
string (see PCRE_INFO_FIRSTBYTE above).
-
-.SH MATCHING A PATTERN
+.
+.
+.SH "MATCHING A PATTERN"
.rs
.sp
-.B int pcre_exec(const pcre *\fIcode\fR, "const pcre_extra *\fIextra\fR,"
+.B int pcre_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP,"
.ti +5n
-.B "const char *\fIsubject\fR," int \fIlength\fR, int \fIstartoffset\fR,
+.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
.ti +5n
-.B int \fIoptions\fR, int *\fIovector\fR, int \fIovecsize\fR);
-.PP
-The function \fBpcre_exec()\fR is called to match a subject string against a
-pre-compiled pattern, which is passed in the \fIcode\fR argument. If the
+.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP);
+.P
+The function \fBpcre_exec()\fP is called to match a subject string against a
+compiled pattern, which is passed in the \fIcode\fP argument. If the
pattern has been studied, the result of the study should be passed in the
-\fIextra\fR argument.
-
-Here is an example of a simple call to \fBpcre_exec()\fR:
-
+\fIextra\fP argument.
+.P
+In most applications, the pattern will have been compiled (and optionally
+studied) in the same process that calls \fBpcre_exec()\fP. However, it is
+possible to save compiled patterns and study data, and then use them later
+in different processes, possibly even on different hosts. For a discussion
+about this, see the
+.\" HREF
+\fBpcreprecompile\fP
+.\"
+documentation.
+.P
+Here is an example of a simple call to \fBpcre_exec()\fP:
+.sp
int rc;
int ovector[30];
rc = pcre_exec(
@@ -684,399 +795,494 @@ Here is an example of a simple call to \fBpcre_exec()\fR:
11, /* the length of the subject string */
0, /* start at offset 0 in the subject */
0, /* default options */
- ovector, /* vector for substring information */
- 30); /* number of elements in the vector */
-
-If the \fIextra\fR argument is not NULL, it must point to a \fBpcre_extra\fR
-data block. The \fBpcre_study()\fR function returns such a block (when it
+ ovector, /* vector of integers for substring information */
+ 30); /* number of elements in the vector (NOT size in bytes) */
+.
+.\" HTML <a name="extradata"></a>
+.SS "Extra data for \fBpcre_exec()\fR"
+.rs
+.sp
+If the \fIextra\fP argument is not NULL, it must point to a \fBpcre_extra\fP
+data block. The \fBpcre_study()\fP function returns such a block (when it
doesn't return NULL), but you can also create one for yourself, and pass
-additional information in it. The fields in the block are as follows:
-
- unsigned long int \fIflags\fR;
- void *\fIstudy_data\fR;
- unsigned long int \fImatch_limit\fR;
- void *\fIcallout_data\fR;
-
-The \fIflags\fR field is a bitmap that specifies which of the other fields
+additional information in it. The fields in a \fBpcre_extra\fP block are as
+follows:
+.sp
+ unsigned long int \fIflags\fP;
+ void *\fIstudy_data\fP;
+ unsigned long int \fImatch_limit\fP;
+ void *\fIcallout_data\fP;
+ const unsigned char *\fItables\fP;
+.sp
+The \fIflags\fP field is a bitmap that specifies which of the other fields
are set. The flag bits are:
-
+.sp
PCRE_EXTRA_STUDY_DATA
PCRE_EXTRA_MATCH_LIMIT
PCRE_EXTRA_CALLOUT_DATA
-
-Other flag bits should be set to zero. The \fIstudy_data\fR field is set in the
-\fBpcre_extra\fR block that is returned by \fBpcre_study()\fR, together with
-the appropriate flag bit. You should not set this yourself, but you can add to
-the block by setting the other fields.
-
-The \fImatch_limit\fR field provides a means of preventing PCRE from using up a
+ PCRE_EXTRA_TABLES
+.sp
+Other flag bits should be set to zero. The \fIstudy_data\fP field is set in the
+\fBpcre_extra\fP block that is returned by \fBpcre_study()\fP, together with
+the appropriate flag bit. You should not set this yourself, but you may add to
+the block by setting the other fields and their corresponding flag bits.
+.P
+The \fImatch_limit\fP field provides a means of preventing PCRE from using up a
vast amount of resources when running patterns that are not going to match,
but which have a very large number of possibilities in their search trees. The
-classic example is the use of nested unlimited repeats. Internally, PCRE uses a
-function called \fBmatch()\fR which it calls repeatedly (sometimes
-recursively). The limit is imposed on the number of times this function is
-called during a match, which has the effect of limiting the amount of recursion
-and backtracking that can take place. For patterns that are not anchored, the
-count starts from zero for each position in the subject string.
-
+classic example is the use of nested unlimited repeats.
+.P
+Internally, PCRE uses a function called \fBmatch()\fP which it calls repeatedly
+(sometimes recursively). The limit is imposed on the number of times this
+function is called during a match, which has the effect of limiting the amount
+of recursion and backtracking that can take place. For patterns that are not
+anchored, the count starts from zero for each position in the subject string.
+.P
The default limit for the library can be set when PCRE is built; the default
default is 10 million, which handles all but the most extreme cases. You can
-reduce the default by suppling \fBpcre_exec()\fR with a \fRpcre_extra\fR block
-in which \fImatch_limit\fR is set to a smaller value, and
-PCRE_EXTRA_MATCH_LIMIT is set in the \fIflags\fR field. If the limit is
-exceeded, \fBpcre_exec()\fR returns PCRE_ERROR_MATCHLIMIT.
-
-The \fIpcre_callout\fR field is used in conjunction with the "callout" feature,
-which is described in the \fBpcrecallout\fR documentation.
-
-The PCRE_ANCHORED option can be passed in the \fIoptions\fR argument, whose
-unused bits must be zero. This limits \fBpcre_exec()\fR to matching at the
-first matching position. However, if a pattern was compiled with PCRE_ANCHORED,
-or turned out to be anchored by virtue of its contents, it cannot be made
-unachored at matching time.
-
-When PCRE_UTF8 was set at compile time, the validity of the subject as a UTF-8
-string is automatically checked, and the value of \fIstartoffset\fR is also
-checked to ensure that it points to the start of a UTF-8 character. If an
-invalid UTF-8 sequence of bytes is found, \fBpcre_exec()\fR returns the error
-PCRE_ERROR_BADUTF8. If \fIstartoffset\fR contains an invalid value,
-PCRE_ERROR_BADUTF8_OFFSET is returned.
-
-If you already know that your subject is valid, and you want to skip these
-checks for performance reasons, you can set the PCRE_NO_UTF8_CHECK option when
-calling \fBpcre_exec()\fR. You might want to do this for the second and
-subsequent calls to \fBpcre_exec()\fR if you are making repeated calls to find
-all the matches in a single subject string. However, you should be sure that
-the value of \fIstartoffset\fR points to the start of a UTF-8 character. When
-PCRE_NO_UTF8_CHECK is set, the effect of passing an invalid UTF-8 string as a
-subject, or a value of \fIstartoffset\fR that does not point to the start of a
-UTF-8 character, is undefined. Your program may crash.
-
-There are also three further options that can be set only at matching time:
-
+reduce the default by suppling \fBpcre_exec()\fP with a \fBpcre_extra\fP block
+in which \fImatch_limit\fP is set to a smaller value, and
+PCRE_EXTRA_MATCH_LIMIT is set in the \fIflags\fP field. If the limit is
+exceeded, \fBpcre_exec()\fP returns PCRE_ERROR_MATCHLIMIT.
+.P
+The \fIpcre_callout\fP field is used in conjunction with the "callout" feature,
+which is described in the
+.\" HREF
+\fBpcrecallout\fP
+.\"
+documentation.
+.P
+The \fItables\fP field is used to pass a character tables pointer to
+\fBpcre_exec()\fP; this overrides the value that is stored with the compiled
+pattern. A non-NULL value is stored with the compiled pattern only if custom
+tables were supplied to \fBpcre_compile()\fP via its \fItableptr\fP argument.
+If NULL is passed to \fBpcre_exec()\fP using this mechanism, it forces PCRE's
+internal tables to be used. This facility is helpful when re-using patterns
+that have been saved after compiling with an external set of tables, because
+the external tables might be at a different address when \fBpcre_exec()\fP is
+called. See the
+.\" HREF
+\fBpcreprecompile\fP
+.\"
+documentation for a discussion of saving compiled patterns for later use.
+.
+.SS "Option bits for \fBpcre_exec()\fP"
+.rs
+.sp
+The unused bits of the \fIoptions\fP argument for \fBpcre_exec()\fP must be
+zero. The only bits that may be set are PCRE_ANCHORED, PCRE_NOTBOL,
+PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NO_UTF8_CHECK and PCRE_PARTIAL.
+.sp
+ PCRE_ANCHORED
+.sp
+The PCRE_ANCHORED option limits \fBpcre_exec()\fP to matching at the first
+matching position. If a pattern was compiled with PCRE_ANCHORED, or turned out
+to be anchored by virtue of its contents, it cannot be made unachored at
+matching time.
+.sp
PCRE_NOTBOL
-
-The first character of the string is not the beginning of a line, so the
-circumflex metacharacter should not match before it. Setting this without
-PCRE_MULTILINE (at compile time) causes circumflex never to match.
-
+.sp
+This option specifies that first character of the subject string is not the
+beginning of a line, so the circumflex metacharacter should not match before
+it. Setting this without PCRE_MULTILINE (at compile time) causes circumflex
+never to match. This option affects only the behaviour of the circumflex
+metacharacter. It does not affect \eA.
+.sp
PCRE_NOTEOL
-
-The end of the string is not the end of a line, so the dollar metacharacter
-should not match it nor (except in multiline mode) a newline immediately before
-it. Setting this without PCRE_MULTILINE (at compile time) causes dollar never
-to match.
-
+.sp
+This option specifies that the end of the subject string is not the end of a
+line, so the dollar metacharacter should not match it nor (except in multiline
+mode) a newline immediately before it. Setting this without PCRE_MULTILINE (at
+compile time) causes dollar never to match. This option affects only the
+behaviour of the dollar metacharacter. It does not affect \eZ or \ez.
+.sp
PCRE_NOTEMPTY
-
+.sp
An empty string is not considered to be a valid match if this option is set. If
there are alternatives in the pattern, they are tried. If all the alternatives
match the empty string, the entire match fails. For example, if the pattern
-
+.sp
a?b?
-
+.sp
is applied to a string not beginning with "a" or "b", it matches the empty
string at the start of the subject. With PCRE_NOTEMPTY set, this match is not
valid, so PCRE searches further into the string for occurrences of "a" or "b".
-
+.P
Perl has no direct equivalent of PCRE_NOTEMPTY, but it does make a special case
-of a pattern match of the empty string within its \fBsplit()\fR function, and
+of a pattern match of the empty string within its \fBsplit()\fP function, and
when using the /g modifier. It is possible to emulate Perl's behaviour after
matching a null string by first trying the match again at the same offset with
-PCRE_NOTEMPTY set, and then if that fails by advancing the starting offset (see
-below) and trying an ordinary match again.
-
-The subject string is passed to \fBpcre_exec()\fR as a pointer in
-\fIsubject\fR, a length in \fIlength\fR, and a starting byte offset in
-\fIstartoffset\fR. Unlike the pattern string, the subject may contain binary
-zero bytes. When the starting offset is zero, the search for a match starts at
-the beginning of the subject, and this is by far the most common case.
-
-If the pattern was compiled with the PCRE_UTF8 option, the subject must be a
-sequence of bytes that is a valid UTF-8 string, and the starting offset must
-point to the beginning of a UTF-8 character. If an invalid UTF-8 string or
-offset is passed, an error (either PCRE_ERROR_BADUTF8 or
-PCRE_ERROR_BADUTF8_OFFSET) is returned, unless the option PCRE_NO_UTF8_CHECK is
-set, in which case PCRE's behaviour is not defined.
-
+PCRE_NOTEMPTY and PCRE_ANCHORED, and then if that fails by advancing the
+starting offset (see below) and trying an ordinary match again. There is some
+code that demonstrates how to do this in the \fIpcredemo.c\fP sample program.
+.sp
+ PCRE_NO_UTF8_CHECK
+.sp
+When PCRE_UTF8 is set at compile time, the validity of the subject as a UTF-8
+string is automatically checked when \fBpcre_exec()\fP is subsequently called.
+The value of \fIstartoffset\fP is also checked to ensure that it points to the
+start of a UTF-8 character. If an invalid UTF-8 sequence of bytes is found,
+\fBpcre_exec()\fP returns the error PCRE_ERROR_BADUTF8. If \fIstartoffset\fP
+contains an invalid value, PCRE_ERROR_BADUTF8_OFFSET is returned.
+.P
+If you already know that your subject is valid, and you want to skip these
+checks for performance reasons, you can set the PCRE_NO_UTF8_CHECK option when
+calling \fBpcre_exec()\fP. You might want to do this for the second and
+subsequent calls to \fBpcre_exec()\fP if you are making repeated calls to find
+all the matches in a single subject string. However, you should be sure that
+the value of \fIstartoffset\fP points to the start of a UTF-8 character. When
+PCRE_NO_UTF8_CHECK is set, the effect of passing an invalid UTF-8 string as a
+subject, or a value of \fIstartoffset\fP that does not point to the start of a
+UTF-8 character, is undefined. Your program may crash.
+.sp
+ PCRE_PARTIAL
+.sp
+This option turns on the partial matching feature. If the subject string fails
+to match the pattern, but at some point during the matching process the end of
+the subject was reached (that is, the subject partially matches the pattern and
+the failure to match occurred only because there were not enough subject
+characters), \fBpcre_exec()\fP returns PCRE_ERROR_PARTIAL instead of
+PCRE_ERROR_NOMATCH. When PCRE_PARTIAL is used, there are restrictions on what
+may appear in the pattern. These are discussed in the
+.\" HREF
+\fBpcrepartial\fP
+.\"
+documentation.
+.
+.SS "The string to be matched by \fBpcre_exec()\fP"
+.rs
+.sp
+The subject string is passed to \fBpcre_exec()\fP as a pointer in
+\fIsubject\fP, a length in \fIlength\fP, and a starting byte offset in
+\fIstartoffset\fP. In UTF-8 mode, the byte offset must point to the start of a
+UTF-8 character. Unlike the pattern string, the subject may contain binary zero
+bytes. When the starting offset is zero, the search for a match starts at the
+beginning of the subject, and this is by far the most common case.
+.P
A non-zero starting offset is useful when searching for another match in the
-same subject by calling \fBpcre_exec()\fR again after a previous success.
-Setting \fIstartoffset\fR differs from just passing over a shortened string and
+same subject by calling \fBpcre_exec()\fP again after a previous success.
+Setting \fIstartoffset\fP differs from just passing over a shortened string and
setting PCRE_NOTBOL in the case of a pattern that begins with any kind of
lookbehind. For example, consider the pattern
-
- \\Biss\\B
-
-which finds occurrences of "iss" in the middle of words. (\\B matches only if
+.sp
+ \eBiss\eB
+.sp
+which finds occurrences of "iss" in the middle of words. (\eB matches only if
the current position in the subject is not a word boundary.) When applied to
-the string "Mississipi" the first call to \fBpcre_exec()\fR finds the first
-occurrence. If \fBpcre_exec()\fR is called again with just the remainder of the
-subject, namely "issipi", it does not match, because \\B is always false at the
+the string "Mississipi" the first call to \fBpcre_exec()\fP finds the first
+occurrence. If \fBpcre_exec()\fP is called again with just the remainder of the
+subject, namely "issipi", it does not match, because \eB is always false at the
start of the subject, which is deemed to be a word boundary. However, if
-\fBpcre_exec()\fR is passed the entire string again, but with \fIstartoffset\fR
+\fBpcre_exec()\fP is passed the entire string again, but with \fIstartoffset\fP
set to 4, it finds the second occurrence of "iss" because it is able to look
behind the starting point to discover that it is preceded by a letter.
-
+.P
If a non-zero starting offset is passed when the pattern is anchored, one
-attempt to match at the given offset is tried. This can only succeed if the
+attempt to match at the given offset is made. This can only succeed if the
pattern does not require the match to be at the start of the subject.
-
+.
+.SS "How \fBpcre_exec()\fP returns captured substrings"
+.rs
+.sp
In general, a pattern matches a certain portion of the subject, and in
addition, further substrings from the subject may be picked out by parts of the
pattern. Following the usage in Jeffrey Friedl's book, this is called
"capturing" in what follows, and the phrase "capturing subpattern" is used for
a fragment of a pattern that picks out a substring. PCRE supports several other
kinds of parenthesized subpattern that do not cause substrings to be captured.
-
+.P
Captured substrings are returned to the caller via a vector of integer offsets
-whose address is passed in \fIovector\fR. The number of elements in the vector
-is passed in \fIovecsize\fR. The first two-thirds of the vector is used to pass
-back captured substrings, each substring using a pair of integers. The
-remaining third of the vector is used as workspace by \fBpcre_exec()\fR while
-matching capturing subpatterns, and is not available for passing back
-information. The length passed in \fIovecsize\fR should always be a multiple of
-three. If it is not, it is rounded down.
-
-When a match has been successful, information about captured substrings is
-returned in pairs of integers, starting at the beginning of \fIovector\fR, and
+whose address is passed in \fIovector\fP. The number of elements in the vector
+is passed in \fIovecsize\fP, which must be a non-negative number. \fBNote\fP:
+this argument is NOT the size of \fIovector\fP in bytes.
+.P
+The first two-thirds of the vector is used to pass back captured substrings,
+each substring using a pair of integers. The remaining third of the vector is
+used as workspace by \fBpcre_exec()\fP while matching capturing subpatterns,
+and is not available for passing back information. The length passed in
+\fIovecsize\fP should always be a multiple of three. If it is not, it is
+rounded down.
+.P
+When a match is successful, information about captured substrings is returned
+in pairs of integers, starting at the beginning of \fIovector\fP, and
continuing up to two-thirds of its length at the most. The first element of a
pair is set to the offset of the first character in a substring, and the second
is set to the offset of the first character after the end of a substring. The
-first pair, \fIovector[0]\fR and \fIovector[1]\fR, identify the portion of the
+first pair, \fIovector[0]\fP and \fIovector[1]\fP, identify the portion of the
subject string matched by the entire pattern. The next pair is used for the
-first capturing subpattern, and so on. The value returned by \fBpcre_exec()\fR
+first capturing subpattern, and so on. The value returned by \fBpcre_exec()\fP
is the number of pairs that have been set. If there are no capturing
subpatterns, the return value from a successful match is 1, indicating that
just the first pair of offsets has been set.
-
+.P
Some convenience functions are provided for extracting the captured substrings
as separate strings. These are described in the following section.
-
-It is possible for an capturing subpattern number \fIn+1\fR to match some
-part of the subject when subpattern \fIn\fR has not been used at all. For
+.P
+It is possible for an capturing subpattern number \fIn+1\fP to match some
+part of the subject when subpattern \fIn\fP has not been used at all. For
example, if the string "abc" is matched against the pattern (a|(z))(bc)
subpatterns 1 and 3 are matched, but 2 is not. When this happens, both offset
values corresponding to the unused subpattern are set to -1.
-
+.P
If a capturing subpattern is matched repeatedly, it is the last portion of the
-string that it matched that gets returned.
-
-If the vector is too small to hold all the captured substrings, it is used as
-far as possible (up to two-thirds of its length), and the function returns a
-value of zero. In particular, if the substring offsets are not of interest,
-\fBpcre_exec()\fR may be called with \fIovector\fR passed as NULL and
-\fIovecsize\fR as zero. However, if the pattern contains back references and
-the \fIovector\fR isn't big enough to remember the related substrings, PCRE has
-to get additional memory for use during matching. Thus it is usually advisable
-to supply an \fIovector\fR.
-
-Note that \fBpcre_info()\fR can be used to find out how many capturing
+string that it matched that is returned.
+.P
+If the vector is too small to hold all the captured substring offsets, it is
+used as far as possible (up to two-thirds of its length), and the function
+returns a value of zero. In particular, if the substring offsets are not of
+interest, \fBpcre_exec()\fP may be called with \fIovector\fP passed as NULL and
+\fIovecsize\fP as zero. However, if the pattern contains back references and
+the \fIovector\fP is not big enough to remember the related substrings, PCRE
+has to get additional memory for use during matching. Thus it is usually
+advisable to supply an \fIovector\fP.
+.P
+Note that \fBpcre_info()\fP can be used to find out how many capturing
subpatterns there are in a compiled pattern. The smallest size for
-\fIovector\fR that will allow for \fIn\fR captured substrings, in addition to
-the offsets of the substring matched by the whole pattern, is (\fIn\fR+1)*3.
-
-If \fBpcre_exec()\fR fails, it returns a negative number. The following are
+\fIovector\fP that will allow for \fIn\fP captured substrings, in addition to
+the offsets of the substring matched by the whole pattern, is (\fIn\fP+1)*3.
+.
+.SS "Return values from \fBpcre_exec()\fP"
+.rs
+.sp
+If \fBpcre_exec()\fP fails, it returns a negative number. The following are
defined in the header file:
-
+.sp
PCRE_ERROR_NOMATCH (-1)
-
+.sp
The subject string did not match the pattern.
-
+.sp
PCRE_ERROR_NULL (-2)
-
-Either \fIcode\fR or \fIsubject\fR was passed as NULL, or \fIovector\fR was
-NULL and \fIovecsize\fR was not zero.
-
+.sp
+Either \fIcode\fP or \fIsubject\fP was passed as NULL, or \fIovector\fP was
+NULL and \fIovecsize\fP was not zero.
+.sp
PCRE_ERROR_BADOPTION (-3)
-
-An unrecognized bit was set in the \fIoptions\fR argument.
-
+.sp
+An unrecognized bit was set in the \fIoptions\fP argument.
+.sp
PCRE_ERROR_BADMAGIC (-4)
-
+.sp
PCRE stores a 4-byte "magic number" at the start of the compiled code, to catch
-the case when it is passed a junk pointer. This is the error it gives when the
-magic number isn't present.
-
+the case when it is passed a junk pointer and to detect when a pattern that was
+compiled in an environment of one endianness is run in an environment with the
+other endianness. This is the error that PCRE gives when the magic number is
+not present.
+.sp
PCRE_ERROR_UNKNOWN_NODE (-5)
-
+.sp
While running the pattern match, an unknown item was encountered in the
compiled pattern. This error could be caused by a bug in PCRE or by overwriting
of the compiled pattern.
-
+.sp
PCRE_ERROR_NOMEMORY (-6)
-
-If a pattern contains back references, but the \fIovector\fR that is passed to
-\fBpcre_exec()\fR is not big enough to remember the referenced substrings, PCRE
+.sp
+If a pattern contains back references, but the \fIovector\fP that is passed to
+\fBpcre_exec()\fP is not big enough to remember the referenced substrings, PCRE
gets a block of memory at the start of matching to use for this purpose. If the
-call via \fBpcre_malloc()\fR fails, this error is given. The memory is freed at
-the end of matching.
-
+call via \fBpcre_malloc()\fP fails, this error is given. The memory is
+automatically freed at the end of matching.
+.sp
PCRE_ERROR_NOSUBSTRING (-7)
-
-This error is used by the \fBpcre_copy_substring()\fR,
-\fBpcre_get_substring()\fR, and \fBpcre_get_substring_list()\fR functions (see
-below). It is never returned by \fBpcre_exec()\fR.
-
+.sp
+This error is used by the \fBpcre_copy_substring()\fP,
+\fBpcre_get_substring()\fP, and \fBpcre_get_substring_list()\fP functions (see
+below). It is never returned by \fBpcre_exec()\fP.
+.sp
PCRE_ERROR_MATCHLIMIT (-8)
-
-The recursion and backtracking limit, as specified by the \fImatch_limit\fR
-field in a \fBpcre_extra\fR structure (or defaulted) was reached. See the
+.sp
+The recursion and backtracking limit, as specified by the \fImatch_limit\fP
+field in a \fBpcre_extra\fP structure (or defaulted) was reached. See the
description above.
-
+.sp
PCRE_ERROR_CALLOUT (-9)
-
-This error is never generated by \fBpcre_exec()\fR itself. It is provided for
+.sp
+This error is never generated by \fBpcre_exec()\fP itself. It is provided for
use by callout functions that want to yield a distinctive error code. See the
-\fBpcrecallout\fR documentation for details.
-
+.\" HREF
+\fBpcrecallout\fP
+.\"
+documentation for details.
+.sp
PCRE_ERROR_BADUTF8 (-10)
-
+.sp
A string that contains an invalid UTF-8 byte sequence was passed as a subject.
-
+.sp
PCRE_ERROR_BADUTF8_OFFSET (-11)
-
+.sp
The UTF-8 byte sequence that was passed as a subject was valid, but the value
-of \fIstartoffset\fR did not point to the beginning of a UTF-8 character.
-
-.SH EXTRACTING CAPTURED SUBSTRINGS BY NUMBER
+of \fIstartoffset\fP did not point to the beginning of a UTF-8 character.
+.sp
+ PCRE_ERROR_PARTIAL (-12)
+.sp
+The subject string did not match, but it did match partially. See the
+.\" HREF
+\fBpcrepartial\fP
+.\"
+documentation for details of partial matching.
+.sp
+ PCRE_ERROR_BAD_PARTIAL (-13)
+.sp
+The PCRE_PARTIAL option was used with a compiled pattern containing items that
+are not supported for partial matching. See the
+.\" HREF
+\fBpcrepartial\fP
+.\"
+documentation for details of partial matching.
+.sp
+ PCRE_ERROR_INTERNAL (-14)
+.sp
+An unexpected internal error has occurred. This error could be caused by a bug
+in PCRE or by overwriting of the compiled pattern.
+.sp
+ PCRE_ERROR_BADCOUNT (-15)
+.sp
+This error is given if the value of the \fIovecsize\fP argument is negative.
+.
+.
+.SH "EXTRACTING CAPTURED SUBSTRINGS BY NUMBER"
.rs
.sp
-.B int pcre_copy_substring(const char *\fIsubject\fR, int *\fIovector\fR,
+.B int pcre_copy_substring(const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, int \fIstringnumber\fR, char *\fIbuffer\fR,
+.B int \fIstringcount\fP, int \fIstringnumber\fP, char *\fIbuffer\fP,
.ti +5n
-.B int \fIbuffersize\fR);
+.B int \fIbuffersize\fP);
.PP
.br
-.B int pcre_get_substring(const char *\fIsubject\fR, int *\fIovector\fR,
+.B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, int \fIstringnumber\fR,
+.B int \fIstringcount\fP, int \fIstringnumber\fP,
.ti +5n
-.B const char **\fIstringptr\fR);
+.B const char **\fIstringptr\fP);
.PP
.br
-.B int pcre_get_substring_list(const char *\fIsubject\fR,
+.B int pcre_get_substring_list(const char *\fIsubject\fP,
.ti +5n
-.B int *\fIovector\fR, int \fIstringcount\fR, "const char ***\fIlistptr\fR);"
+.B int *\fIovector\fP, int \fIstringcount\fP, "const char ***\fIlistptr\fP);"
.PP
Captured substrings can be accessed directly by using the offsets returned by
-\fBpcre_exec()\fR in \fIovector\fR. For convenience, the functions
-\fBpcre_copy_substring()\fR, \fBpcre_get_substring()\fR, and
-\fBpcre_get_substring_list()\fR are provided for extracting captured substrings
+\fBpcre_exec()\fP in \fIovector\fP. For convenience, the functions
+\fBpcre_copy_substring()\fP, \fBpcre_get_substring()\fP, and
+\fBpcre_get_substring_list()\fP are provided for extracting captured substrings
as new, separate, zero-terminated strings. These functions identify substrings
by number. The next section describes functions for extracting named
substrings. A substring that contains a binary zero is correctly extracted and
has a further zero added on the end, but the result is not, of course,
a C string.
-
+.P
The first three arguments are the same for all three of these functions:
-\fIsubject\fR is the subject string which has just been successfully matched,
-\fIovector\fR is a pointer to the vector of integer offsets that was passed to
-\fBpcre_exec()\fR, and \fIstringcount\fR is the number of substrings that were
+\fIsubject\fP is the subject string that has just been successfully matched,
+\fIovector\fP is a pointer to the vector of integer offsets that was passed to
+\fBpcre_exec()\fP, and \fIstringcount\fP is the number of substrings that were
captured by the match, including the substring that matched the entire regular
-expression. This is the value returned by \fBpcre_exec\fR if it is greater than
-zero. If \fBpcre_exec()\fR returned zero, indicating that it ran out of space
-in \fIovector\fR, the value passed as \fIstringcount\fR should be the size of
-the vector divided by three.
-
-The functions \fBpcre_copy_substring()\fR and \fBpcre_get_substring()\fR
-extract a single substring, whose number is given as \fIstringnumber\fR. A
-value of zero extracts the substring that matched the entire pattern, while
-higher values extract the captured substrings. For \fBpcre_copy_substring()\fR,
-the string is placed in \fIbuffer\fR, whose length is given by
-\fIbuffersize\fR, while for \fBpcre_get_substring()\fR a new block of memory is
-obtained via \fBpcre_malloc\fR, and its address is returned via
-\fIstringptr\fR. The yield of the function is the length of the string, not
+expression. This is the value returned by \fBpcre_exec()\fP if it is greater
+than zero. If \fBpcre_exec()\fP returned zero, indicating that it ran out of
+space in \fIovector\fP, the value passed as \fIstringcount\fP should be the
+number of elements in the vector divided by three.
+.P
+The functions \fBpcre_copy_substring()\fP and \fBpcre_get_substring()\fP
+extract a single substring, whose number is given as \fIstringnumber\fP. A
+value of zero extracts the substring that matched the entire pattern, whereas
+higher values extract the captured substrings. For \fBpcre_copy_substring()\fP,
+the string is placed in \fIbuffer\fP, whose length is given by
+\fIbuffersize\fP, while for \fBpcre_get_substring()\fP a new block of memory is
+obtained via \fBpcre_malloc\fP, and its address is returned via
+\fIstringptr\fP. The yield of the function is the length of the string, not
including the terminating zero, or one of
-
+.sp
PCRE_ERROR_NOMEMORY (-6)
-
-The buffer was too small for \fBpcre_copy_substring()\fR, or the attempt to get
-memory failed for \fBpcre_get_substring()\fR.
-
+.sp
+The buffer was too small for \fBpcre_copy_substring()\fP, or the attempt to get
+memory failed for \fBpcre_get_substring()\fP.
+.sp
PCRE_ERROR_NOSUBSTRING (-7)
-
-There is no substring whose number is \fIstringnumber\fR.
-
-The \fBpcre_get_substring_list()\fR function extracts all available substrings
+.sp
+There is no substring whose number is \fIstringnumber\fP.
+.P
+The \fBpcre_get_substring_list()\fP function extracts all available substrings
and builds a list of pointers to them. All this is done in a single block of
-memory which is obtained via \fBpcre_malloc\fR. The address of the memory block
-is returned via \fIlistptr\fR, which is also the start of the list of string
+memory that is obtained via \fBpcre_malloc\fP. The address of the memory block
+is returned via \fIlistptr\fP, which is also the start of the list of string
pointers. The end of the list is marked by a NULL pointer. The yield of the
function is zero if all went well, or
-
+.sp
PCRE_ERROR_NOMEMORY (-6)
-
+.sp
if the attempt to get the memory block failed.
-
+.P
When any of these functions encounter a substring that is unset, which can
-happen when capturing subpattern number \fIn+1\fR matches some part of the
-subject, but subpattern \fIn\fR has not been used at all, they return an empty
+happen when capturing subpattern number \fIn+1\fP matches some part of the
+subject, but subpattern \fIn\fP has not been used at all, they return an empty
string. This can be distinguished from a genuine zero-length substring by
-inspecting the appropriate offset in \fIovector\fR, which is negative for unset
+inspecting the appropriate offset in \fIovector\fP, which is negative for unset
substrings.
-
-The two convenience functions \fBpcre_free_substring()\fR and
-\fBpcre_free_substring_list()\fR can be used to free the memory returned by
-a previous call of \fBpcre_get_substring()\fR or
-\fBpcre_get_substring_list()\fR, respectively. They do nothing more than call
-the function pointed to by \fBpcre_free\fR, which of course could be called
+.P
+The two convenience functions \fBpcre_free_substring()\fP and
+\fBpcre_free_substring_list()\fP can be used to free the memory returned by
+a previous call of \fBpcre_get_substring()\fP or
+\fBpcre_get_substring_list()\fP, respectively. They do nothing more than call
+the function pointed to by \fBpcre_free\fP, which of course could be called
directly from a C program. However, PCRE is used in some situations where it is
linked via a special interface to another programming language which cannot use
-\fBpcre_free\fR directly; it is for these cases that the functions are
+\fBpcre_free\fP directly; it is for these cases that the functions are
provided.
-
-.SH EXTRACTING CAPTURED SUBSTRINGS BY NAME
+.
+.
+.SH "EXTRACTING CAPTURED SUBSTRINGS BY NAME"
.rs
.sp
-.B int pcre_copy_named_substring(const pcre *\fIcode\fR,
+.B int pcre_get_stringnumber(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIsubject\fR, int *\fIovector\fR,
-.ti +5n
-.B int \fIstringcount\fR, const char *\fIstringname\fR,
-.ti +5n
-.B char *\fIbuffer\fR, int \fIbuffersize\fR);
+.B const char *\fIname\fP);
.PP
.br
-.B int pcre_get_stringnumber(const pcre *\fIcode\fR,
+.B int pcre_copy_named_substring(const pcre *\fIcode\fP,
+.ti +5n
+.B const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B const char *\fIname\fR);
+.B int \fIstringcount\fP, const char *\fIstringname\fP,
+.ti +5n
+.B char *\fIbuffer\fP, int \fIbuffersize\fP);
.PP
.br
-.B int pcre_get_named_substring(const pcre *\fIcode\fR,
+.B int pcre_get_named_substring(const pcre *\fIcode\fP,
.ti +5n
-.B const char *\fIsubject\fR, int *\fIovector\fR,
+.B const char *\fIsubject\fP, int *\fIovector\fP,
.ti +5n
-.B int \fIstringcount\fR, const char *\fIstringname\fR,
+.B int \fIstringcount\fP, const char *\fIstringname\fP,
.ti +5n
-.B const char **\fIstringptr\fR);
+.B const char **\fIstringptr\fP);
.PP
-To extract a substring by name, you first have to find associated number. This
-can be done by calling \fBpcre_get_stringnumber()\fR. The first argument is the
-compiled pattern, and the second is the name. For example, for this pattern
-
- ab(?<xxx>\\d+)...
-
-the number of the subpattern called "xxx" is 1. Given the number, you can then
-extract the substring directly, or use one of the functions described in the
-previous section. For convenience, there are also two functions that do the
-whole job.
-
-Most of the arguments of \fIpcre_copy_named_substring()\fR and
-\fIpcre_get_named_substring()\fR are the same as those for the functions that
-extract by number, and so are not re-described here. There are just two
-differences.
-
+To extract a substring by name, you first have to find associated number.
+For example, for this pattern
+.sp
+ (a+)b(?<xxx>\ed+)...
+.sp
+the number of the subpattern called "xxx" is 2. You can find the number from
+the name by calling \fBpcre_get_stringnumber()\fP. The first argument is the
+compiled pattern, and the second is the name. The yield of the function is the
+subpattern number, or PCRE_ERROR_NOSUBSTRING (-7) if there is no subpattern of
+that name.
+.P
+Given the number, you can extract the substring directly, or use one of the
+functions described in the previous section. For convenience, there are also
+two functions that do the whole job.
+.P
+Most of the arguments of \fIpcre_copy_named_substring()\fP and
+\fIpcre_get_named_substring()\fP are the same as those for the similarly named
+functions that extract by number. As these are described in the previous
+section, they are not re-described here. There are just two differences:
+.P
First, instead of a substring number, a substring name is given. Second, there
is an extra argument, given at the start, which is a pointer to the compiled
pattern. This is needed in order to gain access to the name-to-number
translation table.
-
-These functions call \fBpcre_get_stringnumber()\fR, and if it succeeds, they
-then call \fIpcre_copy_substring()\fR or \fIpcre_get_substring()\fR, as
+.P
+These functions call \fBpcre_get_stringnumber()\fP, and if it succeeds, they
+then call \fIpcre_copy_substring()\fP or \fIpcre_get_substring()\fP, as
appropriate.
-
+.P
.in 0
-Last updated: 09 December 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcrebuild.3 b/doc/pcrebuild.3
index a91782c..8ac5882 100644
--- a/doc/pcrebuild.3
+++ b/doc/pcrebuild.3
@@ -1,145 +1,174 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH PCRE BUILD-TIME OPTIONS
+.SH "PCRE BUILD-TIME OPTIONS"
.rs
.sp
This document describes the optional features of PCRE that can be selected when
the library is compiled. They are all selected, or deselected, by providing
-options to the \fBconfigure\fR script which is run before the \fBmake\fR
-command. The complete list of options for \fBconfigure\fR (which includes the
+options to the \fBconfigure\fP script that is run before the \fBmake\fP
+command. The complete list of options for \fBconfigure\fP (which includes the
standard ones such as the selection of the installation directory) can be
obtained by running
-
+.sp
./configure --help
-
+.sp
The following sections describe certain options whose names begin with --enable
or --disable. These settings specify changes to the defaults for the
-\fBconfigure\fR command. Because of the way that \fBconfigure\fR works,
+\fBconfigure\fP command. Because of the way that \fBconfigure\fP works,
--enable and --disable always come in pairs, so the complementary option always
exists as well, but as it specifies the default, it is not described.
-
-.SH UTF-8 SUPPORT
+.
+.SH "UTF-8 SUPPORT"
.rs
.sp
To build PCRE with support for UTF-8 character strings, add
-
+.sp
--enable-utf8
-
-to the \fBconfigure\fR command. Of itself, this does not make PCRE treat
+.sp
+to the \fBconfigure\fP command. Of itself, this does not make PCRE treat
strings as UTF-8. As well as compiling PCRE with this option, you also have
-have to set the PCRE_UTF8 option when you call the \fBpcre_compile()\fR
+have to set the PCRE_UTF8 option when you call the \fBpcre_compile()\fP
function.
-
-.SH CODE VALUE OF NEWLINE
+.
+.SH "UNICODE CHARACTER PROPERTY SUPPORT"
+.rs
+.sp
+UTF-8 support allows PCRE to process character values greater than 255 in the
+strings that it handles. On its own, however, it does not provide any
+facilities for accessing the properties of such characters. If you want to be
+able to use the pattern escapes \eP, \ep, and \eX, which refer to Unicode
+character properties, you must add
+.sp
+ --enable-unicode-properties
+.sp
+to the \fBconfigure\fP command. This implies UTF-8 support, even if you have
+not explicitly requested it.
+.P
+Including Unicode property support adds around 90K of tables to the PCRE
+library, approximately doubling its size. Only the general category properties
+such as \fILu\fP and \fINd\fP are supported. Details are given in the
+.\" HREF
+\fBpcrepattern\fP
+.\"
+documentation.
+.
+.SH "CODE VALUE OF NEWLINE"
.rs
.sp
By default, PCRE treats character 10 (linefeed) as the newline character. This
is the normal newline character on Unix-like systems. You can compile PCRE to
use character 13 (carriage return) instead by adding
-
+.sp
--enable-newline-is-cr
-
-to the \fBconfigure\fR command. For completeness there is also a
+.sp
+to the \fBconfigure\fP command. For completeness there is also a
--enable-newline-is-lf option, which explicitly specifies linefeed as the
newline character.
-
-.SH BUILDING SHARED AND STATIC LIBRARIES
+.
+.SH "BUILDING SHARED AND STATIC LIBRARIES"
.rs
.sp
-The PCRE building process uses \fBlibtool\fR to build both shared and static
+The PCRE building process uses \fBlibtool\fP to build both shared and static
Unix libraries by default. You can suppress one of these by adding one of
-
+.sp
--disable-shared
--disable-static
-
-to the \fBconfigure\fR command, as required.
-
-.SH POSIX MALLOC USAGE
+.sp
+to the \fBconfigure\fP command, as required.
+.
+.SH "POSIX MALLOC USAGE"
.rs
.sp
-When PCRE is called through the POSIX interface (see the \fBpcreposix\fR
+When PCRE is called through the POSIX interface (see the
+.\" HREF
+\fBpcreposix\fP
+.\"
documentation), additional working storage is required for holding the pointers
-to capturing substrings because PCRE requires three integers per substring,
+to capturing substrings, because PCRE requires three integers per substring,
whereas the POSIX interface provides only two. If the number of expected
substrings is small, the wrapper function uses space on the stack, because this
-is faster than using \fBmalloc()\fR for each call. The default threshold above
+is faster than using \fBmalloc()\fP for each call. The default threshold above
which the stack is no longer used is 10; it can be changed by adding a setting
such as
-
+.sp
--with-posix-malloc-threshold=20
-
-to the \fBconfigure\fR command.
-
-.SH LIMITING PCRE RESOURCE USAGE
+.sp
+to the \fBconfigure\fP command.
+.
+.SH "LIMITING PCRE RESOURCE USAGE"
.rs
.sp
-Internally, PCRE has a function called \fBmatch()\fR which it calls repeatedly
-(possibly recursively) when performing a matching operation. By limiting the
-number of times this function may be called, a limit can be placed on the
-resources used by a single call to \fBpcre_exec()\fR. The limit can be changed
-at run time, as described in the \fBpcreapi\fR documentation. The default is 10
-million, but this can be changed by adding a setting such as
-
+Internally, PCRE has a function called \fBmatch()\fP, which it calls repeatedly
+(possibly recursively) when matching a pattern. By controlling the maximum
+number of times this function may be called during a single matching operation,
+a limit can be placed on the resources used by a single call to
+\fBpcre_exec()\fP. The limit can be changed at run time, as described in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+documentation. The default is 10 million, but this can be changed by adding a
+setting such as
+.sp
--with-match-limit=500000
-
-to the \fBconfigure\fR command.
-
-.SH HANDLING VERY LARGE PATTERNS
+.sp
+to the \fBconfigure\fP command.
+.
+.SH "HANDLING VERY LARGE PATTERNS"
.rs
.sp
Within a compiled pattern, offset values are used to point from one part to
another (for example, from an opening parenthesis to an alternation
-metacharacter). By default two-byte values are used for these offsets, leading
+metacharacter). By default, two-byte values are used for these offsets, leading
to a maximum size for a compiled pattern of around 64K. This is sufficient to
handle all but the most gigantic patterns. Nevertheless, some people do want to
process enormous patterns, so it is possible to compile PCRE to use three-byte
or four-byte offsets by adding a setting such as
-
+.sp
--with-link-size=3
-
-to the \fBconfigure\fR command. The value given must be 2, 3, or 4. Using
+.sp
+to the \fBconfigure\fP command. The value given must be 2, 3, or 4. Using
longer offsets slows down the operation of PCRE because it has to load
additional bytes when handling them.
-
+.P
If you build PCRE with an increased link size, test 2 (and test 5 if you are
using UTF-8) will fail. Part of the output of these tests is a representation
of the compiled pattern, and this changes with the link size.
-
-.SH AVOIDING EXCESSIVE STACK USAGE
+.
+.SH "AVOIDING EXCESSIVE STACK USAGE"
.rs
.sp
PCRE implements backtracking while matching by making recursive calls to an
-internal function called \fBmatch()\fR. In environments where the size of the
+internal function called \fBmatch()\fP. In environments where the size of the
stack is limited, this can severely limit PCRE's operation. (The Unix
environment does not usually suffer from this problem.) An alternative approach
that uses memory from the heap to remember data, instead of using recursive
function calls, has been implemented to work round this problem. If you want to
build a version of PCRE that works this way, add
-
+.sp
--disable-stack-for-recursion
-
-to the \fBconfigure\fR command. With this configuration, PCRE will use the
-\fBpcre_stack_malloc\fR and \fBpcre_stack_free\fR variables to call memory
+.sp
+to the \fBconfigure\fP command. With this configuration, PCRE will use the
+\fBpcre_stack_malloc\fP and \fBpcre_stack_free\fP variables to call memory
management functions. Separate functions are provided because the usage is very
predictable: the block sizes requested are always the same, and the blocks are
always freed in reverse order. A calling program might be able to implement
-optimized functions that perform better than the standard \fBmalloc()\fR and
-\fBfree()\fR functions. PCRE runs noticeably more slowly when built in this
+optimized functions that perform better than the standard \fBmalloc()\fP and
+\fBfree()\fP functions. PCRE runs noticeably more slowly when built in this
way.
-
-.SH USING EBCDIC CODE
+.
+.SH "USING EBCDIC CODE"
.rs
.sp
PCRE assumes by default that it will run in an environment where the character
-code is ASCII (or UTF-8, which is a superset of ASCII). PCRE can, however, be
+code is ASCII (or Unicode, which is a superset of ASCII). PCRE can, however, be
compiled to run in an EBCDIC environment by adding
-
+.sp
--enable-ebcdic
-
-to the \fBconfigure\fR command.
-
+.sp
+to the \fBconfigure\fP command.
+.P
.in 0
-Last updated: 09 December 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcrecallout.3 b/doc/pcrecallout.3
index bfbb66b..5fd8ff8 100644
--- a/doc/pcrecallout.3
+++ b/doc/pcrecallout.3
@@ -1,7 +1,7 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH PCRE CALLOUTS
+.SH "PCRE CALLOUTS"
.rs
.sp
.B int (*pcre_callout)(pcre_callout_block *);
@@ -9,84 +9,147 @@ PCRE - Perl-compatible regular expressions
PCRE provides a feature called "callout", which is a means of temporarily
passing control to the caller of PCRE in the middle of pattern matching. The
caller of PCRE provides an external function by putting its entry point in the
-global variable \fIpcre_callout\fR. By default, this variable contains NULL,
+global variable \fIpcre_callout\fP. By default, this variable contains NULL,
which disables all calling out.
-
+.P
Within a regular expression, (?C) indicates the points at which the external
function is to be called. Different callout points can be identified by putting
a number less than 256 after the letter C. The default value is zero.
For example, this pattern has two callout points:
-
- (?C1)\dabc(?C2)def
-
-During matching, when PCRE reaches a callout point (and \fIpcre_callout\fR is
-set), the external function is called. Its only argument is a pointer to a
-\fBpcre_callout\fR block. This contains the following variables:
-
- int \fIversion\fR;
- int \fIcallout_number\fR;
- int *\fIoffset_vector\fR;
- const char *\fIsubject\fR;
- int \fIsubject_length\fR;
- int \fIstart_match\fR;
- int \fIcurrent_position\fR;
- int \fIcapture_top\fR;
- int \fIcapture_last\fR;
- void *\fIcallout_data\fR;
-
-The \fIversion\fR field is an integer containing the version number of the
-block format. The current version is zero. The version number may change in
-future if additional fields are added, but the intention is never to remove any
-of the existing fields.
-
-The \fIcallout_number\fR field contains the number of the callout, as compiled
-into the pattern (that is, the number after ?C).
-
-The \fIoffset_vector\fR field is a pointer to the vector of offsets that was
-passed by the caller to \fBpcre_exec()\fR. The contents can be inspected in
+.sp
+ (?C1)\deabc(?C2)def
+.sp
+If the PCRE_AUTO_CALLOUT option bit is set when \fBpcre_compile()\fP is called,
+PCRE automatically inserts callouts, all with number 255, before each item in
+the pattern. For example, if PCRE_AUTO_CALLOUT is used with the pattern
+.sp
+ A(\ed{2}|--)
+.sp
+it is processed as if it were
+.sp
+(?C255)A(?C255)((?C255)\ed{2}(?C255)|(?C255)-(?C255)-(?C255))(?C255)
+.sp
+Notice that there is a callout before and after each parenthesis and
+alternation bar. Automatic callouts can be used for tracking the progress of
+pattern matching. The
+.\" HREF
+\fBpcretest\fP
+.\"
+command has an option that sets automatic callouts; when it is used, the output
+indicates how the pattern is matched. This is useful information when you are
+trying to optimize the performance of a particular pattern.
+.
+.
+.SH "MISSING CALLOUTS"
+.rs
+.sp
+You should be aware that, because of optimizations in the way PCRE matches
+patterns, callouts sometimes do not happen. For example, if the pattern is
+.sp
+ ab(?C4)cd
+.sp
+PCRE knows that any matching string must contain the letter "d". If the subject
+string is "abyz", the lack of "d" means that matching doesn't ever start, and
+the callout is never reached. However, with "abyd", though the result is still
+no match, the callout is obeyed.
+.
+.
+.SH "THE CALLOUT INTERFACE"
+.rs
+.sp
+During matching, when PCRE reaches a callout point, the external function
+defined by \fIpcre_callout\fP is called (if it is set). The only argument is a
+pointer to a \fBpcre_callout\fP block. This structure contains the following
+fields:
+.sp
+ int \fIversion\fP;
+ int \fIcallout_number\fP;
+ int *\fIoffset_vector\fP;
+ const char *\fIsubject\fP;
+ int \fIsubject_length\fP;
+ int \fIstart_match\fP;
+ int \fIcurrent_position\fP;
+ int \fIcapture_top\fP;
+ int \fIcapture_last\fP;
+ void *\fIcallout_data\fP;
+ int \fIpattern_position\fP;
+ int \fInext_item_length\fP;
+.sp
+The \fIversion\fP field is an integer containing the version number of the
+block format. The initial version was 0; the current version is 1. The version
+number will change again in future if additional fields are added, but the
+intention is never to remove any of the existing fields.
+.P
+The \fIcallout_number\fP field contains the number of the callout, as compiled
+into the pattern (that is, the number after ?C for manual callouts, and 255 for
+automatically generated callouts).
+.P
+The \fIoffset_vector\fP field is a pointer to the vector of offsets that was
+passed by the caller to \fBpcre_exec()\fP. The contents can be inspected in
order to extract substrings that have been matched so far, in the same way as
for extracting substrings after a match has completed.
-
-The \fIsubject\fR and \fIsubject_length\fR fields contain copies the values
-that were passed to \fBpcre_exec()\fR.
-
-The \fIstart_match\fR field contains the offset within the subject at which the
+.P
+The \fIsubject\fP and \fIsubject_length\fP fields contain copies of the values
+that were passed to \fBpcre_exec()\fP.
+.P
+The \fIstart_match\fP field contains the offset within the subject at which the
current match attempt started. If the pattern is not anchored, the callout
-function may be called several times for different starting points.
-
-The \fIcurrent_position\fR field contains the offset within the subject of the
+function may be called several times from the same point in the pattern for
+different starting points in the subject.
+.P
+The \fIcurrent_position\fP field contains the offset within the subject of the
current match pointer.
-
-The \fIcapture_top\fR field contains one more than the number of the highest
+.P
+The \fIcapture_top\fP field contains one more than the number of the highest
numbered captured substring so far. If no substrings have been captured,
-the value of \fIcapture_top\fR is one.
-
-The \fIcapture_last\fR field contains the number of the most recently captured
-substring.
-
-The \fIcallout_data\fR field contains a value that is passed to
-\fBpcre_exec()\fR by the caller specifically so that it can be passed back in
-callouts. It is passed in the \fIpcre_callout\fR field of the \fBpcre_extra\fR
-data structure. If no such data was passed, the value of \fIcallout_data\fR in
-a \fBpcre_callout\fR block is NULL. There is a description of the
-\fBpcre_extra\fR structure in the \fBpcreapi\fR documentation.
-
-
-.SH RETURN VALUES
+the value of \fIcapture_top\fP is one.
+.P
+The \fIcapture_last\fP field contains the number of the most recently captured
+substring. If no substrings have been captured, its value is -1.
+.P
+The \fIcallout_data\fP field contains a value that is passed to
+\fBpcre_exec()\fP by the caller specifically so that it can be passed back in
+callouts. It is passed in the \fIpcre_callout\fP field of the \fBpcre_extra\fP
+data structure. If no such data was passed, the value of \fIcallout_data\fP in
+a \fBpcre_callout\fP block is NULL. There is a description of the
+\fBpcre_extra\fP structure in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+documentation.
+.P
+The \fIpattern_position\fP field is present from version 1 of the
+\fIpcre_callout\fP structure. It contains the offset to the next item to be
+matched in the pattern string.
+.P
+The \fInext_item_length\fP field is present from version 1 of the
+\fIpcre_callout\fP structure. It contains the length of the next item to be
+matched in the pattern string. When the callout immediately precedes an
+alternation bar, a closing parenthesis, or the end of the pattern, the length
+is zero. When the callout precedes an opening parenthesis, the length is that
+of the entire subpattern.
+.P
+The \fIpattern_position\fP and \fInext_item_length\fP fields are intended to
+help in distinguishing between different automatic callouts, which all have the
+same callout number. However, they are set for all callouts.
+.
+.
+.SH "RETURN VALUES"
.rs
.sp
-The callout function returns an integer. If the value is zero, matching
-proceeds as normal. If the value is greater than zero, matching fails at the
-current point, but backtracking to test other possibilities goes ahead, just as
-if a lookahead assertion had failed. If the value is less than zero, the match
-is abandoned, and \fBpcre_exec()\fR returns the value.
-
+The external callout function returns an integer to PCRE. If the value is zero,
+matching proceeds as normal. If the value is greater than zero, matching fails
+at the current point, but backtracking to test other matching possibilities
+goes ahead, just as if a lookahead assertion had failed. If the value is less
+than zero, the match is abandoned, and \fBpcre_exec()\fP returns the negative
+value.
+.P
Negative values should normally be chosen from the set of PCRE_ERROR_xxx
values. In particular, PCRE_ERROR_NOMATCH forces a standard "no match" failure.
The error number PCRE_ERROR_CALLOUT is reserved for use by callout functions;
it will never be used by PCRE itself.
-
+.P
.in 0
-Last updated: 21 January 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcrecompat.3 b/doc/pcrecompat.3
index e358f60..6a853e0 100644
--- a/doc/pcrecompat.3
+++ b/doc/pcrecompat.3
@@ -1,13 +1,13 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH DIFFERENCES FROM PERL
+.SH "DIFFERENCES BETWEEN PCRE AND PERL"
.rs
.sp
This document describes the differences in the ways that PCRE and Perl handle
regular expressions. The differences described here are with respect to Perl
5.8.
-
+.P
1. PCRE does not have full UTF-8 support. Details of what it does have are
given in the
.\" HTML <a href="pcre.html#utf8support">
@@ -16,92 +16,106 @@ section on UTF-8 support
.\"
in the main
.\" HREF
-\fBpcre\fR
+\fBpcre\fP
.\"
page.
-
+.P
2. PCRE does not allow repeat quantifiers on lookahead assertions. Perl permits
them, but they do not mean what you might think. For example, (?!a){3} does
not assert that the next three characters are not "a". It just asserts that the
next character is not "a" three times.
-
+.P
3. Capturing subpatterns that occur inside negative lookahead assertions are
counted, but their entries in the offsets vector are never set. Perl sets its
numerical variables from any such patterns that are matched before the
assertion fails to match something (thereby succeeding), but only if the
negative lookahead assertion contains just one branch.
-
+.P
4. Though binary zero characters are supported in the subject string, they are
not allowed in a pattern string because it is passed as a normal C string,
-terminated by zero. The escape sequence "\\0" can be used in the pattern to
+terminated by zero. The escape sequence \e0 can be used in the pattern to
represent a binary zero.
-
-5. The following Perl escape sequences are not supported: \\l, \\u, \\L,
-\\U, \\P, \\p, \\N, and \\X. In fact these are implemented by Perl's general
-string-handling and are not part of its pattern matching engine. If any of
-these are encountered by PCRE, an error is generated.
-
-6. PCRE does support the \\Q...\\E escape for quoting substrings. Characters in
+.P
+5. The following Perl escape sequences are not supported: \el, \eu, \eL,
+\eU, and \eN. In fact these are implemented by Perl's general string-handling
+and are not part of its pattern matching engine. If any of these are
+encountered by PCRE, an error is generated.
+.P
+6. The Perl escape sequences \ep, \eP, and \eX are supported only if PCRE is
+built with Unicode character property support. The properties that can be
+tested with \ep and \eP are limited to the general category properties such as
+Lu and Nd.
+.P
+7. PCRE does support the \eQ...\eE escape for quoting substrings. Characters in
between are treated as literals. This is slightly different from Perl in that $
and @ are also handled as literals inside the quotes. In Perl, they cause
variable interpolation (but of course PCRE does not have variables). Note the
following examples:
-
+.sp
Pattern PCRE matches Perl matches
-
- \\Qabc$xyz\\E abc$xyz abc followed by the
+.sp
+.\" JOIN
+ \eQabc$xyz\eE abc$xyz abc followed by the
contents of $xyz
- \\Qabc\\$xyz\\E abc\\$xyz abc\\$xyz
- \\Qabc\\E\\$\\Qxyz\\E abc$xyz abc$xyz
-
-The \\Q...\\E sequence is recognized both inside and outside character classes.
-
-7. Fairly obviously, PCRE does not support the (?{code}) and (?p{code})
-constructions. However, there is some experimental support for recursive
-patterns using the non-Perl items (?R), (?number) and (?P>name). Also, the PCRE
-"callout" feature allows an external function to be called during pattern
-matching.
-
-8. There are some differences that are concerned with the settings of captured
+ \eQabc\e$xyz\eE abc\e$xyz abc\e$xyz
+ \eQabc\eE\e$\eQxyz\eE abc$xyz abc$xyz
+.sp
+The \eQ...\eE sequence is recognized both inside and outside character classes.
+.P
+8. Fairly obviously, PCRE does not support the (?{code}) and (?p{code})
+constructions. However, there is support for recursive patterns using the
+non-Perl items (?R), (?number), and (?P>name). Also, the PCRE "callout" feature
+allows an external function to be called during pattern matching. See the
+.\" HREF
+\fBpcrecallout\fP
+.\"
+documentation for details.
+.P
+9. There are some differences that are concerned with the settings of captured
strings when part of a pattern is repeated. For example, matching "aba" against
the pattern /^(a(b)?)+$/ in Perl leaves $2 unset, but in PCRE it is set to "b".
-
-9. PCRE provides some extensions to the Perl regular expression facilities:
-
+.P
+10. PCRE provides some extensions to the Perl regular expression facilities:
+.sp
(a) Although lookbehind assertions must match fixed length strings, each
alternative branch of a lookbehind assertion can match a different length of
string. Perl requires them all to have the same length.
-
+.sp
(b) If PCRE_DOLLAR_ENDONLY is set and PCRE_MULTILINE is not set, the $
meta-character matches only at the very end of the string.
-
+.sp
(c) If PCRE_EXTRA is set, a backslash followed by a letter with no special
meaning is faulted.
-
+.sp
(d) If PCRE_UNGREEDY is set, the greediness of the repetition quantifiers is
inverted, that is, by default they are not greedy, but if followed by a
question mark they are.
-
-(e) PCRE_ANCHORED can be used to force a pattern to be tried only at the first
-matching position in the subject string.
-
+.sp
+(e) PCRE_ANCHORED can be used at matching time to force a pattern to be tried
+only at the first matching position in the subject string.
+.sp
(f) The PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, and PCRE_NO_AUTO_CAPTURE
-options for \fBpcre_exec()\fR have no Perl equivalents.
-
+options for \fBpcre_exec()\fP have no Perl equivalents.
+.sp
(g) The (?R), (?number), and (?P>name) constructs allows for recursive pattern
matching (Perl can do this using the (?p{code}) construct, which PCRE cannot
support.)
-
+.sp
(h) PCRE supports named capturing substrings, using the Python syntax.
-
+.sp
(i) PCRE supports the possessive quantifier "++" syntax, taken from Sun's Java
package.
-
+.sp
(j) The (R) condition, for testing recursion, is a PCRE extension.
-
+.sp
(k) The callout facility is PCRE-specific.
-
+.sp
+(l) The partial matching facility is PCRE-specific.
+.sp
+(m) Patterns compiled by PCRE can be saved and re-used at a later time, even on
+different hosts that have the other endianness.
+.P
.in 0
-Last updated: 09 December 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcregrep.1 b/doc/pcregrep.1
index c40dc05..56c37d8 100644
--- a/doc/pcregrep.1
+++ b/doc/pcregrep.1
@@ -3,95 +3,95 @@
pcregrep - a grep with Perl-compatible regular expressions.
.SH SYNOPSIS
.B pcregrep [-Vcfhilnrsuvx] [long options] [pattern] [file1 file2 ...]
-
+.
.SH DESCRIPTION
.rs
.sp
-\fBpcregrep\fR searches files for character patterns, in the same way as other
+\fBpcregrep\fP searches files for character patterns, in the same way as other
grep commands do, but it uses the PCRE regular expression library to support
patterns that are compatible with the regular expressions of Perl 5. See
.\" HREF
-\fBpcrepattern\fR
+\fBpcrepattern\fP
.\"
for a full description of syntax and semantics of the regular expressions that
PCRE supports.
-
-A pattern must be specified on the command line unless the \fB-f\fR option is
+.P
+A pattern must be specified on the command line unless the \fB-f\fP option is
used (see below).
-
-If no files are specified, \fBpcregrep\fR reads the standard input. By default,
+.P
+If no files are specified, \fBpcregrep\fP reads the standard input. By default,
each line that matches the pattern is copied to the standard output, and if
there is more than one file, the file name is printed before each line of
-output. However, there are options that can change how \fBpcregrep\fR behaves.
-
-Lines are limited to BUFSIZ characters. BUFSIZ is defined in \fB<stdio.h>\fR.
+output. However, there are options that can change how \fBpcregrep\fP behaves.
+.P
+Lines are limited to BUFSIZ characters. BUFSIZ is defined in \fB<stdio.h>\fP.
The newline character is removed from the end of each line before it is matched
against the pattern.
-
+.
.SH OPTIONS
.rs
.sp
.TP 10
-\fB-V\fR
+\fB-V\fP
Write the version number of the PCRE library being used to the standard error
stream.
.TP
-\fB-c\fR
+\fB-c\fP
Do not print individual lines; instead just print a count of the number of
lines that would otherwise have been printed. If several files are given, a
count is printed for each of them.
.TP
-\fB-f\fR\fIfilename\fR
+\fB-f\fP\fIfilename\fP
Read a number of patterns from the file, one per line, and match all of them
against each line of input. A line is output if any of the patterns match it.
-When \fB-f\fR is used, no pattern is taken from the command line; all arguments
+When \fB-f\fP is used, no pattern is taken from the command line; all arguments
are treated as file names. There is a maximum of 100 patterns. Trailing white
space is removed, and blank lines are ignored. An empty file contains no
patterns and therefore matches nothing.
.TP
-\fB-h\fR
+\fB-h\fP
Suppress printing of filenames when searching multiple files.
.TP
-\fB-i\fR
+\fB-i\fP
Ignore upper/lower case distinctions during comparisons.
.TP
-\fB-l\fR
+\fB-l\fP
Instead of printing lines from the files, just print the names of the files
containing lines that would have been printed. Each file name is printed
once, on a separate line.
.TP
-\fB-n\fR
+\fB-n\fP
Precede each line by its line number in the file.
.TP
-\fB-r\fR
+\fB-r\fP
If any file is a directory, recursively scan the files it contains. Without
-\fB-r\fR a directory is scanned as a normal file.
+\fB-r\fP a directory is scanned as a normal file.
.TP
-\fB-s\fR
+\fB-s\fP
Work silently, that is, display nothing except error messages.
The exit status indicates whether any matches were found.
.TP
-\fB-u\fR
+\fB-u\fP
Operate in UTF-8 mode. This option is available only if PCRE has been compiled
-with UTF-8 support. Both the pattern and each subject line are assumed to be
-valid strings of UTF-8 characters.
+with UTF-8 support. Both the pattern and each subject line must be valid
+strings of UTF-8 characters.
.TP
-\fB-v\fR
-Invert the sense of the match, so that lines which do \fInot\fR match the
+\fB-v\fP
+Invert the sense of the match, so that lines which do \fInot\fP match the
pattern are now the ones that are found.
.TP
-\fB-x\fR
+\fB-x\fP
Force the pattern to be anchored (it must start matching at the beginning of
the line) and in addition, require it to match the entire line. This is
equivalent to having ^ and $ characters at the start and end of each
alternative branch in the regular expression.
-
-.SH LONG OPTIONS
+.
+.SH "LONG OPTIONS"
.rs
.sp
Long forms of all the options are available, as in GNU grep. They are shown in
the following table:
-
+.sp
-c --count
-h --no-filename
-i --ignore-case
@@ -104,17 +104,17 @@ the following table:
-v --invert-match
-x --line-regex
-x --line-regexp
-
-In addition, --file=\fIfilename\fR is equivalent to -f\fIfilename\fR, and
+.sp
+In addition, --file=\fIfilename\fP is equivalent to -f\fIfilename\fP, and
--help shows the list of options and then exits.
-
+.
.SH DIAGNOSTICS
.rs
.sp
Exit status is 0 if any matches were found, 1 if no matches were found, and 2
for syntax errors or inacessible files (even if matches were found).
-
-
+.
+.
.SH AUTHOR
.rs
.sp
@@ -123,8 +123,8 @@ Philip Hazel <ph10@cam.ac.uk>
University Computing Service
.br
Cambridge CB2 3QG, England.
-
+.P
.in 0
-Last updated: 03 February 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcregrep.txt b/doc/pcregrep.txt
index aae8928..1dca003 100644
--- a/doc/pcregrep.txt
+++ b/doc/pcregrep.txt
@@ -71,8 +71,7 @@ OPTIONS
-u Operate in UTF-8 mode. This option is available only if PCRE
has been compiled with UTF-8 support. Both the pattern and
- each subject line are assumed to be valid strings of UTF-8
- characters.
+ each subject line must be valid strings of UTF-8 characters.
-v Invert the sense of the match, so that lines which do not
match the pattern are now the ones that are found.
@@ -113,12 +112,11 @@ DIAGNOSTICS
found).
-
AUTHOR
Philip Hazel <ph10@cam.ac.uk>
University Computing Service
Cambridge CB2 3QG, England.
-Last updated: 03 February 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 09 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcrepartial.3 b/doc/pcrepartial.3
new file mode 100644
index 0000000..3489c18
--- /dev/null
+++ b/doc/pcrepartial.3
@@ -0,0 +1,95 @@
+.TH PCRE 3
+.SH NAME
+PCRE - Perl-compatible regular expressions
+.SH "PARTIAL MATCHING IN PCRE"
+.rs
+.sp
+In normal use of PCRE, if the subject string that is passed to
+\fBpcre_exec()\fP matches as far as it goes, but is too short to match the
+entire pattern, PCRE_ERROR_NOMATCH is returned. There are circumstances where
+it might be helpful to distinguish this case from other cases in which there is
+no match.
+.P
+Consider, for example, an application where a human is required to type in data
+for a field with specific formatting requirements. An example might be a date
+in the form \fIddmmmyy\fP, defined by this pattern:
+.sp
+ ^\ed?\ed(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\ed\ed$
+.sp
+If the application sees the user's keystrokes one by one, and can check that
+what has been typed so far is potentially valid, it is able to raise an error
+as soon as a mistake is made, possibly beeping and not reflecting the
+character that has been typed. This immediate feedback is likely to be a better
+user interface than a check that is delayed until the entire string has been
+entered.
+.P
+PCRE supports the concept of partial matching by means of the PCRE_PARTIAL
+option, which can be set when calling \fBpcre_exec()\fP. When this is done, the
+return code PCRE_ERROR_NOMATCH is converted into PCRE_ERROR_PARTIAL if at any
+time during the matching process the entire subject string matched part of the
+pattern. No captured data is set when this occurs.
+.P
+Using PCRE_PARTIAL disables one of PCRE's optimizations. PCRE remembers the
+last literal byte in a pattern, and abandons matching immediately if such a
+byte is not present in the subject string. This optimization cannot be used
+for a subject string that might match only partially.
+.
+.
+.SH "RESTRICTED PATTERNS FOR PCRE_PARTIAL"
+.rs
+.sp
+Because of the way certain internal optimizations are implemented in PCRE, the
+PCRE_PARTIAL option cannot be used with all patterns. Repeated single
+characters such as
+.sp
+ a{2,4}
+.sp
+and repeated single metasequences such as
+.sp
+ \ed+
+.sp
+are not permitted if the maximum number of occurrences is greater than one.
+Optional items such as \ed? (where the maximum is one) are permitted.
+Quantifiers with any values are permitted after parentheses, so the invalid
+examples above can be coded thus:
+.sp
+ (a){2,4}
+ (\ed)+
+.sp
+These constructions run more slowly, but for the kinds of application that are
+envisaged for this facility, this is not felt to be a major restriction.
+.P
+If PCRE_PARTIAL is set for a pattern that does not conform to the restrictions,
+\fBpcre_exec()\fP returns the error code PCRE_ERROR_BADPARTIAL (-13).
+.
+.
+.SH "EXAMPLE OF PARTIAL MATCHING USING PCRETEST"
+.rs
+.sp
+If the escape sequence \eP is present in a \fBpcretest\fP data line, the
+PCRE_PARTIAL flag is used for the match. Here is a run of \fBpcretest\fP that
+uses the date example quoted above:
+.sp
+ re> /^\ed?\ed(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\ed\ed$/
+ data> 25jun04\P
+ 0: 25jun04
+ 1: jun
+ data> 25dec3\P
+ Partial match
+ data> 3ju\P
+ Partial match
+ data> 3juj\P
+ No match
+ data> j\P
+ No match
+.sp
+The first data string is matched completely, so \fBpcretest\fP shows the
+matched substrings. The remaining four strings do not match the complete
+pattern, but the first two are partial matches.
+.
+.
+.P
+.in 0
+Last updated: 08 September 2004
+.br
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcrepattern.3 b/doc/pcrepattern.3
index 101aa31..6f6a21a 100644
--- a/doc/pcrepattern.3
+++ b/doc/pcrepattern.3
@@ -1,49 +1,49 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH PCRE REGULAR EXPRESSION DETAILS
+.SH "PCRE REGULAR EXPRESSION DETAILS"
.rs
.sp
The syntax and semantics of the regular expressions supported by PCRE are
described below. Regular expressions are also described in the Perl
-documentation and in a number of other books, some of which have copious
-examples. Jeffrey Friedl's "Mastering Regular Expressions", published by
-O'Reilly, covers them in great detail. The description here is intended as
-reference documentation.
-
-The basic operation of PCRE is on strings of bytes. However, there is also
-support for UTF-8 character strings. To use this support you must build PCRE to
-include UTF-8 support, and then call \fBpcre_compile()\fR with the PCRE_UTF8
-option. How this affects the pattern matching is mentioned in several places
-below. There is also a summary of UTF-8 features in the
+documentation and in a number of books, some of which have copious examples.
+Jeffrey Friedl's "Mastering Regular Expressions", published by O'Reilly, covers
+regular expressions in great detail. This description of PCRE's regular
+expressions is intended as reference material.
+.P
+The original operation of PCRE was on strings of one-byte characters. However,
+there is now also support for UTF-8 character strings. To use this, you must
+build PCRE to include UTF-8 support, and then call \fBpcre_compile()\fP with
+the PCRE_UTF8 option. How this affects pattern matching is mentioned in several
+places below. There is also a summary of UTF-8 features in the
.\" HTML <a href="pcre.html#utf8support">
.\" </a>
section on UTF-8 support
.\"
in the main
.\" HREF
-\fBpcre\fR
+\fBpcre\fP
.\"
page.
-
+.P
A regular expression is a pattern that is matched against a subject string from
left to right. Most characters stand for themselves in a pattern, and match the
corresponding characters in the subject. As a trivial example, the pattern
-
+.sp
The quick brown fox
-
+.sp
matches a portion of a subject string that is identical to itself. The power of
regular expressions comes from the ability to include alternatives and
repetitions in the pattern. These are encoded in the pattern by the use of
-\fImeta-characters\fR, which do not stand for themselves but instead are
+\fImetacharacters\fP, which do not stand for themselves but instead are
interpreted in some special way.
-
-There are two different sets of meta-characters: those that are recognized
+.P
+There are two different sets of metacharacters: those that are recognized
anywhere in the pattern except within square brackets, and those that are
-recognized in square brackets. Outside square brackets, the meta-characters are
+recognized in square brackets. Outside square brackets, the metacharacters are
as follows:
-
- \\ general escape character with several uses
+.sp
+ \e general escape character with several uses
^ assert start of string (or line, in multiline mode)
$ assert end of string (or line, in multiline mode)
. match any character except newline (by default)
@@ -58,231 +58,376 @@ as follows:
+ 1 or more quantifier
also "possessive quantifier"
{ start min/max quantifier
-
+.sp
Part of a pattern that is in square brackets is called a "character class". In
-a character class the only meta-characters are:
-
- \\ general escape character
+a character class the only metacharacters are:
+.sp
+ \e general escape character
^ negate the class, but only if the first character
- indicates character range
+.\" JOIN
[ POSIX character class (only if followed by POSIX
syntax)
] terminates the character class
-
-The following sections describe the use of each of the meta-characters.
-
+.sp
+The following sections describe the use of each of the metacharacters.
+.
.SH BACKSLASH
.rs
.sp
The backslash character has several uses. Firstly, if it is followed by a
-non-alphameric character, it takes away any special meaning that character may
+non-alphanumeric character, it takes away any special meaning that character may
have. This use of backslash as an escape character applies both inside and
outside character classes.
-
-For example, if you want to match a * character, you write \\* in the pattern.
+.P
+For example, if you want to match a * character, you write \e* in the pattern.
This escaping action applies whether or not the following character would
-otherwise be interpreted as a meta-character, so it is always safe to precede a
-non-alphameric with backslash to specify that it stands for itself. In
-particular, if you want to match a backslash, you write \\\\.
-
+otherwise be interpreted as a metacharacter, so it is always safe to precede a
+non-alphanumeric with backslash to specify that it stands for itself. In
+particular, if you want to match a backslash, you write \e\e.
+.P
If a pattern is compiled with the PCRE_EXTENDED option, whitespace in the
pattern (other than in a character class) and characters between a # outside
a character class and the next newline character are ignored. An escaping
backslash can be used to include a whitespace or # character as part of the
pattern.
-
+.P
If you want to remove the special meaning from a sequence of characters, you
-can do so by putting them between \\Q and \\E. This is different from Perl in
-that $ and @ are handled as literals in \\Q...\\E sequences in PCRE, whereas in
+can do so by putting them between \eQ and \eE. This is different from Perl in
+that $ and @ are handled as literals in \eQ...\eE sequences in PCRE, whereas in
Perl, $ and @ cause variable interpolation. Note the following examples:
-
+.sp
Pattern PCRE matches Perl matches
-
- \\Qabc$xyz\\E abc$xyz abc followed by the
+.sp
+.\" JOIN
+ \eQabc$xyz\eE abc$xyz abc followed by the
contents of $xyz
- \\Qabc\\$xyz\\E abc\\$xyz abc\\$xyz
- \\Qabc\\E\\$\\Qxyz\\E abc$xyz abc$xyz
-
-The \\Q...\\E sequence is recognized both inside and outside character classes.
-
+ \eQabc\e$xyz\eE abc\e$xyz abc\e$xyz
+ \eQabc\eE\e$\eQxyz\eE abc$xyz abc$xyz
+.sp
+The \eQ...\eE sequence is recognized both inside and outside character classes.
+.
+.
+.\" HTML <a name="digitsafterbackslash"></a>
+.SS "Non-printing characters"
+.rs
+.sp
A second use of backslash provides a way of encoding non-printing characters
in patterns in a visible manner. There is no restriction on the appearance of
non-printing characters, apart from the binary zero that terminates a pattern,
but when a pattern is being prepared by text editing, it is usually easier to
use one of the following escape sequences than the binary character it
represents:
-
- \\a alarm, that is, the BEL character (hex 07)
- \\cx "control-x", where x is any character
- \\e escape (hex 1B)
- \\f formfeed (hex 0C)
- \\n newline (hex 0A)
- \\r carriage return (hex 0D)
- \\t tab (hex 09)
- \\ddd character with octal code ddd, or backreference
- \\xhh character with hex code hh
- \\x{hhh..} character with hex code hhh... (UTF-8 mode only)
-
-The precise effect of \\cx is as follows: if x is a lower case letter, it
+.sp
+ \ea alarm, that is, the BEL character (hex 07)
+ \ecx "control-x", where x is any character
+ \ee escape (hex 1B)
+ \ef formfeed (hex 0C)
+ \en newline (hex 0A)
+ \er carriage return (hex 0D)
+ \et tab (hex 09)
+ \eddd character with octal code ddd, or backreference
+ \exhh character with hex code hh
+ \ex{hhh..} character with hex code hhh... (UTF-8 mode only)
+.sp
+The precise effect of \ecx is as follows: if x is a lower case letter, it
is converted to upper case. Then bit 6 of the character (hex 40) is inverted.
-Thus \\cz becomes hex 1A, but \\c{ becomes hex 3B, while \\c; becomes hex
+Thus \ecz becomes hex 1A, but \ec{ becomes hex 3B, while \ec; becomes hex
7B.
-
-After \\x, from zero to two hexadecimal digits are read (letters can be in
+.P
+After \ex, from zero to two hexadecimal digits are read (letters can be in
upper or lower case). In UTF-8 mode, any number of hexadecimal digits may
-appear between \\x{ and }, but the value of the character code must be less
+appear between \ex{ and }, but the value of the character code must be less
than 2**31 (that is, the maximum hexadecimal value is 7FFFFFFF). If characters
-other than hexadecimal digits appear between \\x{ and }, or if there is no
+other than hexadecimal digits appear between \ex{ and }, or if there is no
terminating }, this form of escape is not recognized. Instead, the initial
-\\x will be interpreted as a basic hexadecimal escape, with no following
-digits, giving a byte whose value is zero.
-
+\ex will be interpreted as a basic hexadecimal escape, with no following
+digits, giving a character whose value is zero.
+.P
Characters whose value is less than 256 can be defined by either of the two
-syntaxes for \\x when PCRE is in UTF-8 mode. There is no difference in the
-way they are handled. For example, \\xdc is exactly the same as \\x{dc}.
-
-After \\0 up to two further octal digits are read. In both cases, if there
+syntaxes for \ex when PCRE is in UTF-8 mode. There is no difference in the
+way they are handled. For example, \exdc is exactly the same as \ex{dc}.
+.P
+After \e0 up to two further octal digits are read. In both cases, if there
are fewer than two digits, just those that are present are used. Thus the
-sequence \\0\\x\\07 specifies two binary zeros followed by a BEL character
+sequence \e0\ex\e07 specifies two binary zeros followed by a BEL character
(code value 7). Make sure you supply two digits after the initial zero if the
-character that follows is itself an octal digit.
-
+pattern character that follows is itself an octal digit.
+.P
The handling of a backslash followed by a digit other than 0 is complicated.
Outside a character class, PCRE reads it and any following digits as a decimal
number. If the number is less than 10, or if there have been at least that many
previous capturing left parentheses in the expression, the entire sequence is
-taken as a \fIback reference\fR. A description of how this works is given
-later, following the discussion of parenthesized subpatterns.
-
+taken as a \fIback reference\fP. A description of how this works is given
+.\" HTML <a href="#backreferences">
+.\" </a>
+later,
+.\"
+following the discussion of
+.\" HTML <a href="#subpattern">
+.\" </a>
+parenthesized subpatterns.
+.\"
+.P
Inside a character class, or if the decimal number is greater than 9 and there
have not been that many capturing subpatterns, PCRE re-reads up to three octal
digits following the backslash, and generates a single byte from the least
significant 8 bits of the value. Any subsequent digits stand for themselves.
For example:
-
- \\040 is another way of writing a space
- \\40 is the same, provided there are fewer than 40
+.sp
+ \e040 is another way of writing a space
+.\" JOIN
+ \e40 is the same, provided there are fewer than 40
previous capturing subpatterns
- \\7 is always a back reference
- \\11 might be a back reference, or another way of
+ \e7 is always a back reference
+.\" JOIN
+ \e11 might be a back reference, or another way of
writing a tab
- \\011 is always a tab
- \\0113 is a tab followed by the character "3"
- \\113 might be a back reference, otherwise the
+ \e011 is always a tab
+ \e0113 is a tab followed by the character "3"
+.\" JOIN
+ \e113 might be a back reference, otherwise the
character with octal code 113
- \\377 might be a back reference, otherwise
+.\" JOIN
+ \e377 might be a back reference, otherwise
the byte consisting entirely of 1 bits
- \\81 is either a back reference, or a binary zero
+.\" JOIN
+ \e81 is either a back reference, or a binary zero
followed by the two characters "8" and "1"
-
+.sp
Note that octal values of 100 or greater must not be introduced by a leading
zero, because no more than three octal digits are ever read.
-
+.P
All the sequences that define a single byte value or a single UTF-8 character
(in UTF-8 mode) can be used both inside and outside character classes. In
-addition, inside a character class, the sequence \\b is interpreted as the
-backspace character (hex 08). Outside a character class it has a different
-meaning (see below).
-
-The third use of backslash is for specifying generic character types:
-
- \\d any decimal digit
- \\D any character that is not a decimal digit
- \\s any whitespace character
- \\S any character that is not a whitespace character
- \\w any "word" character
- \\W any "non-word" character
-
+addition, inside a character class, the sequence \eb is interpreted as the
+backspace character (hex 08), and the sequence \eX is interpreted as the
+character "X". Outside a character class, these sequences have different
+meanings
+.\" HTML <a href="#uniextseq">
+.\" </a>
+(see below).
+.\"
+.
+.
+.SS "Generic character types"
+.rs
+.sp
+The third use of backslash is for specifying generic character types. The
+following are always recognized:
+.sp
+ \ed any decimal digit
+ \eD any character that is not a decimal digit
+ \es any whitespace character
+ \eS any character that is not a whitespace character
+ \ew any "word" character
+ \eW any "non-word" character
+.sp
Each pair of escape sequences partitions the complete set of characters into
two disjoint sets. Any given character matches one, and only one, of each pair.
-
-In UTF-8 mode, characters with values greater than 255 never match \\d, \\s, or
-\\w, and always match \\D, \\S, and \\W.
-
-For compatibility with Perl, \\s does not match the VT character (code 11).
-This makes it different from the the POSIX "space" class. The \\s characters
+.P
+These character type sequences can appear both inside and outside character
+classes. They each match one character of the appropriate type. If the current
+matching point is at the end of the subject string, all of them fail, since
+there is no character to match.
+.P
+For compatibility with Perl, \es does not match the VT character (code 11).
+This makes it different from the the POSIX "space" class. The \es characters
are HT (9), LF (10), FF (12), CR (13), and space (32).
-
-A "word" character is any letter or digit or the underscore character, that is,
-any character which can be part of a Perl "word". The definition of letters and
-digits is controlled by PCRE's character tables, and may vary if locale-
-specific matching is taking place (see
+.P
+A "word" character is an underscore or any character less than 256 that is a
+letter or digit. The definition of letters and digits is controlled by PCRE's
+low-valued character tables, and may vary if locale-specific matching is taking
+place (see
.\" HTML <a href="pcreapi.html#localesupport">
.\" </a>
"Locale support"
.\"
in the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
.\"
-page). For example, in the "fr" (French) locale, some character codes greater
-than 128 are used for accented letters, and these are matched by \\w.
-
-These character type sequences can appear both inside and outside character
-classes. They each match one character of the appropriate type. If the current
-matching point is at the end of the subject string, all of them fail, since
-there is no character to match.
-
+page). For example, in the "fr_FR" (French) locale, some character codes
+greater than 128 are used for accented letters, and these are matched by \ew.
+.P
+In UTF-8 mode, characters with values greater than 128 never match \ed, \es, or
+\ew, and always match \eD, \eS, and \eW. This is true even when Unicode
+character property support is available.
+.
+.
+.\" HTML <a name="uniextseq"></a>
+.SS Unicode character properties
+.rs
+.sp
+When PCRE is built with Unicode character property support, three additional
+escape sequences to match generic character types are available when UTF-8 mode
+is selected. They are:
+.sp
+ \ep{\fIxx\fP} a character with the \fIxx\fP property
+ \eP{\fIxx\fP} a character without the \fIxx\fP property
+ \eX an extended Unicode sequence
+.sp
+The property names represented by \fIxx\fP above are limited to the
+Unicode general category properties. Each character has exactly one such
+property, specified by a two-letter abbreviation. For compatibility with Perl,
+negation can be specified by including a circumflex between the opening brace
+and the property name. For example, \ep{^Lu} is the same as \eP{Lu}.
+.P
+If only one letter is specified with \ep or \eP, it includes all the properties
+that start with that letter. In this case, in the absence of negation, the
+curly brackets in the escape sequence are optional; these two examples have
+the same effect:
+.sp
+ \ep{L}
+ \epL
+.sp
+The following property codes are supported:
+.sp
+ C Other
+ Cc Control
+ Cf Format
+ Cn Unassigned
+ Co Private use
+ Cs Surrogate
+.sp
+ L Letter
+ Ll Lower case letter
+ Lm Modifier letter
+ Lo Other letter
+ Lt Title case letter
+ Lu Upper case letter
+.sp
+ M Mark
+ Mc Spacing mark
+ Me Enclosing mark
+ Mn Non-spacing mark
+.sp
+ N Number
+ Nd Decimal number
+ Nl Letter number
+ No Other number
+.sp
+ P Punctuation
+ Pc Connector punctuation
+ Pd Dash punctuation
+ Pe Close punctuation
+ Pf Final punctuation
+ Pi Initial punctuation
+ Po Other punctuation
+ Ps Open punctuation
+.sp
+ S Symbol
+ Sc Currency symbol
+ Sk Modifier symbol
+ Sm Mathematical symbol
+ So Other symbol
+.sp
+ Z Separator
+ Zl Line separator
+ Zp Paragraph separator
+ Zs Space separator
+.sp
+Extended properties such as "Greek" or "InMusicalSymbols" are not supported by
+PCRE.
+.P
+Specifying caseless matching does not affect these escape sequences. For
+example, \ep{Lu} always matches only upper case letters.
+.P
+The \eX escape matches any number of Unicode characters that form an extended
+Unicode sequence. \eX is equivalent to
+.sp
+ (?>\ePM\epM*)
+.sp
+That is, it matches a character without the "mark" property, followed by zero
+or more characters with the "mark" property, and treats the sequence as an
+atomic group
+.\" HTML <a href="#atomicgroup">
+.\" </a>
+(see below).
+.\"
+Characters with the "mark" property are typically accents that affect the
+preceding character.
+.P
+Matching characters by Unicode property is not fast, because PCRE has to search
+a structure that contains data for over fifteen thousand characters. That is
+why the traditional escape sequences such as \ed and \ew do not use Unicode
+properties in PCRE.
+.
+.
+.\" HTML <a name="smallassertions"></a>
+.SS "Simple assertions"
+.rs
+.sp
The fourth use of backslash is for certain simple assertions. An assertion
specifies a condition that has to be met at a particular point in a match,
without consuming any characters from the subject string. The use of
-subpatterns for more complicated assertions is described below. The backslashed
-assertions are
-
- \\b matches at a word boundary
- \\B matches when not at a word boundary
- \\A matches at start of subject
- \\Z matches at end of subject or before newline at end
- \\z matches at end of subject
- \\G matches at first matching position in subject
-
-These assertions may not appear in character classes (but note that \\b has a
+subpatterns for more complicated assertions is described
+.\" HTML <a href="#bigassertions">
+.\" </a>
+below.
+.\"
+The backslashed
+assertions are:
+.sp
+ \eb matches at a word boundary
+ \eB matches when not at a word boundary
+ \eA matches at start of subject
+ \eZ matches at end of subject or before newline at end
+ \ez matches at end of subject
+ \eG matches at first matching position in subject
+.sp
+These assertions may not appear in character classes (but note that \eb has a
different meaning, namely the backspace character, inside a character class).
-
+.P
A word boundary is a position in the subject string where the current character
-and the previous character do not both match \\w or \\W (i.e. one matches
-\\w and the other matches \\W), or the start or end of the string if the
-first or last character matches \\w, respectively.
-
-The \\A, \\Z, and \\z assertions differ from the traditional circumflex and
-dollar (described below) in that they only ever match at the very start and end
-of the subject string, whatever options are set. Thus, they are independent of
-multiline mode.
-
-They are not affected by the PCRE_NOTBOL or PCRE_NOTEOL options. If the
-\fIstartoffset\fR argument of \fBpcre_exec()\fR is non-zero, indicating that
-matching is to start at a point other than the beginning of the subject, \\A
-can never match. The difference between \\Z and \\z is that \\Z matches before
-a newline that is the last character of the string as well as at the end of the
-string, whereas \\z matches only at the end.
-
-The \\G assertion is true only when the current matching position is at the
-start point of the match, as specified by the \fIstartoffset\fR argument of
-\fBpcre_exec()\fR. It differs from \\A when the value of \fIstartoffset\fR is
-non-zero. By calling \fBpcre_exec()\fR multiple times with appropriate
+and the previous character do not both match \ew or \eW (i.e. one matches
+\ew and the other matches \eW), or the start or end of the string if the
+first or last character matches \ew, respectively.
+.P
+The \eA, \eZ, and \ez assertions differ from the traditional circumflex and
+dollar (described in the next section) in that they only ever match at the very
+start and end of the subject string, whatever options are set. Thus, they are
+independent of multiline mode. These three assertions are not affected by the
+PCRE_NOTBOL or PCRE_NOTEOL options, which affect only the behaviour of the
+circumflex and dollar metacharacters. However, if the \fIstartoffset\fP
+argument of \fBpcre_exec()\fP is non-zero, indicating that matching is to start
+at a point other than the beginning of the subject, \eA can never match. The
+difference between \eZ and \ez is that \eZ matches before a newline that is the
+last character of the string as well as at the end of the string, whereas \ez
+matches only at the end.
+.P
+The \eG assertion is true only when the current matching position is at the
+start point of the match, as specified by the \fIstartoffset\fP argument of
+\fBpcre_exec()\fP. It differs from \eA when the value of \fIstartoffset\fP is
+non-zero. By calling \fBpcre_exec()\fP multiple times with appropriate
arguments, you can mimic Perl's /g option, and it is in this kind of
-implementation where \\G can be useful.
-
-Note, however, that PCRE's interpretation of \\G, as the start of the current
+implementation where \eG can be useful.
+.P
+Note, however, that PCRE's interpretation of \eG, as the start of the current
match, is subtly different from Perl's, which defines it as the end of the
previous match. In Perl, these can be different when the previously matched
string was empty. Because PCRE does just one match at a time, it cannot
reproduce this behaviour.
-
-If all the alternatives of a pattern begin with \\G, the expression is anchored
+.P
+If all the alternatives of a pattern begin with \eG, the expression is anchored
to the starting match position, and the "anchored" flag is set in the compiled
regular expression.
-
-.SH CIRCUMFLEX AND DOLLAR
+.
+.
+.SH "CIRCUMFLEX AND DOLLAR"
.rs
.sp
Outside a character class, in the default matching mode, the circumflex
-character is an assertion which is true only if the current matching point is
-at the start of the subject string. If the \fIstartoffset\fR argument of
-\fBpcre_exec()\fR is non-zero, circumflex can never match if the PCRE_MULTILINE
+character is an assertion that is true only if the current matching point is
+at the start of the subject string. If the \fIstartoffset\fP argument of
+\fBpcre_exec()\fP is non-zero, circumflex can never match if the PCRE_MULTILINE
option is unset. Inside a character class, circumflex has an entirely different
-meaning (see below).
-
+meaning
+.\" HTML <a href="#characterclass">
+.\" </a>
+(see below).
+.\"
+.P
Circumflex need not be the first character of the pattern if a number of
alternatives are involved, but it should be the first thing in each alternative
in which it appears if the pattern is ever to match that branch. If all
@@ -290,57 +435,68 @@ possible alternatives start with a circumflex, that is, if the pattern is
constrained to match only at the start of the subject, it is said to be an
"anchored" pattern. (There are also other constructs that can cause a pattern
to be anchored.)
-
-A dollar character is an assertion which is true only if the current matching
+.P
+A dollar character is an assertion that is true only if the current matching
point is at the end of the subject string, or immediately before a newline
character that is the last character in the string (by default). Dollar need
not be the last character of the pattern if a number of alternatives are
involved, but it should be the last item in any branch in which it appears.
Dollar has no special meaning in a character class.
-
+.P
The meaning of dollar can be changed so that it matches only at the very end of
the string, by setting the PCRE_DOLLAR_ENDONLY option at compile time. This
-does not affect the \\Z assertion.
-
+does not affect the \eZ assertion.
+.P
The meanings of the circumflex and dollar characters are changed if the
PCRE_MULTILINE option is set. When this is the case, they match immediately
after and immediately before an internal newline character, respectively, in
addition to matching at the start and end of the subject string. For example,
-the pattern /^abc$/ matches the subject string "def\\nabc" in multiline mode,
-but not otherwise. Consequently, patterns that are anchored in single line mode
-because all branches start with ^ are not anchored in multiline mode, and a
-match for circumflex is possible when the \fIstartoffset\fR argument of
-\fBpcre_exec()\fR is non-zero. The PCRE_DOLLAR_ENDONLY option is ignored if
-PCRE_MULTILINE is set.
-
-Note that the sequences \\A, \\Z, and \\z can be used to match the start and
+the pattern /^abc$/ matches the subject string "def\enabc" (where \en
+represents a newline character) in multiline mode, but not otherwise.
+Consequently, patterns that are anchored in single line mode because all
+branches start with ^ are not anchored in multiline mode, and a match for
+circumflex is possible when the \fIstartoffset\fP argument of \fBpcre_exec()\fP
+is non-zero. The PCRE_DOLLAR_ENDONLY option is ignored if PCRE_MULTILINE is
+set.
+.P
+Note that the sequences \eA, \eZ, and \ez can be used to match the start and
end of the subject in both modes, and if all branches of a pattern start with
-\\A it is always anchored, whether PCRE_MULTILINE is set or not.
-
-.SH FULL STOP (PERIOD, DOT)
+\eA it is always anchored, whether PCRE_MULTILINE is set or not.
+.
+.
+.SH "FULL STOP (PERIOD, DOT)"
.rs
.sp
Outside a character class, a dot in the pattern matches any one character in
the subject, including a non-printing character, but not (by default) newline.
In UTF-8 mode, a dot matches any UTF-8 character, which might be more than one
-byte long, except (by default) for newline. If the PCRE_DOTALL option is set,
+byte long, except (by default) newline. If the PCRE_DOTALL option is set,
dots match newlines as well. The handling of dot is entirely independent of the
handling of circumflex and dollar, the only relationship being that they both
involve newline characters. Dot has no special meaning in a character class.
-
-.SH MATCHING A SINGLE BYTE
+.
+.
+.SH "MATCHING A SINGLE BYTE"
.rs
.sp
-Outside a character class, the escape sequence \\C matches any one byte, both
-in and out of UTF-8 mode. Unlike a dot, it always matches a newline. The
-feature is provided in Perl in order to match individual bytes in UTF-8 mode.
-Because it breaks up UTF-8 characters into individual bytes, what remains in
-the string may be a malformed UTF-8 string. For this reason it is best avoided.
-
-PCRE does not allow \\C to appear in lookbehind assertions (see below), because
-in UTF-8 mode it makes it impossible to calculate the length of the lookbehind.
-
-.SH SQUARE BRACKETS
+Outside a character class, the escape sequence \eC matches any one byte, both
+in and out of UTF-8 mode. Unlike a dot, it can match a newline. The feature is
+provided in Perl in order to match individual bytes in UTF-8 mode. Because it
+breaks up UTF-8 characters into individual bytes, what remains in the string
+may be a malformed UTF-8 string. For this reason, the \eC escape sequence is
+best avoided.
+.P
+PCRE does not allow \eC to appear in lookbehind assertions
+.\" HTML <a href="#lookbehind">
+.\" </a>
+(described below),
+.\"
+because in UTF-8 mode this would make it impossible to calculate the length of
+the lookbehind.
+.
+.
+.\" HTML <a name="characterclass"></a>
+.SH "SQUARE BRACKETS AND CHARACTER CLASSES"
.rs
.sp
An opening square bracket introduces a character class, terminated by a closing
@@ -348,7 +504,7 @@ square bracket. A closing square bracket on its own is not special. If a
closing square bracket is required as a member of the class, it should be the
first data character in the class (after an initial circumflex, if present) or
escaped with a backslash.
-
+.P
A character class matches a single character in the subject. In UTF-8 mode, the
character may occupy more than one byte. A matched character must be in the set
of characters defined by the class, unless the first character in the class
@@ -356,377 +512,403 @@ definition is a circumflex, in which case the subject character must not be in
the set defined by the class. If a circumflex is actually required as a member
of the class, ensure it is not the first character, or escape it with a
backslash.
-
+.P
For example, the character class [aeiou] matches any lower case vowel, while
[^aeiou] matches any character that is not a lower case vowel. Note that a
-circumflex is just a convenient notation for specifying the characters which
-are in the class by enumerating those that are not. It is not an assertion: it
-still consumes a character from the subject string, and fails if the current
-pointer is at the end of the string.
-
+circumflex is just a convenient notation for specifying the characters that
+are in the class by enumerating those that are not. A class that starts with a
+circumflex is not an assertion: it still consumes a character from the subject
+string, and therefore it fails if the current pointer is at the end of the
+string.
+.P
In UTF-8 mode, characters with values greater than 255 can be included in a
-class as a literal string of bytes, or by using the \\x{ escaping mechanism.
-
+class as a literal string of bytes, or by using the \ex{ escaping mechanism.
+.P
When caseless matching is set, any letters in a class represent both their
upper case and lower case versions, so for example, a caseless [aeiou] matches
"A" as well as "a", and a caseless [^aeiou] does not match "A", whereas a
-caseful version would. PCRE does not support the concept of case for characters
-with values greater than 255.
-
+caseful version would. When running in UTF-8 mode, PCRE supports the concept of
+case for characters with values greater than 128 only when it is compiled with
+Unicode property support.
+.P
The newline character is never treated in any special way in character classes,
whatever the setting of the PCRE_DOTALL or PCRE_MULTILINE options is. A class
such as [^a] will always match a newline.
-
+.P
The minus (hyphen) character can be used to specify a range of characters in a
character class. For example, [d-m] matches any letter between d and m,
inclusive. If a minus character is required in a class, it must be escaped with
a backslash or appear in a position where it cannot be interpreted as
indicating a range, typically as the first or last character in the class.
-
+.P
It is not possible to have the literal character "]" as the end character of a
range. A pattern such as [W-]46] is interpreted as a class of two characters
("W" and "-") followed by a literal string "46]", so it would match "W46]" or
"-46]". However, if the "]" is escaped with a backslash it is interpreted as
-the end of range, so [W-\\]46] is interpreted as a single class containing a
-range followed by two separate characters. The octal or hexadecimal
-representation of "]" can also be used to end a range.
-
+the end of range, so [W-\e]46] is interpreted as a class containing a range
+followed by two other characters. The octal or hexadecimal representation of
+"]" can also be used to end a range.
+.P
Ranges operate in the collating sequence of character values. They can also be
-used for characters specified numerically, for example [\\000-\\037]. In UTF-8
+used for characters specified numerically, for example [\e000-\e037]. In UTF-8
mode, ranges can include characters whose values are greater than 255, for
-example [\\x{100}-\\x{2ff}].
-
+example [\ex{100}-\ex{2ff}].
+.P
If a range that includes letters is used when caseless matching is set, it
matches the letters in either case. For example, [W-c] is equivalent to
-[][\\^_`wxyzabc], matched caselessly, and if character tables for the "fr"
-locale are in use, [\\xc8-\\xcb] matches accented E characters in both cases.
-
-The character types \\d, \\D, \\s, \\S, \\w, and \\W may also appear in a
-character class, and add the characters that they match to the class. For
-example, [\\dABCDEF] matches any hexadecimal digit. A circumflex can
+[][\e\e^_`wxyzabc], matched caselessly, and in non-UTF-8 mode, if character
+tables for the "fr_FR" locale are in use, [\exc8-\excb] matches accented E
+characters in both cases. In UTF-8 mode, PCRE supports the concept of case for
+characters with values greater than 128 only when it is compiled with Unicode
+property support.
+.P
+The character types \ed, \eD, \ep, \eP, \es, \eS, \ew, and \eW may also appear
+in a character class, and add the characters that they match to the class. For
+example, [\edABCDEF] matches any hexadecimal digit. A circumflex can
conveniently be used with the upper case character types to specify a more
restricted set of characters than the matching lower case type. For example,
-the class [^\\W_] matches any letter or digit, but not underscore.
-
-All non-alphameric characters other than \\, -, ^ (at the start) and the
-terminating ] are non-special in character classes, but it does no harm if they
-are escaped.
-
-.SH POSIX CHARACTER CLASSES
+the class [^\eW_] matches any letter or digit, but not underscore.
+.P
+The only metacharacters that are recognized in character classes are backslash,
+hyphen (only where it can be interpreted as specifying a range), circumflex
+(only at the start), opening square bracket (only when it can be interpreted as
+introducing a POSIX class name - see the next section), and the terminating
+closing square bracket. However, escaping other non-alphanumeric characters
+does no harm.
+.
+.
+.SH "POSIX CHARACTER CLASSES"
.rs
.sp
-Perl supports the POSIX notation for character classes, which uses names
+Perl supports the POSIX notation for character classes. This uses names
enclosed by [: and :] within the enclosing square brackets. PCRE also supports
this notation. For example,
-
+.sp
[01[:alpha:]%]
-
+.sp
matches "0", "1", any alphabetic character, or "%". The supported class names
are
-
+.sp
alnum letters and digits
alpha letters
ascii character codes 0 - 127
blank space or tab only
cntrl control characters
- digit decimal digits (same as \\d)
+ digit decimal digits (same as \ed)
graph printing characters, excluding space
lower lower case letters
print printing characters, including space
punct printing characters, excluding letters and digits
- space white space (not quite the same as \\s)
+ space white space (not quite the same as \es)
upper upper case letters
- word "word" characters (same as \\w)
+ word "word" characters (same as \ew)
xdigit hexadecimal digits
-
+.sp
The "space" characters are HT (9), LF (10), VT (11), FF (12), CR (13), and
space (32). Notice that this list includes the VT character (code 11). This
-makes "space" different to \\s, which does not include VT (for Perl
+makes "space" different to \es, which does not include VT (for Perl
compatibility).
-
+.P
The name "word" is a Perl extension, and "blank" is a GNU extension from Perl
5.8. Another Perl extension is negation, which is indicated by a ^ character
after the colon. For example,
-
+.sp
[12[:^digit:]]
-
+.sp
matches "1", "2", or any non-digit. PCRE (and Perl) also recognize the POSIX
syntax [.ch.] and [=ch=] where "ch" is a "collating element", but these are not
supported, and an error is given if they are encountered.
-
-In UTF-8 mode, characters with values greater than 255 do not match any of
+.P
+In UTF-8 mode, characters with values greater than 128 do not match any of
the POSIX character classes.
-
-.SH VERTICAL BAR
+.
+.
+.SH "VERTICAL BAR"
.rs
.sp
Vertical bar characters are used to separate alternative patterns. For example,
the pattern
-
+.sp
gilbert|sullivan
-
+.sp
matches either "gilbert" or "sullivan". Any number of alternatives may appear,
and an empty alternative is permitted (matching the empty string).
The matching process tries each alternative in turn, from left to right,
and the first one that succeeds is used. If the alternatives are within a
-subpattern (defined below), "succeeds" means matching the rest of the main
-pattern as well as the alternative in the subpattern.
-
-.SH INTERNAL OPTION SETTING
+subpattern
+.\" HTML <a href="#subpattern">
+.\" </a>
+(defined below),
+.\"
+"succeeds" means matching the rest of the main pattern as well as the
+alternative in the subpattern.
+.
+.
+.SH "INTERNAL OPTION SETTING"
.rs
.sp
The settings of the PCRE_CASELESS, PCRE_MULTILINE, PCRE_DOTALL, and
PCRE_EXTENDED options can be changed from within the pattern by a sequence of
Perl option letters enclosed between "(?" and ")". The option letters are
-
+.sp
i for PCRE_CASELESS
m for PCRE_MULTILINE
s for PCRE_DOTALL
x for PCRE_EXTENDED
-
+.sp
For example, (?im) sets caseless, multiline matching. It is also possible to
unset these options by preceding the letter with a hyphen, and a combined
setting and unsetting such as (?im-sx), which sets PCRE_CASELESS and
PCRE_MULTILINE while unsetting PCRE_DOTALL and PCRE_EXTENDED, is also
permitted. If a letter appears both before and after the hyphen, the option is
unset.
-
+.P
When an option change occurs at top level (that is, not inside subpattern
parentheses), the change applies to the remainder of the pattern that follows.
If the change is placed right at the start of a pattern, PCRE extracts it into
the global options (and it will therefore show up in data extracted by the
-\fBpcre_fullinfo()\fR function).
-
+\fBpcre_fullinfo()\fP function).
+.P
An option change within a subpattern affects only that part of the current
pattern that follows it, so
-
+.sp
(a(?i)b)c
-
+.sp
matches abc and aBc and no other strings (assuming PCRE_CASELESS is not used).
By this means, options can be made to have different settings in different
parts of the pattern. Any changes made in one alternative do carry on
into subsequent branches within the same subpattern. For example,
-
+.sp
(a(?i)b|c)
-
+.sp
matches "ab", "aB", "c", and "C", even though when matching "C" the first
branch is abandoned before the option setting. This is because the effects of
option settings happen at compile time. There would be some very weird
behaviour otherwise.
-
+.P
The PCRE-specific options PCRE_UNGREEDY and PCRE_EXTRA can be changed in the
same way as the Perl-compatible options by using the characters U and X
respectively. The (?X) flag setting is special in that it must always occur
earlier in the pattern than any of the additional features it turns on, even
-when it is at top level. It is best put at the start.
-
+when it is at top level. It is best to put it at the start.
+.
+.
+.\" HTML <a name="subpattern"></a>
.SH SUBPATTERNS
.rs
.sp
Subpatterns are delimited by parentheses (round brackets), which can be nested.
-Marking part of a pattern as a subpattern does two things:
-
+Turning part of a pattern into a subpattern does two things:
+.sp
1. It localizes a set of alternatives. For example, the pattern
-
+.sp
cat(aract|erpillar|)
-
+.sp
matches one of the words "cat", "cataract", or "caterpillar". Without the
parentheses, it would match "cataract", "erpillar" or the empty string.
-
-2. It sets up the subpattern as a capturing subpattern (as defined above).
-When the whole pattern matches, that portion of the subject string that matched
-the subpattern is passed back to the caller via the \fIovector\fR argument of
-\fBpcre_exec()\fR. Opening parentheses are counted from left to right (starting
-from 1) to obtain the numbers of the capturing subpatterns.
-
+.sp
+2. It sets up the subpattern as a capturing subpattern. This means that, when
+the whole pattern matches, that portion of the subject string that matched the
+subpattern is passed back to the caller via the \fIovector\fP argument of
+\fBpcre_exec()\fP. Opening parentheses are counted from left to right (starting
+from 1) to obtain numbers for the capturing subpatterns.
+.P
For example, if the string "the red king" is matched against the pattern
-
+.sp
the ((red|white) (king|queen))
-
+.sp
the captured substrings are "red king", "red", and "king", and are numbered 1,
2, and 3, respectively.
-
+.P
The fact that plain parentheses fulfil two functions is not always helpful.
There are often times when a grouping subpattern is required without a
capturing requirement. If an opening parenthesis is followed by a question mark
and a colon, the subpattern does not do any capturing, and is not counted when
computing the number of any subsequent capturing subpatterns. For example, if
the string "the white queen" is matched against the pattern
-
+.sp
the ((?:red|white) (king|queen))
-
+.sp
the captured substrings are "white queen" and "queen", and are numbered 1 and
2. The maximum number of capturing subpatterns is 65535, and the maximum depth
of nesting of all subpatterns, both capturing and non-capturing, is 200.
-
+.P
As a convenient shorthand, if any option settings are required at the start of
a non-capturing subpattern, the option letters may appear between the "?" and
the ":". Thus the two patterns
-
+.sp
(?i:saturday|sunday)
(?:(?i)saturday|sunday)
-
+.sp
match exactly the same set of strings. Because alternative branches are tried
from left to right, and options are not reset until the end of the subpattern
is reached, an option setting in one branch does affect subsequent branches, so
the above patterns match "SUNDAY" as well as "Saturday".
-
-.SH NAMED SUBPATTERNS
+.
+.
+.SH "NAMED SUBPATTERNS"
.rs
.sp
Identifying capturing parentheses by number is simple, but it can be very hard
to keep track of the numbers in complicated regular expressions. Furthermore,
-if an expression is modified, the numbers may change. To help with the
+if an expression is modified, the numbers may change. To help with this
difficulty, PCRE supports the naming of subpatterns, something that Perl does
not provide. The Python syntax (?P<name>...) is used. Names consist of
alphanumeric characters and underscores, and must be unique within a pattern.
-
+.P
Named capturing parentheses are still allocated numbers as well as names. The
PCRE API provides function calls for extracting the name-to-number translation
-table from a compiled pattern. For further details see the
+table from a compiled pattern. There is also a convenience function for
+extracting a captured substring by name. For further details see the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
.\"
documentation.
-
+.
+.
.SH REPETITION
.rs
.sp
Repetition is specified by quantifiers, which can follow any of the following
items:
-
+.sp
a literal data character
the . metacharacter
- the \\C escape sequence
- escapes such as \\d that match single characters
+ the \eC escape sequence
+ the \eX escape sequence (in UTF-8 mode with Unicode properties)
+ an escape such as \ed that matches a single character
a character class
a back reference (see next section)
a parenthesized subpattern (unless it is an assertion)
-
+.sp
The general repetition quantifier specifies a minimum and maximum number of
permitted matches, by giving the two numbers in curly brackets (braces),
separated by a comma. The numbers must be less than 65536, and the first must
be less than or equal to the second. For example:
-
+.sp
z{2,4}
-
+.sp
matches "zz", "zzz", or "zzzz". A closing brace on its own is not a special
character. If the second number is omitted, but the comma is present, there is
no upper limit; if the second number and the comma are both omitted, the
quantifier specifies an exact number of required matches. Thus
-
+.sp
[aeiou]{3,}
-
+.sp
matches at least 3 successive vowels, but may match many more, while
-
- \\d{8}
-
+.sp
+ \ed{8}
+.sp
matches exactly 8 digits. An opening curly bracket that appears in a position
where a quantifier is not allowed, or one that does not match the syntax of a
quantifier, is taken as a literal character. For example, {,6} is not a
quantifier, but a literal string of four characters.
-
+.P
In UTF-8 mode, quantifiers apply to UTF-8 characters rather than to individual
-bytes. Thus, for example, \\x{100}{2} matches two UTF-8 characters, each of
-which is represented by a two-byte sequence.
-
+bytes. Thus, for example, \ex{100}{2} matches two UTF-8 characters, each of
+which is represented by a two-byte sequence. Similarly, when Unicode property
+support is available, \eX{3} matches three Unicode extended sequences, each of
+which may be several bytes long (and they may be of different lengths).
+.P
The quantifier {0} is permitted, causing the expression to behave as if the
previous item and the quantifier were not present.
-
+.P
For convenience (and historical compatibility) the three most common
quantifiers have single-character abbreviations:
-
+.sp
* is equivalent to {0,}
+ is equivalent to {1,}
? is equivalent to {0,1}
-
+.sp
It is possible to construct infinite loops by following a subpattern that can
match no characters with a quantifier that has no upper limit, for example:
-
+.sp
(a?)*
-
+.sp
Earlier versions of Perl and PCRE used to give an error at compile time for
such patterns. However, because there are cases where this can be useful, such
patterns are now accepted, but if any repetition of the subpattern does in fact
match no characters, the loop is forcibly broken.
-
+.P
By default, the quantifiers are "greedy", that is, they match as much as
possible (up to the maximum number of permitted times), without causing the
rest of the pattern to fail. The classic example of where this gives problems
-is in trying to match comments in C programs. These appear between the
-sequences /* and */ and within the sequence, individual * and / characters may
-appear. An attempt to match C comments by applying the pattern
-
- /\\*.*\\*/
-
+is in trying to match comments in C programs. These appear between /* and */
+and within the comment, individual * and / characters may appear. An attempt to
+match C comments by applying the pattern
+.sp
+ /\e*.*\e*/
+.sp
to the string
-
- /* first command */ not comment /* second comment */
-
+.sp
+ /* first comment */ not comment /* second comment */
+.sp
fails, because it matches the entire string owing to the greediness of the .*
item.
-
+.P
However, if a quantifier is followed by a question mark, it ceases to be
greedy, and instead matches the minimum number of times possible, so the
pattern
-
- /\\*.*?\\*/
-
+.sp
+ /\e*.*?\e*/
+.sp
does the right thing with the C comments. The meaning of the various
quantifiers is not otherwise changed, just the preferred number of matches.
Do not confuse this use of question mark with its use as a quantifier in its
own right. Because it has two uses, it can sometimes appear doubled, as in
-
- \\d??\\d
-
+.sp
+ \ed??\ed
+.sp
which matches one digit by preference, but can match two if that is the only
way the rest of the pattern matches.
-
+.P
If the PCRE_UNGREEDY option is set (an option which is not available in Perl),
the quantifiers are not greedy by default, but individual ones can be made
greedy by following them with a question mark. In other words, it inverts the
default behaviour.
-
+.P
When a parenthesized subpattern is quantified with a minimum repeat count that
-is greater than 1 or with a limited maximum, more store is required for the
+is greater than 1 or with a limited maximum, more memory is required for the
compiled pattern, in proportion to the size of the minimum or maximum.
-
+.P
If a pattern starts with .* or .{0,} and the PCRE_DOTALL option (equivalent
to Perl's /s) is set, thus allowing the . to match newlines, the pattern is
implicitly anchored, because whatever follows will be tried against every
character position in the subject string, so there is no point in retrying the
overall match at any position after the first. PCRE normally treats such a
-pattern as though it were preceded by \\A.
-
+pattern as though it were preceded by \eA.
+.P
In cases where it is known that the subject string contains no newlines, it is
worth setting PCRE_DOTALL in order to obtain this optimization, or
alternatively using ^ to indicate anchoring explicitly.
-
+.P
However, there is one situation where the optimization cannot be used. When .*
is inside capturing parentheses that are the subject of a backreference
elsewhere in the pattern, a match at the start may fail, and a later one
succeed. Consider, for example:
-
- (.*)abc\\1
-
+.sp
+ (.*)abc\e1
+.sp
If the subject is "xyz123abc123" the match point is the fourth character. For
this reason, such a pattern is not implicitly anchored.
-
+.P
When a capturing subpattern is repeated, the value captured is the substring
that matched the final iteration. For example, after
-
- (tweedle[dume]{3}\\s*)+
-
+.sp
+ (tweedle[dume]{3}\es*)+
+.sp
has matched "tweedledum tweedledee" the value of the captured substring is
"tweedledee". However, if there are nested capturing subpatterns, the
corresponding captured values may have been set in previous iterations. For
example, after
-
+.sp
/(a|(b))+/
-
+.sp
matches "aba" the value of the second captured substring is "b".
-
-.SH ATOMIC GROUPING AND POSSESSIVE QUANTIFIERS
+.
+.
+.\" HTML <a name="atomicgroup"></a>
+.SH "ATOMIC GROUPING AND POSSESSIVE QUANTIFIERS"
.rs
.sp
With both maximizing and minimizing repetition, failure of what follows
@@ -735,95 +917,102 @@ number of repeats allows the rest of the pattern to match. Sometimes it is
useful to prevent this, either to change the nature of the match, or to cause
it fail earlier than it otherwise might, when the author of the pattern knows
there is no point in carrying on.
-
-Consider, for example, the pattern \\d+foo when applied to the subject line
-
+.P
+Consider, for example, the pattern \ed+foo when applied to the subject line
+.sp
123456bar
-
+.sp
After matching all 6 digits and then failing to match "foo", the normal
-action of the matcher is to try again with only 5 digits matching the \\d+
+action of the matcher is to try again with only 5 digits matching the \ed+
item, and then with 4, and so on, before ultimately failing. "Atomic grouping"
(a term taken from Jeffrey Friedl's book) provides the means for specifying
that once a subpattern has matched, it is not to be re-evaluated in this way.
-
+.P
If we use atomic grouping for the previous example, the matcher would give up
immediately on failing to match "foo" the first time. The notation is a kind of
special parenthesis, starting with (?> as in this example:
-
- (?>\\d+)foo
-
+.sp
+ (?>\ed+)foo
+.sp
This kind of parenthesis "locks up" the part of the pattern it contains once
it has matched, and a failure further into the pattern is prevented from
backtracking into it. Backtracking past it to previous items, however, works as
normal.
-
+.P
An alternative description is that a subpattern of this type matches the string
of characters that an identical standalone pattern would match, if anchored at
the current point in the subject string.
-
+.P
Atomic grouping subpatterns are not capturing subpatterns. Simple cases such as
the above example can be thought of as a maximizing repeat that must swallow
-everything it can. So, while both \\d+ and \\d+? are prepared to adjust the
+everything it can. So, while both \ed+ and \ed+? are prepared to adjust the
number of digits they match in order to make the rest of the pattern match,
-(?>\\d+) can only match an entire sequence of digits.
-
+(?>\ed+) can only match an entire sequence of digits.
+.P
Atomic groups in general can of course contain arbitrarily complicated
subpatterns, and can be nested. However, when the subpattern for an atomic
group is just a single repeated item, as in the example above, a simpler
notation, called a "possessive quantifier" can be used. This consists of an
additional + character following a quantifier. Using this notation, the
previous example can be rewritten as
-
- \\d++bar
-
+.sp
+ \ed++foo
+.sp
Possessive quantifiers are always greedy; the setting of the PCRE_UNGREEDY
option is ignored. They are a convenient notation for the simpler forms of
atomic group. However, there is no difference in the meaning or processing of a
possessive quantifier and the equivalent atomic group.
-
+.P
The possessive quantifier syntax is an extension to the Perl syntax. It
originates in Sun's Java package.
-
+.P
When a pattern contains an unlimited repeat inside a subpattern that can itself
be repeated an unlimited number of times, the use of an atomic group is the
only way to avoid some failing matches taking a very long time indeed. The
pattern
-
- (\\D+|<\\d+>)*[!?]
-
+.sp
+ (\eD+|<\ed+>)*[!?]
+.sp
matches an unlimited number of substrings that either consist of non-digits, or
digits enclosed in <>, followed by either ! or ?. When it matches, it runs
quickly. However, if it is applied to
-
+.sp
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-
+.sp
it takes a long time before reporting failure. This is because the string can
-be divided between the two repeats in a large number of ways, and all have to
-be tried. (The example used [!?] rather than a single character at the end,
-because both PCRE and Perl have an optimization that allows for fast failure
-when a single character is used. They remember the last single character that
-is required for a match, and fail early if it is not present in the string.)
-If the pattern is changed to
-
- ((?>\\D+)|<\\d+>)*[!?]
-
+be divided between the internal \eD+ repeat and the external * repeat in a
+large number of ways, and all have to be tried. (The example uses [!?] rather
+than a single character at the end, because both PCRE and Perl have an
+optimization that allows for fast failure when a single character is used. They
+remember the last single character that is required for a match, and fail early
+if it is not present in the string.) If the pattern is changed so that it uses
+an atomic group, like this:
+.sp
+ ((?>\eD+)|<\ed+>)*[!?]
+.sp
sequences of non-digits cannot be broken, and failure happens quickly.
-
-.SH BACK REFERENCES
+.
+.
+.\" HTML <a name="backreferences"></a>
+.SH "BACK REFERENCES"
.rs
.sp
Outside a character class, a backslash followed by a digit greater than 0 (and
possibly further digits) is a back reference to a capturing subpattern earlier
(that is, to its left) in the pattern, provided there have been that many
previous capturing left parentheses.
-
+.P
However, if the decimal number following the backslash is less than 10, it is
always taken as a back reference, and causes an error only if there are not
that many capturing left parentheses in the entire pattern. In other words, the
parentheses that are referenced need not be to the left of the reference for
-numbers less than 10. See the section entitled "Backslash" above for further
-details of the handling of digits following a backslash.
-
+numbers less than 10. See the subsection entitled "Non-printing characters"
+.\" HTML <a href="#digitsafterbackslash">
+.\" </a>
+above
+.\"
+for further details of the handling of digits following a backslash.
+.P
A back reference matches whatever actually matched the capturing subpattern in
the current subject string, rather than anything matching the subpattern
itself (see
@@ -832,212 +1021,239 @@ itself (see
"Subpatterns as subroutines"
.\"
below for a way of doing that). So the pattern
-
- (sens|respons)e and \\1ibility
-
+.sp
+ (sens|respons)e and \e1ibility
+.sp
matches "sense and sensibility" and "response and responsibility", but not
"sense and responsibility". If caseful matching is in force at the time of the
back reference, the case of letters is relevant. For example,
-
- ((?i)rah)\\s+\\1
-
+.sp
+ ((?i)rah)\es+\e1
+.sp
matches "rah rah" and "RAH RAH", but not "RAH rah", even though the original
capturing subpattern is matched caselessly.
-
+.P
Back references to named subpatterns use the Python syntax (?P=name). We could
rewrite the above example as follows:
-
- (?<p1>(?i)rah)\\s+(?P=p1)
-
+.sp
+ (?<p1>(?i)rah)\es+(?P=p1)
+.sp
There may be more than one back reference to the same subpattern. If a
subpattern has not actually been used in a particular match, any back
references to it always fail. For example, the pattern
-
- (a|(bc))\\2
-
+.sp
+ (a|(bc))\e2
+.sp
always fails if it starts to match "a" rather than "bc". Because there may be
many capturing parentheses in a pattern, all digits following the backslash are
taken as part of a potential back reference number. If the pattern continues
with a digit character, some delimiter must be used to terminate the back
reference. If the PCRE_EXTENDED option is set, this can be whitespace.
-Otherwise an empty comment can be used.
-
+Otherwise an empty comment (see
+.\" HTML <a href="#comments">
+.\" </a>
+"Comments"
+.\"
+below) can be used.
+.P
A back reference that occurs inside the parentheses to which it refers fails
-when the subpattern is first used, so, for example, (a\\1) never matches.
+when the subpattern is first used, so, for example, (a\e1) never matches.
However, such references can be useful inside repeated subpatterns. For
example, the pattern
-
- (a|b\\1)+
-
+.sp
+ (a|b\e1)+
+.sp
matches any number of "a"s and also "aba", "ababbaa" etc. At each iteration of
the subpattern, the back reference matches the character string corresponding
to the previous iteration. In order for this to work, the pattern must be such
that the first iteration does not need to match the back reference. This can be
done using alternation, as in the example above, or by a quantifier with a
minimum of zero.
-
+.
+.
+.\" HTML <a name="bigassertions"></a>
.SH ASSERTIONS
.rs
.sp
An assertion is a test on the characters following or preceding the current
matching point that does not actually consume any characters. The simple
-assertions coded as \\b, \\B, \\A, \\G, \\Z, \\z, ^ and $ are described above.
+assertions coded as \eb, \eB, \eA, \eG, \eZ, \ez, ^ and $ are described
+.\" HTML <a href="#smallassertions">
+.\" </a>
+above.
+.\"
+.P
More complicated assertions are coded as subpatterns. There are two kinds:
those that look ahead of the current position in the subject string, and those
-that look behind it.
-
-An assertion subpattern is matched in the normal way, except that it does not
-cause the current matching position to be changed. Lookahead assertions start
+that look behind it. An assertion subpattern is matched in the normal way,
+except that it does not cause the current matching position to be changed.
+.P
+Assertion subpatterns are not capturing subpatterns, and may not be repeated,
+because it makes no sense to assert the same thing several times. If any kind
+of assertion contains capturing subpatterns within it, these are counted for
+the purposes of numbering the capturing subpatterns in the whole pattern.
+However, substring capturing is carried out only for positive assertions,
+because it does not make sense for negative assertions.
+.
+.
+.SS "Lookahead assertions"
+.rs
+.sp
+Lookahead assertions start
with (?= for positive assertions and (?! for negative assertions. For example,
-
- \\w+(?=;)
-
+.sp
+ \ew+(?=;)
+.sp
matches a word followed by a semicolon, but does not include the semicolon in
the match, and
-
+.sp
foo(?!bar)
-
+.sp
matches any occurrence of "foo" that is not followed by "bar". Note that the
apparently similar pattern
-
+.sp
(?!foo)bar
-
+.sp
does not find an occurrence of "bar" that is preceded by something other than
"foo"; it finds any occurrence of "bar" whatsoever, because the assertion
(?!foo) is always true when the next three characters are "bar". A
-lookbehind assertion is needed to achieve this effect.
-
+lookbehind assertion is needed to achieve the other effect.
+.P
If you want to force a matching failure at some point in a pattern, the most
convenient way to do it is with (?!) because an empty string always matches, so
an assertion that requires there not to be an empty string must always fail.
-
+.
+.
+.\" HTML <a name="lookbehind"></a>
+.SS "Lookbehind assertions"
+.rs
+.sp
Lookbehind assertions start with (?<= for positive assertions and (?<! for
negative assertions. For example,
-
+.sp
(?<!foo)bar
-
+.sp
does find an occurrence of "bar" that is not preceded by "foo". The contents of
a lookbehind assertion are restricted such that all the strings it matches must
have a fixed length. However, if there are several alternatives, they do not
all have to have the same fixed length. Thus
-
+.sp
(?<=bullock|donkey)
-
+.sp
is permitted, but
-
+.sp
(?<!dogs?|cats?)
-
+.sp
causes an error at compile time. Branches that match different length strings
are permitted only at the top level of a lookbehind assertion. This is an
extension compared with Perl (at least for 5.8), which requires all branches to
match the same length of string. An assertion such as
-
+.sp
(?<=ab(c|de))
-
+.sp
is not permitted, because its single top-level branch can match two different
lengths, but it is acceptable if rewritten to use two top-level branches:
-
+.sp
(?<=abc|abde)
-
+.sp
The implementation of lookbehind assertions is, for each alternative, to
temporarily move the current position back by the fixed width and then try to
match. If there are insufficient characters before the current position, the
match is deemed to fail.
-
-PCRE does not allow the \\C escape (which matches a single byte in UTF-8 mode)
+.P
+PCRE does not allow the \eC escape (which matches a single byte in UTF-8 mode)
to appear in lookbehind assertions, because it makes it impossible to calculate
-the length of the lookbehind.
-
+the length of the lookbehind. The \eX escape, which can match different numbers
+of bytes, is also not permitted.
+.P
Atomic groups can be used in conjunction with lookbehind assertions to specify
efficient matching at the end of the subject string. Consider a simple pattern
such as
-
+.sp
abcd$
-
+.sp
when applied to a long string that does not match. Because matching proceeds
from left to right, PCRE will look for each "a" in the subject and then see if
what follows matches the rest of the pattern. If the pattern is specified as
-
+.sp
^.*abcd$
-
+.sp
the initial .* matches the entire string at first, but when this fails (because
there is no following "a"), it backtracks to match all but the last character,
then all but the last two characters, and so on. Once again the search for "a"
covers the entire string, from right to left, so we are no better off. However,
if the pattern is written as
-
+.sp
^(?>.*)(?<=abcd)
-
-or, equivalently,
-
+.sp
+or, equivalently, using the possessive quantifier syntax,
+.sp
^.*+(?<=abcd)
-
+.sp
there can be no backtracking for the .* item; it can match only the entire
string. The subsequent lookbehind assertion does a single test on the last four
characters. If it fails, the match fails immediately. For long strings, this
approach makes a significant difference to the processing time.
-
+.
+.
+.SS "Using multiple assertions"
+.rs
+.sp
Several assertions (of any sort) may occur in succession. For example,
-
- (?<=\\d{3})(?<!999)foo
-
+.sp
+ (?<=\ed{3})(?<!999)foo
+.sp
matches "foo" preceded by three digits that are not "999". Notice that each of
the assertions is applied independently at the same point in the subject
string. First there is a check that the previous three characters are all
digits, and then there is a check that the same three characters are not "999".
-This pattern does \fInot\fR match "foo" preceded by six characters, the first
+This pattern does \fInot\fP match "foo" preceded by six characters, the first
of which are digits and the last three of which are not "999". For example, it
doesn't match "123abcfoo". A pattern to do that is
-
- (?<=\\d{3}...)(?<!999)foo
-
+.sp
+ (?<=\ed{3}...)(?<!999)foo
+.sp
This time the first assertion looks at the preceding six characters, checking
that the first three are digits, and then the second assertion checks that the
preceding three characters are not "999".
-
+.P
Assertions can be nested in any combination. For example,
-
+.sp
(?<=(?<!foo)bar)baz
-
+.sp
matches an occurrence of "baz" that is preceded by "bar" which in turn is not
preceded by "foo", while
-
- (?<=\\d{3}(?!999)...)foo
-
-is another pattern which matches "foo" preceded by three digits and any three
+.sp
+ (?<=\ed{3}(?!999)...)foo
+.sp
+is another pattern that matches "foo" preceded by three digits and any three
characters that are not "999".
-
-Assertion subpatterns are not capturing subpatterns, and may not be repeated,
-because it makes no sense to assert the same thing several times. If any kind
-of assertion contains capturing subpatterns within it, these are counted for
-the purposes of numbering the capturing subpatterns in the whole pattern.
-However, substring capturing is carried out only for positive assertions,
-because it does not make sense for negative assertions.
-
-.SH CONDITIONAL SUBPATTERNS
+.
+.
+.SH "CONDITIONAL SUBPATTERNS"
.rs
.sp
It is possible to cause the matching process to obey a subpattern
conditionally or to choose between two alternative subpatterns, depending on
the result of an assertion, or whether a previous capturing subpattern matched
or not. The two possible forms of conditional subpattern are
-
+.sp
(?(condition)yes-pattern)
(?(condition)yes-pattern|no-pattern)
-
+.sp
If the condition is satisfied, the yes-pattern is used; otherwise the
no-pattern (if present) is used. If there are more than two alternatives in the
subpattern, a compile-time error occurs.
-
+.P
There are three kinds of condition. If the text between the parentheses
consists of a sequence of digits, the condition is satisfied if the capturing
subpattern of that number has previously matched. The number must be greater
than zero. Consider the following pattern, which contains non-significant white
space to make it more readable (assume the PCRE_EXTENDED option) and to divide
it into three parts for ease of discussion:
-
- ( \\( )? [^()]+ (?(1) \\) )
-
+.sp
+ ( \e( )? [^()]+ (?(1) \e) )
+.sp
The first part matches an optional opening parenthesis, and if that
character is present, sets it as the first captured substring. The second part
matches one or more characters that are not parentheses. The third part is a
@@ -1047,153 +1263,158 @@ the condition is true, and so the yes-pattern is executed and a closing
parenthesis is required. Otherwise, since no-pattern is not present, the
subpattern matches nothing. In other words, this pattern matches a sequence of
non-parentheses, optionally enclosed in parentheses.
-
+.P
If the condition is the string (R), it is satisfied if a recursive call to the
pattern or subpattern has been made. At "top level", the condition is false.
This is a PCRE extension. Recursive patterns are described in the next section.
-
+.P
If the condition is not a sequence of digits or (R), it must be an assertion.
This may be a positive or negative lookahead or lookbehind assertion. Consider
this pattern, again containing non-significant white space, and with the two
alternatives on the second line:
-
+.sp
(?(?=[^a-z]*[a-z])
- \\d{2}-[a-z]{3}-\\d{2} | \\d{2}-\\d{2}-\\d{2} )
-
+ \ed{2}-[a-z]{3}-\ed{2} | \ed{2}-\ed{2}-\ed{2} )
+.sp
The condition is a positive lookahead assertion that matches an optional
sequence of non-letters followed by a letter. In other words, it tests for the
presence of at least one letter in the subject. If a letter is found, the
subject is matched against the first alternative; otherwise it is matched
against the second. This pattern matches strings in one of the two forms
dd-aaa-dd or dd-dd-dd, where aaa are letters and dd are digits.
-
+.
+.
+.\" HTML <a name="comments"></a>
.SH COMMENTS
.rs
.sp
-The sequence (?# marks the start of a comment which continues up to the next
+The sequence (?# marks the start of a comment that continues up to the next
closing parenthesis. Nested parentheses are not permitted. The characters
that make up a comment play no part in the pattern matching at all.
-
+.P
If the PCRE_EXTENDED option is set, an unescaped # character outside a
character class introduces a comment that continues up to the next newline
character in the pattern.
-
-.SH RECURSIVE PATTERNS
+.
+.
+.SH "RECURSIVE PATTERNS"
.rs
.sp
Consider the problem of matching a string in parentheses, allowing for
unlimited nested parentheses. Without the use of recursion, the best that can
be done is to use a pattern that matches up to some fixed depth of nesting. It
-is not possible to handle an arbitrary nesting depth. Perl has provided an
-experimental facility that allows regular expressions to recurse (amongst other
-things). It does this by interpolating Perl code in the expression at run time,
-and the code can refer to the expression itself. A Perl pattern to solve the
-parentheses problem can be created like this:
-
- $re = qr{\\( (?: (?>[^()]+) | (?p{$re}) )* \\)}x;
-
+is not possible to handle an arbitrary nesting depth. Perl provides a facility
+that allows regular expressions to recurse (amongst other things). It does this
+by interpolating Perl code in the expression at run time, and the code can
+refer to the expression itself. A Perl pattern to solve the parentheses problem
+can be created like this:
+.sp
+ $re = qr{\e( (?: (?>[^()]+) | (?p{$re}) )* \e)}x;
+.sp
The (?p{...}) item interpolates Perl code at run time, and in this case refers
recursively to the pattern in which it appears. Obviously, PCRE cannot support
the interpolation of Perl code. Instead, it supports some special syntax for
recursion of the entire pattern, and also for individual subpattern recursion.
-
+.P
The special item that consists of (? followed by a number greater than zero and
a closing parenthesis is a recursive call of the subpattern of the given
number, provided that it occurs inside that subpattern. (If not, it is a
"subroutine" call, which is described in the next section.) The special item
(?R) is a recursive call of the entire regular expression.
-
+.P
For example, this PCRE pattern solves the nested parentheses problem (assume
the PCRE_EXTENDED option is set so that white space is ignored):
-
- \\( ( (?>[^()]+) | (?R) )* \\)
-
+.sp
+ \e( ( (?>[^()]+) | (?R) )* \e)
+.sp
First it matches an opening parenthesis. Then it matches any number of
substrings which can either be a sequence of non-parentheses, or a recursive
match of the pattern itself (that is a correctly parenthesized substring).
Finally there is a closing parenthesis.
-
+.P
If this were part of a larger pattern, you would not want to recurse the entire
pattern, so instead you could use this:
-
- ( \\( ( (?>[^()]+) | (?1) )* \\) )
-
+.sp
+ ( \e( ( (?>[^()]+) | (?1) )* \e) )
+.sp
We have put the pattern into parentheses, and caused the recursion to refer to
them instead of the whole pattern. In a larger pattern, keeping track of
parenthesis numbers can be tricky. It may be more convenient to use named
parentheses instead. For this, PCRE uses (?P>name), which is an extension to
the Python syntax that PCRE uses for named parentheses (Perl does not provide
named parentheses). We could rewrite the above example as follows:
-
- (?P<pn> \\( ( (?>[^()]+) | (?P>pn) )* \\) )
-
+.sp
+ (?P<pn> \e( ( (?>[^()]+) | (?P>pn) )* \e) )
+.sp
This particular example pattern contains nested unlimited repeats, and so the
use of atomic grouping for matching strings of non-parentheses is important
when applying the pattern to strings that do not match. For example, when this
pattern is applied to
-
+.sp
(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa()
-
+.sp
it yields "no match" quickly. However, if atomic grouping is not used,
the match runs for a very long time indeed because there are so many different
ways the + and * repeats can carve up the subject, and all have to be tested
before failure can be reported.
-
+.P
At the end of a match, the values set for any capturing subpatterns are those
from the outermost level of the recursion at which the subpattern value is set.
If you want to obtain intermediate values, a callout function can be used (see
-below and the
+the next section and the
.\" HREF
-\fBpcrecallout\fR
+\fBpcrecallout\fP
.\"
documentation). If the pattern above is matched against
-
+.sp
(ab(cd)ef)
-
+.sp
the value for the capturing parentheses is "ef", which is the last value taken
on at the top level. If additional parentheses are added, giving
-
- \\( ( ( (?>[^()]+) | (?R) )* ) \\)
+.sp
+ \e( ( ( (?>[^()]+) | (?R) )* ) \e)
^ ^
^ ^
-
+.sp
the string they capture is "ab(cd)ef", the contents of the top level
parentheses. If there are more than 15 capturing parentheses in a pattern, PCRE
has to obtain extra memory to store data during a recursion, which it does by
-using \fBpcre_malloc\fR, freeing it via \fBpcre_free\fR afterwards. If no
+using \fBpcre_malloc\fP, freeing it via \fBpcre_free\fP afterwards. If no
memory can be obtained, the match fails with the PCRE_ERROR_NOMEMORY error.
-
+.P
Do not confuse the (?R) item with the condition (R), which tests for recursion.
Consider this pattern, which matches text in angle brackets, allowing for
arbitrary nesting. Only digits are allowed in nested brackets (that is, when
recursing), whereas any characters are permitted at the outer level.
-
- < (?: (?(R) \\d++ | [^<>]*+) | (?R)) * >
-
+.sp
+ < (?: (?(R) \ed++ | [^<>]*+) | (?R)) * >
+.sp
In this pattern, (?(R) is the start of a conditional subpattern, with two
different alternatives for the recursive and non-recursive cases. The (?R) item
is the actual recursive call.
-
+.
+.
.\" HTML <a name="subpatternsassubroutines"></a>
-.SH SUBPATTERNS AS SUBROUTINES
+.SH "SUBPATTERNS AS SUBROUTINES"
.rs
.sp
If the syntax for a recursive subpattern reference (either by number or by
name) is used outside the parentheses to which it refers, it operates like a
subroutine in a programming language. An earlier example pointed out that the
pattern
-
- (sens|respons)e and \\1ibility
-
+.sp
+ (sens|respons)e and \e1ibility
+.sp
matches "sense and sensibility" and "response and responsibility", but not
"sense and responsibility". If instead the pattern
-
+.sp
(sens|respons)e and (?1)ibility
-
+.sp
is used, it does match "sense and responsibility" as well as the other two
strings. Such references must, however, follow the subpattern to which they
refer.
-
+.
+.
.SH CALLOUTS
.rs
.sp
@@ -1201,31 +1422,35 @@ Perl has a feature whereby using the sequence (?{...}) causes arbitrary Perl
code to be obeyed in the middle of matching a regular expression. This makes it
possible, amongst other things, to extract different substrings that match the
same pair of parentheses when there is a repetition.
-
+.P
PCRE provides a similar feature, but of course it cannot obey arbitrary Perl
code. The feature is called "callout". The caller of PCRE provides an external
-function by putting its entry point in the global variable \fIpcre_callout\fR.
+function by putting its entry point in the global variable \fIpcre_callout\fP.
By default, this variable contains NULL, which disables all calling out.
-
+.P
Within a regular expression, (?C) indicates the points at which the external
function is to be called. If you want to identify different callout points, you
can put a number less than 256 after the letter C. The default value is zero.
For example, this pattern has two callout points:
-
+.sp
(?C1)\dabc(?C2)def
-
-During matching, when PCRE reaches a callout point (and \fIpcre_callout\fR is
+.sp
+If the PCRE_AUTO_CALLOUT flag is passed to \fBpcre_compile()\fP, callouts are
+automatically installed before each item in the pattern. They are all numbered
+255.
+.P
+During matching, when PCRE reaches a callout point (and \fIpcre_callout\fP is
set), the external function is called. It is provided with the number of the
-callout, and, optionally, one item of data originally supplied by the caller of
-\fBpcre_exec()\fR. The callout function may cause matching to backtrack, or to
-fail altogether. A complete description of the interface to the callout
-function is given in the
+callout, the position in the pattern, and, optionally, one item of data
+originally supplied by the caller of \fBpcre_exec()\fP. The callout function
+may cause matching to proceed, to backtrack, or to fail altogether. A complete
+description of the interface to the callout function is given in the
.\" HREF
-\fBpcrecallout\fR
+\fBpcrecallout\fP
.\"
documentation.
-
+.P
.in 0
-Last updated: 03 February 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcreperform.3 b/doc/pcreperform.3
index 52a332f..999268e 100644
--- a/doc/pcreperform.3
+++ b/doc/pcreperform.3
@@ -1,16 +1,23 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH PCRE PERFORMANCE
+.SH "PCRE PERFORMANCE"
.rs
.sp
Certain items that may appear in regular expression patterns are more efficient
than others. It is more efficient to use a character class like [aeiou] than a
set of alternatives such as (a|e|i|o|u). In general, the simplest construction
that provides the required behaviour is usually the most efficient. Jeffrey
-Friedl's book contains a lot of discussion about optimizing regular expressions
-for efficient performance.
-
+Friedl's book contains a lot of useful general discussion about optimizing
+regular expressions for efficient performance. This document contains a few
+observations about PCRE.
+.P
+Using Unicode character properties (the \ep, \eP, and \eX escapes) is slow,
+because PCRE has to scan a structure that contains data for over fifteen
+thousand characters whenever it needs a character's property. If you can find
+an alternative pattern that does not use character properties, it will probably
+be faster.
+.P
When a pattern begins with .* not in parentheses, or in parentheses that are
not the subject of a backreference, and the PCRE_DOTALL option is set, the
pattern is implicitly anchored by PCRE, since it can match only at the start of
@@ -19,48 +26,51 @@ optimization, because the . metacharacter does not then match a newline, and if
the subject string contains newlines, the pattern may match from the character
immediately following one of them instead of from the very start. For example,
the pattern
-
+.sp
.*second
-
-matches the subject "first\\nand second" (where \\n stands for a newline
+.sp
+matches the subject "first\enand second" (where \en stands for a newline
character), with the match starting at the seventh character. In order to do
this, PCRE has to retry the match starting after every newline in the subject.
-
+.P
If you are using such a pattern with subject strings that do not contain
newlines, the best performance is obtained by setting PCRE_DOTALL, or starting
the pattern with ^.* to indicate explicit anchoring. That saves PCRE from
having to scan along the subject looking for a newline to restart at.
-
+.P
Beware of patterns that contain nested indefinite repeats. These can take a
long time to run when applied to a string that does not match. Consider the
pattern fragment
-
+.sp
(a+)*
-
+.sp
This can match "aaaa" in 33 different ways, and this number increases very
rapidly as the string gets longer. (The * repeat can match 0, 1, 2, 3, or 4
times, and for each of those cases other than 0, the + repeats can match
different numbers of times.) When the remainder of the pattern is such that the
entire match is going to fail, PCRE has in principle to try every possible
variation, and this can take an extremely long time.
-
+.P
An optimization catches some of the more simple cases such as
-
+.sp
(a+)*b
-
+.sp
where a literal character follows. Before embarking on the standard matching
procedure, PCRE checks that there is a "b" later in the subject string, and if
there is not, it fails the match immediately. However, when there is no
following literal this optimization cannot be used. You can see the difference
by comparing the behaviour of
-
- (a+)*\\d
-
+.sp
+ (a+)*\ed
+.sp
with the pattern above. The former gives a failure almost instantly when
applied to a whole line of "a" characters, whereas the latter takes an
appreciable time with strings longer than about 20 characters.
-
+.P
+In many cases, the solution to this kind of performance issue is to use an
+atomic group or a possessive quantifier.
+.P
.in 0
-Last updated: 03 February 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcreposix.3 b/doc/pcreposix.3
index 5198630..321dcd7 100644
--- a/doc/pcreposix.3
+++ b/doc/pcreposix.3
@@ -1,184 +1,191 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions.
-.SH SYNOPSIS OF POSIX API
+.SH "SYNOPSIS OF POSIX API"
+.rs
+.sp
.B #include <pcreposix.h>
.PP
.SM
.br
-.B int regcomp(regex_t *\fIpreg\fR, const char *\fIpattern\fR,
+.B int regcomp(regex_t *\fIpreg\fP, const char *\fIpattern\fP,
.ti +5n
-.B int \fIcflags\fR);
+.B int \fIcflags\fP);
.PP
.br
-.B int regexec(regex_t *\fIpreg\fR, const char *\fIstring\fR,
+.B int regexec(regex_t *\fIpreg\fP, const char *\fIstring\fP,
.ti +5n
-.B size_t \fInmatch\fR, regmatch_t \fIpmatch\fR[], int \fIeflags\fR);
+.B size_t \fInmatch\fP, regmatch_t \fIpmatch\fP[], int \fIeflags\fP);
.PP
.br
-.B size_t regerror(int \fIerrcode\fR, const regex_t *\fIpreg\fR,
+.B size_t regerror(int \fIerrcode\fP, const regex_t *\fIpreg\fP,
.ti +5n
-.B char *\fIerrbuf\fR, size_t \fIerrbuf_size\fR);
+.B char *\fIerrbuf\fP, size_t \fIerrbuf_size\fP);
.PP
.br
-.B void regfree(regex_t *\fIpreg\fR);
-
+.B void regfree(regex_t *\fIpreg\fP);
+.
.SH DESCRIPTION
.rs
.sp
This set of functions provides a POSIX-style API to the PCRE regular expression
package. See the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
.\"
-documentation for a description of the native API, which contains additional
+documentation for a description of PCRE's native API, which contains additional
functionality.
-
+.P
The functions described here are just wrapper functions that ultimately call
-the PCRE native API. Their prototypes are defined in the \fBpcreposix.h\fR
+the PCRE native API. Their prototypes are defined in the \fBpcreposix.h\fP
header file, and on Unix systems the library itself is called
-\fBpcreposix.a\fR, so can be accessed by adding \fB-lpcreposix\fR to the
-command for linking an application which uses them. Because the POSIX functions
-call the native ones, it is also necessary to add \fR-lpcre\fR.
-
+\fBpcreposix.a\fP, so can be accessed by adding \fB-lpcreposix\fP to the
+command for linking an application that uses them. Because the POSIX functions
+call the native ones, it is also necessary to add \fB-lpcre\fP.
+.P
I have implemented only those option bits that can be reasonably mapped to PCRE
native options. In addition, the options REG_EXTENDED and REG_NOSUB are defined
with the value zero. They have no effect, but since programs that are written
to the POSIX interface often use them, this makes it easier to slot in PCRE as
a replacement library. Other POSIX options are not even defined.
-
+.P
When PCRE is called via these functions, it is only the API that is POSIX-like
in style. The syntax and semantics of the regular expressions themselves are
still those of Perl, subject to the setting of various PCRE options, as
described below. "POSIX-like in style" means that the API approximates to the
POSIX definition; it is not fully POSIX-compatible, and in multi-byte encoding
domains it is probably even less compatible.
-
-The header for these functions is supplied as \fBpcreposix.h\fR to avoid any
+.P
+The header for these functions is supplied as \fBpcreposix.h\fP to avoid any
potential clash with other POSIX libraries. It can, of course, be renamed or
-aliased as \fBregex.h\fR, which is the "correct" name. It provides two
-structure types, \fIregex_t\fR for compiled internal forms, and
-\fIregmatch_t\fR for returning captured substrings. It also defines some
+aliased as \fBregex.h\fP, which is the "correct" name. It provides two
+structure types, \fIregex_t\fP for compiled internal forms, and
+\fIregmatch_t\fP for returning captured substrings. It also defines some
constants whose names start with "REG_"; these are used for setting options and
identifying error codes.
-
-.SH COMPILING A PATTERN
+.P
+.SH "COMPILING A PATTERN"
.rs
.sp
-The function \fBregcomp()\fR is called to compile a pattern into an
+The function \fBregcomp()\fP is called to compile a pattern into an
internal form. The pattern is a C string terminated by a binary zero, and
-is passed in the argument \fIpattern\fR. The \fIpreg\fR argument is a pointer
-to a regex_t structure which is used as a base for storing information about
-the compiled expression.
-
-The argument \fIcflags\fR is either zero, or contains one or more of the bits
+is passed in the argument \fIpattern\fP. The \fIpreg\fP argument is a pointer
+to a \fBregex_t\fP structure that is used as a base for storing information
+about the compiled expression.
+.P
+The argument \fIcflags\fP is either zero, or contains one or more of the bits
defined by the following macros:
-
+.sp
REG_ICASE
-
+.sp
The PCRE_CASELESS option is set when the expression is passed for compilation
to the native function.
-
+.sp
REG_NEWLINE
-
+.sp
The PCRE_MULTILINE option is set when the expression is passed for compilation
-to the native function. Note that this does \fInot\fR mimic the defined POSIX
+to the native function. Note that this does \fInot\fP mimic the defined POSIX
behaviour for REG_NEWLINE (see the following section).
-
+.P
In the absence of these flags, no options are passed to the native function.
This means the the regex is compiled with PCRE default semantics. In
particular, the way it handles newline characters in the subject string is the
Perl way, not the POSIX way. Note that setting PCRE_MULTILINE has only
-\fIsome\fR of the effects specified for REG_NEWLINE. It does not affect the way
+\fIsome\fP of the effects specified for REG_NEWLINE. It does not affect the way
newlines are matched by . (they aren't) or by a negative class such as [^a]
(they are).
-
-The yield of \fBregcomp()\fR is zero on success, and non-zero otherwise. The
-\fIpreg\fR structure is filled in on success, and one member of the structure
-is public: \fIre_nsub\fR contains the number of capturing subpatterns in
+.P
+The yield of \fBregcomp()\fP is zero on success, and non-zero otherwise. The
+\fIpreg\fP structure is filled in on success, and one member of the structure
+is public: \fIre_nsub\fP contains the number of capturing subpatterns in
the regular expression. Various error codes are defined in the header file.
-
-.SH MATCHING NEWLINE CHARACTERS
+.
+.
+.SH "MATCHING NEWLINE CHARACTERS"
.rs
.sp
This area is not simple, because POSIX and Perl take different views of things.
It is not possible to get PCRE to obey POSIX semantics, but then PCRE was never
intended to be a POSIX engine. The following table lists the different
possibilities for matching newline characters in PCRE:
-
+.sp
Default Change with
-
+.sp
. matches newline no PCRE_DOTALL
newline matches [^a] yes not changeable
- $ matches \\n at end yes PCRE_DOLLARENDONLY
- $ matches \\n in middle no PCRE_MULTILINE
- ^ matches \\n in middle no PCRE_MULTILINE
-
+ $ matches \en at end yes PCRE_DOLLARENDONLY
+ $ matches \en in middle no PCRE_MULTILINE
+ ^ matches \en in middle no PCRE_MULTILINE
+.sp
This is the equivalent table for POSIX:
-
+.sp
Default Change with
-
- . matches newline yes REG_NEWLINE
- newline matches [^a] yes REG_NEWLINE
- $ matches \\n at end no REG_NEWLINE
- $ matches \\n in middle no REG_NEWLINE
- ^ matches \\n in middle no REG_NEWLINE
-
+.sp
+ . matches newline yes REG_NEWLINE
+ newline matches [^a] yes REG_NEWLINE
+ $ matches \en at end no REG_NEWLINE
+ $ matches \en in middle no REG_NEWLINE
+ ^ matches \en in middle no REG_NEWLINE
+.sp
PCRE's behaviour is the same as Perl's, except that there is no equivalent for
-PCRE_DOLLARENDONLY in Perl. In both PCRE and Perl, there is no way to stop
+PCRE_DOLLAR_ENDONLY in Perl. In both PCRE and Perl, there is no way to stop
newline from matching [^a].
-
+.P
The default POSIX newline handling can be obtained by setting PCRE_DOTALL and
-PCRE_DOLLARENDONLY, but there is no way to make PCRE behave exactly as for the
+PCRE_DOLLAR_ENDONLY, but there is no way to make PCRE behave exactly as for the
REG_NEWLINE action.
-
-.SH MATCHING A PATTERN
+.
+.
+.SH "MATCHING A PATTERN"
.rs
.sp
-The function \fBregexec()\fR is called to match a pre-compiled pattern
-\fIpreg\fR against a given \fIstring\fR, which is terminated by a zero byte,
-subject to the options in \fIeflags\fR. These can be:
-
+The function \fBregexec()\fP is called to match a compiled pattern \fIpreg\fP
+against a given \fIstring\fP, which is terminated by a zero byte, subject to
+the options in \fIeflags\fP. These can be:
+.sp
REG_NOTBOL
-
+.sp
The PCRE_NOTBOL option is set when calling the underlying PCRE matching
function.
-
+.sp
REG_NOTEOL
-
+.sp
The PCRE_NOTEOL option is set when calling the underlying PCRE matching
function.
-
+.P
The portion of the string that was matched, and also any captured substrings,
-are returned via the \fIpmatch\fR argument, which points to an array of
-\fInmatch\fR structures of type \fIregmatch_t\fR, containing the members
-\fIrm_so\fR and \fIrm_eo\fR. These contain the offset to the first character of
+are returned via the \fIpmatch\fP argument, which points to an array of
+\fInmatch\fP structures of type \fIregmatch_t\fP, containing the members
+\fIrm_so\fP and \fIrm_eo\fP. These contain the offset to the first character of
each substring and the offset to the first character after the end of each
substring, respectively. The 0th element of the vector relates to the entire
-portion of \fIstring\fR that was matched; subsequent elements relate to the
+portion of \fIstring\fP that was matched; subsequent elements relate to the
capturing subpatterns of the regular expression. Unused entries in the array
have both structure members set to -1.
-
+.P
A successful match yields a zero return; various error codes are defined in the
header file, of which REG_NOMATCH is the "expected" failure code.
-
-.SH ERROR MESSAGES
+.
+.
+.SH "ERROR MESSAGES"
.rs
.sp
-The \fBregerror()\fR function maps a non-zero errorcode from either
-\fBregcomp()\fR or \fBregexec()\fR to a printable message. If \fIpreg\fR is not
+The \fBregerror()\fP function maps a non-zero errorcode from either
+\fBregcomp()\fP or \fBregexec()\fP to a printable message. If \fIpreg\fP is not
NULL, the error should have arisen from the use of that structure. A message
-terminated by a binary zero is placed in \fIerrbuf\fR. The length of the
-message, including the zero, is limited to \fIerrbuf_size\fR. The yield of the
+terminated by a binary zero is placed in \fIerrbuf\fP. The length of the
+message, including the zero, is limited to \fIerrbuf_size\fP. The yield of the
function is the size of buffer needed to hold the whole message.
-
-.SH STORAGE
+.
+.
+.SH MEMORY USAGE
.rs
.sp
Compiling a regular expression causes memory to be allocated and associated
-with the \fIpreg\fR structure. The function \fBregfree()\fR frees all such
-memory, after which \fIpreg\fR may no longer be used as a compiled expression.
-
+with the \fIpreg\fP structure. The function \fBregfree()\fP frees all such
+memory, after which \fIpreg\fP may no longer be used as a compiled expression.
+.
+.
.SH AUTHOR
.rs
.sp
@@ -187,8 +194,8 @@ Philip Hazel <ph10@cam.ac.uk>
University Computing Service,
.br
Cambridge CB2 3QG, England.
-
+.P
.in 0
-Last updated: 03 February 2003
+Last updated: 07 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcreprecompile.3 b/doc/pcreprecompile.3
new file mode 100644
index 0000000..f08939b
--- /dev/null
+++ b/doc/pcreprecompile.3
@@ -0,0 +1,125 @@
+.TH PCRE 3
+.SH NAME
+PCRE - Perl-compatible regular expressions
+.SH "SAVING AND RE-USING PRECOMPILED PCRE PATTERNS"
+.rs
+.sp
+If you are running an application that uses a large number of regular
+expression patterns, it may be useful to store them in a precompiled form
+instead of having to compile them every time the application is run.
+If you are not using any private character tables (see the
+.\" HREF
+\fBpcre_maketables()\fP
+.\"
+documentation), this is relatively straightforward. If you are using private
+tables, it is a little bit more complicated.
+.P
+If you save compiled patterns to a file, you can copy them to a different host
+and run them there. This works even if the new host has the opposite endianness
+to the one on which the patterns were compiled. There may be a small
+performance penalty, but it should be insignificant.
+.
+.
+.SH "SAVING A COMPILED PATTERN"
+.rs
+.sh
+The value returned by \fBpcre_compile()\fP points to a single block of memory
+that holds the compiled pattern and associated data. You can find the length of
+this block in bytes by calling \fBpcre_fullinfo()\fP with an argument of
+PCRE_INFO_SIZE. You can then save the data in any appropriate manner. Here is
+sample code that compiles a pattern and writes it to a file. It assumes that
+the variable \fIfd\fP refers to a file that is open for output:
+.sp
+ int erroroffset, rc, size;
+ char *error;
+ pcre *re;
+.sp
+ re = pcre_compile("my pattern", 0, &error, &erroroffset, NULL);
+ if (re == NULL) { ... handle errors ... }
+ rc = pcre_fullinfo(re, NULL, PCRE_INFO_SIZE, &size);
+ if (rc < 0) { ... handle errors ... }
+ rc = fwrite(re, 1, size, fd);
+ if (rc != size) { ... handle errors ... }
+.sp
+In this example, the bytes that comprise the compiled pattern are copied
+exactly. Note that this is binary data that may contain any of the 256 possible
+byte values. On systems that make a distinction between binary and non-binary
+data, be sure that the file is opened for binary output.
+.P
+If you want to write more than one pattern to a file, you will have to devise a
+way of separating them. For binary data, preceding each pattern with its length
+is probably the most straightforward approach. Another possibility is to write
+out the data in hexadecimal instead of binary, one pattern to a line.
+.P
+Saving compiled patterns in a file is only one possible way of storing them for
+later use. They could equally well be saved in a database, or in the memory of
+some daemon process that passes them via sockets to the processes that want
+them.
+.P
+If the pattern has been studied, it is also possible to save the study data in
+a similar way to the compiled pattern itself. When studying generates
+additional information, \fBpcre_study()\fP returns a pointer to a
+\fBpcre_extra\fP data block. Its format is defined in the
+.\" HTML <a href="pcreapi.html#extradata">
+.\" </a>
+section on matching a pattern
+.\"
+in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+documentation. The \fIstudy_data\fP field points to the binary study data, and
+this is what you must save (not the \fBpcre_extra\fP block itself). The length
+of the study data can be obtained by calling \fBpcre_fullinfo()\fP with an
+argument of PCRE_INFO_STUDYSIZE. Remember to check that \fBpcre_study()\fP did
+return a non-NULL value before trying to save the study data.
+.
+.
+.SH "RE-USING A PRECOMPILED PATTERN"
+.rs
+.sp
+Re-using a precompiled pattern is straightforward. Having reloaded it into main
+memory, you pass its pointer to \fBpcre_exec()\fP in the usual way. This should
+work even on another host, and even if that host has the opposite endianness to
+the one where the pattern was compiled.
+.P
+However, if you passed a pointer to custom character tables when the pattern
+was compiled (the \fItableptr\fP argument of \fBpcre_compile()\fP), you must
+now pass a similar pointer to \fBpcre_exec()\fP, because the value saved with
+the compiled pattern will obviously be nonsense. A field in a
+\fBpcre_extra()\fP block is used to pass this data, as described in the
+.\" HTML <a href="pcreapi.html#extradata">
+.\" </a>
+section on matching a pattern
+.\"
+in the
+.\" HREF
+\fBpcreapi\fP
+.\"
+documentation.
+.P
+If you did not provide custom character tables when the pattern was compiled,
+the pointer in the compiled pattern is NULL, which causes \fBpcre_exec()\fP to
+use PCRE's internal tables. Thus, you do not need to take any special action at
+run time in this case.
+.P
+If you saved study data with the compiled pattern, you need to create your own
+\fBpcre_extra\fP data block and set the \fIstudy_data\fP field to point to the
+reloaded study data. You must also set the PCRE_EXTRA_STUDY_DATA bit in the
+\fIflags\fP field to indicate that study data is present. Then pass the
+\fBpcre_extra\fP block to \fBpcre_exec()\fP in the usual way.
+.
+.
+.SH "COMPATIBILITY WITH DIFFERENT PCRE RELEASES"
+.rs
+.sp
+The layout of the control block that is at the start of the data that makes up
+a compiled pattern was changed for release 5.0. If you have any saved patterns
+that were compiled with previous releases (not a facility that was previously
+advertised), you will have to recompile them for release 5.0. However, from now
+on, it should be possible to make changes in a compabible manner.
+.P
+.in 0
+Last updated: 10 September 2004
+.br
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcresample.3 b/doc/pcresample.3
index 02a7a54..8d949a6 100644
--- a/doc/pcresample.3
+++ b/doc/pcresample.3
@@ -1,52 +1,66 @@
.TH PCRE 3
.SH NAME
PCRE - Perl-compatible regular expressions
-.SH PCRE SAMPLE PROGRAM
+.SH "PCRE SAMPLE PROGRAM"
.rs
.sp
A simple, complete demonstration program, to get you started with using PCRE,
-is supplied in the file \fIpcredemo.c\fR in the PCRE distribution.
-
+is supplied in the file \fIpcredemo.c\fP in the PCRE distribution.
+.P
The program compiles the regular expression that is its first argument, and
matches it against the subject string in its second argument. No PCRE options
are set, and default character tables are used. If matching succeeds, the
program outputs the portion of the subject that matched, together with the
contents of any captured substrings.
-
+.P
If the -g option is given on the command line, the program then goes on to
check for further matches of the same regular expression in the same subject
string. The logic is a little bit tricky because of the possibility of matching
an empty string. Comments in the code explain what is going on.
-
-On a Unix system that has PCRE installed in \fI/usr/local\fR, you can compile
-the demonstration program using a command like this:
-
- gcc -o pcredemo pcredemo.c -I/usr/local/include \\
+.P
+If PCRE is installed in the standard include and library directories for your
+system, you should be able to compile the demonstration program using this
+command:
+.sp
+ gcc -o pcredemo pcredemo.c -lpcre
+.sp
+If PCRE is installed elsewhere, you may need to add additional options to the
+command line. For example, on a Unix-like system that has PCRE installed in
+\fI/usr/local\fP, you can compile the demonstration program using a command
+like this:
+.sp
+.\" JOINSH
+ gcc -o pcredemo -I/usr/local/include pcredemo.c \e
-L/usr/local/lib -lpcre
-
-Then you can run simple tests like this:
-
+.sp
+Once you have compiled the demonstration program, you can run simple tests like
+this:
+.sp
./pcredemo 'cat|dog' 'the cat sat on the mat'
./pcredemo -g 'cat|dog' 'the dog sat on the cat'
-
+.sp
Note that there is a much more comprehensive test program, called
-\fBpcretest\fR, which supports many more facilities for testing regular
-expressions and the PCRE library. The \fBpcredemo\fR program is provided as a
-simple coding example.
-
-On some operating systems (e.g. Solaris) you may get an error like this when
-you try to run \fBpcredemo\fR:
-
+.\" HREF
+\fBpcretest\fP,
+.\"
+which supports many more facilities for testing regular expressions and the
+PCRE library. The \fBpcredemo\fP program is provided as a simple coding
+example.
+.P
+On some operating systems (e.g. Solaris), when PCRE is not installed in the
+standard library directory, you may get an error like this when you try to run
+\fBpcredemo\fP:
+.sp
ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or directory
-
+.sp
This is caused by the way shared library support works on those systems. You
need to add
-
+.sp
-R/usr/local/lib
-
-to the compile command to get round this problem.
-
+.sp
+(for example) to the compile command to get round this problem.
+.P
.in 0
-Last updated: 28 January 2003
+Last updated: 09 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcretest.1 b/doc/pcretest.1
index f3d69c8..0c06cb7 100644
--- a/doc/pcretest.1
+++ b/doc/pcretest.1
@@ -2,332 +2,347 @@
.SH NAME
pcretest - a program for testing Perl-compatible regular expressions.
.SH SYNOPSIS
-.B pcretest "[-d] [-i] [-m] [-o osize] [-p] [-t] [source] [destination]"
-
-\fBpcretest\fR was written as a test program for the PCRE regular expression
+.rs
+.sp
+.B pcretest "[-C] [-d] [-i] [-m] [-o osize] [-p] [-t] [source]"
+.ti +5n
+.B "[destination]"
+.P
+\fBpcretest\fP was written as a test program for the PCRE regular expression
library itself, but it can also be used for experimenting with regular
expressions. This document describes the features of the test program; for
details of the regular expressions themselves, see the
.\" HREF
-\fBpcrepattern\fR
+\fBpcrepattern\fP
.\"
-documentation. For details of PCRE and its options, see the
+documentation. For details of the PCRE library function calls and their
+options, see the
.\" HREF
-\fBpcreapi\fR
+\fBpcreapi\fP
.\"
documentation.
-
+.
+.
.SH OPTIONS
.rs
-.sp
.TP 10
-\fB-C\fR
+\fB-C\fP
Output the version number of the PCRE library, and all available information
about the optional features that are included, and then exit.
.TP 10
-\fB-d\fR
-Behave as if each regex had the \fB/D\fR modifier (see below); the internal
+\fB-d\fP
+Behave as if each regex had the \fB/D\fP (debug) modifier; the internal
form is output after compilation.
.TP 10
-\fB-i\fR
-Behave as if each regex had the \fB/I\fR modifier; information about the
+\fB-i\fP
+Behave as if each regex had the \fB/I\fP modifier; information about the
compiled pattern is given after compilation.
.TP 10
-\fB-m\fR
+\fB-m\fP
Output the size of each compiled pattern after it has been compiled. This is
-equivalent to adding /M to each regular expression. For compatibility with
-earlier versions of pcretest, \fB-s\fR is a synonym for \fB-m\fR.
+equivalent to adding \fB/M\fP to each regular expression. For compatibility
+with earlier versions of pcretest, \fB-s\fP is a synonym for \fB-m\fP.
.TP 10
-\fB-o\fR \fIosize\fR
-Set the number of elements in the output vector that is used when calling PCRE
-to be \fIosize\fR. The default value is 45, which is enough for 14 capturing
-subexpressions. The vector size can be changed for individual matching calls by
-including \\O in the data line (see below).
+\fB-o\fP \fIosize\fP
+Set the number of elements in the output vector that is used when calling
+\fBpcre_exec()\fP to be \fIosize\fP. The default value is 45, which is enough
+for 14 capturing subexpressions. The vector size can be changed for individual
+matching calls by including \eO in the data line (see below).
.TP 10
-\fB-p\fR
-Behave as if each regex has \fB/P\fR modifier; the POSIX wrapper API is used
-to call PCRE. None of the other options has any effect when \fB-p\fR is set.
+\fB-p\fP
+Behave as if each regex has \fB/P\fP modifier; the POSIX wrapper API is used
+to call PCRE. None of the other options has any effect when \fB-p\fP is set.
.TP 10
-\fB-t\fR
+\fB-t\fP
Run each compile, study, and match many times with a timer, and output
-resulting time per compile or match (in milliseconds). Do not set \fB-t\fR with
-\fB-m\fR, because you will then get the size output 20000 times and the timing
-will be distorted.
-
+resulting time per compile or match (in milliseconds). Do not set \fB-m\fP with
+\fB-t\fP, because you will then get the size output a zillion times, and the
+timing will be distorted.
+.
+.
.SH DESCRIPTION
.rs
.sp
-If \fBpcretest\fR is given two filename arguments, it reads from the first and
+If \fBpcretest\fP is given two filename arguments, it reads from the first and
writes to the second. If it is given only one filename argument, it reads from
that file and writes to stdout. Otherwise, it reads from stdin and writes to
stdout, and prompts for each line of input, using "re>" to prompt for regular
expressions, and "data>" to prompt for data lines.
-
+.P
The program handles any number of sets of input on a single input file. Each
set starts with a regular expression, and continues with any number of data
lines to be matched against the pattern.
-
-Each line is matched separately and independently. If you want to do
-multiple-line matches, you have to use the \\n escape sequence in a single line
+.P
+Each data line is matched separately and independently. If you want to do
+multiple-line matches, you have to use the \en escape sequence in a single line
of input to encode the newline characters. The maximum length of data line is
30,000 characters.
-
+.P
An empty line signals the end of the data lines, at which point a new regular
expression is read. The regular expressions are given enclosed in any
-non-alphameric delimiters other than backslash, for example
-
+non-alphanumeric delimiters other than backslash, for example
+.sp
/(a|bc)x+yz/
-
+.sp
White space before the initial delimiter is ignored. A regular expression may
be continued over several input lines, in which case the newline characters are
included within it. It is possible to include the delimiter within the pattern
by escaping it, for example
-
- /abc\\/def/
-
+.sp
+ /abc\e/def/
+.sp
If you do so, the escape and the delimiter form part of the pattern, but since
-delimiters are always non-alphameric, this does not affect its interpretation.
+delimiters are always non-alphanumeric, this does not affect its interpretation.
If the terminating delimiter is immediately followed by a backslash, for
example,
-
- /abc/\\
-
+.sp
+ /abc/\e
+.sp
then a backslash is added to the end of the pattern. This is done to provide a
way of testing the error condition that arises if a pattern finishes with a
backslash, because
-
- /abc\\/
-
+.sp
+ /abc\e/
+.sp
is interpreted as the first line of a pattern that starts with "abc/", causing
pcretest to read the next line as a continuation of the regular expression.
-
-.SH PATTERN MODIFIERS
+.
+.
+.SH "PATTERN MODIFIERS"
.rs
.sp
-The pattern may be followed by \fBi\fR, \fBm\fR, \fBs\fR, or \fBx\fR to set the
-PCRE_CASELESS, PCRE_MULTILINE, PCRE_DOTALL, or PCRE_EXTENDED options,
-respectively. For example:
-
+A pattern may be followed by any number of modifiers, which are mostly single
+characters. Following Perl usage, these are referred to below as, for example,
+"the \fB/i\fP modifier", even though the delimiter of the pattern need not
+always be a slash, and no slash is used when writing modifiers. Whitespace may
+appear between the final pattern delimiter and the first modifier, and between
+the modifiers themselves.
+.P
+The \fB/i\fP, \fB/m\fP, \fB/s\fP, and \fB/x\fP modifiers set the PCRE_CASELESS,
+PCRE_MULTILINE, PCRE_DOTALL, or PCRE_EXTENDED options, respectively, when
+\fBpcre_compile()\fP is called. These four modifier letters have the same
+effect as they do in Perl. For example:
+.sp
/caseless/i
-
-These modifier letters have the same effect as they do in Perl. There are
-others that set PCRE options that do not correspond to anything in Perl:
-\fB/A\fR, \fB/E\fR, \fB/N\fR, \fB/U\fR, and \fB/X\fR set PCRE_ANCHORED,
-PCRE_DOLLAR_ENDONLY, PCRE_NO_AUTO_CAPTURE, PCRE_UNGREEDY, and PCRE_EXTRA
-respectively.
-
+.sp
+The following table shows additional modifiers for setting PCRE options that do
+not correspond to anything in Perl:
+.sp
+ \fB/A\fP PCRE_ANCHORED
+ \fB/C\fP PCRE_AUTO_CALLOUT
+ \fB/E\fP PCRE_DOLLAR_ENDONLY
+ \fB/N\fP PCRE_NO_AUTO_CAPTURE
+ \fB/U\fP PCRE_UNGREEDY
+ \fB/X\fP PCRE_EXTRA
+.sp
Searching for all possible matches within each subject string can be requested
-by the \fB/g\fR or \fB/G\fR modifier. After finding a match, PCRE is called
+by the \fB/g\fP or \fB/G\fP modifier. After finding a match, PCRE is called
again to search the remainder of the subject string. The difference between
-\fB/g\fR and \fB/G\fR is that the former uses the \fIstartoffset\fR argument to
-\fBpcre_exec()\fR to start searching at a new point within the entire string
+\fB/g\fP and \fB/G\fP is that the former uses the \fIstartoffset\fP argument to
+\fBpcre_exec()\fP to start searching at a new point within the entire string
(which is in effect what Perl does), whereas the latter passes over a shortened
substring. This makes a difference to the matching process if the pattern
-begins with a lookbehind assertion (including \\b or \\B).
-
-If any call to \fBpcre_exec()\fR in a \fB/g\fR or \fB/G\fR sequence matches an
+begins with a lookbehind assertion (including \eb or \eB).
+.P
+If any call to \fBpcre_exec()\fP in a \fB/g\fP or \fB/G\fP sequence matches an
empty string, the next call is done with the PCRE_NOTEMPTY and PCRE_ANCHORED
flags set in order to search for another, non-empty, match at the same point.
If this second match fails, the start offset is advanced by one, and the normal
match is retried. This imitates the way Perl handles such cases when using the
-\fB/g\fR modifier or the \fBsplit()\fR function.
-
-There are a number of other modifiers for controlling the way \fBpcretest\fR
+\fB/g\fP modifier or the \fBsplit()\fP function.
+.P
+There are yet more modifiers for controlling the way \fBpcretest\fP
operates.
-
-The \fB/+\fR modifier requests that as well as outputting the substring that
+.P
+The \fB/+\fP modifier requests that as well as outputting the substring that
matched the entire pattern, pcretest should in addition output the remainder of
the subject string. This is useful for tests where the subject contains
multiple copies of the same substring.
-
-The \fB/L\fR modifier must be followed directly by the name of a locale, for
+.P
+The \fB/L\fP modifier must be followed directly by the name of a locale, for
example,
-
- /pattern/Lfr
-
-For this reason, it must be the last modifier letter. The given locale is set,
-\fBpcre_maketables()\fR is called to build a set of character tables for the
-locale, and this is then passed to \fBpcre_compile()\fR when compiling the
-regular expression. Without an \fB/L\fR modifier, NULL is passed as the tables
-pointer; that is, \fB/L\fR applies only to the expression on which it appears.
-
-The \fB/I\fR modifier requests that \fBpcretest\fR output information about the
-compiled expression (whether it is anchored, has a fixed first character, and
-so on). It does this by calling \fBpcre_fullinfo()\fR after compiling an
-expression, and outputting the information it gets back. If the pattern is
-studied, the results of that are also output.
-
-The \fB/D\fR modifier is a PCRE debugging feature, which also assumes \fB/I\fR.
+.sp
+ /pattern/Lfr_FR
+.sp
+For this reason, it must be the last modifier. The given locale is set,
+\fBpcre_maketables()\fP is called to build a set of character tables for the
+locale, and this is then passed to \fBpcre_compile()\fP when compiling the
+regular expression. Without an \fB/L\fP modifier, NULL is passed as the tables
+pointer; that is, \fB/L\fP applies only to the expression on which it appears.
+.P
+The \fB/I\fP modifier requests that \fBpcretest\fP output information about the
+compiled pattern (whether it is anchored, has a fixed first character, and
+so on). It does this by calling \fBpcre_fullinfo()\fP after compiling a
+pattern. If the pattern is studied, the results of that are also output.
+.P
+The \fB/D\fP modifier is a PCRE debugging feature, which also assumes \fB/I\fP.
It causes the internal form of compiled regular expressions to be output after
compilation. If the pattern was studied, the information returned is also
output.
-
-The \fB/S\fR modifier causes \fBpcre_study()\fR to be called after the
+.P
+The \fB/F\fP modifier causes \fBpcretest\fP to flip the byte order of the
+fields in the compiled pattern that contain 2-byte and 4-byte numbers. This
+facility is for testing the feature in PCRE that allows it to execute patterns
+that were compiled on a host with a different endianness. This feature is not
+available when the POSIX interface to PCRE is being used, that is, when the
+\fB/P\fP pattern modifier is specified. See also the section about saving and
+reloading compiled patterns below.
+.P
+The \fB/S\fP modifier causes \fBpcre_study()\fP to be called after the
expression has been compiled, and the results used when the expression is
matched.
-
-The \fB/M\fR modifier causes the size of memory block used to hold the compiled
+.P
+The \fB/M\fP modifier causes the size of memory block used to hold the compiled
pattern to be output.
-
-The \fB/P\fR modifier causes \fBpcretest\fR to call PCRE via the POSIX wrapper
+.P
+The \fB/P\fP modifier causes \fBpcretest\fP to call PCRE via the POSIX wrapper
API rather than its native API. When this is done, all other modifiers except
-\fB/i\fR, \fB/m\fR, and \fB/+\fR are ignored. REG_ICASE is set if \fB/i\fR is
-present, and REG_NEWLINE is set if \fB/m\fR is present. The wrapper functions
+\fB/i\fP, \fB/m\fP, and \fB/+\fP are ignored. REG_ICASE is set if \fB/i\fP is
+present, and REG_NEWLINE is set if \fB/m\fP is present. The wrapper functions
force PCRE_DOLLAR_ENDONLY always, and PCRE_DOTALL unless REG_NEWLINE is set.
-
-The \fB/8\fR modifier causes \fBpcretest\fR to call PCRE with the PCRE_UTF8
+.P
+The \fB/8\fP modifier causes \fBpcretest\fP to call PCRE with the PCRE_UTF8
option set. This turns on support for UTF-8 character handling in PCRE,
provided that it was compiled with this support enabled. This modifier also
causes any non-printing characters in output strings to be printed using the
-\\x{hh...} notation if they are valid UTF-8 sequences.
-
-If the \fB/?\fR modifier is used with \fB/8\fR, it causes \fBpcretest\fR to
-call \fBpcre_compile()\fR with the PCRE_NO_UTF8_CHECK option, to suppress the
+\ex{hh...} notation if they are valid UTF-8 sequences.
+.P
+If the \fB/?\fP modifier is used with \fB/8\fP, it causes \fBpcretest\fP to
+call \fBpcre_compile()\fP with the PCRE_NO_UTF8_CHECK option, to suppress the
checking of the string for UTF-8 validity.
-
-.SH CALLOUTS
-.rs
-.sp
-If the pattern contains any callout requests, \fBpcretest\fR's callout function
-will be called. By default, it displays the callout number, and the start and
-current positions in the text at the callout time. For example, the output
-
- --->pqrabcdef
- 0 ^ ^
-
-indicates that callout number 0 occurred for a match attempt starting at the
-fourth character of the subject string, when the pointer was at the seventh
-character. The callout function returns zero (carry on matching) by default.
-
-Inserting callouts may be helpful when using \fBpcretest\fR to check
-complicated regular expressions. For further information about callouts, see
-the
-.\" HREF
-\fBpcrecallout\fR
-.\"
-documentation.
-
-For testing the PCRE library, additional control of callout behaviour is
-available via escape sequences in the data, as described in the following
-section. In particular, it is possible to pass in a number as callout data (the
-default is zero). If the callout function receives a non-zero number, it
-returns that value instead of zero.
-
-.SH DATA LINES
+.
+.
+.SH "DATA LINES"
.rs
.sp
-Before each data line is passed to \fBpcre_exec()\fR, leading and trailing
-whitespace is removed, and it is then scanned for \\ escapes. Some of these are
+Before each data line is passed to \fBpcre_exec()\fP, leading and trailing
+whitespace is removed, and it is then scanned for \e escapes. Some of these are
pretty esoteric features, intended for checking out some of the more
complicated features of PCRE. If you are just testing "ordinary" regular
expressions, you probably don't need any of these. The following escapes are
recognized:
-
- \\a alarm (= BEL)
- \\b backspace
- \\e escape
- \\f formfeed
- \\n newline
- \\r carriage return
- \\t tab
- \\v vertical tab
- \\nnn octal character (up to 3 octal digits)
- \\xhh hexadecimal character (up to 2 hex digits)
- \\x{hh...} hexadecimal character, any number of digits
+.sp
+ \ea alarm (= BEL)
+ \eb backspace
+ \ee escape
+ \ef formfeed
+ \en newline
+ \er carriage return
+ \et tab
+ \ev vertical tab
+ \ennn octal character (up to 3 octal digits)
+ \exhh hexadecimal character (up to 2 hex digits)
+.\" JOIN
+ \ex{hh...} hexadecimal character, any number of digits
in UTF-8 mode
- \\A pass the PCRE_ANCHORED option to \fBpcre_exec()\fR
- \\B pass the PCRE_NOTBOL option to \fBpcre_exec()\fR
- \\Cdd call pcre_copy_substring() for substring dd
- after a successful match (any decimal number
- less than 32)
- \\Cname call pcre_copy_named_substring() for substring
+ \eA pass the PCRE_ANCHORED option to \fBpcre_exec()\fP
+ \eB pass the PCRE_NOTBOL option to \fBpcre_exec()\fP
+.\" JOIN
+ \eCdd call pcre_copy_substring() for substring dd
+ after a successful match (number less than 32)
+.\" JOIN
+ \eCname call pcre_copy_named_substring() for substring
"name" after a successful match (name termin-
ated by next non alphanumeric character)
- \\C+ show the current captured substrings at callout
+.\" JOIN
+ \eC+ show the current captured substrings at callout
time
- \\C- do not supply a callout function
- \\C!n return 1 instead of 0 when callout number n is
+ \eC- do not supply a callout function
+.\" JOIN
+ \eC!n return 1 instead of 0 when callout number n is
reached
- \\C!n!m return 1 instead of 0 when callout number n is
+.\" JOIN
+ \eC!n!m return 1 instead of 0 when callout number n is
reached for the nth time
- \\C*n pass the number n (may be negative) as callout
- data
- \\Gdd call pcre_get_substring() for substring dd
- after a successful match (any decimal number
- less than 32)
- \\Gname call pcre_get_named_substring() for substring
+.\" JOIN
+ \eC*n pass the number n (may be negative) as callout
+ data; this is used as the callout return value
+.\" JOIN
+ \eGdd call pcre_get_substring() for substring dd
+ after a successful match (number less than 32)
+.\" JOIN
+ \eGname call pcre_get_named_substring() for substring
"name" after a successful match (name termin-
ated by next non-alphanumeric character)
- \\L call pcre_get_substringlist() after a
+.\" JOIN
+ \eL call pcre_get_substringlist() after a
successful match
- \\M discover the minimum MATCH_LIMIT setting
- \\N pass the PCRE_NOTEMPTY option to \fBpcre_exec()\fR
- \\Odd set the size of the output vector passed to
- \fBpcre_exec()\fR to dd (any number of decimal
- digits)
- \\S output details of memory get/free calls during matching
- \\Z pass the PCRE_NOTEOL option to \fBpcre_exec()\fR
- \\? pass the PCRE_NO_UTF8_CHECK option to
- \fBpcre_exec()\fR
-
-If \\M is present, \fBpcretest\fR calls \fBpcre_exec()\fR several times, with
-different values in the \fImatch_limit\fR field of the \fBpcre_extra\fR data
+ \eM discover the minimum MATCH_LIMIT setting
+ \eN pass the PCRE_NOTEMPTY option to \fBpcre_exec()\fP
+.\" JOIN
+ \eOdd set the size of the output vector passed to
+ \fBpcre_exec()\fP to dd (any number of digits)
+ \eP pass the PCRE_PARTIAL option to \fBpcre_exec()\fP
+ \eS output details of memory get/free calls during matching
+ \eZ pass the PCRE_NOTEOL option to \fBpcre_exec()\fP
+.\" JOIN
+ \e? pass the PCRE_NO_UTF8_CHECK option to
+ \fBpcre_exec()\fP
+ \e>dd start the match at offset dd (any number of digits);
+ this sets the \fIstartoffset\fP argument for \fBpcre_exec()\fP
+.sp
+A backslash followed by anything else just escapes the anything else. If the
+very last character is a backslash, it is ignored. This gives a way of passing
+an empty line as data, since a real empty line terminates the data input.
+.P
+If \eM is present, \fBpcretest\fP calls \fBpcre_exec()\fP several times, with
+different values in the \fImatch_limit\fP field of the \fBpcre_extra\fP data
structure, until it finds the minimum number that is needed for
-\fBpcre_exec()\fR to complete. This number is a measure of the amount of
+\fBpcre_exec()\fP to complete. This number is a measure of the amount of
recursion and backtracking that takes place, and checking it out can be
instructive. For most simple matches, the number is quite small, but for
patterns with very large numbers of matching possibilities, it can become large
very quickly with increasing length of subject string.
-
-When \\O is used, it may be higher or lower than the size set by the \fB-O\fR
-option (or defaulted to 45); \\O applies only to the call of \fBpcre_exec()\fR
-for the line in which it appears.
-
-A backslash followed by anything else just escapes the anything else. If the
-very last character is a backslash, it is ignored. This gives a way of passing
-an empty line as data, since a real empty line terminates the data input.
-
-If \fB/P\fR was present on the regex, causing the POSIX wrapper API to be used,
-only \fB\B\fR, and \fB\Z\fR have any effect, causing REG_NOTBOL and REG_NOTEOL
-to be passed to \fBregexec()\fR respectively.
-
-The use of \\x{hh...} to represent UTF-8 characters is not dependent on the use
-of the \fB/8\fR modifier on the pattern. It is recognized always. There may be
+.P
+When \eO is used, the value specified may be higher or lower than the size set
+by the \fB-O\fP command line option (or defaulted to 45); \eO applies only to
+the call of \fBpcre_exec()\fP for the line in which it appears.
+.P
+If the \fB/P\fP modifier was present on the pattern, causing the POSIX wrapper
+API to be used, only \eB and \eZ have any effect, causing REG_NOTBOL and
+REG_NOTEOL to be passed to \fBregexec()\fP respectively.
+.P
+The use of \ex{hh...} to represent UTF-8 characters is not dependent on the use
+of the \fB/8\fP modifier on the pattern. It is recognized always. There may be
any number of hexadecimal digits inside the braces. The result is from one to
six bytes, encoded according to the UTF-8 rules.
-
-.SH OUTPUT FROM PCRETEST
+.
+.
+.SH "OUTPUT FROM PCRETEST"
.rs
.sp
When a match succeeds, pcretest outputs the list of captured substrings that
-\fBpcre_exec()\fR returns, starting with number 0 for the string that matched
-the whole pattern. Here is an example of an interactive pcretest run.
-
+\fBpcre_exec()\fP returns, starting with number 0 for the string that matched
+the whole pattern. Otherwise, it outputs "No match" or "Partial match"
+when \fBpcre_exec()\fP returns PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL,
+respectively, and otherwise the PCRE negative error number. Here is an example
+of an interactive pcretest run.
+.sp
$ pcretest
- PCRE version 4.00 08-Jan-2003
-
- re> /^abc(\\d+)/
+ PCRE version 5.00 07-Sep-2004
+.sp
+ re> /^abc(\ed+)/
data> abc123
0: abc123
1: 123
data> xyz
No match
-
-If the strings contain any non-printing characters, they are output as \\0x
-escapes, or as \\x{...} escapes if the \fB/8\fR modifier was present on the
-pattern. If the pattern has the \fB/+\fR modifier, then the output for
-substring 0 is followed by the the rest of the subject string, identified by
-"0+" like this:
-
+.sp
+If the strings contain any non-printing characters, they are output as \e0x
+escapes, or as \ex{...} escapes if the \fB/8\fP modifier was present on the
+pattern. If the pattern has the \fB/+\fP modifier, the output for substring 0
+is followed by the the rest of the subject string, identified by "0+" like
+this:
+.sp
re> /cat/+
data> cataract
0: cat
0+ aract
-
-If the pattern has the \fB/g\fR or \fB/G\fR modifier, the results of successive
+.sp
+If the pattern has the \fB/g\fP or \fB/G\fP modifier, the results of successive
matching attempts are output in sequence, like this:
-
- re> /\\Bi(\\w\\w)/g
+.sp
+ re> /\eBi(\ew\ew)/g
data> Mississippi
0: iss
1: ss
@@ -335,20 +350,124 @@ matching attempts are output in sequence, like this:
1: ss
0: ipp
1: pp
-
+.sp
"No match" is output only if the first match attempt fails.
-
-If any of the sequences \fB\\C\fR, \fB\\G\fR, or \fB\\L\fR are present in a
+.P
+If any of the sequences \fB\eC\fP, \fB\eG\fP, or \fB\eL\fP are present in a
data line that is successfully matched, the substrings extracted by the
convenience functions are output with C, G, or L after the string number
instead of a colon. This is in addition to the normal full list. The string
length (that is, the return from the extraction function) is given in
-parentheses after each string for \fB\\C\fR and \fB\\G\fR.
-
+parentheses after each string for \fB\eC\fP and \fB\eG\fP.
+.P
Note that while patterns can be continued over several lines (a plain ">"
prompt is used for continuations), data lines may not. However newlines can be
-included in data by means of the \\n escape.
-
+included in data by means of the \en escape.
+.
+.
+.SH CALLOUTS
+.rs
+.sp
+If the pattern contains any callout requests, \fBpcretest\fP's callout function
+is called during matching. By default, it displays the callout number, the
+start and current positions in the text at the callout time, and the next
+pattern item to be tested. For example, the output
+.sp
+ --->pqrabcdef
+ 0 ^ ^ \ed
+.sp
+indicates that callout number 0 occurred for a match attempt starting at the
+fourth character of the subject string, when the pointer was at the seventh
+character of the data, and when the next pattern item was \ed. Just one
+circumflex is output if the start and current positions are the same.
+.P
+Callouts numbered 255 are assumed to be automatic callouts, inserted as a
+result of the \fB/C\fP pattern modifier. In this case, instead of showing the
+callout number, the offset in the pattern, preceded by a plus, is output. For
+example:
+.sp
+ re> /\ed?[A-E]\e*/C
+ data> E*
+ --->E*
+ +0 ^ \ed?
+ +3 ^ [A-E]
+ +8 ^^ \e*
+ +10 ^ ^
+ 0: E*
+.sp
+The callout function in \fBpcretest\fP returns zero (carry on matching) by
+default, but you can use an \eC item in a data line (as described above) to
+change this.
+.P
+Inserting callouts can be helpful when using \fBpcretest\fP to check
+complicated regular expressions. For further information about callouts, see
+the
+.\" HREF
+\fBpcrecallout\fP
+.\"
+documentation.
+.
+.
+.SH "SAVING AND RELOADING COMPILED PATTERNS"
+.rs
+.sp
+The facilities described in this section are not available when the POSIX
+inteface to PCRE is being used, that is, when the \fB/P\fP pattern modifier is
+specified.
+.P
+When the POSIX interface is not in use, you can cause \fBpcretest\fP to write a
+compiled pattern to a file, by following the modifiers with > and a file name.
+For example:
+.sp
+ /pattern/im >/some/file
+.sp
+See the
+.\" HREF
+\fBpcreprecompile\fP
+.\"
+documentation for a discussion about saving and re-using compiled patterns.
+.P
+The data that is written is binary. The first eight bytes are the length of the
+compiled pattern data followed by the length of the optional study data, each
+written as four bytes in big-endian order (most significant byte first). If
+there is no study data (either the pattern was not studied, or studying did not
+return any data), the second length is zero. The lengths are followed by an
+exact copy of the compiled pattern. If there is additional study data, this
+follows immediately after the compiled pattern. After writing the file,
+\fBpcretest\fP expects to read a new pattern.
+.P
+A saved pattern can be reloaded into \fBpcretest\fP by specifing < and a file
+name instead of a pattern. The name of the file must not contain a < character,
+as otherwise \fBpcretest\fP will interpret the line as a pattern delimited by <
+characters.
+For example:
+.sp
+ re> </some/file
+ Compiled regex loaded from /some/file
+ No study data
+.sp
+When the pattern has been loaded, \fBpcretest\fP proceeds to read data lines in
+the usual way.
+.P
+You can copy a file written by \fBpcretest\fP to a different host and reload it
+there, even if the new host has opposite endianness to the one on which the
+pattern was compiled. For example, you can compile on an i86 machine and run on
+a SPARC machine.
+.P
+File names for saving and reloading can be absolute or relative, but note that
+the shell facility of expanding a file name that starts with a tilde (~) is not
+available.
+.P
+The ability to save and reload files in \fBpcretest\fP is intended for testing
+and experimentation. It is not intended for production use because only a
+single pattern can be written to a file. Furthermore, there is no facility for
+supplying custom character tables for use with a reloaded pattern. If the
+original pattern was compiled with custom tables, an attempt to match a subject
+string using a reloaded pattern is likely to cause \fBpcretest\fP to crash.
+Finally, if you attempt to load a file that is not in the correct format, the
+result is undefined.
+.
+.
.SH AUTHOR
.rs
.sp
@@ -357,8 +476,8 @@ Philip Hazel <ph10@cam.ac.uk>
University Computing Service,
.br
Cambridge CB2 3QG, England.
-
+.P
.in 0
-Last updated: 09 December 2003
+Last updated: 10 September 2004
.br
-Copyright (c) 1997-2003 University of Cambridge.
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/pcretest.txt b/doc/pcretest.txt
index 0e9cd13..7da6889 100644
--- a/doc/pcretest.txt
+++ b/doc/pcretest.txt
@@ -6,24 +6,25 @@ NAME
pcretest - a program for testing Perl-compatible regular expressions.
SYNOPSIS
- pcretest [-d] [-i] [-m] [-o osize] [-p] [-t] [source] [destination]
+
+ pcretest [-C] [-d] [-i] [-m] [-o osize] [-p] [-t] [source]
+ [destination]
pcretest was written as a test program for the PCRE regular expression
library itself, but it can also be used for experimenting with regular
expressions. This document describes the features of the test program;
for details of the regular expressions themselves, see the pcrepattern
- documentation. For details of PCRE and its options, see the pcreapi
- documentation.
+ documentation. For details of the PCRE library function calls and their
+ options, see the pcreapi documentation.
OPTIONS
-
-C Output the version number of the PCRE library, and all avail-
able information about the optional features that are
included, and then exit.
- -d Behave as if each regex had the /D modifier (see below); the
+ -d Behave as if each regex had the /D (debug) modifier; the
internal form is output after compilation.
-i Behave as if each regex had the /I modifier; information
@@ -35,10 +36,10 @@ OPTIONS
pcretest, -s is a synonym for -m.
-o osize Set the number of elements in the output vector that is used
- when calling PCRE to be osize. The default value is 45, which
- is enough for 14 capturing subexpressions. The vector size
- can be changed for individual matching calls by including \O
- in the data line (see below).
+ when calling pcre_exec() to be osize. The default value is
+ 45, which is enough for 14 capturing subexpressions. The vec-
+ tor size can be changed for individual matching calls by
+ including \O in the data line (see below).
-p Behave as if each regex has /P modifier; the POSIX wrapper
API is used to call PCRE. None of the other options has any
@@ -46,176 +47,171 @@ OPTIONS
-t Run each compile, study, and match many times with a timer,
and output resulting time per compile or match (in millisec-
- onds). Do not set -t with -m, because you will then get the
- size output 20000 times and the timing will be distorted.
+ onds). Do not set -m with -t, because you will then get the
+ size output a zillion times, and the timing will be dis-
+ torted.
DESCRIPTION
- If pcretest is given two filename arguments, it reads from the first
+ If pcretest is given two filename arguments, it reads from the first
and writes to the second. If it is given only one filename argument, it
- reads from that file and writes to stdout. Otherwise, it reads from
- stdin and writes to stdout, and prompts for each line of input, using
+ reads from that file and writes to stdout. Otherwise, it reads from
+ stdin and writes to stdout, and prompts for each line of input, using
"re>" to prompt for regular expressions, and "data>" to prompt for data
lines.
The program handles any number of sets of input on a single input file.
- Each set starts with a regular expression, and continues with any num-
+ Each set starts with a regular expression, and continues with any num-
ber of data lines to be matched against the pattern.
- Each line is matched separately and independently. If you want to do
- multiple-line matches, you have to use the \n escape sequence in a sin-
- gle line of input to encode the newline characters. The maximum length
- of data line is 30,000 characters.
+ Each data line is matched separately and independently. If you want to
+ do multiple-line matches, you have to use the \n escape sequence in a
+ single line of input to encode the newline characters. The maximum
+ length of data line is 30,000 characters.
- An empty line signals the end of the data lines, at which point a new
- regular expression is read. The regular expressions are given enclosed
- in any non-alphameric delimiters other than backslash, for example
+ An empty line signals the end of the data lines, at which point a new
+ regular expression is read. The regular expressions are given enclosed
+ in any non-alphanumeric delimiters other than backslash, for example
/(a|bc)x+yz/
- White space before the initial delimiter is ignored. A regular expres-
- sion may be continued over several input lines, in which case the new-
- line characters are included within it. It is possible to include the
+ White space before the initial delimiter is ignored. A regular expres-
+ sion may be continued over several input lines, in which case the new-
+ line characters are included within it. It is possible to include the
delimiter within the pattern by escaping it, for example
/abc\/def/
- If you do so, the escape and the delimiter form part of the pattern,
- but since delimiters are always non-alphameric, this does not affect
- its interpretation. If the terminating delimiter is immediately fol-
+ If you do so, the escape and the delimiter form part of the pattern,
+ but since delimiters are always non-alphanumeric, this does not affect
+ its interpretation. If the terminating delimiter is immediately fol-
lowed by a backslash, for example,
/abc/\
- then a backslash is added to the end of the pattern. This is done to
- provide a way of testing the error condition that arises if a pattern
+ then a backslash is added to the end of the pattern. This is done to
+ provide a way of testing the error condition that arises if a pattern
finishes with a backslash, because
/abc\/
- is interpreted as the first line of a pattern that starts with "abc/",
+ is interpreted as the first line of a pattern that starts with "abc/",
causing pcretest to read the next line as a continuation of the regular
expression.
PATTERN MODIFIERS
- The pattern may be followed by i, m, s, or x to set the PCRE_CASELESS,
- PCRE_MULTILINE, PCRE_DOTALL, or PCRE_EXTENDED options, respectively.
- For example:
+ A pattern may be followed by any number of modifiers, which are mostly
+ single characters. Following Perl usage, these are referred to below
+ as, for example, "the /i modifier", even though the delimiter of the
+ pattern need not always be a slash, and no slash is used when writing
+ modifiers. Whitespace may appear between the final pattern delimiter
+ and the first modifier, and between the modifiers themselves.
+
+ The /i, /m, /s, and /x modifiers set the PCRE_CASELESS, PCRE_MULTILINE,
+ PCRE_DOTALL, or PCRE_EXTENDED options, respectively, when pcre_com-
+ pile() is called. These four modifier letters have the same effect as
+ they do in Perl. For example:
/caseless/i
- These modifier letters have the same effect as they do in Perl. There
- are others that set PCRE options that do not correspond to anything in
- Perl: /A, /E, /N, /U, and /X set PCRE_ANCHORED, PCRE_DOLLAR_ENDONLY,
- PCRE_NO_AUTO_CAPTURE, PCRE_UNGREEDY, and PCRE_EXTRA respectively.
+ The following table shows additional modifiers for setting PCRE options
+ that do not correspond to anything in Perl:
- Searching for all possible matches within each subject string can be
- requested by the /g or /G modifier. After finding a match, PCRE is
+ /A PCRE_ANCHORED
+ /C PCRE_AUTO_CALLOUT
+ /E PCRE_DOLLAR_ENDONLY
+ /N PCRE_NO_AUTO_CAPTURE
+ /U PCRE_UNGREEDY
+ /X PCRE_EXTRA
+
+ Searching for all possible matches within each subject string can be
+ requested by the /g or /G modifier. After finding a match, PCRE is
called again to search the remainder of the subject string. The differ-
ence between /g and /G is that the former uses the startoffset argument
- to pcre_exec() to start searching at a new point within the entire
- string (which is in effect what Perl does), whereas the latter passes
- over a shortened substring. This makes a difference to the matching
+ to pcre_exec() to start searching at a new point within the entire
+ string (which is in effect what Perl does), whereas the latter passes
+ over a shortened substring. This makes a difference to the matching
process if the pattern begins with a lookbehind assertion (including \b
or \B).
- If any call to pcre_exec() in a /g or /G sequence matches an empty
- string, the next call is done with the PCRE_NOTEMPTY and PCRE_ANCHORED
- flags set in order to search for another, non-empty, match at the same
- point. If this second match fails, the start offset is advanced by
- one, and the normal match is retried. This imitates the way Perl han-
+ If any call to pcre_exec() in a /g or /G sequence matches an empty
+ string, the next call is done with the PCRE_NOTEMPTY and PCRE_ANCHORED
+ flags set in order to search for another, non-empty, match at the same
+ point. If this second match fails, the start offset is advanced by
+ one, and the normal match is retried. This imitates the way Perl han-
dles such cases when using the /g modifier or the split() function.
- There are a number of other modifiers for controlling the way pcretest
- operates.
+ There are yet more modifiers for controlling the way pcretest operates.
- The /+ modifier requests that as well as outputting the substring that
- matched the entire pattern, pcretest should in addition output the
- remainder of the subject string. This is useful for tests where the
+ The /+ modifier requests that as well as outputting the substring that
+ matched the entire pattern, pcretest should in addition output the
+ remainder of the subject string. This is useful for tests where the
subject contains multiple copies of the same substring.
- The /L modifier must be followed directly by the name of a locale, for
+ The /L modifier must be followed directly by the name of a locale, for
example,
- /pattern/Lfr
+ /pattern/Lfr_FR
- For this reason, it must be the last modifier letter. The given locale
- is set, pcre_maketables() is called to build a set of character tables
- for the locale, and this is then passed to pcre_compile() when compil-
- ing the regular expression. Without an /L modifier, NULL is passed as
- the tables pointer; that is, /L applies only to the expression on which
- it appears.
+ For this reason, it must be the last modifier. The given locale is set,
+ pcre_maketables() is called to build a set of character tables for the
+ locale, and this is then passed to pcre_compile() when compiling the
+ regular expression. Without an /L modifier, NULL is passed as the
+ tables pointer; that is, /L applies only to the expression on which it
+ appears.
- The /I modifier requests that pcretest output information about the
- compiled expression (whether it is anchored, has a fixed first charac-
- ter, and so on). It does this by calling pcre_fullinfo() after compil-
- ing an expression, and outputting the information it gets back. If the
- pattern is studied, the results of that are also output.
+ The /I modifier requests that pcretest output information about the
+ compiled pattern (whether it is anchored, has a fixed first character,
+ and so on). It does this by calling pcre_fullinfo() after compiling a
+ pattern. If the pattern is studied, the results of that are also out-
+ put.
The /D modifier is a PCRE debugging feature, which also assumes /I. It
- causes the internal form of compiled regular expressions to be output
+ causes the internal form of compiled regular expressions to be output
after compilation. If the pattern was studied, the information returned
is also output.
- The /S modifier causes pcre_study() to be called after the expression
+ The /F modifier causes pcretest to flip the byte order of the fields in
+ the compiled pattern that contain 2-byte and 4-byte numbers. This
+ facility is for testing the feature in PCRE that allows it to execute
+ patterns that were compiled on a host with a different endianness. This
+ feature is not available when the POSIX interface to PCRE is being
+ used, that is, when the /P pattern modifier is specified. See also the
+ section about saving and reloading compiled patterns below.
+
+ The /S modifier causes pcre_study() to be called after the expression
has been compiled, and the results used when the expression is matched.
- The /M modifier causes the size of memory block used to hold the com-
+ The /M modifier causes the size of memory block used to hold the com-
piled pattern to be output.
- The /P modifier causes pcretest to call PCRE via the POSIX wrapper API
- rather than its native API. When this is done, all other modifiers
- except /i, /m, and /+ are ignored. REG_ICASE is set if /i is present,
- and REG_NEWLINE is set if /m is present. The wrapper functions force
- PCRE_DOLLAR_ENDONLY always, and PCRE_DOTALL unless REG_NEWLINE is set.
+ The /P modifier causes pcretest to call PCRE via the POSIX wrapper API
+ rather than its native API. When this is done, all other modifiers
+ except /i, /m, and /+ are ignored. REG_ICASE is set if /i is present,
+ and REG_NEWLINE is set if /m is present. The wrapper functions force
+ PCRE_DOLLAR_ENDONLY always, and PCRE_DOTALL unless REG_NEWLINE is set.
- The /8 modifier causes pcretest to call PCRE with the PCRE_UTF8 option
- set. This turns on support for UTF-8 character handling in PCRE, pro-
- vided that it was compiled with this support enabled. This modifier
+ The /8 modifier causes pcretest to call PCRE with the PCRE_UTF8 option
+ set. This turns on support for UTF-8 character handling in PCRE, pro-
+ vided that it was compiled with this support enabled. This modifier
also causes any non-printing characters in output strings to be printed
using the \x{hh...} notation if they are valid UTF-8 sequences.
- If the /? modifier is used with /8, it causes pcretest to call
- pcre_compile() with the PCRE_NO_UTF8_CHECK option, to suppress the
+ If the /? modifier is used with /8, it causes pcretest to call
+ pcre_compile() with the PCRE_NO_UTF8_CHECK option, to suppress the
checking of the string for UTF-8 validity.
-CALLOUTS
-
- If the pattern contains any callout requests, pcretest's callout func-
- tion will be called. By default, it displays the callout number, and
- the start and current positions in the text at the callout time. For
- example, the output
-
- --->pqrabcdef
- 0 ^ ^
-
- indicates that callout number 0 occurred for a match attempt starting
- at the fourth character of the subject string, when the pointer was at
- the seventh character. The callout function returns zero (carry on
- matching) by default.
-
- Inserting callouts may be helpful when using pcretest to check compli-
- cated regular expressions. For further information about callouts, see
- the pcrecallout documentation.
-
- For testing the PCRE library, additional control of callout behaviour
- is available via escape sequences in the data, as described in the fol-
- lowing section. In particular, it is possible to pass in a number as
- callout data (the default is zero). If the callout function receives a
- non-zero number, it returns that value instead of zero.
-
-
DATA LINES
- Before each data line is passed to pcre_exec(), leading and trailing
- whitespace is removed, and it is then scanned for \ escapes. Some of
- these are pretty esoteric features, intended for checking out some of
- the more complicated features of PCRE. If you are just testing "ordi-
- nary" regular expressions, you probably don't need any of these. The
+ Before each data line is passed to pcre_exec(), leading and trailing
+ whitespace is removed, and it is then scanned for \ escapes. Some of
+ these are pretty esoteric features, intended for checking out some of
+ the more complicated features of PCRE. If you are just testing "ordi-
+ nary" regular expressions, you probably don't need any of these. The
following escapes are recognized:
\a alarm (= BEL)
@@ -233,8 +229,7 @@ DATA LINES
\A pass the PCRE_ANCHORED option to pcre_exec()
\B pass the PCRE_NOTBOL option to pcre_exec()
\Cdd call pcre_copy_substring() for substring dd
- after a successful match (any decimal number
- less than 32)
+ after a successful match (number less than 32)
\Cname call pcre_copy_named_substring() for substring
"name" after a successful match (name termin-
ated by next non alphanumeric character)
@@ -246,10 +241,9 @@ DATA LINES
\C!n!m return 1 instead of 0 when callout number n is
reached for the nth time
\C*n pass the number n (may be negative) as callout
- data
+ data; this is used as the callout return value
\Gdd call pcre_get_substring() for substring dd
- after a successful match (any decimal number
- less than 32)
+ after a successful match (number less than 32)
\Gname call pcre_get_named_substring() for substring
"name" after a successful match (name termin-
ated by next non-alphanumeric character)
@@ -258,12 +252,19 @@ DATA LINES
\M discover the minimum MATCH_LIMIT setting
\N pass the PCRE_NOTEMPTY option to pcre_exec()
\Odd set the size of the output vector passed to
- pcre_exec() to dd (any number of decimal
- digits)
+ pcre_exec() to dd (any number of digits)
+ \P pass the PCRE_PARTIAL option to pcre_exec()
\S output details of memory get/free calls during matching
\Z pass the PCRE_NOTEOL option to pcre_exec()
\? pass the PCRE_NO_UTF8_CHECK option to
pcre_exec()
+ \>dd start the match at offset dd (any number of digits);
+ this sets the startoffset argument for pcre_exec()
+
+ A backslash followed by anything else just escapes the anything else.
+ If the very last character is a backslash, it is ignored. This gives a
+ way of passing an empty line as data, since a real empty line termi-
+ nates the data input.
If \M is present, pcretest calls pcre_exec() several times, with dif-
ferent values in the match_limit field of the pcre_extra data struc-
@@ -274,34 +275,31 @@ DATA LINES
with very large numbers of matching possibilities, it can become large
very quickly with increasing length of subject string.
- When \O is used, it may be higher or lower than the size set by the -O
- option (or defaulted to 45); \O applies only to the call of pcre_exec()
- for the line in which it appears.
+ When \O is used, the value specified may be higher or lower than the
+ size set by the -O command line option (or defaulted to 45); \O applies
+ only to the call of pcre_exec() for the line in which it appears.
- A backslash followed by anything else just escapes the anything else.
- If the very last character is a backslash, it is ignored. This gives a
- way of passing an empty line as data, since a real empty line termi-
- nates the data input.
-
- If /P was present on the regex, causing the POSIX wrapper API to be
- used, only 0 causing REG_NOTBOL and REG_NOTEOL to be passed to
- regexec() respectively.
+ If the /P modifier was present on the pattern, causing the POSIX wrap-
+ per API to be used, only \B and \Z have any effect, causing REG_NOTBOL
+ and REG_NOTEOL to be passed to regexec() respectively.
- The use of \x{hh...} to represent UTF-8 characters is not dependent on
- the use of the /8 modifier on the pattern. It is recognized always.
- There may be any number of hexadecimal digits inside the braces. The
- result is from one to six bytes, encoded according to the UTF-8 rules.
+ The use of \x{hh...} to represent UTF-8 characters is not dependent on
+ the use of the /8 modifier on the pattern. It is recognized always.
+ There may be any number of hexadecimal digits inside the braces. The
+ result is from one to six bytes, encoded according to the UTF-8 rules.
OUTPUT FROM PCRETEST
When a match succeeds, pcretest outputs the list of captured substrings
- that pcre_exec() returns, starting with number 0 for the string that
- matched the whole pattern. Here is an example of an interactive
- pcretest run.
+ that pcre_exec() returns, starting with number 0 for the string that
+ matched the whole pattern. Otherwise, it outputs "No match" or "Partial
+ match" when pcre_exec() returns PCRE_ERROR_NOMATCH or PCRE_ERROR_PAR-
+ TIAL, respectively, and otherwise the PCRE negative error number. Here
+ is an example of an interactive pcretest run.
$ pcretest
- PCRE version 4.00 08-Jan-2003
+ PCRE version 5.00 07-Sep-2004
re> /^abc(\d+)/
data> abc123
@@ -310,18 +308,18 @@ OUTPUT FROM PCRETEST
data> xyz
No match
- If the strings contain any non-printing characters, they are output as
- \0x escapes, or as \x{...} escapes if the /8 modifier was present on
- the pattern. If the pattern has the /+ modifier, then the output for
- substring 0 is followed by the the rest of the subject string, identi-
- fied by "0+" like this:
+ If the strings contain any non-printing characters, they are output as
+ \0x escapes, or as \x{...} escapes if the /8 modifier was present on
+ the pattern. If the pattern has the /+ modifier, the output for sub-
+ string 0 is followed by the the rest of the subject string, identified
+ by "0+" like this:
re> /cat/+
data> cataract
0: cat
0+ aract
- If the pattern has the /g or /G modifier, the results of successive
+ If the pattern has the /g or /G modifier, the results of successive
matching attempts are output in sequence, like this:
re> /\Bi(\w\w)/g
@@ -335,23 +333,118 @@ OUTPUT FROM PCRETEST
"No match" is output only if the first match attempt fails.
- If any of the sequences \C, \G, or \L are present in a data line that
- is successfully matched, the substrings extracted by the convenience
+ If any of the sequences \C, \G, or \L are present in a data line that
+ is successfully matched, the substrings extracted by the convenience
functions are output with C, G, or L after the string number instead of
a colon. This is in addition to the normal full list. The string length
- (that is, the return from the extraction function) is given in paren-
+ (that is, the return from the extraction function) is given in paren-
theses after each string for \C and \G.
- Note that while patterns can be continued over several lines (a plain
+ Note that while patterns can be continued over several lines (a plain
">" prompt is used for continuations), data lines may not. However new-
lines can be included in data by means of the \n escape.
+CALLOUTS
+
+ If the pattern contains any callout requests, pcretest's callout func-
+ tion is called during matching. By default, it displays the callout
+ number, the start and current positions in the text at the callout
+ time, and the next pattern item to be tested. For example, the output
+
+ --->pqrabcdef
+ 0 ^ ^ \d
+
+ indicates that callout number 0 occurred for a match attempt starting
+ at the fourth character of the subject string, when the pointer was at
+ the seventh character of the data, and when the next pattern item was
+ \d. Just one circumflex is output if the start and current positions
+ are the same.
+
+ Callouts numbered 255 are assumed to be automatic callouts, inserted as
+ a result of the /C pattern modifier. In this case, instead of showing
+ the callout number, the offset in the pattern, preceded by a plus, is
+ output. For example:
+
+ re> /\d?[A-E]\*/C
+ data> E*
+ --->E*
+ +0 ^ \d?
+ +3 ^ [A-E]
+ +8 ^^ \*
+ +10 ^ ^
+ 0: E*
+
+ The callout function in pcretest returns zero (carry on matching) by
+ default, but you can use an \C item in a data line (as described above)
+ to change this.
+
+ Inserting callouts can be helpful when using pcretest to check compli-
+ cated regular expressions. For further information about callouts, see
+ the pcrecallout documentation.
+
+
+SAVING AND RELOADING COMPILED PATTERNS
+
+ The facilities described in this section are not available when the
+ POSIX inteface to PCRE is being used, that is, when the /P pattern mod-
+ ifier is specified.
+
+ When the POSIX interface is not in use, you can cause pcretest to write
+ a compiled pattern to a file, by following the modifiers with > and a
+ file name. For example:
+
+ /pattern/im >/some/file
+
+ See the pcreprecompile documentation for a discussion about saving and
+ re-using compiled patterns.
+
+ The data that is written is binary. The first eight bytes are the
+ length of the compiled pattern data followed by the length of the
+ optional study data, each written as four bytes in big-endian order
+ (most significant byte first). If there is no study data (either the
+ pattern was not studied, or studying did not return any data), the sec-
+ ond length is zero. The lengths are followed by an exact copy of the
+ compiled pattern. If there is additional study data, this follows imme-
+ diately after the compiled pattern. After writing the file, pcretest
+ expects to read a new pattern.
+
+ A saved pattern can be reloaded into pcretest by specifing < and a file
+ name instead of a pattern. The name of the file must not contain a <
+ character, as otherwise pcretest will interpret the line as a pattern
+ delimited by < characters. For example:
+
+ re> </some/file
+ Compiled regex loaded from /some/file
+ No study data
+
+ When the pattern has been loaded, pcretest proceeds to read data lines
+ in the usual way.
+
+ You can copy a file written by pcretest to a different host and reload
+ it there, even if the new host has opposite endianness to the one on
+ which the pattern was compiled. For example, you can compile on an i86
+ machine and run on a SPARC machine.
+
+ File names for saving and reloading can be absolute or relative, but
+ note that the shell facility of expanding a file name that starts with
+ a tilde (~) is not available.
+
+ The ability to save and reload files in pcretest is intended for test-
+ ing and experimentation. It is not intended for production use because
+ only a single pattern can be written to a file. Furthermore, there is
+ no facility for supplying custom character tables for use with a
+ reloaded pattern. If the original pattern was compiled with custom
+ tables, an attempt to match a subject string using a reloaded pattern
+ is likely to cause pcretest to crash. Finally, if you attempt to load
+ a file that is not in the correct format, the result is undefined.
+
+
AUTHOR
Philip Hazel <ph10@cam.ac.uk>
University Computing Service,
Cambridge CB2 3QG, England.
-Last updated: 09 December 2003
-Copyright (c) 1997-2003 University of Cambridge.
+Last updated: 10 September 2004
+Copyright (c) 1997-2004 University of Cambridge.
diff --git a/doc/perltest.txt b/doc/perltest.txt
index 9ea9d93..f1d2c15 100644
--- a/doc/perltest.txt
+++ b/doc/perltest.txt
@@ -7,28 +7,27 @@ input patterns can be followed only by Perl's lower case modifiers and /+ (as
used by pcretest), which is recognized and handled by the program.
The data lines are processed as Perl double-quoted strings, so if they contain
-" \ $ or @ characters, these have to be escaped. For this reason, all such
-characters in testinput1 and testinput3 are escaped so that they can be used
-for perltest as well as for pcretest, and the special upper case modifiers such
-as /A that pcretest recognizes are not used in these files. The output should
-be identical, apart from the initial identifying banner.
+" $ or @ characters, these have to be escaped. For this reason, all such
+characters in testinput1 and testinput4 are escaped so that they can be used
+for perltest as well as for pcretest. The special upper case pattern
+modifiers such as /A that pcretest recognizes, and its special data line
+escapes, are not used in these files. The output should be identical, apart
+from the initial identifying banner.
The perltest script can also test UTF-8 features. It works as is for Perl 5.8
or higher. It recognizes the special modifier /8 that pcretest uses to invoke
-UTF-8 functionality. The testinput5 file can be fed to perltest to run UTF-8
-tests.
+UTF-8 functionality. The testinput4 file can be fed to perltest to run
+compatible UTF-8 tests.
For Perl 5.6, perltest won't work unmodified for the UTF-8 tests. You need to
uncomment the "use utf8" lines that it contains. It is best to do this on a
copy of the script, because for non-UTF-8 tests, these lines should remain
commented out.
-The testinput2 and testinput4 files are not suitable for feeding to perltest,
-since they do make use of the special upper case modifiers and escapes that
-pcretest uses to test some features of PCRE. The first of these files also
-contains malformed regular expressions, in order to check that PCRE diagnoses
-them correctly. Similarly, testinput6 tests UTF-8 features that do not relate
-to Perl.
+The other testinput files are not suitable for feeding to perltest, since they
+make use of the special upper case modifiers and escapes that pcretest uses to
+test some features of PCRE. Some of these files also contains malformed regular
+expressions, in order to check that PCRE diagnoses them correctly.
Philip Hazel <ph10@cam.ac.uk>
-August 2002
+September 2004
diff --git a/get.c b/get.c
index a20473c..225843e 100644
--- a/get.c
+++ b/get.c
@@ -12,29 +12,37 @@ Written by: Philip Hazel <ph10@cam.ac.uk>
Copyright (c) 1997-2003 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
*/
/* This module contains some convenience functions for extracting substrings
from the subject string after a regex match has succeeded. The original idea
-for these functions came from Scott Wimer <scottw@cgibuilder.com>. */
+for these functions came from Scott Wimer. */
/* Include the internals header, which itself includes Standard C headers plus
diff --git a/internal.h b/internal.h
index d616b2d..5d14331 100644
--- a/internal.h
+++ b/internal.h
@@ -5,30 +5,38 @@
/* This is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language. See
-the file Tech.Notes for some information on the internals.
+the file doc/Tech.Notes for some information on the internals.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997-2003 University of Cambridge
+ Copyright (c) 1997-2004 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
*/
@@ -55,6 +63,39 @@ setjmp and stdarg are used is when NO_RECURSE is set. */
#define PCRE_DEFINITION /* Win32 __declspec(export) trigger for .dll */
#endif
+/* We need to have types that specify unsigned 16-bit and 32-bit integers. We
+cannot determine these outside the compilation (e.g. by running a program as
+part of "configure") because PCRE is often cross-compiled for use on other
+systems. Instead we make use of the maximum sizes that are available at
+preprocessor time in standard C environments. */
+
+#if USHRT_MAX == 65535
+ typedef unsigned short pcre_uint16;
+#elif UINT_MAX == 65535
+ typedef unsigned int pcre_uint16;
+#else
+ #error Cannot determine a type for 16-bit unsigned integers
+#endif
+
+#if UINT_MAX == 4294967295
+ typedef unsigned int pcre_uint32;
+#elif ULONG_MAX == 4294967295
+ typedef unsigned long int pcre_uint32;
+#else
+ #error Cannot determine a type for 32-bit unsigned integers
+#endif
+
+/* All character handling must be done as unsigned characters. Otherwise there
+are problems with top-bit-set characters and functions such as isspace().
+However, we leave the interface to the outside world as char *, because that
+should make things easier for callers. We define a short type for unsigned char
+to save lots of typing. I tried "uchar", but it causes problems on Digital
+Unix, where it is defined in sys/types, so use "uschar" instead. */
+
+typedef unsigned char uschar;
+
+/* Include the public PCRE header */
+
#include "pcre.h"
/* When compiling for use with the Virtual Pascal compiler, these functions
@@ -94,13 +135,14 @@ for (i = 0; i < n; ++i) *(--dest) = *(--src);
#endif /* not VPCOMPAT */
-/* PCRE keeps offsets in its compiled code as 2-byte quantities by default.
-These are used, for example, to link from the start of a subpattern to its
-alternatives and its end. The use of 2 bytes per offset limits the size of the
-compiled regex to around 64K, which is big enough for almost everybody.
-However, I received a request for an even bigger limit. For this reason, and
-also to make the code easier to maintain, the storing and loading of offsets
-from the byte string is now handled by the macros that are defined here.
+/* PCRE keeps offsets in its compiled code as 2-byte quantities (always stored
+in big-endian order) by default. These are used, for example, to link from the
+start of a subpattern to its alternatives and its end. The use of 2 bytes per
+offset limits the size of the compiled regex to around 64K, which is big enough
+for almost everybody. However, I received a request for an even bigger limit.
+For this reason, and also to make the code easier to maintain, the storing and
+loading of offsets from the byte string is now handled by the macros that are
+defined here.
The macros are controlled by the value of LINK_SIZE. This defaults to 2 in
the config.h file, but can be overridden by using -D on the command line. This
@@ -176,6 +218,7 @@ Standard C system should have one. */
#define offsetof(p_type,field) ((size_t)&(((p_type *)0)->field))
#endif
+
/* These are the public options that can change during matching. */
#define PCRE_IMS (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)
@@ -184,12 +227,13 @@ Standard C system should have one. */
but skip the top bit so we can use ints for convenience without getting tangled
with negative values. The public options defined in pcre.h start at the least
significant end. Make sure they don't overlap, though now that we have expanded
-to four bytes there is plenty of space. */
+to four bytes, there is plenty of space. */
#define PCRE_FIRSTSET 0x40000000 /* first_byte is set */
#define PCRE_REQCHSET 0x20000000 /* req_byte is set */
#define PCRE_STARTLINE 0x10000000 /* start after \n for multiline */
#define PCRE_ICHANGED 0x08000000 /* i option changes within regex */
+#define PCRE_NOPARTIAL 0x04000000 /* can't use partial with this regex */
/* Options for the "extra" block produced by pcre_study(). */
@@ -201,10 +245,11 @@ time, run time or study time, respectively. */
#define PUBLIC_OPTIONS \
(PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \
PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY|PCRE_UTF8| \
- PCRE_NO_AUTO_CAPTURE|PCRE_NO_UTF8_CHECK)
+ PCRE_NO_AUTO_CAPTURE|PCRE_NO_UTF8_CHECK|PCRE_AUTO_CALLOUT)
#define PUBLIC_EXEC_OPTIONS \
- (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK)
+ (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \
+ PCRE_PARTIAL)
#define PUBLIC_STUDY_OPTIONS 0 /* None defined */
@@ -264,12 +309,13 @@ definitions below, up to ESC_z. There's a dummy for OP_ANY because it
corresponds to "." rather than an escape sequence. The final one must be
ESC_REF as subsequent values are used for \1, \2, \3, etc. There is are two
tests in the code for an escape greater than ESC_b and less than ESC_Z to
-detect the types that may be repeated. These are the types that consume a
-character. If any new escapes are put in between that don't consume a
+detect the types that may be repeated. These are the types that consume
+characters. If any new escapes are put in between that don't consume a
character, that code will have to change. */
enum { ESC_A = 1, ESC_G, ESC_B, ESC_b, ESC_D, ESC_d, ESC_S, ESC_s, ESC_W,
- ESC_w, ESC_dum1, ESC_C, ESC_Z, ESC_z, ESC_E, ESC_Q, ESC_REF };
+ ESC_w, ESC_dum1, ESC_C, ESC_P, ESC_p, ESC_X, ESC_Z, ESC_z, ESC_E,
+ ESC_Q, ESC_REF };
/* Flag bits and data types for the extended class (OP_XCLASS) for classes that
contain UTF-8 characters with values greater than 255. */
@@ -280,6 +326,8 @@ contain UTF-8 characters with values greater than 255. */
#define XCL_END 0 /* Marks end of individual items */
#define XCL_SINGLE 1 /* Single item (one multibyte char) follows */
#define XCL_RANGE 2 /* A range (two multibyte chars) follows */
+#define XCL_PROP 3 /* Unicode property (one property code) follows */
+#define XCL_NOTPROP 4 /* Unicode inverted property (ditto) */
/* Opcode table: OP_BRA must be last, as all values >= it are used for brackets
@@ -305,100 +353,112 @@ enum {
OP_WORDCHAR, /* 10 \w */
OP_ANY, /* 11 Match any character */
OP_ANYBYTE, /* 12 Match any byte (\C); different to OP_ANY for UTF-8 */
- OP_EODN, /* 13 End of data or \n at end of data: \Z. */
- OP_EOD, /* 14 End of data: \z */
-
- OP_OPT, /* 15 Set runtime options */
- OP_CIRC, /* 16 Start of line - varies with multiline switch */
- OP_DOLL, /* 17 End of line - varies with multiline switch */
- OP_CHARS, /* 18 Match string of characters */
- OP_NOT, /* 19 Match anything but the following char */
-
- OP_STAR, /* 20 The maximizing and minimizing versions of */
- OP_MINSTAR, /* 21 all these opcodes must come in pairs, with */
- OP_PLUS, /* 22 the minimizing one second. */
- OP_MINPLUS, /* 23 This first set applies to single characters */
- OP_QUERY, /* 24 */
- OP_MINQUERY, /* 25 */
- OP_UPTO, /* 26 From 0 to n matches */
- OP_MINUPTO, /* 27 */
- OP_EXACT, /* 28 Exactly n matches */
-
- OP_NOTSTAR, /* 29 The maximizing and minimizing versions of */
- OP_NOTMINSTAR, /* 30 all these opcodes must come in pairs, with */
- OP_NOTPLUS, /* 31 the minimizing one second. */
- OP_NOTMINPLUS, /* 32 This set applies to "not" single characters */
- OP_NOTQUERY, /* 33 */
- OP_NOTMINQUERY, /* 34 */
- OP_NOTUPTO, /* 35 From 0 to n matches */
- OP_NOTMINUPTO, /* 36 */
- OP_NOTEXACT, /* 37 Exactly n matches */
-
- OP_TYPESTAR, /* 38 The maximizing and minimizing versions of */
- OP_TYPEMINSTAR, /* 39 all these opcodes must come in pairs, with */
- OP_TYPEPLUS, /* 40 the minimizing one second. These codes must */
- OP_TYPEMINPLUS, /* 41 be in exactly the same order as those above. */
- OP_TYPEQUERY, /* 42 This set applies to character types such as \d */
- OP_TYPEMINQUERY, /* 43 */
- OP_TYPEUPTO, /* 44 From 0 to n matches */
- OP_TYPEMINUPTO, /* 45 */
- OP_TYPEEXACT, /* 46 Exactly n matches */
-
- OP_CRSTAR, /* 47 The maximizing and minimizing versions of */
- OP_CRMINSTAR, /* 48 all these opcodes must come in pairs, with */
- OP_CRPLUS, /* 49 the minimizing one second. These codes must */
- OP_CRMINPLUS, /* 50 be in exactly the same order as those above. */
- OP_CRQUERY, /* 51 These are for character classes and back refs */
- OP_CRMINQUERY, /* 52 */
- OP_CRRANGE, /* 53 These are different to the three seta above. */
- OP_CRMINRANGE, /* 54 */
-
- OP_CLASS, /* 55 Match a character class, chars < 256 only */
- OP_NCLASS, /* 56 Same, but the bitmap was created from a negative
+ OP_NOTPROP, /* 13 \P (not Unicode property) */
+ OP_PROP, /* 14 \p (Unicode property) */
+ OP_EXTUNI, /* 15 \X (extended Unicode sequence */
+ OP_EODN, /* 16 End of data or \n at end of data: \Z. */
+ OP_EOD, /* 17 End of data: \z */
+
+ OP_OPT, /* 18 Set runtime options */
+ OP_CIRC, /* 19 Start of line - varies with multiline switch */
+ OP_DOLL, /* 20 End of line - varies with multiline switch */
+ OP_CHAR, /* 21 Match one character, casefully */
+ OP_CHARNC, /* 22 Match one character, caselessly */
+ OP_NOT, /* 23 Match anything but the following char */
+
+ OP_STAR, /* 24 The maximizing and minimizing versions of */
+ OP_MINSTAR, /* 25 all these opcodes must come in pairs, with */
+ OP_PLUS, /* 26 the minimizing one second. */
+ OP_MINPLUS, /* 27 This first set applies to single characters */
+ OP_QUERY, /* 28 */
+ OP_MINQUERY, /* 29 */
+ OP_UPTO, /* 30 From 0 to n matches */
+ OP_MINUPTO, /* 31 */
+ OP_EXACT, /* 32 Exactly n matches */
+
+ OP_NOTSTAR, /* 33 The maximizing and minimizing versions of */
+ OP_NOTMINSTAR, /* 34 all these opcodes must come in pairs, with */
+ OP_NOTPLUS, /* 35 the minimizing one second. */
+ OP_NOTMINPLUS, /* 36 This set applies to "not" single characters */
+ OP_NOTQUERY, /* 37 */
+ OP_NOTMINQUERY, /* 38 */
+ OP_NOTUPTO, /* 39 From 0 to n matches */
+ OP_NOTMINUPTO, /* 40 */
+ OP_NOTEXACT, /* 41 Exactly n matches */
+
+ OP_TYPESTAR, /* 42 The maximizing and minimizing versions of */
+ OP_TYPEMINSTAR, /* 43 all these opcodes must come in pairs, with */
+ OP_TYPEPLUS, /* 44 the minimizing one second. These codes must */
+ OP_TYPEMINPLUS, /* 45 be in exactly the same order as those above. */
+ OP_TYPEQUERY, /* 46 This set applies to character types such as \d */
+ OP_TYPEMINQUERY, /* 47 */
+ OP_TYPEUPTO, /* 48 From 0 to n matches */
+ OP_TYPEMINUPTO, /* 49 */
+ OP_TYPEEXACT, /* 50 Exactly n matches */
+
+ OP_CRSTAR, /* 51 The maximizing and minimizing versions of */
+ OP_CRMINSTAR, /* 52 all these opcodes must come in pairs, with */
+ OP_CRPLUS, /* 53 the minimizing one second. These codes must */
+ OP_CRMINPLUS, /* 54 be in exactly the same order as those above. */
+ OP_CRQUERY, /* 55 These are for character classes and back refs */
+ OP_CRMINQUERY, /* 56 */
+ OP_CRRANGE, /* 57 These are different to the three sets above. */
+ OP_CRMINRANGE, /* 58 */
+
+ OP_CLASS, /* 59 Match a character class, chars < 256 only */
+ OP_NCLASS, /* 60 Same, but the bitmap was created from a negative
class - the difference is relevant only when a UTF-8
character > 255 is encountered. */
- OP_XCLASS, /* 57 Extended class for handling UTF-8 chars within the
+ OP_XCLASS, /* 61 Extended class for handling UTF-8 chars within the
class. This does both positive and negative. */
- OP_REF, /* 58 Match a back reference */
- OP_RECURSE, /* 59 Match a numbered subpattern (possibly recursive) */
- OP_CALLOUT, /* 60 Call out to external function if provided */
+ OP_REF, /* 62 Match a back reference */
+ OP_RECURSE, /* 63 Match a numbered subpattern (possibly recursive) */
+ OP_CALLOUT, /* 64 Call out to external function if provided */
- OP_ALT, /* 61 Start of alternation */
- OP_KET, /* 62 End of group that doesn't have an unbounded repeat */
- OP_KETRMAX, /* 63 These two must remain together and in this */
- OP_KETRMIN, /* 64 order. They are for groups the repeat for ever. */
+ OP_ALT, /* 65 Start of alternation */
+ OP_KET, /* 66 End of group that doesn't have an unbounded repeat */
+ OP_KETRMAX, /* 67 These two must remain together and in this */
+ OP_KETRMIN, /* 68 order. They are for groups the repeat for ever. */
/* The assertions must come before ONCE and COND */
- OP_ASSERT, /* 65 Positive lookahead */
- OP_ASSERT_NOT, /* 66 Negative lookahead */
- OP_ASSERTBACK, /* 67 Positive lookbehind */
- OP_ASSERTBACK_NOT, /* 68 Negative lookbehind */
- OP_REVERSE, /* 69 Move pointer back - used in lookbehind assertions */
+ OP_ASSERT, /* 69 Positive lookahead */
+ OP_ASSERT_NOT, /* 70 Negative lookahead */
+ OP_ASSERTBACK, /* 71 Positive lookbehind */
+ OP_ASSERTBACK_NOT, /* 72 Negative lookbehind */
+ OP_REVERSE, /* 73 Move pointer back - used in lookbehind assertions */
/* ONCE and COND must come after the assertions, with ONCE first, as there's
a test for >= ONCE for a subpattern that isn't an assertion. */
- OP_ONCE, /* 70 Once matched, don't back up into the subpattern */
- OP_COND, /* 71 Conditional group */
- OP_CREF, /* 72 Used to hold an extraction string number (cond ref) */
+ OP_ONCE, /* 74 Once matched, don't back up into the subpattern */
+ OP_COND, /* 75 Conditional group */
+ OP_CREF, /* 76 Used to hold an extraction string number (cond ref) */
- OP_BRAZERO, /* 73 These two must remain together and in this */
- OP_BRAMINZERO, /* 74 order. */
+ OP_BRAZERO, /* 77 These two must remain together and in this */
+ OP_BRAMINZERO, /* 78 order. */
- OP_BRANUMBER, /* 75 Used for extracting brackets whose number is greater
+ OP_BRANUMBER, /* 79 Used for extracting brackets whose number is greater
than can fit into an opcode. */
- OP_BRA /* 76 This and greater values are used for brackets that
- extract substrings up to a basic limit. After that,
- use is made of OP_BRANUMBER. */
+ OP_BRA /* 80 This and greater values are used for brackets that
+ extract substrings up to EXTRACT_BASIC_MAX. After
+ that, use is made of OP_BRANUMBER. */
};
-/* WARNING: There is an implicit assumption in study.c that all opcodes are
-less than 128 in value. This makes handling UTF-8 character sequences easier.
-*/
+/* WARNING WARNING WARNING: There is an implicit assumption in pcre.c and
+study.c that all opcodes are less than 128 in value. This makes handling UTF-8
+character sequences easier. */
+
+/* The highest extraction number before we have to start using additional
+bytes. (Originally PCRE didn't have support for extraction counts highter than
+this number.) The value is limited by the number of opcodes left after OP_BRA,
+i.e. 255 - OP_BRA. We actually set it a bit lower to leave room for additional
+opcodes. */
+
+#define EXTRACT_BASIC_MAX 100
/* This macro defines textual names for all the opcodes. There are used only
@@ -407,8 +467,10 @@ macro is referenced only in printint.c. */
#define OP_NAME_LIST \
"End", "\\A", "\\G", "\\B", "\\b", "\\D", "\\d", \
- "\\S", "\\s", "\\W", "\\w", "Any", "Anybyte", "\\Z", "\\z", \
- "Opt", "^", "$", "chars", "not", \
+ "\\S", "\\s", "\\W", "\\w", "Any", "Anybyte", \
+ "notprop", "prop", "extuni", \
+ "\\Z", "\\z", \
+ "Opt", "^", "$", "char", "charnc", "not", \
"*", "*?", "+", "+?", "?", "??", "{", "{", "{", \
"*", "*?", "+", "+?", "?", "??", "{", "{", "{", \
"*", "*?", "+", "+?", "?", "??", "{", "{", "{", \
@@ -431,8 +493,11 @@ in UTF-8 mode. The code that uses this table must know about such things. */
#define OP_LENGTHS \
1, /* End */ \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* \A, \G, \B, \B, \D, \d, \S, \s, \W, \w */ \
- 1, 1, 1, 1, 2, 1, 1, /* Any, Anybyte, \Z, \z, Opt, ^, $ */ \
- 2, /* Chars - the minimum length */ \
+ 1, 1, /* Any, Anybyte */ \
+ 2, 2, 1, /* NOTPROP, PROP, EXTUNI */ \
+ 1, 1, 2, 1, 1, /* \Z, \z, Opt, ^, $ */ \
+ 2, /* Char - the minimum length */ \
+ 2, /* Charnc - the minimum length */ \
2, /* not */ \
/* Positive single-char repeats ** These are */ \
2, 2, 2, 2, 2, 2, /* *, *?, +, +?, ?, ?? ** minima in */ \
@@ -451,7 +516,7 @@ in UTF-8 mode. The code that uses this table must know about such things. */
0, /* XCLASS - variable length */ \
3, /* REF */ \
1+LINK_SIZE, /* RECURSE */ \
- 2, /* CALLOUT */ \
+ 2+2*LINK_SIZE, /* CALLOUT */ \
1+LINK_SIZE, /* Alt */ \
1+LINK_SIZE, /* Ket */ \
1+LINK_SIZE, /* KetRmax */ \
@@ -469,14 +534,6 @@ in UTF-8 mode. The code that uses this table must know about such things. */
1+LINK_SIZE /* BRA */ \
-/* The highest extraction number before we have to start using additional
-bytes. (Originally PCRE didn't have support for extraction counts highter than
-this number.) The value is limited by the number of opcodes left after OP_BRA,
-i.e. 255 - OP_BRA. We actually set it a bit lower to leave room for additional
-opcodes. */
-
-#define EXTRACT_BASIC_MAX 150
-
/* A magic value for OP_CREF to indicate the "in recursion" condition. */
#define CREF_RECURSE 0xffff
@@ -522,7 +579,7 @@ just to accommodate the POSIX wrapper. */
#define ERR34 "character value in \\x{...} sequence is too large"
#define ERR35 "invalid condition (?(0)"
#define ERR36 "\\C not allowed in lookbehind assertion"
-#define ERR37 "PCRE does not support \\L, \\l, \\N, \\P, \\p, \\U, \\u, or \\X"
+#define ERR37 "PCRE does not support \\L, \\l, \\N, \\U, or \\u"
#define ERR38 "number after (?C is > 255"
#define ERR39 "closing ) for (?C expected"
#define ERR40 "recursive call could loop indefinitely"
@@ -530,37 +587,51 @@ just to accommodate the POSIX wrapper. */
#define ERR42 "syntax error after (?P"
#define ERR43 "two named groups have the same name"
#define ERR44 "invalid UTF-8 string"
-
-/* All character handling must be done as unsigned characters. Otherwise there
-are problems with top-bit-set characters and functions such as isspace().
-However, we leave the interface to the outside world as char *, because that
-should make things easier for callers. We define a short type for unsigned char
-to save lots of typing. I tried "uchar", but it causes problems on Digital
-Unix, where it is defined in sys/types, so use "uschar" instead. */
-
-typedef unsigned char uschar;
+#define ERR45 "support for \\P, \\p, and \\X has not been compiled"
+#define ERR46 "malformed \\P or \\p sequence"
+#define ERR47 "unknown property name after \\P or \\p"
/* The real format of the start of the pcre block; the index of names and the
-code vector run on as long as necessary after the end. */
+code vector run on as long as necessary after the end. We store an explicit
+offset to the name table so that if a regex is compiled on one host, saved, and
+then run on another where the size of pointers is different, all might still
+be well. For the case of compiled-on-4 and run-on-8, we include an extra
+pointer that is always NULL. For future-proofing, we also include a few dummy
+fields - even though you can never get this planning right!
+
+NOTE NOTE NOTE:
+Because people can now save and re-use compiled patterns, any additions to this
+structure should be made at the end, and something earlier (e.g. a new
+flag in the options or one of the dummy fields) should indicate that the new
+fields are present. Currently PCRE always sets the dummy fields to zero.
+NOTE NOTE NOTE:
+*/
typedef struct real_pcre {
- unsigned long int magic_number;
- size_t size; /* Total that was malloced */
- const unsigned char *tables; /* Pointer to tables */
- unsigned long int options;
- unsigned short int top_bracket;
- unsigned short int top_backref;
- unsigned short int first_byte;
- unsigned short int req_byte;
- unsigned short int name_entry_size; /* Size of any name items; 0 => none */
- unsigned short int name_count; /* Number of name items */
+ pcre_uint32 magic_number;
+ pcre_uint32 size; /* Total that was malloced */
+ pcre_uint32 options;
+ pcre_uint32 dummy1; /* For future use, maybe */
+
+ pcre_uint16 top_bracket;
+ pcre_uint16 top_backref;
+ pcre_uint16 first_byte;
+ pcre_uint16 req_byte;
+ pcre_uint16 name_table_offset; /* Offset to name table that follows */
+ pcre_uint16 name_entry_size; /* Size of any name items */
+ pcre_uint16 name_count; /* Number of name items */
+ pcre_uint16 dummy2; /* For future use, maybe */
+
+ const unsigned char *tables; /* Pointer to tables or NULL for std */
+ const unsigned char *nullpad; /* NULL padding */
} real_pcre;
-/* The format of the block used to store data from pcre_study(). */
+/* The format of the block used to store data from pcre_study(). The same
+remark (see NOTE above) about extending this structure applies. */
typedef struct pcre_study_data {
- size_t size; /* Total that was malloced */
- uschar options;
+ pcre_uint32 size; /* Total that was malloced */
+ pcre_uint32 options;
uschar start_bits[32];
} pcre_study_data;
@@ -573,12 +644,14 @@ typedef struct compile_data {
const uschar *cbits; /* Points to character type table */
const uschar *ctypes; /* Points to table of type maps */
const uschar *start_code; /* The start of the compiled code */
+ const uschar *start_pattern; /* The start of the pattern */
uschar *name_table; /* The name/number table */
int names_found; /* Number of entries so far */
int name_entry_size; /* Size of each entry */
int top_backref; /* Maximum back reference */
unsigned int backref_map; /* Bitmap of low back refs */
int req_varyopt; /* "After variable item" flag for reqbyte */
+ BOOL nopartial; /* Set TRUE if partial won't work */
} compile_data;
/* Structure for maintaining a chain of pointers to the currently incomplete
@@ -628,6 +701,8 @@ typedef struct match_data {
BOOL utf8; /* UTF8 flag */
BOOL endonly; /* Dollar not before final \n */
BOOL notempty; /* Empty string match not wanted */
+ BOOL partial; /* PARTIAL flag */
+ BOOL hitend; /* Hit the end of the subject at some point */
const uschar *start_code; /* For use when recursing */
const uschar *start_subject; /* Start of the subject string */
const uschar *end_subject; /* End of the subject string */
diff --git a/libpcre.pc.in b/libpcre.pc.in
new file mode 100644
index 0000000..4784401
--- /dev/null
+++ b/libpcre.pc.in
@@ -0,0 +1,12 @@
+# Package Information for pkg-config
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libpcre
+Description: PCRE - Perl compatible regular expressions C library
+Version: @PCRE_VERSION@
+Libs: -L${libdir} -lpcre
+Cflags: -I${includedir}
diff --git a/ltmain.sh b/ltmain.sh
index de848c6..1c78e00 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -1,7 +1,7 @@
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun configure.
#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
# Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
@@ -24,6 +24,41 @@
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
+basename="s,^.*/,,g"
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+# Modification by PH (26-Aug-2004, originally 18-Feb-2003) to ensure that
+# ${SED} is always set (it is not set on my system).
+
+case "X${SED}" in
+ X) SED=sed ;;
+esac
+
+# The name of this program:
+progname=`echo "$progpath" | $SED $basename`
+modename="$progname"
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION=1.5.8
+TIMESTAMP=" (1.1220.2.117 2004/08/04 14:12:05)"
+
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes.
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
# Check that we have a working $echo.
if test "X$1" = X--no-reexec; then
# Discard the --no-reexec flag, and continue.
@@ -36,7 +71,7 @@ elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
:
else
# Restart under the correct shell, and then maybe $echo will work.
- exec $SHELL "$0" --no-reexec ${1+"$@"}
+ exec $SHELL "$progpath" --no-reexec ${1+"$@"}
fi
if test "X$1" = X--fallback-echo; then
@@ -45,26 +80,9 @@ if test "X$1" = X--fallback-echo; then
cat <<EOF
$*
EOF
- exit 0
+ exit $EXIT_SUCCESS
fi
-# Modification by PH (18-Feb-2003) to ensure that ${SED} is always set
-# (it is not set on my system).
-
-case "X${SED}" in
- X) SED=sed ;;
-esac
-
-# The name of this program.
-progname=`$echo "$0" | ${SED} 's%^.*/%%'`
-modename="$progname"
-
-# Constants.
-PROGRAM=ltmain.sh
-PACKAGE=libtool
-VERSION=1.4.3
-TIMESTAMP=" (1.922.2.110 2002/10/23 01:39:54)"
-
default_mode=
help="Try \`$progname --help' for more information."
magic="%%%MAGIC variable%%%"
@@ -76,17 +94,17 @@ rm="rm -f"
# metacharacters that are still active within double-quoted strings.
Xsed="${SED}"' -e 1s/^X//'
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
-# test EBCDIC or ASCII
-case `echo A|od -x` in
- *[Cc]1*) # EBCDIC based system
- SP2NL="tr '\100' '\n'"
- NL2SP="tr '\r\n' '\100\100'"
- ;;
- *) # Assume ASCII based system
- SP2NL="tr '\040' '\012'"
- NL2SP="tr '\015\012' '\040\040'"
- ;;
-esac
+# test EBCDIC or ASCII
+case `echo A|tr A '\301'` in
+ A) # EBCDIC based system
+ SP2NL="tr '\100' '\n'"
+ NL2SP="tr '\r\n' '\100\100'"
+ ;;
+ *) # Assume ASCII based system
+ SP2NL="tr '\040' '\012'"
+ NL2SP="tr '\015\012' '\040\040'"
+ ;;
+esac
# NLS nuisances.
# Only set LANG and LC_ALL to C if already set.
@@ -101,12 +119,13 @@ if test "${LANG+set}" = set; then
fi
# Make sure IFS has a sensible default
-: ${IFS=" "}
+: ${IFS="
+"}
if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
- echo "$modename: not configured to build any kind of library" 1>&2
- echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
- exit 1
+ $echo "$modename: not configured to build any kind of library" 1>&2
+ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
+ exit $EXIT_FAILURE
fi
# Global variables.
@@ -121,8 +140,237 @@ execute_dlfiles=
lo2o="s/\\.lo\$/.${objext}/"
o2lo="s/\\.${objext}\$/.lo/"
+#####################################
+# Shell function definitions:
+# This seems to be the best place for them
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid () {
+ win32_libid_type="unknown"
+ win32_fileres=`file -L $1 2>/dev/null`
+ case $win32_fileres in
+ *ar\ archive\ import\ library*) # definitely import
+ win32_libid_type="x86 archive import"
+ ;;
+ *ar\ archive*) # could be an import, or static
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
+ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+ win32_nmres=`eval $NM -f posix -A $1 | \
+ sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
+ if test "X$win32_nmres" = "Ximport" ; then
+ win32_libid_type="x86 archive import"
+ else
+ win32_libid_type="x86 archive static"
+ fi
+ fi
+ ;;
+ *DLL*)
+ win32_libid_type="x86 DLL"
+ ;;
+ *executable*) # but shell scripts are "executable" too...
+ case $win32_fileres in
+ *MS\ Windows\ PE\ Intel*)
+ win32_libid_type="x86 DLL"
+ ;;
+ esac
+ ;;
+ esac
+ $echo $win32_libid_type
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag () {
+ if test -n "$available_tags" && test -z "$tagname"; then
+ CC_quoted=
+ for arg in $CC; do
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ CC_quoted="$CC_quoted $arg"
+ done
+ case $@ in
+ # Blanks in the command may have been stripped by the calling shell,
+ # but not from the CC environment variable when configure was run.
+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
+ # Blanks at the start of $base_compile will cause this to fail
+ # if we don't check for them as well.
+ *)
+ for z in $available_tags; do
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+ CC_quoted=
+ for arg in $CC; do
+ # Double-quote args containing other shell metacharacters.
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ CC_quoted="$CC_quoted $arg"
+ done
+ case "$@ " in
+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+ # Assume this is the tagged configuration we want.
+ tagname=$z
+ break
+ ;;
+ esac
+ fi
+ done
+ # If $tagname still isn't set, then no tagged configuration
+ # was found and let the user know that the "--tag" command
+ # line option must be used.
+ if test -z "$tagname"; then
+ $echo "$modename: unable to infer tagged configuration"
+ $echo "$modename: specify a tag with \`--tag'" 1>&2
+ exit $EXIT_FAILURE
+# else
+# $echo "$modename: using $tagname tagged configuration"
+ fi
+ ;;
+ esac
+ fi
+}
+
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives () {
+ my_gentop="$1"; shift
+ my_oldlibs=${1+"$@"}
+ my_oldobjs=""
+ my_xlib=""
+ my_xabs=""
+ my_xdir=""
+ my_status=""
+
+ $show "${rm}r $my_gentop"
+ $run ${rm}r "$my_gentop"
+ $show "$mkdir $my_gentop"
+ $run $mkdir "$my_gentop"
+ my_status=$?
+ if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
+ exit $my_status
+ fi
+
+ for my_xlib in $my_oldlibs; do
+ # Extract the objects.
+ case $my_xlib in
+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
+ *) my_xabs=`pwd`"/$my_xlib" ;;
+ esac
+ my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
+ my_xdir="$my_gentop/$my_xlib"
+
+ $show "${rm}r $my_xdir"
+ $run ${rm}r "$my_xdir"
+ $show "$mkdir $my_xdir"
+ $run $mkdir "$my_xdir"
+ status=$?
+ if test "$status" -ne 0 && test ! -d "$my_xdir"; then
+ exit $status
+ fi
+ case $host in
+ *-darwin*)
+ $show "Extracting $my_xabs"
+ # Do not bother doing anything if just a dry run
+ if test -z "$run"; then
+ darwin_orig_dir=`pwd`
+ cd $my_xdir || exit $?
+ darwin_archive=$my_xabs
+ darwin_curdir=`pwd`
+ darwin_base_archive=`basename $darwin_archive`
+ darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
+ if test -n "$darwin_arches"; then
+ darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
+ darwin_arch=
+ $show "$darwin_base_archive has multiple architectures $darwin_arches"
+ for darwin_arch in $darwin_arches ; do
+ mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
+ # Remove the table of contents from the thin files.
+ $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true
+ $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true
+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ $AR -xo "${darwin_base_archive}"
+ rm "${darwin_base_archive}"
+ cd "$darwin_curdir"
+ done # $darwin_arches
+ ## Okay now we have a bunch of thin objects, gotta fatten them up :)
+ darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP`
+ darwin_file=
+ darwin_files=
+ for darwin_file in $darwin_filelist; do
+ darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+ lipo -create -output "$darwin_file" $darwin_files
+ done # $darwin_filelist
+ rm -rf unfat-$$
+ cd "$darwin_orig_dir"
+ else
+ cd $darwin_orig_dir
+ (cd $my_xdir && $AR x $my_xabs) || exit $?
+ fi # $darwin_arches
+ fi # $run
+ ;;
+ *)
+ # We will extract separately just the conflicting names and we will
+ # no longer touch any unique names. It is faster to leave these
+ # extract automatically by $AR in one run.
+ $show "(cd $my_xdir && $AR x $my_xabs)"
+ $run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $?
+ if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
+ $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
+ $AR t "$my_xabs" | sort | uniq -cd | while read -r count name
+ do
+ i=1
+ while test "$i" -le "$count"
+ do
+ # Put our $i before any first dot (extension)
+ # Never overwrite any file
+ name_to="$name"
+ while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"
+ do
+ name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
+ done
+ $show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')"
+ $run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $?
+ i=`expr $i + 1`
+ done
+ done
+ fi
+ ;;
+ esac
+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ done
+
+ func_extract_archives_result="$my_oldobjs"
+}
+# End of Shell function definitions
+#####################################
+
+# Darwin sucks
+eval std_shrext=\"$shrext_cmds\"
+
# Parse our command line options once, thoroughly.
-while test $# -gt 0
+while test "$#" -gt 0
do
arg="$1"
shift
@@ -138,6 +386,34 @@ do
execute_dlfiles)
execute_dlfiles="$execute_dlfiles $arg"
;;
+ tag)
+ tagname="$arg"
+ preserve_args="${preserve_args}=$arg"
+
+ # Check whether tagname contains only valid characters
+ case $tagname in
+ *[!-_A-Za-z0-9,/]*)
+ $echo "$progname: invalid tag name: $tagname" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ case $tagname in
+ CC)
+ # Don't test for the "default" C tag, as we know, it's there, but
+ # not specially marked.
+ ;;
+ *)
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
+ taglist="$taglist $tagname"
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
+ else
+ $echo "$progname: ignoring unknown tag $tagname" 1>&2
+ fi
+ ;;
+ esac
+ ;;
*)
eval "$prev=\$arg"
;;
@@ -155,18 +431,27 @@ do
;;
--version)
- echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
- exit 0
+ $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
+ $echo
+ $echo "Copyright (C) 2003 Free Software Foundation, Inc."
+ $echo "This is free software; see the source for copying conditions. There is NO"
+ $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+ exit $EXIT_SUCCESS
;;
--config)
- ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
- exit 0
+ ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
+ # Now print the configurations for the tags.
+ for tagname in $taglist; do
+ ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
+ done
+ exit $EXIT_SUCCESS
;;
--debug)
- echo "$progname: enabling shell trace mode"
+ $echo "$progname: enabling shell trace mode"
set -x
+ preserve_args="$preserve_args $arg"
;;
--dry-run | -n)
@@ -174,18 +459,18 @@ do
;;
--features)
- echo "host: $host"
+ $echo "host: $host"
if test "$build_libtool_libs" = yes; then
- echo "enable shared libraries"
+ $echo "enable shared libraries"
else
- echo "disable shared libraries"
+ $echo "disable shared libraries"
fi
if test "$build_old_libs" = yes; then
- echo "enable static libraries"
+ $echo "enable static libraries"
else
- echo "disable static libraries"
+ $echo "disable static libraries"
fi
- exit 0
+ exit $EXIT_SUCCESS
;;
--finish) mode="finish" ;;
@@ -197,6 +482,15 @@ do
--quiet | --silent)
show=:
+ preserve_args="$preserve_args $arg"
+ ;;
+
+ --tag) prevopt="--tag" prev=tag ;;
+ --tag=*)
+ set tag "$optarg" ${1+"$@"}
+ shift
+ prev=tag
+ preserve_args="$preserve_args --tag"
;;
-dlopen)
@@ -207,7 +501,7 @@ do
-*)
$echo "$modename: unrecognized option \`$arg'" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
*)
@@ -220,7 +514,7 @@ done
if test -n "$prevopt"; then
$echo "$modename: option \`$prevopt' requires an argument" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# If this variable is set in any of the actions, the command in it
@@ -232,8 +526,10 @@ if test -z "$show_help"; then
# Infer the operation mode.
if test -z "$mode"; then
+ $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
+ $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
case $nonopt in
- *cc | *++ | gcc* | *-gcc* | xlc*)
+ *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
mode=link
for arg
do
@@ -274,7 +570,7 @@ if test -z "$show_help"; then
if test -n "$execute_dlfiles" && test "$mode" != execute; then
$echo "$modename: unrecognized option \`-dlopen'" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# Change the help message to a mode-specific one.
@@ -288,158 +584,124 @@ if test -z "$show_help"; then
modename="$modename: compile"
# Get the compilation command and the source file.
base_compile=
- prev=
- lastarg=
- srcfile="$nonopt"
+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
+ suppress_opt=yes
suppress_output=
+ arg_mode=normal
+ libobj=
+ later=
- user_target=no
for arg
do
- case $prev in
- "") ;;
- xcompiler)
- # Aesthetically quote the previous argument.
- prev=
- lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
-
- case $arg in
- # Double-quote args containing other shell metacharacters.
- # Many Bourne shells cannot handle close brackets correctly
- # in scan sets, so we specify it separately.
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
+ case "$arg_mode" in
+ arg )
+ # do not "continue". Instead, add this to base_compile
+ lastarg="$arg"
+ arg_mode=normal
+ ;;
- # Add the previous argument to base_compile.
- if test -z "$base_compile"; then
- base_compile="$lastarg"
- else
- base_compile="$base_compile $lastarg"
- fi
+ target )
+ libobj="$arg"
+ arg_mode=normal
continue
;;
- esac
- # Accept any command-line options.
- case $arg in
- -o)
- if test "$user_target" != "no"; then
- $echo "$modename: you cannot specify \`-o' more than once" 1>&2
- exit 1
- fi
- user_target=next
- ;;
+ normal )
+ # Accept any command-line options.
+ case $arg in
+ -o)
+ if test -n "$libobj" ; then
+ $echo "$modename: you cannot specify \`-o' more than once" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ arg_mode=target
+ continue
+ ;;
- -static)
- build_old_libs=yes
- continue
- ;;
+ -static | -prefer-pic | -prefer-non-pic)
+ later="$later $arg"
+ continue
+ ;;
- -prefer-pic)
- pic_mode=yes
- continue
- ;;
+ -no-suppress)
+ suppress_opt=no
+ continue
+ ;;
- -prefer-non-pic)
- pic_mode=no
- continue
- ;;
+ -Xcompiler)
+ arg_mode=arg # the next one goes into the "base_compile" arg list
+ continue # The current "srcfile" will either be retained or
+ ;; # replaced later. I would guess that would be a bug.
- -Xcompiler)
- prev=xcompiler
- continue
- ;;
+ -Wc,*)
+ args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
+ lastarg=
+ save_ifs="$IFS"; IFS=','
+ for arg in $args; do
+ IFS="$save_ifs"
- -Wc,*)
- args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
- lastarg=
- save_ifs="$IFS"; IFS=','
- for arg in $args; do
+ # Double-quote args containing other shell metacharacters.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ lastarg="$lastarg $arg"
+ done
IFS="$save_ifs"
+ lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
- # Double-quote args containing other shell metacharacters.
- # Many Bourne shells cannot handle close brackets correctly
- # in scan sets, so we specify it separately.
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- lastarg="$lastarg $arg"
- done
- IFS="$save_ifs"
- lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
-
- # Add the arguments to base_compile.
- if test -z "$base_compile"; then
- base_compile="$lastarg"
- else
+ # Add the arguments to base_compile.
base_compile="$base_compile $lastarg"
- fi
- continue
- ;;
- esac
+ continue
+ ;;
- case $user_target in
- next)
- # The next one is the -o target name
- user_target=yes
- continue
- ;;
- yes)
- # We got the output file
- user_target=set
- libobj="$arg"
- continue
+ * )
+ # Accept the current argument as the source file.
+ # The previous "srcfile" becomes the current argument.
+ #
+ lastarg="$srcfile"
+ srcfile="$arg"
+ ;;
+ esac # case $arg
;;
- esac
-
- # Accept the current argument as the source file.
- lastarg="$srcfile"
- srcfile="$arg"
+ esac # case $arg_mode
# Aesthetically quote the previous argument.
-
- # Backslashify any backslashes, double quotes, and dollar signs.
- # These are the only characters that are still specially
- # interpreted inside of double-quoted scrings.
lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
+ case $lastarg in
# Double-quote args containing other shell metacharacters.
# Many Bourne shells cannot handle close brackets correctly
# in scan sets, so we specify it separately.
- case $lastarg in
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
lastarg="\"$lastarg\""
;;
esac
- # Add the previous argument to base_compile.
- if test -z "$base_compile"; then
- base_compile="$lastarg"
- else
- base_compile="$base_compile $lastarg"
- fi
- done
+ base_compile="$base_compile $lastarg"
+ done # for arg
- case $user_target in
- set)
+ case $arg_mode in
+ arg)
+ $echo "$modename: you must specify an argument for -Xcompile"
+ exit $EXIT_FAILURE
;;
- no)
- # Get the name of the library object.
- libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
+ target)
+ $echo "$modename: you must specify a target with \`-o'" 1>&2
+ exit $EXIT_FAILURE
;;
*)
- $echo "$modename: you must specify a target with \`-o'" 1>&2
- exit 1
+ # Get the name of the library object.
+ [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
;;
esac
# Recognize several different file suffixes.
# If the user specifies -o file.o, it is replaced with file.lo
- xform='[cCFSfmso]'
+ xform='[cCFSifmso]'
case $libobj in
*.ada) xform=ada ;;
*.adb) xform=adb ;;
@@ -447,10 +709,13 @@ if test -z "$show_help"; then
*.asm) xform=asm ;;
*.c++) xform=c++ ;;
*.cc) xform=cc ;;
+ *.ii) xform=ii ;;
+ *.class) xform=class ;;
*.cpp) xform=cpp ;;
*.cxx) xform=cxx ;;
*.f90) xform=f90 ;;
*.for) xform=for ;;
+ *.java) xform=java ;;
esac
libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
@@ -459,25 +724,55 @@ if test -z "$show_help"; then
*.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
*)
$echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
+ func_infer_tag $base_compile
+
+ for arg in $later; do
+ case $arg in
+ -static)
+ build_old_libs=yes
+ continue
+ ;;
+
+ -prefer-pic)
+ pic_mode=yes
+ continue
+ ;;
+
+ -prefer-non-pic)
+ pic_mode=no
+ continue
+ ;;
+ esac
+ done
+
+ objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
+ xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$obj"; then
+ xdir=
+ else
+ xdir=$xdir/
+ fi
+ lobj=${xdir}$objdir/$objname
+
if test -z "$base_compile"; then
$echo "$modename: you must specify a compilation command" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# Delete any leftover library objects.
if test "$build_old_libs" = yes; then
- removelist="$obj $libobj"
+ removelist="$obj $lobj $libobj ${libobj}T"
else
- removelist="$libobj"
+ removelist="$lobj $libobj ${libobj}T"
fi
$run $rm $removelist
- trap "$run $rm $removelist; exit 1" 1 2 15
+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
# On Cygwin there's no "real" PIC flag so we must build both object types
case $host_os in
@@ -496,8 +791,9 @@ if test -z "$show_help"; then
output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
lockfile="$output_obj.lock"
removelist="$removelist $output_obj $lockfile"
- trap "$run $rm $removelist; exit 1" 1 2 15
+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
else
+ output_obj=
need_locks=no
lockfile=
fi
@@ -505,13 +801,13 @@ if test -z "$show_help"; then
# Lock this critical section if it is needed
# We use this script file to make the link, it avoids creating a new file
if test "$need_locks" = yes; then
- until $run ln "$0" "$lockfile" 2>/dev/null; do
+ until $run ln "$progpath" "$lockfile" 2>/dev/null; do
$show "Waiting for $lockfile to be removed"
sleep 2
done
elif test "$need_locks" = warn; then
if test -f "$lockfile"; then
- echo "\
+ $echo "\
*** ERROR, $lockfile exists and contains:
`cat $lockfile 2>/dev/null`
@@ -523,68 +819,67 @@ avoid parallel builds (make -j) in this platform, or get a better
compiler."
$run $rm $removelist
- exit 1
+ exit $EXIT_FAILURE
fi
- echo $srcfile > "$lockfile"
+ $echo $srcfile > "$lockfile"
fi
if test -n "$fix_srcfile_path"; then
eval srcfile=\"$fix_srcfile_path\"
fi
+ $run $rm "$libobj" "${libobj}T"
+
+ # Create a libtool object file (analogous to a ".la" file),
+ # but don't create it if we're doing a dry run.
+ test -z "$run" && cat > ${libobj}T <<EOF
+# $libobj - a libtool object file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+EOF
+
# Only build a PIC object if we are building libtool libraries.
if test "$build_libtool_libs" = yes; then
# Without this assignment, base_compile gets emptied.
fbsd_hideous_sh_bug=$base_compile
if test "$pic_mode" != no; then
- # All platforms use -DPIC, to notify preprocessed assembler code.
- command="$base_compile $srcfile $pic_flag -DPIC"
+ command="$base_compile $srcfile $pic_flag"
else
# Don't build PIC code
command="$base_compile $srcfile"
fi
- if test "$build_old_libs" = yes; then
- lo_libobj="$libobj"
- dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$dir" = "X$libobj"; then
- dir="$objdir"
- else
- dir="$dir/$objdir"
- fi
- libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
- if test -d "$dir"; then
- $show "$rm $libobj"
- $run $rm $libobj
- else
- $show "$mkdir $dir"
- $run $mkdir $dir
- status=$?
- if test $status -ne 0 && test ! -d $dir; then
- exit $status
- fi
+ if test ! -d "${xdir}$objdir"; then
+ $show "$mkdir ${xdir}$objdir"
+ $run $mkdir ${xdir}$objdir
+ status=$?
+ if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
+ exit $status
fi
fi
- if test "$compiler_o_lo" = yes; then
- output_obj="$libobj"
- command="$command -o $output_obj"
- elif test "$compiler_c_o" = yes; then
- output_obj="$obj"
- command="$command -o $output_obj"
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
fi
- $run $rm "$output_obj"
+ $run $rm "$lobj" "$output_obj"
+
$show "$command"
if $run eval "$command"; then :
else
test -n "$output_obj" && $run $rm $removelist
- exit 1
+ exit $EXIT_FAILURE
fi
if test "$need_locks" = warn &&
- test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
- echo "\
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $echo "\
*** ERROR, $lockfile contains:
`cat $lockfile 2>/dev/null`
@@ -599,13 +894,13 @@ avoid parallel builds (make -j) in this platform, or get a better
compiler."
$run $rm $removelist
- exit 1
+ exit $EXIT_FAILURE
fi
# Just move the object if needed, then go on to compile the next one
- if test x"$output_obj" != x"$libobj"; then
- $show "$mv $output_obj $libobj"
- if $run $mv $output_obj $libobj; then :
+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+ $show "$mv $output_obj $lobj"
+ if $run $mv $output_obj $lobj; then :
else
error=$?
$run $rm $removelist
@@ -613,48 +908,23 @@ compiler."
fi
fi
- # If we have no pic_flag, then copy the object into place and finish.
- if (test -z "$pic_flag" || test "$pic_mode" != default) &&
- test "$build_old_libs" = yes; then
- # Rename the .lo from within objdir to obj
- if test -f $obj; then
- $show $rm $obj
- $run $rm $obj
- fi
+ # Append the name of the PIC object to the libtool object file.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object='$objdir/$objname'
- $show "$mv $libobj $obj"
- if $run $mv $libobj $obj; then :
- else
- error=$?
- $run $rm $removelist
- exit $error
- fi
+EOF
- xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$obj"; then
- xdir="."
- else
- xdir="$xdir"
- fi
- baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
- libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
- # Now arrange that obj and lo_libobj become the same file
- $show "(cd $xdir && $LN_S $baseobj $libobj)"
- if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
- # Unlock the critical section if it was locked
- if test "$need_locks" != no; then
- $run $rm "$lockfile"
- fi
- exit 0
- else
- error=$?
- $run $rm $removelist
- exit $error
- fi
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
fi
+ else
+ # No PIC object so indicate it doesn't exist in the libtool
+ # object file.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object=none
- # Allow error messages only from the first compilation.
- suppress_output=' >/dev/null 2>&1'
+EOF
fi
# Only build a position-dependent object if we build old libraries.
@@ -663,27 +933,25 @@ compiler."
# Don't build PIC code
command="$base_compile $srcfile"
else
- # All platforms use -DPIC, to notify preprocessed assembler code.
- command="$base_compile $srcfile $pic_flag -DPIC"
+ command="$base_compile $srcfile $pic_flag"
fi
if test "$compiler_c_o" = yes; then
command="$command -o $obj"
- output_obj="$obj"
fi
# Suppress compiler output if we already did a PIC compilation.
command="$command$suppress_output"
- $run $rm "$output_obj"
+ $run $rm "$obj" "$output_obj"
$show "$command"
if $run eval "$command"; then :
else
$run $rm $removelist
- exit 1
+ exit $EXIT_FAILURE
fi
if test "$need_locks" = warn &&
- test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
- echo "\
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $echo "\
*** ERROR, $lockfile contains:
`cat $lockfile 2>/dev/null`
@@ -698,11 +966,11 @@ avoid parallel builds (make -j) in this platform, or get a better
compiler."
$run $rm $removelist
- exit 1
+ exit $EXIT_FAILURE
fi
# Just move the object if needed
- if test x"$output_obj" != x"$obj"; then
+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
$show "$mv $output_obj $obj"
if $run $mv $output_obj $obj; then :
else
@@ -712,29 +980,31 @@ compiler."
fi
fi
- # Create an invalid libtool object if no PIC, so that we do not
- # accidentally link it into a program.
- if test "$build_libtool_libs" != yes; then
- $show "echo timestamp > $libobj"
- $run eval "echo timestamp > \$libobj" || exit $?
- else
- # Move the .lo from within objdir
- $show "$mv $libobj $lo_libobj"
- if $run $mv $libobj $lo_libobj; then :
- else
- error=$?
- $run $rm $removelist
- exit $error
- fi
- fi
+ # Append the name of the non-PIC object the libtool object file.
+ # Only append if the libtool object file exists.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+# Name of the non-PIC object.
+non_pic_object='$objname'
+
+EOF
+ else
+ # Append the name of the non-PIC object the libtool object file.
+ # Only append if the libtool object file exists.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+# Name of the non-PIC object.
+non_pic_object=none
+
+EOF
fi
+ $run $mv "${libobj}T" "${libobj}"
+
# Unlock the critical section if it was locked
if test "$need_locks" != no; then
$run $rm "$lockfile"
fi
- exit 0
+ exit $EXIT_SUCCESS
;;
# libtool link mode
@@ -745,7 +1015,7 @@ compiler."
# It is impossible to link a dll without this setting, and
# we shouldn't force the makefile maintainer to figure out
# which system we are compiling for in order to pass an extra
- # flag for every libtool invokation.
+ # flag for every libtool invocation.
# allow_undefined=no
# FIXME: Unfortunately, there are problems with the above when trying
@@ -760,6 +1030,7 @@ compiler."
;;
esac
libtool_args="$nonopt"
+ base_compile="$nonopt $@"
compile_command="$nonopt"
finalize_command="$nonopt"
@@ -775,6 +1046,7 @@ compiler."
linker_flags=
dllsearchpath=
lib_search_path=`pwd`
+ inst_prefix_dir=
avoid_version=no
dlfiles=
@@ -789,6 +1061,8 @@ compiler."
module=no
no_install=no
objs=
+ non_pic_objects=
+ precious_files_regex=
prefer_static_libs=no
preload=no
prev=
@@ -800,6 +1074,9 @@ compiler."
temp_rpath=
thread_safe=no
vinfo=
+ vinfo_number=no
+
+ func_infer_tag $base_compile
# We need to know -static, to get the right output filenames.
for arg
@@ -830,7 +1107,7 @@ compiler."
test -n "$old_archive_from_new_cmds" && build_old_libs=yes
# Go through the arguments, transforming them on the way.
- while test $# -gt 0; do
+ while test "$#" -gt 0; do
arg="$1"
shift
case $arg in
@@ -895,7 +1172,7 @@ compiler."
export_symbols="$arg"
if test ! -f "$arg"; then
$echo "$modename: symbol file \`$arg' does not exist"
- exit 1
+ exit $EXIT_FAILURE
fi
prev=
continue
@@ -905,18 +1182,135 @@ compiler."
prev=
continue
;;
+ inst_prefix)
+ inst_prefix_dir="$arg"
+ prev=
+ continue
+ ;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
release)
release="-$arg"
prev=
continue
;;
+ objectlist)
+ if test -f "$arg"; then
+ save_arg=$arg
+ moreargs=
+ for fil in `cat $save_arg`
+ do
+# moreargs="$moreargs $fil"
+ arg=$fil
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ # If there is no directory component, then add one.
+ case $arg in
+ */* | *\\*) . $arg ;;
+ *) . ./$arg ;;
+ esac
+
+ if test -z "$pic_object" || \
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none && \
+ test "$non_pic_object" = none; then
+ $echo "$modename: cannot find name of object for \`$arg'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
+ else
+ xdir="$xdir/"
+ fi
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ libobjs="$libobjs $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if test -z "$run"; then
+ $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
+ exit $EXIT_FAILURE
+ else
+ # Dry-run case.
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
+ else
+ xdir="$xdir/"
+ fi
+
+ pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
+ non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
+ libobjs="$libobjs $pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ fi
+ fi
+ done
+ else
+ $echo "$modename: link input file \`$save_arg' does not exist"
+ exit $EXIT_FAILURE
+ fi
+ arg=$save_arg
+ prev=
+ continue
+ ;;
rpath | xrpath)
# We need an absolute path.
case $arg in
[\\/]* | [A-Za-z]:[\\/]*) ;;
*)
$echo "$modename: only absolute run-paths are allowed" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
if test "$prev" = rpath; then
@@ -948,13 +1342,26 @@ compiler."
finalize_command="$finalize_command $wl$qarg"
continue
;;
+ xcclinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ compile_command="$compile_command $qarg"
+ finalize_command="$finalize_command $qarg"
+ continue
+ ;;
+ shrext)
+ shrext_cmds="$arg"
+ prev=
+ continue
+ ;;
*)
eval "$prev=\"\$arg\""
prev=
continue
;;
esac
- fi # test -n $prev
+ fi # test -n "$prev"
prevarg="$arg"
@@ -996,7 +1403,7 @@ compiler."
-export-symbols | -export-symbols-regex)
if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
$echo "$modename: more than one -exported-symbols argument is not allowed"
- exit 1
+ exit $EXIT_FAILURE
fi
if test "X$arg" = "X-export-symbols"; then
prev=expsyms
@@ -1006,11 +1413,16 @@ compiler."
continue
;;
+ -inst-prefix-dir)
+ prev=inst_prefix
+ continue
+ ;;
+
# The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
# so, if we see these flags be careful not to treat them like -L
-L[A-Z][A-Z]*:*)
case $with_gcc/$host in
- no/*-*-irix* | no/*-*-nonstopux*)
+ no/*-*-irix* | /*-*-irix*)
compile_command="$compile_command $arg"
finalize_command="$finalize_command $arg"
;;
@@ -1027,7 +1439,7 @@ compiler."
absdir=`cd "$dir" && pwd`
if test -z "$absdir"; then
$echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
dir="$absdir"
;;
@@ -1065,24 +1477,61 @@ compiler."
# Do not include libc due to us having libc/libc_r.
test "X$arg" = "X-lc" && continue
;;
- esac
- elif test "X$arg" = "X-lc_r"; then
- case $host in
- *-*-openbsd* | *-*-freebsd*)
- # Do not include libc_r directly, use -pthread flag.
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ deplibs="$deplibs -framework System"
continue
- ;;
esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+ *-*-openbsd* | *-*-freebsd*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
fi
deplibs="$deplibs $arg"
continue
;;
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
-module)
module=yes
continue
;;
+ # gcc -m* arguments should be passed to the linker via $compiler_flags
+ # in order to pass architecture information to the linker
+ # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
+ # but this is not reliable with gcc because gcc may use -mfoo to
+ # select a different linker, different libraries, etc, while
+ # -Wl,-mfoo simply passes -mfoo to the linker.
+ -m*)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ if test "$with_gcc" = "yes" ; then
+ compiler_flags="$compiler_flags $arg"
+ fi
+ continue
+ ;;
+
+ -shrext)
+ prev=shrext
+ continue
+ ;;
+
-no-fast-install)
fast_install=no
continue
@@ -1107,8 +1556,18 @@ compiler."
continue
;;
+ -objectlist)
+ prev=objectlist
+ continue
+ ;;
+
-o) prev=output ;;
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
-release)
prev=release
continue
@@ -1131,7 +1590,7 @@ compiler."
[\\/]* | [A-Za-z]:[\\/]*) ;;
*)
$echo "$modename: only absolute run-paths are allowed" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
case "$xrpath " in
@@ -1159,6 +1618,11 @@ compiler."
prev=vinfo
continue
;;
+ -version-number)
+ prev=vinfo
+ vinfo_number=yes
+ continue
+ ;;
-Wc,*)
args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
@@ -1207,6 +1671,11 @@ compiler."
continue
;;
+ -XCClinker)
+ prev=xcclinker
+ continue
+ ;;
+
# Some other compiler flag.
-* | +*)
# Unknown arguments in both finalize_command and compile_command need
@@ -1219,29 +1688,101 @@ compiler."
esac
;;
- *.lo | *.$objext)
- # A library or standard object.
- if test "$prev" = dlfiles; then
- # This file was specified with -dlopen.
- if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
- dlfiles="$dlfiles $arg"
- prev=
- continue
+ *.$objext)
+ # A standard object.
+ objs="$objs $arg"
+ ;;
+
+ *.lo)
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ # If there is no directory component, then add one.
+ case $arg in
+ */* | *\\*) . $arg ;;
+ *) . ./$arg ;;
+ esac
+
+ if test -z "$pic_object" || \
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none && \
+ test "$non_pic_object" = none; then
+ $echo "$modename: cannot find name of object for \`$arg'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
else
- # If libtool objects are unsupported, then we need to preload.
- prev=dlprefiles
+ xdir="$xdir/"
fi
- fi
- if test "$prev" = dlprefiles; then
- # Preload the old-style object.
- dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
- prev=
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ libobjs="$libobjs $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ fi
else
- case $arg in
- *.lo) libobjs="$libobjs $arg" ;;
- *) objs="$objs $arg" ;;
- esac
+ # Only an error if not doing a dry-run.
+ if test -z "$run"; then
+ $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
+ exit $EXIT_FAILURE
+ else
+ # Dry-run case.
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
+ else
+ xdir="$xdir/"
+ fi
+
+ pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
+ non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
+ libobjs="$libobjs $pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ fi
fi
;;
@@ -1292,7 +1833,7 @@ compiler."
if test -n "$prev"; then
$echo "$modename: the \`$prevarg' option requires an argument" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
@@ -1301,6 +1842,7 @@ compiler."
finalize_command="$finalize_command $arg"
fi
+ oldlibs=
# calculate the name of the file, without its directory
outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
libobjs_save="$libobjs"
@@ -1321,11 +1863,11 @@ compiler."
output_objdir="$output_objdir/$objdir"
fi
# Create the object directory.
- if test ! -d $output_objdir; then
+ if test ! -d "$output_objdir"; then
$show "$mkdir $output_objdir"
$run $mkdir $output_objdir
status=$?
- if test $status -ne 0 && test ! -d $output_objdir; then
+ if test "$status" -ne 0 && test ! -d "$output_objdir"; then
exit $status
fi
fi
@@ -1335,7 +1877,7 @@ compiler."
"")
$echo "$modename: you must specify an output file" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
*.$libext) linkmode=oldlib ;;
*.lo | *.$objext) linkmode=obj ;;
@@ -1343,7 +1885,17 @@ compiler."
*) linkmode=prog ;; # Anything else should be a program.
esac
+ case $host in
+ *cygwin* | *mingw* | *pw32*)
+ # don't eliminate duplications in $postdeps and $predeps
+ duplicate_compiler_generated_deps=yes
+ ;;
+ *)
+ duplicate_compiler_generated_deps=$duplicate_deps
+ ;;
+ esac
specialdeplibs=
+
libs=
# Find all interdependent deplibs by searching for libraries
# that are linked more than once (e.g. -la -lb -la)
@@ -1355,6 +1907,25 @@ compiler."
fi
libs="$libs $deplib"
done
+
+ if test "$linkmode" = lib; then
+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+ esac
+ pre_post_deps="$pre_post_deps $pre_post_dep"
+ done
+ fi
+ pre_post_deps=
+ fi
+
deplibs=
newdependency_libs=
newlib_search_path=
@@ -1369,7 +1940,7 @@ compiler."
*.la) ;;
*)
$echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
done
@@ -1386,39 +1957,59 @@ compiler."
;;
esac
for pass in $passes; do
- if test $linkmode = prog; then
- # Determine which files to process
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan"; then
+ libs="$deplibs"
+ deplibs=
+ fi
+ if test "$linkmode" = prog; then
case $pass in
- dlopen)
- libs="$dlfiles"
- save_deplibs="$deplibs" # Collect dlpreopened libraries
- deplibs=
- ;;
+ dlopen) libs="$dlfiles" ;;
dlpreopen) libs="$dlprefiles" ;;
link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
esac
fi
+ if test "$pass" = dlopen; then
+ # Collect dlpreopened libraries
+ save_deplibs="$deplibs"
+ deplibs=
+ fi
for deplib in $libs; do
lib=
found=no
case $deplib in
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ fi
+ continue
+ ;;
-l*)
- if test $linkmode = oldlib && test $linkmode = obj; then
- $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
+ if test "$linkmode" != lib && test "$linkmode" != prog; then
+ $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
continue
fi
- if test $pass = conv; then
+ if test "$pass" = conv; then
deplibs="$deplib $deplibs"
continue
fi
name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
- # Search the libtool library
- lib="$searchdir/lib${name}.la"
- if test -f "$lib"; then
- found=yes
- break
- fi
+ for search_ext in .la $std_shrext .so .a; do
+ # Search the libtool library
+ lib="$searchdir/lib${name}${search_ext}"
+ if test -f "$lib"; then
+ if test "$search_ext" = ".la"; then
+ found=yes
+ else
+ found=no
+ fi
+ break 2
+ fi
+ done
done
if test "$found" != yes; then
# deplib doesn't seem to be a libtool library
@@ -1427,40 +2018,76 @@ compiler."
finalize_deplibs="$deplib $finalize_deplibs"
else
deplibs="$deplib $deplibs"
- test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
fi
continue
+ else # deplib is a libtool library
+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+ # We need to do some special things here, and not later.
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $deplib "*)
+ if (${SED} -e '2q' $lib |
+ grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ library_names=
+ old_library=
+ case $lib in
+ */* | *\\*) . $lib ;;
+ *) . ./$lib ;;
+ esac
+ for l in $old_library $library_names; do
+ ll="$l"
+ done
+ if test "X$ll" = "X$old_library" ; then # only static version available
+ found=no
+ ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
+ test "X$ladir" = "X$lib" && ladir="."
+ lib=$ladir/$old_library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ fi
+ fi
+ ;;
+ *) ;;
+ esac
+ fi
fi
;; # -l
-L*)
case $linkmode in
lib)
deplibs="$deplib $deplibs"
- test $pass = conv && continue
+ test "$pass" = conv && continue
newdependency_libs="$deplib $newdependency_libs"
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
;;
prog)
- if test $pass = conv; then
+ if test "$pass" = conv; then
deplibs="$deplib $deplibs"
continue
fi
- if test $pass = scan; then
+ if test "$pass" = scan; then
deplibs="$deplib $deplibs"
- newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
else
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
fi
+ newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
;;
*)
- $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
+ $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
;;
esac # linkmode
continue
;; # -L
-R*)
- if test $pass = link; then
+ if test "$pass" = link; then
dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
# Make sure the xrpath contains only unique directories.
case "$xrpath " in
@@ -1473,30 +2100,45 @@ compiler."
;;
*.la) lib="$deplib" ;;
*.$libext)
- if test $pass = conv; then
+ if test "$pass" = conv; then
deplibs="$deplib $deplibs"
continue
fi
case $linkmode in
lib)
- if test "$deplibs_check_method" != pass_all; then
- echo
- echo "*** Warning: Trying to link with static lib archive $deplib."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- echo "*** shared version of the library, which you do not appear to have"
- echo "*** because the file extensions .$libext of this argument makes me believe"
- echo "*** that it is just a static archive that I should not used here."
+ valid_a_lib=no
+ case $deplibs_check_method in
+ match_pattern*)
+ set dummy $deplibs_check_method
+ match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+ if eval $echo \"$deplib\" 2>/dev/null \
+ | $SED 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ valid_a_lib=yes
+ fi
+ ;;
+ pass_all)
+ valid_a_lib=yes
+ ;;
+ esac
+ if test "$valid_a_lib" != yes; then
+ $echo
+ $echo "*** Warning: Trying to link with static lib archive $deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because the file extensions .$libext of this argument makes me believe"
+ $echo "*** that it is just a static archive that I should not used here."
else
- echo
- echo "*** Warning: Linking the shared library $output against the"
- echo "*** static library $deplib is not portable!"
+ $echo
+ $echo "*** Warning: Linking the shared library $output against the"
+ $echo "*** static library $deplib is not portable!"
deplibs="$deplib $deplibs"
fi
continue
;;
prog)
- if test $pass != link; then
+ if test "$pass" != link; then
deplibs="$deplib $deplibs"
else
compile_deplibs="$deplib $compile_deplibs"
@@ -1507,14 +2149,18 @@ compiler."
esac # linkmode
;; # *.$libext
*.lo | *.$objext)
- if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
- # If there is no dlopen support or we're linking statically,
- # we need to preload.
- newdlprefiles="$newdlprefiles $deplib"
- compile_deplibs="$deplib $compile_deplibs"
- finalize_deplibs="$deplib $finalize_deplibs"
- else
- newdlfiles="$newdlfiles $deplib"
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ elif test "$linkmode" = prog; then
+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ # If there is no dlopen support or we're linking statically,
+ # we need to preload.
+ newdlprefiles="$newdlprefiles $deplib"
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ newdlfiles="$newdlfiles $deplib"
+ fi
fi
continue
;;
@@ -1523,17 +2169,17 @@ compiler."
continue
;;
esac # case $deplib
- if test $found = yes || test -f "$lib"; then :
+ if test "$found" = yes || test -f "$lib"; then :
else
$echo "$modename: cannot find the library \`$lib'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# Check to see that this really is a libtool archive.
- if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+ if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
else
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
@@ -1546,8 +2192,9 @@ compiler."
library_names=
old_library=
# If the library was installed with an old release of libtool,
- # it will not redefine variable installed.
+ # it will not redefine variables installed, or shouldnotlink
installed=yes
+ shouldnotlink=no
# Read the .la file
case $lib in
@@ -1557,19 +2204,18 @@ compiler."
if test "$linkmode,$pass" = "lib,link" ||
test "$linkmode,$pass" = "prog,scan" ||
- { test $linkmode = oldlib && test $linkmode = obj; }; then
- # Add dl[pre]opened files of deplib
+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
fi
- if test $pass = conv; then
+ if test "$pass" = conv; then
# Only check for convenience libraries
deplibs="$lib $deplibs"
if test -z "$libdir"; then
if test -z "$old_library"; then
$echo "$modename: cannot find name of link library for \`$lib'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# It is a libtool convenience library, so add in its objects.
convenience="$convenience $ladir/$objdir/$old_library"
@@ -1584,13 +2230,14 @@ compiler."
fi
tmp_libs="$tmp_libs $deplib"
done
- elif test $linkmode != prog && test $linkmode != lib; then
+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
$echo "$modename: \`$lib' is not a convenience library" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
continue
fi # $pass = conv
+
# Get the name of the library we link against.
linklib=
for l in $old_library $library_names; do
@@ -1598,19 +2245,23 @@ compiler."
done
if test -z "$linklib"; then
$echo "$modename: cannot find name of link library for \`$lib'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# This library was specified with -dlopen.
- if test $pass = dlopen; then
+ if test "$pass" = dlopen; then
if test -z "$libdir"; then
$echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
- if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ if test -z "$dlname" ||
+ test "$dlopen_support" != yes ||
+ test "$build_libtool_libs" = no; then
# If there is no dlname, no dlopen support or we're linking
- # statically, we need to preload.
- dlprefiles="$dlprefiles $lib"
+ # statically, we need to preload. We also need to preload any
+ # dependent libraries so libltdl's deplib preloader doesn't
+ # bomb out in the load deplibs phase.
+ dlprefiles="$dlprefiles $lib $dependency_libs"
else
newdlfiles="$newdlfiles $lib"
fi
@@ -1643,18 +2294,25 @@ compiler."
absdir="$libdir"
fi
else
- dir="$ladir/$objdir"
- absdir="$abs_ladir/$objdir"
- # Remove this search path later
- notinst_path="$notinst_path $abs_ladir"
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ fi
fi # $installed = yes
name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
# This library was specified with -dlpreopen.
- if test $pass = dlpreopen; then
+ if test "$pass" = dlpreopen; then
if test -z "$libdir"; then
$echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# Prefer using a static library (so that no silly _DYNAMIC symbols
# are required to link).
@@ -1670,18 +2328,19 @@ compiler."
if test -z "$libdir"; then
# Link the convenience library
- if test $linkmode = lib; then
+ if test "$linkmode" = lib; then
deplibs="$dir/$old_library $deplibs"
elif test "$linkmode,$pass" = "prog,link"; then
compile_deplibs="$dir/$old_library $compile_deplibs"
finalize_deplibs="$dir/$old_library $finalize_deplibs"
else
- deplibs="$lib $deplibs"
+ deplibs="$lib $deplibs" # used for prog,scan pass
fi
continue
fi
- if test $linkmode = prog && test $pass != link; then
+
+ if test "$linkmode" = prog && test "$pass" != link; then
newlib_search_path="$newlib_search_path $ladir"
deplibs="$lib $deplibs"
@@ -1697,7 +2356,7 @@ compiler."
-L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
esac
# Need to link against all dependency_libs?
- if test $linkalldeplibs = yes; then
+ if test "$linkalldeplibs" = yes; then
deplibs="$deplib $deplibs"
else
# Need to hardcode shared library paths
@@ -1714,13 +2373,19 @@ compiler."
continue
fi # $linkmode = prog...
- link_static=no # Whether the deplib will be linked statically
- if test -n "$library_names" &&
- { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
- # Link against this shared library
+ if test "$linkmode,$pass" = "prog,link"; then
+ if test -n "$library_names" &&
+ { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+ # We need to hardcode the library path
+ if test -n "$shlibpath_var"; then
+ # Make sure the rpath contains only unique directories.
+ case "$temp_rpath " in
+ *" $dir "*) ;;
+ *" $absdir "*) ;;
+ *) temp_rpath="$temp_rpath $dir" ;;
+ esac
+ fi
- if test "$linkmode,$pass" = "prog,link" ||
- { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
# Hardcode the library path.
# Skip directories that are in the system default run-time
# search path.
@@ -1742,17 +2407,6 @@ compiler."
esac
;;
esac
- if test $linkmode = prog; then
- # We need to hardcode the library path
- if test -n "$shlibpath_var"; then
- # Make sure the rpath contains only unique directories.
- case "$temp_rpath " in
- *" $dir "*) ;;
- *" $absdir "*) ;;
- *) temp_rpath="$temp_rpath $dir" ;;
- esac
- fi
- fi
fi # $linkmode,$pass = prog,link...
if test "$alldeplibs" = yes &&
@@ -1762,11 +2416,52 @@ compiler."
# We only need to search for static libraries
continue
fi
+ fi
+ link_static=no # Whether the deplib will be linked statically
+ if test -n "$library_names" &&
+ { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
if test "$installed" = no; then
notinst_deplibs="$notinst_deplibs $lib"
need_relink=yes
fi
+ # This is a shared library
+
+ # Warn about portability, can't link against -module's on
+ # some systems (darwin)
+ if test "$shouldnotlink" = yes && test "$pass" = link ; then
+ $echo
+ if test "$linkmode" = prog; then
+ $echo "*** Warning: Linking the executable $output against the loadable module"
+ else
+ $echo "*** Warning: Linking the shared library $output against the loadable module"
+ fi
+ $echo "*** $linklib is not portable!"
+ fi
+ if test "$linkmode" = lib &&
+ test "$hardcode_into_libs" = yes; then
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi
if test -n "$old_archive_from_expsyms_cmds"; then
# figure out the soname
@@ -1780,7 +2475,7 @@ compiler."
elif test -n "$soname_spec"; then
# bleh windows
case $host in
- *cygwin*)
+ *cygwin* | mingw*)
major=`expr $current - $age`
versuffix="-$major"
;;
@@ -1792,17 +2487,18 @@ compiler."
# Make a new name for the extract_expsyms_cmds to use
soroot="$soname"
- soname=`echo $soroot | ${SED} -e 's/^.*\///'`
- newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
+ soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
+ newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
# If the library has no export list, then create one now
if test -f "$output_objdir/$soname-def"; then :
else
$show "extracting exported symbol list from \`$soname'"
save_ifs="$IFS"; IFS='~'
- eval cmds=\"$extract_expsyms_cmds\"
+ cmds=$extract_expsyms_cmds
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || exit $?
done
@@ -1813,9 +2509,10 @@ compiler."
if test -f "$output_objdir/$newlib"; then :; else
$show "generating import library for \`$soname'"
save_ifs="$IFS"; IFS='~'
- eval cmds=\"$old_archive_from_expsyms_cmds\"
+ cmds=$old_archive_from_expsyms_cmds
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || exit $?
done
@@ -1824,9 +2521,9 @@ compiler."
# make sure the library variables are pointing to the new library
dir=$output_objdir
linklib=$newlib
- fi # test -n $old_archive_from_expsyms_cmds
+ fi # test -n "$old_archive_from_expsyms_cmds"
- if test $linkmode = prog || test "$mode" != relink; then
+ if test "$linkmode" = prog || test "$mode" != relink; then
add_shlibpath=
add_dir=
add=
@@ -1835,6 +2532,22 @@ compiler."
immediate | unsupported)
if test "$hardcode_direct" = no; then
add="$dir/$linklib"
+ case $host in
+ *-*-sco3.2v5* ) add_dir="-L$dir" ;;
+ *-*-darwin* )
+ # if the lib is a module then we can not link against
+ # it, someone is ignoring the new warnings I added
+ if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
+ $echo "** Warning, lib $linklib is a module, not a shared library"
+ if test -z "$old_library" ; then
+ $echo
+ $echo "** And there doesn't seem to be a static archive available"
+ $echo "** The link will probably fail, sorry"
+ else
+ add="$dir/$old_library"
+ fi
+ fi
+ esac
elif test "$hardcode_minus_L" = no; then
case $host in
*-*-sunos*) add_shlibpath="$dir" ;;
@@ -1853,6 +2566,14 @@ compiler."
add="$dir/$linklib"
elif test "$hardcode_minus_L" = yes; then
add_dir="-L$dir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case "$libdir" in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
add="-l$name"
elif test "$hardcode_shlibpath_var" = yes; then
add_shlibpath="$dir"
@@ -1866,7 +2587,7 @@ compiler."
if test "$lib_linked" != yes; then
$echo "$modename: configuration error: unsupported hardcode properties"
- exit 1
+ exit $EXIT_FAILURE
fi
if test -n "$add_shlibpath"; then
@@ -1875,7 +2596,7 @@ compiler."
*) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
esac
fi
- if test $linkmode = prog; then
+ if test "$linkmode" = prog; then
test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
test -n "$add" && compile_deplibs="$add $compile_deplibs"
else
@@ -1892,7 +2613,7 @@ compiler."
fi
fi
- if test $linkmode = prog || test "$mode" = relink; then
+ if test "$linkmode" = prog || test "$mode" = relink; then
add_shlibpath=
add_dir=
add=
@@ -1908,13 +2629,28 @@ compiler."
*) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
esac
add="-l$name"
+ elif test "$hardcode_automatic" = yes; then
+ if test -n "$inst_prefix_dir" &&
+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
else
# We cannot seem to hardcode it, guess we'll fake it.
add_dir="-L$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case "$libdir" in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
add="-l$name"
fi
- if test $linkmode = prog; then
+ if test "$linkmode" = prog; then
test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
else
@@ -1922,16 +2658,7 @@ compiler."
test -n "$add" && deplibs="$add $deplibs"
fi
fi
- elif test $linkmode = prog; then
- if test "$alldeplibs" = yes &&
- { test "$deplibs_check_method" = pass_all ||
- { test "$build_libtool_libs" = yes &&
- test -n "$library_names"; }; }; then
- # We only need to search for static libraries
- continue
- fi
-
- # Try to link the static library
+ elif test "$linkmode" = prog; then
# Here we assume that one of hardcode_direct or hardcode_minus_L
# is not unsupported. This is valid on all known static and
# shared platforms.
@@ -1951,21 +2678,21 @@ compiler."
# Just print a warning and add the library to dependency_libs so
# that the program can be linked against the static library.
- echo
- echo "*** Warning: This system can not link to static lib archive $lib."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- echo "*** shared version of the library, which you do not appear to have."
+ $echo
+ $echo "*** Warning: This system can not link to static lib archive $lib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have."
if test "$module" = yes; then
- echo "*** But as you try to build a module library, libtool will still create "
- echo "*** a static module, that should work as long as the dlopening application"
- echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
+ $echo "*** But as you try to build a module library, libtool will still create "
+ $echo "*** a static module, that should work as long as the dlopening application"
+ $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
if test -z "$global_symbol_pipe"; then
- echo
- echo "*** However, this would only work if libtool was able to extract symbol"
- echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
- echo "*** not find such a program. So, this module is probably useless."
- echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ $echo
+ $echo "*** However, this would only work if libtool was able to extract symbol"
+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $echo "*** not find such a program. So, this module is probably useless."
+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
fi
if test "$build_old_libs" = no; then
build_libtool_libs=module
@@ -1982,10 +2709,11 @@ compiler."
fi
fi # link shared/static library?
- if test $linkmode = lib; then
+ if test "$linkmode" = lib; then
if test -n "$dependency_libs" &&
- { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
- test $link_static = yes; }; then
+ { test "$hardcode_into_libs" != yes ||
+ test "$build_old_libs" = yes ||
+ test "$link_static" = yes; }; then
# Extract -R from dependency_libs
temp_deplibs=
for libdir in $dependency_libs; do
@@ -2016,7 +2744,7 @@ compiler."
tmp_libs="$tmp_libs $deplib"
done
- if test $link_all_deplibs != no; then
+ if test "$link_all_deplibs" != no; then
# Add the search paths of all dependency libraries
for deplib in $dependency_libs; do
case $deplib in
@@ -2036,22 +2764,67 @@ compiler."
;;
esac
if grep "^installed=no" $deplib > /dev/null; then
- path="-L$absdir/$objdir"
+ path="$absdir/$objdir"
else
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
if test -z "$libdir"; then
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
if test "$absdir" != "$libdir"; then
$echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
fi
- path="-L$absdir"
+ path="$absdir"
fi
+ depdepl=
+ case $host in
+ *-*-darwin*)
+ # we do not want to link against static libs,
+ # but need to link against shared
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$path/$depdepl" ; then
+ depdepl="$path/$depdepl"
+ fi
+ # do not add paths which are already there
+ case " $newlib_search_path " in
+ *" $path "*) ;;
+ *) newlib_search_path="$newlib_search_path $path";;
+ esac
+ fi
+ path=""
+ ;;
+ *)
+ path="-L$path"
+ ;;
+ esac
+ ;;
+ -l*)
+ case $host in
+ *-*-darwin*)
+ # Again, we only want to link against shared libraries
+ eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
+ for tmp in $newlib_search_path ; do
+ if test -f "$tmp/lib$tmp_libs.dylib" ; then
+ eval depdepl="$tmp/lib$tmp_libs.dylib"
+ break
+ fi
+ done
+ path=""
+ ;;
+ *) continue ;;
+ esac
;;
*) continue ;;
esac
case " $deplibs " in
+ *" $depdepl "*) ;;
+ *) deplibs="$depdepl $deplibs" ;;
+ esac
+ case " $deplibs " in
*" $path "*) ;;
*) deplibs="$deplibs $path" ;;
esac
@@ -2059,15 +2832,15 @@ compiler."
fi # link_all_deplibs != no
fi # linkmode = lib
done # for deplib in $libs
- if test $pass = dlpreopen; then
+ dependency_libs="$newdependency_libs"
+ if test "$pass" = dlpreopen; then
# Link the dlpreopened libraries before other libraries
for deplib in $save_deplibs; do
deplibs="$deplib $deplibs"
done
fi
- if test $pass != dlopen; then
- test $pass != scan && dependency_libs="$newdependency_libs"
- if test $pass != conv; then
+ if test "$pass" != dlopen; then
+ if test "$pass" != conv; then
# Make sure lib_search_path contains only unique directories.
lib_search_path=
for dir in $newlib_search_path; do
@@ -2089,9 +2862,30 @@ compiler."
eval tmp_libs=\"\$$var\"
new_libs=
for deplib in $tmp_libs; do
+ # FIXME: Pedantically, this is the right thing to do, so
+ # that some nasty dependency loop isn't accidentally
+ # broken:
+ #new_libs="$deplib $new_libs"
+ # Pragmatically, this seems to cause very few problems in
+ # practice:
case $deplib in
-L*) new_libs="$deplib $new_libs" ;;
+ -R*) ;;
*)
+ # And here is the reason: when a library appears more
+ # than once as an explicit dependence of a library, or
+ # is implicitly linked in more than once by the
+ # compiler, it is considered special, and multiple
+ # occurrences thereof are not removed. Compare this
+ # with having the same library being listed as a
+ # dependency of multiple other libraries: in this case,
+ # we know (pedantically, we assume) the library does not
+ # need to be listed more than once, so we keep only the
+ # last copy. This is not always right, but it is rare
+ # enough that we require users that really mean to play
+ # such unportable linking tricks to link the library
+ # using -Wl,-lname, so that libtool does not consider it
+ # for duplicate removal.
case " $specialdeplibs " in
*" $deplib "*) new_libs="$deplib $new_libs" ;;
*)
@@ -2119,19 +2913,32 @@ compiler."
eval $var=\"$tmp_libs\"
done # for var
fi
- if test "$pass" = "conv" &&
- { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
- libs="$deplibs" # reset libs
- deplibs=
- fi
+ # Last step: remove runtime libs from dependency_libs
+ # (they stay in deplibs)
+ tmp_libs=
+ for i in $dependency_libs ; do
+ case " $predeps $postdeps $compiler_lib_search_path " in
+ *" $i "*)
+ i=""
+ ;;
+ esac
+ if test -n "$i" ; then
+ tmp_libs="$tmp_libs $i"
+ fi
+ done
+ dependency_libs=$tmp_libs
done # for pass
- if test $linkmode = prog; then
+ if test "$linkmode" = prog; then
dlfiles="$newdlfiles"
dlprefiles="$newdlprefiles"
fi
case $linkmode in
oldlib)
+ if test -n "$deplibs"; then
+ $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
+ fi
+
if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
$echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
fi
@@ -2145,7 +2952,7 @@ compiler."
fi
if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
+ $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
fi
if test -n "$release"; then
@@ -2167,17 +2974,19 @@ compiler."
case $outputname in
lib*)
name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
+ eval shared_ext=\"$shrext_cmds\"
eval libname=\"$libname_spec\"
;;
*)
if test "$module" = no; then
$echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
if test "$need_lib_prefix" != no; then
# Add the "lib" prefix for modules if required
name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
+ eval shared_ext=\"$shrext_cmds\"
eval libname=\"$libname_spec\"
else
libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
@@ -2188,11 +2997,11 @@ compiler."
if test -n "$objs"; then
if test "$deplibs_check_method" != pass_all; then
$echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
- exit 1
+ exit $EXIT_FAILURE
else
- echo
- echo "*** Warning: Linking the shared library $output against the non-libtool"
- echo "*** objects $objs is not portable!"
+ $echo
+ $echo "*** Warning: Linking the shared library $output against the non-libtool"
+ $echo "*** objects $objs is not portable!"
libobjs="$libobjs $objs"
fi
fi
@@ -2202,7 +3011,7 @@ compiler."
fi
set dummy $rpath
- if test $# -gt 2; then
+ if test "$#" -gt 2; then
$echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
fi
install_libdir="$2"
@@ -2211,14 +3020,16 @@ compiler."
if test -z "$rpath"; then
if test "$build_libtool_libs" = yes; then
# Building a libtool convenience library.
- libext=al
+ # Some compilers have problems with a `.al' extension so
+ # convenience libraries should have the same extension an
+ # archive normally would.
oldlibs="$output_objdir/$libname.$libext $oldlibs"
build_libtool_libs=convenience
build_old_libs=yes
fi
if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
+ $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
fi
if test -n "$release"; then
@@ -2234,12 +3045,49 @@ compiler."
if test -n "$8"; then
$echo "$modename: too many parameters to \`-version-info'" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
- current="$2"
- revision="$3"
- age="$4"
+ # convert absolute version numbers to libtool ages
+ # this retains compatibility with .la files and attempts
+ # to make the code below a bit more comprehensible
+
+ case $vinfo_number in
+ yes)
+ number_major="$2"
+ number_minor="$3"
+ number_revision="$4"
+ #
+ # There are really only two kinds -- those that
+ # use the current revision as the major version
+ # and those that subtract age and use age as
+ # a minor version. But, then there is irix
+ # which has an extra 1 added just for fun
+ #
+ case $version_type in
+ darwin|linux|osf|windows)
+ current=`expr $number_major + $number_minor`
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+ freebsd-aout|freebsd-elf|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+ ;;
+ irix|nonstopux)
+ current=`expr $number_major + $number_minor - 1`
+ age="$number_minor"
+ revision="$number_minor"
+ ;;
+ esac
+ ;;
+ no)
+ current="$2"
+ revision="$3"
+ age="$4"
+ ;;
+ esac
# Check that each of the things are valid numbers.
case $current in
@@ -2247,7 +3095,7 @@ compiler."
*)
$echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
@@ -2256,7 +3104,7 @@ compiler."
*)
$echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
@@ -2265,14 +3113,14 @@ compiler."
*)
$echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
- if test $age -gt $current; then
+ if test "$age" -gt "$current"; then
$echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# Calculate the version variables.
@@ -2289,7 +3137,7 @@ compiler."
versuffix="$major.$age.$revision"
# Darwin ld doesn't like 0 for these options...
minor_current=`expr $current + 1`
- verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
;;
freebsd-aout)
@@ -2313,7 +3161,7 @@ compiler."
# Add in all the interfaces that we are compatible with.
loop=$revision
- while test $loop != 0; do
+ while test "$loop" -ne 0; do
iface=`expr $revision - $loop`
loop=`expr $loop - 1`
verstring="$verstring_prefix$major.$iface:$verstring"
@@ -2336,7 +3184,7 @@ compiler."
# Add in all the interfaces that we are compatible with.
loop=$age
- while test $loop != 0; do
+ while test "$loop" -ne 0; do
iface=`expr $current - $loop`
loop=`expr $loop - 1`
verstring="$verstring:${iface}.0"
@@ -2360,20 +3208,19 @@ compiler."
*)
$echo "$modename: unknown library version type \`$version_type'" 1>&2
- echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
- exit 1
+ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
+ exit $EXIT_FAILURE
;;
esac
# Clear the version info if we defaulted, and they specified a release.
if test -z "$vinfo" && test -n "$release"; then
major=
- verstring="0.0"
case $version_type in
darwin)
# we can't check for "0.0" in archive_cmds due to quoting
# problems, so we reset it completely
- verstring=""
+ verstring=
;;
*)
verstring="0.0"
@@ -2407,9 +3254,30 @@ compiler."
fi
if test "$mode" != relink; then
- # Remove our outputs.
- $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
- $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
+ # Remove our outputs, but don't remove object files since they
+ # may have been created when compiling PIC objects.
+ removelist=
+ tempremovelist=`$echo "$output_objdir/*"`
+ for p in $tempremovelist; do
+ case $p in
+ *.$objext)
+ ;;
+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if test "X$precious_files_regex" != "X"; then
+ if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
+ fi
+ removelist="$removelist $p"
+ ;;
+ *) ;;
+ esac
+ done
+ if test -n "$removelist"; then
+ $show "${rm}r $removelist"
+ $run ${rm}r $removelist
+ fi
fi
# Now set the variables for building old libraries.
@@ -2422,9 +3290,9 @@ compiler."
# Eliminate all temporary directories.
for path in $notinst_path; do
- lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
- deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
- dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
+ lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
+ deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
+ dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
done
if test -n "$xrpath"; then
@@ -2437,7 +3305,7 @@ compiler."
*) finalize_rpath="$finalize_rpath $libdir" ;;
esac
done
- if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
dependency_libs="$temp_xrpath $dependency_libs"
fi
fi
@@ -2477,10 +3345,11 @@ compiler."
;;
*-*-openbsd* | *-*-freebsd*)
# Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
;;
*)
# Add libc to deplibs on all other systems if necessary.
- if test $build_libtool_need_lc = "yes"; then
+ if test "$build_libtool_need_lc" = "yes"; then
deplibs="$deplibs -lc"
fi
;;
@@ -2507,7 +3376,7 @@ compiler."
# This might be a little naive. We might want to check
# whether the library exists or not. But this is on
# osf3 & osf4 and I'm not really sure... Just
- # implementing what was already the behaviour.
+ # implementing what was already the behavior.
newdeplibs=$deplibs
;;
test_compile)
@@ -2520,68 +3389,88 @@ compiler."
int main() { return 0; }
EOF
$rm conftest
- $CC -o conftest conftest.c $deplibs
- if test $? -eq 0 ; then
+ $LTCC -o conftest conftest.c $deplibs
+ if test "$?" -eq 0 ; then
ldd_output=`ldd conftest`
for i in $deplibs; do
name="`expr $i : '-l\(.*\)'`"
# If $name is empty we are operating on a -L argument.
- if test -n "$name" && test "$name" != "0"; then
- libname=`eval \\$echo \"$libname_spec\"`
- deplib_matches=`eval \\$echo \"$library_names_spec\"`
- set dummy $deplib_matches
- deplib_match=$2
- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
- newdeplibs="$newdeplibs $i"
- else
- droppeddeps=yes
- echo
- echo "*** Warning: dynamic linker does not accept needed library $i."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- echo "*** shared version of the library, which I believe you do not have"
- echo "*** because a test_compile did reveal that the linker did not use it for"
- echo "*** its dynamic dependency list that programs get resolved with at runtime."
+ if test "$name" != "" && test "$name" -ne "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which I believe you do not have"
+ $echo "*** because a test_compile did reveal that the linker did not use it for"
+ $echo "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
fi
else
newdeplibs="$newdeplibs $i"
fi
done
else
- # Error occured in the first compile. Let's try to salvage
+ # Error occurred in the first compile. Let's try to salvage
# the situation: Compile a separate program for each library.
for i in $deplibs; do
name="`expr $i : '-l\(.*\)'`"
- # If $name is empty we are operating on a -L argument.
- if test -n "$name" && test "$name" != "0"; then
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
$rm conftest
- $CC -o conftest conftest.c $i
+ $LTCC -o conftest conftest.c $i
# Did it work?
- if test $? -eq 0 ; then
+ if test "$?" -eq 0 ; then
ldd_output=`ldd conftest`
- libname=`eval \\$echo \"$libname_spec\"`
- deplib_matches=`eval \\$echo \"$library_names_spec\"`
- set dummy $deplib_matches
- deplib_match=$2
- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
- newdeplibs="$newdeplibs $i"
- else
- droppeddeps=yes
- echo
- echo "*** Warning: dynamic linker does not accept needed library $i."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- echo "*** shared version of the library, which you do not appear to have"
- echo "*** because a test_compile did reveal that the linker did not use this one"
- echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because a test_compile did reveal that the linker did not use this one"
+ $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
fi
else
droppeddeps=yes
- echo
- echo "*** Warning! Library $i is needed by this library but I was not able to"
- echo "*** make it link in! You will probably need to install it or some"
- echo "*** library that it depends on before this library will be fully"
- echo "*** functional. Installing it before continuing would be even better."
+ $echo
+ $echo "*** Warning! Library $i is needed by this library but I was not able to"
+ $echo "*** make it link in! You will probably need to install it or some"
+ $echo "*** library that it depends on before this library will be fully"
+ $echo "*** functional. Installing it before continuing would be even better."
fi
else
newdeplibs="$newdeplibs $i"
@@ -2595,11 +3484,20 @@ EOF
for a_deplib in $deplibs; do
name="`expr $a_deplib : '-l\(.*\)'`"
# If $name is empty we are operating on a -L argument.
- if test -n "$name" && test "$name" != "0"; then
- libname=`eval \\$echo \"$libname_spec\"`
- for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
- for potent_lib in $potential_libs; do
+ if test "$name" != "" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
# Follow soft links.
if ls -lLd "$potent_lib" 2>/dev/null \
| grep " -> " >/dev/null; then
@@ -2620,26 +3518,27 @@ EOF
done
if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
| ${SED} 10q \
- | egrep "$file_magic_regex" > /dev/null; then
+ | $EGREP "$file_magic_regex" > /dev/null; then
newdeplibs="$newdeplibs $a_deplib"
a_deplib=""
break 2
fi
- done
- done
+ done
+ done
+ fi
if test -n "$a_deplib" ; then
droppeddeps=yes
- echo
- echo "*** Warning: linker path does not have real file for library $a_deplib."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- echo "*** shared version of the library, which you do not appear to have"
- echo "*** because I did check the linker path looking for a file starting"
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
if test -z "$potlib" ; then
- echo "*** with $libname but no candidates were found. (...for file magic test)"
+ $echo "*** with $libname but no candidates were found. (...for file magic test)"
else
- echo "*** with $libname and none of the candidates passed a file format test"
- echo "*** using a file magic. Last file checked: $potlib"
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a file magic. Last file checked: $potlib"
fi
fi
else
@@ -2655,33 +3554,43 @@ EOF
name="`expr $a_deplib : '-l\(.*\)'`"
# If $name is empty we are operating on a -L argument.
if test -n "$name" && test "$name" != "0"; then
- libname=`eval \\$echo \"$libname_spec\"`
- for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
- for potent_lib in $potential_libs; do
- potlib="$potent_lib" # see symlink-check below in file_magic test
- if eval echo \"$potent_lib\" 2>/dev/null \
- | ${SED} 10q \
- | egrep "$match_pattern_regex" > /dev/null; then
- newdeplibs="$newdeplibs $a_deplib"
- a_deplib=""
- break 2
- fi
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval $echo \"$potent_lib\" 2>/dev/null \
+ | ${SED} 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
done
- done
+ fi
if test -n "$a_deplib" ; then
droppeddeps=yes
- echo
- echo "*** Warning: linker path does not have real file for library $a_deplib."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- echo "*** shared version of the library, which you do not appear to have"
- echo "*** because I did check the linker path looking for a file starting"
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
if test -z "$potlib" ; then
- echo "*** with $libname but no candidates were found. (...for regex pattern test)"
+ $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
else
- echo "*** with $libname and none of the candidates passed a file format test"
- echo "*** using a regex pattern. Last file checked: $potlib"
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a regex pattern. Last file checked: $potlib"
fi
fi
else
@@ -2692,16 +3601,23 @@ EOF
;;
none | unknown | *)
newdeplibs=""
- if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
- -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
- grep . >/dev/null; then
- echo
+ tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
+ -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
+ done
+ fi
+ if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
+ | grep . >/dev/null; then
+ $echo
if test "X$deplibs_check_method" = "Xnone"; then
- echo "*** Warning: inter-library dependencies are not supported in this platform."
+ $echo "*** Warning: inter-library dependencies are not supported in this platform."
else
- echo "*** Warning: inter-library dependencies are not known to be supported."
+ $echo "*** Warning: inter-library dependencies are not known to be supported."
fi
- echo "*** All declared inter-library dependencies are being dropped."
+ $echo "*** All declared inter-library dependencies are being dropped."
droppeddeps=yes
fi
;;
@@ -2721,17 +3637,17 @@ EOF
if test "$droppeddeps" = yes; then
if test "$module" = yes; then
- echo
- echo "*** Warning: libtool could not satisfy all declared inter-library"
- echo "*** dependencies of module $libname. Therefore, libtool will create"
- echo "*** a static module, that should work as long as the dlopening"
- echo "*** application is linked with the -dlopen flag."
+ $echo
+ $echo "*** Warning: libtool could not satisfy all declared inter-library"
+ $echo "*** dependencies of module $libname. Therefore, libtool will create"
+ $echo "*** a static module, that should work as long as the dlopening"
+ $echo "*** application is linked with the -dlopen flag."
if test -z "$global_symbol_pipe"; then
- echo
- echo "*** However, this would only work if libtool was able to extract symbol"
- echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
- echo "*** not find such a program. So, this module is probably useless."
- echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ $echo
+ $echo "*** However, this would only work if libtool was able to extract symbol"
+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $echo "*** not find such a program. So, this module is probably useless."
+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
fi
if test "$build_old_libs" = no; then
oldlibs="$output_objdir/$libname.$libext"
@@ -2741,16 +3657,16 @@ EOF
build_libtool_libs=no
fi
else
- echo "*** The inter-library dependencies that have been dropped here will be"
- echo "*** automatically added whenever a program is linked with this library"
- echo "*** or is declared to -dlopen it."
-
- if test $allow_undefined = no; then
- echo
- echo "*** Since this library must not contain undefined symbols,"
- echo "*** because either the platform does not support them or"
- echo "*** it was explicitly requested with -no-undefined,"
- echo "*** libtool will only create a static version of it."
+ $echo "*** The inter-library dependencies that have been dropped here will be"
+ $echo "*** automatically added whenever a program is linked with this library"
+ $echo "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $echo
+ $echo "*** Since this library must not contain undefined symbols,"
+ $echo "*** because either the platform does not support them or"
+ $echo "*** it was explicitly requested with -no-undefined,"
+ $echo "*** libtool will only create a static version of it."
if test "$build_old_libs" = no; then
oldlibs="$output_objdir/$libname.$libext"
build_libtool_libs=module
@@ -2772,7 +3688,7 @@ EOF
# Test again, we may have decided not to build it any more
if test "$build_libtool_libs" = yes; then
- if test $hardcode_into_libs = yes; then
+ if test "$hardcode_into_libs" = yes; then
# Hardcode the library paths
hardcode_libdirs=
dep_rpath=
@@ -2808,7 +3724,11 @@ EOF
if test -n "$hardcode_libdir_separator" &&
test -n "$hardcode_libdirs"; then
libdir="$hardcode_libdirs"
- eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+ if test -n "$hardcode_libdir_flag_spec_ld"; then
+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+ else
+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+ fi
fi
if test -n "$runpath_var" && test -n "$perm_rpath"; then
# We should set the runpath_var.
@@ -2828,6 +3748,7 @@ EOF
fi
# Get the real and link names of the library.
+ eval shared_ext=\"$shrext_cmds\"
eval library_names=\"$library_names_spec\"
set dummy $library_names
realname="$2"
@@ -2838,7 +3759,9 @@ EOF
else
soname="$realname"
fi
- test -z "$dlname" && dlname=$soname
+ if test -z "$dlname"; then
+ dlname=$soname
+ fi
lib="$output_objdir/$realname"
for link
@@ -2846,23 +3769,6 @@ EOF
linknames="$linknames $link"
done
- # Ensure that we have .o objects for linkers which dislike .lo
- # (e.g. aix) in case we are running --disable-static
- for obj in $libobjs; do
- xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$obj"; then
- xdir="."
- else
- xdir="$xdir"
- fi
- baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
- oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
- if test ! -f $xdir/$oldobj; then
- $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
- $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
- fi
- done
-
# Use standard objects if they are pic
test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
@@ -2872,17 +3778,26 @@ EOF
$show "generating symbol list for \`$libname.la'"
export_symbols="$output_objdir/$libname.exp"
$run $rm $export_symbols
- eval cmds=\"$export_symbols_cmds\"
+ cmds=$export_symbols_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
- $show "$cmd"
- $run eval "$cmd" || exit $?
+ eval cmd=\"$cmd\"
+ if len=`expr "X$cmd" : ".*"` &&
+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ skipped_export=false
+ else
+ # The command line is too long to execute in one step.
+ $show "using reloadable object file for export list..."
+ skipped_export=:
+ fi
done
IFS="$save_ifs"
if test -n "$export_symbols_regex"; then
- $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
- $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
+ $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
$show "$mv \"${export_symbols}T\" \"$export_symbols\""
$run eval '$mv "${export_symbols}T" "$export_symbols"'
fi
@@ -2893,46 +3808,30 @@ EOF
$run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
fi
+ tmp_deplibs=
+ for test_deplib in $deplibs; do
+ case " $convenience " in
+ *" $test_deplib "*) ;;
+ *)
+ tmp_deplibs="$tmp_deplibs $test_deplib"
+ ;;
+ esac
+ done
+ deplibs="$tmp_deplibs"
+
if test -n "$convenience"; then
if test -n "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
else
gentop="$output_objdir/${outputname}x"
- $show "${rm}r $gentop"
- $run ${rm}r "$gentop"
- $show "mkdir $gentop"
- $run mkdir "$gentop"
- status=$?
- if test $status -ne 0 && test ! -d "$gentop"; then
- exit $status
- fi
generated="$generated $gentop"
- for xlib in $convenience; do
- # Extract the objects.
- case $xlib in
- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
- *) xabs=`pwd`"/$xlib" ;;
- esac
- xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
- xdir="$gentop/$xlib"
-
- $show "${rm}r $xdir"
- $run ${rm}r "$xdir"
- $show "mkdir $xdir"
- $run mkdir "$xdir"
- status=$?
- if test $status -ne 0 && test ! -d "$xdir"; then
- exit $status
- fi
- $show "(cd $xdir && $AR x $xabs)"
- $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
-
- libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
- done
+ func_extract_archives $gentop $convenience
+ libobjs="$libobjs $func_extract_archives_result"
fi
fi
-
+
if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
eval flag=\"$thread_safe_flag_spec\"
linker_flags="$linker_flags $flag"
@@ -2944,25 +3843,147 @@ EOF
fi
# Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ eval test_cmds=\"$module_expsym_cmds\"
+ cmds=$module_expsym_cmds
+ else
+ eval test_cmds=\"$module_cmds\"
+ cmds=$module_cmds
+ fi
+ else
if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
- eval cmds=\"$archive_expsym_cmds\"
+ eval test_cmds=\"$archive_expsym_cmds\"
+ cmds=$archive_expsym_cmds
else
- save_deplibs="$deplibs"
- for conv in $convenience; do
- tmp_deplibs=
- for test_deplib in $deplibs; do
- if test "$test_deplib" != "$conv"; then
- tmp_deplibs="$tmp_deplibs $test_deplib"
+ eval test_cmds=\"$archive_cmds\"
+ cmds=$archive_cmds
+ fi
+ fi
+
+ if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ :
+ else
+ # The command line is too long to link in one step, link piecewise.
+ $echo "creating reloadable object files..."
+
+ # Save the value of $output and $libobjs because we want to
+ # use them later. If we have whole_archive_flag_spec, we
+ # want to use save_libobjs as it was before
+ # whole_archive_flag_spec was expanded, because we can't
+ # assume the linker understands whole_archive_flag_spec.
+ # This may have to be revisited, in case too many
+ # convenience libraries get linked in and end up exceeding
+ # the spec.
+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ fi
+ save_output=$output
+
+ # Clear the reloadable object creation command queue and
+ # initialize k to one.
+ test_cmds=
+ concat_cmds=
+ objlist=
+ delfiles=
+ last_robj=
+ k=1
+ output=$output_objdir/$save_output-${k}.$objext
+ # Loop over the list of objects to be linked.
+ for obj in $save_libobjs
+ do
+ eval test_cmds=\"$reload_cmds $objlist $last_robj\"
+ if test "X$objlist" = X ||
+ { len=`expr "X$test_cmds" : ".*"` &&
+ test "$len" -le "$max_cmd_len"; }; then
+ objlist="$objlist $obj"
+ else
+ # The command $test_cmds is almost too long, add a
+ # command to the queue.
+ if test "$k" -eq 1 ; then
+ # The first file doesn't have a previous command to add.
+ eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
+ else
+ # All subsequent reloadable object files will link in
+ # the last one created.
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
fi
- done
- deplibs="$tmp_deplibs"
+ last_robj=$output_objdir/$save_output-${k}.$objext
+ k=`expr $k + 1`
+ output=$output_objdir/$save_output-${k}.$objext
+ objlist=$obj
+ len=1
+ fi
done
- eval cmds=\"$archive_cmds\"
- deplibs="$save_deplibs"
+ # Handle the remaining objects by creating one last
+ # reloadable object file. All subsequent reloadable object
+ # files will link in the last one created.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+
+ if ${skipped_export-false}; then
+ $show "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $run $rm $export_symbols
+ libobjs=$output
+ # Append the command to create the export file.
+ eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
+ fi
+
+ # Set up a command to remove the reloadale object files
+ # after they are used.
+ i=0
+ while test "$i" -lt "$k"
+ do
+ i=`expr $i + 1`
+ delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
+ done
+
+ $echo "creating a temporary reloadable object file: $output"
+
+ # Loop through the commands generated above and execute them.
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $concat_cmds; do
+ IFS="$save_ifs"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+
+ libobjs=$output
+ # Restore the value of output.
+ output=$save_output
+
+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ fi
+ # Expand the library linking commands again to reset the
+ # value of $libobjs for piecewise linking.
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ cmds=$module_expsym_cmds
+ else
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ cmds=$archive_expsym_cmds
+ else
+ cmds=$archive_cmds
+ fi
+ fi
+
+ # Append the command to remove the reloadable object files
+ # to the just-reset $cmds.
+ eval cmds=\"\$cmds~\$rm $delfiles\"
fi
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || exit $?
done
@@ -2971,7 +3992,7 @@ EOF
# Restore the uninstalled library and exit
if test "$mode" = relink; then
$run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
- exit 0
+ exit $EXIT_SUCCESS
fi
# Create links to the real library.
@@ -3019,7 +4040,7 @@ EOF
*.lo)
if test -n "$objs$old_deplibs"; then
$echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
libobj="$output"
obj=`$echo "X$output" | $Xsed -e "$lo2o"`
@@ -3048,38 +4069,10 @@ EOF
eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
else
gentop="$output_objdir/${obj}x"
- $show "${rm}r $gentop"
- $run ${rm}r "$gentop"
- $show "mkdir $gentop"
- $run mkdir "$gentop"
- status=$?
- if test $status -ne 0 && test ! -d "$gentop"; then
- exit $status
- fi
generated="$generated $gentop"
- for xlib in $convenience; do
- # Extract the objects.
- case $xlib in
- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
- *) xabs=`pwd`"/$xlib" ;;
- esac
- xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
- xdir="$gentop/$xlib"
-
- $show "${rm}r $xdir"
- $run ${rm}r "$xdir"
- $show "mkdir $xdir"
- $run mkdir "$xdir"
- status=$?
- if test $status -ne 0 && test ! -d "$xdir"; then
- exit $status
- fi
- $show "(cd $xdir && $AR x $xabs)"
- $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
-
- reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
- done
+ func_extract_archives $gentop $convenience
+ reload_conv_objs="$reload_objs $func_extract_archives_result"
fi
fi
@@ -3087,10 +4080,11 @@ EOF
reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
output="$obj"
- eval cmds=\"$reload_cmds\"
+ cmds=$reload_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || exit $?
done
@@ -3103,7 +4097,7 @@ EOF
$run ${rm}r $gentop
fi
- exit 0
+ exit $EXIT_SUCCESS
fi
if test "$build_libtool_libs" != yes; then
@@ -3114,37 +4108,24 @@ EOF
# Create an invalid libtool object if no PIC, so that we don't
# accidentally link it into a program.
- $show "echo timestamp > $libobj"
- $run eval "echo timestamp > $libobj" || exit $?
- exit 0
+ # $show "echo timestamp > $libobj"
+ # $run eval "echo timestamp > $libobj" || exit $?
+ exit $EXIT_SUCCESS
fi
if test -n "$pic_flag" || test "$pic_mode" != default; then
# Only do commands if we really have different PIC objects.
reload_objs="$libobjs $reload_conv_objs"
output="$libobj"
- eval cmds=\"$reload_cmds\"
+ cmds=$reload_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || exit $?
done
IFS="$save_ifs"
- else
- # Just create a symlink.
- $show $rm $libobj
- $run $rm $libobj
- xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$libobj"; then
- xdir="."
- else
- xdir="$xdir"
- fi
- baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
- oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
- $show "(cd $xdir && $LN_S $oldobj $baseobj)"
- $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
fi
if test -n "$gentop"; then
@@ -3152,12 +4133,12 @@ EOF
$run ${rm}r $gentop
fi
- exit 0
+ exit $EXIT_SUCCESS
;;
prog)
case $host in
- *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
+ *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
esac
if test -n "$vinfo"; then
$echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
@@ -3179,16 +4160,19 @@ EOF
# On Rhapsody replace the C library is the System framework
compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
- case $host in
- *darwin*)
- # Don't allow lazy linking, it breaks C++ global constructors
- compile_command="$compile_command ${wl}-bind_at_load"
- finalize_command="$finalize_command ${wl}-bind_at_load"
- ;;
- esac
;;
esac
+ case $host in
+ *darwin*)
+ # Don't allow lazy linking, it breaks C++ global constructors
+ if test "$tagname" = CXX ; then
+ compile_command="$compile_command ${wl}-bind_at_load"
+ finalize_command="$finalize_command ${wl}-bind_at_load"
+ fi
+ ;;
+ esac
+
compile_command="$compile_command $compile_deplibs"
finalize_command="$finalize_command $finalize_deplibs"
@@ -3339,12 +4323,12 @@ extern \"C\" {
done
if test -n "$exclude_expsyms"; then
- $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+ $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
$run eval '$mv "$nlist"T "$nlist"'
fi
if test -n "$export_symbols_regex"; then
- $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+ $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
$run eval '$mv "$nlist"T "$nlist"'
fi
@@ -3362,8 +4346,8 @@ extern \"C\" {
for arg in $dlprefiles; do
$show "extracting global C symbols from \`$arg'"
- name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
- $run eval 'echo ": $name " >> "$nlist"'
+ name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
+ $run eval '$echo ": $name " >> "$nlist"'
$run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
done
@@ -3372,7 +4356,7 @@ extern \"C\" {
test -f "$nlist" || : > "$nlist"
if test -n "$exclude_expsyms"; then
- egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
$mv "$nlist"T "$nlist"
fi
@@ -3392,7 +4376,7 @@ extern \"C\" {
if test -f "$nlist"S; then
eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
else
- echo '/* NONE */' >> "$output_objdir/$dlsyms"
+ $echo '/* NONE */' >> "$output_objdir/$dlsyms"
fi
$echo >> "$output_objdir/$dlsyms" "\
@@ -3444,18 +4428,18 @@ static const void *lt_preloaded_setup() {
*-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
case "$compile_command " in
*" -static "*) ;;
- *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
+ *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
esac;;
*-*-hpux*)
case "$compile_command " in
*" -static "*) ;;
- *) pic_flag_for_symtable=" $pic_flag -DPIC";;
+ *) pic_flag_for_symtable=" $pic_flag";;
esac
esac
# Now compile the dynamic symbol file.
- $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
- $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
+ $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
+ $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
# Clean up the generated files.
$show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
@@ -3467,7 +4451,7 @@ static const void *lt_preloaded_setup() {
;;
*)
$echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
else
@@ -3480,7 +4464,7 @@ static const void *lt_preloaded_setup() {
finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
fi
- if test $need_relink = no || test "$build_libtool_libs" != yes; then
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
# Replace the output file specification.
compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
link_command="$compile_command$compile_rpath"
@@ -3555,7 +4539,7 @@ static const void *lt_preloaded_setup() {
# Link the executable and exit
$show "$link_command"
$run eval "$link_command" || exit $?
- exit 0
+ exit $EXIT_SUCCESS
fi
if test "$hardcode_action" = relink; then
@@ -3610,10 +4594,10 @@ static const void *lt_preloaded_setup() {
fi
# Quote $echo for shipping.
- if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
- case $0 in
- [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
- *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
+ if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
+ case $progpath in
+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
esac
qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
else
@@ -3625,15 +4609,230 @@ static const void *lt_preloaded_setup() {
# win32 will think the script is a binary if it has
# a .exe suffix, so we strip it off here.
case $output in
- *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
+ *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
esac
# test for cygwin because mv fails w/o .exe extensions
case $host in
- *cygwin*) exeext=.exe ;;
+ *cygwin*)
+ exeext=.exe
+ outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
*) exeext= ;;
esac
+ case $host in
+ *cygwin* | *mingw* )
+ cwrappersource=`$echo ${objdir}/lt-${output}.c`
+ cwrapper=`$echo ${output}.exe`
+ $rm $cwrappersource $cwrapper
+ trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+ cat > $cwrappersource <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+ Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+
+ The $output program cannot be directly executed until all the libtool
+ libraries that it depends on are installed.
+
+ This wrapper executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "/bin/sh $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat >> $cwrappersource<<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef DIR_SEPARATOR
+#define DIR_SEPARATOR '/'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+ defined (__OS2__)
+#define HAVE_DOS_BASED_FILE_SYSTEM
+#ifndef DIR_SEPARATOR_2
+#define DIR_SEPARATOR_2 '\\'
+#endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+ if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+const char *program_name = NULL;
+
+void * xmalloc (size_t num);
+char * xstrdup (const char *string);
+char * basename (const char *name);
+char * fnqualify(const char *path);
+char * strendzap(char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+
+int
+main (int argc, char *argv[])
+{
+ char **newargz;
+ int i;
+
+ program_name = (char *) xstrdup ((char *) basename (argv[0]));
+ newargz = XMALLOC(char *, argc+2);
+EOF
+
+ cat >> $cwrappersource <<EOF
+ newargz[0] = "$SHELL";
+EOF
+
+ cat >> $cwrappersource <<"EOF"
+ newargz[1] = fnqualify(argv[0]);
+ /* we know the script has the same name, without the .exe */
+ /* so make sure newargz[1] doesn't end in .exe */
+ strendzap(newargz[1],".exe");
+ for (i = 1; i < argc; i++)
+ newargz[i+1] = xstrdup(argv[i]);
+ newargz[argc+1] = NULL;
+EOF
+
+ cat >> $cwrappersource <<EOF
+ execv("$SHELL",newargz);
+EOF
+
+ cat >> $cwrappersource <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+ void * p = (void *) malloc (num);
+ if (!p)
+ lt_fatal ("Memory exhausted");
+
+ return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
+;
+}
+
+char *
+basename (const char *name)
+{
+ const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ /* Skip over the disk name in MSDOS pathnames. */
+ if (isalpha (name[0]) && name[1] == ':')
+ name += 2;
+#endif
+
+ for (base = name; *name; name++)
+ if (IS_DIR_SEPARATOR (*name))
+ base = name + 1;
+ return (char *) base;
+}
+
+char *
+fnqualify(const char *path)
+{
+ size_t size;
+ char *p;
+ char tmp[LT_PATHMAX + 1];
+
+ assert(path != NULL);
+
+ /* Is it qualified already? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ if (isalpha (path[0]) && path[1] == ':')
+ return xstrdup (path);
+#endif
+ if (IS_DIR_SEPARATOR (path[0]))
+ return xstrdup (path);
+
+ /* prepend the current directory */
+ /* doesn't handle '~' */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
+ p = XMALLOC(char, size);
+ sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
+ return p;
+}
+
+char *
+strendzap(char *str, const char *pat)
+{
+ size_t len, patlen;
+
+ assert(str != NULL);
+ assert(pat != NULL);
+
+ len = strlen(str);
+ patlen = strlen(pat);
+
+ if (patlen <= len)
+ {
+ str += len - patlen;
+ if (strcmp(str, pat) == 0)
+ *str = '\0';
+ }
+ return str;
+}
+
+static void
+lt_error_core (int exit_status, const char * mode,
+ const char * message, va_list ap)
+{
+ fprintf (stderr, "%s: %s: ", program_name, mode);
+ vfprintf (stderr, message, ap);
+ fprintf (stderr, ".\n");
+
+ if (exit_status >= 0)
+ exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+ va_list ap;
+ va_start (ap, message);
+ lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
+ va_end (ap);
+}
+EOF
+ # we should really use a build-platform specific compiler
+ # here, but OTOH, the wrappers (shell script and this C one)
+ # are only useful if you want to execute the "real" binary.
+ # Since the "real" binary is built for $host, then this
+ # wrapper might as well be built for $host, too.
+ $run $LTCC -s -o $cwrapper $cwrappersource
+ ;;
+ esac
$rm $output
- trap "$rm $output; exit 1" 1 2 15
+ trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
$echo > $output "\
#! $SHELL
@@ -3649,12 +4848,12 @@ static const void *lt_preloaded_setup() {
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
-Xsed="${SED}"' -e 1s/^X//'
+Xsed='${SED} -e 1s/^X//'
sed_quote_subst='$sed_quote_subst'
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
-if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
relink_command=\"$relink_command\"
@@ -3709,7 +4908,7 @@ else
"
if test "$fast_install" = yes; then
- echo >> $output "\
+ $echo >> $output "\
program=lt-'$outputname'$exeext
progdir=\"\$thisdir/$objdir\"
@@ -3725,7 +4924,7 @@ else
$rm \"\$progdir/\$file\"
fi"
- echo >> $output "\
+ $echo >> $output "\
# relink executable if necessary
if test -n \"\$relink_command\"; then
@@ -3733,7 +4932,7 @@ else
else
$echo \"\$relink_command_output\" >&2
$rm \"\$progdir/\$file\"
- exit 1
+ exit $EXIT_FAILURE
fi
fi
@@ -3743,13 +4942,13 @@ else
$rm \"\$progdir/\$file\"
fi"
else
- echo >> $output "\
+ $echo >> $output "\
program='$outputname'
progdir=\"\$thisdir/$objdir\"
"
fi
- echo >> $output "\
+ $echo >> $output "\
if test -f \"\$progdir/\$program\"; then"
@@ -3760,7 +4959,7 @@ else
$shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
# Some systems cannot cope with colon-terminated $shlibpath_var
- # The second colon is a workaround for a bug in BeOS R4 ${SED}
+ # The second colon is a workaround for a bug in BeOS R4 sed
$shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
export $shlibpath_var
@@ -3780,14 +4979,6 @@ else
# Run the actual program with our arguments.
"
case $host in
- # win32 systems need to use the prog path for dll
- # lookup to work
- *-*-cygwin* | *-*-pw32*)
- $echo >> $output "\
- exec \$progdir/\$program \${1+\"\$@\"}
-"
- ;;
-
# Backslashes separate directories on plain windows
*-*-mingw | *-*-os2*)
$echo >> $output "\
@@ -3797,30 +4988,26 @@ else
*)
$echo >> $output "\
- # Export the path to the program.
- PATH=\"\$progdir:\$PATH\"
- export PATH
-
- exec \$program \${1+\"\$@\"}
+ exec \$progdir/\$program \${1+\"\$@\"}
"
;;
esac
$echo >> $output "\
\$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
- exit 1
+ exit $EXIT_FAILURE
fi
else
# The program doesn't exist.
\$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
\$echo \"This script is just a wrapper for \$program.\" 1>&2
- echo \"See the $PACKAGE documentation for more information.\" 1>&2
- exit 1
+ $echo \"See the $PACKAGE documentation for more information.\" 1>&2
+ exit $EXIT_FAILURE
fi
fi\
"
chmod +x $output
fi
- exit 0
+ exit $EXIT_SUCCESS
;;
esac
@@ -3836,74 +5023,86 @@ fi\
oldobjs="$libobjs_save"
build_libtool_libs=no
else
- oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
+ oldobjs="$old_deplibs $non_pic_objects"
fi
addlibs="$old_convenience"
fi
if test -n "$addlibs"; then
gentop="$output_objdir/${outputname}x"
- $show "${rm}r $gentop"
- $run ${rm}r "$gentop"
- $show "mkdir $gentop"
- $run mkdir "$gentop"
- status=$?
- if test $status -ne 0 && test ! -d "$gentop"; then
- exit $status
- fi
generated="$generated $gentop"
- # Add in members from convenience archives.
- for xlib in $addlibs; do
- # Extract the objects.
- case $xlib in
- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
- *) xabs=`pwd`"/$xlib" ;;
- esac
- xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
- xdir="$gentop/$xlib"
-
- $show "${rm}r $xdir"
- $run ${rm}r "$xdir"
- $show "mkdir $xdir"
- $run mkdir "$xdir"
- status=$?
- if test $status -ne 0 && test ! -d "$xdir"; then
- exit $status
- fi
- $show "(cd $xdir && $AR x $xabs)"
- $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
-
- oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
- done
+ func_extract_archives $gentop $addlibs
+ oldobjs="$oldobjs $func_extract_archives_result"
fi
# Do each command in the archive commands.
if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
- eval cmds=\"$old_archive_from_new_cmds\"
+ cmds=$old_archive_from_new_cmds
else
- # Ensure that we have .o objects in place in case we decided
- # not to build a shared library, and have fallen back to building
- # static libs even though --disable-static was passed!
- for oldobj in $oldobjs; do
- if test ! -f $oldobj; then
- xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$oldobj"; then
- xdir="."
+ eval cmds=\"$old_archive_cmds\"
+
+ if len=`expr "X$cmds" : ".*"` &&
+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ cmds=$old_archive_cmds
+ else
+ # the command line is too long to link in one step, link in parts
+ $echo "using piecewise archive linking..."
+ save_RANLIB=$RANLIB
+ RANLIB=:
+ objlist=
+ concat_cmds=
+ save_oldobjs=$oldobjs
+ # GNU ar 2.10+ was changed to match POSIX; thus no paths are
+ # encoded into archives. This makes 'ar r' malfunction in
+ # this piecewise linking case whenever conflicting object
+ # names appear in distinct ar calls; check, warn and compensate.
+ if (for obj in $save_oldobjs
+ do
+ $echo "X$obj" | $Xsed -e 's%^.*/%%'
+ done | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
+ $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
+ AR_FLAGS=cq
+ fi
+ # Is there a better way of finding the last object in the list?
+ for obj in $save_oldobjs
+ do
+ last_oldobj=$obj
+ done
+ for obj in $save_oldobjs
+ do
+ oldobjs="$objlist $obj"
+ objlist="$objlist $obj"
+ eval test_cmds=\"$old_archive_cmds\"
+ if len=`expr "X$test_cmds" : ".*"` &&
+ test "$len" -le "$max_cmd_len"; then
+ :
else
- xdir="$xdir"
+ # the above command should be used before it gets too long
+ oldobjs=$objlist
+ if test "$obj" = "$last_oldobj" ; then
+ RANLIB=$save_RANLIB
+ fi
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+ objlist=
fi
- baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
- obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
- $show "(cd $xdir && ${LN_S} $obj $baseobj)"
- $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
+ done
+ RANLIB=$save_RANLIB
+ oldobjs=$objlist
+ if test "X$oldobjs" = "X" ; then
+ eval cmds=\"\$concat_cmds\"
+ else
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
fi
- done
-
- eval cmds=\"$old_archive_cmds\"
+ fi
fi
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
+ eval cmd=\"$cmd\"
IFS="$save_ifs"
$show "$cmd"
$run eval "$cmd" || exit $?
@@ -3935,8 +5134,12 @@ fi\
fi
done
# Quote the link command for shipping.
- relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args)"
+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ if test "$hardcode_automatic" = yes ; then
+ relink_command=
+ fi
+
# Only create the output if not a dry run.
if test -z "$run"; then
@@ -3955,7 +5158,7 @@ fi\
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
if test -z "$libdir"; then
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
newdependency_libs="$newdependency_libs $libdir/$name"
;;
@@ -3969,7 +5172,7 @@ fi\
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
if test -z "$libdir"; then
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
newdlfiles="$newdlfiles $libdir/$name"
done
@@ -3980,17 +5183,36 @@ fi\
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
if test -z "$libdir"; then
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
newdlprefiles="$newdlprefiles $libdir/$name"
done
dlprefiles="$newdlprefiles"
+ else
+ newdlfiles=
+ for lib in $dlfiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlfiles="$newdlfiles $abs"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlprefiles="$newdlprefiles $abs"
+ done
+ dlprefiles="$newdlprefiles"
fi
$rm $output
# place dlname in correct position for cygwin
tdlname=$dlname
case $host,$output,$installed,$module,$dlname in
- *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
esac
$echo > $output "\
# $outputname - a libtool library file
@@ -4019,13 +5241,16 @@ revision=$revision
# Is this an already installed library?
installed=$installed
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
# Files to dlopen/dlpreopen
dlopen='$dlfiles'
dlpreopen='$dlprefiles'
# Directory that this library needs to be installed in:
libdir='$install_libdir'"
- if test "$installed" = no && test $need_relink = yes; then
+ if test "$installed" = no && test "$need_relink" = yes; then
$echo >> $output "\
relink_command=\"$relink_command\""
fi
@@ -4038,7 +5263,7 @@ relink_command=\"$relink_command\""
$run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
;;
esac
- exit 0
+ exit $EXIT_SUCCESS
;;
# libtool install mode
@@ -4127,13 +5352,13 @@ relink_command=\"$relink_command\""
if test -z "$install_prog"; then
$echo "$modename: you must specify an install program" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
if test -n "$prev"; then
$echo "$modename: the \`$prev' option requires an argument" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
if test -z "$files"; then
@@ -4143,7 +5368,7 @@ relink_command=\"$relink_command\""
$echo "$modename: you must specify a destination" 1>&2
fi
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# Strip any trailing slash from the destination.
@@ -4161,10 +5386,10 @@ relink_command=\"$relink_command\""
# Not a directory, so check to see that there is only one file specified.
set dummy $files
- if test $# -gt 2; then
+ if test "$#" -gt 2; then
$echo "$modename: \`$dest' is not a directory" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
fi
case $destdir in
@@ -4176,7 +5401,7 @@ relink_command=\"$relink_command\""
*)
$echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
done
@@ -4201,11 +5426,11 @@ relink_command=\"$relink_command\""
*.la)
# Check to see that this really is a libtool archive.
- if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
else
$echo "$modename: \`$file' is not a valid libtool archive" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
library_names=
@@ -4236,12 +5461,33 @@ relink_command=\"$relink_command\""
dir="$dir$objdir"
if test -n "$relink_command"; then
+ # Determine the prefix the user has applied to our future dir.
+ inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
+
+ # Don't allow the user to place us outside of our expected
+ # location b/c this prevents finding dependent libraries that
+ # are installed to the same prefix.
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+ if test "$inst_prefix_dir" = "$destdir"; then
+ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
+ relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+ else
+ relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
+ fi
+
$echo "$modename: warning: relinking \`$file'" 1>&2
$show "$relink_command"
if $run eval "$relink_command"; then :
else
$echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
- continue
+ exit $EXIT_FAILURE
fi
fi
@@ -4263,7 +5509,7 @@ relink_command=\"$relink_command\""
$run eval "$striplib $destdir/$realname" || exit $?
fi
- if test $# -gt 0; then
+ if test "$#" -gt 0; then
# Delete the old symlinks, and create new ones.
for linkname
do
@@ -4276,10 +5522,11 @@ relink_command=\"$relink_command\""
# Do each command in the postinstall commands.
lib="$destdir/$realname"
- eval cmds=\"$postinstall_cmds\"
+ cmds=$postinstall_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || exit $?
done
@@ -4319,7 +5566,7 @@ relink_command=\"$relink_command\""
*)
$echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
@@ -4337,7 +5584,7 @@ relink_command=\"$relink_command\""
$show "$install_prog $staticobj $staticdest"
$run eval "$install_prog \$staticobj \$staticdest" || exit $?
fi
- exit 0
+ exit $EXIT_SUCCESS
;;
*)
@@ -4349,29 +5596,49 @@ relink_command=\"$relink_command\""
destfile="$destdir/$destfile"
fi
+ # If the file is missing, and there is a .exe on the end, strip it
+ # because it is most likely a libtool script we actually want to
+ # install
+ stripped_ext=""
+ case $file in
+ *.exe)
+ if test ! -f "$file"; then
+ file=`$echo $file|${SED} 's,.exe$,,'`
+ stripped_ext=".exe"
+ fi
+ ;;
+ esac
+
# Do a test to see if this is really a libtool program.
case $host in
*cygwin*|*mingw*)
- wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
+ wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
;;
*)
wrapper=$file
;;
esac
- if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
+ if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
notinst_deplibs=
relink_command=
+ # To insure that "foo" is sourced, and not "foo.exe",
+ # finese the cygwin/MSYS system by explicitly sourcing "foo."
+ # which disallows the automatic-append-.exe behavior.
+ case $build in
+ *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
+ *) wrapperdot=${wrapper} ;;
+ esac
# If there is no directory component, then add one.
case $file in
- */* | *\\*) . $wrapper ;;
- *) . ./$wrapper ;;
+ */* | *\\*) . ${wrapperdot} ;;
+ *) . ./${wrapperdot} ;;
esac
# Check the variables that should have been set.
if test -z "$notinst_deplibs"; then
$echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
finalize=yes
@@ -4393,10 +5660,17 @@ relink_command=\"$relink_command\""
done
relink_command=
+ # To insure that "foo" is sourced, and not "foo.exe",
+ # finese the cygwin/MSYS system by explicitly sourcing "foo."
+ # which disallows the automatic-append-.exe behavior.
+ case $build in
+ *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
+ *) wrapperdot=${wrapper} ;;
+ esac
# If there is no directory component, then add one.
case $file in
- */* | *\\*) . $wrapper ;;
- *) . ./$wrapper ;;
+ */* | *\\*) . ${wrapperdot} ;;
+ *) . ./${wrapperdot} ;;
esac
outputname=
@@ -4405,12 +5679,16 @@ relink_command=\"$relink_command\""
tmpdir="/tmp"
test -n "$TMPDIR" && tmpdir="$TMPDIR"
tmpdir="$tmpdir/libtool-$$"
- if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
+ save_umask=`umask`
+ umask 0077
+ if $mkdir "$tmpdir"; then
+ umask $save_umask
else
+ umask $save_umask
$echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
continue
fi
- file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
outputname="$tmpdir/$file"
# Replace the output file specification.
relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
@@ -4428,14 +5706,14 @@ relink_command=\"$relink_command\""
fi
else
# Install the binary that we compiled earlier.
- file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+ file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
fi
fi
# remove .exe since cygwin /usr/bin/install will append another
# one anyways
case $install_prog,$host in
- /usr/bin/install*,*cygwin*)
+ */usr/bin/install*,*cygwin*)
case $file:$destfile in
*.exe:*.exe)
# this is ok
@@ -4444,7 +5722,7 @@ relink_command=\"$relink_command\""
destfile=$destfile.exe
;;
*:*.exe)
- destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
+ destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
;;
esac
;;
@@ -4465,16 +5743,17 @@ relink_command=\"$relink_command\""
$show "$install_prog $file $oldlib"
$run eval "$install_prog \$file \$oldlib" || exit $?
- if test -n "$stripme" && test -n "$striplib"; then
+ if test -n "$stripme" && test -n "$old_striplib"; then
$show "$old_striplib $oldlib"
$run eval "$old_striplib $oldlib" || exit $?
fi
# Do each command in the postinstall commands.
- eval cmds=\"$old_postinstall_cmds\"
+ cmds=$old_postinstall_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || exit $?
done
@@ -4488,9 +5767,9 @@ relink_command=\"$relink_command\""
if test -n "$current_libdirs"; then
# Maybe just do a dry run.
test -n "$run" && current_libdirs=" -n$current_libdirs"
- exec_cmd='$SHELL $0 --finish$current_libdirs'
+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
else
- exit 0
+ exit $EXIT_SUCCESS
fi
;;
@@ -4509,10 +5788,11 @@ relink_command=\"$relink_command\""
for libdir in $libdirs; do
if test -n "$finish_cmds"; then
# Do each command in the finish commands.
- eval cmds=\"$finish_cmds\"
+ cmds=$finish_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd" || admincmds="$admincmds
$cmd"
@@ -4529,43 +5809,43 @@ relink_command=\"$relink_command\""
fi
# Exit here if they wanted silent mode.
- test "$show" = ":" && exit 0
+ test "$show" = : && exit $EXIT_SUCCESS
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
+ $echo "----------------------------------------------------------------------"
+ $echo "Libraries have been installed in:"
for libdir in $libdirs; do
- echo " $libdir"
+ $echo " $libdir"
done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
+ $echo
+ $echo "If you ever happen to want to link against installed libraries"
+ $echo "in a given directory, LIBDIR, you must either use libtool, and"
+ $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
+ $echo "flag during linking and do at least one of the following:"
if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
+ $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
+ $echo " during execution"
fi
if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
+ $echo " - add LIBDIR to the \`$runpath_var' environment variable"
+ $echo " during linking"
fi
if test -n "$hardcode_libdir_flag_spec"; then
libdir=LIBDIR
eval flag=\"$hardcode_libdir_flag_spec\"
- echo " - use the \`$flag' linker flag"
+ $echo " - use the \`$flag' linker flag"
fi
if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
+ $echo " - have your system administrator run these commands:$admincmds"
fi
if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+ $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
- exit 0
+ $echo
+ $echo "See any operating system documentation about shared libraries for"
+ $echo "more information, such as the ld(1) and ld.so(8) manual pages."
+ $echo "----------------------------------------------------------------------"
+ exit $EXIT_SUCCESS
;;
# libtool execute mode
@@ -4577,7 +5857,7 @@ relink_command=\"$relink_command\""
if test -z "$cmd"; then
$echo "$modename: you must specify a COMMAND" 1>&2
$echo "$help"
- exit 1
+ exit $EXIT_FAILURE
fi
# Handle -dlopen flags immediately.
@@ -4585,18 +5865,18 @@ relink_command=\"$relink_command\""
if test ! -f "$file"; then
$echo "$modename: \`$file' is not a file" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
dir=
case $file in
*.la)
# Check to see that this really is a libtool archive.
- if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
else
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
# Read the libtool library.
@@ -4623,7 +5903,7 @@ relink_command=\"$relink_command\""
dir="$dir/$objdir"
else
$echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
;;
@@ -4663,7 +5943,7 @@ relink_command=\"$relink_command\""
-*) ;;
*)
# Do a test to see if this is really a libtool program.
- if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
# If there is no directory component, then add one.
case $file in
*/* | *\\*) . $file ;;
@@ -4686,7 +5966,7 @@ relink_command=\"$relink_command\""
eval "export $shlibpath_var"
fi
- # Restore saved enviroment variables
+ # Restore saved environment variables
if test "${save_LC_ALL+set}" = set; then
LC_ALL="$save_LC_ALL"; export LC_ALL
fi
@@ -4703,7 +5983,7 @@ relink_command=\"$relink_command\""
$echo "export $shlibpath_var"
fi
$echo "$cmd$args"
- exit 0
+ exit $EXIT_SUCCESS
fi
;;
@@ -4731,24 +6011,25 @@ relink_command=\"$relink_command\""
if test -z "$rm"; then
$echo "$modename: you must specify an RM program" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
rmdirs=
+ origobjdir="$objdir"
for file in $files; do
dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
if test "X$dir" = "X$file"; then
dir=.
- objdir="$objdir"
+ objdir="$origobjdir"
else
- objdir="$dir/$objdir"
+ objdir="$dir/$origobjdir"
fi
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- test $mode = uninstall && objdir="$dir"
+ test "$mode" = uninstall && objdir="$dir"
# Remember objdir for removal later, being careful to avoid duplicates
- if test $mode = clean; then
+ if test "$mode" = clean; then
case " $rmdirs " in
*" $objdir "*) ;;
*) rmdirs="$rmdirs $objdir" ;;
@@ -4772,7 +6053,7 @@ relink_command=\"$relink_command\""
case $name in
*.la)
# Possibly a libtool archive, so verify it.
- if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
. $dir/$name
# Delete the libtool libraries and symlinks.
@@ -4780,18 +6061,19 @@ relink_command=\"$relink_command\""
rmfiles="$rmfiles $objdir/$n"
done
test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
- test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+ test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
- if test $mode = uninstall; then
+ if test "$mode" = uninstall; then
if test -n "$library_names"; then
# Do each command in the postuninstall commands.
- eval cmds=\"$postuninstall_cmds\"
+ cmds=$postuninstall_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd"
- if test $? != 0 && test "$rmforce" != yes; then
+ if test "$?" -ne 0 && test "$rmforce" != yes; then
exit_status=1
fi
done
@@ -4800,13 +6082,14 @@ relink_command=\"$relink_command\""
if test -n "$old_library"; then
# Do each command in the old_postuninstall commands.
- eval cmds=\"$old_postuninstall_cmds\"
+ cmds=$old_postuninstall_cmds
save_ifs="$IFS"; IFS='~'
for cmd in $cmds; do
IFS="$save_ifs"
+ eval cmd=\"$cmd\"
$show "$cmd"
$run eval "$cmd"
- if test $? != 0 && test "$rmforce" != yes; then
+ if test "$?" -ne 0 && test "$rmforce" != yes; then
exit_status=1
fi
done
@@ -4818,22 +6101,52 @@ relink_command=\"$relink_command\""
;;
*.lo)
- if test "$build_old_libs" = yes; then
- oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
- rmfiles="$rmfiles $dir/$oldobj"
+ # Possibly a libtool object, so verify it.
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+
+ # Read the .lo file
+ . $dir/$name
+
+ # Add PIC object to the list of files to remove.
+ if test -n "$pic_object" \
+ && test "$pic_object" != none; then
+ rmfiles="$rmfiles $dir/$pic_object"
+ fi
+
+ # Add non-PIC object to the list of files to remove.
+ if test -n "$non_pic_object" \
+ && test "$non_pic_object" != none; then
+ rmfiles="$rmfiles $dir/$non_pic_object"
+ fi
fi
;;
*)
- # Do a test to see if this is a libtool program.
- if test $mode = clean &&
- (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- relink_command=
- . $dir/$file
+ if test "$mode" = clean ; then
+ noexename=$name
+ case $file in
+ *.exe)
+ file=`$echo $file|${SED} 's,.exe$,,'`
+ noexename=`$echo $name|${SED} 's,.exe$,,'`
+ # $file with .exe has already been added to rmfiles,
+ # add $file without .exe
+ rmfiles="$rmfiles $file"
+ ;;
+ esac
+ # Do a test to see if this is a libtool program.
+ if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ relink_command=
+ . $dir/$noexename
- rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
- if test "$fast_install" = yes && test -n "$relink_command"; then
- rmfiles="$rmfiles $objdir/lt-$name"
+ # note $name still contains .exe if it was in $file originally
+ # as does the version of $file that was added into $rmfiles
+ rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+ if test "$fast_install" = yes && test -n "$relink_command"; then
+ rmfiles="$rmfiles $objdir/lt-$name"
+ fi
+ if test "X$noexename" != "X$name" ; then
+ rmfiles="$rmfiles $objdir/lt-${noexename}.c"
+ fi
fi
fi
;;
@@ -4841,6 +6154,7 @@ relink_command=\"$relink_command\""
$show "$rm $rmfiles"
$run $rm $rmfiles || exit_status=1
done
+ objdir="$origobjdir"
# Try to remove the ${objdir}s in the directories where we deleted files
for dir in $rmdirs; do
@@ -4856,20 +6170,20 @@ relink_command=\"$relink_command\""
"")
$echo "$modename: you must specify a MODE" 1>&2
$echo "$generic_help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
if test -z "$exec_cmd"; then
$echo "$modename: invalid operation mode \`$mode'" 1>&2
$echo "$generic_help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
fi
fi # test -z "$show_help"
if test -n "$exec_cmd"; then
eval exec $exec_cmd
- exit 1
+ exit $EXIT_FAILURE
fi
# We need to display help for each of the modes.
@@ -4888,6 +6202,7 @@ Provide generalized library-building support services.
--mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
--quiet same as \`--silent'
--silent don't print informational messages
+ --tag=TAG use configuration variables from tag TAG
--version print version information
MODE must be one of the following:
@@ -4901,8 +6216,10 @@ MODE must be one of the following:
uninstall remove libraries from an installed directory
MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
-a more detailed description of MODE."
- exit 0
+a more detailed description of MODE.
+
+Report bugs to <bug-libtool@gnu.org>."
+ exit $EXIT_SUCCESS
;;
clean)
@@ -5013,6 +6330,9 @@ The following components of LINK-COMMAND are treated specially:
-no-install link a not-installable executable
-no-undefined declare that a library does not refer to external symbols
-o OUTPUT-FILE create OUTPUT-FILE from the specified objects
+ -objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
-release RELEASE specify package release information
-rpath LIBDIR the created library will eventually be installed in LIBDIR
-R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
@@ -5054,14 +6374,34 @@ Otherwise, only FILE itself is deleted using RM."
*)
$echo "$modename: invalid operation mode \`$mode'" 1>&2
$echo "$help" 1>&2
- exit 1
+ exit $EXIT_FAILURE
;;
esac
-echo
+$echo
$echo "Try \`$modename --help' for more information about other modes."
-exit 0
+exit $EXIT_SUCCESS
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries. Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them. This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration. But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
# Local Variables:
# mode:shell-script
diff --git a/maketables.c b/maketables.c
index bf88531..f1c7b9a 100644
--- a/maketables.c
+++ b/maketables.c
@@ -11,26 +11,32 @@ Written by: Philip Hazel <ph10@cam.ac.uk>
Copyright (c) 1997-2003 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
-
-See the file Tech.Notes for some information on the internals.
*/
diff --git a/pcre-config.in b/pcre-config.in
index 8daded9..30d66ce 100644
--- a/pcre-config.in
+++ b/pcre-config.in
@@ -12,6 +12,13 @@ if test $# -eq 0; then
exit 1
fi
+libR=
+case `uname -s` in
+ *SunOS*)
+ libR=" -R@libdir@"
+ ;;
+esac
+
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -45,10 +52,10 @@ while test $# -gt 0; do
echo $includes
;;
--libs-posix)
- echo -L@libdir@ -lpcreposix -lpcre
+ echo -L@libdir@$libR -lpcreposix -lpcre
;;
--libs)
- echo -L@libdir@ -lpcre
+ echo -L@libdir@$libR -lpcre
;;
*)
echo "${usage}" 1>&2
diff --git a/pcre.c b/pcre.c
index 5afca10..c495ec0 100644
--- a/pcre.c
+++ b/pcre.c
@@ -9,26 +9,34 @@ the file Tech.Notes for some information on the internals.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997-2003 University of Cambridge
+ Copyright (c) 1997-2004 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
*/
@@ -51,14 +59,14 @@ C headers, and the external pcre header. */
#include "internal.h"
+/* If Unicode Property support is wanted, include a private copy of the
+function that does it, and the table that translates names to numbers. */
-/* Allow compilation as C++ source code, should anybody want to do that. */
-
-#ifdef __cplusplus
-#define class pcre_class
+#ifdef SUPPORT_UCP
+#include "ucp.c"
+#include "ucptypetable.c"
#endif
-
/* Maximum number of items on the nested bracket stacks at compile time. This
applies to the nesting of all kinds of parentheses. It does not limit
un-nested, non-capturing parentheses. This number can be made bigger if
@@ -75,14 +83,6 @@ because the offset vector is always a multiple of 3 long. */
#define REC_STACK_SAVE_MAX 30
-/* The number of bytes in a literal character string above which we can't add
-any more is set at 250 in order to allow for UTF-8 characters. (In theory it
-could be 255 when UTF-8 support is excluded, but that means that some of the
-test output would be different, which just complicates things.) */
-
-#define MAXLIT 250
-
-
/* The maximum remaining length of subject we are prepared to search for a
req_byte match. */
@@ -106,16 +106,16 @@ is invalid. */
#if !EBCDIC /* This is the "normal" table for ASCII systems */
static const short int escapes[] = {
- 0, 0, 0, 0, 0, 0, 0, 0, /* 0 - 7 */
- 0, 0, ':', ';', '<', '=', '>', '?', /* 8 - ? */
- '@', -ESC_A, -ESC_B, -ESC_C, -ESC_D, -ESC_E, 0, -ESC_G, /* @ - G */
- 0, 0, 0, 0, 0, 0, 0, 0, /* H - O */
- 0, -ESC_Q, 0, -ESC_S, 0, 0, 0, -ESC_W, /* P - W */
- 0, 0, -ESC_Z, '[', '\\', ']', '^', '_', /* X - _ */
- '`', 7, -ESC_b, 0, -ESC_d, ESC_e, ESC_f, 0, /* ` - g */
- 0, 0, 0, 0, 0, 0, ESC_n, 0, /* h - o */
- 0, 0, ESC_r, -ESC_s, ESC_tee, 0, 0, -ESC_w, /* p - w */
- 0, 0, -ESC_z /* x - z */
+ 0, 0, 0, 0, 0, 0, 0, 0, /* 0 - 7 */
+ 0, 0, ':', ';', '<', '=', '>', '?', /* 8 - ? */
+ '@', -ESC_A, -ESC_B, -ESC_C, -ESC_D, -ESC_E, 0, -ESC_G, /* @ - G */
+ 0, 0, 0, 0, 0, 0, 0, 0, /* H - O */
+-ESC_P, -ESC_Q, 0, -ESC_S, 0, 0, 0, -ESC_W, /* P - W */
+-ESC_X, 0, -ESC_Z, '[', '\\', ']', '^', '_', /* X - _ */
+ '`', 7, -ESC_b, 0, -ESC_d, ESC_e, ESC_f, 0, /* ` - g */
+ 0, 0, 0, 0, 0, 0, ESC_n, 0, /* h - o */
+-ESC_p, 0, ESC_r, -ESC_s, ESC_tee, 0, 0, -ESC_w, /* p - w */
+ 0, 0, -ESC_z /* x - z */
};
#else /* This is the "abnormal" table for EBCDIC systems */
@@ -129,7 +129,7 @@ static const short int escapes[] = {
/* 78 */ 0, '`', ':', '#', '@', '\'', '=', '"',
/* 80 */ 0, 7, -ESC_b, 0, -ESC_d, ESC_e, ESC_f, 0,
/* 88 */ 0, 0, 0, '{', 0, 0, 0, 0,
-/* 90 */ 0, 0, 0, 'l', 0, ESC_n, 0, 0,
+/* 90 */ 0, 0, 0, 'l', 0, ESC_n, 0, -ESC_p,
/* 98 */ 0, ESC_r, 0, '}', 0, 0, 0, 0,
/* A0 */ 0, '~', -ESC_s, ESC_tee, 0, 0, -ESC_w, 0,
/* A8 */ 0,-ESC_z, 0, 0, 0, '[', 0, 0,
@@ -137,9 +137,9 @@ static const short int escapes[] = {
/* B8 */ 0, 0, 0, 0, 0, ']', '=', '-',
/* C0 */ '{',-ESC_A, -ESC_B, -ESC_C, -ESC_D,-ESC_E, 0, -ESC_G,
/* C8 */ 0, 0, 0, 0, 0, 0, 0, 0,
-/* D0 */ '}', 0, 0, 0, 0, 0, 0, 0,
+/* D0 */ '}', 0, 0, 0, 0, 0, 0, -ESC_P,
/* D8 */-ESC_Q, 0, 0, 0, 0, 0, 0, 0,
-/* E0 */ '\\', 0, -ESC_S, 0, 0, 0, -ESC_W, 0,
+/* E0 */ '\\', 0, -ESC_S, 0, 0, 0, -ESC_W, -ESC_X,
/* E8 */ 0,-ESC_Z, 0, 0, 0, 0, 0, 0,
/* F0 */ 0, 0, 0, 0, 0, 0, 0, 0,
/* F8 */ 0, 0, 0, 0, 0, 0, 0, 0
@@ -562,6 +562,86 @@ return XSTRING(PCRE_MAJOR) "." XSTRING(PCRE_MINOR) " " XSTRING(PCRE_DATE);
/*************************************************
+* Flip bytes in an integer *
+*************************************************/
+
+/* This function is called when the magic number in a regex doesn't match in
+order to flip its bytes to see if we are dealing with a pattern that was
+compiled on a host of different endianness. If so, this function is used to
+flip other byte values.
+
+Arguments:
+ value the number to flip
+ n the number of bytes to flip (assumed to be 2 or 4)
+
+Returns: the flipped value
+*/
+
+static long int
+byteflip(long int value, int n)
+{
+if (n == 2) return ((value & 0x00ff) << 8) | ((value & 0xff00) >> 8);
+return ((value & 0x000000ff) << 24) |
+ ((value & 0x0000ff00) << 8) |
+ ((value & 0x00ff0000) >> 8) |
+ ((value & 0xff000000) >> 24);
+}
+
+
+
+/*************************************************
+* Test for a byte-flipped compiled regex *
+*************************************************/
+
+/* This function is called from pce_exec() and also from pcre_fullinfo(). Its
+job is to test whether the regex is byte-flipped - that is, it was compiled on
+a system of opposite endianness. The function is called only when the native
+MAGIC_NUMBER test fails. If the regex is indeed flipped, we flip all the
+relevant values into a different data block, and return it.
+
+Arguments:
+ re points to the regex
+ study points to study data, or NULL
+ internal_re points to a new regex block
+ internal_study points to a new study block
+
+Returns: the new block if is is indeed a byte-flipped regex
+ NULL if it is not
+*/
+
+static real_pcre *
+try_flipped(const real_pcre *re, real_pcre *internal_re,
+ const pcre_study_data *study, pcre_study_data *internal_study)
+{
+if (byteflip(re->magic_number, sizeof(re->magic_number)) != MAGIC_NUMBER)
+ return NULL;
+
+*internal_re = *re; /* To copy other fields */
+internal_re->size = byteflip(re->size, sizeof(re->size));
+internal_re->options = byteflip(re->options, sizeof(re->options));
+internal_re->top_bracket = byteflip(re->top_bracket, sizeof(re->top_bracket));
+internal_re->top_backref = byteflip(re->top_backref, sizeof(re->top_backref));
+internal_re->first_byte = byteflip(re->first_byte, sizeof(re->first_byte));
+internal_re->req_byte = byteflip(re->req_byte, sizeof(re->req_byte));
+internal_re->name_table_offset = byteflip(re->name_table_offset,
+ sizeof(re->name_table_offset));
+internal_re->name_entry_size = byteflip(re->name_entry_size,
+ sizeof(re->name_entry_size));
+internal_re->name_count = byteflip(re->name_count, sizeof(re->name_count));
+
+if (study != NULL)
+ {
+ *internal_study = *study; /* To copy other fields */
+ internal_study->size = byteflip(study->size, sizeof(study->size));
+ internal_study->options = byteflip(study->options, sizeof(study->options));
+ }
+
+return internal_re;
+}
+
+
+
+/*************************************************
* (Obsolete) Return info about compiled pattern *
*************************************************/
@@ -573,7 +653,7 @@ at the low end of it, and so even on 16-bit systems this will still be OK.
Therefore, I haven't changed the API for pcre_info().
Arguments:
- external_re points to compiled code
+ argument_re points to compiled code
optptr where to pass back the options
first_byte where to pass back the first character,
or -1 if multiline and all branches start ^,
@@ -584,11 +664,16 @@ Returns: number of capturing subpatterns
*/
EXPORT int
-pcre_info(const pcre *external_re, int *optptr, int *first_byte)
+pcre_info(const pcre *argument_re, int *optptr, int *first_byte)
{
-const real_pcre *re = (const real_pcre *)external_re;
+real_pcre internal_re;
+const real_pcre *re = (const real_pcre *)argument_re;
if (re == NULL) return PCRE_ERROR_NULL;
-if (re->magic_number != MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;
+if (re->magic_number != MAGIC_NUMBER)
+ {
+ re = try_flipped(re, &internal_re, NULL, NULL);
+ if (re == NULL) return PCRE_ERROR_BADMAGIC;
+ }
if (optptr != NULL) *optptr = (int)(re->options & PUBLIC_OPTIONS);
if (first_byte != NULL)
*first_byte = ((re->options & PCRE_FIRSTSET) != 0)? re->first_byte :
@@ -606,7 +691,7 @@ return re->top_bracket;
that additional items can be added compatibly.
Arguments:
- external_re points to compiled code
+ argument_re points to compiled code
extra_data points extra data, or NULL
what what information is required
where where to put the information
@@ -615,18 +700,26 @@ Returns: 0 if data returned, negative on error
*/
EXPORT int
-pcre_fullinfo(const pcre *external_re, const pcre_extra *extra_data, int what,
+pcre_fullinfo(const pcre *argument_re, const pcre_extra *extra_data, int what,
void *where)
{
-const real_pcre *re = (const real_pcre *)external_re;
+real_pcre internal_re;
+pcre_study_data internal_study;
+const real_pcre *re = (const real_pcre *)argument_re;
const pcre_study_data *study = NULL;
if (re == NULL || where == NULL) return PCRE_ERROR_NULL;
-if (re->magic_number != MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;
if (extra_data != NULL && (extra_data->flags & PCRE_EXTRA_STUDY_DATA) != 0)
study = (const pcre_study_data *)extra_data->study_data;
+if (re->magic_number != MAGIC_NUMBER)
+ {
+ re = try_flipped(re, &internal_re, study, &internal_study);
+ if (re == NULL) return PCRE_ERROR_BADMAGIC;
+ if (study != NULL) study = &internal_study;
+ }
+
switch (what)
{
case PCRE_INFO_OPTIONS:
@@ -655,10 +748,13 @@ switch (what)
((re->options & PCRE_STARTLINE) != 0)? -1 : -2;
break;
+ /* Make sure we pass back the pointer to the bit vector in the external
+ block, not the internal copy (with flipped integer fields). */
+
case PCRE_INFO_FIRSTTABLE:
*((const uschar **)where) =
(study != NULL && (study->options & PCRE_STUDY_MAPPED) != 0)?
- study->start_bits : NULL;
+ ((const pcre_study_data *)extra_data->study_data)->start_bits : NULL;
break;
case PCRE_INFO_LASTLITERAL:
@@ -675,7 +771,11 @@ switch (what)
break;
case PCRE_INFO_NAMETABLE:
- *((const uschar **)where) = (const uschar *)re + sizeof(real_pcre);
+ *((const uschar **)where) = (const uschar *)re + re->name_table_offset;
+ break;
+
+ case PCRE_INFO_DEFAULT_TABLES:
+ *((const uschar **)where) = (const uschar *)pcre_default_tables;
break;
default: return PCRE_ERROR_BADOPTION;
@@ -713,6 +813,14 @@ switch (what)
#endif
break;
+ case PCRE_CONFIG_UNICODE_PROPERTIES:
+#ifdef SUPPORT_UCP
+ *((int *)where) = 1;
+#else
+ *((int *)where) = 0;
+#endif
+ break;
+
case PCRE_CONFIG_NEWLINE:
*((int *)where) = NEWLINE;
break;
@@ -835,11 +943,8 @@ else
case 'l':
case 'L':
case 'N':
- case 'p':
- case 'P':
case 'u':
case 'U':
- case 'X':
*errorptr = ERR37;
break;
@@ -989,6 +1094,99 @@ return c;
+#ifdef SUPPORT_UCP
+/*************************************************
+* Handle \P and \p *
+*************************************************/
+
+/* This function is called after \P or \p has been encountered, provided that
+PCRE is compiled with support for Unicode properties. On entry, ptrptr is
+pointing at the P or p. On exit, it is pointing at the final character of the
+escape sequence.
+
+Argument:
+ ptrptr points to the pattern position pointer
+ negptr points to a boolean that is set TRUE for negation else FALSE
+ errorptr points to the pointer to the error message
+
+Returns: value from ucp_type_table, or -1 for an invalid type
+*/
+
+static int
+get_ucp(const uschar **ptrptr, BOOL *negptr, const char **errorptr)
+{
+int c, i, bot, top;
+const uschar *ptr = *ptrptr;
+char name[4];
+
+c = *(++ptr);
+if (c == 0) goto ERROR_RETURN;
+
+*negptr = FALSE;
+
+/* \P or \p can be followed by a one- or two-character name in {}, optionally
+preceded by ^ for negation. */
+
+if (c == '{')
+ {
+ if (ptr[1] == '^')
+ {
+ *negptr = TRUE;
+ ptr++;
+ }
+ for (i = 0; i <= 2; i++)
+ {
+ c = *(++ptr);
+ if (c == 0) goto ERROR_RETURN;
+ if (c == '}') break;
+ name[i] = c;
+ }
+ if (c !='}') /* Try to distinguish error cases */
+ {
+ while (*(++ptr) != 0 && *ptr != '}');
+ if (*ptr == '}') goto UNKNOWN_RETURN; else goto ERROR_RETURN;
+ }
+ name[i] = 0;
+ }
+
+/* Otherwise there is just one following character */
+
+else
+ {
+ name[0] = c;
+ name[1] = 0;
+ }
+
+*ptrptr = ptr;
+
+/* Search for a recognized property name using binary chop */
+
+bot = 0;
+top = sizeof(utt)/sizeof(ucp_type_table);
+
+while (bot < top)
+ {
+ i = (bot + top)/2;
+ c = strcmp(name, utt[i].name);
+ if (c == 0) return utt[i].value;
+ if (c > 0) bot = i + 1; else top = i;
+ }
+
+UNKNOWN_RETURN:
+*errorptr = ERR47;
+*ptrptr = ptr;
+return -1;
+
+ERROR_RETURN:
+*errorptr = ERR46;
+*ptrptr = ptr;
+return -1;
+}
+#endif
+
+
+
+
/*************************************************
* Check for counted repeat *
*************************************************/
@@ -1085,18 +1283,22 @@ return p;
/* This is called by several functions that scan a compiled expression looking
for a fixed first character, or an anchoring op code etc. It skips over things
that do not influence this. For some calls, a change of option is important.
+For some calls, it makes sense to skip negative forward and all backward
+assertions, and also the \b assertion; for others it does not.
Arguments:
- code pointer to the start of the group
- options pointer to external options
- optbit the option bit whose changing is significant, or
- zero if none are
+ code pointer to the start of the group
+ options pointer to external options
+ optbit the option bit whose changing is significant, or
+ zero if none are
+ skipassert TRUE if certain assertions are to be skipped
-Returns: pointer to the first significant opcode
+Returns: pointer to the first significant opcode
*/
static const uschar*
-first_significant_code(const uschar *code, int *options, int optbit)
+first_significant_code(const uschar *code, int *options, int optbit,
+ BOOL skipassert)
{
for (;;)
{
@@ -1111,14 +1313,19 @@ for (;;)
case OP_ASSERT_NOT:
case OP_ASSERTBACK:
case OP_ASSERTBACK_NOT:
+ if (!skipassert) return code;
do code += GET(code, 1); while (*code == OP_ALT);
+ code += OP_lengths[*code];
+ break;
+
+ case OP_WORD_BOUNDARY:
+ case OP_NOT_WORD_BOUNDARY:
+ if (!skipassert) return code;
/* Fall through */
case OP_CALLOUT:
case OP_CREF:
case OP_BRANUMBER:
- case OP_WORD_BOUNDARY:
- case OP_NOT_WORD_BOUNDARY:
code += OP_lengths[*code];
break;
@@ -1220,19 +1427,18 @@ for (;;)
cc += OP_lengths[*cc];
break;
- /* Handle char strings. In UTF-8 mode we must count characters, not bytes.
- This requires a scan of the string, unfortunately. We assume valid UTF-8
- strings, so all we do is reduce the length by one for every byte whose bits
- are 10xxxxxx. */
+ /* Handle literal characters */
- case OP_CHARS:
- branchlength += *(++cc);
+ case OP_CHAR:
+ case OP_CHARNC:
+ branchlength++;
+ cc += 2;
#ifdef SUPPORT_UTF8
if ((options & PCRE_UTF8) != 0)
- for (d = 1; d <= *cc; d++)
- if ((cc[d] & 0xc0) == 0x80) branchlength--;
+ {
+ while ((*cc & 0xc0) == 0x80) cc++;
+ }
#endif
- cc += *cc + 1;
break;
/* Handle exact repetitions. The count is already in characters, but we
@@ -1256,6 +1462,11 @@ for (;;)
/* Handle single-char matchers */
+ case OP_PROP:
+ case OP_NOTPROP:
+ cc++;
+ /* Fall through */
+
case OP_NOT_DIGIT:
case OP_DIGIT:
case OP_NOT_WHITESPACE:
@@ -1342,7 +1553,6 @@ for (;;)
{
register int c = *code;
if (c == OP_END) return NULL;
- else if (c == OP_CHARS) code += code[1] + OP_lengths[c];
else if (c > OP_BRA)
{
int n = c - OP_BRA;
@@ -1358,11 +1568,13 @@ for (;;)
/* In UTF-8 mode, opcodes that are followed by a character may be followed
by a multi-byte character. The length in the table is a minimum, so we have
- to scan along to skip the extra characters. All opcodes are less than 128,
- so we can use relatively efficient code. */
+ to scan along to skip the extra bytes. All opcodes are less than 128, so we
+ can use relatively efficient code. */
if (utf8) switch(c)
{
+ case OP_CHAR:
+ case OP_CHARNC:
case OP_EXACT:
case OP_UPTO:
case OP_MINUPTO:
@@ -1377,7 +1589,7 @@ for (;;)
/* XCLASS is used for classes that cannot be represented just by a bit
map. This includes negated single high-valued characters. The length in
- the table is zero; the actual length is stored in the compled code. */
+ the table is zero; the actual length is stored in the compiled code. */
case OP_XCLASS:
code += GET(code, 1) + 1;
@@ -1416,7 +1628,6 @@ for (;;)
register int c = *code;
if (c == OP_END) return NULL;
else if (c == OP_RECURSE) return code;
- else if (c == OP_CHARS) code += code[1] + OP_lengths[c];
else if (c > OP_BRA)
{
code += OP_lengths[OP_BRA];
@@ -1429,11 +1640,13 @@ for (;;)
/* In UTF-8 mode, opcodes that are followed by a character may be followed
by a multi-byte character. The length in the table is a minimum, so we have
- to scan along to skip the extra characters. All opcodes are less than 128,
- so we can use relatively efficient code. */
+ to scan along to skip the extra bytes. All opcodes are less than 128, so we
+ can use relatively efficient code. */
if (utf8) switch(c)
{
+ case OP_CHAR:
+ case OP_CHARNC:
case OP_EXACT:
case OP_UPTO:
case OP_MINUPTO:
@@ -1448,7 +1661,7 @@ for (;;)
/* XCLASS is used for classes that cannot be represented just by a bit
map. This includes negated single high-valued characters. The length in
- the table is zero; the actual length is stored in the compled code. */
+ the table is zero; the actual length is stored in the compiled code. */
case OP_XCLASS:
code += GET(code, 1) + 1;
@@ -1483,9 +1696,9 @@ static BOOL
could_be_empty_branch(const uschar *code, const uschar *endcode, BOOL utf8)
{
register int c;
-for (code = first_significant_code(code + 1 + LINK_SIZE, NULL, 0);
+for (code = first_significant_code(code + 1 + LINK_SIZE, NULL, 0, TRUE);
code < endcode;
- code = first_significant_code(code + OP_lengths[c], NULL, 0))
+ code = first_significant_code(code + OP_lengths[c], NULL, 0, TRUE))
{
const uschar *ccode;
@@ -1551,6 +1764,9 @@ for (code = first_significant_code(code + 1 + LINK_SIZE, NULL, 0);
/* Opcodes that must match a character */
+ case OP_PROP:
+ case OP_NOTPROP:
+ case OP_EXTUNI:
case OP_NOT_DIGIT:
case OP_DIGIT:
case OP_NOT_WHITESPACE:
@@ -1559,7 +1775,8 @@ for (code = first_significant_code(code + 1 + LINK_SIZE, NULL, 0);
case OP_WORDCHAR:
case OP_ANY:
case OP_ANYBYTE:
- case OP_CHARS:
+ case OP_CHAR:
+ case OP_CHARNC:
case OP_NOT:
case OP_PLUS:
case OP_MINPLUS:
@@ -1734,6 +1951,107 @@ while ((ptr = (uschar *)find_recurse(ptr, utf8)) != NULL)
/*************************************************
+* Insert an automatic callout point *
+*************************************************/
+
+/* This function is called when the PCRE_AUTO_CALLOUT option is set, to insert
+callout points before each pattern item.
+
+Arguments:
+ code current code pointer
+ ptr current pattern pointer
+ cd pointers to tables etc
+
+Returns: new code pointer
+*/
+
+static uschar *
+auto_callout(uschar *code, const uschar *ptr, compile_data *cd)
+{
+*code++ = OP_CALLOUT;
+*code++ = 255;
+PUT(code, 0, ptr - cd->start_pattern); /* Pattern offset */
+PUT(code, LINK_SIZE, 0); /* Default length */
+return code + 2*LINK_SIZE;
+}
+
+
+
+/*************************************************
+* Complete a callout item *
+*************************************************/
+
+/* A callout item contains the length of the next item in the pattern, which
+we can't fill in till after we have reached the relevant point. This is used
+for both automatic and manual callouts.
+
+Arguments:
+ previous_callout points to previous callout item
+ ptr current pattern pointer
+ cd pointers to tables etc
+
+Returns: nothing
+*/
+
+static void
+complete_callout(uschar *previous_callout, const uschar *ptr, compile_data *cd)
+{
+int length = ptr - cd->start_pattern - GET(previous_callout, 2);
+PUT(previous_callout, 2 + LINK_SIZE, length);
+}
+
+
+
+#ifdef SUPPORT_UCP
+/*************************************************
+* Get othercase range *
+*************************************************/
+
+/* This function is passed the start and end of a class range, in UTF-8 mode
+with UCP support. It searches up the characters, looking for internal ranges of
+characters in the "other" case. Each call returns the next one, updating the
+start address.
+
+Arguments:
+ cptr points to starting character value; updated
+ d end value
+ ocptr where to put start of othercase range
+ odptr where to put end of othercase range
+
+Yield: TRUE when range returned; FALSE when no more
+*/
+
+static BOOL
+get_othercase_range(int *cptr, int d, int *ocptr, int *odptr)
+{
+int c, chartype, othercase, next;
+
+for (c = *cptr; c <= d; c++)
+ {
+ if (ucp_findchar(c, &chartype, &othercase) == ucp_L && othercase != 0) break;
+ }
+
+if (c > d) return FALSE;
+
+*ocptr = othercase;
+next = othercase + 1;
+
+for (++c; c <= d; c++)
+ {
+ if (ucp_findchar(c, &chartype, &othercase) != ucp_L || othercase != next)
+ break;
+ next++;
+ }
+
+*odptr = next - 1;
+*cptr = c;
+
+return TRUE;
+}
+#endif /* SUPPORT_UCP */
+
+
+/*************************************************
* Compile one branch *
*************************************************/
@@ -1744,7 +2062,7 @@ bits.
Arguments:
optionsptr pointer to the option bits
brackets points to number of extracting brackets used
- code points to the pointer to the current code point
+ codeptr points to the pointer to the current code point
ptrptr points to the current pattern pointer
errorptr points to pointer to error message
firstbyteptr set to initial literal character, or < 0 (REQ_UNSET, REQ_NONE)
@@ -1764,13 +2082,13 @@ compile_branch(int *optionsptr, int *brackets, uschar **codeptr,
int repeat_type, op_type;
int repeat_min = 0, repeat_max = 0; /* To please picky compilers */
int bravalue = 0;
-int length;
int greedy_default, greedy_non_default;
int firstbyte, reqbyte;
int zeroreqbyte, zerofirstbyte;
int req_caseopt, reqvary, tempreqvary;
int condcount = 0;
int options = *optionsptr;
+int after_manual_callout = 0;
register int c;
register uschar *code = *codeptr;
uschar *tempcode;
@@ -1779,7 +2097,8 @@ BOOL groupsetfirstbyte = FALSE;
const uschar *ptr = *ptrptr;
const uschar *tempptr;
uschar *previous = NULL;
-uschar class[32];
+uschar *previous_callout = NULL;
+uschar classbits[32];
#ifdef SUPPORT_UTF8
BOOL class_utf8;
@@ -1795,7 +2114,7 @@ BOOL utf8 = FALSE;
greedy_default = ((options & PCRE_UNGREEDY) != 0);
greedy_non_default = greedy_default ^ 1;
-/* Initialize no first char, no required char. REQ_UNSET means "no char
+/* Initialize no first byte, no required byte. REQ_UNSET means "no char
matching encountered yet". It gets changed to REQ_NONE if we hit something that
matches a non-fixed char first char; reqbyte just remains unset if we never
find one.
@@ -1810,7 +2129,7 @@ firstbyte = reqbyte = zerofirstbyte = zeroreqbyte = REQ_UNSET;
/* The variable req_caseopt contains either the REQ_CASELESS value or zero,
according to the current setting of the caseless flag. REQ_CASELESS is a bit
value > 255. It is added into the firstbyte or reqbyte variables to record the
-case status of the value. */
+case status of the value. This is used only for ASCII characters. */
req_caseopt = ((options & PCRE_CASELESS) != 0)? REQ_CASELESS : 0;
@@ -1820,6 +2139,7 @@ for (;; ptr++)
{
BOOL negate_class;
BOOL possessive_quantifier;
+ BOOL is_quantifier;
int class_charcount;
int class_lastchar;
int newoptions;
@@ -1827,9 +2147,53 @@ for (;; ptr++)
int skipbytes;
int subreqbyte;
int subfirstbyte;
+ int mclength;
+ uschar mcbuffer[8];
+
+ /* Next byte in the pattern */
c = *ptr;
- if (inescq && c != 0) goto NORMAL_CHAR;
+
+ /* If in \Q...\E, check for the end; if not, we have a literal */
+
+ if (inescq && c != 0)
+ {
+ if (c == '\\' && ptr[1] == 'E')
+ {
+ inescq = FALSE;
+ ptr++;
+ continue;
+ }
+ else
+ {
+ if (previous_callout != NULL)
+ {
+ complete_callout(previous_callout, ptr, cd);
+ previous_callout = NULL;
+ }
+ if ((options & PCRE_AUTO_CALLOUT) != 0)
+ {
+ previous_callout = code;
+ code = auto_callout(code, ptr, cd);
+ }
+ goto NORMAL_CHAR;
+ }
+ }
+
+ /* Fill in length of a previous callout, except when the next thing is
+ a quantifier. */
+
+ is_quantifier = c == '*' || c == '+' || c == '?' ||
+ (c == '{' && is_counted_repeat(ptr+1));
+
+ if (!is_quantifier && previous_callout != NULL &&
+ after_manual_callout-- <= 0)
+ {
+ complete_callout(previous_callout, ptr, cd);
+ previous_callout = NULL;
+ }
+
+ /* In extended mode, skip white space and comments */
if ((options & PCRE_EXTENDED) != 0)
{
@@ -1843,6 +2207,14 @@ for (;; ptr++)
}
}
+ /* No auto callout for quantifiers. */
+
+ if ((options & PCRE_AUTO_CALLOUT) != 0 && !is_quantifier)
+ {
+ previous_callout = code;
+ code = auto_callout(code, ptr, cd);
+ }
+
switch(c)
{
/* The branch terminates at end of string, |, or ). */
@@ -1938,7 +2310,7 @@ for (;; ptr++)
character (< 256), because in that case the compiled code doesn't use the
bit map. */
- memset(class, 0, 32 * sizeof(uschar));
+ memset(classbits, 0, 32 * sizeof(uschar));
/* Process characters until ] is reached. By writing this as a "do" it
means that an initial ] is taken as a data character. The first pass
@@ -2022,13 +2394,16 @@ for (;; ptr++)
if (taboffset < 0) break;
if (local_negate)
{
- for (c = 0; c < 32; c++) class[c] |= ~cbits[c+taboffset];
- if (blankclass) class[1] |= 0x3c;
+ if (i == 0)
+ for (c = 0; c < 32; c++) classbits[c] |= ~cbits[c+taboffset];
+ else
+ for (c = 0; c < 32; c++) classbits[c] &= ~cbits[c+taboffset];
+ if (blankclass) classbits[1] |= 0x3c;
}
else
{
- for (c = 0; c < 32; c++) class[c] |= cbits[c+taboffset];
- if (blankclass) class[1] &= ~0x3c;
+ for (c = 0; c < 32; c++) classbits[c] |= cbits[c+taboffset];
+ if (blankclass) classbits[1] &= ~0x3c;
}
}
@@ -2048,9 +2423,10 @@ for (;; ptr++)
if (c == '\\')
{
c = check_escape(&ptr, errorptr, *brackets, options, TRUE);
- if (-c == ESC_b) c = '\b'; /* \b is backslash in a class */
- if (-c == ESC_Q) /* Handle start of quoted string */
+ if (-c == ESC_b) c = '\b'; /* \b is backslash in a class */
+ else if (-c == ESC_X) c = 'X'; /* \X is literal X in a class */
+ else if (-c == ESC_Q) /* Handle start of quoted string */
{
if (ptr[1] == '\\' && ptr[2] == 'E')
{
@@ -2060,38 +2436,54 @@ for (;; ptr++)
continue;
}
- else if (c < 0)
+ if (c < 0)
{
register const uschar *cbits = cd->cbits;
- class_charcount = 10; /* Greater than 1 is what matters */
+ class_charcount += 2; /* Greater than 1 is what matters */
switch (-c)
{
case ESC_d:
- for (c = 0; c < 32; c++) class[c] |= cbits[c+cbit_digit];
+ for (c = 0; c < 32; c++) classbits[c] |= cbits[c+cbit_digit];
continue;
case ESC_D:
- for (c = 0; c < 32; c++) class[c] |= ~cbits[c+cbit_digit];
+ for (c = 0; c < 32; c++) classbits[c] |= ~cbits[c+cbit_digit];
continue;
case ESC_w:
- for (c = 0; c < 32; c++) class[c] |= cbits[c+cbit_word];
+ for (c = 0; c < 32; c++) classbits[c] |= cbits[c+cbit_word];
continue;
case ESC_W:
- for (c = 0; c < 32; c++) class[c] |= ~cbits[c+cbit_word];
+ for (c = 0; c < 32; c++) classbits[c] |= ~cbits[c+cbit_word];
continue;
case ESC_s:
- for (c = 0; c < 32; c++) class[c] |= cbits[c+cbit_space];
- class[1] &= ~0x08; /* Perl 5.004 onwards omits VT from \s */
+ for (c = 0; c < 32; c++) classbits[c] |= cbits[c+cbit_space];
+ classbits[1] &= ~0x08; /* Perl 5.004 onwards omits VT from \s */
continue;
case ESC_S:
- for (c = 0; c < 32; c++) class[c] |= ~cbits[c+cbit_space];
- class[1] |= 0x08; /* Perl 5.004 onwards omits VT from \s */
+ for (c = 0; c < 32; c++) classbits[c] |= ~cbits[c+cbit_space];
+ classbits[1] |= 0x08; /* Perl 5.004 onwards omits VT from \s */
continue;
+#ifdef SUPPORT_UCP
+ case ESC_p:
+ case ESC_P:
+ {
+ BOOL negated;
+ int property = get_ucp(&ptr, &negated, errorptr);
+ if (property < 0) goto FAILED;
+ class_utf8 = TRUE;
+ *class_utf8data++ = ((-c == ESC_p) != negated)?
+ XCL_PROP : XCL_NOTPROP;
+ *class_utf8data++ = property;
+ class_charcount -= 2; /* Not a < 256 character */
+ }
+ continue;
+#endif
+
/* Unrecognized escapes are faulted if PCRE is running in its
strict mode. By default, for compatibility with Perl, they are
treated as literals. */
@@ -2102,7 +2494,8 @@ for (;; ptr++)
*errorptr = ERR7;
goto FAILED;
}
- c = *ptr; /* The final character */
+ c = *ptr; /* The final character */
+ class_charcount -= 2; /* Undo the default count from above */
}
}
@@ -2127,7 +2520,7 @@ for (;; ptr++)
}
else
#endif
- d = *ptr;
+ d = *ptr; /* Not UTF-8 mode */
/* The second part of a range can be a single-character escape, but
not any of the other escapes. Perl 5.6 treats a hyphen as a literal
@@ -2138,11 +2531,13 @@ for (;; ptr++)
const uschar *oldptr = ptr;
d = check_escape(&ptr, errorptr, *brackets, options, TRUE);
- /* \b is backslash; any other special means the '-' was literal */
+ /* \b is backslash; \X is literal X; any other special means the '-'
+ was literal */
if (d < 0)
{
- if (d == -ESC_b) d = '\b'; else
+ if (d == -ESC_b) d = '\b';
+ else if (d == -ESC_X) d = 'X'; else
{
ptr = oldptr - 2;
goto LONE_SINGLE_CHARACTER; /* A few lines below */
@@ -2150,47 +2545,95 @@ for (;; ptr++)
}
}
- /* Check that the two values are in the correct order */
+ /* The check that the two values are in the correct order happens in
+ the pre-pass. Optimize one-character ranges */
- if (d < c)
- {
- *errorptr = ERR8;
- goto FAILED;
- }
+ if (d == c) goto LONE_SINGLE_CHARACTER; /* A few lines below */
- /* If d is greater than 255, we can't just use the bit map, so set up
- for the UTF-8 supporting class type. If we are not caseless, we can
- just set up a single range. If we are caseless, the characters < 256
- are handled with a bitmap, in order to get the case-insensitive
- handling. */
+ /* In UTF-8 mode, if the upper limit is > 255, or > 127 for caseless
+ matching, we have to use an XCLASS with extra data items. Caseless
+ matching for characters > 127 is available only if UCP support is
+ available. */
#ifdef SUPPORT_UTF8
- if (d > 255)
+ if (utf8 && (d > 255 || ((options & PCRE_CASELESS) != 0 && d > 127)))
{
class_utf8 = TRUE;
- *class_utf8data++ = XCL_RANGE;
- if ((options & PCRE_CASELESS) == 0)
+
+ /* With UCP support, we can find the other case equivalents of
+ the relevant characters. There may be several ranges. Optimize how
+ they fit with the basic range. */
+
+#ifdef SUPPORT_UCP
+ if ((options & PCRE_CASELESS) != 0)
{
- class_utf8data += ord2utf8(c, class_utf8data);
- class_utf8data += ord2utf8(d, class_utf8data);
- continue; /* Go get the next char in the class */
+ int occ, ocd;
+ int cc = c;
+ int origd = d;
+ while (get_othercase_range(&cc, origd, &occ, &ocd))
+ {
+ if (occ >= c && ocd <= d) continue; /* Skip embedded ranges */
+
+ if (occ < c && ocd >= c - 1) /* Extend the basic range */
+ { /* if there is overlap, */
+ c = occ; /* noting that if occ < c */
+ continue; /* we can't have ocd > d */
+ } /* because a subrange is */
+ if (ocd > d && occ <= d + 1) /* always shorter than */
+ { /* the basic range. */
+ d = ocd;
+ continue;
+ }
+
+ if (occ == ocd)
+ {
+ *class_utf8data++ = XCL_SINGLE;
+ }
+ else
+ {
+ *class_utf8data++ = XCL_RANGE;
+ class_utf8data += ord2utf8(occ, class_utf8data);
+ }
+ class_utf8data += ord2utf8(ocd, class_utf8data);
+ }
}
- class_utf8data += ord2utf8(256, class_utf8data);
+#endif /* SUPPORT_UCP */
+
+ /* Now record the original range, possibly modified for UCP caseless
+ overlapping ranges. */
+
+ *class_utf8data++ = XCL_RANGE;
+ class_utf8data += ord2utf8(c, class_utf8data);
class_utf8data += ord2utf8(d, class_utf8data);
- d = 255;
- /* Fall through */
+
+ /* With UCP support, we are done. Without UCP support, there is no
+ caseless matching for UTF-8 characters > 127; we can use the bit map
+ for the smaller ones. */
+
+#ifdef SUPPORT_UCP
+ continue; /* With next character in the class */
+#else
+ if ((options & PCRE_CASELESS) == 0 || c > 127) continue;
+
+ /* Adjust upper limit and fall through to set up the map */
+
+ d = 127;
+
+#endif /* SUPPORT_UCP */
}
-#endif
- /* We use the bit map if the range is entirely < 255, or if part of it
- is < 255 and matching is caseless. */
+#endif /* SUPPORT_UTF8 */
+
+ /* We use the bit map for all cases when not in UTF-8 mode; else
+ ranges that lie entirely within 0-127 when there is UCP support; else
+ for partial ranges without UCP support. */
for (; c <= d; c++)
{
- class[c/8] |= (1 << (c&7));
+ classbits[c/8] |= (1 << (c&7));
if ((options & PCRE_CASELESS) != 0)
{
int uc = cd->fcc[c]; /* flip case */
- class[uc/8] |= (1 << (uc&7));
+ classbits[uc/8] |= (1 << (uc&7));
}
class_charcount++; /* in case a one-char range */
class_lastchar = c;
@@ -2200,28 +2643,44 @@ for (;; ptr++)
}
/* Handle a lone single character - we can get here for a normal
- non-escape char, or after \ that introduces a single character. */
+ non-escape char, or after \ that introduces a single character or for an
+ apparent range that isn't. */
LONE_SINGLE_CHARACTER:
- /* Handle a multibyte character */
+ /* Handle a character that cannot go in the bit map */
#ifdef SUPPORT_UTF8
- if (utf8 && c > 255)
+ if (utf8 && (c > 255 || ((options & PCRE_CASELESS) != 0 && c > 127)))
{
class_utf8 = TRUE;
*class_utf8data++ = XCL_SINGLE;
class_utf8data += ord2utf8(c, class_utf8data);
+
+#ifdef SUPPORT_UCP
+ if ((options & PCRE_CASELESS) != 0)
+ {
+ int chartype;
+ int othercase;
+ if (ucp_findchar(c, &chartype, &othercase) >= 0 && othercase > 0)
+ {
+ *class_utf8data++ = XCL_SINGLE;
+ class_utf8data += ord2utf8(othercase, class_utf8data);
+ }
+ }
+#endif /* SUPPORT_UCP */
+
}
else
-#endif
+#endif /* SUPPORT_UTF8 */
+
/* Handle a single-byte character */
{
- class [c/8] |= (1 << (c&7));
+ classbits[c/8] |= (1 << (c&7));
if ((options & PCRE_CASELESS) != 0)
{
c = cd->fcc[c]; /* flip case */
- class[c/8] |= (1 << (c&7));
+ classbits[c/8] |= (1 << (c&7));
}
class_charcount++;
class_lastchar = c;
@@ -2233,12 +2692,15 @@ for (;; ptr++)
while ((c = *(++ptr)) != ']' || inescq);
- /* If class_charcount is 1, we saw precisely one character with a value <
- 256. In UTF-8 mode, we can optimize if there were no characters >= 256 and
- the one character is < 128. In non-UTF-8 mode we can always optimize.
+ /* If class_charcount is 1, we saw precisely one character whose value is
+ less than 256. In non-UTF-8 mode we can always optimize. In UTF-8 mode, we
+ can optimize the negative case only if there were no characters >= 128
+ because OP_NOT and the related opcodes like OP_NOTSTAR operate on
+ single-bytes only. This is an historical hangover. Maybe one day we can
+ tidy these opcodes to handle multi-byte characters.
The optimization throws away the bit map. We turn the item into a
- 1-character OP_CHARS if it's positive, or OP_NOT if it's negative. Note
+ 1-character OP_CHAR[NC] if it's positive, or OP_NOT if it's negative. Note
that OP_NOT does not support multibyte characters. In the positive case, it
can cause firstbyte to be set. Otherwise, there can be no first char if
this item is first, whatever repeat count may follow. In the case of
@@ -2247,40 +2709,44 @@ for (;; ptr++)
#ifdef SUPPORT_UTF8
if (class_charcount == 1 &&
(!utf8 ||
- (!class_utf8 && class_lastchar < 128)))
+ (!class_utf8 && (!negate_class || class_lastchar < 128))))
+
#else
if (class_charcount == 1)
#endif
{
zeroreqbyte = reqbyte;
+
+ /* The OP_NOT opcode works on one-byte characters only. */
+
if (negate_class)
{
if (firstbyte == REQ_UNSET) firstbyte = REQ_NONE;
zerofirstbyte = firstbyte;
*code++ = OP_NOT;
+ *code++ = class_lastchar;
+ break;
}
+
+ /* For a single, positive character, get the value into mcbuffer, and
+ then we can handle this with the normal one-character code. */
+
+#ifdef SUPPORT_UTF8
+ if (utf8 && class_lastchar > 127)
+ mclength = ord2utf8(class_lastchar, mcbuffer);
else
+#endif
{
- if (firstbyte == REQ_UNSET)
- {
- zerofirstbyte = REQ_NONE;
- firstbyte = class_lastchar | req_caseopt;
- }
- else
- {
- zerofirstbyte = firstbyte;
- reqbyte = class_lastchar | req_caseopt | cd->req_varyopt;
- }
- *code++ = OP_CHARS;
- *code++ = 1;
+ mcbuffer[0] = class_lastchar;
+ mclength = 1;
}
- *code++ = class_lastchar;
- break; /* End of class handling */
- } /* End of 1-byte optimization */
+ goto ONE_CHAR;
+ } /* End of 1-char optimization */
- /* Otherwise, if this is the first thing in the branch, there can be no
- first char setting, whatever the repeat count. Any reqbyte setting must
- remain unchanged after any kind of repeat. */
+ /* The general case - not the one-char optimization. If this is the first
+ thing in the branch, there can be no first char setting, whatever the
+ repeat count. Any reqbyte setting must remain unchanged after any kind of
+ repeat. */
if (firstbyte == REQ_UNSET) firstbyte = REQ_NONE;
zerofirstbyte = firstbyte;
@@ -2304,7 +2770,7 @@ for (;; ptr++)
if (class_charcount > 0)
{
*code++ |= XCL_MAP;
- memcpy(code, class, 32);
+ memcpy(code, classbits, 32);
code = class_utf8data;
}
@@ -2332,20 +2798,21 @@ for (;; ptr++)
if (negate_class)
{
*code++ = OP_NCLASS;
- for (c = 0; c < 32; c++) code[c] = ~class[c];
+ for (c = 0; c < 32; c++) code[c] = ~classbits[c];
}
else
{
*code++ = OP_CLASS;
- memcpy(code, class, 32);
+ memcpy(code, classbits, 32);
}
code += 32;
break;
- /* Various kinds of repeat */
+ /* Various kinds of repeat; '{' is not necessarily a quantifier, but this
+ has been tested above. */
case '{':
- if (!is_counted_repeat(ptr+1)) goto NORMAL_CHAR;
+ if (!is_quantifier) goto NORMAL_CHAR;
ptr = read_repeat_counts(ptr+1, &repeat_min, &repeat_max, errorptr);
if (*errorptr != NULL) goto FAILED;
goto REPEAT;
@@ -2422,14 +2889,13 @@ for (;; ptr++)
code += 1 + LINK_SIZE;
}
- /* If previous was a string of characters, chop off the last one and use it
- as the subject of the repeat. If there was only one character, we can
- abolish the previous item altogether. If a one-char item has a minumum of
- more than one, ensure that it is set in reqbyte - it might not be if a
- sequence such as x{3} is the first thing in a branch because the x will
- have gone into firstbyte instead. */
+ /* If previous was a character match, abolish the item and generate a
+ repeat item instead. If a char item has a minumum of more than one, ensure
+ that it is set in reqbyte - it might not be if a sequence such as x{3} is
+ the first thing in a branch because the x will have gone into firstbyte
+ instead. */
- if (*previous == OP_CHARS)
+ if (*previous == OP_CHAR || *previous == OP_CHARNC)
{
/* Deal with UTF-8 characters that take up more than one byte. It's
easier to write this out separately than try to macrify it. Use c to
@@ -2443,16 +2909,6 @@ for (;; ptr++)
while((*lastchar & 0xc0) == 0x80) lastchar--;
c = code - lastchar; /* Length of UTF-8 character */
memcpy(utf8_char, lastchar, c); /* Save the char */
- if (lastchar == previous + 2) /* There was only one character */
- {
- code = previous; /* Abolish the previous item */
- }
- else
- {
- previous[1] -= c; /* Adjust length of previous */
- code = lastchar; /* Lost char off the end */
- tempcode = code; /* Adjust position to be moved for '+' */
- }
c |= 0x80; /* Flag c as a length */
}
else
@@ -2462,17 +2918,8 @@ for (;; ptr++)
with UTF-8 disabled, or for a UTF-8 character < 128. */
{
- c = *(--code);
- if (code == previous + 2) /* There was only one character */
- {
- code = previous; /* Abolish the previous item */
- if (repeat_min > 1) reqbyte = c | req_caseopt | cd->req_varyopt;
- }
- else
- {
- previous[1]--; /* adjust length */
- tempcode = code; /* Adjust position to be moved for '+' */
- }
+ c = code[-1];
+ if (repeat_min > 1) reqbyte = c | req_caseopt | cd->req_varyopt;
}
goto OUTPUT_SINGLE_REPEAT; /* Code shared with single character types */
@@ -2487,27 +2934,40 @@ for (;; ptr++)
{
op_type = OP_NOTSTAR - OP_STAR; /* Use "not" opcodes */
c = previous[1];
- code = previous;
goto OUTPUT_SINGLE_REPEAT;
}
/* If previous was a character type match (\d or similar), abolish it and
create a suitable repeat item. The code is shared with single-character
- repeats by setting op_type to add a suitable offset into repeat_type. */
+ repeats by setting op_type to add a suitable offset into repeat_type. Note
+ the the Unicode property types will be present only when SUPPORT_UCP is
+ defined, but we don't wrap the little bits of code here because it just
+ makes it horribly messy. */
else if (*previous < OP_EODN)
{
+ uschar *oldcode;
+ int prop_type;
op_type = OP_TYPESTAR - OP_STAR; /* Use type opcodes */
c = *previous;
- code = previous;
OUTPUT_SINGLE_REPEAT:
+ prop_type = (*previous == OP_PROP || *previous == OP_NOTPROP)?
+ previous[1] : -1;
+
+ oldcode = code;
+ code = previous; /* Usually overwrite previous item */
/* If the maximum is zero then the minimum must also be zero; Perl allows
this case, so we do too - by simply omitting the item altogether. */
if (repeat_max == 0) goto END_REPEAT;
+ /* All real repeats make it impossible to handle partial matching (maybe
+ one day we will be able to remove this restriction). */
+
+ if (repeat_max != 1) cd->nopartial = TRUE;
+
/* Combine the op_type with the repeat_type */
repeat_type += op_type;
@@ -2526,51 +2986,37 @@ for (;; ptr++)
}
}
- /* The case {1,} is handled as the special case + */
-
- else if (repeat_min == 1 && repeat_max == -1)
- *code++ = OP_PLUS + repeat_type;
-
- /* The case {n,n} is just an EXACT, while the general case {n,m} is
- handled as an EXACT followed by an UPTO. An EXACT of 1 is optimized. */
+ /* A repeat minimum of 1 is optimized into some special cases. If the
+ maximum is unlimited, we use OP_PLUS. Otherwise, the original item it
+ left in place and, if the maximum is greater than 1, we use OP_UPTO with
+ one less than the maximum. */
- else
+ else if (repeat_min == 1)
{
- if (repeat_min != 1)
- {
- *code++ = OP_EXACT + op_type; /* NB EXACT doesn't have repeat_type */
- PUT2INC(code, 0, repeat_min);
- }
-
- /* If the mininum is 1 and the previous item was a character string,
- we either have to put back the item that got cancelled if the string
- length was 1, or add the character back onto the end of a longer
- string. For a character type nothing need be done; it will just get
- put back naturally. Note that the final character is always going to
- get added below, so we leave code ready for its insertion. */
-
- else if (*previous == OP_CHARS)
+ if (repeat_max == -1)
+ *code++ = OP_PLUS + repeat_type;
+ else
{
- if (code == previous) code += 2; else
-
- /* In UTF-8 mode, a multibyte char has its length in c, with the 0x80
- bit set as a flag. The length will always be between 2 and 6. */
-
-#ifdef SUPPORT_UTF8
- if (utf8 && c >= 128) previous[1] += c & 7; else
-#endif
- previous[1]++;
+ code = oldcode; /* leave previous item in place */
+ if (repeat_max == 1) goto END_REPEAT;
+ *code++ = OP_UPTO + repeat_type;
+ PUT2INC(code, 0, repeat_max - 1);
}
+ }
- /* For a single negated character we also have to put back the
- item that got cancelled. At present this applies only to single byte
- characters in any mode. */
+ /* The case {n,n} is just an EXACT, while the general case {n,m} is
+ handled as an EXACT followed by an UPTO. */
- else if (*previous == OP_NOT) code++;
+ else
+ {
+ *code++ = OP_EXACT + op_type; /* NB EXACT doesn't have repeat_type */
+ PUT2INC(code, 0, repeat_min);
/* If the maximum is unlimited, insert an OP_STAR. Before doing so,
- we have to insert the character for the previous code. In UTF-8 mode,
- long characters have their length in c, with the 0x80 bit as a flag. */
+ we have to insert the character for the previous code. For a repeated
+ Unicode property match, there is an extra byte that defines the
+ required property. In UTF-8 mode, long characters have their length in
+ c, with the 0x80 bit as a flag. */
if (repeat_max < 0)
{
@@ -2582,7 +3028,10 @@ for (;; ptr++)
}
else
#endif
- *code++ = c;
+ {
+ *code++ = c;
+ if (prop_type >= 0) *code++ = prop_type;
+ }
*code++ = OP_STAR + repeat_type;
}
@@ -2600,6 +3049,7 @@ for (;; ptr++)
else
#endif
*code++ = c;
+ if (prop_type >= 0) *code++ = prop_type;
repeat_max -= repeat_min;
*code++ = OP_UPTO + repeat_type;
PUT2INC(code, 0, repeat_max);
@@ -2616,8 +3066,14 @@ for (;; ptr++)
}
else
#endif
-
*code++ = c;
+
+ /* For a repeated Unicode property match, there is an extra byte that
+ defines the required property. */
+
+#ifdef SUPPORT_UCP
+ if (prop_type >= 0) *code++ = prop_type;
+#endif
}
/* If previous was a character class or a back reference, we put the repeat
@@ -2635,6 +3091,12 @@ for (;; ptr++)
code = previous;
goto END_REPEAT;
}
+
+ /* All real repeats make it impossible to handle partial matching (maybe
+ one day we will be able to remove this restriction). */
+
+ if (repeat_max != 1) cd->nopartial = TRUE;
+
if (repeat_min == 0 && repeat_max == -1)
*code++ = OP_CRSTAR + repeat_type;
else if (repeat_min == 1 && repeat_max == -1)
@@ -2937,9 +3399,11 @@ for (;; ptr++)
ptr++;
break;
- case 'C': /* Callout - may be followed by digits */
- *code++ = OP_CALLOUT;
- {
+ case 'C': /* Callout - may be followed by digits; */
+ previous_callout = code; /* Save for later completion */
+ after_manual_callout = 1; /* Skip one item before completing */
+ *code++ = OP_CALLOUT; /* Already checked that the terminating */
+ { /* closing parenthesis is present. */
int n = 0;
while ((digitab[*(++ptr)] & ctype_digit) != 0)
n = n * 10 + *ptr - '0';
@@ -2949,6 +3413,9 @@ for (;; ptr++)
goto FAILED;
}
*code++ = n;
+ PUT(code, 0, ptr - cd->start_pattern + 1); /* Pattern offset */
+ PUT(code, LINK_SIZE, 0); /* Default length */
+ code += 2 * LINK_SIZE;
}
previous = NULL;
continue;
@@ -3339,215 +3806,107 @@ for (;; ptr++)
*code++ = OP_REF;
PUT2INC(code, 0, number);
}
- else
- {
- previous = (-c > ESC_b && -c < ESC_Z)? code : NULL;
- *code++ = -c;
- }
- continue;
- }
- /* Data character: reset and fall through */
+ /* So are Unicode property matches, if supported. We know that get_ucp
+ won't fail because it was tested in the pre-pass. */
- ptr = tempptr;
- c = '\\';
-
- /* Handle a run of data characters until a metacharacter is encountered.
- The first character is guaranteed not to be whitespace or # when the
- extended flag is set. */
-
- NORMAL_CHAR:
- default:
- previous = code;
- *code = OP_CHARS;
- code += 2;
- length = 0;
-
- do
- {
- /* If in \Q...\E, check for the end; if not, we always have a literal */
-
- if (inescq)
+#ifdef SUPPORT_UCP
+ else if (-c == ESC_P || -c == ESC_p)
{
- if (c == '\\' && ptr[1] == 'E')
- {
- inescq = FALSE;
- ptr++;
- }
- else
- {
- *code++ = c;
- length++;
- }
- continue;
+ BOOL negated;
+ int value = get_ucp(&ptr, &negated, errorptr);
+ previous = code;
+ *code++ = ((-c == ESC_p) != negated)? OP_PROP : OP_NOTPROP;
+ *code++ = value;
}
+#endif
- /* Skip white space and comments for /x patterns */
+ /* For the rest, we can obtain the OP value by negating the escape
+ value */
- if ((options & PCRE_EXTENDED) != 0)
+ else
{
- if ((cd->ctypes[c] & ctype_space) != 0) continue;
- if (c == '#')
- {
- /* The space before the ; is to avoid a warning on a silly compiler
- on the Macintosh. */
- while ((c = *(++ptr)) != 0 && c != NEWLINE) ;
- if (c == 0) break;
- continue;
- }
+ previous = (-c > ESC_b && -c < ESC_Z)? code : NULL;
+ *code++ = -c;
}
+ continue;
+ }
- /* Backslash may introduce a data char or a metacharacter. Escaped items
- are checked for validity in the pre-compiling pass. Stop the string
- before a metaitem. */
-
- if (c == '\\')
- {
- tempptr = ptr;
- c = check_escape(&ptr, errorptr, *brackets, options, FALSE);
- if (c < 0) { ptr = tempptr; break; }
-
- /* If a character is > 127 in UTF-8 mode, we have to turn it into
- two or more bytes in the UTF-8 encoding. */
+ /* We have a data character whose value is in c. In UTF-8 mode it may have
+ a value > 127. We set its representation in the length/buffer, and then
+ handle it as a data character. */
#ifdef SUPPORT_UTF8
- if (utf8 && c > 127)
- {
- uschar buffer[8];
- int len = ord2utf8(c, buffer);
- for (c = 0; c < len; c++) *code++ = buffer[c];
- length += len;
- continue;
- }
+ if (utf8 && c > 127)
+ mclength = ord2utf8(c, mcbuffer);
+ else
#endif
- }
-
- /* Ordinary character or single-char escape */
- *code++ = c;
- length++;
- }
+ {
+ mcbuffer[0] = c;
+ mclength = 1;
+ }
- /* This "while" is the end of the "do" above. */
+ goto ONE_CHAR;
- while (length < MAXLIT && (cd->ctypes[c = *(++ptr)] & ctype_meta) == 0);
+ /* Handle a literal character. It is guaranteed not to be whitespace or #
+ when the extended flag is set. If we are in UTF-8 mode, it may be a
+ multi-byte literal character. */
- /* Update the first and last requirements. These are always bytes, even in
- UTF-8 mode. However, there is a special case to be considered when there
- are only one or two characters. Because this gets messy in UTF-8 mode, the
- code is kept separate. When we get here "length" contains the number of
- bytes. */
+ default:
+ NORMAL_CHAR:
+ mclength = 1;
+ mcbuffer[0] = c;
#ifdef SUPPORT_UTF8
- if (utf8 && length > 1)
+ if (utf8 && (c & 0xc0) == 0xc0)
{
- uschar *t = previous + 3; /* After this code, t */
- while (t < code && (*t & 0xc0) == 0x80) t++; /* follows the 1st char */
-
- /* Handle the case when there is only one multibyte character. It must
- have at least two bytes because of the "length > 1" test above. */
-
- if (t == code)
- {
- /* If no previous first byte, set it from this character, but revert to
- none on a zero repeat. */
-
- if (firstbyte == REQ_UNSET)
- {
- zerofirstbyte = REQ_NONE;
- firstbyte = previous[2];
- }
+ while ((ptr[1] & 0xc0) == 0x80)
+ mcbuffer[mclength++] = *(++ptr);
+ }
+#endif
- /* Otherwise, leave the first byte value alone, and don't change it on
- a zero repeat */
+ /* At this point we have the character's bytes in mcbuffer, and the length
+ in mclength. When not in UTF-8 mode, the length is always 1. */
- else zerofirstbyte = firstbyte;
+ ONE_CHAR:
+ previous = code;
+ *code++ = ((options & PCRE_CASELESS) != 0)? OP_CHARNC : OP_CHAR;
+ for (c = 0; c < mclength; c++) *code++ = mcbuffer[c];
- /* In both cases, a zero repeat resets the previous required byte */
+ /* Set the first and required bytes appropriately. If no previous first
+ byte, set it from this character, but revert to none on a zero repeat.
+ Otherwise, leave the firstbyte value alone, and don't change it on a zero
+ repeat. */
- zeroreqbyte = reqbyte;
- }
+ if (firstbyte == REQ_UNSET)
+ {
+ zerofirstbyte = REQ_NONE;
+ zeroreqbyte = reqbyte;
- /* Handle the case when there is more than one character. These may be
- single-byte or multibyte characters */
+ /* If the character is more than one byte long, we can set firstbyte
+ only if it is not to be matched caselessly. */
- else
+ if (mclength == 1 || req_caseopt == 0)
{
- t = code - 1; /* After this code, t is at the */
- while ((*t & 0xc0) == 0x80) t--; /* start of the last character */
-
- /* If no previous first byte, set it from the first character, and
- retain it on a zero repeat (of the last character). The required byte
- is reset on a zero repeat, either to the byte before the last
- character, unless this is the first byte of the string. In that case,
- it reverts to its previous value. */
-
- if (firstbyte == REQ_UNSET)
- {
- zerofirstbyte = firstbyte = previous[2] | req_caseopt;
- zeroreqbyte = (t - 1 == previous + 2)?
- reqbyte : t[-1] | req_caseopt | cd->req_varyopt;
- }
-
- /* If there was a previous first byte, leave it alone, and don't change
- it on a zero repeat. The required byte is reset on a zero repeat to the
- byte before the last character. */
-
- else
- {
- zerofirstbyte = firstbyte;
- zeroreqbyte = t[-1] | req_caseopt | cd->req_varyopt;
- }
+ firstbyte = mcbuffer[0] | req_caseopt;
+ if (mclength != 1) reqbyte = code[-1] | cd->req_varyopt;
}
-
- /* In all cases (we know length > 1), the new required byte is the last
- byte of the string. */
-
- reqbyte = code[-1] | req_caseopt | cd->req_varyopt;
+ else firstbyte = reqbyte = REQ_NONE;
}
- else /* End of UTF-8 coding */
-#endif
-
- /* This is the code for non-UTF-8 operation, either without UTF-8 support,
- or when UTF-8 is not enabled. */
+ /* firstbyte was previously set; we can set reqbyte only the length is
+ 1 or the matching is caseful. */
+ else
{
- /* firstbyte was not previously set; take it from this string */
-
- if (firstbyte == REQ_UNSET)
- {
- if (length == 1)
- {
- zerofirstbyte = REQ_NONE;
- firstbyte = previous[2] | req_caseopt;
- zeroreqbyte = reqbyte;
- }
- else
- {
- zerofirstbyte = firstbyte = previous[2] | req_caseopt;
- zeroreqbyte = (length > 2)?
- (code[-2] | req_caseopt | cd->req_varyopt) : reqbyte;
- reqbyte = code[-1] | req_caseopt | cd->req_varyopt;
- }
- }
-
- /* firstbyte was previously set */
-
- else
- {
- zerofirstbyte = firstbyte;
- zeroreqbyte = (length == 1)? reqbyte :
- code[-2] | req_caseopt | cd->req_varyopt;
+ zerofirstbyte = firstbyte;
+ zeroreqbyte = reqbyte;
+ if (mclength == 1 || req_caseopt == 0)
reqbyte = code[-1] | req_caseopt | cd->req_varyopt;
- }
}
- /* Set the length in the data vector, and advance to the next state. */
-
- previous[1] = length;
- if (length < MAXLIT) ptr--;
- break;
+ break; /* End of literal character handling */
}
} /* end of big loop */
@@ -3809,7 +4168,7 @@ is_anchored(register const uschar *code, int *options, unsigned int bracket_map,
{
do {
const uschar *scode =
- first_significant_code(code + 1+LINK_SIZE, options, PCRE_MULTILINE);
+ first_significant_code(code + 1+LINK_SIZE, options, PCRE_MULTILINE, FALSE);
register int op = *scode;
/* Capturing brackets */
@@ -3878,7 +4237,8 @@ is_startline(const uschar *code, unsigned int bracket_map,
unsigned int backref_map)
{
do {
- const uschar *scode = first_significant_code(code + 1+LINK_SIZE, NULL, 0);
+ const uschar *scode = first_significant_code(code + 1+LINK_SIZE, NULL, 0,
+ FALSE);
register int op = *scode;
/* Capturing brackets */
@@ -3897,7 +4257,7 @@ do {
else if (op == OP_BRA || op == OP_ASSERT || op == OP_ONCE || op == OP_COND)
{ if (!is_startline(scode, bracket_map, backref_map)) return FALSE; }
- /* .* is not anchored unless DOTALL is set and it isn't in brackets that
+ /* .* means "start at start or after \n" if it isn't in brackets that
may be referenced. */
else if (op == OP_TYPESTAR || op == OP_TYPEMINSTAR)
@@ -3908,6 +4268,9 @@ do {
/* Check for explicit circumflex */
else if (op != OP_CIRC) return FALSE;
+
+ /* Move on to the next alternative */
+
code += GET(code, 1);
}
while (*code == OP_ALT); /* Loop for each alternative */
@@ -3943,7 +4306,7 @@ register int c = -1;
do {
int d;
const uschar *scode =
- first_significant_code(code + 1+LINK_SIZE, options, PCRE_CASELESS);
+ first_significant_code(code + 1+LINK_SIZE, options, PCRE_CASELESS, TRUE);
register int op = *scode;
if (op >= OP_BRA) op = OP_BRA;
@@ -3963,11 +4326,10 @@ do {
break;
case OP_EXACT: /* Fall through */
- scode++;
-
- case OP_CHARS: /* Fall through */
- scode++;
+ scode += 2;
+ case OP_CHAR:
+ case OP_CHARNC:
case OP_PLUS:
case OP_MINPLUS:
if (!inassert) return -1;
@@ -4107,8 +4469,8 @@ int branch_newextra;
int item_count = -1;
int name_count = 0;
int max_name_size = 0;
+int lastitemlength = 0;
#ifdef SUPPORT_UTF8
-int lastcharlength = 0;
BOOL utf8;
BOOL class_utf8;
#endif
@@ -4199,7 +4561,11 @@ while ((c = *(++ptr)) != 0)
/* If we are inside a \Q...\E sequence, all chars are literal */
- if (inescq) goto NORMAL_CHAR;
+ if (inescq)
+ {
+ if ((options & PCRE_AUTO_CALLOUT) != 0) length += 2 + 2*LINK_SIZE;
+ goto NORMAL_CHAR;
+ }
/* Otherwise, first check for ignored whitespace and comments */
@@ -4218,24 +4584,40 @@ while ((c = *(++ptr)) != 0)
item_count++; /* Is zero for the first non-comment item */
+ /* Allow space for auto callout before every item except quantifiers. */
+
+ if ((options & PCRE_AUTO_CALLOUT) != 0 &&
+ c != '*' && c != '+' && c != '?' &&
+ (c != '{' || !is_counted_repeat(ptr + 1)))
+ length += 2 + 2*LINK_SIZE;
+
switch(c)
{
- /* A backslashed item may be an escaped "normal" character or a
- character type. For a "normal" character, put the pointers and
- character back so that tests for whitespace etc. in the input
- are done correctly. */
+ /* A backslashed item may be an escaped data character or it may be a
+ character type. */
case '\\':
+ c = check_escape(&ptr, errorptr, bracount, options, FALSE);
+ if (*errorptr != NULL) goto PCRE_ERROR_RETURN;
+
+ lastitemlength = 1; /* Default length of last item for repeats */
+
+ if (c >= 0) /* Data character */
{
- const uschar *save_ptr = ptr;
- c = check_escape(&ptr, errorptr, bracount, options, FALSE);
- if (*errorptr != NULL) goto PCRE_ERROR_RETURN;
- if (c >= 0)
+ length += 2; /* For a one-byte character */
+
+#ifdef SUPPORT_UTF8
+ if (utf8 && c > 127)
{
- ptr = save_ptr;
- c = '\\';
- goto NORMAL_CHAR;
+ int i;
+ for (i = 0; i < sizeof(utf8_table1)/sizeof(int); i++)
+ if (c <= utf8_table1[i]) break;
+ length += i;
+ lastitemlength += i;
}
+#endif
+
+ continue;
}
/* If \Q, enter "literal" mode */
@@ -4246,12 +4628,36 @@ while ((c = *(++ptr)) != 0)
continue;
}
- /* Other escapes need one byte, and are of length one for repeats */
+ /* \X is supported only if Unicode property support is compiled */
- length++;
-#ifdef SUPPORT_UTF8
- lastcharlength = 1;
+#ifndef SUPPORT_UCP
+ if (-c == ESC_X)
+ {
+ *errorptr = ERR45;
+ goto PCRE_ERROR_RETURN;
+ }
+#endif
+
+ /* \P and \p are for Unicode properties, but only when the support has
+ been compiled. Each item needs 2 bytes. */
+
+ else if (-c == ESC_P || -c == ESC_p)
+ {
+#ifdef SUPPORT_UCP
+ BOOL negated;
+ length += 2;
+ lastitemlength = 2;
+ if (get_ucp(&ptr, &negated, errorptr) < 0) goto PCRE_ERROR_RETURN;
+ continue;
+#else
+ *errorptr = ERR45;
+ goto PCRE_ERROR_RETURN;
#endif
+ }
+
+ /* Other escapes need one byte */
+
+ length++;
/* A back reference needs an additional 2 bytes, plus either one or 5
bytes for a repeat. We also need to keep the value of the highest
@@ -4281,9 +4687,7 @@ while ((c = *(++ptr)) != 0)
case '.':
case '$':
length++;
-#ifdef SUPPORT_UTF8
- lastcharlength = 1;
-#endif
+ lastitemlength = 1;
continue;
case '*': /* These repeats won't be after brackets; */
@@ -4310,30 +4714,12 @@ while ((c = *(++ptr)) != 0)
else
{
-#ifdef SUPPORT_UTF8
- /* In UTF-8 mode, we should find the length in lastcharlength */
- if (utf8)
+ if (min != 1)
{
- if (min != 1)
- {
- length -= lastcharlength; /* Uncount the original char or metachar */
- if (min > 0) length += 3 + lastcharlength;
- }
- length += lastcharlength + ((max > 0)? 3 : 1);
- }
- else
-#endif
-
- /* Not UTF-8 mode: all characters are one byte */
- {
- if (min != 1)
- {
- length--; /* Uncount the original char or metachar */
- if (min > 0) length += 4;
- }
-
- length += (max > 0)? 4 : 2;
+ length -= lastitemlength; /* Uncount the original char or metachar */
+ if (min > 0) length += 3 + lastitemlength;
}
+ length += lastitemlength + ((max > 0)? 3 : 1);
}
if (ptr[1] == '?') ptr++; /* Needs no extra length */
@@ -4364,14 +4750,17 @@ while ((c = *(++ptr)) != 0)
where we can. (In UTF-8 mode we can do this only for chars < 128.) */
case '[':
- class_optcount = 0;
+ if (*(++ptr) == '^')
+ {
+ class_optcount = 10; /* Greater than one */
+ ptr++;
+ }
+ else class_optcount = 0;
#ifdef SUPPORT_UTF8
class_utf8 = FALSE;
#endif
- if (*(++ptr) == '^') ptr++;
-
/* Written as a "do" so that an initial ']' is taken as data */
if (*ptr != 0) do
@@ -4380,7 +4769,7 @@ while ((c = *(++ptr)) != 0)
if (inescq)
{
- if (*ptr != '\\' || ptr[1] != 'E') goto NON_SPECIAL_CHARACTER;
+ if (*ptr != '\\' || ptr[1] != 'E') goto GET_ONE_CHARACTER;
inescq = FALSE;
ptr += 1;
continue;
@@ -4390,19 +4779,17 @@ while ((c = *(++ptr)) != 0)
if (*ptr == '\\')
{
-#ifdef SUPPORT_UTF8
- int prevchar = ptr[-1];
-#endif
- int ch = check_escape(&ptr, errorptr, bracount, options, TRUE);
+ c = check_escape(&ptr, errorptr, bracount, options, TRUE);
if (*errorptr != NULL) goto PCRE_ERROR_RETURN;
- /* \b is backspace inside a class */
+ /* \b is backspace inside a class; \X is literal */
- if (-ch == ESC_b) ch = '\b';
+ if (-c == ESC_b) c = '\b';
+ else if (-c == ESC_X) c = 'X';
/* \Q enters quoting mode */
- if (-ch == ESC_Q)
+ else if (-c == ESC_Q)
{
inescq = TRUE;
continue;
@@ -4410,33 +4797,26 @@ while ((c = *(++ptr)) != 0)
/* Handle escapes that turn into characters */
- if (ch >= 0)
+ if (c >= 0) goto NON_SPECIAL_CHARACTER;
+
+ /* Escapes that are meta-things. The normal ones just affect the
+ bit map, but Unicode properties require an XCLASS extended item. */
+
+ else
{
+ class_optcount = 10; /* \d, \s etc; make sure > 1 */
#ifdef SUPPORT_UTF8
- if (utf8)
+ if (-c == ESC_p || -c == ESC_P)
{
- if (ch > 127) class_optcount = 10; /* Ensure > 1 */
- if (ch > 255)
+ if (!class_utf8)
{
- uschar buffer[6];
- if (!class_utf8)
- {
- class_utf8 = TRUE;
- length += LINK_SIZE + 1 + 1;
- }
- length += 1 + ord2utf8(ch, buffer);
-
- /* If this wide character is preceded by '-', add an extra 2 to
- the length in case the previous character was < 128, because in
- this case the whole range will be put into the list. */
-
- if (prevchar == '-') length += 2;
+ class_utf8 = TRUE;
+ length += LINK_SIZE + 2;
}
+ length += 2;
}
#endif
- class_optcount++; /* for possible optimization */
}
- else class_optcount = 10; /* \d, \s etc; make sure > 1 */
}
/* Check the syntax for POSIX stuff. The bits we actually handle are
@@ -4448,42 +4828,155 @@ while ((c = *(++ptr)) != 0)
class_optcount = 10; /* Make sure > 1 */
}
- /* Anything else just increments the possible optimization count. If
- there are wide characters, we are going to have to use an XCLASS. */
+ /* Anything else increments the possible optimization count. We have to
+ detect ranges here so that we can compute the number of extra ranges for
+ caseless wide characters when UCP support is available. If there are wide
+ characters, we are going to have to use an XCLASS, even for single
+ characters. */
else
{
- NON_SPECIAL_CHARACTER:
- class_optcount++;
+ int d;
+
+ GET_ONE_CHARACTER:
#ifdef SUPPORT_UTF8
if (utf8)
{
- int ch;
int extra = 0;
- GETCHARLEN(ch, ptr, extra);
- if (ch > 127) class_optcount = 10; /* No optimization possible */
- if (ch > 255)
+ GETCHARLEN(c, ptr, extra);
+ ptr += extra;
+ }
+ else c = *ptr;
+#else
+ c = *ptr;
+#endif
+
+ /* Come here from handling \ above when it escapes to a char value */
+
+ NON_SPECIAL_CHARACTER:
+ class_optcount++;
+
+ d = -1;
+ if (ptr[1] == '-')
+ {
+ uschar const *hyptr = ptr++;
+ if (ptr[1] == '\\')
{
- if (!class_utf8)
+ ptr++;
+ d = check_escape(&ptr, errorptr, bracount, options, TRUE);
+ if (*errorptr != NULL) goto PCRE_ERROR_RETURN;
+ if (-d == ESC_b) d = '\b'; /* backspace */
+ else if (-d == ESC_X) d = 'X'; /* literal X in a class */
+ }
+ else if (ptr[1] != 0 && ptr[1] != ']')
+ {
+ ptr++;
+#ifdef SUPPORT_UTF8
+ if (utf8)
+ {
+ int extra = 0;
+ GETCHARLEN(d, ptr, extra);
+ ptr += extra;
+ }
+ else
+#endif
+ d = *ptr;
+ }
+ if (d < 0) ptr = hyptr; /* go back to hyphen as data */
+ }
+
+ /* If d >= 0 we have a range. In UTF-8 mode, if the end is > 255, or >
+ 127 for caseless matching, we will need to use an XCLASS. */
+
+ if (d >= 0)
+ {
+ class_optcount = 10; /* Ensure > 1 */
+ if (d < c)
+ {
+ *errorptr = ERR8;
+ goto PCRE_ERROR_RETURN;
+ }
+
+#ifdef SUPPORT_UTF8
+ if (utf8 && (d > 255 || ((options & PCRE_CASELESS) != 0 && d > 127)))
+ {
+ uschar buffer[6];
+ if (!class_utf8) /* Allow for XCLASS overhead */
{
class_utf8 = TRUE;
- length += LINK_SIZE + 1 + 1;
+ length += LINK_SIZE + 2;
}
- length += 2 + extra;
- /* If this wide character is preceded by '-', add an extra 2 to
- the length in case the previous character was < 128, because in
- this case the whole range will be put into the list. */
+#ifdef SUPPORT_UCP
+ /* If we have UCP support, find out how many extra ranges are
+ needed to map the other case of characters within this range. We
+ have to mimic the range optimization here, because extending the
+ range upwards might push d over a boundary that makes is use
+ another byte in the UTF-8 representation. */
- if (ptr[-1] == '-') length += 2;
+ if ((options & PCRE_CASELESS) != 0)
+ {
+ int occ, ocd;
+ int cc = c;
+ int origd = d;
+ while (get_othercase_range(&cc, origd, &occ, &ocd))
+ {
+ if (occ >= c && ocd <= d) continue; /* Skip embedded */
+
+ if (occ < c && ocd >= c - 1) /* Extend the basic range */
+ { /* if there is overlap, */
+ c = occ; /* noting that if occ < c */
+ continue; /* we can't have ocd > d */
+ } /* because a subrange is */
+ if (ocd > d && occ <= d + 1) /* always shorter than */
+ { /* the basic range. */
+ d = ocd;
+ continue;
+ }
+
+ /* An extra item is needed */
+
+ length += 1 + ord2utf8(occ, buffer) +
+ ((occ == ocd)? 0 : ord2utf8(ocd, buffer));
+ }
+ }
+#endif /* SUPPORT_UCP */
- /* Advance to the end of this character */
+ /* The length of the (possibly extended) range */
- ptr += extra;
+ length += 1 + ord2utf8(c, buffer) + ord2utf8(d, buffer);
}
+#endif /* SUPPORT_UTF8 */
+
+ }
+
+ /* We have a single character. There is nothing to be done unless we
+ are in UTF-8 mode. If the char is > 255, or 127 when caseless, we must
+ allow for an XCL_SINGLE item, doubled for caselessness if there is UCP
+ support. */
+
+ else
+ {
+#ifdef SUPPORT_UTF8
+ if (utf8 && (c > 255 || ((options & PCRE_CASELESS) != 0 && c > 127)))
+ {
+ uschar buffer[6];
+ class_optcount = 10; /* Ensure > 1 */
+ if (!class_utf8) /* Allow for XCLASS overhead */
+ {
+ class_utf8 = TRUE;
+ length += LINK_SIZE + 2;
+ }
+#ifdef SUPPORT_UCP
+ length += (((options & PCRE_CASELESS) != 0)? 2 : 1) *
+ (1 + ord2utf8(c, buffer));
+#else /* SUPPORT_UCP */
+ length += 1 + ord2utf8(c, buffer);
+#endif /* SUPPORT_UCP */
+ }
+#endif /* SUPPORT_UTF8 */
}
-#endif
}
}
while (*(++ptr) != 0 && (inescq || *ptr != ']')); /* Concludes "do" above */
@@ -4608,7 +5101,7 @@ while ((c = *(++ptr)) != 0)
*errorptr = ERR39;
goto PCRE_ERROR_RETURN;
}
- length += 2;
+ length += 2 + 2*LINK_SIZE;
continue;
/* Named subpatterns are an extension copied from Python */
@@ -4908,111 +5401,46 @@ while ((c = *(++ptr)) != 0)
}
continue;
- /* Non-special character. For a run of such characters the length required
- is the number of characters + 2, except that the maximum run length is
- MAXLIT. We won't get a skipped space or a non-data escape or the start of a
- # comment as the first character, so the length can't be zero. */
+ /* Non-special character. It won't be space or # in extended mode, so it is
+ always a genuine character. If we are in a \Q...\E sequence, check for the
+ end; if not, we have a literal. */
- NORMAL_CHAR:
default:
- length += 2;
- runlength = 0;
- do
- {
-#ifdef SUPPORT_UTF8
- lastcharlength = 1; /* Need length of last char for UTF-8 repeats */
-#endif
-
- /* If in a \Q...\E sequence, check for end; otherwise it's a literal */
- if (inescq)
- {
- if (c == '\\' && ptr[1] == 'E')
- {
- inescq = FALSE;
- ptr++;
- }
- else runlength++;
- continue;
- }
-
- /* Skip whitespace and comments for /x */
-
- if ((options & PCRE_EXTENDED) != 0)
- {
- if ((compile_block.ctypes[c] & ctype_space) != 0) continue;
- if (c == '#')
- {
- /* The space before the ; is to avoid a warning on a silly compiler
- on the Macintosh. */
- while ((c = *(++ptr)) != 0 && c != NEWLINE) ;
- continue;
- }
- }
-
- /* Backslash may introduce a data char or a metacharacter; stop the
- string before the latter. */
-
- if (c == '\\')
- {
- const uschar *saveptr = ptr;
- c = check_escape(&ptr, errorptr, bracount, options, FALSE);
- if (*errorptr != NULL) goto PCRE_ERROR_RETURN;
- if (c < 0) { ptr = saveptr; break; }
-
- /* In UTF-8 mode, add on the number of additional bytes needed to
- encode this character, and save the total length in case this is a
- final char that is repeated. */
-
-#ifdef SUPPORT_UTF8
- if (utf8 && c > 127)
- {
- int i;
- for (i = 0; i < sizeof(utf8_table1)/sizeof(int); i++)
- if (c <= utf8_table1[i]) break;
- runlength += i;
- lastcharlength += i;
- }
-#endif
- }
-
- /* Ordinary character or single-char escape */
+ NORMAL_CHAR:
- runlength++;
+ if (inescq && c == '\\' && ptr[1] == 'E')
+ {
+ inescq = FALSE;
+ ptr++;
+ continue;
}
- /* This "while" is the end of the "do" above. */
-
- while (runlength < MAXLIT &&
- (compile_block.ctypes[c = *(++ptr)] & ctype_meta) == 0);
-
- /* If we hit a meta-character, back off to point to it */
-
- if (runlength < MAXLIT) ptr--;
+ length += 2; /* For a one-byte character */
+ lastitemlength = 1; /* Default length of last item for repeats */
- /* If the last char in the string is a UTF-8 multibyte character, we must
- set lastcharlength correctly. If it was specified as an escape, this will
- already have been done above. However, we also have to support in-line
- UTF-8 characters, so check backwards from where we are. */
+ /* In UTF-8 mode, check for additional bytes. */
#ifdef SUPPORT_UTF8
- if (utf8)
+ if (utf8 && (c & 0xc0) == 0xc0)
{
- const uschar *lastptr = ptr - 1;
- if ((*lastptr & 0x80) != 0)
- {
- while((*lastptr & 0xc0) == 0x80) lastptr--;
- lastcharlength = ptr - lastptr;
+ while ((ptr[1] & 0xc0) == 0x80) /* Can't flow over the end */
+ { /* because the end is marked */
+ lastitemlength++; /* by a zero byte. */
+ length++;
+ ptr++;
}
}
#endif
- length += runlength;
continue;
}
}
length += 2 + LINK_SIZE; /* For final KET and END */
+if ((options & PCRE_AUTO_CALLOUT) != 0)
+ length += 2 + 2*LINK_SIZE; /* For final callout */
+
if (length > MAX_PATTERN_SIZE)
{
*errorptr = ERR20;
@@ -5031,24 +5459,32 @@ if (re == NULL)
return NULL;
}
-/* Put in the magic number, and save the size, options, and table pointer */
+/* Put in the magic number, and save the sizes, options, and character table
+pointer. NULL is used for the default character tables. The nullpad field is at
+the end; it's there to help in the case when a regex compiled on a system with
+4-byte pointers is run on another with 8-byte pointers. */
re->magic_number = MAGIC_NUMBER;
re->size = size;
re->options = options;
-re->tables = tables;
+re->dummy1 = re->dummy2 = 0;
+re->name_table_offset = sizeof(real_pcre);
re->name_entry_size = max_name_size + 3;
re->name_count = name_count;
+re->tables = (tables == pcre_default_tables)? NULL : tables;
+re->nullpad = NULL;
/* The starting points of the name/number translation table and of the code are
passed around in the compile data block. */
compile_block.names_found = 0;
compile_block.name_entry_size = max_name_size + 3;
-compile_block.name_table = (uschar *)re + sizeof(real_pcre);
+compile_block.name_table = (uschar *)re + re->name_table_offset;
codestart = compile_block.name_table + re->name_entry_size * re->name_count;
compile_block.start_code = codestart;
+compile_block.start_pattern = (const uschar *)pattern;
compile_block.req_varyopt = 0;
+compile_block.nopartial = FALSE;
/* Set up a starting, non-extracting bracket, then compile the expression. On
error, *errorptr will be set non-NULL, so we don't need to look at the result
@@ -5063,6 +5499,8 @@ bracount = 0;
re->top_bracket = bracount;
re->top_backref = compile_block.top_backref;
+if (compile_block.nopartial) re->options |= PCRE_NOPARTIAL;
+
/* If not reached end of pattern on success, there's an excess bracket. */
if (*errorptr == NULL && *ptr != 0) *errorptr = ERR22;
@@ -5124,7 +5562,7 @@ if ((options & PCRE_ANCHORED) == 0)
/* For an anchored pattern, we use the "required byte" only if it follows a
variable length item in the regex. Remove the caseless flag for non-caseable
-chars. */
+bytes. */
if (reqbyte >= 0 &&
((re->options & PCRE_ANCHORED) == 0 || (reqbyte & REQ_VARY) != 0))
@@ -5144,7 +5582,8 @@ printf("Length = %d top_bracket = %d top_backref = %d\n",
if (re->options != 0)
{
- printf("%s%s%s%s%s%s%s%s%s\n",
+ printf("%s%s%s%s%s%s%s%s%s%s\n",
+ ((re->options & PCRE_NOPARTIAL) != 0)? "nopartial " : "",
((re->options & PCRE_ANCHORED) != 0)? "anchored " : "",
((re->options & PCRE_CASELESS) != 0)? "caseless " : "",
((re->options & PCRE_ICHANGED) != 0)? "case state changed " : "",
@@ -5276,27 +5715,46 @@ if (c < 256)
return !negated; /* char found */
}
-/* Now match against the list of large chars or ranges that end with a large
-char. First skip the bit map if present. */
+/* First skip the bit map if present. Then match against the list of Unicode
+properties or large chars or ranges that end with a large char. We won't ever
+encounter XCL_PROP or XCL_NOTPROP when UCP support is not compiled. */
if ((*data++ & XCL_MAP) != 0) data += 32;
while ((t = *data++) != XCL_END)
{
int x, y;
- GETCHARINC(x, data);
if (t == XCL_SINGLE)
{
+ GETCHARINC(x, data);
if (c == x) return !negated;
}
- else
+ else if (t == XCL_RANGE)
{
+ GETCHARINC(x, data);
GETCHARINC(y, data);
if (c >= x && c <= y) return !negated;
}
+
+#ifdef SUPPORT_UCP
+ else /* XCL_PROP & XCL_NOTPROP */
+ {
+ int chartype, othercase;
+ int rqdtype = *data++;
+ int category = ucp_findchar(c, &chartype, &othercase);
+ if (rqdtype >= 128)
+ {
+ if ((rqdtype - 128 == category) == (t == XCL_PROP)) return !negated;
+ }
+ else
+ {
+ if ((rqdtype == chartype) == (t == XCL_PROP)) return !negated;
+ }
+ }
+#endif /* SUPPORT_UCP */
}
-return negated; /* char was not found */
+return negated; /* char did not match */
}
#endif
@@ -5336,7 +5794,7 @@ always used to.
/* These versions of the macros manage a private stack on the heap. Note
that the rd argument of RMATCH isn't actually used. It's the md argument of
-match(), which never actually changes. */
+match(), which never changes. */
#define REGISTER
@@ -5398,7 +5856,6 @@ typedef struct heapframe {
const uschar *Xcallpat;
const uschar *Xcharptr;
const uschar *Xdata;
- const uschar *Xlastptr;
const uschar *Xnext;
const uschar *Xpp;
const uschar *Xprev;
@@ -5413,6 +5870,16 @@ typedef struct heapframe {
unsigned long int Xoriginal_ims;
+#ifdef SUPPORT_UCP
+ int Xprop_type;
+ int Xprop_fail_result;
+ int Xprop_category;
+ int Xprop_chartype;
+ int Xprop_othercase;
+ int Xprop_test_against;
+ int *Xprop_test_variable;
+#endif
+
int Xctype;
int Xfc;
int Xfi;
@@ -5523,10 +5990,11 @@ HEAP_RECURSE:
/* Ditto for the local variables */
-#define callpat frame->Xcallpat
+#ifdef SUPPORT_UTF8
#define charptr frame->Xcharptr
+#endif
+#define callpat frame->Xcallpat
#define data frame->Xdata
-#define lastptr frame->Xlastptr
#define next frame->Xnext
#define pp frame->Xpp
#define prev frame->Xprev
@@ -5541,6 +6009,16 @@ HEAP_RECURSE:
#define original_ims frame->Xoriginal_ims
+#ifdef SUPPORT_UCP
+#define prop_type frame->Xprop_type
+#define prop_fail_result frame->Xprop_fail_result
+#define prop_category frame->Xprop_category
+#define prop_chartype frame->Xprop_chartype
+#define prop_othercase frame->Xprop_othercase
+#define prop_test_against frame->Xprop_test_against
+#define prop_test_variable frame->Xprop_test_variable
+#endif
+
#define ctype frame->Xctype
#define fc frame->Xfc
#define fi frame->Xfi
@@ -5566,24 +6044,36 @@ i, and fc and c, can be the same variables. */
#define fi i
#define fc c
-const uschar *callpat; /* Many of these variables are used ony */
+
+#ifdef SUPPORT_UTF8 /* Many of these variables are used ony */
const uschar *charptr; /* small blocks of the code. My normal */
-const uschar *data; /* style of coding would have declared */
-const uschar *lastptr; /* them within each of those blocks. */
-const uschar *next; /* However, in order to accommodate the */
-const uschar *pp; /* version of this code that uses an */
-const uschar *prev; /* external "stack" implemented on the */
-const uschar *saved_eptr; /* heap, it is easier to declare them */
- /* all here, so the declarations can */
-recursion_info new_recursive; /* be cut out in a block. The only */
- /* declarations within blocks below are */
-BOOL cur_is_word; /* for variables that do not have to */
-BOOL condition; /* be preserved over a recursive call */
-BOOL minimize; /* to RMATCH(). */
+#endif /* style of coding would have declared */
+const uschar *callpat; /* them within each of those blocks. */
+const uschar *data; /* However, in order to accommodate the */
+const uschar *next; /* version of this code that uses an */
+const uschar *pp; /* external "stack" implemented on the */
+const uschar *prev; /* heap, it is easier to declare them */
+const uschar *saved_eptr; /* all here, so the declarations can */
+ /* be cut out in a block. The only */
+recursion_info new_recursive; /* declarations within blocks below are */
+ /* for variables that do not have to */
+BOOL cur_is_word; /* be preserved over a recursive call */
+BOOL condition; /* to RMATCH(). */
+BOOL minimize;
BOOL prev_is_word;
unsigned long int original_ims;
+#ifdef SUPPORT_UCP
+int prop_type;
+int prop_fail_result;
+int prop_category;
+int prop_chartype;
+int prop_othercase;
+int prop_test_against;
+int *prop_test_variable;
+#endif
+
int ctype;
int length;
int max;
@@ -5598,6 +6088,14 @@ int stacksave[REC_STACK_SAVE_MAX];
eptrblock newptrb;
#endif
+/* These statements are here to stop the compiler complaining about unitialized
+variables. */
+
+#ifdef SUPPORT_UCP
+prop_fail_result = 0;
+prop_test_against = 0;
+prop_test_variable = NULL;
+#endif
/* OK, now we can get on with the real code of the function. Recursion is
specified by the macros RMATCH and RRETURN. When NO_RECURSE is *not* defined,
@@ -5629,6 +6127,14 @@ for (;;)
op = *ecode;
minimize = FALSE;
+ /* For partial matching, remember if we ever hit the end of the subject after
+ matching at least one subject character. */
+
+ if (md->partial &&
+ eptr >= md->end_subject &&
+ eptr > md->start_match)
+ md->hitend = TRUE;
+
/* Opening capturing bracket. If there is space in the offset vector, save
the current subject position in the working slot at the top of the vector. We
mustn't change the current values of the data slot, because they may be set
@@ -5883,20 +6389,22 @@ for (;;)
if (pcre_callout != NULL)
{
pcre_callout_block cb;
- cb.version = 0; /* Version 0 of the callout block */
+ cb.version = 1; /* Version 1 of the callout block */
cb.callout_number = ecode[1];
cb.offset_vector = md->offset_vector;
cb.subject = (const char *)md->start_subject;
cb.subject_length = md->end_subject - md->start_subject;
cb.start_match = md->start_match - md->start_subject;
cb.current_position = eptr - md->start_subject;
+ cb.pattern_position = GET(ecode, 2);
+ cb.next_item_length = GET(ecode, 2 + LINK_SIZE);
cb.capture_top = offset_top/2;
cb.capture_last = md->capture_last;
cb.callout_data = md->callout_data;
if ((rrc = (*pcre_callout)(&cb)) > 0) RRETURN(MATCH_NOMATCH);
if (rrc < 0) RRETURN(rrc);
}
- ecode += 2;
+ ecode += 2 + 2*LINK_SIZE;
break;
/* Recursion either matches the current regex, or some subexpression. The
@@ -6297,7 +6805,7 @@ for (;;)
{
if (eptr == md->start_subject) prev_is_word = FALSE; else
{
- lastptr = eptr - 1;
+ const uschar *lastptr = eptr - 1;
while((*lastptr & 0xc0) == 0x80) lastptr--;
GETCHAR(c, lastptr);
prev_is_word = c < 256 && (md->ctypes[c] & ctype_word) != 0;
@@ -6427,6 +6935,63 @@ for (;;)
ecode++;
break;
+#ifdef SUPPORT_UCP
+ /* Check the next character by Unicode property. We will get here only
+ if the support is in the binary; otherwise a compile-time error occurs. */
+
+ case OP_PROP:
+ case OP_NOTPROP:
+ if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
+ GETCHARINCTEST(c, eptr);
+ {
+ int chartype, rqdtype;
+ int othercase;
+ int category = ucp_findchar(c, &chartype, &othercase);
+
+ rqdtype = *(++ecode);
+ ecode++;
+
+ if (rqdtype >= 128)
+ {
+ if ((rqdtype - 128 != category) == (op == OP_PROP))
+ RRETURN(MATCH_NOMATCH);
+ }
+ else
+ {
+ if ((rqdtype != chartype) == (op == OP_PROP))
+ RRETURN(MATCH_NOMATCH);
+ }
+ }
+ break;
+
+ /* Match an extended Unicode sequence. We will get here only if the support
+ is in the binary; otherwise a compile-time error occurs. */
+
+ case OP_EXTUNI:
+ if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
+ GETCHARINCTEST(c, eptr);
+ {
+ int chartype;
+ int othercase;
+ int category = ucp_findchar(c, &chartype, &othercase);
+ if (category == ucp_M) RRETURN(MATCH_NOMATCH);
+ while (eptr < md->end_subject)
+ {
+ int len = 1;
+ if (!md->utf8) c = *eptr; else
+ {
+ GETCHARLEN(c, eptr, len);
+ }
+ category = ucp_findchar(c, &chartype, &othercase);
+ if (category != ucp_M) break;
+ eptr += len;
+ }
+ }
+ ecode++;
+ break;
+#endif
+
+
/* Match a back reference, possibly repeatedly. Look past the end of the
item to see if there is repeat information following. The code is similar
to that for character classes, but repeated for efficiency. Then obey
@@ -6438,7 +7003,7 @@ for (;;)
case OP_REF:
{
offset = GET2(ecode, 1) << 1; /* Doubled ref number */
- ecode += 3; /* Advance past item */
+ ecode += 3; /* Advance past item */
/* If the reference is unset, set the length to be longer than the amount
of subject left; this ensures that every attempt at a match fails. We
@@ -6540,9 +7105,11 @@ for (;;)
/* Match a bit-mapped character class, possibly repeatedly. This op code is
- used when all the characters in the class have values in the range 0-255.
- The only difference between OP_CLASS and OP_NCLASS occurs when a data
- character outside the range is encountered.
+ used when all the characters in the class have values in the range 0-255,
+ and either the matching is caseful, or the characters are in the range
+ 0-127 when UTF-8 processing is enabled. The only difference between
+ OP_CLASS and OP_NCLASS occurs when a data character outside the range is
+ encountered.
First, look past the end of the item to see if there is repeat information
following. Then obey similar code to character type repeats - written out
@@ -6814,38 +7381,82 @@ for (;;)
}
#endif /* End of XCLASS */
- /* Match a run of characters */
+ /* Match a single character, casefully */
+
+ case OP_CHAR:
+#ifdef SUPPORT_UTF8
+ if (md->utf8)
+ {
+ length = 1;
+ ecode++;
+ GETCHARLEN(fc, ecode, length);
+ if (length > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
+ while (length-- > 0) if (*ecode++ != *eptr++) RRETURN(MATCH_NOMATCH);
+ }
+ else
+#endif
- case OP_CHARS:
+ /* Non-UTF-8 mode */
{
- register int slen = ecode[1];
+ if (md->end_subject - eptr < 1) RRETURN(MATCH_NOMATCH);
+ if (ecode[1] != *eptr++) RRETURN(MATCH_NOMATCH);
ecode += 2;
+ }
+ break;
-#ifdef DEBUG /* Sigh. Some compilers never learn. */
- if (eptr >= md->end_subject)
- printf("matching subject <null> against pattern ");
- else
- {
- printf("matching subject ");
- pchars(eptr, slen, TRUE, md);
- printf(" against pattern ");
- }
- pchars(ecode, slen, FALSE, md);
- printf("\n");
-#endif
+ /* Match a single character, caselessly */
- if (slen > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
- if ((ims & PCRE_CASELESS) != 0)
+ case OP_CHARNC:
+#ifdef SUPPORT_UTF8
+ if (md->utf8)
+ {
+ length = 1;
+ ecode++;
+ GETCHARLEN(fc, ecode, length);
+
+ if (length > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
+
+ /* If the pattern character's value is < 128, we have only one byte, and
+ can use the fast lookup table. */
+
+ if (fc < 128)
{
- while (slen-- > 0)
- if (md->lcc[*ecode++] != md->lcc[*eptr++])
- RRETURN(MATCH_NOMATCH);
+ if (md->lcc[*ecode++] != md->lcc[*eptr++]) RRETURN(MATCH_NOMATCH);
}
+
+ /* Otherwise we must pick up the subject character */
+
else
{
- while (slen-- > 0) if (*ecode++ != *eptr++) RRETURN(MATCH_NOMATCH);
+ int dc;
+ GETCHARINC(dc, eptr);
+ ecode += length;
+
+ /* If we have Unicode property support, we can use it to test the other
+ case of the character, if there is one. The result of ucp_findchar() is
+ < 0 if the char isn't found, and othercase is returned as zero if there
+ isn't one. */
+
+ if (fc != dc)
+ {
+#ifdef SUPPORT_UCP
+ int chartype;
+ int othercase;
+ if (ucp_findchar(fc, &chartype, &othercase) < 0 || dc != othercase)
+#endif
+ RRETURN(MATCH_NOMATCH);
+ }
}
}
+ else
+#endif /* SUPPORT_UTF8 */
+
+ /* Non-UTF-8 mode */
+ {
+ if (md->end_subject - eptr < 1) RRETURN(MATCH_NOMATCH);
+ if (md->lcc[ecode[1]] != md->lcc[*eptr++]) RRETURN(MATCH_NOMATCH);
+ ecode += 2;
+ }
break;
/* Match a single character repeatedly; different opcodes share code. */
@@ -6889,15 +7500,33 @@ for (;;)
if (min * length > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
ecode += length;
- /* Handle multibyte character matching specially here. There is no
- support for any kind of casing for multibyte characters. */
+ /* Handle multibyte character matching specially here. There is
+ support for caseless matching if UCP support is present. */
if (length > 1)
{
+ int oclength = 0;
+ uschar occhars[8];
+
+#ifdef SUPPORT_UCP
+ int othercase;
+ int chartype;
+ if ((ims & PCRE_CASELESS) != 0 &&
+ ucp_findchar(fc, &chartype, &othercase) >= 0 &&
+ othercase > 0)
+ oclength = ord2utf8(othercase, occhars);
+#endif /* SUPPORT_UCP */
+
for (i = 1; i <= min; i++)
{
- if (memcmp(eptr, charptr, length) != 0) RRETURN(MATCH_NOMATCH);
- eptr += length;
+ if (memcmp(eptr, charptr, length) == 0) eptr += length;
+ /* Need braces because of following else */
+ else if (oclength == 0) { RRETURN(MATCH_NOMATCH); }
+ else
+ {
+ if (memcmp(eptr, occhars, oclength) != 0) RRETURN(MATCH_NOMATCH);
+ eptr += oclength;
+ }
}
if (min == max) continue;
@@ -6908,11 +7537,15 @@ for (;;)
{
RMATCH(rrc, eptr, ecode, offset_top, md, ims, eptrb, 0);
if (rrc != MATCH_NOMATCH) RRETURN(rrc);
- if (fi >= max ||
- eptr >= md->end_subject ||
- memcmp(eptr, charptr, length) != 0)
- RRETURN(MATCH_NOMATCH);
- eptr += length;
+ if (fi >= max || eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
+ if (memcmp(eptr, charptr, length) == 0) eptr += length;
+ /* Need braces because of following else */
+ else if (oclength == 0) { RRETURN(MATCH_NOMATCH); }
+ else
+ {
+ if (memcmp(eptr, occhars, oclength) != 0) RRETURN(MATCH_NOMATCH);
+ eptr += oclength;
+ }
}
/* Control never gets here */
}
@@ -6921,10 +7554,14 @@ for (;;)
pp = eptr;
for (i = min; i < max; i++)
{
- if (eptr > md->end_subject - length ||
- memcmp(eptr, charptr, length) != 0)
- break;
- eptr += length;
+ if (eptr > md->end_subject - length) break;
+ if (memcmp(eptr, charptr, length) == 0) eptr += length;
+ else if (oclength == 0) break;
+ else
+ {
+ if (memcmp(eptr, occhars, oclength) != 0) break;
+ eptr += oclength;
+ }
}
while (eptr >= pp)
{
@@ -6942,7 +7579,7 @@ for (;;)
value of fc will always be < 128. */
}
else
-#endif
+#endif /* SUPPORT_UTF8 */
/* When not in UTF-8 mode, load a single-byte character. */
{
@@ -7088,9 +7725,9 @@ for (;;)
max = rep_max[c]; /* zero for max => infinity */
if (max == 0) max = INT_MAX;
- /* Common code for all repeated single-character (less than 255) matches.
- We can give up quickly if there are fewer than the minimum number of
- characters left in the subject. */
+ /* Common code for all repeated single-byte matches. We can give up quickly
+ if there are fewer than the minimum number of bytes left in the
+ subject. */
REPEATNOTCHAR:
if (min > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
@@ -7358,16 +7995,77 @@ for (;;)
REPEATTYPE:
ctype = *ecode++; /* Code for the character type */
+#ifdef SUPPORT_UCP
+ if (ctype == OP_PROP || ctype == OP_NOTPROP)
+ {
+ prop_fail_result = ctype == OP_NOTPROP;
+ prop_type = *ecode++;
+ if (prop_type >= 128)
+ {
+ prop_test_against = prop_type - 128;
+ prop_test_variable = &prop_category;
+ }
+ else
+ {
+ prop_test_against = prop_type;
+ prop_test_variable = &prop_chartype;
+ }
+ }
+ else prop_type = -1;
+#endif
+
/* First, ensure the minimum number of matches are present. Use inline
code for maximizing the speed, and do the type test once at the start
(i.e. keep it out of the loop). Also we can test that there are at least
the minimum number of bytes before we start. This isn't as effective in
UTF-8 mode, but it does no harm. Separate the UTF-8 code completely as that
- is tidier. */
+ is tidier. Also separate the UCP code, which can be the same for both UTF-8
+ and single-bytes. */
if (min > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
if (min > 0)
{
+#ifdef SUPPORT_UCP
+ if (prop_type > 0)
+ {
+ for (i = 1; i <= min; i++)
+ {
+ GETCHARINC(c, eptr);
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if ((*prop_test_variable == prop_test_against) == prop_fail_result)
+ RRETURN(MATCH_NOMATCH);
+ }
+ }
+
+ /* Match extended Unicode sequences. We will get here only if the
+ support is in the binary; otherwise a compile-time error occurs. */
+
+ else if (ctype == OP_EXTUNI)
+ {
+ for (i = 1; i <= min; i++)
+ {
+ GETCHARINCTEST(c, eptr);
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if (prop_category == ucp_M) RRETURN(MATCH_NOMATCH);
+ while (eptr < md->end_subject)
+ {
+ int len = 1;
+ if (!md->utf8) c = *eptr; else
+ {
+ GETCHARLEN(c, eptr, len);
+ }
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if (prop_category != ucp_M) break;
+ eptr += len;
+ }
+ }
+ }
+
+ else
+#endif /* SUPPORT_UCP */
+
+/* Handle all other cases when the coding is UTF-8 */
+
#ifdef SUPPORT_UTF8
if (md->utf8) switch(ctype)
{
@@ -7390,7 +8088,7 @@ for (;;)
{
if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
GETCHARINC(c, eptr);
- if (c < 256 && (md->ctypes[c] & ctype_digit) != 0)
+ if (c < 128 && (md->ctypes[c] & ctype_digit) != 0)
RRETURN(MATCH_NOMATCH);
}
break;
@@ -7444,11 +8142,16 @@ for (;;)
/* No need to skip more bytes - we know it's a 1-byte character */
}
break;
- }
+
+ default:
+ RRETURN(PCRE_ERROR_INTERNAL);
+ } /* End switch(ctype) */
+
else
-#endif
+#endif /* SUPPORT_UTF8 */
- /* Code for the non-UTF-8 case for minimum matching */
+ /* Code for the non-UTF-8 case for minimum matching of operators other
+ than OP_PROP and OP_NOTPROP. */
switch(ctype)
{
@@ -7496,6 +8199,9 @@ for (;;)
if ((md->ctypes[*eptr++] & ctype_word) == 0)
RRETURN(MATCH_NOMATCH);
break;
+
+ default:
+ RRETURN(PCRE_ERROR_INTERNAL);
}
}
@@ -7504,10 +8210,56 @@ for (;;)
if (min == max) continue;
/* If minimizing, we have to test the rest of the pattern before each
- subsequent match. Again, separate the UTF-8 case for speed. */
+ subsequent match. Again, separate the UTF-8 case for speed, and also
+ separate the UCP cases. */
if (minimize)
{
+#ifdef SUPPORT_UCP
+ if (prop_type > 0)
+ {
+ for (fi = min;; fi++)
+ {
+ RMATCH(rrc, eptr, ecode, offset_top, md, ims, eptrb, 0);
+ if (rrc != MATCH_NOMATCH) RRETURN(rrc);
+ if (fi >= max || eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
+ GETCHARINC(c, eptr);
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if ((*prop_test_variable == prop_test_against) == prop_fail_result)
+ RRETURN(MATCH_NOMATCH);
+ }
+ }
+
+ /* Match extended Unicode sequences. We will get here only if the
+ support is in the binary; otherwise a compile-time error occurs. */
+
+ else if (ctype == OP_EXTUNI)
+ {
+ for (fi = min;; fi++)
+ {
+ RMATCH(rrc, eptr, ecode, offset_top, md, ims, eptrb, 0);
+ if (rrc != MATCH_NOMATCH) RRETURN(rrc);
+ if (fi >= max || eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
+ GETCHARINCTEST(c, eptr);
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if (prop_category == ucp_M) RRETURN(MATCH_NOMATCH);
+ while (eptr < md->end_subject)
+ {
+ int len = 1;
+ if (!md->utf8) c = *eptr; else
+ {
+ GETCHARLEN(c, eptr, len);
+ }
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if (prop_category != ucp_M) break;
+ eptr += len;
+ }
+ }
+ }
+
+ else
+#endif /* SUPPORT_UCP */
+
#ifdef SUPPORT_UTF8
/* UTF-8 mode */
if (md->utf8)
@@ -7557,6 +8309,9 @@ for (;;)
if (c >= 256 && (md->ctypes[c] & ctype_word) == 0)
RRETURN(MATCH_NOMATCH);
break;
+
+ default:
+ RRETURN(PCRE_ERROR_INTERNAL);
}
}
}
@@ -7602,6 +8357,9 @@ for (;;)
case OP_WORDCHAR:
if ((md->ctypes[c] & ctype_word) == 0) RRETURN(MATCH_NOMATCH);
break;
+
+ default:
+ RRETURN(PCRE_ERROR_INTERNAL);
}
}
}
@@ -7610,11 +8368,85 @@ for (;;)
/* If maximizing it is worth using inline code for speed, doing the type
test once at the start (i.e. keep it out of the loop). Again, keep the
- UTF-8 stuff separate. */
+ UTF-8 and UCP stuff separate. */
else
{
- pp = eptr;
+ pp = eptr; /* Remember where we started */
+
+#ifdef SUPPORT_UCP
+ if (prop_type > 0)
+ {
+ for (i = min; i < max; i++)
+ {
+ int len = 1;
+ if (eptr >= md->end_subject) break;
+ GETCHARLEN(c, eptr, len);
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if ((*prop_test_variable == prop_test_against) == prop_fail_result)
+ break;
+ eptr+= len;
+ }
+
+ /* eptr is now past the end of the maximum run */
+
+ for(;;)
+ {
+ RMATCH(rrc, eptr, ecode, offset_top, md, ims, eptrb, 0);
+ if (rrc != MATCH_NOMATCH) RRETURN(rrc);
+ if (eptr-- == pp) break; /* Stop if tried at original pos */
+ BACKCHAR(eptr);
+ }
+ }
+
+ /* Match extended Unicode sequences. We will get here only if the
+ support is in the binary; otherwise a compile-time error occurs. */
+
+ else if (ctype == OP_EXTUNI)
+ {
+ for (i = min; i < max; i++)
+ {
+ if (eptr >= md->end_subject) break;
+ GETCHARINCTEST(c, eptr);
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if (prop_category == ucp_M) break;
+ while (eptr < md->end_subject)
+ {
+ int len = 1;
+ if (!md->utf8) c = *eptr; else
+ {
+ GETCHARLEN(c, eptr, len);
+ }
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if (prop_category != ucp_M) break;
+ eptr += len;
+ }
+ }
+
+ /* eptr is now past the end of the maximum run */
+
+ for(;;)
+ {
+ RMATCH(rrc, eptr, ecode, offset_top, md, ims, eptrb, 0);
+ if (rrc != MATCH_NOMATCH) RRETURN(rrc);
+ if (eptr-- == pp) break; /* Stop if tried at original pos */
+ for (;;) /* Move back over one extended */
+ {
+ int len = 1;
+ BACKCHAR(eptr);
+ if (!md->utf8) c = *eptr; else
+ {
+ GETCHARLEN(c, eptr, len);
+ }
+ prop_category = ucp_findchar(c, &prop_chartype, &prop_othercase);
+ if (prop_category != ucp_M) break;
+ eptr--;
+ }
+ }
+ }
+
+ else
+#endif /* SUPPORT_UCP */
#ifdef SUPPORT_UTF8
/* UTF-8 mode */
@@ -7745,6 +8577,9 @@ for (;;)
eptr+= len;
}
break;
+
+ default:
+ RRETURN(PCRE_ERROR_INTERNAL);
}
/* eptr is now past the end of the maximum run */
@@ -7835,6 +8670,9 @@ for (;;)
eptr++;
}
break;
+
+ default:
+ RRETURN(PCRE_ERROR_INTERNAL);
}
/* eptr is now past the end of the maximum run */
@@ -7889,7 +8727,6 @@ Undefine all the macros that were defined above to handle this. */
#undef callpat
#undef charptr
#undef data
-#undef lastptr
#undef next
#undef pp
#undef prev
@@ -7940,7 +8777,7 @@ portions of the string if it matches. Two elements in the vector are set for
each substring: the offsets to the start and end of the substring.
Arguments:
- external_re points to the compiled expression
+ argument_re points to the compiled expression
extra_data points to extra data or is NULL
subject points to the subject string
length length of subject string (may contain binary zeros)
@@ -7956,7 +8793,7 @@ Returns: > 0 => success; value is the number of elements filled in
*/
EXPORT int
-pcre_exec(const pcre *external_re, const pcre_extra *extra_data,
+pcre_exec(const pcre *argument_re, const pcre_extra *extra_data,
const char *subject, int length, int start_offset, int options, int *offsets,
int offsetcount)
{
@@ -7971,18 +8808,25 @@ BOOL startline;
BOOL first_byte_caseless = FALSE;
BOOL req_byte_caseless = FALSE;
match_data match_block;
+const uschar *tables;
const uschar *start_bits = NULL;
const uschar *start_match = (const uschar *)subject + start_offset;
const uschar *end_subject;
const uschar *req_byte_ptr = start_match - 1;
+
+pcre_study_data internal_study;
const pcre_study_data *study;
-const real_pcre *re = (const real_pcre *)external_re;
+
+real_pcre internal_re;
+const real_pcre *external_re = (const real_pcre *)argument_re;
+const real_pcre *re = external_re;
/* Plausibility checks */
if ((options & ~PUBLIC_EXEC_OPTIONS) != 0) return PCRE_ERROR_BADOPTION;
if (re == NULL || subject == NULL ||
(offsets == NULL && offsetcount > 0)) return PCRE_ERROR_NULL;
+if (offsetcount < 0) return PCRE_ERROR_BADCOUNT;
/* Fish out the optional data from the extra_data structure, first setting
the default values. */
@@ -7991,6 +8835,10 @@ study = NULL;
match_block.match_limit = MATCH_LIMIT;
match_block.callout_data = NULL;
+/* The table pointer is always in native byte order. */
+
+tables = external_re->tables;
+
if (extra_data != NULL)
{
register unsigned int flags = extra_data->flags;
@@ -8000,17 +8848,37 @@ if (extra_data != NULL)
match_block.match_limit = extra_data->match_limit;
if ((flags & PCRE_EXTRA_CALLOUT_DATA) != 0)
match_block.callout_data = extra_data->callout_data;
+ if ((flags & PCRE_EXTRA_TABLES) != 0) tables = extra_data->tables;
}
-/* Now we have re supposedly pointing to the regex */
+/* If the exec call supplied NULL for tables, use the inbuilt ones. This
+is a feature that makes it possible to save compiled regex and re-use them
+in other programs later. */
-if (re->magic_number != MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;
+if (tables == NULL) tables = pcre_default_tables;
+
+/* Check that the first field in the block is the magic number. If it is not,
+test for a regex that was compiled on a host of opposite endianness. If this is
+the case, flipped values are put in internal_re and internal_study if there was
+study data too. */
+
+if (re->magic_number != MAGIC_NUMBER)
+ {
+ re = try_flipped(re, &internal_re, study, &internal_study);
+ if (re == NULL) return PCRE_ERROR_BADMAGIC;
+ if (study != NULL) study = &internal_study;
+ }
+
+/* Set up other data */
anchored = ((re->options | options) & PCRE_ANCHORED) != 0;
startline = (re->options & PCRE_STARTLINE) != 0;
-match_block.start_code =
- (const uschar *)re + sizeof(real_pcre) + re->name_count * re->name_entry_size;
+/* The code starts after the real_pcre block and the capture name table. */
+
+match_block.start_code = (const uschar *)external_re + re->name_table_offset +
+ re->name_count * re->name_entry_size;
+
match_block.start_subject = (const uschar *)subject;
match_block.start_offset = start_offset;
match_block.end_subject = match_block.start_subject + length;
@@ -8022,11 +8890,19 @@ match_block.utf8 = (re->options & PCRE_UTF8) != 0;
match_block.notbol = (options & PCRE_NOTBOL) != 0;
match_block.noteol = (options & PCRE_NOTEOL) != 0;
match_block.notempty = (options & PCRE_NOTEMPTY) != 0;
+match_block.partial = (options & PCRE_PARTIAL) != 0;
+match_block.hitend = FALSE;
match_block.recursive = NULL; /* No recursion at top level */
-match_block.lcc = re->tables + lcc_offset;
-match_block.ctypes = re->tables + ctypes_offset;
+match_block.lcc = tables + lcc_offset;
+match_block.ctypes = tables + ctypes_offset;
+
+/* Partial matching is supported only for a restricted set of regexes at the
+moment. */
+
+if (match_block.partial && (re->options & PCRE_NOPARTIAL) != 0)
+ return PCRE_ERROR_BADPARTIAL;
/* Check a UTF-8 string if required. Unfortunately there's no way of passing
back the character offset. */
@@ -8055,7 +8931,7 @@ restoring at the exit of a group is easy. */
ims = re->options & (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL);
/* If the expression has got more back references than the offsets supplied can
-hold, we get a temporary bit of working store to use during the matching.
+hold, we get a temporary chunk of working store to use during the matching.
Otherwise, we can use the vector supplied, rounding down its size to a multiple
of 3. */
@@ -8121,7 +8997,7 @@ if ((re->options & PCRE_REQCHSET) != 0)
{
req_byte = re->req_byte & 255;
req_byte_caseless = (re->req_byte & REQ_CASELESS) != 0;
- req_byte2 = (re->tables + fcc_offset)[req_byte]; /* case flipped */
+ req_byte2 = (tables + fcc_offset)[req_byte]; /* case flipped */
}
/* Loop for handling unanchored repeated matching attempts; for anchored regexs
@@ -8129,12 +9005,14 @@ the loop runs just once. */
do
{
- register int *iptr = match_block.offset_vector;
- register int *iend = iptr + resetcount;
-
/* Reset the maximum number of extractions we might see. */
- while (iptr < iend) *iptr++ = -1;
+ if (match_block.offset_vector != NULL)
+ {
+ register int *iptr = match_block.offset_vector;
+ register int *iend = iptr + resetcount;
+ while (iptr < iend) *iptr++ = -1;
+ }
/* Advance to a unique first char if possible */
@@ -8166,7 +9044,7 @@ do
{
while (start_match < end_subject)
{
- register int c = *start_match;
+ register unsigned int c = *start_match;
if ((start_bits[c/8] & (1 << (c&7))) == 0) start_match++; else break;
}
}
@@ -8188,9 +9066,14 @@ do
HOWEVER: when the subject string is very, very long, searching to its end can
take a long time, and give bad performance on quite ordinary patterns. This
showed up when somebody was matching /^C/ on a 32-megabyte string... so we
- don't do this when the string is sufficiently long. */
+ don't do this when the string is sufficiently long.
+
+ ALSO: this processing is disabled when partial matching is requested.
+ */
- if (req_byte >= 0 && end_subject - start_match < REQ_BYTE_MAX)
+ if (req_byte >= 0 &&
+ end_subject - start_match < REQ_BYTE_MAX &&
+ !match_block.partial)
{
register const uschar *p = start_match + ((first_byte >= 0)? 1 : 0);
@@ -8245,7 +9128,8 @@ do
start_match++;
#ifdef SUPPORT_UTF8
if (match_block.utf8)
- while((*start_match & 0xc0) == 0x80) start_match++;
+ while(start_match < end_subject && (*start_match & 0xc0) == 0x80)
+ start_match++;
#endif
continue;
}
@@ -8296,9 +9180,16 @@ if (using_temporary_offsets)
(pcre_free)(match_block.offset_vector);
}
-DPRINTF((">>>> returning PCRE_ERROR_NOMATCH\n"));
-
-return PCRE_ERROR_NOMATCH;
+if (match_block.partial && match_block.hitend)
+ {
+ DPRINTF((">>>> returning PCRE_ERROR_PARTIAL\n"));
+ return PCRE_ERROR_PARTIAL;
+ }
+else
+ {
+ DPRINTF((">>>> returning PCRE_ERROR_NOMATCH\n"));
+ return PCRE_ERROR_NOMATCH;
+ }
}
/* End of pcre.c */
diff --git a/pcre.in b/pcre.in
index 5ad0d2e..163cf94 100644
--- a/pcre.in
+++ b/pcre.in
@@ -2,7 +2,39 @@
* Perl-Compatible Regular Expressions *
*************************************************/
-/* Copyright (c) 1997-2003 University of Cambridge */
+/* In its original form, this is the .in file that is transformed by
+"configure" into pcre.h.
+
+ Copyright (c) 1997-2004 University of Cambridge
+
+-----------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-----------------------------------------------------------------------------
+*/
#ifndef _PCRE_H
#define _PCRE_H
@@ -58,6 +90,8 @@ extern "C" {
#define PCRE_UTF8 0x0800
#define PCRE_NO_AUTO_CAPTURE 0x1000
#define PCRE_NO_UTF8_CHECK 0x2000
+#define PCRE_AUTO_CALLOUT 0x4000
+#define PCRE_PARTIAL 0x8000
/* Exec-time and get/set-time error codes */
@@ -72,6 +106,10 @@ extern "C" {
#define PCRE_ERROR_CALLOUT (-9) /* Never used by PCRE itself */
#define PCRE_ERROR_BADUTF8 (-10)
#define PCRE_ERROR_BADUTF8_OFFSET (-11)
+#define PCRE_ERROR_PARTIAL (-12)
+#define PCRE_ERROR_BADPARTIAL (-13)
+#define PCRE_ERROR_INTERNAL (-14)
+#define PCRE_ERROR_BADCOUNT (-15)
/* Request types for pcre_fullinfo() */
@@ -87,6 +125,7 @@ extern "C" {
#define PCRE_INFO_NAMECOUNT 8
#define PCRE_INFO_NAMETABLE 9
#define PCRE_INFO_STUDYSIZE 10
+#define PCRE_INFO_DEFAULT_TABLES 11
/* Request types for pcre_config() */
@@ -96,12 +135,14 @@ extern "C" {
#define PCRE_CONFIG_POSIX_MALLOC_THRESHOLD 3
#define PCRE_CONFIG_MATCH_LIMIT 4
#define PCRE_CONFIG_STACKRECURSE 5
+#define PCRE_CONFIG_UNICODE_PROPERTIES 6
/* Bit flags for the pcre_extra structure */
#define PCRE_EXTRA_STUDY_DATA 0x0001
#define PCRE_EXTRA_MATCH_LIMIT 0x0002
#define PCRE_EXTRA_CALLOUT_DATA 0x0004
+#define PCRE_EXTRA_TABLES 0x0008
/* Types */
@@ -109,13 +150,15 @@ struct real_pcre; /* declaration; the definition is private */
typedef struct real_pcre pcre;
/* The structure for passing additional data to pcre_exec(). This is defined in
-such as way as to be extensible. */
+such as way as to be extensible. Always add new fields at the end, in order to
+remain compatible. */
typedef struct pcre_extra {
unsigned long int flags; /* Bits for which fields are set */
void *study_data; /* Opaque data from pcre_study() */
unsigned long int match_limit; /* Maximum number of calls to match() */
void *callout_data; /* Data passed back in callouts */
+ const unsigned char *tables; /* Pointer to character tables */
} pcre_extra;
/* The structure for passing out data via the pcre_callout_function. We use a
@@ -131,10 +174,13 @@ typedef struct pcre_callout_block {
const char *subject; /* The subject being matched */
int subject_length; /* The length of the subject */
int start_match; /* Offset to start of this match attempt */
- int current_position; /* Where we currently are */
+ int current_position; /* Where we currently are in the subject */
int capture_top; /* Max current capture */
int capture_last; /* Most recently closed capture */
void *callout_data; /* Data passed in with the call */
+ /* ------------------- Added for Version 1 -------------------------- */
+ int pattern_position; /* Offset to next item in the pattern */
+ int next_item_length; /* Length of next item in the pattern */
/* ------------------------------------------------------------------ */
} pcre_callout_block;
diff --git a/pcredemo.c b/pcredemo.c
index 3c827e7..3817203 100644
--- a/pcredemo.c
+++ b/pcredemo.c
@@ -7,10 +7,10 @@ of calling the PCRE regular expression library from a C program. See the
pcresample documentation for a short discussion.
Compile thuswise:
- gcc -Wall pcredemo.c -I/opt/local/include -L/opt/local/lib \
- -R/opt/local/lib -lpcre
+ gcc -Wall pcredemo.c -I/usr/local/include -L/usr/local/lib \
+ -R/usr/local/lib -lpcre
-Replace "/opt/local/include" and "/opt/local/lib" with wherever the include and
+Replace "/usr/local/include" and "/usr/local/lib" with wherever the include and
library files for PCRE are installed on your system. Only some operating
systems (e.g. Solaris) use the -R option.
*/
@@ -39,12 +39,13 @@ int subject_length;
int rc, i;
-/*************************************************************************
-* First, sort out the command line. There is only one possible option at *
-* the moment, "-g" to request repeated matching to find all occurrences, *
-* like Perl's /g option. We set the variable find_all non-zero if it is *
-* present. Apart from that, there must be exactly two arguments. *
-*************************************************************************/
+/**************************************************************************
+* First, sort out the command line. There is only one possible option at *
+* the moment, "-g" to request repeated matching to find all occurrences, *
+* like Perl's /g option. We set the variable find_all to a non-zero value *
+* if the -g option is present. Apart from that, there must be exactly two *
+* arguments. *
+**************************************************************************/
find_all = 0;
for (i = 1; i < argc; i++)
@@ -90,7 +91,7 @@ if (re == NULL)
/*************************************************************************
* If the compilation succeeded, we call PCRE again, in order to do a *
-* pattern match against the subject string. This just does ONE match. If *
+* pattern match against the subject string. This does just ONE match. If *
* further matching is needed, it will be done below. *
*************************************************************************/
@@ -116,6 +117,7 @@ if (rc < 0)
*/
default: printf("Matching error %d\n", rc); break;
}
+ free(re); /* Release memory used for the compiled pattern */
return 1;
}
@@ -149,12 +151,12 @@ for (i = 0; i < rc; i++)
}
-/*************************************************************************
-* That concludes the basic part of this demonstration program. We have *
-* compiled a pattern, and performed a single match. The code that follows*
-* first shows how to access named substrings, and then how to code for *
-* repeated matches on the same subject. *
-*************************************************************************/
+/**************************************************************************
+* That concludes the basic part of this demonstration program. We have *
+* compiled a pattern, and performed a single match. The code that follows *
+* first shows how to access named substrings, and then how to code for *
+* repeated matches on the same subject. *
+**************************************************************************/
/* See if there are any named substrings, and if so, show them by name. First
we have to extract the count of named parentheses from the pattern. */
@@ -219,7 +221,11 @@ if (namecount <= 0) printf("No named substrings\n"); else
* proceed round the loop. *
*************************************************************************/
-if (!find_all) return 0; /* Finish unless -g was given */
+if (!find_all)
+ {
+ free(re); /* Release the memory used for the compiled pattern */
+ return 0; /* Finish unless -g was given */
+ }
/* Loop for second and subsequent matches */
@@ -270,6 +276,7 @@ for (;;)
if (rc < 0)
{
printf("Matching error %d\n", rc);
+ free(re); /* Release memory used for the compiled pattern */
return 1;
}
@@ -310,6 +317,7 @@ for (;;)
} /* End of loop to find second and subsequent matches */
printf("\n");
+free(re); /* Release memory used for the compiled pattern */
return 0;
}
diff --git a/pcregrep.c b/pcregrep.c
index 7a06993..21b2a9b 100644
--- a/pcregrep.c
+++ b/pcregrep.c
@@ -4,7 +4,38 @@
/* This is a grep program that uses the PCRE regular expression library to do
its pattern matching. On a Unix or Win32 system it can recurse into
-directories. */
+directories.
+
+ Copyright (c) 1997-2004 University of Cambridge
+
+-----------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-----------------------------------------------------------------------------
+*/
#include <ctype.h>
#include <stdio.h>
diff --git a/pcreposix.c b/pcreposix.c
index 856c97b..1e8b6a7 100644
--- a/pcreposix.c
+++ b/pcreposix.c
@@ -12,26 +12,34 @@ functions.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997-2003 University of Cambridge
+ Copyright (c) 1997-2004 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
*/
@@ -48,7 +56,7 @@ static const char *const estring[] = {
ERR11, ERR12, ERR13, ERR14, ERR15, ERR16, ERR17, ERR18, ERR19, ERR20,
ERR21, ERR22, ERR23, ERR24, ERR25, ERR26, ERR27, ERR29, ERR29, ERR30,
ERR31, ERR32, ERR33, ERR34, ERR35, ERR36, ERR37, ERR38, ERR39, ERR40,
- ERR41, ERR42, ERR43, ERR44 };
+ ERR41, ERR42, ERR43, ERR44, ERR45, ERR46, ERR47 };
static const int eint[] = {
REG_EESCAPE, /* "\\ at end of pattern" */
@@ -87,14 +95,17 @@ static const int eint[] = {
REG_BADPAT, /* "character value in \x{...} sequence is too large" */
REG_BADPAT, /* "invalid condition (?(0)" */
REG_BADPAT, /* "\\C not allowed in lookbehind assertion" */
- REG_EESCAPE, /* "PCRE does not support \\L, \\l, \\N, \\P, \\p, \\U, \\u, or \\X" */
+ REG_EESCAPE, /* "PCRE does not support \\L, \\l, \\N, \\U, or \\u" */
REG_BADPAT, /* "number after (?C is > 255" */
REG_BADPAT, /* "closing ) for (?C expected" */
REG_BADPAT, /* "recursive call could loop indefinitely" */
REG_BADPAT, /* "unrecognized character after (?P" */
REG_BADPAT, /* "syntax error after (?P" */
REG_BADPAT, /* "two named groups have the same name" */
- REG_BADPAT /* "invalid UTF-8 string" */
+ REG_BADPAT, /* "invalid UTF-8 string" */
+ REG_BADPAT, /* "support for \\P, \\p, and \\X has not been compiled" */
+ REG_BADPAT, /* "malformed \\P or \\p sequence" */
+ REG_BADPAT /* "unknown property name after \\P or \\p" */
};
/* Table of texts corresponding to POSIX error codes */
diff --git a/pcreposix.h b/pcreposix.h
index 2b97bf4..a8056bd 100644
--- a/pcreposix.h
+++ b/pcreposix.h
@@ -2,14 +2,43 @@
* Perl-Compatible Regular Expressions *
*************************************************/
-/* Copyright (c) 1997-2003 University of Cambridge */
-
#ifndef _PCREPOSIX_H
#define _PCREPOSIX_H
/* This is the header for the POSIX wrapper interface to the PCRE Perl-
Compatible Regular Expression library. It defines the things POSIX says should
-be there. I hope. */
+be there. I hope.
+
+ Copyright (c) 1997-2004 University of Cambridge
+
+-----------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-----------------------------------------------------------------------------
+*/
/* Have to include stdlib.h in order to ensure that size_t is defined. */
diff --git a/pcretest.c b/pcretest.c
index bcc661b..e531cc1 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -4,7 +4,37 @@
/* This program was hacked up as a tester for PCRE. I really should have
written it more tidily in the first place. Will I ever learn? It has grown and
-been extended and consequently is now rather untidy in places. */
+been extended and consequently is now rather untidy in places.
+
+-----------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-----------------------------------------------------------------------------
+*/
+
#include <ctype.h>
#include <stdio.h>
@@ -12,6 +42,7 @@ been extended and consequently is now rather untidy in places. */
#include <stdlib.h>
#include <time.h>
#include <locale.h>
+#include <errno.h>
/* We need the internal info for displaying the results of pcre_study(). Also
for getting the opcodes for showing compiled code. */
@@ -35,9 +66,10 @@ Makefile. */
#endif
#endif
-#define LOOPREPEAT 50000
+#define LOOPREPEAT 500000
#define BUFFER_SIZE 30000
+#define PBUFFER_SIZE BUFFER_SIZE
#define DBUFFER_SIZE BUFFER_SIZE
@@ -52,6 +84,8 @@ static int show_malloc;
static int use_utf8;
static size_t gotten_store;
+static uschar *pbuffer = NULL;
+
static const int utf8_table1[] = {
0x0000007f, 0x000007ff, 0x0000ffff, 0x001fffff, 0x03ffffff, 0x7fffffff};
@@ -71,10 +105,13 @@ static const int utf8_table3[] = {
/* The code for doing this is held in a separate file that is also included in
pcre.c when it is compiled with the debug switch. It defines a function called
print_internals(), which uses a table of opcode lengths defined by the macro
-OP_LENGTHS, whose name must be OP_lengths. */
+OP_LENGTHS, whose name must be OP_lengths. It also uses a table that translates
+Unicode property names to numbers; this is kept in a separate file. */
static uschar OP_lengths[] = { OP_LENGTHS };
+#include "ucp.h"
+#include "ucptypetable.c"
#include "printint.c"
@@ -269,7 +306,7 @@ data is not zero. */
static int callout(pcre_callout_block *cb)
{
FILE *f = (first_callout | callout_extra)? outfile : NULL;
-int i, pre_start, post_start;
+int i, pre_start, post_start, subject_length;
if (callout_extra)
{
@@ -300,16 +337,26 @@ pre_start = pchars((unsigned char *)cb->subject, cb->start_match, f);
post_start = pchars((unsigned char *)(cb->subject + cb->start_match),
cb->current_position - cb->start_match, f);
+subject_length = pchars((unsigned char *)cb->subject, cb->subject_length, NULL);
+
(void)pchars((unsigned char *)(cb->subject + cb->current_position),
cb->subject_length - cb->current_position, f);
if (f != NULL) fprintf(f, "\n");
/* Always print appropriate indicators, with callout number if not already
-shown */
+shown. For automatic callouts, show the pattern offset. */
-if (callout_extra) fprintf(outfile, " ");
- else fprintf(outfile, "%3d ", cb->callout_number);
+if (cb->callout_number == 255)
+ {
+ fprintf(outfile, "%+3d ", cb->pattern_position);
+ if (cb->pattern_position > 99) fprintf(outfile, "\n ");
+ }
+else
+ {
+ if (callout_extra) fprintf(outfile, " ");
+ else fprintf(outfile, "%3d ", cb->callout_number);
+ }
for (i = 0; i < pre_start; i++) fprintf(outfile, " ");
fprintf(outfile, "^");
@@ -320,6 +367,12 @@ if (post_start > 0)
fprintf(outfile, "^");
}
+for (i = 0; i < subject_length - pre_start - post_start + 4; i++)
+ fprintf(outfile, " ");
+
+fprintf(outfile, "%.*s", (cb->next_item_length == 0)? 1 : cb->next_item_length,
+ pbuffer + cb->pattern_position);
+
fprintf(outfile, "\n");
first_callout = 0;
@@ -396,6 +449,23 @@ if ((rc = pcre_fullinfo(re, study, option, ptr)) < 0)
/*************************************************
+* Byte flipping function *
+*************************************************/
+
+static long int
+byteflip(long int value, int n)
+{
+if (n == 2) return ((value & 0x00ff) << 8) | ((value & 0xff00) >> 8);
+return ((value & 0x000000ff) << 24) |
+ ((value & 0x0000ff00) << 8) |
+ ((value & 0x00ff0000) >> 8) |
+ ((value & 0xff000000) >> 24);
+}
+
+
+
+
+/*************************************************
* Main Program *
*************************************************/
@@ -429,8 +499,15 @@ when I am debugging. */
buffer = (unsigned char *)malloc(BUFFER_SIZE);
dbuffer = (unsigned char *)malloc(DBUFFER_SIZE);
+pbuffer = (unsigned char *)malloc(PBUFFER_SIZE);
+
+/* The outfile variable is static so that new_malloc can use it. The _setmode()
+stuff is some magic that I don't understand, but which apparently does good
+things in Windows. It's related to line terminations. */
-/* Static so that new_malloc can use it. */
+#if defined(_WIN32) || defined(WIN32)
+_setmode( _fileno( stdout ), 0x8000 );
+#endif /* defined(_WIN32) || defined(WIN32) */
outfile = stdout;
@@ -462,6 +539,8 @@ while (argc > 1 && argv[op][0] == '-')
printf("Compiled with\n");
(void)pcre_config(PCRE_CONFIG_UTF8, &rc);
printf(" %sUTF-8 support\n", rc? "" : "No ");
+ (void)pcre_config(PCRE_CONFIG_UNICODE_PROPERTIES, &rc);
+ printf(" %sUnicode properties support\n", rc? "" : "No ");
(void)pcre_config(PCRE_CONFIG_NEWLINE, &rc);
printf(" Newline character is %s\n", (rc == '\r')? "CR" : "LF");
(void)pcre_config(PCRE_CONFIG_LINK_SIZE, &rc);
@@ -481,11 +560,12 @@ while (argc > 1 && argv[op][0] == '-')
printf(" -C show PCRE compile-time options and exit\n");
printf(" -d debug: show compiled code; implies -i\n"
" -i show information about compiled pattern\n"
+ " -m output memory used information\n"
" -o <n> set size of offsets vector to <n>\n");
#if !defined NOPOSIX
printf(" -p use POSIX interface\n");
#endif
- printf(" -s output store information\n"
+ printf(" -s output store (memory) used information\n"
" -t time compilation and execution\n");
return 1;
}
@@ -508,7 +588,7 @@ if (offsets == NULL)
if (argc > 1)
{
- infile = fopen(argv[op], "r");
+ infile = fopen(argv[op], "rb");
if (infile == NULL)
{
printf("** Failed to open %s\n", argv[op]);
@@ -518,7 +598,7 @@ if (argc > 1)
if (argc > 2)
{
- outfile = fopen(argv[op+1], "w");
+ outfile = fopen(argv[op+1], "wb");
if (outfile == NULL)
{
printf("** Failed to open %s\n", argv[op+1]);
@@ -551,13 +631,17 @@ while (!done)
const char *error;
unsigned char *p, *pp, *ppp;
+ unsigned char *to_file = NULL;
const unsigned char *tables = NULL;
+ unsigned long int true_size, true_study_size = 0;
+ size_t size, regex_gotten_store;
int do_study = 0;
int do_debug = debug;
int do_G = 0;
int do_g = 0;
int do_showinfo = showinfo;
int do_showrest = 0;
+ int do_flip = 0;
int erroroffset, len, delimiter;
use_utf8 = 0;
@@ -571,8 +655,93 @@ while (!done)
while (isspace(*p)) p++;
if (*p == 0) continue;
- /* Get the delimiter and seek the end of the pattern; if is isn't
- complete, read more. */
+ /* See if the pattern is to be loaded pre-compiled from a file. */
+
+ if (*p == '<' && strchr((char *)(p+1), '<') == NULL)
+ {
+ unsigned long int magic;
+ uschar sbuf[8];
+ FILE *f;
+
+ p++;
+ pp = p + (int)strlen((char *)p);
+ while (isspace(pp[-1])) pp--;
+ *pp = 0;
+
+ f = fopen((char *)p, "rb");
+ if (f == NULL)
+ {
+ fprintf(outfile, "Failed to open %s: %s\n", p, strerror(errno));
+ continue;
+ }
+
+ if (fread(sbuf, 1, 8, f) != 8) goto FAIL_READ;
+
+ true_size =
+ (sbuf[0] << 24) | (sbuf[1] << 16) | (sbuf[2] << 8) | sbuf[3];
+ true_study_size =
+ (sbuf[4] << 24) | (sbuf[5] << 16) | (sbuf[6] << 8) | sbuf[7];
+
+ re = (real_pcre *)new_malloc(true_size);
+ regex_gotten_store = gotten_store;
+
+ if (fread(re, 1, true_size, f) != true_size) goto FAIL_READ;
+
+ magic = ((real_pcre *)re)->magic_number;
+ if (magic != MAGIC_NUMBER)
+ {
+ if (byteflip(magic, sizeof(magic)) == MAGIC_NUMBER)
+ {
+ do_flip = 1;
+ }
+ else
+ {
+ fprintf(outfile, "Data in %s is not a compiled PCRE regex\n", p);
+ fclose(f);
+ continue;
+ }
+ }
+
+ fprintf(outfile, "Compiled regex%s loaded from %s\n",
+ do_flip? " (byte-inverted)" : "", p);
+
+ /* Need to know if UTF-8 for printing data strings */
+
+ new_info(re, NULL, PCRE_INFO_OPTIONS, &options);
+ use_utf8 = (options & PCRE_UTF8) != 0;
+
+ /* Now see if there is any following study data */
+
+ if (true_study_size != 0)
+ {
+ pcre_study_data *psd;
+
+ extra = (pcre_extra *)new_malloc(sizeof(pcre_extra) + true_study_size);
+ extra->flags = PCRE_EXTRA_STUDY_DATA;
+
+ psd = (pcre_study_data *)(((char *)extra) + sizeof(pcre_extra));
+ extra->study_data = psd;
+
+ if (fread(psd, 1, true_study_size, f) != true_study_size)
+ {
+ FAIL_READ:
+ fprintf(outfile, "Failed to read data from %s\n", p);
+ if (extra != NULL) new_free(extra);
+ if (re != NULL) new_free(re);
+ fclose(f);
+ continue;
+ }
+ fprintf(outfile, "Study data loaded from %s\n", p);
+ do_study = 1; /* To get the data output if requested */
+ }
+ else fprintf(outfile, "No study data\n");
+
+ fclose(f);
+ goto SHOW_INFO;
+ }
+
+ /* In-line pattern (the usual case). Get the delimiter and seek the end of
+ the pattern; if is isn't complete, read more. */
delimiter = *p++;
@@ -617,9 +786,11 @@ while (!done)
if (pp[1] == '\\') *pp++ = '\\';
- /* Terminate the pattern at the delimiter */
+ /* Terminate the pattern at the delimiter, and save a copy of the pattern
+ for callouts. */
*pp++ = 0;
+ strcpy((char *)pbuffer, (char *)p);
/* Look for options after final delimiter */
@@ -639,8 +810,10 @@ while (!done)
case '+': do_showrest = 1; break;
case 'A': options |= PCRE_ANCHORED; break;
+ case 'C': options |= PCRE_AUTO_CALLOUT; break;
case 'D': do_debug = do_showinfo = 1; break;
case 'E': options |= PCRE_DOLLAR_ENDONLY; break;
+ case 'F': do_flip = 1; break;
case 'G': do_G = 1; break;
case 'I': do_showinfo = 1; break;
case 'M': log_store = 1; break;
@@ -669,7 +842,15 @@ while (!done)
pp = ppp;
break;
+ case '>':
+ to_file = pp;
+ while (*pp != 0) pp++;
+ while (isspace(pp[-1])) pp--;
+ *pp = 0;
+ break;
+
case '\n': case ' ': break;
+
default:
fprintf(outfile, "** Unknown option '%c'\n", pp[-1]);
goto SKIP_DATA;
@@ -685,6 +866,7 @@ while (!done)
{
int rc;
int cflags = 0;
+
if ((options & PCRE_CASELESS) != 0) cflags |= REG_ICASE;
if ((options & PCRE_MULTILINE) != 0) cflags |= REG_NEWLINE;
rc = regcomp(&preg, (char *)p, cflags);
@@ -759,14 +941,77 @@ while (!done)
sizeof(real_pcre) -
((real_pcre *)re)->name_count * ((real_pcre *)re)->name_entry_size));
+ /* Extract the size for possible writing before possibly flipping it,
+ and remember the store that was got. */
+
+ true_size = ((real_pcre *)re)->size;
+ regex_gotten_store = gotten_store;
+
+ /* If /S was present, study the regexp to generate additional info to
+ help with the matching. */
+
+ if (do_study)
+ {
+ if (timeit)
+ {
+ register int i;
+ clock_t time_taken;
+ clock_t start_time = clock();
+ for (i = 0; i < LOOPREPEAT; i++)
+ extra = pcre_study(re, study_options, &error);
+ time_taken = clock() - start_time;
+ if (extra != NULL) free(extra);
+ fprintf(outfile, " Study time %.3f milliseconds\n",
+ (((double)time_taken * 1000.0) / (double)LOOPREPEAT) /
+ (double)CLOCKS_PER_SEC);
+ }
+ extra = pcre_study(re, study_options, &error);
+ if (error != NULL)
+ fprintf(outfile, "Failed to study: %s\n", error);
+ else if (extra != NULL)
+ true_study_size = ((pcre_study_data *)(extra->study_data))->size;
+ }
+
+ /* If the 'F' option was present, we flip the bytes of all the integer
+ fields in the regex data block and the study block. This is to make it
+ possible to test PCRE's handling of byte-flipped patterns, e.g. those
+ compiled on a different architecture. */
+
+ if (do_flip)
+ {
+ real_pcre *rre = (real_pcre *)re;
+ rre->magic_number = byteflip(rre->magic_number, sizeof(rre->magic_number));
+ rre->size = byteflip(rre->size, sizeof(rre->size));
+ rre->options = byteflip(rre->options, sizeof(rre->options));
+ rre->top_bracket = byteflip(rre->top_bracket, sizeof(rre->top_bracket));
+ rre->top_backref = byteflip(rre->top_backref, sizeof(rre->top_backref));
+ rre->first_byte = byteflip(rre->first_byte, sizeof(rre->first_byte));
+ rre->req_byte = byteflip(rre->req_byte, sizeof(rre->req_byte));
+ rre->name_table_offset = byteflip(rre->name_table_offset,
+ sizeof(rre->name_table_offset));
+ rre->name_entry_size = byteflip(rre->name_entry_size,
+ sizeof(rre->name_entry_size));
+ rre->name_count = byteflip(rre->name_count, sizeof(rre->name_count));
+
+ if (extra != NULL)
+ {
+ pcre_study_data *rsd = (pcre_study_data *)(extra->study_data);
+ rsd->size = byteflip(rsd->size, sizeof(rsd->size));
+ rsd->options = byteflip(rsd->options, sizeof(rsd->options));
+ }
+ }
+
+ /* Extract information from the compiled data if required */
+
+ SHOW_INFO:
+
if (do_showinfo)
{
- unsigned long int get_options;
+ unsigned long int get_options, all_options;
int old_first_char, old_options, old_count;
int count, backrefmax, first_char, need_char;
int nameentrysize, namecount;
const uschar *nametable;
- size_t size;
if (do_debug)
{
@@ -802,9 +1047,9 @@ while (!done)
get_options, old_options);
}
- if (size != gotten_store) fprintf(outfile,
+ if (size != regex_gotten_store) fprintf(outfile,
"Size disagreement: pcre_fullinfo=%d call to malloc for %d\n",
- size, gotten_store);
+ size, regex_gotten_store);
fprintf(outfile, "Capturing subpattern count = %d\n", count);
if (backrefmax > 0)
@@ -822,6 +1067,18 @@ while (!done)
}
}
+ /* The NOPARTIAL bit is a private bit in the options, so we have
+ to fish it out via out back door */
+
+ all_options = ((real_pcre *)re)->options;
+ if (do_flip)
+ {
+ all_options = byteflip(all_options, sizeof(all_options));
+ }
+
+ if ((all_options & PCRE_NOPARTIAL) != 0)
+ fprintf(outfile, "Partial matching not supported\n");
+
if (get_options == 0) fprintf(outfile, "No options\n");
else fprintf(outfile, "Options:%s%s%s%s%s%s%s%s%s%s\n",
((get_options & PCRE_ANCHORED) != 0)? " anchored" : "",
@@ -871,77 +1128,103 @@ while (!done)
else
fprintf(outfile, "Need char = %d%s\n", ch, caseless);
}
- }
-
- /* If /S was present, study the regexp to generate additional info to
- help with the matching. */
-
- if (do_study)
- {
- if (timeit)
- {
- register int i;
- clock_t time_taken;
- clock_t start_time = clock();
- for (i = 0; i < LOOPREPEAT; i++)
- extra = pcre_study(re, study_options, &error);
- time_taken = clock() - start_time;
- if (extra != NULL) free(extra);
- fprintf(outfile, " Study time %.3f milliseconds\n",
- (((double)time_taken * 1000.0) / (double)LOOPREPEAT) /
- (double)CLOCKS_PER_SEC);
- }
-
- extra = pcre_study(re, study_options, &error);
- if (error != NULL)
- fprintf(outfile, "Failed to study: %s\n", error);
- else if (extra == NULL)
- fprintf(outfile, "Study returned NULL\n");
/* Don't output study size; at present it is in any case a fixed
value, but it varies, depending on the computer architecture, and
- so messes up the test suite. */
+ so messes up the test suite. (And with the /F option, it might be
+ flipped.) */
- else if (do_showinfo)
+ if (do_study)
{
- size_t size;
- uschar *start_bits = NULL;
- new_info(re, extra, PCRE_INFO_STUDYSIZE, &size);
- new_info(re, extra, PCRE_INFO_FIRSTTABLE, &start_bits);
- /* fprintf(outfile, "Study size = %d\n", size); */
- if (start_bits == NULL)
- fprintf(outfile, "No starting character set\n");
+ if (extra == NULL)
+ fprintf(outfile, "Study returned NULL\n");
else
{
- int i;
- int c = 24;
- fprintf(outfile, "Starting character set: ");
- for (i = 0; i < 256; i++)
+ uschar *start_bits = NULL;
+ new_info(re, extra, PCRE_INFO_FIRSTTABLE, &start_bits);
+
+ if (start_bits == NULL)
+ fprintf(outfile, "No starting byte set\n");
+ else
{
- if ((start_bits[i/8] & (1<<(i%8))) != 0)
+ int i;
+ int c = 24;
+ fprintf(outfile, "Starting byte set: ");
+ for (i = 0; i < 256; i++)
{
- if (c > 75)
+ if ((start_bits[i/8] & (1<<(i&7))) != 0)
{
- fprintf(outfile, "\n ");
- c = 2;
- }
- if (isprint(i) && i != ' ')
- {
- fprintf(outfile, "%c ", i);
- c += 2;
- }
- else
- {
- fprintf(outfile, "\\x%02x ", i);
- c += 5;
+ if (c > 75)
+ {
+ fprintf(outfile, "\n ");
+ c = 2;
+ }
+ if (isprint(i) && i != ' ')
+ {
+ fprintf(outfile, "%c ", i);
+ c += 2;
+ }
+ else
+ {
+ fprintf(outfile, "\\x%02x ", i);
+ c += 5;
+ }
}
}
+ fprintf(outfile, "\n");
}
- fprintf(outfile, "\n");
}
}
}
- }
+
+ /* If the '>' option was present, we write out the regex to a file, and
+ that is all. The first 8 bytes of the file are the regex length and then
+ the study length, in big-endian order. */
+
+ if (to_file != NULL)
+ {
+ FILE *f = fopen((char *)to_file, "wb");
+ if (f == NULL)
+ {
+ fprintf(outfile, "Unable to open %s: %s\n", to_file, strerror(errno));
+ }
+ else
+ {
+ uschar sbuf[8];
+ sbuf[0] = (true_size >> 24) & 255;
+ sbuf[1] = (true_size >> 16) & 255;
+ sbuf[2] = (true_size >> 8) & 255;
+ sbuf[3] = (true_size) & 255;
+
+ sbuf[4] = (true_study_size >> 24) & 255;
+ sbuf[5] = (true_study_size >> 16) & 255;
+ sbuf[6] = (true_study_size >> 8) & 255;
+ sbuf[7] = (true_study_size) & 255;
+
+ if (fwrite(sbuf, 1, 8, f) < 8 ||
+ fwrite(re, 1, true_size, f) < true_size)
+ {
+ fprintf(outfile, "Write error on %s: %s\n", to_file, strerror(errno));
+ }
+ else
+ {
+ fprintf(outfile, "Compiled regex written to %s\n", to_file);
+ if (extra != NULL)
+ {
+ if (fwrite(extra->study_data, 1, true_study_size, f) <
+ true_study_size)
+ {
+ fprintf(outfile, "Write error on %s: %s\n", to_file,
+ strerror(errno));
+ }
+ else fprintf(outfile, "Study data written to %s\n", to_file);
+ }
+ }
+ fclose(f);
+ }
+ continue; /* With next regex */
+ }
+ } /* End of non-POSIX compile */
/* Read data lines and test them */
@@ -1045,10 +1328,14 @@ while (!done)
}
break;
- case 0: /* Allows for an empty line */
+ case 0: /* \ followed by EOF allows for an empty line */
p--;
continue;
+ case '>':
+ while(isdigit(*p)) start_offset = start_offset * 10 + *p++ - '0';
+ continue;
+
case 'A': /* Option setting */
options |= PCRE_ANCHORED;
continue;
@@ -1159,6 +1446,10 @@ while (!done)
if (n == 0) use_offsets = NULL; /* Ensures it can't write to it */
continue;
+ case 'P':
+ options |= PCRE_PARTIAL;
+ continue;
+
case 'S':
show_malloc = 1;
continue;
@@ -1269,7 +1560,8 @@ while (!done)
min = mid;
mid = (mid == max - 1)? max : (max > 0)? (min + max)/2 : mid*2;
}
- else if (count >= 0 || count == PCRE_ERROR_NOMATCH)
+ else if (count >= 0 || count == PCRE_ERROR_NOMATCH ||
+ count == PCRE_ERROR_PARTIAL)
{
if (mid == min + 1)
{
@@ -1305,8 +1597,11 @@ while (!done)
/* The normal case is just to do the match once, with the default
value of match_limit. */
- else count = pcre_exec(re, extra, (char *)bptr, len,
- start_offset, options | g_notempty, use_offsets, use_size_offsets);
+ else
+ {
+ count = pcre_exec(re, extra, (char *)bptr, len,
+ start_offset, options | g_notempty, use_offsets, use_size_offsets);
+ }
if (count == 0)
{
@@ -1393,6 +1688,14 @@ while (!done)
}
}
+ /* There was a partial match */
+
+ else if (count == PCRE_ERROR_PARTIAL)
+ {
+ fprintf(outfile, "Partial match\n");
+ break; /* Out of the /g loop */
+ }
+
/* Failed to match. If this is a /g or /G loop and we previously set
g_notempty after a null match, this is not necessarily the end.
We want to advance the start offset, and continue. In the case of UTF-8
diff --git a/perltest b/perltest
index bb34cc8..44afbea 100755
--- a/perltest
+++ b/perltest
@@ -206,6 +206,6 @@ for (;;)
}
}
-printf $outfile "\n";
+# printf $outfile "\n";
# End
diff --git a/printint.c b/printint.c
index 3d40f11..8e5da42 100644
--- a/printint.c
+++ b/printint.c
@@ -9,26 +9,34 @@ the file Tech.Notes for some information on the internals.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997-2003 University of Cambridge
+ Copyright (c) 1997-2004 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
*/
@@ -76,6 +84,18 @@ else
c = (c & utf8_t3[a]) << s;
for (i = 1; i <= a; i++)
{
+ /* This is a check for malformed UTF-8; it should only occur if the sanity
+ check has been turned off. Rather than swallow random bytes, just stop if
+ we hit a bad one. Print it with \X instead of \x as an indication. */
+
+ if ((ptr[i] & 0xc0) != 0x80)
+ {
+ fprintf(f, "\\X{%x}", c);
+ return i - 1;
+ }
+
+ /* The byte is OK */
+
s -= 6;
c |= (ptr[i] & 0x3f) << s;
}
@@ -88,17 +108,54 @@ else
/*************************************************
+* Find Unicode property name *
+*************************************************/
+
+static const char *
+get_ucpname(int property)
+{
+int i;
+for (i = sizeof(utt)/sizeof(ucp_type_table); i >= 0; i--)
+ {
+ if (property == utt[i].value) break;
+ }
+return (i >= 0)? utt[i].name : "??";
+}
+
+
+
+/*************************************************
* Print compiled regex *
*************************************************/
+/* Make this function work for a regex with integers either byte order.
+However, we assume that what we are passed is a compiled regex. */
+
static void
print_internals(pcre *external_re, FILE *f)
{
real_pcre *re = (real_pcre *)external_re;
-uschar *codestart =
- (uschar *)re + sizeof(real_pcre) + re->name_count * re->name_entry_size;
-uschar *code = codestart;
-BOOL utf8 = (re->options & PCRE_UTF8) != 0;
+uschar *codestart, *code;
+BOOL utf8;
+
+unsigned int options = re->options;
+int offset = re->name_table_offset;
+int count = re->name_count;
+int size = re->name_entry_size;
+
+if (re->magic_number != MAGIC_NUMBER)
+ {
+ offset = ((offset << 8) & 0xff00) | ((offset >> 8) & 0xff);
+ count = ((count << 8) & 0xff00) | ((count >> 8) & 0xff);
+ size = ((size << 8) & 0xff00) | ((size >> 8) & 0xff);
+ options = ((options << 24) & 0xff000000) |
+ ((options << 8) & 0x00ff0000) |
+ ((options >> 8) & 0x0000ff00) |
+ ((options >> 24) & 0x000000ff);
+ }
+
+code = codestart = (uschar *)re + offset + count * size;
+utf8 = (options & PCRE_UTF8) != 0;
for(;;)
{
@@ -129,18 +186,31 @@ for(;;)
fprintf(f, " %.2x %s", code[1], OP_names[*code]);
break;
- case OP_CHARS:
+ case OP_CHAR:
+ {
+ fprintf(f, " ");
+ do
+ {
+ code++;
+ code += 1 + print_char(f, code, utf8);
+ }
+ while (*code == OP_CHAR);
+ fprintf(f, "\n");
+ continue;
+ }
+ break;
+
+ case OP_CHARNC:
{
- int charlength = code[1];
- ccode = code + 2;
- extra = charlength;
- fprintf(f, "%3d ", charlength);
- while (charlength > 0)
+ fprintf(f, " NC ");
+ do
{
- int extrabytes = print_char(f, ccode, utf8);
- ccode += 1 + extrabytes;
- charlength -= 1 + extrabytes;
+ code++;
+ code += 1 + print_char(f, code, utf8);
}
+ while (*code == OP_CHARNC);
+ fprintf(f, "\n");
+ continue;
}
break;
@@ -182,8 +252,16 @@ for(;;)
case OP_TYPEQUERY:
case OP_TYPEMINQUERY:
fprintf(f, " ");
- if (*code >= OP_TYPESTAR) fprintf(f, "%s", OP_names[code[1]]);
- else extra = print_char(f, code+1, utf8);
+ if (*code >= OP_TYPESTAR)
+ {
+ fprintf(f, "%s", OP_names[code[1]]);
+ if (code[1] == OP_PROP || code[1] == OP_NOTPROP)
+ {
+ fprintf(f, " %s ", get_ucpname(code[2]));
+ extra = 1;
+ }
+ }
+ else extra = print_char(f, code+1, utf8);
fprintf(f, "%s", OP_names[*code]);
break;
@@ -201,7 +279,13 @@ for(;;)
case OP_TYPEEXACT:
case OP_TYPEUPTO:
case OP_TYPEMINUPTO:
- fprintf(f, " %s{", OP_names[code[3]]);
+ fprintf(f, " %s", OP_names[code[3]]);
+ if (code[3] == OP_PROP || code[3] == OP_NOTPROP)
+ {
+ fprintf(f, " %s ", get_ucpname(code[4]));
+ extra = 1;
+ }
+ fprintf(f, "{");
if (*code != OP_TYPEEXACT) fprintf(f, "0,");
fprintf(f, "%d}", GET2(code,1));
if (*code == OP_TYPEMINUPTO) fprintf(f, "?");
@@ -243,7 +327,13 @@ for(;;)
goto CLASS_REF_REPEAT;
case OP_CALLOUT:
- fprintf(f, " %s %d", OP_names[*code], code[1]);
+ fprintf(f, " %s %d %d %d", OP_names[*code], code[1], GET(code,2),
+ GET(code, 2 + LINK_SIZE));
+ break;
+
+ case OP_PROP:
+ case OP_NOTPROP:
+ fprintf(f, " %s %s", OP_names[*code], get_ucpname(code[1]));
break;
/* OP_XCLASS can only occur in UTF-8 mode. However, there's no harm in
@@ -287,7 +377,7 @@ for(;;)
if (isprint(i)) fprintf(f, "%c", i); else fprintf(f, "\\x%02x", i);
if (--j > i)
{
- fprintf(f, "-");
+ if (j != i + 1) fprintf(f, "-");
if (j == '-' || j == ']') fprintf(f, "\\");
if (isprint(j)) fprintf(f, "%c", j); else fprintf(f, "\\x%02x", j);
}
@@ -304,11 +394,22 @@ for(;;)
int ch;
while ((ch = *ccode++) != XCL_END)
{
- ccode += 1 + print_char(f, ccode, TRUE);
- if (ch == XCL_RANGE)
+ if (ch == XCL_PROP)
+ {
+ fprintf(f, "\\p{%s}", get_ucpname(*ccode++));
+ }
+ else if (ch == XCL_NOTPROP)
+ {
+ fprintf(f, "\\P{%s}", get_ucpname(*ccode++));
+ }
+ else
{
- fprintf(f, "-");
ccode += 1 + print_char(f, ccode, TRUE);
+ if (ch == XCL_RANGE)
+ {
+ fprintf(f, "-");
+ ccode += 1 + print_char(f, ccode, TRUE);
+ }
}
}
}
@@ -329,7 +430,7 @@ for(;;)
case OP_CRQUERY:
case OP_CRMINQUERY:
fprintf(f, "%s", OP_names[*ccode]);
- extra = OP_lengths[*ccode];
+ extra += OP_lengths[*ccode];
break;
case OP_CRRANGE:
@@ -339,7 +440,7 @@ for(;;)
if (max == 0) fprintf(f, "{%d,}", min);
else fprintf(f, "{%d,%d}", min, max);
if (*ccode == OP_CRMINRANGE) fprintf(f, "?");
- extra = OP_lengths[*ccode];
+ extra += OP_lengths[*ccode];
break;
}
}
diff --git a/study.c b/study.c
index a40f721..d99b8a9 100644
--- a/study.c
+++ b/study.c
@@ -9,26 +9,34 @@ the file Tech.Notes for some information on the internals.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997-2003 University of Cambridge
+ Copyright (c) 1997-2004 University of Cambridge
-----------------------------------------------------------------------------
-Permission is granted to anyone to use this software for any purpose on any
-computer system, and to redistribute it freely, subject to the following
-restrictions:
-
-1. This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-2. The origin of this software must not be misrepresented, either by
- explicit claim or by omission.
-
-3. Altered versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
-
-4. If PCRE is embedded in any software that is released under the GNU
- General Purpose Licence (GPL), then the terms of that licence shall
- supersede any condition above with which it is incompatible.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
*/
@@ -57,7 +65,7 @@ Returns: nothing
*/
static void
-set_bit(uschar *start_bits, int c, BOOL caseless, compile_data *cd)
+set_bit(uschar *start_bits, unsigned int c, BOOL caseless, compile_data *cd)
{
start_bits[c/8] |= (1 << (c&7));
if (caseless && (cd->ctypes[c] & ctype_letter) != 0)
@@ -123,7 +131,7 @@ do
/* Skip over callout */
case OP_CALLOUT:
- tcode += 2;
+ tcode += 2 + 2*LINK_SIZE;
break;
/* Skip over extended extraction bracket number */
@@ -186,11 +194,10 @@ do
/* At least one single char sets the bit and stops */
case OP_EXACT: /* Fall through */
- tcode++;
-
- case OP_CHARS: /* Fall through */
- tcode++;
+ tcode += 2;
+ case OP_CHAR:
+ case OP_CHARNC:
case OP_PLUS:
case OP_MINPLUS:
set_bit(start_bits, tcode[1], caseless, cd);
@@ -403,8 +410,9 @@ pcre_study(const pcre *external_re, int options, const char **errorptr)
uschar start_bits[32];
pcre_extra *extra;
pcre_study_data *study;
+const uschar *tables;
const real_pcre *re = (const real_pcre *)external_re;
-uschar *code = (uschar *)re + sizeof(real_pcre) +
+uschar *code = (uschar *)re + re->name_table_offset +
(re->name_count * re->name_entry_size);
compile_data compile_block;
@@ -429,12 +437,16 @@ at present. */
if ((re->options & (PCRE_ANCHORED|PCRE_FIRSTSET|PCRE_STARTLINE)) != 0)
return NULL;
-/* Set the character tables in the block which is passed around */
+/* Set the character tables in the block that is passed around */
+
+tables = re->tables;
+if (tables == NULL)
+ (void)pcre_fullinfo(external_re, NULL, PCRE_INFO_DEFAULT_TABLES, &tables);
-compile_block.lcc = re->tables + lcc_offset;
-compile_block.fcc = re->tables + fcc_offset;
-compile_block.cbits = re->tables + cbits_offset;
-compile_block.ctypes = re->tables + ctypes_offset;
+compile_block.lcc = tables + lcc_offset;
+compile_block.fcc = tables + fcc_offset;
+compile_block.cbits = tables + cbits_offset;
+compile_block.ctypes = tables + ctypes_offset;
/* See if we can find a fixed set of initial characters for the pattern. */
diff --git a/testdata/testinput2 b/testdata/testinput2
index 710bcc9..d118daf 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -266,6 +266,18 @@
/(?!alphabet)[ab]/S
/(?<=foo\n)^bar/m
+ foo\nbarbar
+ ***Failers
+ rhubarb
+ barbell
+ abc\nbarton
+
+/^(?<=foo\n)bar/m
+ foo\nbarbar
+ ***Failers
+ rhubarb
+ barbell
+ abc\nbarton
/(?>^abc)/m
abc
@@ -654,10 +666,16 @@
/^[[:alnum:]]/D
+/^[[:^alnum:]]/D
+
/^[[:alpha:]]/D
+
+/^[[:^alpha:]]/D
/^[[:ascii:]]/D
+/^[[:^ascii:]]/D
+
/^[[:blank:]]/D
/^[[:cntrl:]]/D
@@ -890,20 +908,10 @@
/\N{name}/
-/\pP/
-
-/\PP/
-
-/\p{prop}/
-
-/\P{prop}/
-
/\u/
/\U/
-/\X/
-
/[/
/[a-/
@@ -1256,4 +1264,133 @@
/(a|b)*.?c/SD
+/abc(?C255)de(?C)f/D
+
+/abcde/CD
+ abcde
+ abcdfe
+
+/a*b/CD
+ ab
+ aaaab
+ aaaacb
+
+/a+b/CD
+ ab
+ aaaab
+ aaaacb
+
+/(abc|def)x/CD
+ abcx
+ defx
+ abcdefzx
+
+/(ab|cd){3,4}/C
+ ababab
+ abcdabcd
+ abcdcdcdcdcd
+
+/([ab]{,4}c|xy)/CD
+ Note: that { does NOT introduce a quantifier
+
+/([ab]{1,4}c|xy){4,5}?123/CD
+ aacaacaacaacaac123
+
+/\b.*/I
+ ab cd\>1
+
+/\b.*/Is
+ ab cd\>1
+
+/(?!.bcd).*/I
+ Xbcd12345
+
+/abcde/
+ ab\P
+ abc\P
+ abcd\P
+ abcde\P
+ the quick brown abc\P
+ ** Failers\P
+ the quick brown abxyz fox\P
+
+"^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"
+ 13/05/04\P
+ 13/5/2004\P
+ 02/05/09\P
+ 1\P
+ 1/2\P
+ 1/2/0\P
+ 1/2/04\P
+ 0\P
+ 02/\P
+ 02/0\P
+ 02/1\P
+ ** Failers\P
+ \P
+ 123\P
+ 33/4/04\P
+ 3/13/04\P
+ 0/1/2003\P
+ 0/\P
+ 02/0/\P
+ 02/13\P
+
+/0{0,2}ABC/I
+
+/\d{3,}ABC/I
+
+/\d*ABC/I
+
+/[abc]+DE/I
+
+/[abc]?123/
+ 123\P
+ a\P
+ b\P
+ c\P
+ c12\P
+ c123\P
+
+/^(?:\d){3,5}X/
+ 1\P
+ 123\P
+ 123X
+ 1234\P
+ 1234X
+ 12345\P
+ 12345X
+ *** Failers
+ 1X
+ 123456\P
+
+/abc/>testsavedregex
+<testsavedregex
+ abc
+ ** Failers
+ bca
+
+/abc/F>testsavedregex
+<testsavedregex
+ abc
+ ** Failers
+ bca
+
+/(a|b)/S>testsavedregex
+<testsavedregex
+ abc
+ ** Failers
+ def
+
+/(a|b)/SF>testsavedregex
+<testsavedregex
+ abc
+ ** Failers
+ def
+
+~<(\w+)/?>(.)*</(\1)>~smg
+ <!DOCTYPE seite SYSTEM "http://www.lco.lineas.de/xmlCms.dtd">\n<seite>\n<dokumenteninformation>\n<seitentitel>Partner der LCO</seitentitel>\n<sprache>de</sprache>\n<seitenbeschreibung>Partner der LINEAS Consulting\nGmbH</seitenbeschreibung>\n<schluesselworte>LINEAS Consulting GmbH Hamburg\nPartnerfirmen</schluesselworte>\n<revisit>30 days</revisit>\n<robots>index,follow</robots>\n<menueinformation>\n<aktiv>ja</aktiv>\n<menueposition>3</menueposition>\n<menuetext>Partner</menuetext>\n</menueinformation>\n<lastedited>\n<autor>LCO</autor>\n<firma>LINEAS Consulting</firma>\n<datum>15.10.2003</datum>\n</lastedited>\n</dokumenteninformation>\n<inhalt>\n\n<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting\nGmbH</absatzueberschrift>\n\n<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">\n<bild name="logo_ca.gif" rahmen="no"/></link> <link\nziel="http://www.ey.com/" zielfenster="_blank"><bild\nname="logo_euy.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">\n<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>\n\n<absatz><link ziel="http://www.atelion.de/"\nzielfenster="_blank"><bild\nname="logo_atelion.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.line-information.de/"\nzielfenster="_blank">\n<bild name="logo_line_information.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>\n\n<absatz><link ziel="http://www.incognis.de/"\nzielfenster="_blank"><bild\nname="logo_incognis.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.addcraft.com/"\nzielfenster="_blank"><bild\nname="logo_addcraft.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.comendo.com/"\nzielfenster="_blank"><bild\nname="logo_comendo.gif" rahmen="no"/></link></absatz>\n\n</inhalt>\n</seite>
+
+/^a/IF
+
/ End of testinput2 /
diff --git a/testdata/testinput4 b/testdata/testinput4
index f921215..c16e9d9 100644
--- a/testdata/testinput4
+++ b/testdata/testinput4
@@ -228,19 +228,12 @@
> >X Y
> >\x{100} Y
-/\W/8
- A.B
- A\x{100}B
-
/\d/8
\x{100}3
/\s/8
\x{100} X
-/\w/8
- \x{100}X
-
/\D+/8
12abcd34
*** Failers
@@ -479,7 +472,7 @@
Z
\x{100}
*** Failers
- \x{101}
+ \x{102}
y
/[\xFF]/
@@ -514,4 +507,7 @@
catac
a\x{256}a
+/^\x{85}$/8i
+ \x{85}
+
/ End of testinput4 /
diff --git a/testdata/testinput5 b/testdata/testinput5
index f71dc8d..fe6ee3e 100644
--- a/testdata/testinput5
+++ b/testdata/testinput5
@@ -176,8 +176,6 @@
/[z-\x{100}]/8D
-/[z-\x{100}]/8Di
-
/[z\Qa-d]Ä€\E]/8D
\x{100}
Ä€
@@ -255,4 +253,11 @@
/(\x{100}(b(?1)c)){0,2}/D8
+/\W/8
+ A.B
+ A\x{100}B
+
+/\w/8
+ \x{100}X
+
/ End of testinput5 /
diff --git a/testdata/testinput6 b/testdata/testinput6
new file mode 100644
index 0000000..01a3947
--- /dev/null
+++ b/testdata/testinput6
@@ -0,0 +1,517 @@
+/^\pC\pL\pM\pN\pP\pS\pZ</8
+ \x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
+ \np\x{300}9!\$ <
+ ** Failers
+ ap\x{300}9!\$ <
+
+/^\PC/8
+ X
+ ** Failers
+ \x7f
+
+/^\PL/8
+ 9
+ ** Failers
+ \x{c0}
+
+/^\PM/8
+ X
+ ** Failers
+ \x{30f}
+
+/^\PN/8
+ X
+ ** Failers
+ \x{660}
+
+/^\PP/8
+ X
+ ** Failers
+ \x{66c}
+
+/^\PS/8
+ X
+ ** Failers
+ \x{f01}
+
+/^\PZ/8
+ X
+ ** Failers
+ \x{1680}
+
+/^\p{Cc}/8
+ \x{017}
+ \x{09f}
+ ** Failers
+ \x{0600}
+
+/^\p{Cf}/8
+ \x{601}
+ ** Failers
+ \x{09f}
+
+/^\p{Cn}/8
+ ** Failers
+ \x{09f}
+
+/^\p{Co}/8
+ \x{f8ff}
+ ** Failers
+ \x{09f}
+
+/^\p{Cs}/8
+ \x{dfff}
+ ** Failers
+ \x{09f}
+
+/^\p{Ll}/8
+ a
+ ** Failers
+ Z
+ \x{dfff}
+
+/^\p{Lm}/8
+ \x{2b0}
+ ** Failers
+ a
+
+/^\p{Lo}/8
+ \x{1bb}
+ ** Failers
+ a
+ \x{2b0}
+
+/^\p{Lt}/8
+ \x{1c5}
+ ** Failers
+ a
+ \x{2b0}
+
+/^\p{Lu}/8
+ A
+ ** Failers
+ \x{2b0}
+
+/^\p{Mc}/8
+ \x{903}
+ ** Failers
+ X
+ \x{300}
+
+/^\p{Me}/8
+ \x{488}
+ ** Failers
+ X
+ \x{903}
+ \x{300}
+
+/^\p{Mn}/8
+ \x{300}
+ ** Failers
+ X
+ \x{903}
+
+/^\p{Nd}+/8
+ 0123456789\x{660}\x{661}\x{662}\x{663}\x{664}\x{665}\x{666}\x{667}\x{668}\x{669}\x{66a}
+ \x{6f0}\x{6f1}\x{6f2}\x{6f3}\x{6f4}\x{6f5}\x{6f6}\x{6f7}\x{6f8}\x{6f9}\x{6fa}
+ \x{966}\x{967}\x{968}\x{969}\x{96a}\x{96b}\x{96c}\x{96d}\x{96e}\x{96f}\x{970}
+ ** Failers
+ X
+
+/^\p{Nl}/8
+ \x{16ee}
+ ** Failers
+ X
+ \x{966}
+
+/^\p{No}/8
+ \x{b2}
+ \x{b3}
+ ** Failers
+ X
+ \x{16ee}
+
+/^\p{Pc}/8
+ \x5f
+ \x{203f}
+ ** Failers
+ X
+ -
+ \x{58a}
+
+/^\p{Pd}/8
+ -
+ \x{58a}
+ ** Failers
+ X
+ \x{203f}
+
+/^\p{Pe}/8
+ )
+ ]
+ }
+ \x{f3b}
+ ** Failers
+ X
+ \x{203f}
+ (
+ [
+ {
+ \x{f3c}
+
+/^\p{Pf}/8
+ \x{bb}
+ \x{2019}
+ ** Failers
+ X
+ \x{203f}
+
+/^\p{Pi}/8
+ \x{ab}
+ \x{2018}
+ ** Failers
+ X
+ \x{203f}
+
+/^\p{Po}/8
+ !
+ \x{37e}
+ ** Failers
+ X
+ \x{203f}
+
+/^\p{Ps}/8
+ (
+ [
+ {
+ \x{f3c}
+ ** Failers
+ X
+ )
+ ]
+ }
+ \x{f3b}
+
+/^\p{Sc}+/8
+ $\x{a2}\x{a3}\x{a4}\x{a5}\x{a6}
+ \x{9f2}
+ ** Failers
+ X
+ \x{2c2}
+
+/^\p{Sk}/8
+ \x{2c2}
+ ** Failers
+ X
+ \x{9f2}
+
+/^\p{Sm}+/8
+ +<|~\x{ac}\x{2044}
+ ** Failers
+ X
+ \x{9f2}
+
+/^\p{So}/8
+ \x{a6}
+ \x{482}
+ ** Failers
+ X
+ \x{9f2}
+
+/^\p{Zl}/8
+ \x{2028}
+ ** Failers
+ X
+ \x{2029}
+
+/^\p{Zp}/8
+ \x{2029}
+ ** Failers
+ X
+ \x{2028}
+
+/^\p{Zs}/8
+ \ \
+ \x{a0}
+ \x{1680}
+ \x{180e}
+ \x{2000}
+ \x{2001}
+ ** Failers
+ \x{2028}
+ \x{200d}
+
+/\p{Nd}+(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}+?(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}{2,}(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}{2,}?(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}*(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}*?(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}{2}(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}{2,3}(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}{2,3}?(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}?(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}??(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}*+(..)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}*+(...)/8
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Nd}*+(....)/8
+ ** Failers
+ \x{660}\x{661}\x{662}ABC
+
+/\p{Lu}/8i
+ A
+ a\x{10a0}B
+ ** Failers
+ a
+ \x{1d00}
+
+/\p{^Lu}/8i
+ 1234
+ ** Failers
+ ABC
+
+/\P{Lu}/8i
+ 1234
+ ** Failers
+ ABC
+
+/(?<=A\p{Nd})XYZ/8
+ A2XYZ
+ 123A5XYZPQR
+ ABA\x{660}XYZpqr
+ ** Failers
+ AXYZ
+ XYZ
+
+/(?<!\pL)XYZ/8
+ 1XYZ
+ AB=XYZ..
+ XYZ
+ ** Failers
+ WXYZ
+
+/[\p{L}]/D
+
+/[\p{^L}]/D
+
+/[\P{L}]/D
+
+/[\P{^L}]/D
+
+/[abc\p{L}\x{0660}]/8D
+
+/[\p{Nd}]/8DM
+ 1234
+
+/[\p{Nd}+-]+/8DM
+ 1234
+ 12-34
+ 12+\x{661}-34
+ ** Failers
+ abcd
+
+/[\P{Nd}]+/8
+ abcd
+ ** Failers
+ 1234
+
+/\D+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/\P{Nd}+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/[\D]+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/[\P{Nd}]+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/[\D\P{Nd}]+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/\pL/8
+ a
+ A
+
+/\pL/8i
+ a
+ A
+
+/\p{Lu}/8
+ A
+ aZ
+ ** Failers
+ abc
+
+/\p{Lu}/8i
+ A
+ aZ
+ ** Failers
+ abc
+
+/\p{Ll}/8
+ a
+ Az
+ ** Failers
+ ABC
+
+/\p{Ll}/8i
+ a
+ Az
+ ** Failers
+ ABC
+
+/^\x{c0}$/8i
+ \x{c0}
+ \x{e0}
+
+/^\x{e0}$/8i
+ \x{c0}
+ \x{e0}
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8
+ A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ ** Failers
+ a\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
+ A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
+ A\x{391}\x{10427}\x{ff5a}\x{1fb0}
+ A\x{391}\x{10427}\x{ff3a}\x{1fb8}
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8i
+ A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ a\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
+ A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
+ A\x{391}\x{10427}\x{ff5a}\x{1fb0}
+ A\x{391}\x{10427}\x{ff3a}\x{1fb8}
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iD
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8D
+
+/AB\x{1fb0}/8D
+
+/AB\x{1fb0}/8Di
+
+/\x{391}+/8i
+ \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
+
+/\x{391}{3,5}(.)/8i
+ \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
+
+/\x{391}{3,5}?(.)/8i
+ \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
+
+/[\x{391}\x{ff3a}]/8i
+ \x{391}
+ \x{ff3a}
+ \x{3b1}
+ \x{ff5a}
+
+/[\x{c0}\x{391}]/8i
+ \x{c0}
+ \x{e0}
+
+/[\x{105}-\x{109}]/8iD
+ \x{104}
+ \x{105}
+ \x{109}
+ ** Failers
+ \x{100}
+ \x{10a}
+
+/[z-\x{100}]/8iD
+ Z
+ z
+ \x{39c}
+ \x{178}
+ |
+ \x{80}
+ \x{ff}
+ \x{100}
+ \x{101}
+ ** Failers
+ \x{102}
+ Y
+ y
+
+/[z-\x{100}]/8Di
+
+/^\X/8
+ A
+ A\x{300}BC
+ A\x{300}\x{301}\x{302}BC
+ *** Failers
+ \x{300}
+
+/^[\X]/8
+ X123
+ *** Failers
+ AXYZ
+
+/^(\X*)C/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+
+/^(\X*?)C/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+
+/^(\X*)(.)/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+
+/^(\X*?)(.)/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+
+/^\X(.)/8
+ *** Failers
+ A\x{300}\x{301}\x{302}
+
+/^\X{2,3}(.)/8
+ A\x{300}\x{301}B\x{300}X
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
+
+/^\X{2,3}?(.)/8
+ A\x{300}\x{301}B\x{300}X
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
+
+/ End of testinput6 /
diff --git a/testdata/testoutput1 b/testdata/testoutput1
index d1e03b0..07e7376 100644
--- a/testdata/testoutput1
+++ b/testdata/testoutput1
@@ -1,4 +1,4 @@
-PCRE version 4.5 01-December-2003
+PCRE version 5.0 13-Sep-2004
/the quick brown fox/
the quick brown fox
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index ea28ccf..f2e7d54 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -1,4 +1,4 @@
-PCRE version 4.5 01-December-2003
+PCRE version 5.0 13-Sep-2004
/(a)b|/
Capturing subpattern count = 1
@@ -42,24 +42,28 @@ No match
/a+bc/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'c'
/a*bc/
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
Need char = 'c'
/a{3}bc/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'c'
/(abc|a+z)/
Capturing subpattern count = 1
+Partial matching not supported
No options
First char = 'a'
No need char
@@ -111,12 +115,14 @@ Failed: unrecognized character after (? at offset 2
/.*b/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char at start or follows \n
Need char = 'b'
/.*?b/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char at start or follows \n
Need char = 'b'
@@ -136,7 +142,7 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: c d e
+Starting byte set: c d e
this sentence eventually mentions a cat
0: cat
this sentences rambles on and on for a while and then reaches elephant
@@ -147,7 +153,7 @@ Capturing subpattern count = 0
Options: caseless
No first char
No need char
-Starting character set: C D E c d e
+Starting byte set: C D E c d e
this sentence eventually mentions a CAT cat
0: CAT
this sentences rambles on and on for a while to elephant ElePhant
@@ -158,14 +164,14 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: a b c d
+Starting byte set: a b c d
/(a|[^\dZ])/S
Capturing subpattern count = 1
No options
No first char
No need char
-Starting character set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
+Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
\x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
\x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = >
? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y [ \ ] ^ _ ` a b c d
@@ -185,7 +191,7 @@ Capturing subpattern count = 1
No options
No first char
No need char
-Starting character set: \x09 \x0a \x0c \x0d \x20 a b
+Starting byte set: \x09 \x0a \x0c \x0d \x20 a b
/(ab\2)/
Failed: reference to non-existent subpattern at offset 6
@@ -320,6 +326,7 @@ No need char
/.*((abc)$|(def))/
Capturing subpattern count = 3
+Partial matching not supported
No options
First char at start or follows \n
No need char
@@ -396,6 +403,7 @@ Failed: missing terminating ] for character class at offset 4
/[^aeiou ]{3,}/
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
No need char
@@ -404,6 +412,7 @@ No need char
/<.*>/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = '<'
Need char = '>'
@@ -412,6 +421,7 @@ Need char = '>'
/<.*?>/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = '<'
Need char = '>'
@@ -420,6 +430,7 @@ Need char = '>'
/<.*>/U
Capturing subpattern count = 0
+Partial matching not supported
Options: ungreedy
First char = '<'
Need char = '>'
@@ -428,6 +439,7 @@ Need char = '>'
/(?U)<.*>/
Capturing subpattern count = 0
+Partial matching not supported
Options: ungreedy
First char = '<'
Need char = '>'
@@ -436,6 +448,7 @@ Need char = '>'
/<.*?>/U
Capturing subpattern count = 0
+Partial matching not supported
Options: ungreedy
First char = '<'
Need char = '>'
@@ -444,6 +457,7 @@ Need char = '>'
/={3,}/U
Capturing subpattern count = 0
+Partial matching not supported
Options: ungreedy
First char = '='
Need char = '='
@@ -452,6 +466,7 @@ Need char = '='
/(?U)={3,}?/
Capturing subpattern count = 0
+Partial matching not supported
Options: ungreedy
First char = '='
Need char = '='
@@ -510,6 +525,7 @@ No need char
/(?s).*/
Capturing subpattern count = 0
+Partial matching not supported
Options: anchored dotall
No first char
No need char
@@ -519,21 +535,21 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: a b c d
+Starting byte set: a b c d
/(?i)[abcd]/S
Capturing subpattern count = 0
Options: caseless
No first char
No need char
-Starting character set: A B C D a b c d
+Starting byte set: A B C D a b c d
/(?m)[xy]|(b|c)/S
Capturing subpattern count = 1
Options: multiline
No first char
No need char
-Starting character set: b c x y
+Starting byte set: b c x y
/(^a|^b)/m
Capturing subpattern count = 1
@@ -568,6 +584,7 @@ Failed: unrecognized character after (?< at offset 5
/((?s)blah)\s+\1/
Capturing subpattern count = 1
Max back reference = 1
+Partial matching not supported
No options
First char = 'b'
Need char = 'h'
@@ -575,6 +592,7 @@ Need char = 'h'
/((?i)blah)\s+\1/
Capturing subpattern count = 1
Max back reference = 1
+Partial matching not supported
No options
Case state changes
First char = 'b' (caseless)
@@ -582,14 +600,14 @@ Need char = 'h' (caseless)
/((?i)b)/DS
------------------------------------------------------------------
- 0 16 Bra 0
- 3 8 Bra 1
+ 0 15 Bra 0
+ 3 7 Bra 1
6 01 Opt
- 8 1 b
- 11 8 Ket
- 14 00 Opt
- 16 16 Ket
- 19 End
+ 8 NC b
+ 10 7 Ket
+ 13 00 Opt
+ 15 15 Ket
+ 18 End
------------------------------------------------------------------
Capturing subpattern count = 1
No options
@@ -600,11 +618,12 @@ Study returned NULL
/(a*b|(?i:c*(?-i)d))/S
Capturing subpattern count = 1
+Partial matching not supported
No options
Case state changes
No first char
No need char
-Starting character set: C a b c d
+Starting byte set: C a b c d
/a$/
Capturing subpattern count = 0
@@ -652,6 +671,7 @@ Need char = 'c'
/^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/
Capturing subpattern count = 5
+Partial matching not supported
Options: anchored
No first char
No need char
@@ -668,27 +688,53 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: a b
+Starting byte set: a b
/(?<!foo)(alpha|omega)/S
Capturing subpattern count = 1
No options
No first char
Need char = 'a'
-Starting character set: a o
+Starting byte set: a o
/(?!alphabet)[ab]/S
Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: a b
+Starting byte set: a b
/(?<=foo\n)^bar/m
Capturing subpattern count = 0
Options: multiline
+No first char
+Need char = 'r'
+ foo\nbarbar
+ 0: bar
+ ***Failers
+No match
+ rhubarb
+No match
+ barbell
+No match
+ abc\nbarton
+No match
+
+/^(?<=foo\n)bar/m
+Capturing subpattern count = 0
+Options: multiline
First char at start or follows \n
Need char = 'r'
+ foo\nbarbar
+ 0: bar
+ ***Failers
+No match
+ rhubarb
+No match
+ barbell
+No match
+ abc\nbarton
+No match
/(?>^abc)/m
Capturing subpattern count = 0
@@ -744,6 +790,7 @@ No need char
/(?>.*)(?<=(abcd)|(xyz))/
Capturing subpattern count = 2
+Partial matching not supported
No options
First char at start or follows \n
No need char
@@ -966,6 +1013,7 @@ copy substring 5 failed -7
/(.{20})/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
No need char
@@ -983,6 +1031,7 @@ copy substring 1 failed -6
/(.{15})/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
No need char
@@ -997,6 +1046,7 @@ No need char
/(.{16})/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
No need char
@@ -1062,109 +1112,116 @@ No need char
/word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
)((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
)?)?)?)?)?)?)?)?)?otherword/M
-Memory allocation (code space): 428
+Memory allocation (code space): 432
Capturing subpattern count = 8
+Partial matching not supported
No options
First char = 'w'
Need char = 'd'
/.*X/D
------------------------------------------------------------------
- 0 8 Bra 0
+ 0 7 Bra 0
3 Any*
- 5 1 X
- 8 8 Ket
- 11 End
+ 5 X
+ 7 7 Ket
+ 10 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
No options
First char at start or follows \n
Need char = 'X'
/.*X/Ds
------------------------------------------------------------------
- 0 8 Bra 0
+ 0 7 Bra 0
3 Any*
- 5 1 X
- 8 8 Ket
- 11 End
+ 5 X
+ 7 7 Ket
+ 10 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: anchored dotall
No first char
Need char = 'X'
/(.*X|^B)/D
------------------------------------------------------------------
- 0 21 Bra 0
- 3 8 Bra 1
+ 0 19 Bra 0
+ 3 7 Bra 1
6 Any*
- 8 1 X
- 11 7 Alt
- 14 ^
- 15 1 B
- 18 15 Ket
- 21 21 Ket
- 24 End
+ 8 X
+ 10 6 Alt
+ 13 ^
+ 14 B
+ 16 13 Ket
+ 19 19 Ket
+ 22 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
No options
First char at start or follows \n
No need char
/(.*X|^B)/Ds
------------------------------------------------------------------
- 0 21 Bra 0
- 3 8 Bra 1
+ 0 19 Bra 0
+ 3 7 Bra 1
6 Any*
- 8 1 X
- 11 7 Alt
- 14 ^
- 15 1 B
- 18 15 Ket
- 21 21 Ket
- 24 End
+ 8 X
+ 10 6 Alt
+ 13 ^
+ 14 B
+ 16 13 Ket
+ 19 19 Ket
+ 22 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
Options: anchored dotall
No first char
No need char
/(?s)(.*X|^B)/D
------------------------------------------------------------------
- 0 21 Bra 0
- 3 8 Bra 1
+ 0 19 Bra 0
+ 3 7 Bra 1
6 Any*
- 8 1 X
- 11 7 Alt
- 14 ^
- 15 1 B
- 18 15 Ket
- 21 21 Ket
- 24 End
+ 8 X
+ 10 6 Alt
+ 13 ^
+ 14 B
+ 16 13 Ket
+ 19 19 Ket
+ 22 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
Options: anchored dotall
No first char
No need char
/(?s:.*X|^B)/D
------------------------------------------------------------------
- 0 27 Bra 0
- 3 10 Bra 0
+ 0 25 Bra 0
+ 3 9 Bra 0
6 04 Opt
8 Any*
- 10 1 X
- 13 9 Alt
- 16 04 Opt
- 18 ^
- 19 1 B
- 22 19 Ket
- 25 00 Opt
- 27 27 Ket
- 30 End
+ 10 X
+ 12 8 Alt
+ 15 04 Opt
+ 17 ^
+ 18 B
+ 20 17 Ket
+ 23 00 Opt
+ 25 25 Ket
+ 28 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
No options
First char at start or follows \n
No need char
@@ -1249,6 +1306,7 @@ No need char
/.*iss/g+
Capturing subpattern count = 0
+Partial matching not supported
No options
First char at start or follows \n
Need char = 's'
@@ -1349,36 +1407,42 @@ Need char = 'c'
/a*/
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
No need char
/a+/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
No need char
/(baa|a+)/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
Need char = 'a'
/a{0,3}/
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
No need char
/baa{3,}/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'b'
Need char = 'a'
/"([^\\"]+|\\.)*"/
Capturing subpattern count = 1
+Partial matching not supported
No options
First char = '"'
Need char = '"'
@@ -1433,60 +1497,70 @@ Need char = 'b'
/abc*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'b'
/ab.c*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'b'
/a.c*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
No need char
/.c*/
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
No need char
/ac*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
No need char
/(a.c*|b.c*)/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
No need char
/a.c*|aba/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
No need char
/.+a/
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
Need char = 'a'
/(?=abcda)a.*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'a'
/(?=a)a.*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
No need char
@@ -1499,12 +1573,14 @@ No need char
/a\d*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
No need char
/ab\d*/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'b'
@@ -1523,6 +1599,7 @@ Need char = 'd'
/ab\d+/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'b'
@@ -1640,6 +1717,7 @@ Study returned NULL
\) # Closing )
/x
Capturing subpattern count = 0
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1668,6 +1746,7 @@ No match
/\( ( (?>[^()]+) | (?R) )* \) /xg
Capturing subpattern count = 1
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1682,6 +1761,7 @@ Need char = ')'
/\( (?: (?>[^()]+) | (?R) ) \) /x
Capturing subpattern count = 0
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1700,6 +1780,7 @@ No match
/\( (?: (?>[^()]+) | (?R) )? \) /x
Capturing subpattern count = 0
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1710,6 +1791,7 @@ Need char = ')'
/\( ( (?>[^()]+) | (?R) )* \) /x
Capturing subpattern count = 1
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1719,6 +1801,7 @@ Need char = ')'
/\( ( ( (?>[^()]+) | (?R) )* ) \) /x
Capturing subpattern count = 2
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1729,6 +1812,7 @@ Need char = ')'
/\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /x
Capturing subpattern count = 3
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1745,6 +1829,7 @@ Need char = ')'
/\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /x
Capturing subpattern count = 3
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1761,6 +1846,7 @@ Need char = ')'
/\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /x
Capturing subpattern count = 11
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1780,6 +1866,7 @@ Need char = ')'
/\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /x
Capturing subpattern count = 3
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1791,6 +1878,7 @@ Need char = ')'
/\( ( ( (?>[^()]+) | ((?R)) )* ) \) /x
Capturing subpattern count = 3
+Partial matching not supported
Options: extended
First char = '('
Need char = ')'
@@ -1818,6 +1906,19 @@ Options: anchored
No first char
No need char
+/^[[:^alnum:]]/D
+------------------------------------------------------------------
+ 0 37 Bra 0
+ 3 ^
+ 4 [\x00-/:-@[-`{-\xff]
+ 37 37 Ket
+ 40 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: anchored
+No first char
+No need char
+
/^[[:alpha:]]/D
------------------------------------------------------------------
0 37 Bra 0
@@ -1830,6 +1931,19 @@ Capturing subpattern count = 0
Options: anchored
No first char
No need char
+
+/^[[:^alpha:]]/D
+------------------------------------------------------------------
+ 0 37 Bra 0
+ 3 ^
+ 4 [\x00-@[-`{-\xff]
+ 37 37 Ket
+ 40 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: anchored
+No first char
+No need char
/^[[:ascii:]]/D
------------------------------------------------------------------
@@ -1844,6 +1958,19 @@ Options: anchored
No first char
No need char
+/^[[:^ascii:]]/D
+------------------------------------------------------------------
+ 0 37 Bra 0
+ 3 ^
+ 4 [\x80-\xff]
+ 37 37 Ket
+ 40 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: anchored
+No first char
+No need char
+
/^[[:blank:]]/D
------------------------------------------------------------------
0 37 Bra 0
@@ -2004,7 +2131,7 @@ No need char
------------------------------------------------------------------
0 37 Bra 0
3 ^
- 4 [\x00-/1-2:-\xff]
+ 4 [\x00-/12:-\xff]
37 37 Ket
40 End
------------------------------------------------------------------
@@ -2029,7 +2156,7 @@ No need char
/[01[:alpha:]%]/D
------------------------------------------------------------------
0 36 Bra 0
- 3 [%0-1A-Za-z]
+ 3 [%01A-Za-z]
36 36 Ket
39 End
------------------------------------------------------------------
@@ -2102,6 +2229,7 @@ Need char = 'd'
/(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/
Capturing subpattern count = 271
Max back reference = 270
+Partial matching not supported
No options
No first char
No need char
@@ -2560,12 +2688,12 @@ No first char
No need char
/a#/xMD
-Memory allocation (code space): 13
+Memory allocation (code space): 9
------------------------------------------------------------------
- 0 6 Bra 0
- 3 1 a
- 6 6 Ket
- 9 End
+ 0 5 Bra 0
+ 3 a
+ 5 5 Ket
+ 8 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: extended
@@ -2575,7 +2703,7 @@ No need char
/[\s]/D
------------------------------------------------------------------
0 36 Bra 0
- 3 [\x09-\x0a\x0c-\x0d ]
+ 3 [\x09\x0a\x0c\x0d ]
36 36 Ket
39 End
------------------------------------------------------------------
@@ -2598,12 +2726,12 @@ No need char
/a(?i)b/D
------------------------------------------------------------------
- 0 11 Bra 0
- 3 1 a
- 6 01 Opt
- 8 1 b
- 11 11 Ket
- 14 End
+ 0 9 Bra 0
+ 3 a
+ 5 01 Opt
+ 7 NC b
+ 9 9 Ket
+ 12 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2621,15 +2749,15 @@ No match
/(a(?i)b)/D
------------------------------------------------------------------
- 0 19 Bra 0
- 3 11 Bra 1
- 6 1 a
- 9 01 Opt
- 11 1 b
- 14 11 Ket
- 17 00 Opt
- 19 19 Ket
- 22 End
+ 0 17 Bra 0
+ 3 9 Bra 1
+ 6 a
+ 8 01 Opt
+ 10 NC b
+ 12 9 Ket
+ 15 00 Opt
+ 17 17 Ket
+ 20 End
------------------------------------------------------------------
Capturing subpattern count = 1
No options
@@ -2649,10 +2777,10 @@ No match
/ (?i)abc/xD
------------------------------------------------------------------
- 0 8 Bra 0
- 3 3 abc
- 8 8 Ket
- 11 End
+ 0 9 Bra 0
+ 3 NC abc
+ 9 9 Ket
+ 12 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: caseless extended
@@ -2662,10 +2790,10 @@ Need char = 'c' (caseless)
/#this is a comment
(?i)abc/xD
------------------------------------------------------------------
- 0 8 Bra 0
- 3 3 abc
- 8 8 Ket
- 11 End
+ 0 9 Bra 0
+ 3 NC abc
+ 9 9 Ket
+ 12 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: caseless extended
@@ -2674,11 +2802,10 @@ Need char = 'c' (caseless)
/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
------------------------------------------------------------------
- 0 307 Bra 0
- 3 250 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
-255 50 12345678901234567890123456789012345678901234567890
-307 307 Ket
-310 End
+ 0 603 Bra 0
+ 3 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+603 603 Ket
+606 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2687,11 +2814,10 @@ Need char = '0'
/\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
------------------------------------------------------------------
- 0 307 Bra 0
- 3 250 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
-255 50 12345678901234567890123456789012345678901234567890
-307 307 Ket
-310 End
+ 0 603 Bra 0
+ 3 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+603 603 Ket
+606 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2713,10 +2839,10 @@ No need char
/\Q\Ex/D
------------------------------------------------------------------
- 0 6 Bra 0
- 3 1 x
- 6 6 Ket
- 9 End
+ 0 5 Bra 0
+ 3 x
+ 5 5 Ket
+ 8 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2725,10 +2851,10 @@ No need char
/ \Q\E/D
------------------------------------------------------------------
- 0 6 Bra 0
- 3 1
- 6 6 Ket
- 9 End
+ 0 5 Bra 0
+ 3
+ 5 5 Ket
+ 8 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2737,10 +2863,10 @@ No need char
/a\Q\E/D
------------------------------------------------------------------
- 0 6 Bra 0
- 3 1 a
- 6 6 Ket
- 9 End
+ 0 5 Bra 0
+ 3 a
+ 5 5 Ket
+ 8 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2755,11 +2881,10 @@ No need char
/a\Q\Eb/D
------------------------------------------------------------------
- 0 9 Bra 0
- 3 1 a
- 6 1 b
- 9 9 Ket
- 12 End
+ 0 7 Bra 0
+ 3 ab
+ 7 7 Ket
+ 10 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2770,10 +2895,10 @@ Need char = 'b'
/\Q\Eabc/D
------------------------------------------------------------------
- 0 8 Bra 0
- 3 3 abc
- 8 8 Ket
- 11 End
+ 0 9 Bra 0
+ 3 abc
+ 9 9 Ket
+ 12 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -2791,6 +2916,7 @@ Need char = 'c'
15 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
No need char
@@ -2823,36 +2949,38 @@ No need char
14 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'x'
No need char
/x{1,3}+/D
------------------------------------------------------------------
- 0 16 Bra 0
- 3 10 Once
- 6 1 x
- 9 x{,2}
- 13 10 Ket
- 16 16 Ket
- 19 End
+ 0 15 Bra 0
+ 3 9 Once
+ 6 x
+ 8 x{,2}
+ 12 9 Ket
+ 15 15 Ket
+ 18 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'x'
No need char
/(x)*+/D
------------------------------------------------------------------
- 0 19 Bra 0
- 3 13 Once
+ 0 18 Bra 0
+ 3 12 Once
6 Brazero
- 7 6 Bra 1
- 10 1 x
- 13 6 KetRmax
- 16 13 Ket
- 19 19 Ket
- 22 End
+ 7 5 Bra 1
+ 10 x
+ 12 5 KetRmax
+ 15 12 Ket
+ 18 18 Ket
+ 21 End
------------------------------------------------------------------
Capturing subpattern count = 1
No options
@@ -2861,6 +2989,7 @@ No need char
/^(\w++|\s++)*$/
Capturing subpattern count = 1
+Partial matching not supported
Options: anchored
No first char
No need char
@@ -2874,6 +3003,7 @@ No match
/(\d++)(\w)/
Capturing subpattern count = 2
+Partial matching not supported
No options
No first char
No need char
@@ -2888,6 +3018,7 @@ No match
/a++b/
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
Need char = 'b'
@@ -2896,6 +3027,7 @@ Need char = 'b'
/(a++b)/
Capturing subpattern count = 1
+Partial matching not supported
No options
First char = 'a'
Need char = 'b'
@@ -2905,6 +3037,7 @@ Need char = 'b'
/(a++)b/
Capturing subpattern count = 1
+Partial matching not supported
No options
First char = 'a'
Need char = 'b'
@@ -2914,6 +3047,7 @@ Need char = 'b'
/([^()]++|\([^()]*\))+/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
No need char
@@ -2923,6 +3057,7 @@ No need char
/\(([^()]++|\([^()]+\))+\)/
Capturing subpattern count = 1
+Partial matching not supported
No options
First char = '('
Need char = ')'
@@ -2939,24 +3074,24 @@ No match
/(abc){1,3}+/D
------------------------------------------------------------------
- 0 50 Bra 0
- 3 44 Once
- 6 8 Bra 1
- 9 3 abc
- 14 8 Ket
- 17 Brazero
- 18 26 Bra 0
- 21 8 Bra 1
- 24 3 abc
- 29 8 Ket
- 32 Brazero
- 33 8 Bra 1
- 36 3 abc
- 41 8 Ket
- 44 26 Ket
- 47 44 Ket
- 50 50 Ket
- 53 End
+ 0 53 Bra 0
+ 3 47 Once
+ 6 9 Bra 1
+ 9 abc
+ 15 9 Ket
+ 18 Brazero
+ 19 28 Bra 0
+ 22 9 Bra 1
+ 25 abc
+ 31 9 Ket
+ 34 Brazero
+ 35 9 Bra 1
+ 38 abc
+ 44 9 Ket
+ 47 28 Ket
+ 50 47 Ket
+ 53 53 Ket
+ 56 End
------------------------------------------------------------------
Capturing subpattern count = 1
No options
@@ -2977,16 +3112,17 @@ Failed: nothing to repeat at offset 7
/x(?U)a++b/D
------------------------------------------------------------------
- 0 17 Bra 0
- 3 1 x
- 6 5 Once
- 9 a+
- 11 5 Ket
- 14 1 b
- 17 17 Ket
- 20 End
+ 0 15 Bra 0
+ 3 x
+ 5 5 Once
+ 8 a+
+ 10 5 Ket
+ 13 b
+ 15 15 Ket
+ 18 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'x'
Need char = 'b'
@@ -2995,16 +3131,17 @@ Need char = 'b'
/(?U)xa++b/D
------------------------------------------------------------------
- 0 17 Bra 0
- 3 1 x
- 6 5 Once
- 9 a+
- 11 5 Ket
- 14 1 b
- 17 17 Ket
- 20 End
+ 0 15 Bra 0
+ 3 x
+ 5 5 Once
+ 8 a+
+ 10 5 Ket
+ 13 b
+ 15 15 Ket
+ 18 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: ungreedy
First char = 'x'
Need char = 'b'
@@ -3020,10 +3157,10 @@ Need char = 'b'
10 a+
12 5 Ket
15 37 Bra 3
- 18 [a-b]+?
+ 18 [ab]+?
52 37 Ket
55 37 Bra 4
- 58 [b-c]+
+ 58 [bc]+
92 37 Ket
95 5 Bra 5
98 \w*
@@ -3033,38 +3170,41 @@ Need char = 'b'
109 End
------------------------------------------------------------------
Capturing subpattern count = 5
+Partial matching not supported
Options: anchored
No first char
No need char
/^x(?U)a+b/D
------------------------------------------------------------------
- 0 12 Bra 0
+ 0 10 Bra 0
3 ^
- 4 1 x
- 7 a+?
- 9 1 b
- 12 12 Ket
- 15 End
+ 4 x
+ 6 a+?
+ 8 b
+ 10 10 Ket
+ 13 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: anchored
No first char
Need char = 'b'
/^x(?U)(a+)b/D
------------------------------------------------------------------
- 0 18 Bra 0
+ 0 16 Bra 0
3 ^
- 4 1 x
- 7 5 Bra 1
- 10 a+?
- 12 5 Ket
- 15 1 b
- 18 18 Ket
- 21 End
+ 4 x
+ 6 5 Bra 1
+ 9 a+?
+ 11 5 Ket
+ 14 b
+ 16 16 Ket
+ 19 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
Options: anchored
No first char
Need char = 'b'
@@ -3079,34 +3219,19 @@ Failed: POSIX collating elements are not supported at offset 0
Failed: POSIX named classes are supported only within a class at offset 0
/\l/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
+Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1
/\L/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
+Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1
/\N{name}/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
-
-/\pP/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
-
-/\PP/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
-
-/\p{prop}/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
-
-/\P{prop}/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
+Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1
/\u/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
+Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1
/\U/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
-
-/\X/
-Failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1
+Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1
/[/
Failed: missing terminating ] for character class at offset 1
@@ -3121,7 +3246,7 @@ Failed: missing terminating ] for character class at offset 10
Memory allocation (code space): 40
------------------------------------------------------------------
0 36 Bra 0
- 3 [\x09-\x0a\x0c-\x0d ]
+ 3 [\x09\x0a\x0c\x0d ]
36 36 Ket
39 End
------------------------------------------------------------------
@@ -3158,6 +3283,7 @@ No need char
/< (?: (?(R) \d++ | [^<>]*+) | (?R)) * >/x
Capturing subpattern count = 0
+Partial matching not supported
Options: extended
First char = '<'
Need char = '>'
@@ -3179,14 +3305,13 @@ No match
No match
|8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|DM
-Memory allocation (code space): 421
+Memory allocation (code space): 826
------------------------------------------------------------------
- 0 417 Bra 0
- 3 250 8J$WE<.rX+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:
-255 159 x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
-416 \b
-417 417 Ket
-420 End
+ 0 822 Bra 0
+ 3 8J$WE<.rX+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
+821 \b
+822 822 Ket
+825 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -3194,14 +3319,13 @@ First char = '8'
Need char = 'X'
|\$\<\.X\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|DM
-Memory allocation (code space): 416
+Memory allocation (code space): 816
------------------------------------------------------------------
- 0 412 Bra 0
- 3 250 $<.X+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[
-255 154 %z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
-411 \b
-412 412 Ket
-415 End
+ 0 812 Bra 0
+ 3 $<.X+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
+811 \b
+812 812 Ket
+815 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -3211,12 +3335,14 @@ Need char = 'X'
/(.*)\d+\1/I
Capturing subpattern count = 1
Max back reference = 1
+Partial matching not supported
No options
No first char
No need char
/(.*)\d+/I
Capturing subpattern count = 1
+Partial matching not supported
No options
First char at start or follows \n
No need char
@@ -3224,12 +3350,14 @@ No need char
/(.*)\d+\1/Is
Capturing subpattern count = 1
Max back reference = 1
+Partial matching not supported
Options: dotall
No first char
No need char
/(.*)\d+/Is
Capturing subpattern count = 1
+Partial matching not supported
Options: anchored dotall
No first char
No need char
@@ -3237,6 +3365,7 @@ No need char
/(.*(xyz))\d+\2/I
Capturing subpattern count = 2
Max back reference = 2
+Partial matching not supported
No options
First char at start or follows \n
Need char = 'z'
@@ -3244,6 +3373,7 @@ Need char = 'z'
/((.*))\d+\1/I
Capturing subpattern count = 2
Max back reference = 1
+Partial matching not supported
No options
No first char
No need char
@@ -3260,6 +3390,7 @@ Need char = 'b'
/(?=a).*/I
Capturing subpattern count = 0
+Partial matching not supported
No options
First char = 'a'
No need char
@@ -3366,7 +3497,7 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: a b
+Starting byte set: a b
/[^a]/I
Capturing subpattern count = 0
@@ -3385,7 +3516,7 @@ Capturing subpattern count = 0
No options
No first char
Need char = '6'
-Starting character set: 0 1 2 3 4 5 6 7 8 9
+Starting byte set: 0 1 2 3 4 5 6 7 8 9
/a^b/I
Capturing subpattern count = 0
@@ -3418,7 +3549,7 @@ Capturing subpattern count = 0
Options: caseless
No first char
No need char
-Starting character set: A B a b
+Starting byte set: A B a b
/[ab](?i)cd/IS
Capturing subpattern count = 0
@@ -3426,7 +3557,7 @@ No options
Case state changes
No first char
Need char = 'd' (caseless)
-Starting character set: a b
+Starting byte set: a b
/abc(?C)def/
Capturing subpattern count = 0
@@ -3435,11 +3566,11 @@ First char = 'a'
Need char = 'f'
abcdef
--->abcdef
- 0 ^ ^
+ 0 ^ ^ d
0: abcdef
1234abcdef
--->1234abcdef
- 0 ^ ^
+ 0 ^ ^ d
0: abcdef
*** Failers
No match
@@ -3447,7 +3578,7 @@ No match
No match
abcxyzf
--->abcxyzf
- 0 ^ ^
+ 0 ^ ^ d
No match
/abc(?C)de(?C1)f/
@@ -3457,8 +3588,8 @@ First char = 'a'
Need char = 'f'
123abcdef
--->123abcdef
- 0 ^ ^
- 1 ^ ^
+ 0 ^ ^ d
+ 1 ^ ^ f
0: abcdef
/(?C1)\dabc(?C2)def/
@@ -3468,22 +3599,22 @@ No first char
Need char = 'f'
1234abcdef
--->1234abcdef
- 1 ^
- 1 ^
- 1 ^
- 1 ^
- 2 ^ ^
+ 1 ^ \d
+ 1 ^ \d
+ 1 ^ \d
+ 1 ^ \d
+ 2 ^ ^ d
0: 4abcdef
*** Failers
No match
abcdef
--->abcdef
- 1 ^
- 1 ^
- 1 ^
- 1 ^
- 1 ^
- 1 ^
+ 1 ^ \d
+ 1 ^ \d
+ 1 ^ \d
+ 1 ^ \d
+ 1 ^ \d
+ 1 ^ \d
No match
/(?C255)ab/
@@ -3510,7 +3641,7 @@ Need char = 'f'
No match
\x83\x0\x61bcdef
--->\x83\x00abcdef
- 0 ^ ^
+ 0 ^ ^ d
0: abcdef
/(abc)(?C)de(?C1)f/
@@ -3520,8 +3651,8 @@ First char = 'a'
Need char = 'f'
123abcdef
--->123abcdef
- 0 ^ ^
- 1 ^ ^
+ 0 ^ ^ d
+ 1 ^ ^ f
0: abcdef
1: abc
123abcdef\C+
@@ -3529,12 +3660,12 @@ Callout 0: last capture = 1
0: <unset>
1: abc
--->123abcdef
- ^ ^
+ ^ ^ d
Callout 1: last capture = 1
0: <unset>
1: abc
--->123abcdef
- ^ ^
+ ^ ^ f
0: abcdef
1: abc
123abcdef\C-
@@ -3544,8 +3675,8 @@ Callout 1: last capture = 1
No match
123abcdef\C!1
--->123abcdef
- 0 ^ ^
- 1 ^ ^
+ 0 ^ ^ d
+ 1 ^ ^ f
No match
/(?C0)(abc(?C1))*/
@@ -3555,34 +3686,35 @@ No first char
No need char
abcabcabc
--->abcabcabc
- 0 ^
- 1 ^ ^
- 1 ^ ^
- 1 ^ ^
+ 0 ^ (abc(?C1))*
+ 1 ^ ^ )
+ 1 ^ ^ )
+ 1 ^ ^ )
0: abcabcabc
1: abc
abcabc\C!1!3
--->abcabc
- 0 ^
- 1 ^ ^
- 1 ^ ^
+ 0 ^ (abc(?C1))*
+ 1 ^ ^ )
+ 1 ^ ^ )
0: abcabc
1: abc
*** Failers
--->*** Failers
- 0 ^
+ 0 ^ (abc(?C1))*
0:
abcabcabc\C!1!3
--->abcabcabc
- 0 ^
- 1 ^ ^
- 1 ^ ^
- 1 ^ ^
+ 0 ^ (abc(?C1))*
+ 1 ^ ^ )
+ 1 ^ ^ )
+ 1 ^ ^ )
0: abcabc
1: abc
/(\d{3}(?C))*/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
No need char
@@ -3590,36 +3722,36 @@ No need char
Callout 0: last capture = -1
0: <unset>
--->123
- ^ ^
+ ^ ^ )
0: 123
1: 123
123456\C+
Callout 0: last capture = -1
0: <unset>
--->123456
- ^ ^
+ ^ ^ )
Callout 0: last capture = 1
0: <unset>
1: 123
--->123456
- ^ ^
+ ^ ^ )
0: 123456
1: 456
123456789\C+
Callout 0: last capture = -1
0: <unset>
--->123456789
- ^ ^
+ ^ ^ )
Callout 0: last capture = 1
0: <unset>
1: 123
--->123456789
- ^ ^
+ ^ ^ )
Callout 0: last capture = 1
0: <unset>
1: 456
--->123456789
- ^ ^
+ ^ ^ )
0: 123456789
1: 789
@@ -3634,11 +3766,11 @@ Callout 0: last capture = 2
1: <unset>
2: xyz
--->xyzabc
- ^ ^
+ ^ ^ p
Callout 1: last capture = -1
0: <unset>
--->xyzabc
- ^
+ ^ x
0: xyzabc
1: xyzabc
@@ -3654,12 +3786,12 @@ Callout 0: last capture = 3
2: <unset>
3: xyz
--->Xxyzabc
- ^ ^
+ ^ ^ p
Callout 1: last capture = 1
0: <unset>
1: X
--->Xxyzabc
- ^^
+ ^^ x
0: Xxyzabc
1: X
2: xyzabc
@@ -3674,7 +3806,7 @@ Callout 0: last capture = 1
0: <unset>
1: abc
--->abcdef
- ^
+ ^ a
0: abcdef
1: abc
@@ -3688,11 +3820,11 @@ Callout 1: last capture = 1
0: <unset>
1: abc
--->abcxyz
- ^ ^
+ ^ ^ d
Callout 2: last capture = -1
0: <unset>
--->abcxyz
- ^
+ ^ a
0: abcxyz
/(?<=(abc)(?C))xyz/
@@ -3705,7 +3837,7 @@ Callout 0: last capture = 1
0: <unset>
1: abc
--->abcxyz
- ^
+ ^ )
0: xyz
1: abc
@@ -3726,7 +3858,7 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: a b
+Starting byte set: a b
/(?R)/
Failed: recursive call could loop indefinitely at offset 3
@@ -3811,14 +3943,14 @@ Need char = '<'
/(a(?1)b)/D
------------------------------------------------------------------
- 0 18 Bra 0
- 3 12 Bra 1
- 6 1 a
- 9 3 Recurse
- 12 1 b
- 15 12 Ket
- 18 18 Ket
- 21 End
+ 0 16 Bra 0
+ 3 10 Bra 1
+ 6 a
+ 8 3 Recurse
+ 11 b
+ 13 10 Ket
+ 16 16 Ket
+ 19 End
------------------------------------------------------------------
Capturing subpattern count = 1
No options
@@ -3827,16 +3959,16 @@ Need char = 'b'
/(a(?1)+b)/D
------------------------------------------------------------------
- 0 24 Bra 0
- 3 18 Bra 1
- 6 1 a
- 9 6 Bra 0
- 12 3 Recurse
- 15 6 KetRmax
- 18 1 b
- 21 18 Ket
- 24 24 Ket
- 27 End
+ 0 22 Bra 0
+ 3 16 Bra 1
+ 6 a
+ 8 6 Bra 0
+ 11 3 Recurse
+ 14 6 KetRmax
+ 17 b
+ 19 16 Ket
+ 22 22 Ket
+ 25 End
------------------------------------------------------------------
Capturing subpattern count = 1
No options
@@ -3846,6 +3978,7 @@ Need char = 'b'
/^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/i
Capturing subpattern count = 4
Max back reference = 4
+Partial matching not supported
Options: anchored caseless
No first char
No need char
@@ -3878,6 +4011,7 @@ No match
/^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/
Capturing subpattern count = 2
+Partial matching not supported
Options: anchored
No first char
No need char
@@ -3918,6 +4052,7 @@ No match
/((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/x
Capturing subpattern count = 2
+Partial matching not supported
Options: extended
First char = '<'
Need char = '>'
@@ -4000,19 +4135,19 @@ No need char
/a(?P<name1>b|c)d(?P<longername2>e)/D
------------------------------------------------------------------
- 0 33 Bra 0
- 3 1 a
- 6 6 Bra 1
- 9 1 b
- 12 6 Alt
- 15 1 c
- 18 12 Ket
- 21 1 d
- 24 6 Bra 2
- 27 1 e
- 30 6 Ket
- 33 33 Ket
- 36 End
+ 0 28 Bra 0
+ 3 a
+ 5 5 Bra 1
+ 8 b
+ 10 5 Alt
+ 13 c
+ 15 10 Ket
+ 18 d
+ 20 5 Bra 2
+ 23 e
+ 25 5 Ket
+ 28 28 Ket
+ 31 End
------------------------------------------------------------------
Capturing subpattern count = 2
Named capturing subpatterns:
@@ -4032,21 +4167,21 @@ Need char = 'e'
/(?:a(?P<c>c(?P<d>d)))(?P<a>a)/D
------------------------------------------------------------------
- 0 39 Bra 0
- 3 24 Bra 0
- 6 1 a
- 9 15 Bra 1
- 12 1 c
- 15 6 Bra 2
- 18 1 d
- 21 6 Ket
- 24 15 Ket
- 27 24 Ket
- 30 6 Bra 3
- 33 1 a
- 36 6 Ket
- 39 39 Ket
- 42 End
+ 0 35 Bra 0
+ 3 21 Bra 0
+ 6 a
+ 8 13 Bra 1
+ 11 c
+ 13 5 Bra 2
+ 16 d
+ 18 5 Ket
+ 21 13 Ket
+ 24 21 Ket
+ 27 5 Bra 3
+ 30 a
+ 32 5 Ket
+ 35 35 Ket
+ 38 End
------------------------------------------------------------------
Capturing subpattern count = 3
Named capturing subpatterns:
@@ -4059,19 +4194,19 @@ Need char = 'a'
/(?P<a>a)...(?P=a)bbb(?P>a)d/D
------------------------------------------------------------------
- 0 29 Bra 0
- 3 6 Bra 1
- 6 1 a
- 9 6 Ket
+ 0 28 Bra 0
+ 3 5 Bra 1
+ 6 a
+ 8 5 Ket
+ 11 Any
12 Any
13 Any
- 14 Any
- 15 \1
- 18 3 bbb
+ 14 \1
+ 17 bbb
23 3 Recurse
- 26 1 d
- 29 29 Ket
- 32 End
+ 26 d
+ 28 28 Ket
+ 31 End
------------------------------------------------------------------
Capturing subpattern count = 1
Max back reference = 1
@@ -4089,6 +4224,7 @@ Named capturing subpatterns:
one 1
three 3
two 2
+Partial matching not supported
Options: anchored caseless
No first char
No need char
@@ -4134,6 +4270,7 @@ No need char
/(.*)a/sI
Capturing subpattern count = 1
+Partial matching not supported
Options: anchored dotall
No first char
Need char = 'a'
@@ -4141,6 +4278,7 @@ Need char = 'a'
/(.*)a\1/sI
Capturing subpattern count = 1
Max back reference = 1
+Partial matching not supported
Options: dotall
No first char
Need char = 'a'
@@ -4148,12 +4286,14 @@ Need char = 'a'
/(.*)a(b)\2/sI
Capturing subpattern count = 2
Max back reference = 2
+Partial matching not supported
Options: anchored dotall
No first char
Need char = 'b'
/((.*)a|(.*)b)z/sI
Capturing subpattern count = 3
+Partial matching not supported
Options: anchored dotall
No first char
Need char = 'z'
@@ -4161,6 +4301,7 @@ Need char = 'z'
/((.*)a|(.*)b)z\1/sI
Capturing subpattern count = 3
Max back reference = 1
+Partial matching not supported
Options: dotall
No first char
Need char = 'z'
@@ -4168,6 +4309,7 @@ Need char = 'z'
/((.*)a|(.*)b)z\2/sI
Capturing subpattern count = 3
Max back reference = 2
+Partial matching not supported
Options: dotall
No first char
Need char = 'z'
@@ -4175,6 +4317,7 @@ Need char = 'z'
/((.*)a|(.*)b)z\3/sI
Capturing subpattern count = 3
Max back reference = 3
+Partial matching not supported
Options: dotall
No first char
Need char = 'z'
@@ -4182,12 +4325,14 @@ Need char = 'z'
/((.*)a|^(.*)b)z\3/sI
Capturing subpattern count = 3
Max back reference = 3
+Partial matching not supported
Options: anchored dotall
No first char
Need char = 'z'
/(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/sI
Capturing subpattern count = 31
+Partial matching not supported
Options: anchored dotall
No first char
No need char
@@ -4195,6 +4340,7 @@ No need char
/(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/sI
Capturing subpattern count = 31
Max back reference = 31
+Partial matching not supported
Options: dotall
No first char
No need char
@@ -4202,21 +4348,22 @@ No need char
/(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/sI
Capturing subpattern count = 32
Max back reference = 32
+Partial matching not supported
Options: dotall
No first char
No need char
/(a)(bc)/ND
------------------------------------------------------------------
- 0 22 Bra 0
- 3 6 Bra 0
- 6 1 a
- 9 6 Ket
- 12 7 Bra 0
- 15 2 bc
- 19 7 Ket
- 22 22 Ket
- 25 End
+ 0 21 Bra 0
+ 3 5 Bra 0
+ 6 a
+ 8 5 Ket
+ 11 7 Bra 0
+ 14 bc
+ 18 7 Ket
+ 21 21 Ket
+ 24 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options:
@@ -4227,15 +4374,15 @@ Need char = 'c'
/(?P<one>a)(bc)/ND
------------------------------------------------------------------
- 0 22 Bra 0
- 3 6 Bra 1
- 6 1 a
- 9 6 Ket
- 12 7 Bra 0
- 15 2 bc
- 19 7 Ket
- 22 22 Ket
- 25 End
+ 0 21 Bra 0
+ 3 5 Bra 1
+ 6 a
+ 8 5 Ket
+ 11 7 Bra 0
+ 14 bc
+ 18 7 Ket
+ 21 21 Ket
+ 24 End
------------------------------------------------------------------
Capturing subpattern count = 1
Named capturing subpatterns:
@@ -4249,15 +4396,15 @@ Need char = 'c'
/(a)(?P<named>bc)/ND
------------------------------------------------------------------
- 0 22 Bra 0
- 3 6 Bra 0
- 6 1 a
- 9 6 Ket
- 12 7 Bra 1
- 15 2 bc
- 19 7 Ket
- 22 22 Ket
- 25 End
+ 0 21 Bra 0
+ 3 5 Bra 0
+ 6 a
+ 8 5 Ket
+ 11 7 Bra 1
+ 14 bc
+ 18 7 Ket
+ 21 21 Ket
+ 24 End
------------------------------------------------------------------
Capturing subpattern count = 1
Named capturing subpatterns:
@@ -4268,6 +4415,7 @@ Need char = 'c'
/(a+)*zz/
Capturing subpattern count = 1
+Partial matching not supported
No options
No first char
Need char = 'z'
@@ -4286,23 +4434,23 @@ First char = 'a'
Need char = 'b'
aaabbb
--->aaabbb
- 1 ^ ^
+ 1 ^ ^ b
0: aaabbb
1: aaabbb
aaabbb\C*0
--->aaabbb
- 1 ^ ^
+ 1 ^ ^ b
0: aaabbb
1: aaabbb
aaabbb\C*1
--->aaabbb
- 1 ^ ^
+ 1 ^ ^ b
Callout data = 1
0: ab
1: ab
aaabbb\C*-1
--->aaabbb
- 1 ^ ^
+ 1 ^ ^ b
Callout data = -1
No match
@@ -4401,6 +4549,7 @@ Failed: two named groups have the same name at offset 31
Capturing subpattern count = 3
Named capturing subpatterns:
elem 2
+Partial matching not supported
No options
First char = '['
Need char = ']'
@@ -4418,6 +4567,7 @@ No match
Capturing subpattern count = 3
Named capturing subpatterns:
elem 2
+Partial matching not supported
No options
First char = '['
Need char = ']'
@@ -4431,18 +4581,18 @@ Need char = ']'
/(a(b(?2)c))?/D
------------------------------------------------------------------
- 0 28 Bra 0
+ 0 25 Bra 0
3 Brazero
- 4 21 Bra 1
- 7 1 a
- 10 12 Bra 2
- 13 1 b
- 16 10 Recurse
- 19 1 c
- 22 12 Ket
- 25 21 Ket
- 28 28 Ket
- 31 End
+ 4 18 Bra 1
+ 7 a
+ 9 10 Bra 2
+ 12 b
+ 14 9 Recurse
+ 17 c
+ 19 10 Ket
+ 22 18 Ket
+ 25 25 Ket
+ 28 End
------------------------------------------------------------------
Capturing subpattern count = 2
No options
@@ -4451,18 +4601,18 @@ No need char
/(a(b(?2)c))*/D
------------------------------------------------------------------
- 0 28 Bra 0
+ 0 25 Bra 0
3 Brazero
- 4 21 Bra 1
- 7 1 a
- 10 12 Bra 2
- 13 1 b
- 16 10 Recurse
- 19 1 c
- 22 12 Ket
- 25 21 KetRmax
- 28 28 Ket
- 31 End
+ 4 18 Bra 1
+ 7 a
+ 9 10 Bra 2
+ 12 b
+ 14 9 Recurse
+ 17 c
+ 19 10 Ket
+ 22 18 KetRmax
+ 25 25 Ket
+ 28 End
------------------------------------------------------------------
Capturing subpattern count = 2
No options
@@ -4471,29 +4621,29 @@ No need char
/(a(b(?2)c)){0,2}/D
------------------------------------------------------------------
- 0 59 Bra 0
+ 0 53 Bra 0
3 Brazero
- 4 52 Bra 0
- 7 21 Bra 1
- 10 1 a
- 13 12 Bra 2
- 16 1 b
- 19 13 Recurse
- 22 1 c
- 25 12 Ket
- 28 21 Ket
- 31 Brazero
- 32 21 Bra 1
- 35 1 a
- 38 12 Bra 2
- 41 1 b
- 44 13 Recurse
- 47 1 c
- 50 12 Ket
- 53 21 Ket
- 56 52 Ket
- 59 59 Ket
- 62 End
+ 4 46 Bra 0
+ 7 18 Bra 1
+ 10 a
+ 12 10 Bra 2
+ 15 b
+ 17 12 Recurse
+ 20 c
+ 22 10 Ket
+ 25 18 Ket
+ 28 Brazero
+ 29 18 Bra 1
+ 32 a
+ 34 10 Bra 2
+ 37 b
+ 39 12 Recurse
+ 42 c
+ 44 10 Ket
+ 47 18 Ket
+ 50 46 Ket
+ 53 53 Ket
+ 56 End
------------------------------------------------------------------
Capturing subpattern count = 2
No options
@@ -4504,7 +4654,7 @@ No need char
------------------------------------------------------------------
0 47 Bra 0
3 41 Once
- 6 [a-b]{1,1}
+ 6 [ab]{1,1}
44 41 Ket
47 47 Ket
50 End
@@ -4516,6 +4666,7 @@ No need char
/((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/i
Capturing subpattern count = 3
+Partial matching not supported
Options: caseless
No first char
Need char = 'g' (caseless)
@@ -4525,6 +4676,7 @@ Need char = 'g' (caseless)
/((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/iS
Capturing subpattern count = 3
+Partial matching not supported
Options: caseless
No first char
Need char = 'g' (caseless)
@@ -4535,14 +4687,15 @@ Study returned NULL
/a*.*b/SD
------------------------------------------------------------------
- 0 10 Bra 0
+ 0 9 Bra 0
3 a*
5 Any*
- 7 1 b
- 10 10 Ket
- 13 End
+ 7 b
+ 9 9 Ket
+ 12 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
No options
No first char
Need char = 'b'
@@ -4550,17 +4703,17 @@ Study returned NULL
/(a|b)*.?c/SD
------------------------------------------------------------------
- 0 24 Bra 0
+ 0 21 Bra 0
3 Brazero
- 4 6 Bra 1
- 7 1 a
- 10 6 Alt
- 13 1 b
- 16 12 KetRmax
- 19 Any?
- 21 1 c
- 24 24 Ket
- 27 End
+ 4 5 Bra 1
+ 7 a
+ 9 5 Alt
+ 12 b
+ 14 10 KetRmax
+ 17 Any?
+ 19 c
+ 21 21 Ket
+ 24 End
------------------------------------------------------------------
Capturing subpattern count = 1
No options
@@ -4568,6 +4721,885 @@ No first char
Need char = 'c'
Study returned NULL
+/abc(?C255)de(?C)f/D
+------------------------------------------------------------------
+ 0 27 Bra 0
+ 3 abc
+ 9 Callout 255 10 1
+ 15 de
+ 19 Callout 0 16 1
+ 25 f
+ 27 27 Ket
+ 30 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+No options
+First char = 'a'
+Need char = 'f'
+
+/abcde/CD
+------------------------------------------------------------------
+ 0 49 Bra 0
+ 3 Callout 255 0 1
+ 9 a
+ 11 Callout 255 1 1
+ 17 b
+ 19 Callout 255 2 1
+ 25 c
+ 27 Callout 255 3 1
+ 33 d
+ 35 Callout 255 4 1
+ 41 e
+ 43 Callout 255 5 0
+ 49 49 Ket
+ 52 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options:
+First char = 'a'
+Need char = 'e'
+ abcde
+--->abcde
+ +0 ^ a
+ +1 ^^ b
+ +2 ^ ^ c
+ +3 ^ ^ d
+ +4 ^ ^ e
+ +5 ^ ^
+ 0: abcde
+ abcdfe
+--->abcdfe
+ +0 ^ a
+ +1 ^^ b
+ +2 ^ ^ c
+ +3 ^ ^ d
+ +4 ^ ^ e
+No match
+
+/a*b/CD
+------------------------------------------------------------------
+ 0 25 Bra 0
+ 3 Callout 255 0 2
+ 9 a*
+ 11 Callout 255 2 1
+ 17 b
+ 19 Callout 255 3 0
+ 25 25 Ket
+ 28 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Partial matching not supported
+Options:
+No first char
+Need char = 'b'
+ ab
+--->ab
+ +0 ^ a*
+ +2 ^^ b
+ +3 ^ ^
+ 0: ab
+ aaaab
+--->aaaab
+ +0 ^ a*
+ +2 ^ ^ b
+ +3 ^ ^
+ 0: aaaab
+ aaaacb
+--->aaaacb
+ +0 ^ a*
+ +2 ^ ^ b
+ +2 ^ ^ b
+ +2 ^ ^ b
+ +2 ^^ b
+ +2 ^ b
+ +0 ^ a*
+ +2 ^ ^ b
+ +2 ^ ^ b
+ +2 ^^ b
+ +2 ^ b
+ +0 ^ a*
+ +2 ^ ^ b
+ +2 ^^ b
+ +2 ^ b
+ +0 ^ a*
+ +2 ^^ b
+ +2 ^ b
+ +0 ^ a*
+ +2 ^ b
+ +0 ^ a*
+ +2 ^ b
+ +3 ^^
+ 0: b
+
+/a+b/CD
+------------------------------------------------------------------
+ 0 25 Bra 0
+ 3 Callout 255 0 2
+ 9 a+
+ 11 Callout 255 2 1
+ 17 b
+ 19 Callout 255 3 0
+ 25 25 Ket
+ 28 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Partial matching not supported
+Options:
+First char = 'a'
+Need char = 'b'
+ ab
+--->ab
+ +0 ^ a+
+ +2 ^^ b
+ +3 ^ ^
+ 0: ab
+ aaaab
+--->aaaab
+ +0 ^ a+
+ +2 ^ ^ b
+ +3 ^ ^
+ 0: aaaab
+ aaaacb
+--->aaaacb
+ +0 ^ a+
+ +2 ^ ^ b
+ +2 ^ ^ b
+ +2 ^ ^ b
+ +2 ^^ b
+ +0 ^ a+
+ +2 ^ ^ b
+ +2 ^ ^ b
+ +2 ^^ b
+ +0 ^ a+
+ +2 ^ ^ b
+ +2 ^^ b
+ +0 ^ a+
+ +2 ^^ b
+No match
+
+/(abc|def)x/CD
+------------------------------------------------------------------
+ 0 92 Bra 0
+ 3 Callout 255 0 9
+ 9 33 Bra 1
+ 12 Callout 255 1 1
+ 18 a
+ 20 Callout 255 2 1
+ 26 b
+ 28 Callout 255 3 1
+ 34 c
+ 36 Callout 255 4 0
+ 42 33 Alt
+ 45 Callout 255 5 1
+ 51 d
+ 53 Callout 255 6 1
+ 59 e
+ 61 Callout 255 7 1
+ 67 f
+ 69 Callout 255 8 0
+ 75 66 Ket
+ 78 Callout 255 9 1
+ 84 x
+ 86 Callout 255 10 0
+ 92 92 Ket
+ 95 End
+------------------------------------------------------------------
+Capturing subpattern count = 1
+Options:
+No first char
+Need char = 'x'
+ abcx
+--->abcx
+ +0 ^ (abc|def)
+ +1 ^ a
+ +2 ^^ b
+ +3 ^ ^ c
+ +4 ^ ^ |
+ +9 ^ ^ x
++10 ^ ^
+ 0: abcx
+ 1: abc
+ defx
+--->defx
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+ +6 ^^ e
+ +7 ^ ^ f
+ +8 ^ ^ )
+ +9 ^ ^ x
++10 ^ ^
+ 0: defx
+ 1: def
+ abcdefzx
+--->abcdefzx
+ +0 ^ (abc|def)
+ +1 ^ a
+ +2 ^^ b
+ +3 ^ ^ c
+ +4 ^ ^ |
+ +9 ^ ^ x
+ +5 ^ d
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+ +6 ^^ e
+ +7 ^ ^ f
+ +8 ^ ^ )
+ +9 ^ ^ x
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+ +0 ^ (abc|def)
+ +1 ^ a
+ +5 ^ d
+No match
+
+/(ab|cd){3,4}/C
+Capturing subpattern count = 1
+Options:
+No first char
+No need char
+ ababab
+--->ababab
+ +0 ^ (ab|cd){3,4}
+ +1 ^ a
+ +2 ^^ b
+ +3 ^ ^ |
+ +1 ^ ^ a
+ +2 ^ ^ b
+ +3 ^ ^ |
+ +1 ^ ^ a
+ +2 ^ ^ b
+ +3 ^ ^ |
+ +1 ^ ^ a
+ +4 ^ ^ c
++12 ^ ^
+ 0: ababab
+ 1: ab
+ abcdabcd
+--->abcdabcd
+ +0 ^ (ab|cd){3,4}
+ +1 ^ a
+ +2 ^^ b
+ +3 ^ ^ |
+ +1 ^ ^ a
+ +4 ^ ^ c
+ +5 ^ ^ d
+ +6 ^ ^ )
+ +1 ^ ^ a
+ +2 ^ ^ b
+ +3 ^ ^ |
+ +1 ^ ^ a
+ +4 ^ ^ c
+ +5 ^ ^ d
+ +6 ^ ^ )
++12 ^ ^
+ 0: abcdabcd
+ 1: cd
+ abcdcdcdcdcd
+--->abcdcdcdcdcd
+ +0 ^ (ab|cd){3,4}
+ +1 ^ a
+ +2 ^^ b
+ +3 ^ ^ |
+ +1 ^ ^ a
+ +4 ^ ^ c
+ +5 ^ ^ d
+ +6 ^ ^ )
+ +1 ^ ^ a
+ +4 ^ ^ c
+ +5 ^ ^ d
+ +6 ^ ^ )
+ +1 ^ ^ a
+ +4 ^ ^ c
+ +5 ^ ^ d
+ +6 ^ ^ )
++12 ^ ^
+ 0: abcdcdcd
+ 1: cd
+
+/([ab]{,4}c|xy)/CD
+------------------------------------------------------------------
+ 0 131 Bra 0
+ 3 Callout 255 0 14
+ 9 88 Bra 1
+ 12 Callout 255 1 4
+ 18 [ab]
+ 51 Callout 255 5 1
+ 57 {
+ 59 Callout 255 6 1
+ 65 ,
+ 67 Callout 255 7 1
+ 73 4
+ 75 Callout 255 8 1
+ 81 }
+ 83 Callout 255 9 1
+ 89 c
+ 91 Callout 255 10 0
+ 97 25 Alt
+100 Callout 255 11 1
+106 x
+108 Callout 255 12 1
+114 y
+116 Callout 255 13 0
+122 113 Ket
+125 Callout 255 14 0
+131 131 Ket
+134 End
+------------------------------------------------------------------
+Capturing subpattern count = 1
+Options:
+No first char
+No need char
+ Note: that { does NOT introduce a quantifier
+--->Note: that { does NOT introduce a quantifier
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
+ +5 ^^ {
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
+ +5 ^^ {
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
+ +5 ^^ {
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+ +0 ^ ([ab]{,4}c|xy)
+ +1 ^ [ab]
++11 ^ x
+No match
+
+/([ab]{1,4}c|xy){4,5}?123/CD
+------------------------------------------------------------------
+ 0 485 Bra 0
+ 3 Callout 255 0 21
+ 9 61 Bra 1
+ 12 Callout 255 1 9
+ 18 [ab]{1,4}
+ 56 Callout 255 10 1
+ 62 c
+ 64 Callout 255 11 0
+ 70 25 Alt
+ 73 Callout 255 12 1
+ 79 x
+ 81 Callout 255 13 1
+ 87 y
+ 89 Callout 255 14 0
+ 95 86 Ket
+ 98 61 Bra 1
+101 Callout 255 1 9
+107 [ab]{1,4}
+145 Callout 255 10 1
+151 c
+153 Callout 255 11 0
+159 25 Alt
+162 Callout 255 12 1
+168 x
+170 Callout 255 13 1
+176 y
+178 Callout 255 14 0
+184 86 Ket
+187 61 Bra 1
+190 Callout 255 1 9
+196 [ab]{1,4}
+234 Callout 255 10 1
+240 c
+242 Callout 255 11 0
+248 25 Alt
+251 Callout 255 12 1
+257 x
+259 Callout 255 13 1
+265 y
+267 Callout 255 14 0
+273 86 Ket
+276 61 Bra 1
+279 Callout 255 1 9
+285 [ab]{1,4}
+323 Callout 255 10 1
+329 c
+331 Callout 255 11 0
+337 25 Alt
+340 Callout 255 12 1
+346 x
+348 Callout 255 13 1
+354 y
+356 Callout 255 14 0
+362 86 Ket
+365 Braminzero
+366 61 Bra 1
+369 Callout 255 1 9
+375 [ab]{1,4}
+413 Callout 255 10 1
+419 c
+421 Callout 255 11 0
+427 25 Alt
+430 Callout 255 12 1
+436 x
+438 Callout 255 13 1
+444 y
+446 Callout 255 14 0
+452 86 Ket
+455 Callout 255 21 1
+461 1
+463 Callout 255 22 1
+469 2
+471 Callout 255 23 1
+477 3
+479 Callout 255 24 0
+485 485 Ket
+488 End
+------------------------------------------------------------------
+Capturing subpattern count = 1
+Partial matching not supported
+Options:
+No first char
+Need char = '3'
+ aacaacaacaacaac123
+--->aacaacaacaacaac123
+ +0 ^ ([ab]{1,4}c|xy){4,5}?
+ +1 ^ [ab]{1,4}
++10 ^ ^ c
++11 ^ ^ |
+ +1 ^ ^ [ab]{1,4}
++10 ^ ^ c
++11 ^ ^ |
+ +1 ^ ^ [ab]{1,4}
++10 ^ ^ c
++11 ^ ^ |
+ +1 ^ ^ [ab]{1,4}
++10 ^ ^ c
++11 ^ ^ |
++21 ^ ^ 1
+ +1 ^ ^ [ab]{1,4}
++10 ^ ^ c
++11 ^ ^ |
++21 ^ ^ 1
++22 ^ ^ 2
++23 ^ ^ 3
++24 ^ ^
+ 0: aacaacaacaacaac123
+ 1: aac
+
+/\b.*/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+No first char
+No need char
+ ab cd\>1
+ 0: cd
+
+/\b.*/Is
+Capturing subpattern count = 0
+Partial matching not supported
+Options: dotall
+No first char
+No need char
+ ab cd\>1
+ 0: cd
+
+/(?!.bcd).*/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+No first char
+No need char
+ Xbcd12345
+ 0: bcd12345
+
+/abcde/
+Capturing subpattern count = 0
+No options
+First char = 'a'
+Need char = 'e'
+ ab\P
+Partial match
+ abc\P
+Partial match
+ abcd\P
+Partial match
+ abcde\P
+ 0: abcde
+ the quick brown abc\P
+Partial match
+ ** Failers\P
+No match
+ the quick brown abxyz fox\P
+No match
+
+"^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"
+Capturing subpattern count = 3
+Options: anchored
+No first char
+Need char = '/'
+ 13/05/04\P
+ 0: 13/05/04
+ 1: 13
+ 2: 05
+ 13/5/2004\P
+ 0: 13/5/2004
+ 1: 13
+ 2: 5
+ 3: 20
+ 02/05/09\P
+ 0: 02/05/09
+ 1: 02
+ 2: 05
+ 1\P
+Partial match
+ 1/2\P
+Partial match
+ 1/2/0\P
+Partial match
+ 1/2/04\P
+ 0: 1/2/04
+ 1: 1
+ 2: 2
+ 0\P
+Partial match
+ 02/\P
+Partial match
+ 02/0\P
+Partial match
+ 02/1\P
+Partial match
+ ** Failers\P
+No match
+ \P
+No match
+ 123\P
+No match
+ 33/4/04\P
+No match
+ 3/13/04\P
+No match
+ 0/1/2003\P
+No match
+ 0/\P
+No match
+ 02/0/\P
+No match
+ 02/13\P
+No match
+
+/0{0,2}ABC/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+No first char
+Need char = 'C'
+
+/\d{3,}ABC/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+No first char
+Need char = 'C'
+
+/\d*ABC/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+No first char
+Need char = 'C'
+
+/[abc]+DE/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+No first char
+Need char = 'E'
+
+/[abc]?123/
+Capturing subpattern count = 0
+No options
+No first char
+Need char = '3'
+ 123\P
+ 0: 123
+ a\P
+Partial match
+ b\P
+Partial match
+ c\P
+Partial match
+ c12\P
+Partial match
+ c123\P
+ 0: c123
+
+/^(?:\d){3,5}X/
+Capturing subpattern count = 0
+Options: anchored
+No first char
+Need char = 'X'
+ 1\P
+Partial match
+ 123\P
+Partial match
+ 123X
+ 0: 123X
+ 1234\P
+Partial match
+ 1234X
+ 0: 1234X
+ 12345\P
+Partial match
+ 12345X
+ 0: 12345X
+ *** Failers
+No match
+ 1X
+No match
+ 123456\P
+No match
+
+/abc/>testsavedregex
+Capturing subpattern count = 0
+No options
+First char = 'a'
+Need char = 'c'
+Compiled regex written to testsavedregex
+<testsavedregex
+Compiled regex loaded from testsavedregex
+No study data
+Capturing subpattern count = 0
+No options
+First char = 'a'
+Need char = 'c'
+ abc
+ 0: abc
+ ** Failers
+No match
+ bca
+No match
+
+/abc/F>testsavedregex
+Capturing subpattern count = 0
+No options
+First char = 'a'
+Need char = 'c'
+Compiled regex written to testsavedregex
+<testsavedregex
+Compiled regex (byte-inverted) loaded from testsavedregex
+No study data
+Capturing subpattern count = 0
+No options
+First char = 'a'
+Need char = 'c'
+ abc
+ 0: abc
+ ** Failers
+No match
+ bca
+No match
+
+/(a|b)/S>testsavedregex
+Capturing subpattern count = 1
+No options
+No first char
+No need char
+Starting byte set: a b
+Compiled regex written to testsavedregex
+Study data written to testsavedregex
+<testsavedregex
+Compiled regex loaded from testsavedregex
+Study data loaded from testsavedregex
+Capturing subpattern count = 1
+No options
+No first char
+No need char
+Starting byte set: a b
+ abc
+ 0: a
+ 1: a
+ ** Failers
+ 0: a
+ 1: a
+ def
+No match
+
+/(a|b)/SF>testsavedregex
+Capturing subpattern count = 1
+No options
+No first char
+No need char
+Starting byte set: a b
+Compiled regex written to testsavedregex
+Study data written to testsavedregex
+<testsavedregex
+Compiled regex (byte-inverted) loaded from testsavedregex
+Study data loaded from testsavedregex
+Capturing subpattern count = 1
+No options
+No first char
+No need char
+Starting byte set: a b
+ abc
+ 0: a
+ 1: a
+ ** Failers
+ 0: a
+ 1: a
+ def
+No match
+
+~<(\w+)/?>(.)*</(\1)>~smg
+Capturing subpattern count = 3
+Max back reference = 1
+Partial matching not supported
+Options: multiline dotall
+First char = '<'
+Need char = '>'
+ <!DOCTYPE seite SYSTEM "http://www.lco.lineas.de/xmlCms.dtd">\n<seite>\n<dokumenteninformation>\n<seitentitel>Partner der LCO</seitentitel>\n<sprache>de</sprache>\n<seitenbeschreibung>Partner der LINEAS Consulting\nGmbH</seitenbeschreibung>\n<schluesselworte>LINEAS Consulting GmbH Hamburg\nPartnerfirmen</schluesselworte>\n<revisit>30 days</revisit>\n<robots>index,follow</robots>\n<menueinformation>\n<aktiv>ja</aktiv>\n<menueposition>3</menueposition>\n<menuetext>Partner</menuetext>\n</menueinformation>\n<lastedited>\n<autor>LCO</autor>\n<firma>LINEAS Consulting</firma>\n<datum>15.10.2003</datum>\n</lastedited>\n</dokumenteninformation>\n<inhalt>\n\n<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting\nGmbH</absatzueberschrift>\n\n<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">\n<bild name="logo_ca.gif" rahmen="no"/></link> <link\nziel="http://www.ey.com/" zielfenster="_blank"><bild\nname="logo_euy.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">\n<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>\n\n<absatz><link ziel="http://www.atelion.de/"\nzielfenster="_blank"><bild\nname="logo_atelion.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.line-information.de/"\nzielfenster="_blank">\n<bild name="logo_line_information.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>\n\n<absatz><link ziel="http://www.incognis.de/"\nzielfenster="_blank"><bild\nname="logo_incognis.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.addcraft.com/"\nzielfenster="_blank"><bild\nname="logo_addcraft.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.comendo.com/"\nzielfenster="_blank"><bild\nname="logo_comendo.gif" rahmen="no"/></link></absatz>\n\n</inhalt>\n</seite>
+ 0: <seite>\x0a<dokumenteninformation>\x0a<seitentitel>Partner der LCO</seitentitel>\x0a<sprache>de</sprache>\x0a<seitenbeschreibung>Partner der LINEAS Consulting\x0aGmbH</seitenbeschreibung>\x0a<schluesselworte>LINEAS Consulting GmbH Hamburg\x0aPartnerfirmen</schluesselworte>\x0a<revisit>30 days</revisit>\x0a<robots>index,follow</robots>\x0a<menueinformation>\x0a<aktiv>ja</aktiv>\x0a<menueposition>3</menueposition>\x0a<menuetext>Partner</menuetext>\x0a</menueinformation>\x0a<lastedited>\x0a<autor>LCO</autor>\x0a<firma>LINEAS Consulting</firma>\x0a<datum>15.10.2003</datum>\x0a</lastedited>\x0a</dokumenteninformation>\x0a<inhalt>\x0a\x0a<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting\x0aGmbH</absatzueberschrift>\x0a\x0a<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">\x0a<bild name="logo_ca.gif" rahmen="no"/></link> <link\x0aziel="http://www.ey.com/" zielfenster="_blank"><bild\x0aname="logo_euy.gif" rahmen="no"/></link>\x0a</absatz>\x0a\x0a<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">\x0a<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>\x0a\x0a<absatz><link ziel="http://www.atelion.de/"\x0azielfenster="_blank"><bild\x0aname="logo_atelion.gif" rahmen="no"/></link>\x0a</absatz>\x0a\x0a<absatz><link ziel="http://www.line-information.de/"\x0azielfenster="_blank">\x0a<bild name="logo_line_information.gif" rahmen="no"/></link>\x0a</absatz>\x0a\x0a<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>\x0a\x0a<absatz><link ziel="http://www.incognis.de/"\x0azielfenster="_blank"><bild\x0aname="logo_incognis.gif" rahmen="no"/></link></absatz>\x0a\x0a<absatz><link ziel="http://www.addcraft.com/"\x0azielfenster="_blank"><bild\x0aname="logo_addcraft.gif" rahmen="no"/></link></absatz>\x0a\x0a<absatz><link ziel="http://www.comendo.com/"\x0azielfenster="_blank"><bild\x0aname="logo_comendo.gif" rahmen="no"/></link></absatz>\x0a\x0a</inhalt>\x0a</seite>
+ 1: seite
+ 2: \x0a
+ 3: seite
+
+/^a/IF
+Capturing subpattern count = 0
+Options: anchored
+No first char
+No need char
+
/ End of testinput2 /
Capturing subpattern count = 0
No options
diff --git a/testdata/testoutput3 b/testdata/testoutput3
index 7d1d6fc..225bd5b 100644
--- a/testdata/testoutput3
+++ b/testdata/testoutput3
@@ -1,4 +1,4 @@
-PCRE version 4.5 01-December-2003
+PCRE version 5.0 13-Sep-2004
/^[\w]+/
*** Failers
@@ -85,7 +85,7 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
+Starting byte set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
/\w/ISLfr_FR
@@ -93,7 +93,7 @@ Capturing subpattern count = 0
No options
No first char
No need char
-Starting character set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
+Starting byte set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
µ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý Þ ß à á â ã ä
å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý þ ÿ
diff --git a/testdata/testoutput4 b/testdata/testoutput4
index a0f6c24..e8d2603 100644
--- a/testdata/testoutput4
+++ b/testdata/testoutput4
@@ -1,4 +1,4 @@
-PCRE version 4.5 01-December-2003
+PCRE version 5.0 13-Sep-2004
/-- Do not use the \x{} construct except with patterns that have the --/
/-- /8 option set, because PCRE doesn't recognize them as UTF-8 unless --/
@@ -409,12 +409,6 @@ No match
> >\x{100} Y
0: >\x{100}
-/\W/8
- A.B
- 0: .
- A\x{100}B
- 0: \x{100}
-
/\d/8
\x{100}3
0: 3
@@ -423,10 +417,6 @@ No match
\x{100} X
0:
-/\w/8
- \x{100}X
- 0: X
-
/\D+/8
12abcd34
0: abcd
@@ -831,7 +821,7 @@ No match
0: \x{100}
*** Failers
No match
- \x{101}
+ \x{102}
No match
y
No match
@@ -906,4 +896,8 @@ No match
0:
1:
+/^\x{85}$/8i
+ \x{85}
+ 0: \x{85}
+
/ End of testinput4 /
diff --git a/testdata/testoutput5 b/testdata/testoutput5
index 1476367..b010957 100644
--- a/testdata/testoutput5
+++ b/testdata/testoutput5
@@ -1,12 +1,12 @@
-PCRE version 4.5 01-December-2003
+PCRE version 5.0 13-Sep-2004
/\x{100}/8DM
-Memory allocation (code space): 11
+Memory allocation (code space): 10
------------------------------------------------------------------
- 0 7 Bra 0
- 3 2 \x{100}
- 7 7 Ket
- 10 End
+ 0 6 Bra 0
+ 3 \x{100}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -14,12 +14,12 @@ First char = 196
Need char = 128
/\x{1000}/8DM
-Memory allocation (code space): 12
+Memory allocation (code space): 11
------------------------------------------------------------------
- 0 8 Bra 0
- 3 3 \x{1000}
- 8 8 Ket
- 11 End
+ 0 7 Bra 0
+ 3 \x{1000}
+ 7 7 Ket
+ 10 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -27,12 +27,12 @@ First char = 225
Need char = 128
/\x{10000}/8DM
-Memory allocation (code space): 13
+Memory allocation (code space): 12
------------------------------------------------------------------
- 0 9 Bra 0
- 3 4 \x{10000}
- 9 9 Ket
- 12 End
+ 0 8 Bra 0
+ 3 \x{10000}
+ 8 8 Ket
+ 11 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -40,12 +40,12 @@ First char = 240
Need char = 128
/\x{100000}/8DM
-Memory allocation (code space): 13
+Memory allocation (code space): 12
------------------------------------------------------------------
- 0 9 Bra 0
- 3 4 \x{100000}
- 9 9 Ket
- 12 End
+ 0 8 Bra 0
+ 3 \x{100000}
+ 8 8 Ket
+ 11 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -53,12 +53,12 @@ First char = 244
Need char = 128
/\x{1000000}/8DM
-Memory allocation (code space): 14
+Memory allocation (code space): 13
------------------------------------------------------------------
- 0 10 Bra 0
- 3 5 \x{1000000}
- 10 10 Ket
- 13 End
+ 0 9 Bra 0
+ 3 \x{1000000}
+ 9 9 Ket
+ 12 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -66,12 +66,12 @@ First char = 249
Need char = 128
/\x{4000000}/8DM
-Memory allocation (code space): 15
+Memory allocation (code space): 14
------------------------------------------------------------------
- 0 11 Bra 0
- 3 6 \x{4000000}
- 11 11 Ket
- 14 End
+ 0 10 Bra 0
+ 3 \x{4000000}
+ 10 10 Ket
+ 13 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -79,12 +79,12 @@ First char = 252
Need char = 128
/\x{7fffFFFF}/8DM
-Memory allocation (code space): 15
+Memory allocation (code space): 14
------------------------------------------------------------------
- 0 11 Bra 0
- 3 6 \x{7fffffff}
- 11 11 Ket
- 14 End
+ 0 10 Bra 0
+ 3 \x{7fffffff}
+ 10 10 Ket
+ 13 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -92,17 +92,17 @@ First char = 253
Need char = 191
/[\x{ff}]/8DM
-Memory allocation (code space): 40
+Memory allocation (code space): 10
------------------------------------------------------------------
- 0 36 Bra 0
- 3 [\xff]
- 36 36 Ket
- 39 End
+ 0 6 Bra 0
+ 3 \x{ff}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
-No first char
-No need char
+First char = 195
+Need char = 191
/[\x{100}]/8DM
Memory allocation (code space): 47
@@ -129,10 +129,10 @@ Failed: character value in \x{...} sequence is too large at offset 12
/\x80/8D
------------------------------------------------------------------
- 0 7 Bra 0
- 3 2 \x{80}
- 7 7 Ket
- 10 End
+ 0 6 Bra 0
+ 3 \x{80}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -141,10 +141,10 @@ Need char = 128
/\xff/8D
------------------------------------------------------------------
- 0 7 Bra 0
- 3 2 \x{ff}
- 7 7 Ket
- 10 End
+ 0 6 Bra 0
+ 3 \x{ff}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -153,10 +153,10 @@ Need char = 191
/\x{0041}\x{2262}\x{0391}\x{002e}/D8
------------------------------------------------------------------
- 0 12 Bra 0
- 3 7 A\x{2262}\x{391}.
- 12 12 Ket
- 15 End
+ 0 14 Bra 0
+ 3 A\x{2262}\x{391}.
+ 14 14 Ket
+ 17 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -167,10 +167,10 @@ Need char = '.'
/\x{D55c}\x{ad6d}\x{C5B4}/D8
------------------------------------------------------------------
- 0 14 Bra 0
- 3 9 \x{d55c}\x{ad6d}\x{c5b4}
- 14 14 Ket
- 17 End
+ 0 15 Bra 0
+ 3 \x{d55c}\x{ad6d}\x{c5b4}
+ 15 15 Ket
+ 18 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -181,10 +181,10 @@ Need char = 180
/\x{65e5}\x{672c}\x{8a9e}/D8
------------------------------------------------------------------
- 0 14 Bra 0
- 3 9 \x{65e5}\x{672c}\x{8a9e}
- 14 14 Ket
- 17 End
+ 0 15 Bra 0
+ 3 \x{65e5}\x{672c}\x{8a9e}
+ 15 15 Ket
+ 18 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -195,10 +195,10 @@ Need char = 158
/\x{80}/D8
------------------------------------------------------------------
- 0 7 Bra 0
- 3 2 \x{80}
- 7 7 Ket
- 10 End
+ 0 6 Bra 0
+ 3 \x{80}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -207,10 +207,10 @@ Need char = 128
/\x{084}/D8
------------------------------------------------------------------
- 0 7 Bra 0
- 3 2 \x{84}
- 7 7 Ket
- 10 End
+ 0 6 Bra 0
+ 3 \x{84}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -219,10 +219,10 @@ Need char = 132
/\x{104}/D8
------------------------------------------------------------------
- 0 7 Bra 0
- 3 2 \x{104}
- 7 7 Ket
- 10 End
+ 0 6 Bra 0
+ 3 \x{104}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -231,10 +231,10 @@ Need char = 132
/\x{861}/D8
------------------------------------------------------------------
- 0 8 Bra 0
- 3 3 \x{861}
- 8 8 Ket
- 11 End
+ 0 7 Bra 0
+ 3 \x{861}
+ 7 7 Ket
+ 10 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -243,10 +243,10 @@ Need char = 161
/\x{212ab}/D8
------------------------------------------------------------------
- 0 9 Bra 0
- 3 4 \x{212ab}
- 9 9 Ket
- 12 End
+ 0 8 Bra 0
+ 3 \x{212ab}
+ 8 8 Ket
+ 11 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -255,14 +255,15 @@ Need char = 171
/.{3,5}X/D8
------------------------------------------------------------------
- 0 14 Bra 0
+ 0 13 Bra 0
3 Any{3}
7 Any{0,2}
- 11 1 X
- 14 14 Ket
- 17 End
+ 11 X
+ 13 13 Ket
+ 16 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
No first char
Need char = 'X'
@@ -279,6 +280,7 @@ Need char = 'X'
14 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
No first char
No need char
@@ -349,7 +351,7 @@ No match
------------------------------------------------------------------
0 37 Bra 0
3 ^
- 4 [a-b]
+ 4 [ab]
37 37 Ket
40 End
------------------------------------------------------------------
@@ -402,7 +404,7 @@ Capturing subpattern count = 0
Options: utf8
No first char
No need char
-Starting character set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
+Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
\x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
\x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y
@@ -436,6 +438,7 @@ No match
16 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
First char = 196
Need char = 128
@@ -445,75 +448,79 @@ Study returned NULL
/(\x{100}+|x)/8SD
------------------------------------------------------------------
- 0 18 Bra 0
+ 0 17 Bra 0
3 6 Bra 1
6 \x{100}+
- 9 6 Alt
- 12 1 x
- 15 12 Ket
- 18 18 Ket
- 21 End
+ 9 5 Alt
+ 12 x
+ 14 11 Ket
+ 17 17 Ket
+ 20 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
Options: utf8
No first char
No need char
-Starting character set: x \xc4
+Starting byte set: x \xc4
/(\x{100}*a|x)/8SD
------------------------------------------------------------------
- 0 21 Bra 0
- 3 9 Bra 1
+ 0 19 Bra 0
+ 3 8 Bra 1
6 \x{100}*
- 9 1 a
- 12 6 Alt
- 15 1 x
- 18 15 Ket
- 21 21 Ket
- 24 End
+ 9 a
+ 11 5 Alt
+ 14 x
+ 16 13 Ket
+ 19 19 Ket
+ 22 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
Options: utf8
No first char
No need char
-Starting character set: a x \xc4
+Starting byte set: a x \xc4
/(\x{100}{0,2}a|x)/8SD
------------------------------------------------------------------
- 0 23 Bra 0
- 3 11 Bra 1
+ 0 21 Bra 0
+ 3 10 Bra 1
6 \x{100}{,2}
- 11 1 a
- 14 6 Alt
- 17 1 x
- 20 17 Ket
- 23 23 Ket
- 26 End
+ 11 a
+ 13 5 Alt
+ 16 x
+ 18 15 Ket
+ 21 21 Ket
+ 24 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
Options: utf8
No first char
No need char
-Starting character set: a x \xc4
+Starting byte set: a x \xc4
/(\x{100}{1,2}a|x)/8SD
------------------------------------------------------------------
- 0 27 Bra 0
- 3 15 Bra 1
- 6 2 \x{100}
- 10 \x{100}{,1}
- 15 1 a
- 18 6 Alt
- 21 1 x
- 24 21 Ket
- 27 27 Ket
- 30 End
+ 0 24 Bra 0
+ 3 13 Bra 1
+ 6 \x{100}
+ 9 \x{100}{,1}
+ 14 a
+ 16 5 Alt
+ 19 x
+ 21 18 Ket
+ 24 24 Ket
+ 27 End
------------------------------------------------------------------
Capturing subpattern count = 1
+Partial matching not supported
Options: utf8
No first char
No need char
-Starting character set: x \xc4
+Starting byte set: x \xc4
/\x{100}*(\d+|"(?1)")/8
1234
@@ -541,10 +548,10 @@ No match
/\x{100}/8D
------------------------------------------------------------------
- 0 7 Bra 0
- 3 2 \x{100}
- 7 7 Ket
- 10 End
+ 0 6 Bra 0
+ 3 \x{100}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
@@ -559,19 +566,21 @@ Need char = 128
9 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
No first char
No need char
/a\x{100}*/8D
------------------------------------------------------------------
- 0 9 Bra 0
- 3 1 a
- 6 \x{100}*
- 9 9 Ket
- 12 End
+ 0 8 Bra 0
+ 3 a
+ 5 \x{100}*
+ 8 8 Ket
+ 11 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
First char = 'a'
No need char
@@ -579,12 +588,13 @@ No need char
/ab\x{100}*/8D
------------------------------------------------------------------
0 10 Bra 0
- 3 2 ab
+ 3 ab
7 \x{100}*
10 10 Ket
13 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
First char = 'a'
Need char = 'b'
@@ -592,12 +602,13 @@ Need char = 'b'
/a\x{100}\x{101}*/8D
------------------------------------------------------------------
0 11 Bra 0
- 3 3 a\x{100}
+ 3 a\x{100}
8 \x{101}*
11 11 Ket
14 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
First char = 'a'
Need char = 128
@@ -605,25 +616,27 @@ Need char = 128
/a\x{100}\x{101}+/8D
------------------------------------------------------------------
0 11 Bra 0
- 3 3 a\x{100}
+ 3 a\x{100}
8 \x{101}+
11 11 Ket
14 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
First char = 'a'
Need char = 129
/\x{100}*A/8D
------------------------------------------------------------------
- 0 9 Bra 0
+ 0 8 Bra 0
3 \x{100}*
- 6 1 A
- 9 9 Ket
- 12 End
+ 6 A
+ 8 8 Ket
+ 11 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
No first char
Need char = 'A'
@@ -640,6 +653,7 @@ Need char = 'A'
13 End
------------------------------------------------------------------
Capturing subpattern count = 0
+Partial matching not supported
Options: utf8
No first char
No need char
@@ -737,18 +751,6 @@ Options: utf8
No first char
No need char
-/[z-\x{100}]/8Di
-------------------------------------------------------------------
- 0 45 Bra 0
- 3 [Zz-\xff\x{100}-\x{100}]
- 45 45 Ket
- 48 End
-------------------------------------------------------------------
-Capturing subpattern count = 0
-Options: caseless utf8
-No first char
-No need char
-
/[z\Qa-d]Ä€\E]/8D
------------------------------------------------------------------
0 43 Bra 0
@@ -767,10 +769,10 @@ No need char
/[\xFF]/D
------------------------------------------------------------------
- 0 6 Bra 0
- 3 1 \xff
- 6 6 Ket
- 9 End
+ 0 5 Bra 0
+ 3 \xff
+ 5 5 Ket
+ 8 End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
@@ -781,15 +783,15 @@ No need char
/[\xff]/D8
------------------------------------------------------------------
- 0 36 Bra 0
- 3 [\xff]
- 36 36 Ket
- 39 End
+ 0 6 Bra 0
+ 3 \x{ff}
+ 6 6 Ket
+ 9 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
-No first char
-No need char
+First char = 195
+Need char = 191
>\x{ff}<
0: \x{ff}
@@ -852,10 +854,10 @@ Failed: invalid UTF-8 string at offset 1
/ÃÃÃxxx/8?D
------------------------------------------------------------------
- 0 11 Bra 0
- 3 6 \x{c3}\x{f8}xx
- 11 11 Ket
- 14 End
+ 0 15 Bra 0
+ 3 \X{c0}\X{c0}\X{c0}xxx
+ 15 15 Ket
+ 18 End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8 no_utf8_check
@@ -910,14 +912,14 @@ No match
/\x{100}abc(xyz(?1))/8D
------------------------------------------------------------------
- 0 24 Bra 0
- 3 5 \x{100}abc
- 10 11 Bra 1
- 13 3 xyz
- 18 10 Recurse
- 21 11 Ket
- 24 24 Ket
- 27 End
+ 0 27 Bra 0
+ 3 \x{100}abc
+ 12 12 Bra 1
+ 15 xyz
+ 21 12 Recurse
+ 24 12 Ket
+ 27 27 Ket
+ 30 End
------------------------------------------------------------------
Capturing subpattern count = 1
Options: utf8
@@ -926,15 +928,15 @@ Need char = 'z'
/[^\x{100}]abc(xyz(?1))/8D
------------------------------------------------------------------
- 0 30 Bra 0
+ 0 32 Bra 0
3 [^\x{100}]
- 11 3 abc
- 16 11 Bra 1
- 19 3 xyz
- 24 16 Recurse
- 27 11 Ket
- 30 30 Ket
- 33 End
+ 11 abc
+ 17 12 Bra 1
+ 20 xyz
+ 26 17 Recurse
+ 29 12 Ket
+ 32 32 Ket
+ 35 End
------------------------------------------------------------------
Capturing subpattern count = 1
Options: utf8
@@ -943,15 +945,15 @@ Need char = 'z'
/[ab\x{100}]abc(xyz(?1))/8D
------------------------------------------------------------------
- 0 62 Bra 0
- 3 [a-b\x{100}]
- 43 3 abc
- 48 11 Bra 1
- 51 3 xyz
- 56 48 Recurse
- 59 11 Ket
- 62 62 Ket
- 65 End
+ 0 64 Bra 0
+ 3 [ab\x{100}]
+ 43 abc
+ 49 12 Bra 1
+ 52 xyz
+ 58 49 Recurse
+ 61 12 Ket
+ 64 64 Ket
+ 67 End
------------------------------------------------------------------
Capturing subpattern count = 1
Options: utf8
@@ -960,18 +962,18 @@ Need char = 'z'
/(\x{100}(b(?2)c))?/D8
------------------------------------------------------------------
- 0 29 Bra 0
+ 0 26 Bra 0
3 Brazero
- 4 22 Bra 1
- 7 2 \x{100}
- 11 12 Bra 2
- 14 1 b
- 17 11 Recurse
- 20 1 c
- 23 12 Ket
- 26 22 Ket
- 29 29 Ket
- 32 End
+ 4 19 Bra 1
+ 7 \x{100}
+ 10 10 Bra 2
+ 13 b
+ 15 10 Recurse
+ 18 c
+ 20 10 Ket
+ 23 19 Ket
+ 26 26 Ket
+ 29 End
------------------------------------------------------------------
Capturing subpattern count = 2
Options: utf8
@@ -980,29 +982,29 @@ No need char
/(\x{100}(b(?2)c)){0,2}/D8
------------------------------------------------------------------
- 0 61 Bra 0
+ 0 55 Bra 0
3 Brazero
- 4 54 Bra 0
- 7 22 Bra 1
- 10 2 \x{100}
- 14 12 Bra 2
- 17 1 b
- 20 14 Recurse
- 23 1 c
- 26 12 Ket
- 29 22 Ket
- 32 Brazero
- 33 22 Bra 1
- 36 2 \x{100}
- 40 12 Bra 2
- 43 1 b
- 46 14 Recurse
- 49 1 c
- 52 12 Ket
- 55 22 Ket
- 58 54 Ket
- 61 61 Ket
- 64 End
+ 4 48 Bra 0
+ 7 19 Bra 1
+ 10 \x{100}
+ 13 10 Bra 2
+ 16 b
+ 18 13 Recurse
+ 21 c
+ 23 10 Ket
+ 26 19 Ket
+ 29 Brazero
+ 30 19 Bra 1
+ 33 \x{100}
+ 36 10 Bra 2
+ 39 b
+ 41 13 Recurse
+ 44 c
+ 46 10 Ket
+ 49 19 Ket
+ 52 48 Ket
+ 55 55 Ket
+ 58 End
------------------------------------------------------------------
Capturing subpattern count = 2
Options: utf8
@@ -1011,18 +1013,18 @@ No need char
/(\x{100}(b(?1)c))?/D8
------------------------------------------------------------------
- 0 29 Bra 0
+ 0 26 Bra 0
3 Brazero
- 4 22 Bra 1
- 7 2 \x{100}
- 11 12 Bra 2
- 14 1 b
- 17 4 Recurse
- 20 1 c
- 23 12 Ket
- 26 22 Ket
- 29 29 Ket
- 32 End
+ 4 19 Bra 1
+ 7 \x{100}
+ 10 10 Bra 2
+ 13 b
+ 15 4 Recurse
+ 18 c
+ 20 10 Ket
+ 23 19 Ket
+ 26 26 Ket
+ 29 End
------------------------------------------------------------------
Capturing subpattern count = 2
Options: utf8
@@ -1031,33 +1033,43 @@ No need char
/(\x{100}(b(?1)c)){0,2}/D8
------------------------------------------------------------------
- 0 61 Bra 0
+ 0 55 Bra 0
3 Brazero
- 4 54 Bra 0
- 7 22 Bra 1
- 10 2 \x{100}
- 14 12 Bra 2
- 17 1 b
- 20 7 Recurse
- 23 1 c
- 26 12 Ket
- 29 22 Ket
- 32 Brazero
- 33 22 Bra 1
- 36 2 \x{100}
- 40 12 Bra 2
- 43 1 b
- 46 7 Recurse
- 49 1 c
- 52 12 Ket
- 55 22 Ket
- 58 54 Ket
- 61 61 Ket
- 64 End
+ 4 48 Bra 0
+ 7 19 Bra 1
+ 10 \x{100}
+ 13 10 Bra 2
+ 16 b
+ 18 7 Recurse
+ 21 c
+ 23 10 Ket
+ 26 19 Ket
+ 29 Brazero
+ 30 19 Bra 1
+ 33 \x{100}
+ 36 10 Bra 2
+ 39 b
+ 41 7 Recurse
+ 44 c
+ 46 10 Ket
+ 49 19 Ket
+ 52 48 Ket
+ 55 55 Ket
+ 58 End
------------------------------------------------------------------
Capturing subpattern count = 2
Options: utf8
No first char
No need char
+/\W/8
+ A.B
+ 0: .
+ A\x{100}B
+ 0: \x{100}
+
+/\w/8
+ \x{100}X
+ 0: X
+
/ End of testinput5 /
diff --git a/testdata/testoutput6 b/testdata/testoutput6
new file mode 100644
index 0000000..732e5aa
--- /dev/null
+++ b/testdata/testoutput6
@@ -0,0 +1,1013 @@
+PCRE version 5.0 13-Sep-2004
+
+/^\pC\pL\pM\pN\pP\pS\pZ</8
+ \x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
+ 0: \x{7f}\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
+ \np\x{300}9!\$ <
+ 0: \x{0a}p\x{300}9!$ <
+ ** Failers
+No match
+ ap\x{300}9!\$ <
+No match
+
+/^\PC/8
+ X
+ 0: X
+ ** Failers
+ 0: *
+ \x7f
+No match
+
+/^\PL/8
+ 9
+ 0: 9
+ ** Failers
+ 0: *
+ \x{c0}
+No match
+
+/^\PM/8
+ X
+ 0: X
+ ** Failers
+ 0: *
+ \x{30f}
+No match
+
+/^\PN/8
+ X
+ 0: X
+ ** Failers
+ 0: *
+ \x{660}
+No match
+
+/^\PP/8
+ X
+ 0: X
+ ** Failers
+No match
+ \x{66c}
+No match
+
+/^\PS/8
+ X
+ 0: X
+ ** Failers
+ 0: *
+ \x{f01}
+No match
+
+/^\PZ/8
+ X
+ 0: X
+ ** Failers
+ 0: *
+ \x{1680}
+No match
+
+/^\p{Cc}/8
+ \x{017}
+ 0: \x{17}
+ \x{09f}
+ 0: \x{9f}
+ ** Failers
+No match
+ \x{0600}
+No match
+
+/^\p{Cf}/8
+ \x{601}
+ 0: \x{601}
+ ** Failers
+No match
+ \x{09f}
+No match
+
+/^\p{Cn}/8
+ ** Failers
+No match
+ \x{09f}
+No match
+
+/^\p{Co}/8
+ \x{f8ff}
+ 0: \x{f8ff}
+ ** Failers
+No match
+ \x{09f}
+No match
+
+/^\p{Cs}/8
+ \x{dfff}
+ 0: \x{dfff}
+ ** Failers
+No match
+ \x{09f}
+No match
+
+/^\p{Ll}/8
+ a
+ 0: a
+ ** Failers
+No match
+ Z
+No match
+ \x{dfff}
+No match
+
+/^\p{Lm}/8
+ \x{2b0}
+ 0: \x{2b0}
+ ** Failers
+No match
+ a
+No match
+
+/^\p{Lo}/8
+ \x{1bb}
+ 0: \x{1bb}
+ ** Failers
+No match
+ a
+No match
+ \x{2b0}
+No match
+
+/^\p{Lt}/8
+ \x{1c5}
+ 0: \x{1c5}
+ ** Failers
+No match
+ a
+No match
+ \x{2b0}
+No match
+
+/^\p{Lu}/8
+ A
+ 0: A
+ ** Failers
+No match
+ \x{2b0}
+No match
+
+/^\p{Mc}/8
+ \x{903}
+ 0: \x{903}
+ ** Failers
+No match
+ X
+No match
+ \x{300}
+No match
+
+/^\p{Me}/8
+ \x{488}
+ 0: \x{488}
+ ** Failers
+No match
+ X
+No match
+ \x{903}
+No match
+ \x{300}
+No match
+
+/^\p{Mn}/8
+ \x{300}
+ 0: \x{300}
+ ** Failers
+No match
+ X
+No match
+ \x{903}
+No match
+
+/^\p{Nd}+/8
+ 0123456789\x{660}\x{661}\x{662}\x{663}\x{664}\x{665}\x{666}\x{667}\x{668}\x{669}\x{66a}
+ 0: 0123456789\x{660}\x{661}\x{662}\x{663}\x{664}\x{665}\x{666}\x{667}\x{668}\x{669}
+ \x{6f0}\x{6f1}\x{6f2}\x{6f3}\x{6f4}\x{6f5}\x{6f6}\x{6f7}\x{6f8}\x{6f9}\x{6fa}
+ 0: \x{6f0}\x{6f1}\x{6f2}\x{6f3}\x{6f4}\x{6f5}\x{6f6}\x{6f7}\x{6f8}\x{6f9}
+ \x{966}\x{967}\x{968}\x{969}\x{96a}\x{96b}\x{96c}\x{96d}\x{96e}\x{96f}\x{970}
+ 0: \x{966}\x{967}\x{968}\x{969}\x{96a}\x{96b}\x{96c}\x{96d}\x{96e}\x{96f}
+ ** Failers
+No match
+ X
+No match
+
+/^\p{Nl}/8
+ \x{16ee}
+ 0: \x{16ee}
+ ** Failers
+No match
+ X
+No match
+ \x{966}
+No match
+
+/^\p{No}/8
+ \x{b2}
+ 0: \x{b2}
+ \x{b3}
+ 0: \x{b3}
+ ** Failers
+No match
+ X
+No match
+ \x{16ee}
+No match
+
+/^\p{Pc}/8
+ \x5f
+ 0: _
+ \x{203f}
+ 0: \x{203f}
+ ** Failers
+No match
+ X
+No match
+ -
+No match
+ \x{58a}
+No match
+
+/^\p{Pd}/8
+ -
+ 0: -
+ \x{58a}
+ 0: \x{58a}
+ ** Failers
+No match
+ X
+No match
+ \x{203f}
+No match
+
+/^\p{Pe}/8
+ )
+ 0: )
+ ]
+ 0: ]
+ }
+ 0: }
+ \x{f3b}
+ 0: \x{f3b}
+ ** Failers
+No match
+ X
+No match
+ \x{203f}
+No match
+ (
+No match
+ [
+No match
+ {
+No match
+ \x{f3c}
+No match
+
+/^\p{Pf}/8
+ \x{bb}
+ 0: \x{bb}
+ \x{2019}
+ 0: \x{2019}
+ ** Failers
+No match
+ X
+No match
+ \x{203f}
+No match
+
+/^\p{Pi}/8
+ \x{ab}
+ 0: \x{ab}
+ \x{2018}
+ 0: \x{2018}
+ ** Failers
+No match
+ X
+No match
+ \x{203f}
+No match
+
+/^\p{Po}/8
+ !
+ 0: !
+ \x{37e}
+ 0: \x{37e}
+ ** Failers
+ 0: *
+ X
+No match
+ \x{203f}
+No match
+
+/^\p{Ps}/8
+ (
+ 0: (
+ [
+ 0: [
+ {
+ 0: {
+ \x{f3c}
+ 0: \x{f3c}
+ ** Failers
+No match
+ X
+No match
+ )
+No match
+ ]
+No match
+ }
+No match
+ \x{f3b}
+No match
+
+/^\p{Sc}+/8
+ $\x{a2}\x{a3}\x{a4}\x{a5}\x{a6}
+ 0: $\x{a2}\x{a3}\x{a4}\x{a5}
+ \x{9f2}
+ 0: \x{9f2}
+ ** Failers
+No match
+ X
+No match
+ \x{2c2}
+No match
+
+/^\p{Sk}/8
+ \x{2c2}
+ 0: \x{2c2}
+ ** Failers
+No match
+ X
+No match
+ \x{9f2}
+No match
+
+/^\p{Sm}+/8
+ +<|~\x{ac}\x{2044}
+ 0: +<|~\x{ac}\x{2044}
+ ** Failers
+No match
+ X
+No match
+ \x{9f2}
+No match
+
+/^\p{So}/8
+ \x{a6}
+ 0: \x{a6}
+ \x{482}
+ 0: \x{482}
+ ** Failers
+No match
+ X
+No match
+ \x{9f2}
+No match
+
+/^\p{Zl}/8
+ \x{2028}
+ 0: \x{2028}
+ ** Failers
+No match
+ X
+No match
+ \x{2029}
+No match
+
+/^\p{Zp}/8
+ \x{2029}
+ 0: \x{2029}
+ ** Failers
+No match
+ X
+No match
+ \x{2028}
+No match
+
+/^\p{Zs}/8
+ \ \
+ 0:
+ \x{a0}
+ 0: \x{a0}
+ \x{1680}
+ 0: \x{1680}
+ \x{180e}
+ 0: \x{180e}
+ \x{2000}
+ 0: \x{2000}
+ \x{2001}
+ 0: \x{2001}
+ ** Failers
+No match
+ \x{2028}
+No match
+ \x{200d}
+No match
+
+/\p{Nd}+(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}AB
+ 1: AB
+
+/\p{Nd}+?(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}
+ 1: \x{661}\x{662}
+
+/\p{Nd}{2,}(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}AB
+ 1: AB
+
+/\p{Nd}{2,}?(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}A
+ 1: \x{662}A
+
+/\p{Nd}*(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}AB
+ 1: AB
+
+/\p{Nd}*?(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}
+ 1: \x{660}\x{661}
+
+/\p{Nd}{2}(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}A
+ 1: \x{662}A
+
+/\p{Nd}{2,3}(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}AB
+ 1: AB
+
+/\p{Nd}{2,3}?(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}A
+ 1: \x{662}A
+
+/\p{Nd}?(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}
+ 1: \x{661}\x{662}
+
+/\p{Nd}??(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}
+ 1: \x{660}\x{661}
+
+/\p{Nd}*+(..)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}AB
+ 1: AB
+
+/\p{Nd}*+(...)/8
+ \x{660}\x{661}\x{662}ABC
+ 0: \x{660}\x{661}\x{662}ABC
+ 1: ABC
+
+/\p{Nd}*+(....)/8
+ ** Failers
+ 0: ** F
+ 1: ** F
+ \x{660}\x{661}\x{662}ABC
+No match
+
+/\p{Lu}/8i
+ A
+ 0: A
+ a\x{10a0}B
+ 0: \x{10a0}
+ ** Failers
+ 0: F
+ a
+No match
+ \x{1d00}
+No match
+
+/\p{^Lu}/8i
+ 1234
+ 0: 1
+ ** Failers
+ 0: *
+ ABC
+No match
+
+/\P{Lu}/8i
+ 1234
+ 0: 1
+ ** Failers
+ 0: *
+ ABC
+No match
+
+/(?<=A\p{Nd})XYZ/8
+ A2XYZ
+ 0: XYZ
+ 123A5XYZPQR
+ 0: XYZ
+ ABA\x{660}XYZpqr
+ 0: XYZ
+ ** Failers
+No match
+ AXYZ
+No match
+ XYZ
+No match
+
+/(?<!\pL)XYZ/8
+ 1XYZ
+ 0: XYZ
+ AB=XYZ..
+ 0: XYZ
+ XYZ
+ 0: XYZ
+ ** Failers
+No match
+ WXYZ
+No match
+
+/[\p{L}]/D
+------------------------------------------------------------------
+ 0 10 Bra 0
+ 3 [\p{L}]
+ 10 10 Ket
+ 13 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+No options
+No first char
+No need char
+
+/[\p{^L}]/D
+------------------------------------------------------------------
+ 0 10 Bra 0
+ 3 [\P{L}]
+ 10 10 Ket
+ 13 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+No options
+No first char
+No need char
+
+/[\P{L}]/D
+------------------------------------------------------------------
+ 0 10 Bra 0
+ 3 [\P{L}]
+ 10 10 Ket
+ 13 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+No options
+No first char
+No need char
+
+/[\P{^L}]/D
+------------------------------------------------------------------
+ 0 10 Bra 0
+ 3 [\p{L}]
+ 10 10 Ket
+ 13 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+No options
+No first char
+No need char
+
+/[abc\p{L}\x{0660}]/8D
+------------------------------------------------------------------
+ 0 45 Bra 0
+ 3 [a-c\p{L}\x{660}]
+ 45 45 Ket
+ 48 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: utf8
+No first char
+No need char
+
+/[\p{Nd}]/8DM
+Memory allocation (code space): 46
+------------------------------------------------------------------
+ 0 10 Bra 0
+ 3 [\p{Nd}]
+ 10 10 Ket
+ 13 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: utf8
+No first char
+No need char
+ 1234
+ 0: 1
+
+/[\p{Nd}+-]+/8DM
+Memory allocation (code space): 47
+------------------------------------------------------------------
+ 0 43 Bra 0
+ 3 [+\-\p{Nd}]+
+ 43 43 Ket
+ 46 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Partial matching not supported
+Options: utf8
+No first char
+No need char
+ 1234
+ 0: 1234
+ 12-34
+ 0: 12-34
+ 12+\x{661}-34
+ 0: 12+\x{661}-34
+ ** Failers
+No match
+ abcd
+No match
+
+/[\P{Nd}]+/8
+ abcd
+ 0: abcd
+ ** Failers
+ 0: ** Failers
+ 1234
+No match
+
+/\D+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+No match
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/\P{Nd}+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+No match
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/[\D]+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+No match
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/[\P{Nd}]+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+No match
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/[\D\P{Nd}]+/8
+ 11111111111111111111111111111111111111111111111111111111111111111111111
+No match
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
+/\pL/8
+ a
+ 0: a
+ A
+ 0: A
+
+/\pL/8i
+ a
+ 0: a
+ A
+ 0: A
+
+/\p{Lu}/8
+ A
+ 0: A
+ aZ
+ 0: Z
+ ** Failers
+ 0: F
+ abc
+No match
+
+/\p{Lu}/8i
+ A
+ 0: A
+ aZ
+ 0: Z
+ ** Failers
+ 0: F
+ abc
+No match
+
+/\p{Ll}/8
+ a
+ 0: a
+ Az
+ 0: z
+ ** Failers
+ 0: a
+ ABC
+No match
+
+/\p{Ll}/8i
+ a
+ 0: a
+ Az
+ 0: z
+ ** Failers
+ 0: a
+ ABC
+No match
+
+/^\x{c0}$/8i
+ \x{c0}
+ 0: \x{c0}
+ \x{e0}
+ 0: \x{e0}
+
+/^\x{e0}$/8i
+ \x{c0}
+ 0: \x{c0}
+ \x{e0}
+ 0: \x{e0}
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8
+ A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ 0: A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ ** Failers
+No match
+ a\x{391}\x{10427}\x{ff3a}\x{1fb0}
+No match
+ A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
+No match
+ A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
+No match
+ A\x{391}\x{10427}\x{ff5a}\x{1fb0}
+No match
+ A\x{391}\x{10427}\x{ff3a}\x{1fb8}
+No match
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8i
+ A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ 0: A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ a\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ 0: a\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
+ 0: A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
+ A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
+ 0: A\x{391}\x{1044f}\x{ff3a}\x{1fb0}
+ A\x{391}\x{10427}\x{ff5a}\x{1fb0}
+ 0: A\x{391}\x{10427}\x{ff5a}\x{1fb0}
+ A\x{391}\x{10427}\x{ff3a}\x{1fb8}
+ 0: A\x{391}\x{10427}\x{ff3a}\x{1fb8}
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iD
+------------------------------------------------------------------
+ 0 21 Bra 0
+ 3 NC A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ 21 21 Ket
+ 24 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: caseless utf8
+First char = 'A' (caseless)
+No need char
+
+/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8D
+------------------------------------------------------------------
+ 0 21 Bra 0
+ 3 A\x{391}\x{10427}\x{ff3a}\x{1fb0}
+ 21 21 Ket
+ 24 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: utf8
+First char = 'A'
+Need char = 176
+
+/AB\x{1fb0}/8D
+------------------------------------------------------------------
+ 0 11 Bra 0
+ 3 AB\x{1fb0}
+ 11 11 Ket
+ 14 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: utf8
+First char = 'A'
+Need char = 176
+
+/AB\x{1fb0}/8Di
+------------------------------------------------------------------
+ 0 11 Bra 0
+ 3 NC AB\x{1fb0}
+ 11 11 Ket
+ 14 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: caseless utf8
+First char = 'A' (caseless)
+Need char = 'B' (caseless)
+
+/\x{391}+/8i
+ \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
+ 0: \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
+
+/\x{391}{3,5}(.)/8i
+ \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
+ 0: \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
+ 1: X
+
+/\x{391}{3,5}?(.)/8i
+ \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
+ 0: \x{391}\x{3b1}\x{3b1}\x{3b1}
+ 1: \x{3b1}
+
+/[\x{391}\x{ff3a}]/8i
+ \x{391}
+ 0: \x{391}
+ \x{ff3a}
+ 0: \x{ff3a}
+ \x{3b1}
+ 0: \x{3b1}
+ \x{ff5a}
+ 0: \x{ff5a}
+
+/[\x{c0}\x{391}]/8i
+ \x{c0}
+ 0: \x{c0}
+ \x{e0}
+ 0: \x{e0}
+
+/[\x{105}-\x{109}]/8iD
+------------------------------------------------------------------
+ 0 13 Bra 0
+ 3 [\x{104}-\x{109}]
+ 13 13 Ket
+ 16 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: caseless utf8
+No first char
+No need char
+ \x{104}
+ 0: \x{104}
+ \x{105}
+ 0: \x{105}
+ \x{109}
+ 0: \x{109}
+ ** Failers
+No match
+ \x{100}
+No match
+ \x{10a}
+No match
+
+/[z-\x{100}]/8iD
+------------------------------------------------------------------
+ 0 20 Bra 0
+ 3 [Z\x{39c}\x{178}z-\x{101}]
+ 20 20 Ket
+ 23 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: caseless utf8
+No first char
+No need char
+ Z
+ 0: Z
+ z
+ 0: z
+ \x{39c}
+ 0: \x{39c}
+ \x{178}
+ 0: \x{178}
+ |
+ 0: |
+ \x{80}
+ 0: \x{80}
+ \x{ff}
+ 0: \x{ff}
+ \x{100}
+ 0: \x{100}
+ \x{101}
+ 0: \x{101}
+ ** Failers
+No match
+ \x{102}
+No match
+ Y
+No match
+ y
+No match
+
+/[z-\x{100}]/8Di
+------------------------------------------------------------------
+ 0 20 Bra 0
+ 3 [Z\x{39c}\x{178}z-\x{101}]
+ 20 20 Ket
+ 23 End
+------------------------------------------------------------------
+Capturing subpattern count = 0
+Options: caseless utf8
+No first char
+No need char
+
+/^\X/8
+ A
+ 0: A
+ A\x{300}BC
+ 0: A\x{300}
+ A\x{300}\x{301}\x{302}BC
+ 0: A\x{300}\x{301}\x{302}
+ *** Failers
+ 0: *
+ \x{300}
+No match
+
+/^[\X]/8
+ X123
+ 0: X
+ *** Failers
+No match
+ AXYZ
+No match
+
+/^(\X*)C/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ 0: A\x{300}\x{301}\x{302}BC
+ 1: A\x{300}\x{301}\x{302}B
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+ 0: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+ 1: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+
+/^(\X*?)C/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ 0: A\x{300}\x{301}\x{302}BC
+ 1: A\x{300}\x{301}\x{302}B
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+ 0: A\x{300}\x{301}\x{302}BC
+ 1: A\x{300}\x{301}\x{302}B
+
+/^(\X*)(.)/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ 0: A\x{300}\x{301}\x{302}BCA
+ 1: A\x{300}\x{301}\x{302}BC
+ 2: A
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+ 0: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+ 1: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ 2: C
+
+/^(\X*?)(.)/8
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
+ 0: A
+ 1:
+ 2: A
+ A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
+ 0: A
+ 1:
+ 2: A
+
+/^\X(.)/8
+ *** Failers
+ 0: **
+ 1: *
+ A\x{300}\x{301}\x{302}
+No match
+
+/^\X{2,3}(.)/8
+ A\x{300}\x{301}B\x{300}X
+ 0: A\x{300}\x{301}B\x{300}X
+ 1: X
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}
+ 0: A\x{300}\x{301}B\x{300}C
+ 1: C
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
+ 0: A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
+ 1: X
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
+ 0: A\x{300}\x{301}B\x{300}C\x{300}\x{301}D
+ 1: D
+
+/^\X{2,3}?(.)/8
+ A\x{300}\x{301}B\x{300}X
+ 0: A\x{300}\x{301}B\x{300}X
+ 1: X
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}
+ 0: A\x{300}\x{301}B\x{300}C
+ 1: C
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
+ 0: A\x{300}\x{301}B\x{300}C
+ 1: C
+ A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
+ 0: A\x{300}\x{301}B\x{300}C
+ 1: C
+
+/ End of testinput6 /
diff --git a/ucp.c b/ucp.c
new file mode 100644
index 0000000..3d69653
--- /dev/null
+++ b/ucp.c
@@ -0,0 +1,151 @@
+/*************************************************
+* libucp - Unicode Property Table handler *
+*************************************************/
+
+/* This function provides a fast way of obtaining the basic Unicode properties
+of a character, using a compact binary tree that occupies less than 100K bytes.
+
+ Copyright (c) 2004 University of Cambridge
+
+-------------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-------------------------------------------------------------------------------
+*/
+
+
+#include "ucp.h" /* Exported interface */
+#include "ucpinternal.h" /* Internal table details */
+#include "ucptable.c" /* The table itself */
+
+
+
+/*************************************************
+* Search table and return data *
+*************************************************/
+
+/* Two values are returned: the category is ucp_C, ucp_L, etc. The detailed
+character type is ucp_Lu, ucp_Nd, etc.
+
+Arguments:
+ c the character value
+ type_ptr the detailed character type is returned here
+ case_ptr for letters, the opposite case is returned here, if there
+ is one, else zero
+
+Returns: the character type category or -1 if not found
+*/
+
+static int
+ucp_findchar(const int c, int *type_ptr, int *case_ptr)
+{
+cnode *node = ucp_table;
+register int cc = c;
+int case_offset;
+
+for (;;)
+ {
+ register int d = node->f1 | ((node->f0 & f0_chhmask) << 16);
+ if (cc == d) break;
+ if (cc < d)
+ {
+ if ((node->f0 & f0_leftexists) == 0) return -1;
+ node ++;
+ }
+ else
+ {
+ register int roffset = (node->f2 & f2_rightmask) >> f2_rightshift;
+ if (roffset == 0) return -1;
+ node += 1 << (roffset - 1);
+ }
+ }
+
+switch ((*type_ptr = ((node->f0 & f0_typemask) >> f0_typeshift)))
+ {
+ case ucp_Cc:
+ case ucp_Cf:
+ case ucp_Cn:
+ case ucp_Co:
+ case ucp_Cs:
+ return ucp_C;
+ break;
+
+ case ucp_Ll:
+ case ucp_Lu:
+ case_offset = node->f2 & f2_casemask;
+ if ((case_offset & 0x0100) != 0) case_offset |= 0xfffff000;
+ *case_ptr = (case_offset == 0)? 0 : cc + case_offset;
+ return ucp_L;
+
+ case ucp_Lm:
+ case ucp_Lo:
+ case ucp_Lt:
+ *case_ptr = 0;
+ return ucp_L;
+ break;
+
+ case ucp_Mc:
+ case ucp_Me:
+ case ucp_Mn:
+ return ucp_M;
+ break;
+
+ case ucp_Nd:
+ case ucp_Nl:
+ case ucp_No:
+ return ucp_N;
+ break;
+
+ case ucp_Pc:
+ case ucp_Pd:
+ case ucp_Pe:
+ case ucp_Pf:
+ case ucp_Pi:
+ case ucp_Ps:
+ case ucp_Po:
+ return ucp_P;
+ break;
+
+ case ucp_Sc:
+ case ucp_Sk:
+ case ucp_Sm:
+ case ucp_So:
+ return ucp_S;
+ break;
+
+ case ucp_Zl:
+ case ucp_Zp:
+ case ucp_Zs:
+ return ucp_Z;
+ break;
+
+ default: /* "Should never happen" */
+ return -1;
+ break;
+ }
+}
+
+/* End of ucp.c */
diff --git a/ucp.h b/ucp.h
new file mode 100644
index 0000000..c013978
--- /dev/null
+++ b/ucp.h
@@ -0,0 +1,58 @@
+/*************************************************
+* libucp - Unicode Property Table handler *
+*************************************************/
+
+/* These are the character categories that are returned by ucp_findchar */
+
+enum {
+ ucp_C, /* Other */
+ ucp_L, /* Letter */
+ ucp_M, /* Mark */
+ ucp_N, /* Number */
+ ucp_P, /* Punctuation */
+ ucp_S, /* Symbol */
+ ucp_Z /* Separator */
+};
+
+/* These are the detailed character types that are returned by ucp_findchar */
+
+enum {
+ ucp_Cc, /* Control */
+ ucp_Cf, /* Format */
+ ucp_Cn, /* Unassigned */
+ ucp_Co, /* Private use */
+ ucp_Cs, /* Surrogate */
+ ucp_Ll, /* Lower case letter */
+ ucp_Lm, /* Modifier letter */
+ ucp_Lo, /* Other letter */
+ ucp_Lt, /* Title case letter */
+ ucp_Lu, /* Upper case letter */
+ ucp_Mc, /* Spacing mark */
+ ucp_Me, /* Enclosing mark */
+ ucp_Mn, /* Non-spacing mark */
+ ucp_Nd, /* Decimal number */
+ ucp_Nl, /* Letter number */
+ ucp_No, /* Other number */
+ ucp_Pc, /* Connector punctuation */
+ ucp_Pd, /* Dash punctuation */
+ ucp_Pe, /* Close punctuation */
+ ucp_Pf, /* Final punctuation */
+ ucp_Pi, /* Initial punctuation */
+ ucp_Po, /* Other punctuation */
+ ucp_Ps, /* Open punctuation */
+ ucp_Sc, /* Currency symbol */
+ ucp_Sk, /* Modifier symbol */
+ ucp_Sm, /* Mathematical symbol */
+ ucp_So, /* Other symbol */
+ ucp_Zl, /* Line separator */
+ ucp_Zp, /* Paragraph separator */
+ ucp_Zs /* Space separator */
+};
+
+/* For use in PCRE we make this function static so that there is no conflict if
+PCRE is linked with an application that makes use of an external version -
+assuming an external version is ever released... */
+
+static int ucp_findchar(const int, int *, int *);
+
+/* End of ucp.h */
diff --git a/ucpinternal.h b/ucpinternal.h
new file mode 100644
index 0000000..faefb03
--- /dev/null
+++ b/ucpinternal.h
@@ -0,0 +1,91 @@
+/*************************************************
+* libucp - Unicode Property Table handler *
+*************************************************/
+
+/* Internal header file defining the layout of compact nodes in the tree. */
+
+typedef struct cnode {
+ unsigned short int f0;
+ unsigned short int f1;
+ unsigned short int f2;
+} cnode;
+
+/* Things for the f0 field */
+
+#define f0_leftexists 0x8000 /* Left child exists */
+#define f0_typemask 0x3f00 /* Type bits */
+#define f0_typeshift 8 /* Type shift */
+#define f0_chhmask 0x00ff /* Character high bits */
+
+/* Things for the f2 field */
+
+#define f2_rightmask 0xf000 /* Mask for right offset bits */
+#define f2_rightshift 12 /* Shift for right offset */
+#define f2_casemask 0x0fff /* Mask for case offset */
+
+/* The tree consists of a vector of structures of type cnode, with the root
+node as the first element. The three short ints (16-bits) are used as follows:
+
+(f0) (1) The 0x8000 bit of f0 is set if a left child exists. The child's node
+ is the next node in the vector.
+ (2) The 0x4000 bits of f0 is spare.
+ (3) The 0x3f00 bits of f0 contain the character type; this is a number
+ defined by the enumeration in ucp.h (e.g. ucp_Lu).
+ (4) The bottom 8 bits of f0 contain the most significant byte of the
+ character's 24-bit codepoint.
+
+(f1) (1) The f1 field contains the two least significant bytes of the
+ codepoint.
+
+(f2) (1) The 0xf000 bits of f2 contain zero if there is no right child of this
+ node. Otherwise, they contain one plus the exponent of the power of
+ two of the offset to the right node (e.g. a value of 3 means 8). The
+ units of the offset are node items.
+
+ (2) The 0x0fff bits of f2 contain the signed offset from this character to
+ its alternate cased value. They are zero if there is no such
+ character.
+
+
+-----------------------------------------------------------------------------
+||.|.| type (6) | ms char (8) || ls char (16) ||....| case offset (12) ||
+-----------------------------------------------------------------------------
+ | | |
+ | |-> spare |
+ | exponent of right
+ |-> left child exists child offset
+
+
+The upper/lower casing information is set only for characters that come in
+pairs. There are (at present) four non-one-to-one mappings in the Unicode data.
+These are ignored. They are:
+
+ 1FBE Greek Prosgegrammeni (lower, with upper -> capital iota)
+ 2126 Ohm
+ 212A Kelvin
+ 212B Angstrom
+
+Certainly for the last three, having an alternate case would seem to be a
+mistake. I don't know any Greek, so cannot comment on the first one.
+
+
+When searching the tree, proceed as follows:
+
+(1) Start at the first node.
+
+(2) Extract the character value from f1 and the bottom 8 bits of f0;
+
+(3) Compare with the character being sought. If equal, we are done.
+
+(4) If the test character is smaller, inspect the f0_leftexists flag. If it is
+ not set, the character is not in the tree. If it is set, move to the next
+ node, and go to (2).
+
+(5) If the test character is bigger, extract the f2_rightmask bits from f2, and
+ shift them right by f2_rightshift. If the result is zero, the character is
+ not in the tree. Otherwise, calculate the number of nodes to skip by
+ shifting the value 1 left by this number minus one. Go to (2).
+*/
+
+
+/* End of internal.h */
diff --git a/ucptable.c b/ucptable.c
new file mode 100644
index 0000000..7fb3a12
--- /dev/null
+++ b/ucptable.c
@@ -0,0 +1,15105 @@
+/* This source module is automatically generated from the Unicode
+property table. See internal.h for a description of the layout. */
+
+static cnode ucp_table[] = {
+ { 0x9a00, 0x2f1f, 0xe000 },
+ { 0x8700, 0x1558, 0xd000 },
+ { 0x8700, 0x0a99, 0xc000 },
+ { 0x8500, 0x0435, 0xbfe0 },
+ { 0x8500, 0x01ff, 0xafff },
+ { 0x8500, 0x00ff, 0x9079 },
+ { 0x8000, 0x007f, 0x8000 },
+ { 0x9500, 0x003f, 0x7000 },
+ { 0x8000, 0x001f, 0x6000 },
+ { 0x8000, 0x000f, 0x5000 },
+ { 0x8000, 0x0007, 0x4000 },
+ { 0x8000, 0x0003, 0x3000 },
+ { 0x8000, 0x0001, 0x2000 },
+ { 0x0000, 0x0000, 0x0000 },
+ { 0x0000, 0x0002, 0x0000 },
+ { 0x8000, 0x0005, 0x2000 },
+ { 0x0000, 0x0004, 0x0000 },
+ { 0x0000, 0x0006, 0x0000 },
+ { 0x8000, 0x000b, 0x3000 },
+ { 0x8000, 0x0009, 0x2000 },
+ { 0x0000, 0x0008, 0x0000 },
+ { 0x0000, 0x000a, 0x0000 },
+ { 0x8000, 0x000d, 0x2000 },
+ { 0x0000, 0x000c, 0x0000 },
+ { 0x0000, 0x000e, 0x0000 },
+ { 0x8000, 0x0017, 0x4000 },
+ { 0x8000, 0x0013, 0x3000 },
+ { 0x8000, 0x0011, 0x2000 },
+ { 0x0000, 0x0010, 0x0000 },
+ { 0x0000, 0x0012, 0x0000 },
+ { 0x8000, 0x0015, 0x2000 },
+ { 0x0000, 0x0014, 0x0000 },
+ { 0x0000, 0x0016, 0x0000 },
+ { 0x8000, 0x001b, 0x3000 },
+ { 0x8000, 0x0019, 0x2000 },
+ { 0x0000, 0x0018, 0x0000 },
+ { 0x0000, 0x001a, 0x0000 },
+ { 0x8000, 0x001d, 0x2000 },
+ { 0x0000, 0x001c, 0x0000 },
+ { 0x0000, 0x001e, 0x0000 },
+ { 0x9500, 0x002f, 0x5000 },
+ { 0x9500, 0x0027, 0x4000 },
+ { 0x9500, 0x0023, 0x3000 },
+ { 0x9500, 0x0021, 0x2000 },
+ { 0x1d00, 0x0020, 0x0000 },
+ { 0x1500, 0x0022, 0x0000 },
+ { 0x9500, 0x0025, 0x2000 },
+ { 0x1700, 0x0024, 0x0000 },
+ { 0x1500, 0x0026, 0x0000 },
+ { 0x9900, 0x002b, 0x3000 },
+ { 0x9200, 0x0029, 0x2000 },
+ { 0x1600, 0x0028, 0x0000 },
+ { 0x1500, 0x002a, 0x0000 },
+ { 0x9100, 0x002d, 0x2000 },
+ { 0x1500, 0x002c, 0x0000 },
+ { 0x1500, 0x002e, 0x0000 },
+ { 0x8d00, 0x0037, 0x4000 },
+ { 0x8d00, 0x0033, 0x3000 },
+ { 0x8d00, 0x0031, 0x2000 },
+ { 0x0d00, 0x0030, 0x0000 },
+ { 0x0d00, 0x0032, 0x0000 },
+ { 0x8d00, 0x0035, 0x2000 },
+ { 0x0d00, 0x0034, 0x0000 },
+ { 0x0d00, 0x0036, 0x0000 },
+ { 0x9500, 0x003b, 0x3000 },
+ { 0x8d00, 0x0039, 0x2000 },
+ { 0x0d00, 0x0038, 0x0000 },
+ { 0x1500, 0x003a, 0x0000 },
+ { 0x9900, 0x003d, 0x2000 },
+ { 0x1900, 0x003c, 0x0000 },
+ { 0x1900, 0x003e, 0x0000 },
+ { 0x9000, 0x005f, 0x6000 },
+ { 0x8900, 0x004f, 0x5020 },
+ { 0x8900, 0x0047, 0x4020 },
+ { 0x8900, 0x0043, 0x3020 },
+ { 0x8900, 0x0041, 0x2020 },
+ { 0x1500, 0x0040, 0x0000 },
+ { 0x0900, 0x0042, 0x0020 },
+ { 0x8900, 0x0045, 0x2020 },
+ { 0x0900, 0x0044, 0x0020 },
+ { 0x0900, 0x0046, 0x0020 },
+ { 0x8900, 0x004b, 0x3020 },
+ { 0x8900, 0x0049, 0x2020 },
+ { 0x0900, 0x0048, 0x0020 },
+ { 0x0900, 0x004a, 0x0020 },
+ { 0x8900, 0x004d, 0x2020 },
+ { 0x0900, 0x004c, 0x0020 },
+ { 0x0900, 0x004e, 0x0020 },
+ { 0x8900, 0x0057, 0x4020 },
+ { 0x8900, 0x0053, 0x3020 },
+ { 0x8900, 0x0051, 0x2020 },
+ { 0x0900, 0x0050, 0x0020 },
+ { 0x0900, 0x0052, 0x0020 },
+ { 0x8900, 0x0055, 0x2020 },
+ { 0x0900, 0x0054, 0x0020 },
+ { 0x0900, 0x0056, 0x0020 },
+ { 0x9600, 0x005b, 0x3000 },
+ { 0x8900, 0x0059, 0x2020 },
+ { 0x0900, 0x0058, 0x0020 },
+ { 0x0900, 0x005a, 0x0020 },
+ { 0x9200, 0x005d, 0x2000 },
+ { 0x1500, 0x005c, 0x0000 },
+ { 0x1800, 0x005e, 0x0000 },
+ { 0x8500, 0x006f, 0x5fe0 },
+ { 0x8500, 0x0067, 0x4fe0 },
+ { 0x8500, 0x0063, 0x3fe0 },
+ { 0x8500, 0x0061, 0x2fe0 },
+ { 0x1800, 0x0060, 0x0000 },
+ { 0x0500, 0x0062, 0x0fe0 },
+ { 0x8500, 0x0065, 0x2fe0 },
+ { 0x0500, 0x0064, 0x0fe0 },
+ { 0x0500, 0x0066, 0x0fe0 },
+ { 0x8500, 0x006b, 0x3fe0 },
+ { 0x8500, 0x0069, 0x2fe0 },
+ { 0x0500, 0x0068, 0x0fe0 },
+ { 0x0500, 0x006a, 0x0fe0 },
+ { 0x8500, 0x006d, 0x2fe0 },
+ { 0x0500, 0x006c, 0x0fe0 },
+ { 0x0500, 0x006e, 0x0fe0 },
+ { 0x8500, 0x0077, 0x4fe0 },
+ { 0x8500, 0x0073, 0x3fe0 },
+ { 0x8500, 0x0071, 0x2fe0 },
+ { 0x0500, 0x0070, 0x0fe0 },
+ { 0x0500, 0x0072, 0x0fe0 },
+ { 0x8500, 0x0075, 0x2fe0 },
+ { 0x0500, 0x0074, 0x0fe0 },
+ { 0x0500, 0x0076, 0x0fe0 },
+ { 0x9600, 0x007b, 0x3000 },
+ { 0x8500, 0x0079, 0x2fe0 },
+ { 0x0500, 0x0078, 0x0fe0 },
+ { 0x0500, 0x007a, 0x0fe0 },
+ { 0x9200, 0x007d, 0x2000 },
+ { 0x1900, 0x007c, 0x0000 },
+ { 0x1900, 0x007e, 0x0000 },
+ { 0x9500, 0x00bf, 0x7000 },
+ { 0x8000, 0x009f, 0x6000 },
+ { 0x8000, 0x008f, 0x5000 },
+ { 0x8000, 0x0087, 0x4000 },
+ { 0x8000, 0x0083, 0x3000 },
+ { 0x8000, 0x0081, 0x2000 },
+ { 0x0000, 0x0080, 0x0000 },
+ { 0x0000, 0x0082, 0x0000 },
+ { 0x8000, 0x0085, 0x2000 },
+ { 0x0000, 0x0084, 0x0000 },
+ { 0x0000, 0x0086, 0x0000 },
+ { 0x8000, 0x008b, 0x3000 },
+ { 0x8000, 0x0089, 0x2000 },
+ { 0x0000, 0x0088, 0x0000 },
+ { 0x0000, 0x008a, 0x0000 },
+ { 0x8000, 0x008d, 0x2000 },
+ { 0x0000, 0x008c, 0x0000 },
+ { 0x0000, 0x008e, 0x0000 },
+ { 0x8000, 0x0097, 0x4000 },
+ { 0x8000, 0x0093, 0x3000 },
+ { 0x8000, 0x0091, 0x2000 },
+ { 0x0000, 0x0090, 0x0000 },
+ { 0x0000, 0x0092, 0x0000 },
+ { 0x8000, 0x0095, 0x2000 },
+ { 0x0000, 0x0094, 0x0000 },
+ { 0x0000, 0x0096, 0x0000 },
+ { 0x8000, 0x009b, 0x3000 },
+ { 0x8000, 0x0099, 0x2000 },
+ { 0x0000, 0x0098, 0x0000 },
+ { 0x0000, 0x009a, 0x0000 },
+ { 0x8000, 0x009d, 0x2000 },
+ { 0x0000, 0x009c, 0x0000 },
+ { 0x0000, 0x009e, 0x0000 },
+ { 0x9800, 0x00af, 0x5000 },
+ { 0x9a00, 0x00a7, 0x4000 },
+ { 0x9700, 0x00a3, 0x3000 },
+ { 0x9500, 0x00a1, 0x2000 },
+ { 0x1d00, 0x00a0, 0x0000 },
+ { 0x1700, 0x00a2, 0x0000 },
+ { 0x9700, 0x00a5, 0x2000 },
+ { 0x1700, 0x00a4, 0x0000 },
+ { 0x1a00, 0x00a6, 0x0000 },
+ { 0x9400, 0x00ab, 0x3000 },
+ { 0x9a00, 0x00a9, 0x2000 },
+ { 0x1800, 0x00a8, 0x0000 },
+ { 0x0500, 0x00aa, 0x0000 },
+ { 0x8100, 0x00ad, 0x2000 },
+ { 0x1900, 0x00ac, 0x0000 },
+ { 0x1a00, 0x00ae, 0x0000 },
+ { 0x9500, 0x00b7, 0x4000 },
+ { 0x8f00, 0x00b3, 0x3000 },
+ { 0x9900, 0x00b1, 0x2000 },
+ { 0x1a00, 0x00b0, 0x0000 },
+ { 0x0f00, 0x00b2, 0x0000 },
+ { 0x8500, 0x00b5, 0x22e7 },
+ { 0x1800, 0x00b4, 0x0000 },
+ { 0x1a00, 0x00b6, 0x0000 },
+ { 0x9300, 0x00bb, 0x3000 },
+ { 0x8f00, 0x00b9, 0x2000 },
+ { 0x1800, 0x00b8, 0x0000 },
+ { 0x0500, 0x00ba, 0x0000 },
+ { 0x8f00, 0x00bd, 0x2000 },
+ { 0x0f00, 0x00bc, 0x0000 },
+ { 0x0f00, 0x00be, 0x0000 },
+ { 0x8500, 0x00df, 0x6000 },
+ { 0x8900, 0x00cf, 0x5020 },
+ { 0x8900, 0x00c7, 0x4020 },
+ { 0x8900, 0x00c3, 0x3020 },
+ { 0x8900, 0x00c1, 0x2020 },
+ { 0x0900, 0x00c0, 0x0020 },
+ { 0x0900, 0x00c2, 0x0020 },
+ { 0x8900, 0x00c5, 0x2020 },
+ { 0x0900, 0x00c4, 0x0020 },
+ { 0x0900, 0x00c6, 0x0020 },
+ { 0x8900, 0x00cb, 0x3020 },
+ { 0x8900, 0x00c9, 0x2020 },
+ { 0x0900, 0x00c8, 0x0020 },
+ { 0x0900, 0x00ca, 0x0020 },
+ { 0x8900, 0x00cd, 0x2020 },
+ { 0x0900, 0x00cc, 0x0020 },
+ { 0x0900, 0x00ce, 0x0020 },
+ { 0x9900, 0x00d7, 0x4000 },
+ { 0x8900, 0x00d3, 0x3020 },
+ { 0x8900, 0x00d1, 0x2020 },
+ { 0x0900, 0x00d0, 0x0020 },
+ { 0x0900, 0x00d2, 0x0020 },
+ { 0x8900, 0x00d5, 0x2020 },
+ { 0x0900, 0x00d4, 0x0020 },
+ { 0x0900, 0x00d6, 0x0020 },
+ { 0x8900, 0x00db, 0x3020 },
+ { 0x8900, 0x00d9, 0x2020 },
+ { 0x0900, 0x00d8, 0x0020 },
+ { 0x0900, 0x00da, 0x0020 },
+ { 0x8900, 0x00dd, 0x2020 },
+ { 0x0900, 0x00dc, 0x0020 },
+ { 0x0900, 0x00de, 0x0020 },
+ { 0x8500, 0x00ef, 0x5fe0 },
+ { 0x8500, 0x00e7, 0x4fe0 },
+ { 0x8500, 0x00e3, 0x3fe0 },
+ { 0x8500, 0x00e1, 0x2fe0 },
+ { 0x0500, 0x00e0, 0x0fe0 },
+ { 0x0500, 0x00e2, 0x0fe0 },
+ { 0x8500, 0x00e5, 0x2fe0 },
+ { 0x0500, 0x00e4, 0x0fe0 },
+ { 0x0500, 0x00e6, 0x0fe0 },
+ { 0x8500, 0x00eb, 0x3fe0 },
+ { 0x8500, 0x00e9, 0x2fe0 },
+ { 0x0500, 0x00e8, 0x0fe0 },
+ { 0x0500, 0x00ea, 0x0fe0 },
+ { 0x8500, 0x00ed, 0x2fe0 },
+ { 0x0500, 0x00ec, 0x0fe0 },
+ { 0x0500, 0x00ee, 0x0fe0 },
+ { 0x9900, 0x00f7, 0x4000 },
+ { 0x8500, 0x00f3, 0x3fe0 },
+ { 0x8500, 0x00f1, 0x2fe0 },
+ { 0x0500, 0x00f0, 0x0fe0 },
+ { 0x0500, 0x00f2, 0x0fe0 },
+ { 0x8500, 0x00f5, 0x2fe0 },
+ { 0x0500, 0x00f4, 0x0fe0 },
+ { 0x0500, 0x00f6, 0x0fe0 },
+ { 0x8500, 0x00fb, 0x3fe0 },
+ { 0x8500, 0x00f9, 0x2fe0 },
+ { 0x0500, 0x00f8, 0x0fe0 },
+ { 0x0500, 0x00fa, 0x0fe0 },
+ { 0x8500, 0x00fd, 0x2fe0 },
+ { 0x0500, 0x00fc, 0x0fe0 },
+ { 0x0500, 0x00fe, 0x0fe0 },
+ { 0x8500, 0x017f, 0x8ed4 },
+ { 0x8900, 0x013f, 0x7001 },
+ { 0x8500, 0x011f, 0x6fff },
+ { 0x8500, 0x010f, 0x5fff },
+ { 0x8500, 0x0107, 0x4fff },
+ { 0x8500, 0x0103, 0x3fff },
+ { 0x8500, 0x0101, 0x2fff },
+ { 0x0900, 0x0100, 0x0001 },
+ { 0x0900, 0x0102, 0x0001 },
+ { 0x8500, 0x0105, 0x2fff },
+ { 0x0900, 0x0104, 0x0001 },
+ { 0x0900, 0x0106, 0x0001 },
+ { 0x8500, 0x010b, 0x3fff },
+ { 0x8500, 0x0109, 0x2fff },
+ { 0x0900, 0x0108, 0x0001 },
+ { 0x0900, 0x010a, 0x0001 },
+ { 0x8500, 0x010d, 0x2fff },
+ { 0x0900, 0x010c, 0x0001 },
+ { 0x0900, 0x010e, 0x0001 },
+ { 0x8500, 0x0117, 0x4fff },
+ { 0x8500, 0x0113, 0x3fff },
+ { 0x8500, 0x0111, 0x2fff },
+ { 0x0900, 0x0110, 0x0001 },
+ { 0x0900, 0x0112, 0x0001 },
+ { 0x8500, 0x0115, 0x2fff },
+ { 0x0900, 0x0114, 0x0001 },
+ { 0x0900, 0x0116, 0x0001 },
+ { 0x8500, 0x011b, 0x3fff },
+ { 0x8500, 0x0119, 0x2fff },
+ { 0x0900, 0x0118, 0x0001 },
+ { 0x0900, 0x011a, 0x0001 },
+ { 0x8500, 0x011d, 0x2fff },
+ { 0x0900, 0x011c, 0x0001 },
+ { 0x0900, 0x011e, 0x0001 },
+ { 0x8500, 0x012f, 0x5fff },
+ { 0x8500, 0x0127, 0x4fff },
+ { 0x8500, 0x0123, 0x3fff },
+ { 0x8500, 0x0121, 0x2fff },
+ { 0x0900, 0x0120, 0x0001 },
+ { 0x0900, 0x0122, 0x0001 },
+ { 0x8500, 0x0125, 0x2fff },
+ { 0x0900, 0x0124, 0x0001 },
+ { 0x0900, 0x0126, 0x0001 },
+ { 0x8500, 0x012b, 0x3fff },
+ { 0x8500, 0x0129, 0x2fff },
+ { 0x0900, 0x0128, 0x0001 },
+ { 0x0900, 0x012a, 0x0001 },
+ { 0x8500, 0x012d, 0x2fff },
+ { 0x0900, 0x012c, 0x0001 },
+ { 0x0900, 0x012e, 0x0001 },
+ { 0x8500, 0x0137, 0x4fff },
+ { 0x8500, 0x0133, 0x3fff },
+ { 0x8500, 0x0131, 0x2f18 },
+ { 0x0900, 0x0130, 0x0f39 },
+ { 0x0900, 0x0132, 0x0001 },
+ { 0x8500, 0x0135, 0x2fff },
+ { 0x0900, 0x0134, 0x0001 },
+ { 0x0900, 0x0136, 0x0001 },
+ { 0x8900, 0x013b, 0x3001 },
+ { 0x8900, 0x0139, 0x2001 },
+ { 0x0500, 0x0138, 0x0000 },
+ { 0x0500, 0x013a, 0x0fff },
+ { 0x8900, 0x013d, 0x2001 },
+ { 0x0500, 0x013c, 0x0fff },
+ { 0x0500, 0x013e, 0x0fff },
+ { 0x8500, 0x015f, 0x6fff },
+ { 0x8500, 0x014f, 0x5fff },
+ { 0x8900, 0x0147, 0x4001 },
+ { 0x8900, 0x0143, 0x3001 },
+ { 0x8900, 0x0141, 0x2001 },
+ { 0x0500, 0x0140, 0x0fff },
+ { 0x0500, 0x0142, 0x0fff },
+ { 0x8900, 0x0145, 0x2001 },
+ { 0x0500, 0x0144, 0x0fff },
+ { 0x0500, 0x0146, 0x0fff },
+ { 0x8500, 0x014b, 0x3fff },
+ { 0x8500, 0x0149, 0x2000 },
+ { 0x0500, 0x0148, 0x0fff },
+ { 0x0900, 0x014a, 0x0001 },
+ { 0x8500, 0x014d, 0x2fff },
+ { 0x0900, 0x014c, 0x0001 },
+ { 0x0900, 0x014e, 0x0001 },
+ { 0x8500, 0x0157, 0x4fff },
+ { 0x8500, 0x0153, 0x3fff },
+ { 0x8500, 0x0151, 0x2fff },
+ { 0x0900, 0x0150, 0x0001 },
+ { 0x0900, 0x0152, 0x0001 },
+ { 0x8500, 0x0155, 0x2fff },
+ { 0x0900, 0x0154, 0x0001 },
+ { 0x0900, 0x0156, 0x0001 },
+ { 0x8500, 0x015b, 0x3fff },
+ { 0x8500, 0x0159, 0x2fff },
+ { 0x0900, 0x0158, 0x0001 },
+ { 0x0900, 0x015a, 0x0001 },
+ { 0x8500, 0x015d, 0x2fff },
+ { 0x0900, 0x015c, 0x0001 },
+ { 0x0900, 0x015e, 0x0001 },
+ { 0x8500, 0x016f, 0x5fff },
+ { 0x8500, 0x0167, 0x4fff },
+ { 0x8500, 0x0163, 0x3fff },
+ { 0x8500, 0x0161, 0x2fff },
+ { 0x0900, 0x0160, 0x0001 },
+ { 0x0900, 0x0162, 0x0001 },
+ { 0x8500, 0x0165, 0x2fff },
+ { 0x0900, 0x0164, 0x0001 },
+ { 0x0900, 0x0166, 0x0001 },
+ { 0x8500, 0x016b, 0x3fff },
+ { 0x8500, 0x0169, 0x2fff },
+ { 0x0900, 0x0168, 0x0001 },
+ { 0x0900, 0x016a, 0x0001 },
+ { 0x8500, 0x016d, 0x2fff },
+ { 0x0900, 0x016c, 0x0001 },
+ { 0x0900, 0x016e, 0x0001 },
+ { 0x8500, 0x0177, 0x4fff },
+ { 0x8500, 0x0173, 0x3fff },
+ { 0x8500, 0x0171, 0x2fff },
+ { 0x0900, 0x0170, 0x0001 },
+ { 0x0900, 0x0172, 0x0001 },
+ { 0x8500, 0x0175, 0x2fff },
+ { 0x0900, 0x0174, 0x0001 },
+ { 0x0900, 0x0176, 0x0001 },
+ { 0x8900, 0x017b, 0x3001 },
+ { 0x8900, 0x0179, 0x2001 },
+ { 0x0900, 0x0178, 0x0f87 },
+ { 0x0500, 0x017a, 0x0fff },
+ { 0x8900, 0x017d, 0x2001 },
+ { 0x0500, 0x017c, 0x0fff },
+ { 0x0500, 0x017e, 0x0fff },
+ { 0x8500, 0x01bf, 0x7038 },
+ { 0x8900, 0x019f, 0x60d6 },
+ { 0x8900, 0x018f, 0x50ca },
+ { 0x8900, 0x0187, 0x4001 },
+ { 0x8500, 0x0183, 0x3fff },
+ { 0x8900, 0x0181, 0x20d2 },
+ { 0x0500, 0x0180, 0x0000 },
+ { 0x0900, 0x0182, 0x0001 },
+ { 0x8500, 0x0185, 0x2fff },
+ { 0x0900, 0x0184, 0x0001 },
+ { 0x0900, 0x0186, 0x00ce },
+ { 0x8900, 0x018b, 0x3001 },
+ { 0x8900, 0x0189, 0x20cd },
+ { 0x0500, 0x0188, 0x0fff },
+ { 0x0900, 0x018a, 0x00cd },
+ { 0x8500, 0x018d, 0x2000 },
+ { 0x0500, 0x018c, 0x0fff },
+ { 0x0900, 0x018e, 0x004f },
+ { 0x8900, 0x0197, 0x40d1 },
+ { 0x8900, 0x0193, 0x30cd },
+ { 0x8900, 0x0191, 0x2001 },
+ { 0x0900, 0x0190, 0x00cb },
+ { 0x0500, 0x0192, 0x0fff },
+ { 0x8500, 0x0195, 0x2061 },
+ { 0x0900, 0x0194, 0x00cf },
+ { 0x0900, 0x0196, 0x00d3 },
+ { 0x8500, 0x019b, 0x3000 },
+ { 0x8500, 0x0199, 0x2fff },
+ { 0x0900, 0x0198, 0x0001 },
+ { 0x0500, 0x019a, 0x0000 },
+ { 0x8900, 0x019d, 0x20d5 },
+ { 0x0900, 0x019c, 0x00d3 },
+ { 0x0500, 0x019e, 0x0082 },
+ { 0x8900, 0x01af, 0x5001 },
+ { 0x8900, 0x01a7, 0x4001 },
+ { 0x8500, 0x01a3, 0x3fff },
+ { 0x8500, 0x01a1, 0x2fff },
+ { 0x0900, 0x01a0, 0x0001 },
+ { 0x0900, 0x01a2, 0x0001 },
+ { 0x8500, 0x01a5, 0x2fff },
+ { 0x0900, 0x01a4, 0x0001 },
+ { 0x0900, 0x01a6, 0x00da },
+ { 0x8500, 0x01ab, 0x3000 },
+ { 0x8900, 0x01a9, 0x20da },
+ { 0x0500, 0x01a8, 0x0fff },
+ { 0x0500, 0x01aa, 0x0000 },
+ { 0x8500, 0x01ad, 0x2fff },
+ { 0x0900, 0x01ac, 0x0001 },
+ { 0x0900, 0x01ae, 0x00da },
+ { 0x8900, 0x01b7, 0x40db },
+ { 0x8900, 0x01b3, 0x3001 },
+ { 0x8900, 0x01b1, 0x20d9 },
+ { 0x0500, 0x01b0, 0x0fff },
+ { 0x0900, 0x01b2, 0x00d9 },
+ { 0x8900, 0x01b5, 0x2001 },
+ { 0x0500, 0x01b4, 0x0fff },
+ { 0x0500, 0x01b6, 0x0fff },
+ { 0x8700, 0x01bb, 0x3000 },
+ { 0x8500, 0x01b9, 0x2fff },
+ { 0x0900, 0x01b8, 0x0001 },
+ { 0x0500, 0x01ba, 0x0000 },
+ { 0x8500, 0x01bd, 0x2fff },
+ { 0x0900, 0x01bc, 0x0001 },
+ { 0x0500, 0x01be, 0x0000 },
+ { 0x8500, 0x01df, 0x6fff },
+ { 0x8900, 0x01cf, 0x5001 },
+ { 0x8900, 0x01c7, 0x4002 },
+ { 0x8700, 0x01c3, 0x3000 },
+ { 0x8700, 0x01c1, 0x2000 },
+ { 0x0700, 0x01c0, 0x0000 },
+ { 0x0700, 0x01c2, 0x0000 },
+ { 0x8800, 0x01c5, 0x2000 },
+ { 0x0900, 0x01c4, 0x0002 },
+ { 0x0500, 0x01c6, 0x0ffe },
+ { 0x8800, 0x01cb, 0x3000 },
+ { 0x8500, 0x01c9, 0x2ffe },
+ { 0x0800, 0x01c8, 0x0000 },
+ { 0x0900, 0x01ca, 0x0002 },
+ { 0x8900, 0x01cd, 0x2001 },
+ { 0x0500, 0x01cc, 0x0ffe },
+ { 0x0500, 0x01ce, 0x0fff },
+ { 0x8900, 0x01d7, 0x4001 },
+ { 0x8900, 0x01d3, 0x3001 },
+ { 0x8900, 0x01d1, 0x2001 },
+ { 0x0500, 0x01d0, 0x0fff },
+ { 0x0500, 0x01d2, 0x0fff },
+ { 0x8900, 0x01d5, 0x2001 },
+ { 0x0500, 0x01d4, 0x0fff },
+ { 0x0500, 0x01d6, 0x0fff },
+ { 0x8900, 0x01db, 0x3001 },
+ { 0x8900, 0x01d9, 0x2001 },
+ { 0x0500, 0x01d8, 0x0fff },
+ { 0x0500, 0x01da, 0x0fff },
+ { 0x8500, 0x01dd, 0x2fb1 },
+ { 0x0500, 0x01dc, 0x0fff },
+ { 0x0900, 0x01de, 0x0001 },
+ { 0x8500, 0x01ef, 0x5fff },
+ { 0x8500, 0x01e7, 0x4fff },
+ { 0x8500, 0x01e3, 0x3fff },
+ { 0x8500, 0x01e1, 0x2fff },
+ { 0x0900, 0x01e0, 0x0001 },
+ { 0x0900, 0x01e2, 0x0001 },
+ { 0x8500, 0x01e5, 0x2fff },
+ { 0x0900, 0x01e4, 0x0001 },
+ { 0x0900, 0x01e6, 0x0001 },
+ { 0x8500, 0x01eb, 0x3fff },
+ { 0x8500, 0x01e9, 0x2fff },
+ { 0x0900, 0x01e8, 0x0001 },
+ { 0x0900, 0x01ea, 0x0001 },
+ { 0x8500, 0x01ed, 0x2fff },
+ { 0x0900, 0x01ec, 0x0001 },
+ { 0x0900, 0x01ee, 0x0001 },
+ { 0x8900, 0x01f7, 0x4fc8 },
+ { 0x8500, 0x01f3, 0x3ffe },
+ { 0x8900, 0x01f1, 0x2002 },
+ { 0x0500, 0x01f0, 0x0000 },
+ { 0x0800, 0x01f2, 0x0000 },
+ { 0x8500, 0x01f5, 0x2fff },
+ { 0x0900, 0x01f4, 0x0001 },
+ { 0x0900, 0x01f6, 0x0f9f },
+ { 0x8500, 0x01fb, 0x3fff },
+ { 0x8500, 0x01f9, 0x2fff },
+ { 0x0900, 0x01f8, 0x0001 },
+ { 0x0900, 0x01fa, 0x0001 },
+ { 0x8500, 0x01fd, 0x2fff },
+ { 0x0900, 0x01fc, 0x0001 },
+ { 0x0900, 0x01fe, 0x0001 },
+ { 0x8c00, 0x0318, 0x9000 },
+ { 0x8500, 0x0298, 0x8000 },
+ { 0x8500, 0x0258, 0x7000 },
+ { 0x8500, 0x021f, 0x6fff },
+ { 0x8500, 0x020f, 0x5fff },
+ { 0x8500, 0x0207, 0x4fff },
+ { 0x8500, 0x0203, 0x3fff },
+ { 0x8500, 0x0201, 0x2fff },
+ { 0x0900, 0x0200, 0x0001 },
+ { 0x0900, 0x0202, 0x0001 },
+ { 0x8500, 0x0205, 0x2fff },
+ { 0x0900, 0x0204, 0x0001 },
+ { 0x0900, 0x0206, 0x0001 },
+ { 0x8500, 0x020b, 0x3fff },
+ { 0x8500, 0x0209, 0x2fff },
+ { 0x0900, 0x0208, 0x0001 },
+ { 0x0900, 0x020a, 0x0001 },
+ { 0x8500, 0x020d, 0x2fff },
+ { 0x0900, 0x020c, 0x0001 },
+ { 0x0900, 0x020e, 0x0001 },
+ { 0x8500, 0x0217, 0x4fff },
+ { 0x8500, 0x0213, 0x3fff },
+ { 0x8500, 0x0211, 0x2fff },
+ { 0x0900, 0x0210, 0x0001 },
+ { 0x0900, 0x0212, 0x0001 },
+ { 0x8500, 0x0215, 0x2fff },
+ { 0x0900, 0x0214, 0x0001 },
+ { 0x0900, 0x0216, 0x0001 },
+ { 0x8500, 0x021b, 0x3fff },
+ { 0x8500, 0x0219, 0x2fff },
+ { 0x0900, 0x0218, 0x0001 },
+ { 0x0900, 0x021a, 0x0001 },
+ { 0x8500, 0x021d, 0x2fff },
+ { 0x0900, 0x021c, 0x0001 },
+ { 0x0900, 0x021e, 0x0001 },
+ { 0x8500, 0x022f, 0x5fff },
+ { 0x8500, 0x0227, 0x4fff },
+ { 0x8500, 0x0223, 0x3fff },
+ { 0x8500, 0x0221, 0x2000 },
+ { 0x0900, 0x0220, 0x0f7e },
+ { 0x0900, 0x0222, 0x0001 },
+ { 0x8500, 0x0225, 0x2fff },
+ { 0x0900, 0x0224, 0x0001 },
+ { 0x0900, 0x0226, 0x0001 },
+ { 0x8500, 0x022b, 0x3fff },
+ { 0x8500, 0x0229, 0x2fff },
+ { 0x0900, 0x0228, 0x0001 },
+ { 0x0900, 0x022a, 0x0001 },
+ { 0x8500, 0x022d, 0x2fff },
+ { 0x0900, 0x022c, 0x0001 },
+ { 0x0900, 0x022e, 0x0001 },
+ { 0x8500, 0x0250, 0x4000 },
+ { 0x8500, 0x0233, 0x3fff },
+ { 0x8500, 0x0231, 0x2fff },
+ { 0x0900, 0x0230, 0x0001 },
+ { 0x0900, 0x0232, 0x0001 },
+ { 0x8500, 0x0235, 0x2000 },
+ { 0x0500, 0x0234, 0x0000 },
+ { 0x0500, 0x0236, 0x0000 },
+ { 0x8500, 0x0254, 0x3f32 },
+ { 0x8500, 0x0252, 0x2000 },
+ { 0x0500, 0x0251, 0x0000 },
+ { 0x0500, 0x0253, 0x0f2e },
+ { 0x8500, 0x0256, 0x2f33 },
+ { 0x0500, 0x0255, 0x0000 },
+ { 0x0500, 0x0257, 0x0f33 },
+ { 0x8500, 0x0278, 0x6000 },
+ { 0x8500, 0x0268, 0x5f2f },
+ { 0x8500, 0x0260, 0x4f33 },
+ { 0x8500, 0x025c, 0x3000 },
+ { 0x8500, 0x025a, 0x2000 },
+ { 0x0500, 0x0259, 0x0f36 },
+ { 0x0500, 0x025b, 0x0f35 },
+ { 0x8500, 0x025e, 0x2000 },
+ { 0x0500, 0x025d, 0x0000 },
+ { 0x0500, 0x025f, 0x0000 },
+ { 0x8500, 0x0264, 0x3000 },
+ { 0x8500, 0x0262, 0x2000 },
+ { 0x0500, 0x0261, 0x0000 },
+ { 0x0500, 0x0263, 0x0f31 },
+ { 0x8500, 0x0266, 0x2000 },
+ { 0x0500, 0x0265, 0x0000 },
+ { 0x0500, 0x0267, 0x0000 },
+ { 0x8500, 0x0270, 0x4000 },
+ { 0x8500, 0x026c, 0x3000 },
+ { 0x8500, 0x026a, 0x2000 },
+ { 0x0500, 0x0269, 0x0f2d },
+ { 0x0500, 0x026b, 0x0000 },
+ { 0x8500, 0x026e, 0x2000 },
+ { 0x0500, 0x026d, 0x0000 },
+ { 0x0500, 0x026f, 0x0f2d },
+ { 0x8500, 0x0274, 0x3000 },
+ { 0x8500, 0x0272, 0x2f2b },
+ { 0x0500, 0x0271, 0x0000 },
+ { 0x0500, 0x0273, 0x0000 },
+ { 0x8500, 0x0276, 0x2000 },
+ { 0x0500, 0x0275, 0x0f2a },
+ { 0x0500, 0x0277, 0x0000 },
+ { 0x8500, 0x0288, 0x5f26 },
+ { 0x8500, 0x0280, 0x4f26 },
+ { 0x8500, 0x027c, 0x3000 },
+ { 0x8500, 0x027a, 0x2000 },
+ { 0x0500, 0x0279, 0x0000 },
+ { 0x0500, 0x027b, 0x0000 },
+ { 0x8500, 0x027e, 0x2000 },
+ { 0x0500, 0x027d, 0x0000 },
+ { 0x0500, 0x027f, 0x0000 },
+ { 0x8500, 0x0284, 0x3000 },
+ { 0x8500, 0x0282, 0x2000 },
+ { 0x0500, 0x0281, 0x0000 },
+ { 0x0500, 0x0283, 0x0f26 },
+ { 0x8500, 0x0286, 0x2000 },
+ { 0x0500, 0x0285, 0x0000 },
+ { 0x0500, 0x0287, 0x0000 },
+ { 0x8500, 0x0290, 0x4000 },
+ { 0x8500, 0x028c, 0x3000 },
+ { 0x8500, 0x028a, 0x2f27 },
+ { 0x0500, 0x0289, 0x0000 },
+ { 0x0500, 0x028b, 0x0f27 },
+ { 0x8500, 0x028e, 0x2000 },
+ { 0x0500, 0x028d, 0x0000 },
+ { 0x0500, 0x028f, 0x0000 },
+ { 0x8500, 0x0294, 0x3000 },
+ { 0x8500, 0x0292, 0x2f25 },
+ { 0x0500, 0x0291, 0x0000 },
+ { 0x0500, 0x0293, 0x0000 },
+ { 0x8500, 0x0296, 0x2000 },
+ { 0x0500, 0x0295, 0x0000 },
+ { 0x0500, 0x0297, 0x0000 },
+ { 0x9800, 0x02d8, 0x7000 },
+ { 0x8600, 0x02b8, 0x6000 },
+ { 0x8500, 0x02a8, 0x5000 },
+ { 0x8500, 0x02a0, 0x4000 },
+ { 0x8500, 0x029c, 0x3000 },
+ { 0x8500, 0x029a, 0x2000 },
+ { 0x0500, 0x0299, 0x0000 },
+ { 0x0500, 0x029b, 0x0000 },
+ { 0x8500, 0x029e, 0x2000 },
+ { 0x0500, 0x029d, 0x0000 },
+ { 0x0500, 0x029f, 0x0000 },
+ { 0x8500, 0x02a4, 0x3000 },
+ { 0x8500, 0x02a2, 0x2000 },
+ { 0x0500, 0x02a1, 0x0000 },
+ { 0x0500, 0x02a3, 0x0000 },
+ { 0x8500, 0x02a6, 0x2000 },
+ { 0x0500, 0x02a5, 0x0000 },
+ { 0x0500, 0x02a7, 0x0000 },
+ { 0x8600, 0x02b0, 0x4000 },
+ { 0x8500, 0x02ac, 0x3000 },
+ { 0x8500, 0x02aa, 0x2000 },
+ { 0x0500, 0x02a9, 0x0000 },
+ { 0x0500, 0x02ab, 0x0000 },
+ { 0x8500, 0x02ae, 0x2000 },
+ { 0x0500, 0x02ad, 0x0000 },
+ { 0x0500, 0x02af, 0x0000 },
+ { 0x8600, 0x02b4, 0x3000 },
+ { 0x8600, 0x02b2, 0x2000 },
+ { 0x0600, 0x02b1, 0x0000 },
+ { 0x0600, 0x02b3, 0x0000 },
+ { 0x8600, 0x02b6, 0x2000 },
+ { 0x0600, 0x02b5, 0x0000 },
+ { 0x0600, 0x02b7, 0x0000 },
+ { 0x8600, 0x02c8, 0x5000 },
+ { 0x8600, 0x02c0, 0x4000 },
+ { 0x8600, 0x02bc, 0x3000 },
+ { 0x8600, 0x02ba, 0x2000 },
+ { 0x0600, 0x02b9, 0x0000 },
+ { 0x0600, 0x02bb, 0x0000 },
+ { 0x8600, 0x02be, 0x2000 },
+ { 0x0600, 0x02bd, 0x0000 },
+ { 0x0600, 0x02bf, 0x0000 },
+ { 0x9800, 0x02c4, 0x3000 },
+ { 0x9800, 0x02c2, 0x2000 },
+ { 0x0600, 0x02c1, 0x0000 },
+ { 0x1800, 0x02c3, 0x0000 },
+ { 0x8600, 0x02c6, 0x2000 },
+ { 0x1800, 0x02c5, 0x0000 },
+ { 0x0600, 0x02c7, 0x0000 },
+ { 0x8600, 0x02d0, 0x4000 },
+ { 0x8600, 0x02cc, 0x3000 },
+ { 0x8600, 0x02ca, 0x2000 },
+ { 0x0600, 0x02c9, 0x0000 },
+ { 0x0600, 0x02cb, 0x0000 },
+ { 0x8600, 0x02ce, 0x2000 },
+ { 0x0600, 0x02cd, 0x0000 },
+ { 0x0600, 0x02cf, 0x0000 },
+ { 0x9800, 0x02d4, 0x3000 },
+ { 0x9800, 0x02d2, 0x2000 },
+ { 0x0600, 0x02d1, 0x0000 },
+ { 0x1800, 0x02d3, 0x0000 },
+ { 0x9800, 0x02d6, 0x2000 },
+ { 0x1800, 0x02d5, 0x0000 },
+ { 0x1800, 0x02d7, 0x0000 },
+ { 0x9800, 0x02f8, 0x6000 },
+ { 0x9800, 0x02e8, 0x5000 },
+ { 0x8600, 0x02e0, 0x4000 },
+ { 0x9800, 0x02dc, 0x3000 },
+ { 0x9800, 0x02da, 0x2000 },
+ { 0x1800, 0x02d9, 0x0000 },
+ { 0x1800, 0x02db, 0x0000 },
+ { 0x9800, 0x02de, 0x2000 },
+ { 0x1800, 0x02dd, 0x0000 },
+ { 0x1800, 0x02df, 0x0000 },
+ { 0x8600, 0x02e4, 0x3000 },
+ { 0x8600, 0x02e2, 0x2000 },
+ { 0x0600, 0x02e1, 0x0000 },
+ { 0x0600, 0x02e3, 0x0000 },
+ { 0x9800, 0x02e6, 0x2000 },
+ { 0x1800, 0x02e5, 0x0000 },
+ { 0x1800, 0x02e7, 0x0000 },
+ { 0x9800, 0x02f0, 0x4000 },
+ { 0x9800, 0x02ec, 0x3000 },
+ { 0x9800, 0x02ea, 0x2000 },
+ { 0x1800, 0x02e9, 0x0000 },
+ { 0x1800, 0x02eb, 0x0000 },
+ { 0x8600, 0x02ee, 0x2000 },
+ { 0x1800, 0x02ed, 0x0000 },
+ { 0x1800, 0x02ef, 0x0000 },
+ { 0x9800, 0x02f4, 0x3000 },
+ { 0x9800, 0x02f2, 0x2000 },
+ { 0x1800, 0x02f1, 0x0000 },
+ { 0x1800, 0x02f3, 0x0000 },
+ { 0x9800, 0x02f6, 0x2000 },
+ { 0x1800, 0x02f5, 0x0000 },
+ { 0x1800, 0x02f7, 0x0000 },
+ { 0x8c00, 0x0308, 0x5000 },
+ { 0x8c00, 0x0300, 0x4000 },
+ { 0x9800, 0x02fc, 0x3000 },
+ { 0x9800, 0x02fa, 0x2000 },
+ { 0x1800, 0x02f9, 0x0000 },
+ { 0x1800, 0x02fb, 0x0000 },
+ { 0x9800, 0x02fe, 0x2000 },
+ { 0x1800, 0x02fd, 0x0000 },
+ { 0x1800, 0x02ff, 0x0000 },
+ { 0x8c00, 0x0304, 0x3000 },
+ { 0x8c00, 0x0302, 0x2000 },
+ { 0x0c00, 0x0301, 0x0000 },
+ { 0x0c00, 0x0303, 0x0000 },
+ { 0x8c00, 0x0306, 0x2000 },
+ { 0x0c00, 0x0305, 0x0000 },
+ { 0x0c00, 0x0307, 0x0000 },
+ { 0x8c00, 0x0310, 0x4000 },
+ { 0x8c00, 0x030c, 0x3000 },
+ { 0x8c00, 0x030a, 0x2000 },
+ { 0x0c00, 0x0309, 0x0000 },
+ { 0x0c00, 0x030b, 0x0000 },
+ { 0x8c00, 0x030e, 0x2000 },
+ { 0x0c00, 0x030d, 0x0000 },
+ { 0x0c00, 0x030f, 0x0000 },
+ { 0x8c00, 0x0314, 0x3000 },
+ { 0x8c00, 0x0312, 0x2000 },
+ { 0x0c00, 0x0311, 0x0000 },
+ { 0x0c00, 0x0313, 0x0000 },
+ { 0x8c00, 0x0316, 0x2000 },
+ { 0x0c00, 0x0315, 0x0000 },
+ { 0x0c00, 0x0317, 0x0000 },
+ { 0x8500, 0x03b0, 0x8000 },
+ { 0x8c00, 0x035d, 0x7000 },
+ { 0x8c00, 0x0338, 0x6000 },
+ { 0x8c00, 0x0328, 0x5000 },
+ { 0x8c00, 0x0320, 0x4000 },
+ { 0x8c00, 0x031c, 0x3000 },
+ { 0x8c00, 0x031a, 0x2000 },
+ { 0x0c00, 0x0319, 0x0000 },
+ { 0x0c00, 0x031b, 0x0000 },
+ { 0x8c00, 0x031e, 0x2000 },
+ { 0x0c00, 0x031d, 0x0000 },
+ { 0x0c00, 0x031f, 0x0000 },
+ { 0x8c00, 0x0324, 0x3000 },
+ { 0x8c00, 0x0322, 0x2000 },
+ { 0x0c00, 0x0321, 0x0000 },
+ { 0x0c00, 0x0323, 0x0000 },
+ { 0x8c00, 0x0326, 0x2000 },
+ { 0x0c00, 0x0325, 0x0000 },
+ { 0x0c00, 0x0327, 0x0000 },
+ { 0x8c00, 0x0330, 0x4000 },
+ { 0x8c00, 0x032c, 0x3000 },
+ { 0x8c00, 0x032a, 0x2000 },
+ { 0x0c00, 0x0329, 0x0000 },
+ { 0x0c00, 0x032b, 0x0000 },
+ { 0x8c00, 0x032e, 0x2000 },
+ { 0x0c00, 0x032d, 0x0000 },
+ { 0x0c00, 0x032f, 0x0000 },
+ { 0x8c00, 0x0334, 0x3000 },
+ { 0x8c00, 0x0332, 0x2000 },
+ { 0x0c00, 0x0331, 0x0000 },
+ { 0x0c00, 0x0333, 0x0000 },
+ { 0x8c00, 0x0336, 0x2000 },
+ { 0x0c00, 0x0335, 0x0000 },
+ { 0x0c00, 0x0337, 0x0000 },
+ { 0x8c00, 0x0348, 0x5000 },
+ { 0x8c00, 0x0340, 0x4000 },
+ { 0x8c00, 0x033c, 0x3000 },
+ { 0x8c00, 0x033a, 0x2000 },
+ { 0x0c00, 0x0339, 0x0000 },
+ { 0x0c00, 0x033b, 0x0000 },
+ { 0x8c00, 0x033e, 0x2000 },
+ { 0x0c00, 0x033d, 0x0000 },
+ { 0x0c00, 0x033f, 0x0000 },
+ { 0x8c00, 0x0344, 0x3000 },
+ { 0x8c00, 0x0342, 0x2000 },
+ { 0x0c00, 0x0341, 0x0000 },
+ { 0x0c00, 0x0343, 0x0000 },
+ { 0x8c00, 0x0346, 0x2000 },
+ { 0x0c00, 0x0345, 0x0000 },
+ { 0x0c00, 0x0347, 0x0000 },
+ { 0x8c00, 0x0350, 0x4000 },
+ { 0x8c00, 0x034c, 0x3000 },
+ { 0x8c00, 0x034a, 0x2000 },
+ { 0x0c00, 0x0349, 0x0000 },
+ { 0x0c00, 0x034b, 0x0000 },
+ { 0x8c00, 0x034e, 0x2000 },
+ { 0x0c00, 0x034d, 0x0000 },
+ { 0x0c00, 0x034f, 0x0000 },
+ { 0x8c00, 0x0354, 0x3000 },
+ { 0x8c00, 0x0352, 0x2000 },
+ { 0x0c00, 0x0351, 0x0000 },
+ { 0x0c00, 0x0353, 0x0000 },
+ { 0x8c00, 0x0356, 0x2000 },
+ { 0x0c00, 0x0355, 0x0000 },
+ { 0x0c00, 0x0357, 0x0000 },
+ { 0x8900, 0x038f, 0x603f },
+ { 0x8c00, 0x036d, 0x5000 },
+ { 0x8c00, 0x0365, 0x4000 },
+ { 0x8c00, 0x0361, 0x3000 },
+ { 0x8c00, 0x035f, 0x2000 },
+ { 0x0c00, 0x035e, 0x0000 },
+ { 0x0c00, 0x0360, 0x0000 },
+ { 0x8c00, 0x0363, 0x2000 },
+ { 0x0c00, 0x0362, 0x0000 },
+ { 0x0c00, 0x0364, 0x0000 },
+ { 0x8c00, 0x0369, 0x3000 },
+ { 0x8c00, 0x0367, 0x2000 },
+ { 0x0c00, 0x0366, 0x0000 },
+ { 0x0c00, 0x0368, 0x0000 },
+ { 0x8c00, 0x036b, 0x2000 },
+ { 0x0c00, 0x036a, 0x0000 },
+ { 0x0c00, 0x036c, 0x0000 },
+ { 0x9800, 0x0385, 0x4000 },
+ { 0x9800, 0x0375, 0x3000 },
+ { 0x8c00, 0x036f, 0x2000 },
+ { 0x0c00, 0x036e, 0x0000 },
+ { 0x1800, 0x0374, 0x0000 },
+ { 0x9500, 0x037e, 0x2000 },
+ { 0x0600, 0x037a, 0x0000 },
+ { 0x1800, 0x0384, 0x0000 },
+ { 0x8900, 0x0389, 0x3025 },
+ { 0x9500, 0x0387, 0x2000 },
+ { 0x0900, 0x0386, 0x0026 },
+ { 0x0900, 0x0388, 0x0025 },
+ { 0x8900, 0x038c, 0x2040 },
+ { 0x0900, 0x038a, 0x0025 },
+ { 0x0900, 0x038e, 0x003f },
+ { 0x8900, 0x039f, 0x5020 },
+ { 0x8900, 0x0397, 0x4020 },
+ { 0x8900, 0x0393, 0x3020 },
+ { 0x8900, 0x0391, 0x2020 },
+ { 0x0500, 0x0390, 0x0000 },
+ { 0x0900, 0x0392, 0x0020 },
+ { 0x8900, 0x0395, 0x2020 },
+ { 0x0900, 0x0394, 0x0020 },
+ { 0x0900, 0x0396, 0x0020 },
+ { 0x8900, 0x039b, 0x3020 },
+ { 0x8900, 0x0399, 0x2020 },
+ { 0x0900, 0x0398, 0x0020 },
+ { 0x0900, 0x039a, 0x0020 },
+ { 0x8900, 0x039d, 0x2020 },
+ { 0x0900, 0x039c, 0x0020 },
+ { 0x0900, 0x039e, 0x0020 },
+ { 0x8900, 0x03a8, 0x4020 },
+ { 0x8900, 0x03a4, 0x3020 },
+ { 0x8900, 0x03a1, 0x2020 },
+ { 0x0900, 0x03a0, 0x0020 },
+ { 0x0900, 0x03a3, 0x0020 },
+ { 0x8900, 0x03a6, 0x2020 },
+ { 0x0900, 0x03a5, 0x0020 },
+ { 0x0900, 0x03a7, 0x0020 },
+ { 0x8500, 0x03ac, 0x3fda },
+ { 0x8900, 0x03aa, 0x2020 },
+ { 0x0900, 0x03a9, 0x0020 },
+ { 0x0900, 0x03ab, 0x0020 },
+ { 0x8500, 0x03ae, 0x2fdb },
+ { 0x0500, 0x03ad, 0x0fdb },
+ { 0x0500, 0x03af, 0x0fdb },
+ { 0x8500, 0x03f1, 0x7fb0 },
+ { 0x8500, 0x03d1, 0x6fc7 },
+ { 0x8500, 0x03c0, 0x5fe0 },
+ { 0x8500, 0x03b8, 0x4fe0 },
+ { 0x8500, 0x03b4, 0x3fe0 },
+ { 0x8500, 0x03b2, 0x2fe0 },
+ { 0x0500, 0x03b1, 0x0fe0 },
+ { 0x0500, 0x03b3, 0x0fe0 },
+ { 0x8500, 0x03b6, 0x2fe0 },
+ { 0x0500, 0x03b5, 0x0fe0 },
+ { 0x0500, 0x03b7, 0x0fe0 },
+ { 0x8500, 0x03bc, 0x3fe0 },
+ { 0x8500, 0x03ba, 0x2fe0 },
+ { 0x0500, 0x03b9, 0x0fe0 },
+ { 0x0500, 0x03bb, 0x0fe0 },
+ { 0x8500, 0x03be, 0x2fe0 },
+ { 0x0500, 0x03bd, 0x0fe0 },
+ { 0x0500, 0x03bf, 0x0fe0 },
+ { 0x8500, 0x03c8, 0x4fe0 },
+ { 0x8500, 0x03c4, 0x3fe0 },
+ { 0x8500, 0x03c2, 0x2fe1 },
+ { 0x0500, 0x03c1, 0x0fe0 },
+ { 0x0500, 0x03c3, 0x0fe0 },
+ { 0x8500, 0x03c6, 0x2fe0 },
+ { 0x0500, 0x03c5, 0x0fe0 },
+ { 0x0500, 0x03c7, 0x0fe0 },
+ { 0x8500, 0x03cc, 0x3fc0 },
+ { 0x8500, 0x03ca, 0x2fe0 },
+ { 0x0500, 0x03c9, 0x0fe0 },
+ { 0x0500, 0x03cb, 0x0fe0 },
+ { 0x8500, 0x03ce, 0x2fc1 },
+ { 0x0500, 0x03cd, 0x0fc1 },
+ { 0x0500, 0x03d0, 0x0fc2 },
+ { 0x8500, 0x03e1, 0x5fff },
+ { 0x8500, 0x03d9, 0x4fff },
+ { 0x8500, 0x03d5, 0x3fd1 },
+ { 0x8900, 0x03d3, 0x2000 },
+ { 0x0900, 0x03d2, 0x0000 },
+ { 0x0900, 0x03d4, 0x0000 },
+ { 0x8500, 0x03d7, 0x2000 },
+ { 0x0500, 0x03d6, 0x0fca },
+ { 0x0900, 0x03d8, 0x0001 },
+ { 0x8500, 0x03dd, 0x3fff },
+ { 0x8500, 0x03db, 0x2fff },
+ { 0x0900, 0x03da, 0x0001 },
+ { 0x0900, 0x03dc, 0x0001 },
+ { 0x8500, 0x03df, 0x2fff },
+ { 0x0900, 0x03de, 0x0001 },
+ { 0x0900, 0x03e0, 0x0001 },
+ { 0x8500, 0x03e9, 0x4fff },
+ { 0x8500, 0x03e5, 0x3fff },
+ { 0x8500, 0x03e3, 0x2fff },
+ { 0x0900, 0x03e2, 0x0001 },
+ { 0x0900, 0x03e4, 0x0001 },
+ { 0x8500, 0x03e7, 0x2fff },
+ { 0x0900, 0x03e6, 0x0001 },
+ { 0x0900, 0x03e8, 0x0001 },
+ { 0x8500, 0x03ed, 0x3fff },
+ { 0x8500, 0x03eb, 0x2fff },
+ { 0x0900, 0x03ea, 0x0001 },
+ { 0x0900, 0x03ec, 0x0001 },
+ { 0x8500, 0x03ef, 0x2fff },
+ { 0x0900, 0x03ee, 0x0001 },
+ { 0x0500, 0x03f0, 0x0faa },
+ { 0x8900, 0x0415, 0x6020 },
+ { 0x8900, 0x0405, 0x5050 },
+ { 0x8900, 0x03f9, 0x4ff9 },
+ { 0x8500, 0x03f5, 0x3fa0 },
+ { 0x8500, 0x03f3, 0x2000 },
+ { 0x0500, 0x03f2, 0x0007 },
+ { 0x0900, 0x03f4, 0x0fc4 },
+ { 0x8900, 0x03f7, 0x2001 },
+ { 0x1900, 0x03f6, 0x0000 },
+ { 0x0500, 0x03f8, 0x0fff },
+ { 0x8900, 0x0401, 0x3050 },
+ { 0x8500, 0x03fb, 0x2fff },
+ { 0x0900, 0x03fa, 0x0001 },
+ { 0x0900, 0x0400, 0x0050 },
+ { 0x8900, 0x0403, 0x2050 },
+ { 0x0900, 0x0402, 0x0050 },
+ { 0x0900, 0x0404, 0x0050 },
+ { 0x8900, 0x040d, 0x4050 },
+ { 0x8900, 0x0409, 0x3050 },
+ { 0x8900, 0x0407, 0x2050 },
+ { 0x0900, 0x0406, 0x0050 },
+ { 0x0900, 0x0408, 0x0050 },
+ { 0x8900, 0x040b, 0x2050 },
+ { 0x0900, 0x040a, 0x0050 },
+ { 0x0900, 0x040c, 0x0050 },
+ { 0x8900, 0x0411, 0x3020 },
+ { 0x8900, 0x040f, 0x2050 },
+ { 0x0900, 0x040e, 0x0050 },
+ { 0x0900, 0x0410, 0x0020 },
+ { 0x8900, 0x0413, 0x2020 },
+ { 0x0900, 0x0412, 0x0020 },
+ { 0x0900, 0x0414, 0x0020 },
+ { 0x8900, 0x0425, 0x5020 },
+ { 0x8900, 0x041d, 0x4020 },
+ { 0x8900, 0x0419, 0x3020 },
+ { 0x8900, 0x0417, 0x2020 },
+ { 0x0900, 0x0416, 0x0020 },
+ { 0x0900, 0x0418, 0x0020 },
+ { 0x8900, 0x041b, 0x2020 },
+ { 0x0900, 0x041a, 0x0020 },
+ { 0x0900, 0x041c, 0x0020 },
+ { 0x8900, 0x0421, 0x3020 },
+ { 0x8900, 0x041f, 0x2020 },
+ { 0x0900, 0x041e, 0x0020 },
+ { 0x0900, 0x0420, 0x0020 },
+ { 0x8900, 0x0423, 0x2020 },
+ { 0x0900, 0x0422, 0x0020 },
+ { 0x0900, 0x0424, 0x0020 },
+ { 0x8900, 0x042d, 0x4020 },
+ { 0x8900, 0x0429, 0x3020 },
+ { 0x8900, 0x0427, 0x2020 },
+ { 0x0900, 0x0426, 0x0020 },
+ { 0x0900, 0x0428, 0x0020 },
+ { 0x8900, 0x042b, 0x2020 },
+ { 0x0900, 0x042a, 0x0020 },
+ { 0x0900, 0x042c, 0x0020 },
+ { 0x8500, 0x0431, 0x3fe0 },
+ { 0x8900, 0x042f, 0x2020 },
+ { 0x0900, 0x042e, 0x0020 },
+ { 0x0500, 0x0430, 0x0fe0 },
+ { 0x8500, 0x0433, 0x2fe0 },
+ { 0x0500, 0x0432, 0x0fe0 },
+ { 0x0500, 0x0434, 0x0fe0 },
+ { 0x8700, 0x06a4, 0xa000 },
+ { 0x8500, 0x0563, 0x9fd0 },
+ { 0x8900, 0x04b6, 0x8001 },
+ { 0x8500, 0x0475, 0x7fff },
+ { 0x8500, 0x0455, 0x6fb0 },
+ { 0x8500, 0x0445, 0x5fe0 },
+ { 0x8500, 0x043d, 0x4fe0 },
+ { 0x8500, 0x0439, 0x3fe0 },
+ { 0x8500, 0x0437, 0x2fe0 },
+ { 0x0500, 0x0436, 0x0fe0 },
+ { 0x0500, 0x0438, 0x0fe0 },
+ { 0x8500, 0x043b, 0x2fe0 },
+ { 0x0500, 0x043a, 0x0fe0 },
+ { 0x0500, 0x043c, 0x0fe0 },
+ { 0x8500, 0x0441, 0x3fe0 },
+ { 0x8500, 0x043f, 0x2fe0 },
+ { 0x0500, 0x043e, 0x0fe0 },
+ { 0x0500, 0x0440, 0x0fe0 },
+ { 0x8500, 0x0443, 0x2fe0 },
+ { 0x0500, 0x0442, 0x0fe0 },
+ { 0x0500, 0x0444, 0x0fe0 },
+ { 0x8500, 0x044d, 0x4fe0 },
+ { 0x8500, 0x0449, 0x3fe0 },
+ { 0x8500, 0x0447, 0x2fe0 },
+ { 0x0500, 0x0446, 0x0fe0 },
+ { 0x0500, 0x0448, 0x0fe0 },
+ { 0x8500, 0x044b, 0x2fe0 },
+ { 0x0500, 0x044a, 0x0fe0 },
+ { 0x0500, 0x044c, 0x0fe0 },
+ { 0x8500, 0x0451, 0x3fb0 },
+ { 0x8500, 0x044f, 0x2fe0 },
+ { 0x0500, 0x044e, 0x0fe0 },
+ { 0x0500, 0x0450, 0x0fb0 },
+ { 0x8500, 0x0453, 0x2fb0 },
+ { 0x0500, 0x0452, 0x0fb0 },
+ { 0x0500, 0x0454, 0x0fb0 },
+ { 0x8500, 0x0465, 0x5fff },
+ { 0x8500, 0x045d, 0x4fb0 },
+ { 0x8500, 0x0459, 0x3fb0 },
+ { 0x8500, 0x0457, 0x2fb0 },
+ { 0x0500, 0x0456, 0x0fb0 },
+ { 0x0500, 0x0458, 0x0fb0 },
+ { 0x8500, 0x045b, 0x2fb0 },
+ { 0x0500, 0x045a, 0x0fb0 },
+ { 0x0500, 0x045c, 0x0fb0 },
+ { 0x8500, 0x0461, 0x3fff },
+ { 0x8500, 0x045f, 0x2fb0 },
+ { 0x0500, 0x045e, 0x0fb0 },
+ { 0x0900, 0x0460, 0x0001 },
+ { 0x8500, 0x0463, 0x2fff },
+ { 0x0900, 0x0462, 0x0001 },
+ { 0x0900, 0x0464, 0x0001 },
+ { 0x8500, 0x046d, 0x4fff },
+ { 0x8500, 0x0469, 0x3fff },
+ { 0x8500, 0x0467, 0x2fff },
+ { 0x0900, 0x0466, 0x0001 },
+ { 0x0900, 0x0468, 0x0001 },
+ { 0x8500, 0x046b, 0x2fff },
+ { 0x0900, 0x046a, 0x0001 },
+ { 0x0900, 0x046c, 0x0001 },
+ { 0x8500, 0x0471, 0x3fff },
+ { 0x8500, 0x046f, 0x2fff },
+ { 0x0900, 0x046e, 0x0001 },
+ { 0x0900, 0x0470, 0x0001 },
+ { 0x8500, 0x0473, 0x2fff },
+ { 0x0900, 0x0472, 0x0001 },
+ { 0x0900, 0x0474, 0x0001 },
+ { 0x8900, 0x0496, 0x6001 },
+ { 0x8c00, 0x0485, 0x5000 },
+ { 0x8500, 0x047d, 0x4fff },
+ { 0x8500, 0x0479, 0x3fff },
+ { 0x8500, 0x0477, 0x2fff },
+ { 0x0900, 0x0476, 0x0001 },
+ { 0x0900, 0x0478, 0x0001 },
+ { 0x8500, 0x047b, 0x2fff },
+ { 0x0900, 0x047a, 0x0001 },
+ { 0x0900, 0x047c, 0x0001 },
+ { 0x8500, 0x0481, 0x3fff },
+ { 0x8500, 0x047f, 0x2fff },
+ { 0x0900, 0x047e, 0x0001 },
+ { 0x0900, 0x0480, 0x0001 },
+ { 0x8c00, 0x0483, 0x2000 },
+ { 0x1a00, 0x0482, 0x0000 },
+ { 0x0c00, 0x0484, 0x0000 },
+ { 0x8900, 0x048e, 0x4001 },
+ { 0x8900, 0x048a, 0x3001 },
+ { 0x8b00, 0x0488, 0x2000 },
+ { 0x0c00, 0x0486, 0x0000 },
+ { 0x0b00, 0x0489, 0x0000 },
+ { 0x8900, 0x048c, 0x2001 },
+ { 0x0500, 0x048b, 0x0fff },
+ { 0x0500, 0x048d, 0x0fff },
+ { 0x8900, 0x0492, 0x3001 },
+ { 0x8900, 0x0490, 0x2001 },
+ { 0x0500, 0x048f, 0x0fff },
+ { 0x0500, 0x0491, 0x0fff },
+ { 0x8900, 0x0494, 0x2001 },
+ { 0x0500, 0x0493, 0x0fff },
+ { 0x0500, 0x0495, 0x0fff },
+ { 0x8900, 0x04a6, 0x5001 },
+ { 0x8900, 0x049e, 0x4001 },
+ { 0x8900, 0x049a, 0x3001 },
+ { 0x8900, 0x0498, 0x2001 },
+ { 0x0500, 0x0497, 0x0fff },
+ { 0x0500, 0x0499, 0x0fff },
+ { 0x8900, 0x049c, 0x2001 },
+ { 0x0500, 0x049b, 0x0fff },
+ { 0x0500, 0x049d, 0x0fff },
+ { 0x8900, 0x04a2, 0x3001 },
+ { 0x8900, 0x04a0, 0x2001 },
+ { 0x0500, 0x049f, 0x0fff },
+ { 0x0500, 0x04a1, 0x0fff },
+ { 0x8900, 0x04a4, 0x2001 },
+ { 0x0500, 0x04a3, 0x0fff },
+ { 0x0500, 0x04a5, 0x0fff },
+ { 0x8900, 0x04ae, 0x4001 },
+ { 0x8900, 0x04aa, 0x3001 },
+ { 0x8900, 0x04a8, 0x2001 },
+ { 0x0500, 0x04a7, 0x0fff },
+ { 0x0500, 0x04a9, 0x0fff },
+ { 0x8900, 0x04ac, 0x2001 },
+ { 0x0500, 0x04ab, 0x0fff },
+ { 0x0500, 0x04ad, 0x0fff },
+ { 0x8900, 0x04b2, 0x3001 },
+ { 0x8900, 0x04b0, 0x2001 },
+ { 0x0500, 0x04af, 0x0fff },
+ { 0x0500, 0x04b1, 0x0fff },
+ { 0x8900, 0x04b4, 0x2001 },
+ { 0x0500, 0x04b3, 0x0fff },
+ { 0x0500, 0x04b5, 0x0fff },
+ { 0x8500, 0x04f9, 0x7fff },
+ { 0x8500, 0x04d7, 0x6fff },
+ { 0x8500, 0x04c6, 0x5fff },
+ { 0x8900, 0x04be, 0x4001 },
+ { 0x8900, 0x04ba, 0x3001 },
+ { 0x8900, 0x04b8, 0x2001 },
+ { 0x0500, 0x04b7, 0x0fff },
+ { 0x0500, 0x04b9, 0x0fff },
+ { 0x8900, 0x04bc, 0x2001 },
+ { 0x0500, 0x04bb, 0x0fff },
+ { 0x0500, 0x04bd, 0x0fff },
+ { 0x8500, 0x04c2, 0x3fff },
+ { 0x8900, 0x04c0, 0x2000 },
+ { 0x0500, 0x04bf, 0x0fff },
+ { 0x0900, 0x04c1, 0x0001 },
+ { 0x8500, 0x04c4, 0x2fff },
+ { 0x0900, 0x04c3, 0x0001 },
+ { 0x0900, 0x04c5, 0x0001 },
+ { 0x8500, 0x04ce, 0x4fff },
+ { 0x8500, 0x04ca, 0x3fff },
+ { 0x8500, 0x04c8, 0x2fff },
+ { 0x0900, 0x04c7, 0x0001 },
+ { 0x0900, 0x04c9, 0x0001 },
+ { 0x8500, 0x04cc, 0x2fff },
+ { 0x0900, 0x04cb, 0x0001 },
+ { 0x0900, 0x04cd, 0x0001 },
+ { 0x8500, 0x04d3, 0x3fff },
+ { 0x8500, 0x04d1, 0x2fff },
+ { 0x0900, 0x04d0, 0x0001 },
+ { 0x0900, 0x04d2, 0x0001 },
+ { 0x8500, 0x04d5, 0x2fff },
+ { 0x0900, 0x04d4, 0x0001 },
+ { 0x0900, 0x04d6, 0x0001 },
+ { 0x8500, 0x04e7, 0x5fff },
+ { 0x8500, 0x04df, 0x4fff },
+ { 0x8500, 0x04db, 0x3fff },
+ { 0x8500, 0x04d9, 0x2fff },
+ { 0x0900, 0x04d8, 0x0001 },
+ { 0x0900, 0x04da, 0x0001 },
+ { 0x8500, 0x04dd, 0x2fff },
+ { 0x0900, 0x04dc, 0x0001 },
+ { 0x0900, 0x04de, 0x0001 },
+ { 0x8500, 0x04e3, 0x3fff },
+ { 0x8500, 0x04e1, 0x2fff },
+ { 0x0900, 0x04e0, 0x0001 },
+ { 0x0900, 0x04e2, 0x0001 },
+ { 0x8500, 0x04e5, 0x2fff },
+ { 0x0900, 0x04e4, 0x0001 },
+ { 0x0900, 0x04e6, 0x0001 },
+ { 0x8500, 0x04ef, 0x4fff },
+ { 0x8500, 0x04eb, 0x3fff },
+ { 0x8500, 0x04e9, 0x2fff },
+ { 0x0900, 0x04e8, 0x0001 },
+ { 0x0900, 0x04ea, 0x0001 },
+ { 0x8500, 0x04ed, 0x2fff },
+ { 0x0900, 0x04ec, 0x0001 },
+ { 0x0900, 0x04ee, 0x0001 },
+ { 0x8500, 0x04f3, 0x3fff },
+ { 0x8500, 0x04f1, 0x2fff },
+ { 0x0900, 0x04f0, 0x0001 },
+ { 0x0900, 0x04f2, 0x0001 },
+ { 0x8500, 0x04f5, 0x2fff },
+ { 0x0900, 0x04f4, 0x0001 },
+ { 0x0900, 0x04f8, 0x0001 },
+ { 0x8900, 0x0540, 0x6030 },
+ { 0x8500, 0x050f, 0x5fff },
+ { 0x8500, 0x0507, 0x4fff },
+ { 0x8500, 0x0503, 0x3fff },
+ { 0x8500, 0x0501, 0x2fff },
+ { 0x0900, 0x0500, 0x0001 },
+ { 0x0900, 0x0502, 0x0001 },
+ { 0x8500, 0x0505, 0x2fff },
+ { 0x0900, 0x0504, 0x0001 },
+ { 0x0900, 0x0506, 0x0001 },
+ { 0x8500, 0x050b, 0x3fff },
+ { 0x8500, 0x0509, 0x2fff },
+ { 0x0900, 0x0508, 0x0001 },
+ { 0x0900, 0x050a, 0x0001 },
+ { 0x8500, 0x050d, 0x2fff },
+ { 0x0900, 0x050c, 0x0001 },
+ { 0x0900, 0x050e, 0x0001 },
+ { 0x8900, 0x0538, 0x4030 },
+ { 0x8900, 0x0534, 0x3030 },
+ { 0x8900, 0x0532, 0x2030 },
+ { 0x0900, 0x0531, 0x0030 },
+ { 0x0900, 0x0533, 0x0030 },
+ { 0x8900, 0x0536, 0x2030 },
+ { 0x0900, 0x0535, 0x0030 },
+ { 0x0900, 0x0537, 0x0030 },
+ { 0x8900, 0x053c, 0x3030 },
+ { 0x8900, 0x053a, 0x2030 },
+ { 0x0900, 0x0539, 0x0030 },
+ { 0x0900, 0x053b, 0x0030 },
+ { 0x8900, 0x053e, 0x2030 },
+ { 0x0900, 0x053d, 0x0030 },
+ { 0x0900, 0x053f, 0x0030 },
+ { 0x8900, 0x0550, 0x5030 },
+ { 0x8900, 0x0548, 0x4030 },
+ { 0x8900, 0x0544, 0x3030 },
+ { 0x8900, 0x0542, 0x2030 },
+ { 0x0900, 0x0541, 0x0030 },
+ { 0x0900, 0x0543, 0x0030 },
+ { 0x8900, 0x0546, 0x2030 },
+ { 0x0900, 0x0545, 0x0030 },
+ { 0x0900, 0x0547, 0x0030 },
+ { 0x8900, 0x054c, 0x3030 },
+ { 0x8900, 0x054a, 0x2030 },
+ { 0x0900, 0x0549, 0x0030 },
+ { 0x0900, 0x054b, 0x0030 },
+ { 0x8900, 0x054e, 0x2030 },
+ { 0x0900, 0x054d, 0x0030 },
+ { 0x0900, 0x054f, 0x0030 },
+ { 0x9500, 0x055a, 0x4000 },
+ { 0x8900, 0x0554, 0x3030 },
+ { 0x8900, 0x0552, 0x2030 },
+ { 0x0900, 0x0551, 0x0030 },
+ { 0x0900, 0x0553, 0x0030 },
+ { 0x8900, 0x0556, 0x2030 },
+ { 0x0900, 0x0555, 0x0030 },
+ { 0x0600, 0x0559, 0x0000 },
+ { 0x9500, 0x055e, 0x3000 },
+ { 0x9500, 0x055c, 0x2000 },
+ { 0x1500, 0x055b, 0x0000 },
+ { 0x1500, 0x055d, 0x0000 },
+ { 0x8500, 0x0561, 0x2fd0 },
+ { 0x1500, 0x055f, 0x0000 },
+ { 0x0500, 0x0562, 0x0fd0 },
+ { 0x9a00, 0x060f, 0x8000 },
+ { 0x8c00, 0x05ab, 0x7000 },
+ { 0x8500, 0x0583, 0x6fd0 },
+ { 0x8500, 0x0573, 0x5fd0 },
+ { 0x8500, 0x056b, 0x4fd0 },
+ { 0x8500, 0x0567, 0x3fd0 },
+ { 0x8500, 0x0565, 0x2fd0 },
+ { 0x0500, 0x0564, 0x0fd0 },
+ { 0x0500, 0x0566, 0x0fd0 },
+ { 0x8500, 0x0569, 0x2fd0 },
+ { 0x0500, 0x0568, 0x0fd0 },
+ { 0x0500, 0x056a, 0x0fd0 },
+ { 0x8500, 0x056f, 0x3fd0 },
+ { 0x8500, 0x056d, 0x2fd0 },
+ { 0x0500, 0x056c, 0x0fd0 },
+ { 0x0500, 0x056e, 0x0fd0 },
+ { 0x8500, 0x0571, 0x2fd0 },
+ { 0x0500, 0x0570, 0x0fd0 },
+ { 0x0500, 0x0572, 0x0fd0 },
+ { 0x8500, 0x057b, 0x4fd0 },
+ { 0x8500, 0x0577, 0x3fd0 },
+ { 0x8500, 0x0575, 0x2fd0 },
+ { 0x0500, 0x0574, 0x0fd0 },
+ { 0x0500, 0x0576, 0x0fd0 },
+ { 0x8500, 0x0579, 0x2fd0 },
+ { 0x0500, 0x0578, 0x0fd0 },
+ { 0x0500, 0x057a, 0x0fd0 },
+ { 0x8500, 0x057f, 0x3fd0 },
+ { 0x8500, 0x057d, 0x2fd0 },
+ { 0x0500, 0x057c, 0x0fd0 },
+ { 0x0500, 0x057e, 0x0fd0 },
+ { 0x8500, 0x0581, 0x2fd0 },
+ { 0x0500, 0x0580, 0x0fd0 },
+ { 0x0500, 0x0582, 0x0fd0 },
+ { 0x8c00, 0x059a, 0x5000 },
+ { 0x8c00, 0x0592, 0x4000 },
+ { 0x8500, 0x0587, 0x3000 },
+ { 0x8500, 0x0585, 0x2fd0 },
+ { 0x0500, 0x0584, 0x0fd0 },
+ { 0x0500, 0x0586, 0x0fd0 },
+ { 0x9100, 0x058a, 0x2000 },
+ { 0x1500, 0x0589, 0x0000 },
+ { 0x0c00, 0x0591, 0x0000 },
+ { 0x8c00, 0x0596, 0x3000 },
+ { 0x8c00, 0x0594, 0x2000 },
+ { 0x0c00, 0x0593, 0x0000 },
+ { 0x0c00, 0x0595, 0x0000 },
+ { 0x8c00, 0x0598, 0x2000 },
+ { 0x0c00, 0x0597, 0x0000 },
+ { 0x0c00, 0x0599, 0x0000 },
+ { 0x8c00, 0x05a3, 0x4000 },
+ { 0x8c00, 0x059e, 0x3000 },
+ { 0x8c00, 0x059c, 0x2000 },
+ { 0x0c00, 0x059b, 0x0000 },
+ { 0x0c00, 0x059d, 0x0000 },
+ { 0x8c00, 0x05a0, 0x2000 },
+ { 0x0c00, 0x059f, 0x0000 },
+ { 0x0c00, 0x05a1, 0x0000 },
+ { 0x8c00, 0x05a7, 0x3000 },
+ { 0x8c00, 0x05a5, 0x2000 },
+ { 0x0c00, 0x05a4, 0x0000 },
+ { 0x0c00, 0x05a6, 0x0000 },
+ { 0x8c00, 0x05a9, 0x2000 },
+ { 0x0c00, 0x05a8, 0x0000 },
+ { 0x0c00, 0x05aa, 0x0000 },
+ { 0x8700, 0x05d7, 0x6000 },
+ { 0x8c00, 0x05bc, 0x5000 },
+ { 0x8c00, 0x05b3, 0x4000 },
+ { 0x8c00, 0x05af, 0x3000 },
+ { 0x8c00, 0x05ad, 0x2000 },
+ { 0x0c00, 0x05ac, 0x0000 },
+ { 0x0c00, 0x05ae, 0x0000 },
+ { 0x8c00, 0x05b1, 0x2000 },
+ { 0x0c00, 0x05b0, 0x0000 },
+ { 0x0c00, 0x05b2, 0x0000 },
+ { 0x8c00, 0x05b7, 0x3000 },
+ { 0x8c00, 0x05b5, 0x2000 },
+ { 0x0c00, 0x05b4, 0x0000 },
+ { 0x0c00, 0x05b6, 0x0000 },
+ { 0x8c00, 0x05b9, 0x2000 },
+ { 0x0c00, 0x05b8, 0x0000 },
+ { 0x0c00, 0x05bb, 0x0000 },
+ { 0x8c00, 0x05c4, 0x4000 },
+ { 0x9500, 0x05c0, 0x3000 },
+ { 0x9500, 0x05be, 0x2000 },
+ { 0x0c00, 0x05bd, 0x0000 },
+ { 0x0c00, 0x05bf, 0x0000 },
+ { 0x8c00, 0x05c2, 0x2000 },
+ { 0x0c00, 0x05c1, 0x0000 },
+ { 0x1500, 0x05c3, 0x0000 },
+ { 0x8700, 0x05d3, 0x3000 },
+ { 0x8700, 0x05d1, 0x2000 },
+ { 0x0700, 0x05d0, 0x0000 },
+ { 0x0700, 0x05d2, 0x0000 },
+ { 0x8700, 0x05d5, 0x2000 },
+ { 0x0700, 0x05d4, 0x0000 },
+ { 0x0700, 0x05d6, 0x0000 },
+ { 0x8700, 0x05e7, 0x5000 },
+ { 0x8700, 0x05df, 0x4000 },
+ { 0x8700, 0x05db, 0x3000 },
+ { 0x8700, 0x05d9, 0x2000 },
+ { 0x0700, 0x05d8, 0x0000 },
+ { 0x0700, 0x05da, 0x0000 },
+ { 0x8700, 0x05dd, 0x2000 },
+ { 0x0700, 0x05dc, 0x0000 },
+ { 0x0700, 0x05de, 0x0000 },
+ { 0x8700, 0x05e3, 0x3000 },
+ { 0x8700, 0x05e1, 0x2000 },
+ { 0x0700, 0x05e0, 0x0000 },
+ { 0x0700, 0x05e2, 0x0000 },
+ { 0x8700, 0x05e5, 0x2000 },
+ { 0x0700, 0x05e4, 0x0000 },
+ { 0x0700, 0x05e6, 0x0000 },
+ { 0x9500, 0x05f4, 0x4000 },
+ { 0x8700, 0x05f0, 0x3000 },
+ { 0x8700, 0x05e9, 0x2000 },
+ { 0x0700, 0x05e8, 0x0000 },
+ { 0x0700, 0x05ea, 0x0000 },
+ { 0x8700, 0x05f2, 0x2000 },
+ { 0x0700, 0x05f1, 0x0000 },
+ { 0x1500, 0x05f3, 0x0000 },
+ { 0x8100, 0x0603, 0x3000 },
+ { 0x8100, 0x0601, 0x2000 },
+ { 0x0100, 0x0600, 0x0000 },
+ { 0x0100, 0x0602, 0x0000 },
+ { 0x9500, 0x060d, 0x2000 },
+ { 0x1500, 0x060c, 0x0000 },
+ { 0x1a00, 0x060e, 0x0000 },
+ { 0x8d00, 0x0664, 0x7000 },
+ { 0x8700, 0x0638, 0x6000 },
+ { 0x8700, 0x0628, 0x5000 },
+ { 0x9500, 0x061f, 0x4000 },
+ { 0x8c00, 0x0613, 0x3000 },
+ { 0x8c00, 0x0611, 0x2000 },
+ { 0x0c00, 0x0610, 0x0000 },
+ { 0x0c00, 0x0612, 0x0000 },
+ { 0x8c00, 0x0615, 0x2000 },
+ { 0x0c00, 0x0614, 0x0000 },
+ { 0x1500, 0x061b, 0x0000 },
+ { 0x8700, 0x0624, 0x3000 },
+ { 0x8700, 0x0622, 0x2000 },
+ { 0x0700, 0x0621, 0x0000 },
+ { 0x0700, 0x0623, 0x0000 },
+ { 0x8700, 0x0626, 0x2000 },
+ { 0x0700, 0x0625, 0x0000 },
+ { 0x0700, 0x0627, 0x0000 },
+ { 0x8700, 0x0630, 0x4000 },
+ { 0x8700, 0x062c, 0x3000 },
+ { 0x8700, 0x062a, 0x2000 },
+ { 0x0700, 0x0629, 0x0000 },
+ { 0x0700, 0x062b, 0x0000 },
+ { 0x8700, 0x062e, 0x2000 },
+ { 0x0700, 0x062d, 0x0000 },
+ { 0x0700, 0x062f, 0x0000 },
+ { 0x8700, 0x0634, 0x3000 },
+ { 0x8700, 0x0632, 0x2000 },
+ { 0x0700, 0x0631, 0x0000 },
+ { 0x0700, 0x0633, 0x0000 },
+ { 0x8700, 0x0636, 0x2000 },
+ { 0x0700, 0x0635, 0x0000 },
+ { 0x0700, 0x0637, 0x0000 },
+ { 0x8c00, 0x064d, 0x5000 },
+ { 0x8700, 0x0645, 0x4000 },
+ { 0x8700, 0x0641, 0x3000 },
+ { 0x8700, 0x063a, 0x2000 },
+ { 0x0700, 0x0639, 0x0000 },
+ { 0x0600, 0x0640, 0x0000 },
+ { 0x8700, 0x0643, 0x2000 },
+ { 0x0700, 0x0642, 0x0000 },
+ { 0x0700, 0x0644, 0x0000 },
+ { 0x8700, 0x0649, 0x3000 },
+ { 0x8700, 0x0647, 0x2000 },
+ { 0x0700, 0x0646, 0x0000 },
+ { 0x0700, 0x0648, 0x0000 },
+ { 0x8c00, 0x064b, 0x2000 },
+ { 0x0700, 0x064a, 0x0000 },
+ { 0x0c00, 0x064c, 0x0000 },
+ { 0x8c00, 0x0655, 0x4000 },
+ { 0x8c00, 0x0651, 0x3000 },
+ { 0x8c00, 0x064f, 0x2000 },
+ { 0x0c00, 0x064e, 0x0000 },
+ { 0x0c00, 0x0650, 0x0000 },
+ { 0x8c00, 0x0653, 0x2000 },
+ { 0x0c00, 0x0652, 0x0000 },
+ { 0x0c00, 0x0654, 0x0000 },
+ { 0x8d00, 0x0660, 0x3000 },
+ { 0x8c00, 0x0657, 0x2000 },
+ { 0x0c00, 0x0656, 0x0000 },
+ { 0x0c00, 0x0658, 0x0000 },
+ { 0x8d00, 0x0662, 0x2000 },
+ { 0x0d00, 0x0661, 0x0000 },
+ { 0x0d00, 0x0663, 0x0000 },
+ { 0x8700, 0x0684, 0x6000 },
+ { 0x8700, 0x0674, 0x5000 },
+ { 0x9500, 0x066c, 0x4000 },
+ { 0x8d00, 0x0668, 0x3000 },
+ { 0x8d00, 0x0666, 0x2000 },
+ { 0x0d00, 0x0665, 0x0000 },
+ { 0x0d00, 0x0667, 0x0000 },
+ { 0x9500, 0x066a, 0x2000 },
+ { 0x0d00, 0x0669, 0x0000 },
+ { 0x1500, 0x066b, 0x0000 },
+ { 0x8c00, 0x0670, 0x3000 },
+ { 0x8700, 0x066e, 0x2000 },
+ { 0x1500, 0x066d, 0x0000 },
+ { 0x0700, 0x066f, 0x0000 },
+ { 0x8700, 0x0672, 0x2000 },
+ { 0x0700, 0x0671, 0x0000 },
+ { 0x0700, 0x0673, 0x0000 },
+ { 0x8700, 0x067c, 0x4000 },
+ { 0x8700, 0x0678, 0x3000 },
+ { 0x8700, 0x0676, 0x2000 },
+ { 0x0700, 0x0675, 0x0000 },
+ { 0x0700, 0x0677, 0x0000 },
+ { 0x8700, 0x067a, 0x2000 },
+ { 0x0700, 0x0679, 0x0000 },
+ { 0x0700, 0x067b, 0x0000 },
+ { 0x8700, 0x0680, 0x3000 },
+ { 0x8700, 0x067e, 0x2000 },
+ { 0x0700, 0x067d, 0x0000 },
+ { 0x0700, 0x067f, 0x0000 },
+ { 0x8700, 0x0682, 0x2000 },
+ { 0x0700, 0x0681, 0x0000 },
+ { 0x0700, 0x0683, 0x0000 },
+ { 0x8700, 0x0694, 0x5000 },
+ { 0x8700, 0x068c, 0x4000 },
+ { 0x8700, 0x0688, 0x3000 },
+ { 0x8700, 0x0686, 0x2000 },
+ { 0x0700, 0x0685, 0x0000 },
+ { 0x0700, 0x0687, 0x0000 },
+ { 0x8700, 0x068a, 0x2000 },
+ { 0x0700, 0x0689, 0x0000 },
+ { 0x0700, 0x068b, 0x0000 },
+ { 0x8700, 0x0690, 0x3000 },
+ { 0x8700, 0x068e, 0x2000 },
+ { 0x0700, 0x068d, 0x0000 },
+ { 0x0700, 0x068f, 0x0000 },
+ { 0x8700, 0x0692, 0x2000 },
+ { 0x0700, 0x0691, 0x0000 },
+ { 0x0700, 0x0693, 0x0000 },
+ { 0x8700, 0x069c, 0x4000 },
+ { 0x8700, 0x0698, 0x3000 },
+ { 0x8700, 0x0696, 0x2000 },
+ { 0x0700, 0x0695, 0x0000 },
+ { 0x0700, 0x0697, 0x0000 },
+ { 0x8700, 0x069a, 0x2000 },
+ { 0x0700, 0x0699, 0x0000 },
+ { 0x0700, 0x069b, 0x0000 },
+ { 0x8700, 0x06a0, 0x3000 },
+ { 0x8700, 0x069e, 0x2000 },
+ { 0x0700, 0x069d, 0x0000 },
+ { 0x0700, 0x069f, 0x0000 },
+ { 0x8700, 0x06a2, 0x2000 },
+ { 0x0700, 0x06a1, 0x0000 },
+ { 0x0700, 0x06a3, 0x0000 },
+ { 0x8700, 0x0926, 0x9000 },
+ { 0x8700, 0x0725, 0x8000 },
+ { 0x8c00, 0x06e4, 0x7000 },
+ { 0x8700, 0x06c4, 0x6000 },
+ { 0x8700, 0x06b4, 0x5000 },
+ { 0x8700, 0x06ac, 0x4000 },
+ { 0x8700, 0x06a8, 0x3000 },
+ { 0x8700, 0x06a6, 0x2000 },
+ { 0x0700, 0x06a5, 0x0000 },
+ { 0x0700, 0x06a7, 0x0000 },
+ { 0x8700, 0x06aa, 0x2000 },
+ { 0x0700, 0x06a9, 0x0000 },
+ { 0x0700, 0x06ab, 0x0000 },
+ { 0x8700, 0x06b0, 0x3000 },
+ { 0x8700, 0x06ae, 0x2000 },
+ { 0x0700, 0x06ad, 0x0000 },
+ { 0x0700, 0x06af, 0x0000 },
+ { 0x8700, 0x06b2, 0x2000 },
+ { 0x0700, 0x06b1, 0x0000 },
+ { 0x0700, 0x06b3, 0x0000 },
+ { 0x8700, 0x06bc, 0x4000 },
+ { 0x8700, 0x06b8, 0x3000 },
+ { 0x8700, 0x06b6, 0x2000 },
+ { 0x0700, 0x06b5, 0x0000 },
+ { 0x0700, 0x06b7, 0x0000 },
+ { 0x8700, 0x06ba, 0x2000 },
+ { 0x0700, 0x06b9, 0x0000 },
+ { 0x0700, 0x06bb, 0x0000 },
+ { 0x8700, 0x06c0, 0x3000 },
+ { 0x8700, 0x06be, 0x2000 },
+ { 0x0700, 0x06bd, 0x0000 },
+ { 0x0700, 0x06bf, 0x0000 },
+ { 0x8700, 0x06c2, 0x2000 },
+ { 0x0700, 0x06c1, 0x0000 },
+ { 0x0700, 0x06c3, 0x0000 },
+ { 0x9500, 0x06d4, 0x5000 },
+ { 0x8700, 0x06cc, 0x4000 },
+ { 0x8700, 0x06c8, 0x3000 },
+ { 0x8700, 0x06c6, 0x2000 },
+ { 0x0700, 0x06c5, 0x0000 },
+ { 0x0700, 0x06c7, 0x0000 },
+ { 0x8700, 0x06ca, 0x2000 },
+ { 0x0700, 0x06c9, 0x0000 },
+ { 0x0700, 0x06cb, 0x0000 },
+ { 0x8700, 0x06d0, 0x3000 },
+ { 0x8700, 0x06ce, 0x2000 },
+ { 0x0700, 0x06cd, 0x0000 },
+ { 0x0700, 0x06cf, 0x0000 },
+ { 0x8700, 0x06d2, 0x2000 },
+ { 0x0700, 0x06d1, 0x0000 },
+ { 0x0700, 0x06d3, 0x0000 },
+ { 0x8c00, 0x06dc, 0x4000 },
+ { 0x8c00, 0x06d8, 0x3000 },
+ { 0x8c00, 0x06d6, 0x2000 },
+ { 0x0700, 0x06d5, 0x0000 },
+ { 0x0c00, 0x06d7, 0x0000 },
+ { 0x8c00, 0x06da, 0x2000 },
+ { 0x0c00, 0x06d9, 0x0000 },
+ { 0x0c00, 0x06db, 0x0000 },
+ { 0x8c00, 0x06e0, 0x3000 },
+ { 0x8b00, 0x06de, 0x2000 },
+ { 0x0100, 0x06dd, 0x0000 },
+ { 0x0c00, 0x06df, 0x0000 },
+ { 0x8c00, 0x06e2, 0x2000 },
+ { 0x0c00, 0x06e1, 0x0000 },
+ { 0x0c00, 0x06e3, 0x0000 },
+ { 0x9500, 0x0704, 0x6000 },
+ { 0x8d00, 0x06f4, 0x5000 },
+ { 0x8c00, 0x06ec, 0x4000 },
+ { 0x8c00, 0x06e8, 0x3000 },
+ { 0x8600, 0x06e6, 0x2000 },
+ { 0x0600, 0x06e5, 0x0000 },
+ { 0x0c00, 0x06e7, 0x0000 },
+ { 0x8c00, 0x06ea, 0x2000 },
+ { 0x1a00, 0x06e9, 0x0000 },
+ { 0x0c00, 0x06eb, 0x0000 },
+ { 0x8d00, 0x06f0, 0x3000 },
+ { 0x8700, 0x06ee, 0x2000 },
+ { 0x0c00, 0x06ed, 0x0000 },
+ { 0x0700, 0x06ef, 0x0000 },
+ { 0x8d00, 0x06f2, 0x2000 },
+ { 0x0d00, 0x06f1, 0x0000 },
+ { 0x0d00, 0x06f3, 0x0000 },
+ { 0x8700, 0x06fc, 0x4000 },
+ { 0x8d00, 0x06f8, 0x3000 },
+ { 0x8d00, 0x06f6, 0x2000 },
+ { 0x0d00, 0x06f5, 0x0000 },
+ { 0x0d00, 0x06f7, 0x0000 },
+ { 0x8700, 0x06fa, 0x2000 },
+ { 0x0d00, 0x06f9, 0x0000 },
+ { 0x0700, 0x06fb, 0x0000 },
+ { 0x9500, 0x0700, 0x3000 },
+ { 0x9a00, 0x06fe, 0x2000 },
+ { 0x1a00, 0x06fd, 0x0000 },
+ { 0x0700, 0x06ff, 0x0000 },
+ { 0x9500, 0x0702, 0x2000 },
+ { 0x1500, 0x0701, 0x0000 },
+ { 0x1500, 0x0703, 0x0000 },
+ { 0x8700, 0x0715, 0x5000 },
+ { 0x9500, 0x070c, 0x4000 },
+ { 0x9500, 0x0708, 0x3000 },
+ { 0x9500, 0x0706, 0x2000 },
+ { 0x1500, 0x0705, 0x0000 },
+ { 0x1500, 0x0707, 0x0000 },
+ { 0x9500, 0x070a, 0x2000 },
+ { 0x1500, 0x0709, 0x0000 },
+ { 0x1500, 0x070b, 0x0000 },
+ { 0x8c00, 0x0711, 0x3000 },
+ { 0x8100, 0x070f, 0x2000 },
+ { 0x1500, 0x070d, 0x0000 },
+ { 0x0700, 0x0710, 0x0000 },
+ { 0x8700, 0x0713, 0x2000 },
+ { 0x0700, 0x0712, 0x0000 },
+ { 0x0700, 0x0714, 0x0000 },
+ { 0x8700, 0x071d, 0x4000 },
+ { 0x8700, 0x0719, 0x3000 },
+ { 0x8700, 0x0717, 0x2000 },
+ { 0x0700, 0x0716, 0x0000 },
+ { 0x0700, 0x0718, 0x0000 },
+ { 0x8700, 0x071b, 0x2000 },
+ { 0x0700, 0x071a, 0x0000 },
+ { 0x0700, 0x071c, 0x0000 },
+ { 0x8700, 0x0721, 0x3000 },
+ { 0x8700, 0x071f, 0x2000 },
+ { 0x0700, 0x071e, 0x0000 },
+ { 0x0700, 0x0720, 0x0000 },
+ { 0x8700, 0x0723, 0x2000 },
+ { 0x0700, 0x0722, 0x0000 },
+ { 0x0700, 0x0724, 0x0000 },
+ { 0x8700, 0x0797, 0x7000 },
+ { 0x8c00, 0x0745, 0x6000 },
+ { 0x8c00, 0x0735, 0x5000 },
+ { 0x8700, 0x072d, 0x4000 },
+ { 0x8700, 0x0729, 0x3000 },
+ { 0x8700, 0x0727, 0x2000 },
+ { 0x0700, 0x0726, 0x0000 },
+ { 0x0700, 0x0728, 0x0000 },
+ { 0x8700, 0x072b, 0x2000 },
+ { 0x0700, 0x072a, 0x0000 },
+ { 0x0700, 0x072c, 0x0000 },
+ { 0x8c00, 0x0731, 0x3000 },
+ { 0x8700, 0x072f, 0x2000 },
+ { 0x0700, 0x072e, 0x0000 },
+ { 0x0c00, 0x0730, 0x0000 },
+ { 0x8c00, 0x0733, 0x2000 },
+ { 0x0c00, 0x0732, 0x0000 },
+ { 0x0c00, 0x0734, 0x0000 },
+ { 0x8c00, 0x073d, 0x4000 },
+ { 0x8c00, 0x0739, 0x3000 },
+ { 0x8c00, 0x0737, 0x2000 },
+ { 0x0c00, 0x0736, 0x0000 },
+ { 0x0c00, 0x0738, 0x0000 },
+ { 0x8c00, 0x073b, 0x2000 },
+ { 0x0c00, 0x073a, 0x0000 },
+ { 0x0c00, 0x073c, 0x0000 },
+ { 0x8c00, 0x0741, 0x3000 },
+ { 0x8c00, 0x073f, 0x2000 },
+ { 0x0c00, 0x073e, 0x0000 },
+ { 0x0c00, 0x0740, 0x0000 },
+ { 0x8c00, 0x0743, 0x2000 },
+ { 0x0c00, 0x0742, 0x0000 },
+ { 0x0c00, 0x0744, 0x0000 },
+ { 0x8700, 0x0787, 0x5000 },
+ { 0x8700, 0x074f, 0x4000 },
+ { 0x8c00, 0x0749, 0x3000 },
+ { 0x8c00, 0x0747, 0x2000 },
+ { 0x0c00, 0x0746, 0x0000 },
+ { 0x0c00, 0x0748, 0x0000 },
+ { 0x8700, 0x074d, 0x2000 },
+ { 0x0c00, 0x074a, 0x0000 },
+ { 0x0700, 0x074e, 0x0000 },
+ { 0x8700, 0x0783, 0x3000 },
+ { 0x8700, 0x0781, 0x2000 },
+ { 0x0700, 0x0780, 0x0000 },
+ { 0x0700, 0x0782, 0x0000 },
+ { 0x8700, 0x0785, 0x2000 },
+ { 0x0700, 0x0784, 0x0000 },
+ { 0x0700, 0x0786, 0x0000 },
+ { 0x8700, 0x078f, 0x4000 },
+ { 0x8700, 0x078b, 0x3000 },
+ { 0x8700, 0x0789, 0x2000 },
+ { 0x0700, 0x0788, 0x0000 },
+ { 0x0700, 0x078a, 0x0000 },
+ { 0x8700, 0x078d, 0x2000 },
+ { 0x0700, 0x078c, 0x0000 },
+ { 0x0700, 0x078e, 0x0000 },
+ { 0x8700, 0x0793, 0x3000 },
+ { 0x8700, 0x0791, 0x2000 },
+ { 0x0700, 0x0790, 0x0000 },
+ { 0x0700, 0x0792, 0x0000 },
+ { 0x8700, 0x0795, 0x2000 },
+ { 0x0700, 0x0794, 0x0000 },
+ { 0x0700, 0x0796, 0x0000 },
+ { 0x8700, 0x0906, 0x6000 },
+ { 0x8c00, 0x07a7, 0x5000 },
+ { 0x8700, 0x079f, 0x4000 },
+ { 0x8700, 0x079b, 0x3000 },
+ { 0x8700, 0x0799, 0x2000 },
+ { 0x0700, 0x0798, 0x0000 },
+ { 0x0700, 0x079a, 0x0000 },
+ { 0x8700, 0x079d, 0x2000 },
+ { 0x0700, 0x079c, 0x0000 },
+ { 0x0700, 0x079e, 0x0000 },
+ { 0x8700, 0x07a3, 0x3000 },
+ { 0x8700, 0x07a1, 0x2000 },
+ { 0x0700, 0x07a0, 0x0000 },
+ { 0x0700, 0x07a2, 0x0000 },
+ { 0x8700, 0x07a5, 0x2000 },
+ { 0x0700, 0x07a4, 0x0000 },
+ { 0x0c00, 0x07a6, 0x0000 },
+ { 0x8c00, 0x07af, 0x4000 },
+ { 0x8c00, 0x07ab, 0x3000 },
+ { 0x8c00, 0x07a9, 0x2000 },
+ { 0x0c00, 0x07a8, 0x0000 },
+ { 0x0c00, 0x07aa, 0x0000 },
+ { 0x8c00, 0x07ad, 0x2000 },
+ { 0x0c00, 0x07ac, 0x0000 },
+ { 0x0c00, 0x07ae, 0x0000 },
+ { 0x8c00, 0x0902, 0x3000 },
+ { 0x8700, 0x07b1, 0x2000 },
+ { 0x0c00, 0x07b0, 0x0000 },
+ { 0x0c00, 0x0901, 0x0000 },
+ { 0x8700, 0x0904, 0x2000 },
+ { 0x0a00, 0x0903, 0x0000 },
+ { 0x0700, 0x0905, 0x0000 },
+ { 0x8700, 0x0916, 0x5000 },
+ { 0x8700, 0x090e, 0x4000 },
+ { 0x8700, 0x090a, 0x3000 },
+ { 0x8700, 0x0908, 0x2000 },
+ { 0x0700, 0x0907, 0x0000 },
+ { 0x0700, 0x0909, 0x0000 },
+ { 0x8700, 0x090c, 0x2000 },
+ { 0x0700, 0x090b, 0x0000 },
+ { 0x0700, 0x090d, 0x0000 },
+ { 0x8700, 0x0912, 0x3000 },
+ { 0x8700, 0x0910, 0x2000 },
+ { 0x0700, 0x090f, 0x0000 },
+ { 0x0700, 0x0911, 0x0000 },
+ { 0x8700, 0x0914, 0x2000 },
+ { 0x0700, 0x0913, 0x0000 },
+ { 0x0700, 0x0915, 0x0000 },
+ { 0x8700, 0x091e, 0x4000 },
+ { 0x8700, 0x091a, 0x3000 },
+ { 0x8700, 0x0918, 0x2000 },
+ { 0x0700, 0x0917, 0x0000 },
+ { 0x0700, 0x0919, 0x0000 },
+ { 0x8700, 0x091c, 0x2000 },
+ { 0x0700, 0x091b, 0x0000 },
+ { 0x0700, 0x091d, 0x0000 },
+ { 0x8700, 0x0922, 0x3000 },
+ { 0x8700, 0x0920, 0x2000 },
+ { 0x0700, 0x091f, 0x0000 },
+ { 0x0700, 0x0921, 0x0000 },
+ { 0x8700, 0x0924, 0x2000 },
+ { 0x0700, 0x0923, 0x0000 },
+ { 0x0700, 0x0925, 0x0000 },
+ { 0x8c00, 0x09cd, 0x8000 },
+ { 0x8d00, 0x096d, 0x7000 },
+ { 0x8c00, 0x0948, 0x6000 },
+ { 0x8700, 0x0936, 0x5000 },
+ { 0x8700, 0x092e, 0x4000 },
+ { 0x8700, 0x092a, 0x3000 },
+ { 0x8700, 0x0928, 0x2000 },
+ { 0x0700, 0x0927, 0x0000 },
+ { 0x0700, 0x0929, 0x0000 },
+ { 0x8700, 0x092c, 0x2000 },
+ { 0x0700, 0x092b, 0x0000 },
+ { 0x0700, 0x092d, 0x0000 },
+ { 0x8700, 0x0932, 0x3000 },
+ { 0x8700, 0x0930, 0x2000 },
+ { 0x0700, 0x092f, 0x0000 },
+ { 0x0700, 0x0931, 0x0000 },
+ { 0x8700, 0x0934, 0x2000 },
+ { 0x0700, 0x0933, 0x0000 },
+ { 0x0700, 0x0935, 0x0000 },
+ { 0x8a00, 0x0940, 0x4000 },
+ { 0x8c00, 0x093c, 0x3000 },
+ { 0x8700, 0x0938, 0x2000 },
+ { 0x0700, 0x0937, 0x0000 },
+ { 0x0700, 0x0939, 0x0000 },
+ { 0x8a00, 0x093e, 0x2000 },
+ { 0x0700, 0x093d, 0x0000 },
+ { 0x0a00, 0x093f, 0x0000 },
+ { 0x8c00, 0x0944, 0x3000 },
+ { 0x8c00, 0x0942, 0x2000 },
+ { 0x0c00, 0x0941, 0x0000 },
+ { 0x0c00, 0x0943, 0x0000 },
+ { 0x8c00, 0x0946, 0x2000 },
+ { 0x0c00, 0x0945, 0x0000 },
+ { 0x0c00, 0x0947, 0x0000 },
+ { 0x8700, 0x095d, 0x5000 },
+ { 0x8c00, 0x0952, 0x4000 },
+ { 0x8a00, 0x094c, 0x3000 },
+ { 0x8a00, 0x094a, 0x2000 },
+ { 0x0a00, 0x0949, 0x0000 },
+ { 0x0a00, 0x094b, 0x0000 },
+ { 0x8700, 0x0950, 0x2000 },
+ { 0x0c00, 0x094d, 0x0000 },
+ { 0x0c00, 0x0951, 0x0000 },
+ { 0x8700, 0x0959, 0x3000 },
+ { 0x8c00, 0x0954, 0x2000 },
+ { 0x0c00, 0x0953, 0x0000 },
+ { 0x0700, 0x0958, 0x0000 },
+ { 0x8700, 0x095b, 0x2000 },
+ { 0x0700, 0x095a, 0x0000 },
+ { 0x0700, 0x095c, 0x0000 },
+ { 0x9500, 0x0965, 0x4000 },
+ { 0x8700, 0x0961, 0x3000 },
+ { 0x8700, 0x095f, 0x2000 },
+ { 0x0700, 0x095e, 0x0000 },
+ { 0x0700, 0x0960, 0x0000 },
+ { 0x8c00, 0x0963, 0x2000 },
+ { 0x0c00, 0x0962, 0x0000 },
+ { 0x1500, 0x0964, 0x0000 },
+ { 0x8d00, 0x0969, 0x3000 },
+ { 0x8d00, 0x0967, 0x2000 },
+ { 0x0d00, 0x0966, 0x0000 },
+ { 0x0d00, 0x0968, 0x0000 },
+ { 0x8d00, 0x096b, 0x2000 },
+ { 0x0d00, 0x096a, 0x0000 },
+ { 0x0d00, 0x096c, 0x0000 },
+ { 0x8700, 0x09a2, 0x6000 },
+ { 0x8700, 0x0990, 0x5000 },
+ { 0x8700, 0x0986, 0x4000 },
+ { 0x8c00, 0x0981, 0x3000 },
+ { 0x8d00, 0x096f, 0x2000 },
+ { 0x0d00, 0x096e, 0x0000 },
+ { 0x1500, 0x0970, 0x0000 },
+ { 0x8a00, 0x0983, 0x2000 },
+ { 0x0a00, 0x0982, 0x0000 },
+ { 0x0700, 0x0985, 0x0000 },
+ { 0x8700, 0x098a, 0x3000 },
+ { 0x8700, 0x0988, 0x2000 },
+ { 0x0700, 0x0987, 0x0000 },
+ { 0x0700, 0x0989, 0x0000 },
+ { 0x8700, 0x098c, 0x2000 },
+ { 0x0700, 0x098b, 0x0000 },
+ { 0x0700, 0x098f, 0x0000 },
+ { 0x8700, 0x099a, 0x4000 },
+ { 0x8700, 0x0996, 0x3000 },
+ { 0x8700, 0x0994, 0x2000 },
+ { 0x0700, 0x0993, 0x0000 },
+ { 0x0700, 0x0995, 0x0000 },
+ { 0x8700, 0x0998, 0x2000 },
+ { 0x0700, 0x0997, 0x0000 },
+ { 0x0700, 0x0999, 0x0000 },
+ { 0x8700, 0x099e, 0x3000 },
+ { 0x8700, 0x099c, 0x2000 },
+ { 0x0700, 0x099b, 0x0000 },
+ { 0x0700, 0x099d, 0x0000 },
+ { 0x8700, 0x09a0, 0x2000 },
+ { 0x0700, 0x099f, 0x0000 },
+ { 0x0700, 0x09a1, 0x0000 },
+ { 0x8700, 0x09b7, 0x5000 },
+ { 0x8700, 0x09ab, 0x4000 },
+ { 0x8700, 0x09a6, 0x3000 },
+ { 0x8700, 0x09a4, 0x2000 },
+ { 0x0700, 0x09a3, 0x0000 },
+ { 0x0700, 0x09a5, 0x0000 },
+ { 0x8700, 0x09a8, 0x2000 },
+ { 0x0700, 0x09a7, 0x0000 },
+ { 0x0700, 0x09aa, 0x0000 },
+ { 0x8700, 0x09af, 0x3000 },
+ { 0x8700, 0x09ad, 0x2000 },
+ { 0x0700, 0x09ac, 0x0000 },
+ { 0x0700, 0x09ae, 0x0000 },
+ { 0x8700, 0x09b2, 0x2000 },
+ { 0x0700, 0x09b0, 0x0000 },
+ { 0x0700, 0x09b6, 0x0000 },
+ { 0x8c00, 0x09c1, 0x4000 },
+ { 0x8700, 0x09bd, 0x3000 },
+ { 0x8700, 0x09b9, 0x2000 },
+ { 0x0700, 0x09b8, 0x0000 },
+ { 0x0c00, 0x09bc, 0x0000 },
+ { 0x8a00, 0x09bf, 0x2000 },
+ { 0x0a00, 0x09be, 0x0000 },
+ { 0x0a00, 0x09c0, 0x0000 },
+ { 0x8a00, 0x09c7, 0x3000 },
+ { 0x8c00, 0x09c3, 0x2000 },
+ { 0x0c00, 0x09c2, 0x0000 },
+ { 0x0c00, 0x09c4, 0x0000 },
+ { 0x8a00, 0x09cb, 0x2000 },
+ { 0x0a00, 0x09c8, 0x0000 },
+ { 0x0a00, 0x09cc, 0x0000 },
+ { 0x8700, 0x0a2b, 0x7000 },
+ { 0x8a00, 0x0a03, 0x6000 },
+ { 0x8d00, 0x09ed, 0x5000 },
+ { 0x8c00, 0x09e3, 0x4000 },
+ { 0x8700, 0x09df, 0x3000 },
+ { 0x8700, 0x09dc, 0x2000 },
+ { 0x0a00, 0x09d7, 0x0000 },
+ { 0x0700, 0x09dd, 0x0000 },
+ { 0x8700, 0x09e1, 0x2000 },
+ { 0x0700, 0x09e0, 0x0000 },
+ { 0x0c00, 0x09e2, 0x0000 },
+ { 0x8d00, 0x09e9, 0x3000 },
+ { 0x8d00, 0x09e7, 0x2000 },
+ { 0x0d00, 0x09e6, 0x0000 },
+ { 0x0d00, 0x09e8, 0x0000 },
+ { 0x8d00, 0x09eb, 0x2000 },
+ { 0x0d00, 0x09ea, 0x0000 },
+ { 0x0d00, 0x09ec, 0x0000 },
+ { 0x8f00, 0x09f5, 0x4000 },
+ { 0x8700, 0x09f1, 0x3000 },
+ { 0x8d00, 0x09ef, 0x2000 },
+ { 0x0d00, 0x09ee, 0x0000 },
+ { 0x0700, 0x09f0, 0x0000 },
+ { 0x9700, 0x09f3, 0x2000 },
+ { 0x1700, 0x09f2, 0x0000 },
+ { 0x0f00, 0x09f4, 0x0000 },
+ { 0x8f00, 0x09f9, 0x3000 },
+ { 0x8f00, 0x09f7, 0x2000 },
+ { 0x0f00, 0x09f6, 0x0000 },
+ { 0x0f00, 0x09f8, 0x0000 },
+ { 0x8c00, 0x0a01, 0x2000 },
+ { 0x1a00, 0x09fa, 0x0000 },
+ { 0x0c00, 0x0a02, 0x0000 },
+ { 0x8700, 0x0a1a, 0x5000 },
+ { 0x8700, 0x0a10, 0x4000 },
+ { 0x8700, 0x0a08, 0x3000 },
+ { 0x8700, 0x0a06, 0x2000 },
+ { 0x0700, 0x0a05, 0x0000 },
+ { 0x0700, 0x0a07, 0x0000 },
+ { 0x8700, 0x0a0a, 0x2000 },
+ { 0x0700, 0x0a09, 0x0000 },
+ { 0x0700, 0x0a0f, 0x0000 },
+ { 0x8700, 0x0a16, 0x3000 },
+ { 0x8700, 0x0a14, 0x2000 },
+ { 0x0700, 0x0a13, 0x0000 },
+ { 0x0700, 0x0a15, 0x0000 },
+ { 0x8700, 0x0a18, 0x2000 },
+ { 0x0700, 0x0a17, 0x0000 },
+ { 0x0700, 0x0a19, 0x0000 },
+ { 0x8700, 0x0a22, 0x4000 },
+ { 0x8700, 0x0a1e, 0x3000 },
+ { 0x8700, 0x0a1c, 0x2000 },
+ { 0x0700, 0x0a1b, 0x0000 },
+ { 0x0700, 0x0a1d, 0x0000 },
+ { 0x8700, 0x0a20, 0x2000 },
+ { 0x0700, 0x0a1f, 0x0000 },
+ { 0x0700, 0x0a21, 0x0000 },
+ { 0x8700, 0x0a26, 0x3000 },
+ { 0x8700, 0x0a24, 0x2000 },
+ { 0x0700, 0x0a23, 0x0000 },
+ { 0x0700, 0x0a25, 0x0000 },
+ { 0x8700, 0x0a28, 0x2000 },
+ { 0x0700, 0x0a27, 0x0000 },
+ { 0x0700, 0x0a2a, 0x0000 },
+ { 0x8d00, 0x0a6a, 0x6000 },
+ { 0x8c00, 0x0a41, 0x5000 },
+ { 0x8700, 0x0a35, 0x4000 },
+ { 0x8700, 0x0a2f, 0x3000 },
+ { 0x8700, 0x0a2d, 0x2000 },
+ { 0x0700, 0x0a2c, 0x0000 },
+ { 0x0700, 0x0a2e, 0x0000 },
+ { 0x8700, 0x0a32, 0x2000 },
+ { 0x0700, 0x0a30, 0x0000 },
+ { 0x0700, 0x0a33, 0x0000 },
+ { 0x8c00, 0x0a3c, 0x3000 },
+ { 0x8700, 0x0a38, 0x2000 },
+ { 0x0700, 0x0a36, 0x0000 },
+ { 0x0700, 0x0a39, 0x0000 },
+ { 0x8a00, 0x0a3f, 0x2000 },
+ { 0x0a00, 0x0a3e, 0x0000 },
+ { 0x0a00, 0x0a40, 0x0000 },
+ { 0x8700, 0x0a5a, 0x4000 },
+ { 0x8c00, 0x0a4b, 0x3000 },
+ { 0x8c00, 0x0a47, 0x2000 },
+ { 0x0c00, 0x0a42, 0x0000 },
+ { 0x0c00, 0x0a48, 0x0000 },
+ { 0x8c00, 0x0a4d, 0x2000 },
+ { 0x0c00, 0x0a4c, 0x0000 },
+ { 0x0700, 0x0a59, 0x0000 },
+ { 0x8d00, 0x0a66, 0x3000 },
+ { 0x8700, 0x0a5c, 0x2000 },
+ { 0x0700, 0x0a5b, 0x0000 },
+ { 0x0700, 0x0a5e, 0x0000 },
+ { 0x8d00, 0x0a68, 0x2000 },
+ { 0x0d00, 0x0a67, 0x0000 },
+ { 0x0d00, 0x0a69, 0x0000 },
+ { 0x8700, 0x0a87, 0x5000 },
+ { 0x8700, 0x0a72, 0x4000 },
+ { 0x8d00, 0x0a6e, 0x3000 },
+ { 0x8d00, 0x0a6c, 0x2000 },
+ { 0x0d00, 0x0a6b, 0x0000 },
+ { 0x0d00, 0x0a6d, 0x0000 },
+ { 0x8c00, 0x0a70, 0x2000 },
+ { 0x0d00, 0x0a6f, 0x0000 },
+ { 0x0c00, 0x0a71, 0x0000 },
+ { 0x8c00, 0x0a82, 0x3000 },
+ { 0x8700, 0x0a74, 0x2000 },
+ { 0x0700, 0x0a73, 0x0000 },
+ { 0x0c00, 0x0a81, 0x0000 },
+ { 0x8700, 0x0a85, 0x2000 },
+ { 0x0a00, 0x0a83, 0x0000 },
+ { 0x0700, 0x0a86, 0x0000 },
+ { 0x8700, 0x0a90, 0x4000 },
+ { 0x8700, 0x0a8b, 0x3000 },
+ { 0x8700, 0x0a89, 0x2000 },
+ { 0x0700, 0x0a88, 0x0000 },
+ { 0x0700, 0x0a8a, 0x0000 },
+ { 0x8700, 0x0a8d, 0x2000 },
+ { 0x0700, 0x0a8c, 0x0000 },
+ { 0x0700, 0x0a8f, 0x0000 },
+ { 0x8700, 0x0a95, 0x3000 },
+ { 0x8700, 0x0a93, 0x2000 },
+ { 0x0700, 0x0a91, 0x0000 },
+ { 0x0700, 0x0a94, 0x0000 },
+ { 0x8700, 0x0a97, 0x2000 },
+ { 0x0700, 0x0a96, 0x0000 },
+ { 0x0700, 0x0a98, 0x0000 },
+ { 0x8700, 0x10ef, 0xb000 },
+ { 0x8700, 0x0dc6, 0xa000 },
+ { 0x8700, 0x0c31, 0x9000 },
+ { 0x8700, 0x0b5f, 0x8000 },
+ { 0x8a00, 0x0b03, 0x7000 },
+ { 0x8a00, 0x0abe, 0x6000 },
+ { 0x8700, 0x0aaa, 0x5000 },
+ { 0x8700, 0x0aa1, 0x4000 },
+ { 0x8700, 0x0a9d, 0x3000 },
+ { 0x8700, 0x0a9b, 0x2000 },
+ { 0x0700, 0x0a9a, 0x0000 },
+ { 0x0700, 0x0a9c, 0x0000 },
+ { 0x8700, 0x0a9f, 0x2000 },
+ { 0x0700, 0x0a9e, 0x0000 },
+ { 0x0700, 0x0aa0, 0x0000 },
+ { 0x8700, 0x0aa5, 0x3000 },
+ { 0x8700, 0x0aa3, 0x2000 },
+ { 0x0700, 0x0aa2, 0x0000 },
+ { 0x0700, 0x0aa4, 0x0000 },
+ { 0x8700, 0x0aa7, 0x2000 },
+ { 0x0700, 0x0aa6, 0x0000 },
+ { 0x0700, 0x0aa8, 0x0000 },
+ { 0x8700, 0x0ab3, 0x4000 },
+ { 0x8700, 0x0aae, 0x3000 },
+ { 0x8700, 0x0aac, 0x2000 },
+ { 0x0700, 0x0aab, 0x0000 },
+ { 0x0700, 0x0aad, 0x0000 },
+ { 0x8700, 0x0ab0, 0x2000 },
+ { 0x0700, 0x0aaf, 0x0000 },
+ { 0x0700, 0x0ab2, 0x0000 },
+ { 0x8700, 0x0ab8, 0x3000 },
+ { 0x8700, 0x0ab6, 0x2000 },
+ { 0x0700, 0x0ab5, 0x0000 },
+ { 0x0700, 0x0ab7, 0x0000 },
+ { 0x8c00, 0x0abc, 0x2000 },
+ { 0x0700, 0x0ab9, 0x0000 },
+ { 0x0700, 0x0abd, 0x0000 },
+ { 0x8700, 0x0ae1, 0x5000 },
+ { 0x8c00, 0x0ac7, 0x4000 },
+ { 0x8c00, 0x0ac2, 0x3000 },
+ { 0x8a00, 0x0ac0, 0x2000 },
+ { 0x0a00, 0x0abf, 0x0000 },
+ { 0x0c00, 0x0ac1, 0x0000 },
+ { 0x8c00, 0x0ac4, 0x2000 },
+ { 0x0c00, 0x0ac3, 0x0000 },
+ { 0x0c00, 0x0ac5, 0x0000 },
+ { 0x8a00, 0x0acc, 0x3000 },
+ { 0x8a00, 0x0ac9, 0x2000 },
+ { 0x0c00, 0x0ac8, 0x0000 },
+ { 0x0a00, 0x0acb, 0x0000 },
+ { 0x8700, 0x0ad0, 0x2000 },
+ { 0x0c00, 0x0acd, 0x0000 },
+ { 0x0700, 0x0ae0, 0x0000 },
+ { 0x8d00, 0x0aeb, 0x4000 },
+ { 0x8d00, 0x0ae7, 0x3000 },
+ { 0x8c00, 0x0ae3, 0x2000 },
+ { 0x0c00, 0x0ae2, 0x0000 },
+ { 0x0d00, 0x0ae6, 0x0000 },
+ { 0x8d00, 0x0ae9, 0x2000 },
+ { 0x0d00, 0x0ae8, 0x0000 },
+ { 0x0d00, 0x0aea, 0x0000 },
+ { 0x8d00, 0x0aef, 0x3000 },
+ { 0x8d00, 0x0aed, 0x2000 },
+ { 0x0d00, 0x0aec, 0x0000 },
+ { 0x0d00, 0x0aee, 0x0000 },
+ { 0x8c00, 0x0b01, 0x2000 },
+ { 0x1700, 0x0af1, 0x0000 },
+ { 0x0a00, 0x0b02, 0x0000 },
+ { 0x8700, 0x0b28, 0x6000 },
+ { 0x8700, 0x0b18, 0x5000 },
+ { 0x8700, 0x0b0c, 0x4000 },
+ { 0x8700, 0x0b08, 0x3000 },
+ { 0x8700, 0x0b06, 0x2000 },
+ { 0x0700, 0x0b05, 0x0000 },
+ { 0x0700, 0x0b07, 0x0000 },
+ { 0x8700, 0x0b0a, 0x2000 },
+ { 0x0700, 0x0b09, 0x0000 },
+ { 0x0700, 0x0b0b, 0x0000 },
+ { 0x8700, 0x0b14, 0x3000 },
+ { 0x8700, 0x0b10, 0x2000 },
+ { 0x0700, 0x0b0f, 0x0000 },
+ { 0x0700, 0x0b13, 0x0000 },
+ { 0x8700, 0x0b16, 0x2000 },
+ { 0x0700, 0x0b15, 0x0000 },
+ { 0x0700, 0x0b17, 0x0000 },
+ { 0x8700, 0x0b20, 0x4000 },
+ { 0x8700, 0x0b1c, 0x3000 },
+ { 0x8700, 0x0b1a, 0x2000 },
+ { 0x0700, 0x0b19, 0x0000 },
+ { 0x0700, 0x0b1b, 0x0000 },
+ { 0x8700, 0x0b1e, 0x2000 },
+ { 0x0700, 0x0b1d, 0x0000 },
+ { 0x0700, 0x0b1f, 0x0000 },
+ { 0x8700, 0x0b24, 0x3000 },
+ { 0x8700, 0x0b22, 0x2000 },
+ { 0x0700, 0x0b21, 0x0000 },
+ { 0x0700, 0x0b23, 0x0000 },
+ { 0x8700, 0x0b26, 0x2000 },
+ { 0x0700, 0x0b25, 0x0000 },
+ { 0x0700, 0x0b27, 0x0000 },
+ { 0x8700, 0x0b3d, 0x5000 },
+ { 0x8700, 0x0b32, 0x4000 },
+ { 0x8700, 0x0b2d, 0x3000 },
+ { 0x8700, 0x0b2b, 0x2000 },
+ { 0x0700, 0x0b2a, 0x0000 },
+ { 0x0700, 0x0b2c, 0x0000 },
+ { 0x8700, 0x0b2f, 0x2000 },
+ { 0x0700, 0x0b2e, 0x0000 },
+ { 0x0700, 0x0b30, 0x0000 },
+ { 0x8700, 0x0b37, 0x3000 },
+ { 0x8700, 0x0b35, 0x2000 },
+ { 0x0700, 0x0b33, 0x0000 },
+ { 0x0700, 0x0b36, 0x0000 },
+ { 0x8700, 0x0b39, 0x2000 },
+ { 0x0700, 0x0b38, 0x0000 },
+ { 0x0c00, 0x0b3c, 0x0000 },
+ { 0x8a00, 0x0b48, 0x4000 },
+ { 0x8c00, 0x0b41, 0x3000 },
+ { 0x8c00, 0x0b3f, 0x2000 },
+ { 0x0a00, 0x0b3e, 0x0000 },
+ { 0x0a00, 0x0b40, 0x0000 },
+ { 0x8c00, 0x0b43, 0x2000 },
+ { 0x0c00, 0x0b42, 0x0000 },
+ { 0x0a00, 0x0b47, 0x0000 },
+ { 0x8c00, 0x0b56, 0x3000 },
+ { 0x8a00, 0x0b4c, 0x2000 },
+ { 0x0a00, 0x0b4b, 0x0000 },
+ { 0x0c00, 0x0b4d, 0x0000 },
+ { 0x8700, 0x0b5c, 0x2000 },
+ { 0x0a00, 0x0b57, 0x0000 },
+ { 0x0700, 0x0b5d, 0x0000 },
+ { 0x8d00, 0x0be7, 0x7000 },
+ { 0x8700, 0x0b9c, 0x6000 },
+ { 0x8700, 0x0b83, 0x5000 },
+ { 0x8d00, 0x0b6b, 0x4000 },
+ { 0x8d00, 0x0b67, 0x3000 },
+ { 0x8700, 0x0b61, 0x2000 },
+ { 0x0700, 0x0b60, 0x0000 },
+ { 0x0d00, 0x0b66, 0x0000 },
+ { 0x8d00, 0x0b69, 0x2000 },
+ { 0x0d00, 0x0b68, 0x0000 },
+ { 0x0d00, 0x0b6a, 0x0000 },
+ { 0x8d00, 0x0b6f, 0x3000 },
+ { 0x8d00, 0x0b6d, 0x2000 },
+ { 0x0d00, 0x0b6c, 0x0000 },
+ { 0x0d00, 0x0b6e, 0x0000 },
+ { 0x8700, 0x0b71, 0x2000 },
+ { 0x1a00, 0x0b70, 0x0000 },
+ { 0x0c00, 0x0b82, 0x0000 },
+ { 0x8700, 0x0b8f, 0x4000 },
+ { 0x8700, 0x0b88, 0x3000 },
+ { 0x8700, 0x0b86, 0x2000 },
+ { 0x0700, 0x0b85, 0x0000 },
+ { 0x0700, 0x0b87, 0x0000 },
+ { 0x8700, 0x0b8a, 0x2000 },
+ { 0x0700, 0x0b89, 0x0000 },
+ { 0x0700, 0x0b8e, 0x0000 },
+ { 0x8700, 0x0b94, 0x3000 },
+ { 0x8700, 0x0b92, 0x2000 },
+ { 0x0700, 0x0b90, 0x0000 },
+ { 0x0700, 0x0b93, 0x0000 },
+ { 0x8700, 0x0b99, 0x2000 },
+ { 0x0700, 0x0b95, 0x0000 },
+ { 0x0700, 0x0b9a, 0x0000 },
+ { 0x8700, 0x0bb7, 0x5000 },
+ { 0x8700, 0x0bae, 0x4000 },
+ { 0x8700, 0x0ba4, 0x3000 },
+ { 0x8700, 0x0b9f, 0x2000 },
+ { 0x0700, 0x0b9e, 0x0000 },
+ { 0x0700, 0x0ba3, 0x0000 },
+ { 0x8700, 0x0ba9, 0x2000 },
+ { 0x0700, 0x0ba8, 0x0000 },
+ { 0x0700, 0x0baa, 0x0000 },
+ { 0x8700, 0x0bb2, 0x3000 },
+ { 0x8700, 0x0bb0, 0x2000 },
+ { 0x0700, 0x0baf, 0x0000 },
+ { 0x0700, 0x0bb1, 0x0000 },
+ { 0x8700, 0x0bb4, 0x2000 },
+ { 0x0700, 0x0bb3, 0x0000 },
+ { 0x0700, 0x0bb5, 0x0000 },
+ { 0x8a00, 0x0bc6, 0x4000 },
+ { 0x8a00, 0x0bbf, 0x3000 },
+ { 0x8700, 0x0bb9, 0x2000 },
+ { 0x0700, 0x0bb8, 0x0000 },
+ { 0x0a00, 0x0bbe, 0x0000 },
+ { 0x8a00, 0x0bc1, 0x2000 },
+ { 0x0c00, 0x0bc0, 0x0000 },
+ { 0x0a00, 0x0bc2, 0x0000 },
+ { 0x8a00, 0x0bcb, 0x3000 },
+ { 0x8a00, 0x0bc8, 0x2000 },
+ { 0x0a00, 0x0bc7, 0x0000 },
+ { 0x0a00, 0x0bca, 0x0000 },
+ { 0x8c00, 0x0bcd, 0x2000 },
+ { 0x0a00, 0x0bcc, 0x0000 },
+ { 0x0a00, 0x0bd7, 0x0000 },
+ { 0x8700, 0x0c0f, 0x6000 },
+ { 0x9a00, 0x0bf7, 0x5000 },
+ { 0x8d00, 0x0bef, 0x4000 },
+ { 0x8d00, 0x0beb, 0x3000 },
+ { 0x8d00, 0x0be9, 0x2000 },
+ { 0x0d00, 0x0be8, 0x0000 },
+ { 0x0d00, 0x0bea, 0x0000 },
+ { 0x8d00, 0x0bed, 0x2000 },
+ { 0x0d00, 0x0bec, 0x0000 },
+ { 0x0d00, 0x0bee, 0x0000 },
+ { 0x9a00, 0x0bf3, 0x3000 },
+ { 0x8f00, 0x0bf1, 0x2000 },
+ { 0x0f00, 0x0bf0, 0x0000 },
+ { 0x0f00, 0x0bf2, 0x0000 },
+ { 0x9a00, 0x0bf5, 0x2000 },
+ { 0x1a00, 0x0bf4, 0x0000 },
+ { 0x1a00, 0x0bf6, 0x0000 },
+ { 0x8700, 0x0c06, 0x4000 },
+ { 0x8a00, 0x0c01, 0x3000 },
+ { 0x9700, 0x0bf9, 0x2000 },
+ { 0x1a00, 0x0bf8, 0x0000 },
+ { 0x1a00, 0x0bfa, 0x0000 },
+ { 0x8a00, 0x0c03, 0x2000 },
+ { 0x0a00, 0x0c02, 0x0000 },
+ { 0x0700, 0x0c05, 0x0000 },
+ { 0x8700, 0x0c0a, 0x3000 },
+ { 0x8700, 0x0c08, 0x2000 },
+ { 0x0700, 0x0c07, 0x0000 },
+ { 0x0700, 0x0c09, 0x0000 },
+ { 0x8700, 0x0c0c, 0x2000 },
+ { 0x0700, 0x0c0b, 0x0000 },
+ { 0x0700, 0x0c0e, 0x0000 },
+ { 0x8700, 0x0c20, 0x5000 },
+ { 0x8700, 0x0c18, 0x4000 },
+ { 0x8700, 0x0c14, 0x3000 },
+ { 0x8700, 0x0c12, 0x2000 },
+ { 0x0700, 0x0c10, 0x0000 },
+ { 0x0700, 0x0c13, 0x0000 },
+ { 0x8700, 0x0c16, 0x2000 },
+ { 0x0700, 0x0c15, 0x0000 },
+ { 0x0700, 0x0c17, 0x0000 },
+ { 0x8700, 0x0c1c, 0x3000 },
+ { 0x8700, 0x0c1a, 0x2000 },
+ { 0x0700, 0x0c19, 0x0000 },
+ { 0x0700, 0x0c1b, 0x0000 },
+ { 0x8700, 0x0c1e, 0x2000 },
+ { 0x0700, 0x0c1d, 0x0000 },
+ { 0x0700, 0x0c1f, 0x0000 },
+ { 0x8700, 0x0c28, 0x4000 },
+ { 0x8700, 0x0c24, 0x3000 },
+ { 0x8700, 0x0c22, 0x2000 },
+ { 0x0700, 0x0c21, 0x0000 },
+ { 0x0700, 0x0c23, 0x0000 },
+ { 0x8700, 0x0c26, 0x2000 },
+ { 0x0700, 0x0c25, 0x0000 },
+ { 0x0700, 0x0c27, 0x0000 },
+ { 0x8700, 0x0c2d, 0x3000 },
+ { 0x8700, 0x0c2b, 0x2000 },
+ { 0x0700, 0x0c2a, 0x0000 },
+ { 0x0700, 0x0c2c, 0x0000 },
+ { 0x8700, 0x0c2f, 0x2000 },
+ { 0x0700, 0x0c2e, 0x0000 },
+ { 0x0700, 0x0c30, 0x0000 },
+ { 0x8700, 0x0d0e, 0x8000 },
+ { 0x8700, 0x0ca1, 0x7000 },
+ { 0x8d00, 0x0c6c, 0x6000 },
+ { 0x8c00, 0x0c47, 0x5000 },
+ { 0x8c00, 0x0c3e, 0x4000 },
+ { 0x8700, 0x0c36, 0x3000 },
+ { 0x8700, 0x0c33, 0x2000 },
+ { 0x0700, 0x0c32, 0x0000 },
+ { 0x0700, 0x0c35, 0x0000 },
+ { 0x8700, 0x0c38, 0x2000 },
+ { 0x0700, 0x0c37, 0x0000 },
+ { 0x0700, 0x0c39, 0x0000 },
+ { 0x8a00, 0x0c42, 0x3000 },
+ { 0x8c00, 0x0c40, 0x2000 },
+ { 0x0c00, 0x0c3f, 0x0000 },
+ { 0x0a00, 0x0c41, 0x0000 },
+ { 0x8a00, 0x0c44, 0x2000 },
+ { 0x0a00, 0x0c43, 0x0000 },
+ { 0x0c00, 0x0c46, 0x0000 },
+ { 0x8700, 0x0c60, 0x4000 },
+ { 0x8c00, 0x0c4c, 0x3000 },
+ { 0x8c00, 0x0c4a, 0x2000 },
+ { 0x0c00, 0x0c48, 0x0000 },
+ { 0x0c00, 0x0c4b, 0x0000 },
+ { 0x8c00, 0x0c55, 0x2000 },
+ { 0x0c00, 0x0c4d, 0x0000 },
+ { 0x0c00, 0x0c56, 0x0000 },
+ { 0x8d00, 0x0c68, 0x3000 },
+ { 0x8d00, 0x0c66, 0x2000 },
+ { 0x0700, 0x0c61, 0x0000 },
+ { 0x0d00, 0x0c67, 0x0000 },
+ { 0x8d00, 0x0c6a, 0x2000 },
+ { 0x0d00, 0x0c69, 0x0000 },
+ { 0x0d00, 0x0c6b, 0x0000 },
+ { 0x8700, 0x0c90, 0x5000 },
+ { 0x8700, 0x0c87, 0x4000 },
+ { 0x8a00, 0x0c82, 0x3000 },
+ { 0x8d00, 0x0c6e, 0x2000 },
+ { 0x0d00, 0x0c6d, 0x0000 },
+ { 0x0d00, 0x0c6f, 0x0000 },
+ { 0x8700, 0x0c85, 0x2000 },
+ { 0x0a00, 0x0c83, 0x0000 },
+ { 0x0700, 0x0c86, 0x0000 },
+ { 0x8700, 0x0c8b, 0x3000 },
+ { 0x8700, 0x0c89, 0x2000 },
+ { 0x0700, 0x0c88, 0x0000 },
+ { 0x0700, 0x0c8a, 0x0000 },
+ { 0x8700, 0x0c8e, 0x2000 },
+ { 0x0700, 0x0c8c, 0x0000 },
+ { 0x0700, 0x0c8f, 0x0000 },
+ { 0x8700, 0x0c99, 0x4000 },
+ { 0x8700, 0x0c95, 0x3000 },
+ { 0x8700, 0x0c93, 0x2000 },
+ { 0x0700, 0x0c92, 0x0000 },
+ { 0x0700, 0x0c94, 0x0000 },
+ { 0x8700, 0x0c97, 0x2000 },
+ { 0x0700, 0x0c96, 0x0000 },
+ { 0x0700, 0x0c98, 0x0000 },
+ { 0x8700, 0x0c9d, 0x3000 },
+ { 0x8700, 0x0c9b, 0x2000 },
+ { 0x0700, 0x0c9a, 0x0000 },
+ { 0x0700, 0x0c9c, 0x0000 },
+ { 0x8700, 0x0c9f, 0x2000 },
+ { 0x0700, 0x0c9e, 0x0000 },
+ { 0x0700, 0x0ca0, 0x0000 },
+ { 0x8c00, 0x0cc6, 0x6000 },
+ { 0x8700, 0x0cb2, 0x5000 },
+ { 0x8700, 0x0caa, 0x4000 },
+ { 0x8700, 0x0ca5, 0x3000 },
+ { 0x8700, 0x0ca3, 0x2000 },
+ { 0x0700, 0x0ca2, 0x0000 },
+ { 0x0700, 0x0ca4, 0x0000 },
+ { 0x8700, 0x0ca7, 0x2000 },
+ { 0x0700, 0x0ca6, 0x0000 },
+ { 0x0700, 0x0ca8, 0x0000 },
+ { 0x8700, 0x0cae, 0x3000 },
+ { 0x8700, 0x0cac, 0x2000 },
+ { 0x0700, 0x0cab, 0x0000 },
+ { 0x0700, 0x0cad, 0x0000 },
+ { 0x8700, 0x0cb0, 0x2000 },
+ { 0x0700, 0x0caf, 0x0000 },
+ { 0x0700, 0x0cb1, 0x0000 },
+ { 0x8700, 0x0cbd, 0x4000 },
+ { 0x8700, 0x0cb7, 0x3000 },
+ { 0x8700, 0x0cb5, 0x2000 },
+ { 0x0700, 0x0cb3, 0x0000 },
+ { 0x0700, 0x0cb6, 0x0000 },
+ { 0x8700, 0x0cb9, 0x2000 },
+ { 0x0700, 0x0cb8, 0x0000 },
+ { 0x0c00, 0x0cbc, 0x0000 },
+ { 0x8a00, 0x0cc1, 0x3000 },
+ { 0x8c00, 0x0cbf, 0x2000 },
+ { 0x0a00, 0x0cbe, 0x0000 },
+ { 0x0a00, 0x0cc0, 0x0000 },
+ { 0x8a00, 0x0cc3, 0x2000 },
+ { 0x0a00, 0x0cc2, 0x0000 },
+ { 0x0a00, 0x0cc4, 0x0000 },
+ { 0x8d00, 0x0cea, 0x5000 },
+ { 0x8a00, 0x0cd6, 0x4000 },
+ { 0x8a00, 0x0ccb, 0x3000 },
+ { 0x8a00, 0x0cc8, 0x2000 },
+ { 0x0a00, 0x0cc7, 0x0000 },
+ { 0x0a00, 0x0cca, 0x0000 },
+ { 0x8c00, 0x0ccd, 0x2000 },
+ { 0x0c00, 0x0ccc, 0x0000 },
+ { 0x0a00, 0x0cd5, 0x0000 },
+ { 0x8d00, 0x0ce6, 0x3000 },
+ { 0x8700, 0x0ce0, 0x2000 },
+ { 0x0700, 0x0cde, 0x0000 },
+ { 0x0700, 0x0ce1, 0x0000 },
+ { 0x8d00, 0x0ce8, 0x2000 },
+ { 0x0d00, 0x0ce7, 0x0000 },
+ { 0x0d00, 0x0ce9, 0x0000 },
+ { 0x8700, 0x0d05, 0x4000 },
+ { 0x8d00, 0x0cee, 0x3000 },
+ { 0x8d00, 0x0cec, 0x2000 },
+ { 0x0d00, 0x0ceb, 0x0000 },
+ { 0x0d00, 0x0ced, 0x0000 },
+ { 0x8a00, 0x0d02, 0x2000 },
+ { 0x0d00, 0x0cef, 0x0000 },
+ { 0x0a00, 0x0d03, 0x0000 },
+ { 0x8700, 0x0d09, 0x3000 },
+ { 0x8700, 0x0d07, 0x2000 },
+ { 0x0700, 0x0d06, 0x0000 },
+ { 0x0700, 0x0d08, 0x0000 },
+ { 0x8700, 0x0d0b, 0x2000 },
+ { 0x0700, 0x0d0a, 0x0000 },
+ { 0x0700, 0x0d0c, 0x0000 },
+ { 0x8d00, 0x0d6c, 0x7000 },
+ { 0x8700, 0x0d30, 0x6000 },
+ { 0x8700, 0x0d1f, 0x5000 },
+ { 0x8700, 0x0d17, 0x4000 },
+ { 0x8700, 0x0d13, 0x3000 },
+ { 0x8700, 0x0d10, 0x2000 },
+ { 0x0700, 0x0d0f, 0x0000 },
+ { 0x0700, 0x0d12, 0x0000 },
+ { 0x8700, 0x0d15, 0x2000 },
+ { 0x0700, 0x0d14, 0x0000 },
+ { 0x0700, 0x0d16, 0x0000 },
+ { 0x8700, 0x0d1b, 0x3000 },
+ { 0x8700, 0x0d19, 0x2000 },
+ { 0x0700, 0x0d18, 0x0000 },
+ { 0x0700, 0x0d1a, 0x0000 },
+ { 0x8700, 0x0d1d, 0x2000 },
+ { 0x0700, 0x0d1c, 0x0000 },
+ { 0x0700, 0x0d1e, 0x0000 },
+ { 0x8700, 0x0d27, 0x4000 },
+ { 0x8700, 0x0d23, 0x3000 },
+ { 0x8700, 0x0d21, 0x2000 },
+ { 0x0700, 0x0d20, 0x0000 },
+ { 0x0700, 0x0d22, 0x0000 },
+ { 0x8700, 0x0d25, 0x2000 },
+ { 0x0700, 0x0d24, 0x0000 },
+ { 0x0700, 0x0d26, 0x0000 },
+ { 0x8700, 0x0d2c, 0x3000 },
+ { 0x8700, 0x0d2a, 0x2000 },
+ { 0x0700, 0x0d28, 0x0000 },
+ { 0x0700, 0x0d2b, 0x0000 },
+ { 0x8700, 0x0d2e, 0x2000 },
+ { 0x0700, 0x0d2d, 0x0000 },
+ { 0x0700, 0x0d2f, 0x0000 },
+ { 0x8a00, 0x0d46, 0x5000 },
+ { 0x8700, 0x0d38, 0x4000 },
+ { 0x8700, 0x0d34, 0x3000 },
+ { 0x8700, 0x0d32, 0x2000 },
+ { 0x0700, 0x0d31, 0x0000 },
+ { 0x0700, 0x0d33, 0x0000 },
+ { 0x8700, 0x0d36, 0x2000 },
+ { 0x0700, 0x0d35, 0x0000 },
+ { 0x0700, 0x0d37, 0x0000 },
+ { 0x8a00, 0x0d40, 0x3000 },
+ { 0x8a00, 0x0d3e, 0x2000 },
+ { 0x0700, 0x0d39, 0x0000 },
+ { 0x0a00, 0x0d3f, 0x0000 },
+ { 0x8c00, 0x0d42, 0x2000 },
+ { 0x0c00, 0x0d41, 0x0000 },
+ { 0x0c00, 0x0d43, 0x0000 },
+ { 0x8700, 0x0d60, 0x4000 },
+ { 0x8a00, 0x0d4b, 0x3000 },
+ { 0x8a00, 0x0d48, 0x2000 },
+ { 0x0a00, 0x0d47, 0x0000 },
+ { 0x0a00, 0x0d4a, 0x0000 },
+ { 0x8c00, 0x0d4d, 0x2000 },
+ { 0x0a00, 0x0d4c, 0x0000 },
+ { 0x0a00, 0x0d57, 0x0000 },
+ { 0x8d00, 0x0d68, 0x3000 },
+ { 0x8d00, 0x0d66, 0x2000 },
+ { 0x0700, 0x0d61, 0x0000 },
+ { 0x0d00, 0x0d67, 0x0000 },
+ { 0x8d00, 0x0d6a, 0x2000 },
+ { 0x0d00, 0x0d69, 0x0000 },
+ { 0x0d00, 0x0d6b, 0x0000 },
+ { 0x8700, 0x0da2, 0x6000 },
+ { 0x8700, 0x0d8f, 0x5000 },
+ { 0x8700, 0x0d87, 0x4000 },
+ { 0x8a00, 0x0d82, 0x3000 },
+ { 0x8d00, 0x0d6e, 0x2000 },
+ { 0x0d00, 0x0d6d, 0x0000 },
+ { 0x0d00, 0x0d6f, 0x0000 },
+ { 0x8700, 0x0d85, 0x2000 },
+ { 0x0a00, 0x0d83, 0x0000 },
+ { 0x0700, 0x0d86, 0x0000 },
+ { 0x8700, 0x0d8b, 0x3000 },
+ { 0x8700, 0x0d89, 0x2000 },
+ { 0x0700, 0x0d88, 0x0000 },
+ { 0x0700, 0x0d8a, 0x0000 },
+ { 0x8700, 0x0d8d, 0x2000 },
+ { 0x0700, 0x0d8c, 0x0000 },
+ { 0x0700, 0x0d8e, 0x0000 },
+ { 0x8700, 0x0d9a, 0x4000 },
+ { 0x8700, 0x0d93, 0x3000 },
+ { 0x8700, 0x0d91, 0x2000 },
+ { 0x0700, 0x0d90, 0x0000 },
+ { 0x0700, 0x0d92, 0x0000 },
+ { 0x8700, 0x0d95, 0x2000 },
+ { 0x0700, 0x0d94, 0x0000 },
+ { 0x0700, 0x0d96, 0x0000 },
+ { 0x8700, 0x0d9e, 0x3000 },
+ { 0x8700, 0x0d9c, 0x2000 },
+ { 0x0700, 0x0d9b, 0x0000 },
+ { 0x0700, 0x0d9d, 0x0000 },
+ { 0x8700, 0x0da0, 0x2000 },
+ { 0x0700, 0x0d9f, 0x0000 },
+ { 0x0700, 0x0da1, 0x0000 },
+ { 0x8700, 0x0db3, 0x5000 },
+ { 0x8700, 0x0daa, 0x4000 },
+ { 0x8700, 0x0da6, 0x3000 },
+ { 0x8700, 0x0da4, 0x2000 },
+ { 0x0700, 0x0da3, 0x0000 },
+ { 0x0700, 0x0da5, 0x0000 },
+ { 0x8700, 0x0da8, 0x2000 },
+ { 0x0700, 0x0da7, 0x0000 },
+ { 0x0700, 0x0da9, 0x0000 },
+ { 0x8700, 0x0dae, 0x3000 },
+ { 0x8700, 0x0dac, 0x2000 },
+ { 0x0700, 0x0dab, 0x0000 },
+ { 0x0700, 0x0dad, 0x0000 },
+ { 0x8700, 0x0db0, 0x2000 },
+ { 0x0700, 0x0daf, 0x0000 },
+ { 0x0700, 0x0db1, 0x0000 },
+ { 0x8700, 0x0dbb, 0x4000 },
+ { 0x8700, 0x0db7, 0x3000 },
+ { 0x8700, 0x0db5, 0x2000 },
+ { 0x0700, 0x0db4, 0x0000 },
+ { 0x0700, 0x0db6, 0x0000 },
+ { 0x8700, 0x0db9, 0x2000 },
+ { 0x0700, 0x0db8, 0x0000 },
+ { 0x0700, 0x0dba, 0x0000 },
+ { 0x8700, 0x0dc2, 0x3000 },
+ { 0x8700, 0x0dc0, 0x2000 },
+ { 0x0700, 0x0dbd, 0x0000 },
+ { 0x0700, 0x0dc1, 0x0000 },
+ { 0x8700, 0x0dc4, 0x2000 },
+ { 0x0700, 0x0dc3, 0x0000 },
+ { 0x0700, 0x0dc5, 0x0000 },
+ { 0x8700, 0x0f55, 0x9000 },
+ { 0x8700, 0x0ea5, 0x8000 },
+ { 0x8700, 0x0e2d, 0x7000 },
+ { 0x8700, 0x0e0d, 0x6000 },
+ { 0x8a00, 0x0ddf, 0x5000 },
+ { 0x8c00, 0x0dd6, 0x4000 },
+ { 0x8a00, 0x0dd1, 0x3000 },
+ { 0x8a00, 0x0dcf, 0x2000 },
+ { 0x0c00, 0x0dca, 0x0000 },
+ { 0x0a00, 0x0dd0, 0x0000 },
+ { 0x8c00, 0x0dd3, 0x2000 },
+ { 0x0c00, 0x0dd2, 0x0000 },
+ { 0x0c00, 0x0dd4, 0x0000 },
+ { 0x8a00, 0x0ddb, 0x3000 },
+ { 0x8a00, 0x0dd9, 0x2000 },
+ { 0x0a00, 0x0dd8, 0x0000 },
+ { 0x0a00, 0x0dda, 0x0000 },
+ { 0x8a00, 0x0ddd, 0x2000 },
+ { 0x0a00, 0x0ddc, 0x0000 },
+ { 0x0a00, 0x0dde, 0x0000 },
+ { 0x8700, 0x0e05, 0x4000 },
+ { 0x8700, 0x0e01, 0x3000 },
+ { 0x8a00, 0x0df3, 0x2000 },
+ { 0x0a00, 0x0df2, 0x0000 },
+ { 0x1500, 0x0df4, 0x0000 },
+ { 0x8700, 0x0e03, 0x2000 },
+ { 0x0700, 0x0e02, 0x0000 },
+ { 0x0700, 0x0e04, 0x0000 },
+ { 0x8700, 0x0e09, 0x3000 },
+ { 0x8700, 0x0e07, 0x2000 },
+ { 0x0700, 0x0e06, 0x0000 },
+ { 0x0700, 0x0e08, 0x0000 },
+ { 0x8700, 0x0e0b, 0x2000 },
+ { 0x0700, 0x0e0a, 0x0000 },
+ { 0x0700, 0x0e0c, 0x0000 },
+ { 0x8700, 0x0e1d, 0x5000 },
+ { 0x8700, 0x0e15, 0x4000 },
+ { 0x8700, 0x0e11, 0x3000 },
+ { 0x8700, 0x0e0f, 0x2000 },
+ { 0x0700, 0x0e0e, 0x0000 },
+ { 0x0700, 0x0e10, 0x0000 },
+ { 0x8700, 0x0e13, 0x2000 },
+ { 0x0700, 0x0e12, 0x0000 },
+ { 0x0700, 0x0e14, 0x0000 },
+ { 0x8700, 0x0e19, 0x3000 },
+ { 0x8700, 0x0e17, 0x2000 },
+ { 0x0700, 0x0e16, 0x0000 },
+ { 0x0700, 0x0e18, 0x0000 },
+ { 0x8700, 0x0e1b, 0x2000 },
+ { 0x0700, 0x0e1a, 0x0000 },
+ { 0x0700, 0x0e1c, 0x0000 },
+ { 0x8700, 0x0e25, 0x4000 },
+ { 0x8700, 0x0e21, 0x3000 },
+ { 0x8700, 0x0e1f, 0x2000 },
+ { 0x0700, 0x0e1e, 0x0000 },
+ { 0x0700, 0x0e20, 0x0000 },
+ { 0x8700, 0x0e23, 0x2000 },
+ { 0x0700, 0x0e22, 0x0000 },
+ { 0x0700, 0x0e24, 0x0000 },
+ { 0x8700, 0x0e29, 0x3000 },
+ { 0x8700, 0x0e27, 0x2000 },
+ { 0x0700, 0x0e26, 0x0000 },
+ { 0x0700, 0x0e28, 0x0000 },
+ { 0x8700, 0x0e2b, 0x2000 },
+ { 0x0700, 0x0e2a, 0x0000 },
+ { 0x0700, 0x0e2c, 0x0000 },
+ { 0x8d00, 0x0e51, 0x6000 },
+ { 0x8700, 0x0e41, 0x5000 },
+ { 0x8c00, 0x0e35, 0x4000 },
+ { 0x8c00, 0x0e31, 0x3000 },
+ { 0x8700, 0x0e2f, 0x2000 },
+ { 0x0700, 0x0e2e, 0x0000 },
+ { 0x0700, 0x0e30, 0x0000 },
+ { 0x8700, 0x0e33, 0x2000 },
+ { 0x0700, 0x0e32, 0x0000 },
+ { 0x0c00, 0x0e34, 0x0000 },
+ { 0x8c00, 0x0e39, 0x3000 },
+ { 0x8c00, 0x0e37, 0x2000 },
+ { 0x0c00, 0x0e36, 0x0000 },
+ { 0x0c00, 0x0e38, 0x0000 },
+ { 0x9700, 0x0e3f, 0x2000 },
+ { 0x0c00, 0x0e3a, 0x0000 },
+ { 0x0700, 0x0e40, 0x0000 },
+ { 0x8c00, 0x0e49, 0x4000 },
+ { 0x8700, 0x0e45, 0x3000 },
+ { 0x8700, 0x0e43, 0x2000 },
+ { 0x0700, 0x0e42, 0x0000 },
+ { 0x0700, 0x0e44, 0x0000 },
+ { 0x8c00, 0x0e47, 0x2000 },
+ { 0x0600, 0x0e46, 0x0000 },
+ { 0x0c00, 0x0e48, 0x0000 },
+ { 0x8c00, 0x0e4d, 0x3000 },
+ { 0x8c00, 0x0e4b, 0x2000 },
+ { 0x0c00, 0x0e4a, 0x0000 },
+ { 0x0c00, 0x0e4c, 0x0000 },
+ { 0x9500, 0x0e4f, 0x2000 },
+ { 0x0c00, 0x0e4e, 0x0000 },
+ { 0x0d00, 0x0e50, 0x0000 },
+ { 0x8700, 0x0e8a, 0x5000 },
+ { 0x8d00, 0x0e59, 0x4000 },
+ { 0x8d00, 0x0e55, 0x3000 },
+ { 0x8d00, 0x0e53, 0x2000 },
+ { 0x0d00, 0x0e52, 0x0000 },
+ { 0x0d00, 0x0e54, 0x0000 },
+ { 0x8d00, 0x0e57, 0x2000 },
+ { 0x0d00, 0x0e56, 0x0000 },
+ { 0x0d00, 0x0e58, 0x0000 },
+ { 0x8700, 0x0e82, 0x3000 },
+ { 0x9500, 0x0e5b, 0x2000 },
+ { 0x1500, 0x0e5a, 0x0000 },
+ { 0x0700, 0x0e81, 0x0000 },
+ { 0x8700, 0x0e87, 0x2000 },
+ { 0x0700, 0x0e84, 0x0000 },
+ { 0x0700, 0x0e88, 0x0000 },
+ { 0x8700, 0x0e9b, 0x4000 },
+ { 0x8700, 0x0e96, 0x3000 },
+ { 0x8700, 0x0e94, 0x2000 },
+ { 0x0700, 0x0e8d, 0x0000 },
+ { 0x0700, 0x0e95, 0x0000 },
+ { 0x8700, 0x0e99, 0x2000 },
+ { 0x0700, 0x0e97, 0x0000 },
+ { 0x0700, 0x0e9a, 0x0000 },
+ { 0x8700, 0x0e9f, 0x3000 },
+ { 0x8700, 0x0e9d, 0x2000 },
+ { 0x0700, 0x0e9c, 0x0000 },
+ { 0x0700, 0x0e9e, 0x0000 },
+ { 0x8700, 0x0ea2, 0x2000 },
+ { 0x0700, 0x0ea1, 0x0000 },
+ { 0x0700, 0x0ea3, 0x0000 },
+ { 0x9a00, 0x0f14, 0x7000 },
+ { 0x8d00, 0x0ed0, 0x6000 },
+ { 0x8c00, 0x0eb9, 0x5000 },
+ { 0x8c00, 0x0eb1, 0x4000 },
+ { 0x8700, 0x0ead, 0x3000 },
+ { 0x8700, 0x0eaa, 0x2000 },
+ { 0x0700, 0x0ea7, 0x0000 },
+ { 0x0700, 0x0eab, 0x0000 },
+ { 0x8700, 0x0eaf, 0x2000 },
+ { 0x0700, 0x0eae, 0x0000 },
+ { 0x0700, 0x0eb0, 0x0000 },
+ { 0x8c00, 0x0eb5, 0x3000 },
+ { 0x8700, 0x0eb3, 0x2000 },
+ { 0x0700, 0x0eb2, 0x0000 },
+ { 0x0c00, 0x0eb4, 0x0000 },
+ { 0x8c00, 0x0eb7, 0x2000 },
+ { 0x0c00, 0x0eb6, 0x0000 },
+ { 0x0c00, 0x0eb8, 0x0000 },
+ { 0x8700, 0x0ec4, 0x4000 },
+ { 0x8700, 0x0ec0, 0x3000 },
+ { 0x8c00, 0x0ebc, 0x2000 },
+ { 0x0c00, 0x0ebb, 0x0000 },
+ { 0x0700, 0x0ebd, 0x0000 },
+ { 0x8700, 0x0ec2, 0x2000 },
+ { 0x0700, 0x0ec1, 0x0000 },
+ { 0x0700, 0x0ec3, 0x0000 },
+ { 0x8c00, 0x0eca, 0x3000 },
+ { 0x8c00, 0x0ec8, 0x2000 },
+ { 0x0600, 0x0ec6, 0x0000 },
+ { 0x0c00, 0x0ec9, 0x0000 },
+ { 0x8c00, 0x0ecc, 0x2000 },
+ { 0x0c00, 0x0ecb, 0x0000 },
+ { 0x0c00, 0x0ecd, 0x0000 },
+ { 0x9500, 0x0f04, 0x5000 },
+ { 0x8d00, 0x0ed8, 0x4000 },
+ { 0x8d00, 0x0ed4, 0x3000 },
+ { 0x8d00, 0x0ed2, 0x2000 },
+ { 0x0d00, 0x0ed1, 0x0000 },
+ { 0x0d00, 0x0ed3, 0x0000 },
+ { 0x8d00, 0x0ed6, 0x2000 },
+ { 0x0d00, 0x0ed5, 0x0000 },
+ { 0x0d00, 0x0ed7, 0x0000 },
+ { 0x8700, 0x0f00, 0x3000 },
+ { 0x8700, 0x0edc, 0x2000 },
+ { 0x0d00, 0x0ed9, 0x0000 },
+ { 0x0700, 0x0edd, 0x0000 },
+ { 0x9a00, 0x0f02, 0x2000 },
+ { 0x1a00, 0x0f01, 0x0000 },
+ { 0x1a00, 0x0f03, 0x0000 },
+ { 0x9500, 0x0f0c, 0x4000 },
+ { 0x9500, 0x0f08, 0x3000 },
+ { 0x9500, 0x0f06, 0x2000 },
+ { 0x1500, 0x0f05, 0x0000 },
+ { 0x1500, 0x0f07, 0x0000 },
+ { 0x9500, 0x0f0a, 0x2000 },
+ { 0x1500, 0x0f09, 0x0000 },
+ { 0x1500, 0x0f0b, 0x0000 },
+ { 0x9500, 0x0f10, 0x3000 },
+ { 0x9500, 0x0f0e, 0x2000 },
+ { 0x1500, 0x0f0d, 0x0000 },
+ { 0x1500, 0x0f0f, 0x0000 },
+ { 0x9500, 0x0f12, 0x2000 },
+ { 0x1500, 0x0f11, 0x0000 },
+ { 0x1a00, 0x0f13, 0x0000 },
+ { 0x9a00, 0x0f34, 0x6000 },
+ { 0x8d00, 0x0f24, 0x5000 },
+ { 0x9a00, 0x0f1c, 0x4000 },
+ { 0x8c00, 0x0f18, 0x3000 },
+ { 0x9a00, 0x0f16, 0x2000 },
+ { 0x1a00, 0x0f15, 0x0000 },
+ { 0x1a00, 0x0f17, 0x0000 },
+ { 0x9a00, 0x0f1a, 0x2000 },
+ { 0x0c00, 0x0f19, 0x0000 },
+ { 0x1a00, 0x0f1b, 0x0000 },
+ { 0x8d00, 0x0f20, 0x3000 },
+ { 0x9a00, 0x0f1e, 0x2000 },
+ { 0x1a00, 0x0f1d, 0x0000 },
+ { 0x1a00, 0x0f1f, 0x0000 },
+ { 0x8d00, 0x0f22, 0x2000 },
+ { 0x0d00, 0x0f21, 0x0000 },
+ { 0x0d00, 0x0f23, 0x0000 },
+ { 0x8f00, 0x0f2c, 0x4000 },
+ { 0x8d00, 0x0f28, 0x3000 },
+ { 0x8d00, 0x0f26, 0x2000 },
+ { 0x0d00, 0x0f25, 0x0000 },
+ { 0x0d00, 0x0f27, 0x0000 },
+ { 0x8f00, 0x0f2a, 0x2000 },
+ { 0x0d00, 0x0f29, 0x0000 },
+ { 0x0f00, 0x0f2b, 0x0000 },
+ { 0x8f00, 0x0f30, 0x3000 },
+ { 0x8f00, 0x0f2e, 0x2000 },
+ { 0x0f00, 0x0f2d, 0x0000 },
+ { 0x0f00, 0x0f2f, 0x0000 },
+ { 0x8f00, 0x0f32, 0x2000 },
+ { 0x0f00, 0x0f31, 0x0000 },
+ { 0x0f00, 0x0f33, 0x0000 },
+ { 0x8700, 0x0f44, 0x5000 },
+ { 0x9600, 0x0f3c, 0x4000 },
+ { 0x9a00, 0x0f38, 0x3000 },
+ { 0x9a00, 0x0f36, 0x2000 },
+ { 0x0c00, 0x0f35, 0x0000 },
+ { 0x0c00, 0x0f37, 0x0000 },
+ { 0x9600, 0x0f3a, 0x2000 },
+ { 0x0c00, 0x0f39, 0x0000 },
+ { 0x1200, 0x0f3b, 0x0000 },
+ { 0x8700, 0x0f40, 0x3000 },
+ { 0x8a00, 0x0f3e, 0x2000 },
+ { 0x1200, 0x0f3d, 0x0000 },
+ { 0x0a00, 0x0f3f, 0x0000 },
+ { 0x8700, 0x0f42, 0x2000 },
+ { 0x0700, 0x0f41, 0x0000 },
+ { 0x0700, 0x0f43, 0x0000 },
+ { 0x8700, 0x0f4d, 0x4000 },
+ { 0x8700, 0x0f49, 0x3000 },
+ { 0x8700, 0x0f46, 0x2000 },
+ { 0x0700, 0x0f45, 0x0000 },
+ { 0x0700, 0x0f47, 0x0000 },
+ { 0x8700, 0x0f4b, 0x2000 },
+ { 0x0700, 0x0f4a, 0x0000 },
+ { 0x0700, 0x0f4c, 0x0000 },
+ { 0x8700, 0x0f51, 0x3000 },
+ { 0x8700, 0x0f4f, 0x2000 },
+ { 0x0700, 0x0f4e, 0x0000 },
+ { 0x0700, 0x0f50, 0x0000 },
+ { 0x8700, 0x0f53, 0x2000 },
+ { 0x0700, 0x0f52, 0x0000 },
+ { 0x0700, 0x0f54, 0x0000 },
+ { 0x8700, 0x1013, 0x8000 },
+ { 0x8c00, 0x0fa0, 0x7000 },
+ { 0x8c00, 0x0f7b, 0x6000 },
+ { 0x8700, 0x0f65, 0x5000 },
+ { 0x8700, 0x0f5d, 0x4000 },
+ { 0x8700, 0x0f59, 0x3000 },
+ { 0x8700, 0x0f57, 0x2000 },
+ { 0x0700, 0x0f56, 0x0000 },
+ { 0x0700, 0x0f58, 0x0000 },
+ { 0x8700, 0x0f5b, 0x2000 },
+ { 0x0700, 0x0f5a, 0x0000 },
+ { 0x0700, 0x0f5c, 0x0000 },
+ { 0x8700, 0x0f61, 0x3000 },
+ { 0x8700, 0x0f5f, 0x2000 },
+ { 0x0700, 0x0f5e, 0x0000 },
+ { 0x0700, 0x0f60, 0x0000 },
+ { 0x8700, 0x0f63, 0x2000 },
+ { 0x0700, 0x0f62, 0x0000 },
+ { 0x0700, 0x0f64, 0x0000 },
+ { 0x8c00, 0x0f73, 0x4000 },
+ { 0x8700, 0x0f69, 0x3000 },
+ { 0x8700, 0x0f67, 0x2000 },
+ { 0x0700, 0x0f66, 0x0000 },
+ { 0x0700, 0x0f68, 0x0000 },
+ { 0x8c00, 0x0f71, 0x2000 },
+ { 0x0700, 0x0f6a, 0x0000 },
+ { 0x0c00, 0x0f72, 0x0000 },
+ { 0x8c00, 0x0f77, 0x3000 },
+ { 0x8c00, 0x0f75, 0x2000 },
+ { 0x0c00, 0x0f74, 0x0000 },
+ { 0x0c00, 0x0f76, 0x0000 },
+ { 0x8c00, 0x0f79, 0x2000 },
+ { 0x0c00, 0x0f78, 0x0000 },
+ { 0x0c00, 0x0f7a, 0x0000 },
+ { 0x8700, 0x0f8b, 0x5000 },
+ { 0x8c00, 0x0f83, 0x4000 },
+ { 0x8a00, 0x0f7f, 0x3000 },
+ { 0x8c00, 0x0f7d, 0x2000 },
+ { 0x0c00, 0x0f7c, 0x0000 },
+ { 0x0c00, 0x0f7e, 0x0000 },
+ { 0x8c00, 0x0f81, 0x2000 },
+ { 0x0c00, 0x0f80, 0x0000 },
+ { 0x0c00, 0x0f82, 0x0000 },
+ { 0x8c00, 0x0f87, 0x3000 },
+ { 0x9500, 0x0f85, 0x2000 },
+ { 0x0c00, 0x0f84, 0x0000 },
+ { 0x0c00, 0x0f86, 0x0000 },
+ { 0x8700, 0x0f89, 0x2000 },
+ { 0x0700, 0x0f88, 0x0000 },
+ { 0x0700, 0x0f8a, 0x0000 },
+ { 0x8c00, 0x0f97, 0x4000 },
+ { 0x8c00, 0x0f93, 0x3000 },
+ { 0x8c00, 0x0f91, 0x2000 },
+ { 0x0c00, 0x0f90, 0x0000 },
+ { 0x0c00, 0x0f92, 0x0000 },
+ { 0x8c00, 0x0f95, 0x2000 },
+ { 0x0c00, 0x0f94, 0x0000 },
+ { 0x0c00, 0x0f96, 0x0000 },
+ { 0x8c00, 0x0f9c, 0x3000 },
+ { 0x8c00, 0x0f9a, 0x2000 },
+ { 0x0c00, 0x0f99, 0x0000 },
+ { 0x0c00, 0x0f9b, 0x0000 },
+ { 0x8c00, 0x0f9e, 0x2000 },
+ { 0x0c00, 0x0f9d, 0x0000 },
+ { 0x0c00, 0x0f9f, 0x0000 },
+ { 0x9a00, 0x0fc1, 0x6000 },
+ { 0x8c00, 0x0fb0, 0x5000 },
+ { 0x8c00, 0x0fa8, 0x4000 },
+ { 0x8c00, 0x0fa4, 0x3000 },
+ { 0x8c00, 0x0fa2, 0x2000 },
+ { 0x0c00, 0x0fa1, 0x0000 },
+ { 0x0c00, 0x0fa3, 0x0000 },
+ { 0x8c00, 0x0fa6, 0x2000 },
+ { 0x0c00, 0x0fa5, 0x0000 },
+ { 0x0c00, 0x0fa7, 0x0000 },
+ { 0x8c00, 0x0fac, 0x3000 },
+ { 0x8c00, 0x0faa, 0x2000 },
+ { 0x0c00, 0x0fa9, 0x0000 },
+ { 0x0c00, 0x0fab, 0x0000 },
+ { 0x8c00, 0x0fae, 0x2000 },
+ { 0x0c00, 0x0fad, 0x0000 },
+ { 0x0c00, 0x0faf, 0x0000 },
+ { 0x8c00, 0x0fb8, 0x4000 },
+ { 0x8c00, 0x0fb4, 0x3000 },
+ { 0x8c00, 0x0fb2, 0x2000 },
+ { 0x0c00, 0x0fb1, 0x0000 },
+ { 0x0c00, 0x0fb3, 0x0000 },
+ { 0x8c00, 0x0fb6, 0x2000 },
+ { 0x0c00, 0x0fb5, 0x0000 },
+ { 0x0c00, 0x0fb7, 0x0000 },
+ { 0x8c00, 0x0fbc, 0x3000 },
+ { 0x8c00, 0x0fba, 0x2000 },
+ { 0x0c00, 0x0fb9, 0x0000 },
+ { 0x0c00, 0x0fbb, 0x0000 },
+ { 0x9a00, 0x0fbf, 0x2000 },
+ { 0x1a00, 0x0fbe, 0x0000 },
+ { 0x1a00, 0x0fc0, 0x0000 },
+ { 0x8700, 0x1003, 0x5000 },
+ { 0x9a00, 0x0fc9, 0x4000 },
+ { 0x9a00, 0x0fc5, 0x3000 },
+ { 0x9a00, 0x0fc3, 0x2000 },
+ { 0x1a00, 0x0fc2, 0x0000 },
+ { 0x1a00, 0x0fc4, 0x0000 },
+ { 0x9a00, 0x0fc7, 0x2000 },
+ { 0x0c00, 0x0fc6, 0x0000 },
+ { 0x1a00, 0x0fc8, 0x0000 },
+ { 0x9a00, 0x0fcf, 0x3000 },
+ { 0x9a00, 0x0fcb, 0x2000 },
+ { 0x1a00, 0x0fca, 0x0000 },
+ { 0x1a00, 0x0fcc, 0x0000 },
+ { 0x8700, 0x1001, 0x2000 },
+ { 0x0700, 0x1000, 0x0000 },
+ { 0x0700, 0x1002, 0x0000 },
+ { 0x8700, 0x100b, 0x4000 },
+ { 0x8700, 0x1007, 0x3000 },
+ { 0x8700, 0x1005, 0x2000 },
+ { 0x0700, 0x1004, 0x0000 },
+ { 0x0700, 0x1006, 0x0000 },
+ { 0x8700, 0x1009, 0x2000 },
+ { 0x0700, 0x1008, 0x0000 },
+ { 0x0700, 0x100a, 0x0000 },
+ { 0x8700, 0x100f, 0x3000 },
+ { 0x8700, 0x100d, 0x2000 },
+ { 0x0700, 0x100c, 0x0000 },
+ { 0x0700, 0x100e, 0x0000 },
+ { 0x8700, 0x1011, 0x2000 },
+ { 0x0700, 0x1010, 0x0000 },
+ { 0x0700, 0x1012, 0x0000 },
+ { 0x8900, 0x10a5, 0x7000 },
+ { 0x8c00, 0x1039, 0x6000 },
+ { 0x8700, 0x1024, 0x5000 },
+ { 0x8700, 0x101b, 0x4000 },
+ { 0x8700, 0x1017, 0x3000 },
+ { 0x8700, 0x1015, 0x2000 },
+ { 0x0700, 0x1014, 0x0000 },
+ { 0x0700, 0x1016, 0x0000 },
+ { 0x8700, 0x1019, 0x2000 },
+ { 0x0700, 0x1018, 0x0000 },
+ { 0x0700, 0x101a, 0x0000 },
+ { 0x8700, 0x101f, 0x3000 },
+ { 0x8700, 0x101d, 0x2000 },
+ { 0x0700, 0x101c, 0x0000 },
+ { 0x0700, 0x101e, 0x0000 },
+ { 0x8700, 0x1021, 0x2000 },
+ { 0x0700, 0x1020, 0x0000 },
+ { 0x0700, 0x1023, 0x0000 },
+ { 0x8c00, 0x102e, 0x4000 },
+ { 0x8700, 0x1029, 0x3000 },
+ { 0x8700, 0x1026, 0x2000 },
+ { 0x0700, 0x1025, 0x0000 },
+ { 0x0700, 0x1027, 0x0000 },
+ { 0x8a00, 0x102c, 0x2000 },
+ { 0x0700, 0x102a, 0x0000 },
+ { 0x0c00, 0x102d, 0x0000 },
+ { 0x8c00, 0x1032, 0x3000 },
+ { 0x8c00, 0x1030, 0x2000 },
+ { 0x0c00, 0x102f, 0x0000 },
+ { 0x0a00, 0x1031, 0x0000 },
+ { 0x8c00, 0x1037, 0x2000 },
+ { 0x0c00, 0x1036, 0x0000 },
+ { 0x0a00, 0x1038, 0x0000 },
+ { 0x9500, 0x104f, 0x5000 },
+ { 0x8d00, 0x1047, 0x4000 },
+ { 0x8d00, 0x1043, 0x3000 },
+ { 0x8d00, 0x1041, 0x2000 },
+ { 0x0d00, 0x1040, 0x0000 },
+ { 0x0d00, 0x1042, 0x0000 },
+ { 0x8d00, 0x1045, 0x2000 },
+ { 0x0d00, 0x1044, 0x0000 },
+ { 0x0d00, 0x1046, 0x0000 },
+ { 0x9500, 0x104b, 0x3000 },
+ { 0x8d00, 0x1049, 0x2000 },
+ { 0x0d00, 0x1048, 0x0000 },
+ { 0x1500, 0x104a, 0x0000 },
+ { 0x9500, 0x104d, 0x2000 },
+ { 0x1500, 0x104c, 0x0000 },
+ { 0x1500, 0x104e, 0x0000 },
+ { 0x8a00, 0x1057, 0x4000 },
+ { 0x8700, 0x1053, 0x3000 },
+ { 0x8700, 0x1051, 0x2000 },
+ { 0x0700, 0x1050, 0x0000 },
+ { 0x0700, 0x1052, 0x0000 },
+ { 0x8700, 0x1055, 0x2000 },
+ { 0x0700, 0x1054, 0x0000 },
+ { 0x0a00, 0x1056, 0x0000 },
+ { 0x8900, 0x10a1, 0x3000 },
+ { 0x8c00, 0x1059, 0x2000 },
+ { 0x0c00, 0x1058, 0x0000 },
+ { 0x0900, 0x10a0, 0x0000 },
+ { 0x8900, 0x10a3, 0x2000 },
+ { 0x0900, 0x10a2, 0x0000 },
+ { 0x0900, 0x10a4, 0x0000 },
+ { 0x8900, 0x10c5, 0x6000 },
+ { 0x8900, 0x10b5, 0x5000 },
+ { 0x8900, 0x10ad, 0x4000 },
+ { 0x8900, 0x10a9, 0x3000 },
+ { 0x8900, 0x10a7, 0x2000 },
+ { 0x0900, 0x10a6, 0x0000 },
+ { 0x0900, 0x10a8, 0x0000 },
+ { 0x8900, 0x10ab, 0x2000 },
+ { 0x0900, 0x10aa, 0x0000 },
+ { 0x0900, 0x10ac, 0x0000 },
+ { 0x8900, 0x10b1, 0x3000 },
+ { 0x8900, 0x10af, 0x2000 },
+ { 0x0900, 0x10ae, 0x0000 },
+ { 0x0900, 0x10b0, 0x0000 },
+ { 0x8900, 0x10b3, 0x2000 },
+ { 0x0900, 0x10b2, 0x0000 },
+ { 0x0900, 0x10b4, 0x0000 },
+ { 0x8900, 0x10bd, 0x4000 },
+ { 0x8900, 0x10b9, 0x3000 },
+ { 0x8900, 0x10b7, 0x2000 },
+ { 0x0900, 0x10b6, 0x0000 },
+ { 0x0900, 0x10b8, 0x0000 },
+ { 0x8900, 0x10bb, 0x2000 },
+ { 0x0900, 0x10ba, 0x0000 },
+ { 0x0900, 0x10bc, 0x0000 },
+ { 0x8900, 0x10c1, 0x3000 },
+ { 0x8900, 0x10bf, 0x2000 },
+ { 0x0900, 0x10be, 0x0000 },
+ { 0x0900, 0x10c0, 0x0000 },
+ { 0x8900, 0x10c3, 0x2000 },
+ { 0x0900, 0x10c2, 0x0000 },
+ { 0x0900, 0x10c4, 0x0000 },
+ { 0x8700, 0x10df, 0x5000 },
+ { 0x8700, 0x10d7, 0x4000 },
+ { 0x8700, 0x10d3, 0x3000 },
+ { 0x8700, 0x10d1, 0x2000 },
+ { 0x0700, 0x10d0, 0x0000 },
+ { 0x0700, 0x10d2, 0x0000 },
+ { 0x8700, 0x10d5, 0x2000 },
+ { 0x0700, 0x10d4, 0x0000 },
+ { 0x0700, 0x10d6, 0x0000 },
+ { 0x8700, 0x10db, 0x3000 },
+ { 0x8700, 0x10d9, 0x2000 },
+ { 0x0700, 0x10d8, 0x0000 },
+ { 0x0700, 0x10da, 0x0000 },
+ { 0x8700, 0x10dd, 0x2000 },
+ { 0x0700, 0x10dc, 0x0000 },
+ { 0x0700, 0x10de, 0x0000 },
+ { 0x8700, 0x10e7, 0x4000 },
+ { 0x8700, 0x10e3, 0x3000 },
+ { 0x8700, 0x10e1, 0x2000 },
+ { 0x0700, 0x10e0, 0x0000 },
+ { 0x0700, 0x10e2, 0x0000 },
+ { 0x8700, 0x10e5, 0x2000 },
+ { 0x0700, 0x10e4, 0x0000 },
+ { 0x0700, 0x10e6, 0x0000 },
+ { 0x8700, 0x10eb, 0x3000 },
+ { 0x8700, 0x10e9, 0x2000 },
+ { 0x0700, 0x10e8, 0x0000 },
+ { 0x0700, 0x10ea, 0x0000 },
+ { 0x8700, 0x10ed, 0x2000 },
+ { 0x0700, 0x10ec, 0x0000 },
+ { 0x0700, 0x10ee, 0x0000 },
+ { 0x8700, 0x1322, 0xa000 },
+ { 0x8700, 0x1205, 0x9000 },
+ { 0x8700, 0x117a, 0x8000 },
+ { 0x8700, 0x1135, 0x7000 },
+ { 0x8700, 0x1115, 0x6000 },
+ { 0x8700, 0x1105, 0x5000 },
+ { 0x8700, 0x10f7, 0x4000 },
+ { 0x8700, 0x10f3, 0x3000 },
+ { 0x8700, 0x10f1, 0x2000 },
+ { 0x0700, 0x10f0, 0x0000 },
+ { 0x0700, 0x10f2, 0x0000 },
+ { 0x8700, 0x10f5, 0x2000 },
+ { 0x0700, 0x10f4, 0x0000 },
+ { 0x0700, 0x10f6, 0x0000 },
+ { 0x8700, 0x1101, 0x3000 },
+ { 0x9500, 0x10fb, 0x2000 },
+ { 0x0700, 0x10f8, 0x0000 },
+ { 0x0700, 0x1100, 0x0000 },
+ { 0x8700, 0x1103, 0x2000 },
+ { 0x0700, 0x1102, 0x0000 },
+ { 0x0700, 0x1104, 0x0000 },
+ { 0x8700, 0x110d, 0x4000 },
+ { 0x8700, 0x1109, 0x3000 },
+ { 0x8700, 0x1107, 0x2000 },
+ { 0x0700, 0x1106, 0x0000 },
+ { 0x0700, 0x1108, 0x0000 },
+ { 0x8700, 0x110b, 0x2000 },
+ { 0x0700, 0x110a, 0x0000 },
+ { 0x0700, 0x110c, 0x0000 },
+ { 0x8700, 0x1111, 0x3000 },
+ { 0x8700, 0x110f, 0x2000 },
+ { 0x0700, 0x110e, 0x0000 },
+ { 0x0700, 0x1110, 0x0000 },
+ { 0x8700, 0x1113, 0x2000 },
+ { 0x0700, 0x1112, 0x0000 },
+ { 0x0700, 0x1114, 0x0000 },
+ { 0x8700, 0x1125, 0x5000 },
+ { 0x8700, 0x111d, 0x4000 },
+ { 0x8700, 0x1119, 0x3000 },
+ { 0x8700, 0x1117, 0x2000 },
+ { 0x0700, 0x1116, 0x0000 },
+ { 0x0700, 0x1118, 0x0000 },
+ { 0x8700, 0x111b, 0x2000 },
+ { 0x0700, 0x111a, 0x0000 },
+ { 0x0700, 0x111c, 0x0000 },
+ { 0x8700, 0x1121, 0x3000 },
+ { 0x8700, 0x111f, 0x2000 },
+ { 0x0700, 0x111e, 0x0000 },
+ { 0x0700, 0x1120, 0x0000 },
+ { 0x8700, 0x1123, 0x2000 },
+ { 0x0700, 0x1122, 0x0000 },
+ { 0x0700, 0x1124, 0x0000 },
+ { 0x8700, 0x112d, 0x4000 },
+ { 0x8700, 0x1129, 0x3000 },
+ { 0x8700, 0x1127, 0x2000 },
+ { 0x0700, 0x1126, 0x0000 },
+ { 0x0700, 0x1128, 0x0000 },
+ { 0x8700, 0x112b, 0x2000 },
+ { 0x0700, 0x112a, 0x0000 },
+ { 0x0700, 0x112c, 0x0000 },
+ { 0x8700, 0x1131, 0x3000 },
+ { 0x8700, 0x112f, 0x2000 },
+ { 0x0700, 0x112e, 0x0000 },
+ { 0x0700, 0x1130, 0x0000 },
+ { 0x8700, 0x1133, 0x2000 },
+ { 0x0700, 0x1132, 0x0000 },
+ { 0x0700, 0x1134, 0x0000 },
+ { 0x8700, 0x1155, 0x6000 },
+ { 0x8700, 0x1145, 0x5000 },
+ { 0x8700, 0x113d, 0x4000 },
+ { 0x8700, 0x1139, 0x3000 },
+ { 0x8700, 0x1137, 0x2000 },
+ { 0x0700, 0x1136, 0x0000 },
+ { 0x0700, 0x1138, 0x0000 },
+ { 0x8700, 0x113b, 0x2000 },
+ { 0x0700, 0x113a, 0x0000 },
+ { 0x0700, 0x113c, 0x0000 },
+ { 0x8700, 0x1141, 0x3000 },
+ { 0x8700, 0x113f, 0x2000 },
+ { 0x0700, 0x113e, 0x0000 },
+ { 0x0700, 0x1140, 0x0000 },
+ { 0x8700, 0x1143, 0x2000 },
+ { 0x0700, 0x1142, 0x0000 },
+ { 0x0700, 0x1144, 0x0000 },
+ { 0x8700, 0x114d, 0x4000 },
+ { 0x8700, 0x1149, 0x3000 },
+ { 0x8700, 0x1147, 0x2000 },
+ { 0x0700, 0x1146, 0x0000 },
+ { 0x0700, 0x1148, 0x0000 },
+ { 0x8700, 0x114b, 0x2000 },
+ { 0x0700, 0x114a, 0x0000 },
+ { 0x0700, 0x114c, 0x0000 },
+ { 0x8700, 0x1151, 0x3000 },
+ { 0x8700, 0x114f, 0x2000 },
+ { 0x0700, 0x114e, 0x0000 },
+ { 0x0700, 0x1150, 0x0000 },
+ { 0x8700, 0x1153, 0x2000 },
+ { 0x0700, 0x1152, 0x0000 },
+ { 0x0700, 0x1154, 0x0000 },
+ { 0x8700, 0x116a, 0x5000 },
+ { 0x8700, 0x1162, 0x4000 },
+ { 0x8700, 0x1159, 0x3000 },
+ { 0x8700, 0x1157, 0x2000 },
+ { 0x0700, 0x1156, 0x0000 },
+ { 0x0700, 0x1158, 0x0000 },
+ { 0x8700, 0x1160, 0x2000 },
+ { 0x0700, 0x115f, 0x0000 },
+ { 0x0700, 0x1161, 0x0000 },
+ { 0x8700, 0x1166, 0x3000 },
+ { 0x8700, 0x1164, 0x2000 },
+ { 0x0700, 0x1163, 0x0000 },
+ { 0x0700, 0x1165, 0x0000 },
+ { 0x8700, 0x1168, 0x2000 },
+ { 0x0700, 0x1167, 0x0000 },
+ { 0x0700, 0x1169, 0x0000 },
+ { 0x8700, 0x1172, 0x4000 },
+ { 0x8700, 0x116e, 0x3000 },
+ { 0x8700, 0x116c, 0x2000 },
+ { 0x0700, 0x116b, 0x0000 },
+ { 0x0700, 0x116d, 0x0000 },
+ { 0x8700, 0x1170, 0x2000 },
+ { 0x0700, 0x116f, 0x0000 },
+ { 0x0700, 0x1171, 0x0000 },
+ { 0x8700, 0x1176, 0x3000 },
+ { 0x8700, 0x1174, 0x2000 },
+ { 0x0700, 0x1173, 0x0000 },
+ { 0x0700, 0x1175, 0x0000 },
+ { 0x8700, 0x1178, 0x2000 },
+ { 0x0700, 0x1177, 0x0000 },
+ { 0x0700, 0x1179, 0x0000 },
+ { 0x8700, 0x11bf, 0x7000 },
+ { 0x8700, 0x119a, 0x6000 },
+ { 0x8700, 0x118a, 0x5000 },
+ { 0x8700, 0x1182, 0x4000 },
+ { 0x8700, 0x117e, 0x3000 },
+ { 0x8700, 0x117c, 0x2000 },
+ { 0x0700, 0x117b, 0x0000 },
+ { 0x0700, 0x117d, 0x0000 },
+ { 0x8700, 0x1180, 0x2000 },
+ { 0x0700, 0x117f, 0x0000 },
+ { 0x0700, 0x1181, 0x0000 },
+ { 0x8700, 0x1186, 0x3000 },
+ { 0x8700, 0x1184, 0x2000 },
+ { 0x0700, 0x1183, 0x0000 },
+ { 0x0700, 0x1185, 0x0000 },
+ { 0x8700, 0x1188, 0x2000 },
+ { 0x0700, 0x1187, 0x0000 },
+ { 0x0700, 0x1189, 0x0000 },
+ { 0x8700, 0x1192, 0x4000 },
+ { 0x8700, 0x118e, 0x3000 },
+ { 0x8700, 0x118c, 0x2000 },
+ { 0x0700, 0x118b, 0x0000 },
+ { 0x0700, 0x118d, 0x0000 },
+ { 0x8700, 0x1190, 0x2000 },
+ { 0x0700, 0x118f, 0x0000 },
+ { 0x0700, 0x1191, 0x0000 },
+ { 0x8700, 0x1196, 0x3000 },
+ { 0x8700, 0x1194, 0x2000 },
+ { 0x0700, 0x1193, 0x0000 },
+ { 0x0700, 0x1195, 0x0000 },
+ { 0x8700, 0x1198, 0x2000 },
+ { 0x0700, 0x1197, 0x0000 },
+ { 0x0700, 0x1199, 0x0000 },
+ { 0x8700, 0x11af, 0x5000 },
+ { 0x8700, 0x11a2, 0x4000 },
+ { 0x8700, 0x119e, 0x3000 },
+ { 0x8700, 0x119c, 0x2000 },
+ { 0x0700, 0x119b, 0x0000 },
+ { 0x0700, 0x119d, 0x0000 },
+ { 0x8700, 0x11a0, 0x2000 },
+ { 0x0700, 0x119f, 0x0000 },
+ { 0x0700, 0x11a1, 0x0000 },
+ { 0x8700, 0x11ab, 0x3000 },
+ { 0x8700, 0x11a9, 0x2000 },
+ { 0x0700, 0x11a8, 0x0000 },
+ { 0x0700, 0x11aa, 0x0000 },
+ { 0x8700, 0x11ad, 0x2000 },
+ { 0x0700, 0x11ac, 0x0000 },
+ { 0x0700, 0x11ae, 0x0000 },
+ { 0x8700, 0x11b7, 0x4000 },
+ { 0x8700, 0x11b3, 0x3000 },
+ { 0x8700, 0x11b1, 0x2000 },
+ { 0x0700, 0x11b0, 0x0000 },
+ { 0x0700, 0x11b2, 0x0000 },
+ { 0x8700, 0x11b5, 0x2000 },
+ { 0x0700, 0x11b4, 0x0000 },
+ { 0x0700, 0x11b6, 0x0000 },
+ { 0x8700, 0x11bb, 0x3000 },
+ { 0x8700, 0x11b9, 0x2000 },
+ { 0x0700, 0x11b8, 0x0000 },
+ { 0x0700, 0x11ba, 0x0000 },
+ { 0x8700, 0x11bd, 0x2000 },
+ { 0x0700, 0x11bc, 0x0000 },
+ { 0x0700, 0x11be, 0x0000 },
+ { 0x8700, 0x11df, 0x6000 },
+ { 0x8700, 0x11cf, 0x5000 },
+ { 0x8700, 0x11c7, 0x4000 },
+ { 0x8700, 0x11c3, 0x3000 },
+ { 0x8700, 0x11c1, 0x2000 },
+ { 0x0700, 0x11c0, 0x0000 },
+ { 0x0700, 0x11c2, 0x0000 },
+ { 0x8700, 0x11c5, 0x2000 },
+ { 0x0700, 0x11c4, 0x0000 },
+ { 0x0700, 0x11c6, 0x0000 },
+ { 0x8700, 0x11cb, 0x3000 },
+ { 0x8700, 0x11c9, 0x2000 },
+ { 0x0700, 0x11c8, 0x0000 },
+ { 0x0700, 0x11ca, 0x0000 },
+ { 0x8700, 0x11cd, 0x2000 },
+ { 0x0700, 0x11cc, 0x0000 },
+ { 0x0700, 0x11ce, 0x0000 },
+ { 0x8700, 0x11d7, 0x4000 },
+ { 0x8700, 0x11d3, 0x3000 },
+ { 0x8700, 0x11d1, 0x2000 },
+ { 0x0700, 0x11d0, 0x0000 },
+ { 0x0700, 0x11d2, 0x0000 },
+ { 0x8700, 0x11d5, 0x2000 },
+ { 0x0700, 0x11d4, 0x0000 },
+ { 0x0700, 0x11d6, 0x0000 },
+ { 0x8700, 0x11db, 0x3000 },
+ { 0x8700, 0x11d9, 0x2000 },
+ { 0x0700, 0x11d8, 0x0000 },
+ { 0x0700, 0x11da, 0x0000 },
+ { 0x8700, 0x11dd, 0x2000 },
+ { 0x0700, 0x11dc, 0x0000 },
+ { 0x0700, 0x11de, 0x0000 },
+ { 0x8700, 0x11ef, 0x5000 },
+ { 0x8700, 0x11e7, 0x4000 },
+ { 0x8700, 0x11e3, 0x3000 },
+ { 0x8700, 0x11e1, 0x2000 },
+ { 0x0700, 0x11e0, 0x0000 },
+ { 0x0700, 0x11e2, 0x0000 },
+ { 0x8700, 0x11e5, 0x2000 },
+ { 0x0700, 0x11e4, 0x0000 },
+ { 0x0700, 0x11e6, 0x0000 },
+ { 0x8700, 0x11eb, 0x3000 },
+ { 0x8700, 0x11e9, 0x2000 },
+ { 0x0700, 0x11e8, 0x0000 },
+ { 0x0700, 0x11ea, 0x0000 },
+ { 0x8700, 0x11ed, 0x2000 },
+ { 0x0700, 0x11ec, 0x0000 },
+ { 0x0700, 0x11ee, 0x0000 },
+ { 0x8700, 0x11f7, 0x4000 },
+ { 0x8700, 0x11f3, 0x3000 },
+ { 0x8700, 0x11f1, 0x2000 },
+ { 0x0700, 0x11f0, 0x0000 },
+ { 0x0700, 0x11f2, 0x0000 },
+ { 0x8700, 0x11f5, 0x2000 },
+ { 0x0700, 0x11f4, 0x0000 },
+ { 0x0700, 0x11f6, 0x0000 },
+ { 0x8700, 0x1201, 0x3000 },
+ { 0x8700, 0x11f9, 0x2000 },
+ { 0x0700, 0x11f8, 0x0000 },
+ { 0x0700, 0x1200, 0x0000 },
+ { 0x8700, 0x1203, 0x2000 },
+ { 0x0700, 0x1202, 0x0000 },
+ { 0x0700, 0x1204, 0x0000 },
+ { 0x8700, 0x1292, 0x8000 },
+ { 0x8700, 0x1246, 0x7000 },
+ { 0x8700, 0x1226, 0x6000 },
+ { 0x8700, 0x1216, 0x5000 },
+ { 0x8700, 0x120e, 0x4000 },
+ { 0x8700, 0x120a, 0x3000 },
+ { 0x8700, 0x1208, 0x2000 },
+ { 0x0700, 0x1206, 0x0000 },
+ { 0x0700, 0x1209, 0x0000 },
+ { 0x8700, 0x120c, 0x2000 },
+ { 0x0700, 0x120b, 0x0000 },
+ { 0x0700, 0x120d, 0x0000 },
+ { 0x8700, 0x1212, 0x3000 },
+ { 0x8700, 0x1210, 0x2000 },
+ { 0x0700, 0x120f, 0x0000 },
+ { 0x0700, 0x1211, 0x0000 },
+ { 0x8700, 0x1214, 0x2000 },
+ { 0x0700, 0x1213, 0x0000 },
+ { 0x0700, 0x1215, 0x0000 },
+ { 0x8700, 0x121e, 0x4000 },
+ { 0x8700, 0x121a, 0x3000 },
+ { 0x8700, 0x1218, 0x2000 },
+ { 0x0700, 0x1217, 0x0000 },
+ { 0x0700, 0x1219, 0x0000 },
+ { 0x8700, 0x121c, 0x2000 },
+ { 0x0700, 0x121b, 0x0000 },
+ { 0x0700, 0x121d, 0x0000 },
+ { 0x8700, 0x1222, 0x3000 },
+ { 0x8700, 0x1220, 0x2000 },
+ { 0x0700, 0x121f, 0x0000 },
+ { 0x0700, 0x1221, 0x0000 },
+ { 0x8700, 0x1224, 0x2000 },
+ { 0x0700, 0x1223, 0x0000 },
+ { 0x0700, 0x1225, 0x0000 },
+ { 0x8700, 0x1236, 0x5000 },
+ { 0x8700, 0x122e, 0x4000 },
+ { 0x8700, 0x122a, 0x3000 },
+ { 0x8700, 0x1228, 0x2000 },
+ { 0x0700, 0x1227, 0x0000 },
+ { 0x0700, 0x1229, 0x0000 },
+ { 0x8700, 0x122c, 0x2000 },
+ { 0x0700, 0x122b, 0x0000 },
+ { 0x0700, 0x122d, 0x0000 },
+ { 0x8700, 0x1232, 0x3000 },
+ { 0x8700, 0x1230, 0x2000 },
+ { 0x0700, 0x122f, 0x0000 },
+ { 0x0700, 0x1231, 0x0000 },
+ { 0x8700, 0x1234, 0x2000 },
+ { 0x0700, 0x1233, 0x0000 },
+ { 0x0700, 0x1235, 0x0000 },
+ { 0x8700, 0x123e, 0x4000 },
+ { 0x8700, 0x123a, 0x3000 },
+ { 0x8700, 0x1238, 0x2000 },
+ { 0x0700, 0x1237, 0x0000 },
+ { 0x0700, 0x1239, 0x0000 },
+ { 0x8700, 0x123c, 0x2000 },
+ { 0x0700, 0x123b, 0x0000 },
+ { 0x0700, 0x123d, 0x0000 },
+ { 0x8700, 0x1242, 0x3000 },
+ { 0x8700, 0x1240, 0x2000 },
+ { 0x0700, 0x123f, 0x0000 },
+ { 0x0700, 0x1241, 0x0000 },
+ { 0x8700, 0x1244, 0x2000 },
+ { 0x0700, 0x1243, 0x0000 },
+ { 0x0700, 0x1245, 0x0000 },
+ { 0x8700, 0x126e, 0x6000 },
+ { 0x8700, 0x125c, 0x5000 },
+ { 0x8700, 0x1252, 0x4000 },
+ { 0x8700, 0x124c, 0x3000 },
+ { 0x8700, 0x124a, 0x2000 },
+ { 0x0700, 0x1248, 0x0000 },
+ { 0x0700, 0x124b, 0x0000 },
+ { 0x8700, 0x1250, 0x2000 },
+ { 0x0700, 0x124d, 0x0000 },
+ { 0x0700, 0x1251, 0x0000 },
+ { 0x8700, 0x1256, 0x3000 },
+ { 0x8700, 0x1254, 0x2000 },
+ { 0x0700, 0x1253, 0x0000 },
+ { 0x0700, 0x1255, 0x0000 },
+ { 0x8700, 0x125a, 0x2000 },
+ { 0x0700, 0x1258, 0x0000 },
+ { 0x0700, 0x125b, 0x0000 },
+ { 0x8700, 0x1266, 0x4000 },
+ { 0x8700, 0x1262, 0x3000 },
+ { 0x8700, 0x1260, 0x2000 },
+ { 0x0700, 0x125d, 0x0000 },
+ { 0x0700, 0x1261, 0x0000 },
+ { 0x8700, 0x1264, 0x2000 },
+ { 0x0700, 0x1263, 0x0000 },
+ { 0x0700, 0x1265, 0x0000 },
+ { 0x8700, 0x126a, 0x3000 },
+ { 0x8700, 0x1268, 0x2000 },
+ { 0x0700, 0x1267, 0x0000 },
+ { 0x0700, 0x1269, 0x0000 },
+ { 0x8700, 0x126c, 0x2000 },
+ { 0x0700, 0x126b, 0x0000 },
+ { 0x0700, 0x126d, 0x0000 },
+ { 0x8700, 0x127e, 0x5000 },
+ { 0x8700, 0x1276, 0x4000 },
+ { 0x8700, 0x1272, 0x3000 },
+ { 0x8700, 0x1270, 0x2000 },
+ { 0x0700, 0x126f, 0x0000 },
+ { 0x0700, 0x1271, 0x0000 },
+ { 0x8700, 0x1274, 0x2000 },
+ { 0x0700, 0x1273, 0x0000 },
+ { 0x0700, 0x1275, 0x0000 },
+ { 0x8700, 0x127a, 0x3000 },
+ { 0x8700, 0x1278, 0x2000 },
+ { 0x0700, 0x1277, 0x0000 },
+ { 0x0700, 0x1279, 0x0000 },
+ { 0x8700, 0x127c, 0x2000 },
+ { 0x0700, 0x127b, 0x0000 },
+ { 0x0700, 0x127d, 0x0000 },
+ { 0x8700, 0x1286, 0x4000 },
+ { 0x8700, 0x1282, 0x3000 },
+ { 0x8700, 0x1280, 0x2000 },
+ { 0x0700, 0x127f, 0x0000 },
+ { 0x0700, 0x1281, 0x0000 },
+ { 0x8700, 0x1284, 0x2000 },
+ { 0x0700, 0x1283, 0x0000 },
+ { 0x0700, 0x1285, 0x0000 },
+ { 0x8700, 0x128c, 0x3000 },
+ { 0x8700, 0x128a, 0x2000 },
+ { 0x0700, 0x1288, 0x0000 },
+ { 0x0700, 0x128b, 0x0000 },
+ { 0x8700, 0x1290, 0x2000 },
+ { 0x0700, 0x128d, 0x0000 },
+ { 0x0700, 0x1291, 0x0000 },
+ { 0x8700, 0x12dc, 0x7000 },
+ { 0x8700, 0x12b4, 0x6000 },
+ { 0x8700, 0x12a2, 0x5000 },
+ { 0x8700, 0x129a, 0x4000 },
+ { 0x8700, 0x1296, 0x3000 },
+ { 0x8700, 0x1294, 0x2000 },
+ { 0x0700, 0x1293, 0x0000 },
+ { 0x0700, 0x1295, 0x0000 },
+ { 0x8700, 0x1298, 0x2000 },
+ { 0x0700, 0x1297, 0x0000 },
+ { 0x0700, 0x1299, 0x0000 },
+ { 0x8700, 0x129e, 0x3000 },
+ { 0x8700, 0x129c, 0x2000 },
+ { 0x0700, 0x129b, 0x0000 },
+ { 0x0700, 0x129d, 0x0000 },
+ { 0x8700, 0x12a0, 0x2000 },
+ { 0x0700, 0x129f, 0x0000 },
+ { 0x0700, 0x12a1, 0x0000 },
+ { 0x8700, 0x12aa, 0x4000 },
+ { 0x8700, 0x12a6, 0x3000 },
+ { 0x8700, 0x12a4, 0x2000 },
+ { 0x0700, 0x12a3, 0x0000 },
+ { 0x0700, 0x12a5, 0x0000 },
+ { 0x8700, 0x12a8, 0x2000 },
+ { 0x0700, 0x12a7, 0x0000 },
+ { 0x0700, 0x12a9, 0x0000 },
+ { 0x8700, 0x12ae, 0x3000 },
+ { 0x8700, 0x12ac, 0x2000 },
+ { 0x0700, 0x12ab, 0x0000 },
+ { 0x0700, 0x12ad, 0x0000 },
+ { 0x8700, 0x12b2, 0x2000 },
+ { 0x0700, 0x12b0, 0x0000 },
+ { 0x0700, 0x12b3, 0x0000 },
+ { 0x8700, 0x12ca, 0x5000 },
+ { 0x8700, 0x12be, 0x4000 },
+ { 0x8700, 0x12ba, 0x3000 },
+ { 0x8700, 0x12b8, 0x2000 },
+ { 0x0700, 0x12b5, 0x0000 },
+ { 0x0700, 0x12b9, 0x0000 },
+ { 0x8700, 0x12bc, 0x2000 },
+ { 0x0700, 0x12bb, 0x0000 },
+ { 0x0700, 0x12bd, 0x0000 },
+ { 0x8700, 0x12c4, 0x3000 },
+ { 0x8700, 0x12c2, 0x2000 },
+ { 0x0700, 0x12c0, 0x0000 },
+ { 0x0700, 0x12c3, 0x0000 },
+ { 0x8700, 0x12c8, 0x2000 },
+ { 0x0700, 0x12c5, 0x0000 },
+ { 0x0700, 0x12c9, 0x0000 },
+ { 0x8700, 0x12d3, 0x4000 },
+ { 0x8700, 0x12ce, 0x3000 },
+ { 0x8700, 0x12cc, 0x2000 },
+ { 0x0700, 0x12cb, 0x0000 },
+ { 0x0700, 0x12cd, 0x0000 },
+ { 0x8700, 0x12d1, 0x2000 },
+ { 0x0700, 0x12d0, 0x0000 },
+ { 0x0700, 0x12d2, 0x0000 },
+ { 0x8700, 0x12d8, 0x3000 },
+ { 0x8700, 0x12d5, 0x2000 },
+ { 0x0700, 0x12d4, 0x0000 },
+ { 0x0700, 0x12d6, 0x0000 },
+ { 0x8700, 0x12da, 0x2000 },
+ { 0x0700, 0x12d9, 0x0000 },
+ { 0x0700, 0x12db, 0x0000 },
+ { 0x8700, 0x12fd, 0x6000 },
+ { 0x8700, 0x12ec, 0x5000 },
+ { 0x8700, 0x12e4, 0x4000 },
+ { 0x8700, 0x12e0, 0x3000 },
+ { 0x8700, 0x12de, 0x2000 },
+ { 0x0700, 0x12dd, 0x0000 },
+ { 0x0700, 0x12df, 0x0000 },
+ { 0x8700, 0x12e2, 0x2000 },
+ { 0x0700, 0x12e1, 0x0000 },
+ { 0x0700, 0x12e3, 0x0000 },
+ { 0x8700, 0x12e8, 0x3000 },
+ { 0x8700, 0x12e6, 0x2000 },
+ { 0x0700, 0x12e5, 0x0000 },
+ { 0x0700, 0x12e7, 0x0000 },
+ { 0x8700, 0x12ea, 0x2000 },
+ { 0x0700, 0x12e9, 0x0000 },
+ { 0x0700, 0x12eb, 0x0000 },
+ { 0x8700, 0x12f5, 0x4000 },
+ { 0x8700, 0x12f1, 0x3000 },
+ { 0x8700, 0x12ee, 0x2000 },
+ { 0x0700, 0x12ed, 0x0000 },
+ { 0x0700, 0x12f0, 0x0000 },
+ { 0x8700, 0x12f3, 0x2000 },
+ { 0x0700, 0x12f2, 0x0000 },
+ { 0x0700, 0x12f4, 0x0000 },
+ { 0x8700, 0x12f9, 0x3000 },
+ { 0x8700, 0x12f7, 0x2000 },
+ { 0x0700, 0x12f6, 0x0000 },
+ { 0x0700, 0x12f8, 0x0000 },
+ { 0x8700, 0x12fb, 0x2000 },
+ { 0x0700, 0x12fa, 0x0000 },
+ { 0x0700, 0x12fc, 0x0000 },
+ { 0x8700, 0x130d, 0x5000 },
+ { 0x8700, 0x1305, 0x4000 },
+ { 0x8700, 0x1301, 0x3000 },
+ { 0x8700, 0x12ff, 0x2000 },
+ { 0x0700, 0x12fe, 0x0000 },
+ { 0x0700, 0x1300, 0x0000 },
+ { 0x8700, 0x1303, 0x2000 },
+ { 0x0700, 0x1302, 0x0000 },
+ { 0x0700, 0x1304, 0x0000 },
+ { 0x8700, 0x1309, 0x3000 },
+ { 0x8700, 0x1307, 0x2000 },
+ { 0x0700, 0x1306, 0x0000 },
+ { 0x0700, 0x1308, 0x0000 },
+ { 0x8700, 0x130b, 0x2000 },
+ { 0x0700, 0x130a, 0x0000 },
+ { 0x0700, 0x130c, 0x0000 },
+ { 0x8700, 0x1319, 0x4000 },
+ { 0x8700, 0x1313, 0x3000 },
+ { 0x8700, 0x1310, 0x2000 },
+ { 0x0700, 0x130e, 0x0000 },
+ { 0x0700, 0x1312, 0x0000 },
+ { 0x8700, 0x1315, 0x2000 },
+ { 0x0700, 0x1314, 0x0000 },
+ { 0x0700, 0x1318, 0x0000 },
+ { 0x8700, 0x131d, 0x3000 },
+ { 0x8700, 0x131b, 0x2000 },
+ { 0x0700, 0x131a, 0x0000 },
+ { 0x0700, 0x131c, 0x0000 },
+ { 0x8700, 0x1320, 0x2000 },
+ { 0x0700, 0x131e, 0x0000 },
+ { 0x0700, 0x1321, 0x0000 },
+ { 0x8700, 0x1458, 0x9000 },
+ { 0x8700, 0x13cc, 0x8000 },
+ { 0x8d00, 0x1369, 0x7000 },
+ { 0x8700, 0x1342, 0x6000 },
+ { 0x8700, 0x1332, 0x5000 },
+ { 0x8700, 0x132a, 0x4000 },
+ { 0x8700, 0x1326, 0x3000 },
+ { 0x8700, 0x1324, 0x2000 },
+ { 0x0700, 0x1323, 0x0000 },
+ { 0x0700, 0x1325, 0x0000 },
+ { 0x8700, 0x1328, 0x2000 },
+ { 0x0700, 0x1327, 0x0000 },
+ { 0x0700, 0x1329, 0x0000 },
+ { 0x8700, 0x132e, 0x3000 },
+ { 0x8700, 0x132c, 0x2000 },
+ { 0x0700, 0x132b, 0x0000 },
+ { 0x0700, 0x132d, 0x0000 },
+ { 0x8700, 0x1330, 0x2000 },
+ { 0x0700, 0x132f, 0x0000 },
+ { 0x0700, 0x1331, 0x0000 },
+ { 0x8700, 0x133a, 0x4000 },
+ { 0x8700, 0x1336, 0x3000 },
+ { 0x8700, 0x1334, 0x2000 },
+ { 0x0700, 0x1333, 0x0000 },
+ { 0x0700, 0x1335, 0x0000 },
+ { 0x8700, 0x1338, 0x2000 },
+ { 0x0700, 0x1337, 0x0000 },
+ { 0x0700, 0x1339, 0x0000 },
+ { 0x8700, 0x133e, 0x3000 },
+ { 0x8700, 0x133c, 0x2000 },
+ { 0x0700, 0x133b, 0x0000 },
+ { 0x0700, 0x133d, 0x0000 },
+ { 0x8700, 0x1340, 0x2000 },
+ { 0x0700, 0x133f, 0x0000 },
+ { 0x0700, 0x1341, 0x0000 },
+ { 0x8700, 0x1353, 0x5000 },
+ { 0x8700, 0x134b, 0x4000 },
+ { 0x8700, 0x1346, 0x3000 },
+ { 0x8700, 0x1344, 0x2000 },
+ { 0x0700, 0x1343, 0x0000 },
+ { 0x0700, 0x1345, 0x0000 },
+ { 0x8700, 0x1349, 0x2000 },
+ { 0x0700, 0x1348, 0x0000 },
+ { 0x0700, 0x134a, 0x0000 },
+ { 0x8700, 0x134f, 0x3000 },
+ { 0x8700, 0x134d, 0x2000 },
+ { 0x0700, 0x134c, 0x0000 },
+ { 0x0700, 0x134e, 0x0000 },
+ { 0x8700, 0x1351, 0x2000 },
+ { 0x0700, 0x1350, 0x0000 },
+ { 0x0700, 0x1352, 0x0000 },
+ { 0x9500, 0x1361, 0x4000 },
+ { 0x8700, 0x1357, 0x3000 },
+ { 0x8700, 0x1355, 0x2000 },
+ { 0x0700, 0x1354, 0x0000 },
+ { 0x0700, 0x1356, 0x0000 },
+ { 0x8700, 0x1359, 0x2000 },
+ { 0x0700, 0x1358, 0x0000 },
+ { 0x0700, 0x135a, 0x0000 },
+ { 0x9500, 0x1365, 0x3000 },
+ { 0x9500, 0x1363, 0x2000 },
+ { 0x1500, 0x1362, 0x0000 },
+ { 0x1500, 0x1364, 0x0000 },
+ { 0x9500, 0x1367, 0x2000 },
+ { 0x1500, 0x1366, 0x0000 },
+ { 0x1500, 0x1368, 0x0000 },
+ { 0x8700, 0x13ac, 0x6000 },
+ { 0x8f00, 0x1379, 0x5000 },
+ { 0x8d00, 0x1371, 0x4000 },
+ { 0x8d00, 0x136d, 0x3000 },
+ { 0x8d00, 0x136b, 0x2000 },
+ { 0x0d00, 0x136a, 0x0000 },
+ { 0x0d00, 0x136c, 0x0000 },
+ { 0x8d00, 0x136f, 0x2000 },
+ { 0x0d00, 0x136e, 0x0000 },
+ { 0x0d00, 0x1370, 0x0000 },
+ { 0x8f00, 0x1375, 0x3000 },
+ { 0x8f00, 0x1373, 0x2000 },
+ { 0x0f00, 0x1372, 0x0000 },
+ { 0x0f00, 0x1374, 0x0000 },
+ { 0x8f00, 0x1377, 0x2000 },
+ { 0x0f00, 0x1376, 0x0000 },
+ { 0x0f00, 0x1378, 0x0000 },
+ { 0x8700, 0x13a4, 0x4000 },
+ { 0x8700, 0x13a0, 0x3000 },
+ { 0x8f00, 0x137b, 0x2000 },
+ { 0x0f00, 0x137a, 0x0000 },
+ { 0x0f00, 0x137c, 0x0000 },
+ { 0x8700, 0x13a2, 0x2000 },
+ { 0x0700, 0x13a1, 0x0000 },
+ { 0x0700, 0x13a3, 0x0000 },
+ { 0x8700, 0x13a8, 0x3000 },
+ { 0x8700, 0x13a6, 0x2000 },
+ { 0x0700, 0x13a5, 0x0000 },
+ { 0x0700, 0x13a7, 0x0000 },
+ { 0x8700, 0x13aa, 0x2000 },
+ { 0x0700, 0x13a9, 0x0000 },
+ { 0x0700, 0x13ab, 0x0000 },
+ { 0x8700, 0x13bc, 0x5000 },
+ { 0x8700, 0x13b4, 0x4000 },
+ { 0x8700, 0x13b0, 0x3000 },
+ { 0x8700, 0x13ae, 0x2000 },
+ { 0x0700, 0x13ad, 0x0000 },
+ { 0x0700, 0x13af, 0x0000 },
+ { 0x8700, 0x13b2, 0x2000 },
+ { 0x0700, 0x13b1, 0x0000 },
+ { 0x0700, 0x13b3, 0x0000 },
+ { 0x8700, 0x13b8, 0x3000 },
+ { 0x8700, 0x13b6, 0x2000 },
+ { 0x0700, 0x13b5, 0x0000 },
+ { 0x0700, 0x13b7, 0x0000 },
+ { 0x8700, 0x13ba, 0x2000 },
+ { 0x0700, 0x13b9, 0x0000 },
+ { 0x0700, 0x13bb, 0x0000 },
+ { 0x8700, 0x13c4, 0x4000 },
+ { 0x8700, 0x13c0, 0x3000 },
+ { 0x8700, 0x13be, 0x2000 },
+ { 0x0700, 0x13bd, 0x0000 },
+ { 0x0700, 0x13bf, 0x0000 },
+ { 0x8700, 0x13c2, 0x2000 },
+ { 0x0700, 0x13c1, 0x0000 },
+ { 0x0700, 0x13c3, 0x0000 },
+ { 0x8700, 0x13c8, 0x3000 },
+ { 0x8700, 0x13c6, 0x2000 },
+ { 0x0700, 0x13c5, 0x0000 },
+ { 0x0700, 0x13c7, 0x0000 },
+ { 0x8700, 0x13ca, 0x2000 },
+ { 0x0700, 0x13c9, 0x0000 },
+ { 0x0700, 0x13cb, 0x0000 },
+ { 0x8700, 0x1418, 0x7000 },
+ { 0x8700, 0x13ec, 0x6000 },
+ { 0x8700, 0x13dc, 0x5000 },
+ { 0x8700, 0x13d4, 0x4000 },
+ { 0x8700, 0x13d0, 0x3000 },
+ { 0x8700, 0x13ce, 0x2000 },
+ { 0x0700, 0x13cd, 0x0000 },
+ { 0x0700, 0x13cf, 0x0000 },
+ { 0x8700, 0x13d2, 0x2000 },
+ { 0x0700, 0x13d1, 0x0000 },
+ { 0x0700, 0x13d3, 0x0000 },
+ { 0x8700, 0x13d8, 0x3000 },
+ { 0x8700, 0x13d6, 0x2000 },
+ { 0x0700, 0x13d5, 0x0000 },
+ { 0x0700, 0x13d7, 0x0000 },
+ { 0x8700, 0x13da, 0x2000 },
+ { 0x0700, 0x13d9, 0x0000 },
+ { 0x0700, 0x13db, 0x0000 },
+ { 0x8700, 0x13e4, 0x4000 },
+ { 0x8700, 0x13e0, 0x3000 },
+ { 0x8700, 0x13de, 0x2000 },
+ { 0x0700, 0x13dd, 0x0000 },
+ { 0x0700, 0x13df, 0x0000 },
+ { 0x8700, 0x13e2, 0x2000 },
+ { 0x0700, 0x13e1, 0x0000 },
+ { 0x0700, 0x13e3, 0x0000 },
+ { 0x8700, 0x13e8, 0x3000 },
+ { 0x8700, 0x13e6, 0x2000 },
+ { 0x0700, 0x13e5, 0x0000 },
+ { 0x0700, 0x13e7, 0x0000 },
+ { 0x8700, 0x13ea, 0x2000 },
+ { 0x0700, 0x13e9, 0x0000 },
+ { 0x0700, 0x13eb, 0x0000 },
+ { 0x8700, 0x1408, 0x5000 },
+ { 0x8700, 0x13f4, 0x4000 },
+ { 0x8700, 0x13f0, 0x3000 },
+ { 0x8700, 0x13ee, 0x2000 },
+ { 0x0700, 0x13ed, 0x0000 },
+ { 0x0700, 0x13ef, 0x0000 },
+ { 0x8700, 0x13f2, 0x2000 },
+ { 0x0700, 0x13f1, 0x0000 },
+ { 0x0700, 0x13f3, 0x0000 },
+ { 0x8700, 0x1404, 0x3000 },
+ { 0x8700, 0x1402, 0x2000 },
+ { 0x0700, 0x1401, 0x0000 },
+ { 0x0700, 0x1403, 0x0000 },
+ { 0x8700, 0x1406, 0x2000 },
+ { 0x0700, 0x1405, 0x0000 },
+ { 0x0700, 0x1407, 0x0000 },
+ { 0x8700, 0x1410, 0x4000 },
+ { 0x8700, 0x140c, 0x3000 },
+ { 0x8700, 0x140a, 0x2000 },
+ { 0x0700, 0x1409, 0x0000 },
+ { 0x0700, 0x140b, 0x0000 },
+ { 0x8700, 0x140e, 0x2000 },
+ { 0x0700, 0x140d, 0x0000 },
+ { 0x0700, 0x140f, 0x0000 },
+ { 0x8700, 0x1414, 0x3000 },
+ { 0x8700, 0x1412, 0x2000 },
+ { 0x0700, 0x1411, 0x0000 },
+ { 0x0700, 0x1413, 0x0000 },
+ { 0x8700, 0x1416, 0x2000 },
+ { 0x0700, 0x1415, 0x0000 },
+ { 0x0700, 0x1417, 0x0000 },
+ { 0x8700, 0x1438, 0x6000 },
+ { 0x8700, 0x1428, 0x5000 },
+ { 0x8700, 0x1420, 0x4000 },
+ { 0x8700, 0x141c, 0x3000 },
+ { 0x8700, 0x141a, 0x2000 },
+ { 0x0700, 0x1419, 0x0000 },
+ { 0x0700, 0x141b, 0x0000 },
+ { 0x8700, 0x141e, 0x2000 },
+ { 0x0700, 0x141d, 0x0000 },
+ { 0x0700, 0x141f, 0x0000 },
+ { 0x8700, 0x1424, 0x3000 },
+ { 0x8700, 0x1422, 0x2000 },
+ { 0x0700, 0x1421, 0x0000 },
+ { 0x0700, 0x1423, 0x0000 },
+ { 0x8700, 0x1426, 0x2000 },
+ { 0x0700, 0x1425, 0x0000 },
+ { 0x0700, 0x1427, 0x0000 },
+ { 0x8700, 0x1430, 0x4000 },
+ { 0x8700, 0x142c, 0x3000 },
+ { 0x8700, 0x142a, 0x2000 },
+ { 0x0700, 0x1429, 0x0000 },
+ { 0x0700, 0x142b, 0x0000 },
+ { 0x8700, 0x142e, 0x2000 },
+ { 0x0700, 0x142d, 0x0000 },
+ { 0x0700, 0x142f, 0x0000 },
+ { 0x8700, 0x1434, 0x3000 },
+ { 0x8700, 0x1432, 0x2000 },
+ { 0x0700, 0x1431, 0x0000 },
+ { 0x0700, 0x1433, 0x0000 },
+ { 0x8700, 0x1436, 0x2000 },
+ { 0x0700, 0x1435, 0x0000 },
+ { 0x0700, 0x1437, 0x0000 },
+ { 0x8700, 0x1448, 0x5000 },
+ { 0x8700, 0x1440, 0x4000 },
+ { 0x8700, 0x143c, 0x3000 },
+ { 0x8700, 0x143a, 0x2000 },
+ { 0x0700, 0x1439, 0x0000 },
+ { 0x0700, 0x143b, 0x0000 },
+ { 0x8700, 0x143e, 0x2000 },
+ { 0x0700, 0x143d, 0x0000 },
+ { 0x0700, 0x143f, 0x0000 },
+ { 0x8700, 0x1444, 0x3000 },
+ { 0x8700, 0x1442, 0x2000 },
+ { 0x0700, 0x1441, 0x0000 },
+ { 0x0700, 0x1443, 0x0000 },
+ { 0x8700, 0x1446, 0x2000 },
+ { 0x0700, 0x1445, 0x0000 },
+ { 0x0700, 0x1447, 0x0000 },
+ { 0x8700, 0x1450, 0x4000 },
+ { 0x8700, 0x144c, 0x3000 },
+ { 0x8700, 0x144a, 0x2000 },
+ { 0x0700, 0x1449, 0x0000 },
+ { 0x0700, 0x144b, 0x0000 },
+ { 0x8700, 0x144e, 0x2000 },
+ { 0x0700, 0x144d, 0x0000 },
+ { 0x0700, 0x144f, 0x0000 },
+ { 0x8700, 0x1454, 0x3000 },
+ { 0x8700, 0x1452, 0x2000 },
+ { 0x0700, 0x1451, 0x0000 },
+ { 0x0700, 0x1453, 0x0000 },
+ { 0x8700, 0x1456, 0x2000 },
+ { 0x0700, 0x1455, 0x0000 },
+ { 0x0700, 0x1457, 0x0000 },
+ { 0x8700, 0x14d8, 0x8000 },
+ { 0x8700, 0x1498, 0x7000 },
+ { 0x8700, 0x1478, 0x6000 },
+ { 0x8700, 0x1468, 0x5000 },
+ { 0x8700, 0x1460, 0x4000 },
+ { 0x8700, 0x145c, 0x3000 },
+ { 0x8700, 0x145a, 0x2000 },
+ { 0x0700, 0x1459, 0x0000 },
+ { 0x0700, 0x145b, 0x0000 },
+ { 0x8700, 0x145e, 0x2000 },
+ { 0x0700, 0x145d, 0x0000 },
+ { 0x0700, 0x145f, 0x0000 },
+ { 0x8700, 0x1464, 0x3000 },
+ { 0x8700, 0x1462, 0x2000 },
+ { 0x0700, 0x1461, 0x0000 },
+ { 0x0700, 0x1463, 0x0000 },
+ { 0x8700, 0x1466, 0x2000 },
+ { 0x0700, 0x1465, 0x0000 },
+ { 0x0700, 0x1467, 0x0000 },
+ { 0x8700, 0x1470, 0x4000 },
+ { 0x8700, 0x146c, 0x3000 },
+ { 0x8700, 0x146a, 0x2000 },
+ { 0x0700, 0x1469, 0x0000 },
+ { 0x0700, 0x146b, 0x0000 },
+ { 0x8700, 0x146e, 0x2000 },
+ { 0x0700, 0x146d, 0x0000 },
+ { 0x0700, 0x146f, 0x0000 },
+ { 0x8700, 0x1474, 0x3000 },
+ { 0x8700, 0x1472, 0x2000 },
+ { 0x0700, 0x1471, 0x0000 },
+ { 0x0700, 0x1473, 0x0000 },
+ { 0x8700, 0x1476, 0x2000 },
+ { 0x0700, 0x1475, 0x0000 },
+ { 0x0700, 0x1477, 0x0000 },
+ { 0x8700, 0x1488, 0x5000 },
+ { 0x8700, 0x1480, 0x4000 },
+ { 0x8700, 0x147c, 0x3000 },
+ { 0x8700, 0x147a, 0x2000 },
+ { 0x0700, 0x1479, 0x0000 },
+ { 0x0700, 0x147b, 0x0000 },
+ { 0x8700, 0x147e, 0x2000 },
+ { 0x0700, 0x147d, 0x0000 },
+ { 0x0700, 0x147f, 0x0000 },
+ { 0x8700, 0x1484, 0x3000 },
+ { 0x8700, 0x1482, 0x2000 },
+ { 0x0700, 0x1481, 0x0000 },
+ { 0x0700, 0x1483, 0x0000 },
+ { 0x8700, 0x1486, 0x2000 },
+ { 0x0700, 0x1485, 0x0000 },
+ { 0x0700, 0x1487, 0x0000 },
+ { 0x8700, 0x1490, 0x4000 },
+ { 0x8700, 0x148c, 0x3000 },
+ { 0x8700, 0x148a, 0x2000 },
+ { 0x0700, 0x1489, 0x0000 },
+ { 0x0700, 0x148b, 0x0000 },
+ { 0x8700, 0x148e, 0x2000 },
+ { 0x0700, 0x148d, 0x0000 },
+ { 0x0700, 0x148f, 0x0000 },
+ { 0x8700, 0x1494, 0x3000 },
+ { 0x8700, 0x1492, 0x2000 },
+ { 0x0700, 0x1491, 0x0000 },
+ { 0x0700, 0x1493, 0x0000 },
+ { 0x8700, 0x1496, 0x2000 },
+ { 0x0700, 0x1495, 0x0000 },
+ { 0x0700, 0x1497, 0x0000 },
+ { 0x8700, 0x14b8, 0x6000 },
+ { 0x8700, 0x14a8, 0x5000 },
+ { 0x8700, 0x14a0, 0x4000 },
+ { 0x8700, 0x149c, 0x3000 },
+ { 0x8700, 0x149a, 0x2000 },
+ { 0x0700, 0x1499, 0x0000 },
+ { 0x0700, 0x149b, 0x0000 },
+ { 0x8700, 0x149e, 0x2000 },
+ { 0x0700, 0x149d, 0x0000 },
+ { 0x0700, 0x149f, 0x0000 },
+ { 0x8700, 0x14a4, 0x3000 },
+ { 0x8700, 0x14a2, 0x2000 },
+ { 0x0700, 0x14a1, 0x0000 },
+ { 0x0700, 0x14a3, 0x0000 },
+ { 0x8700, 0x14a6, 0x2000 },
+ { 0x0700, 0x14a5, 0x0000 },
+ { 0x0700, 0x14a7, 0x0000 },
+ { 0x8700, 0x14b0, 0x4000 },
+ { 0x8700, 0x14ac, 0x3000 },
+ { 0x8700, 0x14aa, 0x2000 },
+ { 0x0700, 0x14a9, 0x0000 },
+ { 0x0700, 0x14ab, 0x0000 },
+ { 0x8700, 0x14ae, 0x2000 },
+ { 0x0700, 0x14ad, 0x0000 },
+ { 0x0700, 0x14af, 0x0000 },
+ { 0x8700, 0x14b4, 0x3000 },
+ { 0x8700, 0x14b2, 0x2000 },
+ { 0x0700, 0x14b1, 0x0000 },
+ { 0x0700, 0x14b3, 0x0000 },
+ { 0x8700, 0x14b6, 0x2000 },
+ { 0x0700, 0x14b5, 0x0000 },
+ { 0x0700, 0x14b7, 0x0000 },
+ { 0x8700, 0x14c8, 0x5000 },
+ { 0x8700, 0x14c0, 0x4000 },
+ { 0x8700, 0x14bc, 0x3000 },
+ { 0x8700, 0x14ba, 0x2000 },
+ { 0x0700, 0x14b9, 0x0000 },
+ { 0x0700, 0x14bb, 0x0000 },
+ { 0x8700, 0x14be, 0x2000 },
+ { 0x0700, 0x14bd, 0x0000 },
+ { 0x0700, 0x14bf, 0x0000 },
+ { 0x8700, 0x14c4, 0x3000 },
+ { 0x8700, 0x14c2, 0x2000 },
+ { 0x0700, 0x14c1, 0x0000 },
+ { 0x0700, 0x14c3, 0x0000 },
+ { 0x8700, 0x14c6, 0x2000 },
+ { 0x0700, 0x14c5, 0x0000 },
+ { 0x0700, 0x14c7, 0x0000 },
+ { 0x8700, 0x14d0, 0x4000 },
+ { 0x8700, 0x14cc, 0x3000 },
+ { 0x8700, 0x14ca, 0x2000 },
+ { 0x0700, 0x14c9, 0x0000 },
+ { 0x0700, 0x14cb, 0x0000 },
+ { 0x8700, 0x14ce, 0x2000 },
+ { 0x0700, 0x14cd, 0x0000 },
+ { 0x0700, 0x14cf, 0x0000 },
+ { 0x8700, 0x14d4, 0x3000 },
+ { 0x8700, 0x14d2, 0x2000 },
+ { 0x0700, 0x14d1, 0x0000 },
+ { 0x0700, 0x14d3, 0x0000 },
+ { 0x8700, 0x14d6, 0x2000 },
+ { 0x0700, 0x14d5, 0x0000 },
+ { 0x0700, 0x14d7, 0x0000 },
+ { 0x8700, 0x1518, 0x7000 },
+ { 0x8700, 0x14f8, 0x6000 },
+ { 0x8700, 0x14e8, 0x5000 },
+ { 0x8700, 0x14e0, 0x4000 },
+ { 0x8700, 0x14dc, 0x3000 },
+ { 0x8700, 0x14da, 0x2000 },
+ { 0x0700, 0x14d9, 0x0000 },
+ { 0x0700, 0x14db, 0x0000 },
+ { 0x8700, 0x14de, 0x2000 },
+ { 0x0700, 0x14dd, 0x0000 },
+ { 0x0700, 0x14df, 0x0000 },
+ { 0x8700, 0x14e4, 0x3000 },
+ { 0x8700, 0x14e2, 0x2000 },
+ { 0x0700, 0x14e1, 0x0000 },
+ { 0x0700, 0x14e3, 0x0000 },
+ { 0x8700, 0x14e6, 0x2000 },
+ { 0x0700, 0x14e5, 0x0000 },
+ { 0x0700, 0x14e7, 0x0000 },
+ { 0x8700, 0x14f0, 0x4000 },
+ { 0x8700, 0x14ec, 0x3000 },
+ { 0x8700, 0x14ea, 0x2000 },
+ { 0x0700, 0x14e9, 0x0000 },
+ { 0x0700, 0x14eb, 0x0000 },
+ { 0x8700, 0x14ee, 0x2000 },
+ { 0x0700, 0x14ed, 0x0000 },
+ { 0x0700, 0x14ef, 0x0000 },
+ { 0x8700, 0x14f4, 0x3000 },
+ { 0x8700, 0x14f2, 0x2000 },
+ { 0x0700, 0x14f1, 0x0000 },
+ { 0x0700, 0x14f3, 0x0000 },
+ { 0x8700, 0x14f6, 0x2000 },
+ { 0x0700, 0x14f5, 0x0000 },
+ { 0x0700, 0x14f7, 0x0000 },
+ { 0x8700, 0x1508, 0x5000 },
+ { 0x8700, 0x1500, 0x4000 },
+ { 0x8700, 0x14fc, 0x3000 },
+ { 0x8700, 0x14fa, 0x2000 },
+ { 0x0700, 0x14f9, 0x0000 },
+ { 0x0700, 0x14fb, 0x0000 },
+ { 0x8700, 0x14fe, 0x2000 },
+ { 0x0700, 0x14fd, 0x0000 },
+ { 0x0700, 0x14ff, 0x0000 },
+ { 0x8700, 0x1504, 0x3000 },
+ { 0x8700, 0x1502, 0x2000 },
+ { 0x0700, 0x1501, 0x0000 },
+ { 0x0700, 0x1503, 0x0000 },
+ { 0x8700, 0x1506, 0x2000 },
+ { 0x0700, 0x1505, 0x0000 },
+ { 0x0700, 0x1507, 0x0000 },
+ { 0x8700, 0x1510, 0x4000 },
+ { 0x8700, 0x150c, 0x3000 },
+ { 0x8700, 0x150a, 0x2000 },
+ { 0x0700, 0x1509, 0x0000 },
+ { 0x0700, 0x150b, 0x0000 },
+ { 0x8700, 0x150e, 0x2000 },
+ { 0x0700, 0x150d, 0x0000 },
+ { 0x0700, 0x150f, 0x0000 },
+ { 0x8700, 0x1514, 0x3000 },
+ { 0x8700, 0x1512, 0x2000 },
+ { 0x0700, 0x1511, 0x0000 },
+ { 0x0700, 0x1513, 0x0000 },
+ { 0x8700, 0x1516, 0x2000 },
+ { 0x0700, 0x1515, 0x0000 },
+ { 0x0700, 0x1517, 0x0000 },
+ { 0x8700, 0x1538, 0x6000 },
+ { 0x8700, 0x1528, 0x5000 },
+ { 0x8700, 0x1520, 0x4000 },
+ { 0x8700, 0x151c, 0x3000 },
+ { 0x8700, 0x151a, 0x2000 },
+ { 0x0700, 0x1519, 0x0000 },
+ { 0x0700, 0x151b, 0x0000 },
+ { 0x8700, 0x151e, 0x2000 },
+ { 0x0700, 0x151d, 0x0000 },
+ { 0x0700, 0x151f, 0x0000 },
+ { 0x8700, 0x1524, 0x3000 },
+ { 0x8700, 0x1522, 0x2000 },
+ { 0x0700, 0x1521, 0x0000 },
+ { 0x0700, 0x1523, 0x0000 },
+ { 0x8700, 0x1526, 0x2000 },
+ { 0x0700, 0x1525, 0x0000 },
+ { 0x0700, 0x1527, 0x0000 },
+ { 0x8700, 0x1530, 0x4000 },
+ { 0x8700, 0x152c, 0x3000 },
+ { 0x8700, 0x152a, 0x2000 },
+ { 0x0700, 0x1529, 0x0000 },
+ { 0x0700, 0x152b, 0x0000 },
+ { 0x8700, 0x152e, 0x2000 },
+ { 0x0700, 0x152d, 0x0000 },
+ { 0x0700, 0x152f, 0x0000 },
+ { 0x8700, 0x1534, 0x3000 },
+ { 0x8700, 0x1532, 0x2000 },
+ { 0x0700, 0x1531, 0x0000 },
+ { 0x0700, 0x1533, 0x0000 },
+ { 0x8700, 0x1536, 0x2000 },
+ { 0x0700, 0x1535, 0x0000 },
+ { 0x0700, 0x1537, 0x0000 },
+ { 0x8700, 0x1548, 0x5000 },
+ { 0x8700, 0x1540, 0x4000 },
+ { 0x8700, 0x153c, 0x3000 },
+ { 0x8700, 0x153a, 0x2000 },
+ { 0x0700, 0x1539, 0x0000 },
+ { 0x0700, 0x153b, 0x0000 },
+ { 0x8700, 0x153e, 0x2000 },
+ { 0x0700, 0x153d, 0x0000 },
+ { 0x0700, 0x153f, 0x0000 },
+ { 0x8700, 0x1544, 0x3000 },
+ { 0x8700, 0x1542, 0x2000 },
+ { 0x0700, 0x1541, 0x0000 },
+ { 0x0700, 0x1543, 0x0000 },
+ { 0x8700, 0x1546, 0x2000 },
+ { 0x0700, 0x1545, 0x0000 },
+ { 0x0700, 0x1547, 0x0000 },
+ { 0x8700, 0x1550, 0x4000 },
+ { 0x8700, 0x154c, 0x3000 },
+ { 0x8700, 0x154a, 0x2000 },
+ { 0x0700, 0x1549, 0x0000 },
+ { 0x0700, 0x154b, 0x0000 },
+ { 0x8700, 0x154e, 0x2000 },
+ { 0x0700, 0x154d, 0x0000 },
+ { 0x0700, 0x154f, 0x0000 },
+ { 0x8700, 0x1554, 0x3000 },
+ { 0x8700, 0x1552, 0x2000 },
+ { 0x0700, 0x1551, 0x0000 },
+ { 0x0700, 0x1553, 0x0000 },
+ { 0x8700, 0x1556, 0x2000 },
+ { 0x0700, 0x1555, 0x0000 },
+ { 0x0700, 0x1557, 0x0000 },
+ { 0x9900, 0x22ae, 0xc000 },
+ { 0x8900, 0x1e24, 0xb001 },
+ { 0x8700, 0x17a2, 0xa000 },
+ { 0x8700, 0x1658, 0x9000 },
+ { 0x8700, 0x15d8, 0x8000 },
+ { 0x8700, 0x1598, 0x7000 },
+ { 0x8700, 0x1578, 0x6000 },
+ { 0x8700, 0x1568, 0x5000 },
+ { 0x8700, 0x1560, 0x4000 },
+ { 0x8700, 0x155c, 0x3000 },
+ { 0x8700, 0x155a, 0x2000 },
+ { 0x0700, 0x1559, 0x0000 },
+ { 0x0700, 0x155b, 0x0000 },
+ { 0x8700, 0x155e, 0x2000 },
+ { 0x0700, 0x155d, 0x0000 },
+ { 0x0700, 0x155f, 0x0000 },
+ { 0x8700, 0x1564, 0x3000 },
+ { 0x8700, 0x1562, 0x2000 },
+ { 0x0700, 0x1561, 0x0000 },
+ { 0x0700, 0x1563, 0x0000 },
+ { 0x8700, 0x1566, 0x2000 },
+ { 0x0700, 0x1565, 0x0000 },
+ { 0x0700, 0x1567, 0x0000 },
+ { 0x8700, 0x1570, 0x4000 },
+ { 0x8700, 0x156c, 0x3000 },
+ { 0x8700, 0x156a, 0x2000 },
+ { 0x0700, 0x1569, 0x0000 },
+ { 0x0700, 0x156b, 0x0000 },
+ { 0x8700, 0x156e, 0x2000 },
+ { 0x0700, 0x156d, 0x0000 },
+ { 0x0700, 0x156f, 0x0000 },
+ { 0x8700, 0x1574, 0x3000 },
+ { 0x8700, 0x1572, 0x2000 },
+ { 0x0700, 0x1571, 0x0000 },
+ { 0x0700, 0x1573, 0x0000 },
+ { 0x8700, 0x1576, 0x2000 },
+ { 0x0700, 0x1575, 0x0000 },
+ { 0x0700, 0x1577, 0x0000 },
+ { 0x8700, 0x1588, 0x5000 },
+ { 0x8700, 0x1580, 0x4000 },
+ { 0x8700, 0x157c, 0x3000 },
+ { 0x8700, 0x157a, 0x2000 },
+ { 0x0700, 0x1579, 0x0000 },
+ { 0x0700, 0x157b, 0x0000 },
+ { 0x8700, 0x157e, 0x2000 },
+ { 0x0700, 0x157d, 0x0000 },
+ { 0x0700, 0x157f, 0x0000 },
+ { 0x8700, 0x1584, 0x3000 },
+ { 0x8700, 0x1582, 0x2000 },
+ { 0x0700, 0x1581, 0x0000 },
+ { 0x0700, 0x1583, 0x0000 },
+ { 0x8700, 0x1586, 0x2000 },
+ { 0x0700, 0x1585, 0x0000 },
+ { 0x0700, 0x1587, 0x0000 },
+ { 0x8700, 0x1590, 0x4000 },
+ { 0x8700, 0x158c, 0x3000 },
+ { 0x8700, 0x158a, 0x2000 },
+ { 0x0700, 0x1589, 0x0000 },
+ { 0x0700, 0x158b, 0x0000 },
+ { 0x8700, 0x158e, 0x2000 },
+ { 0x0700, 0x158d, 0x0000 },
+ { 0x0700, 0x158f, 0x0000 },
+ { 0x8700, 0x1594, 0x3000 },
+ { 0x8700, 0x1592, 0x2000 },
+ { 0x0700, 0x1591, 0x0000 },
+ { 0x0700, 0x1593, 0x0000 },
+ { 0x8700, 0x1596, 0x2000 },
+ { 0x0700, 0x1595, 0x0000 },
+ { 0x0700, 0x1597, 0x0000 },
+ { 0x8700, 0x15b8, 0x6000 },
+ { 0x8700, 0x15a8, 0x5000 },
+ { 0x8700, 0x15a0, 0x4000 },
+ { 0x8700, 0x159c, 0x3000 },
+ { 0x8700, 0x159a, 0x2000 },
+ { 0x0700, 0x1599, 0x0000 },
+ { 0x0700, 0x159b, 0x0000 },
+ { 0x8700, 0x159e, 0x2000 },
+ { 0x0700, 0x159d, 0x0000 },
+ { 0x0700, 0x159f, 0x0000 },
+ { 0x8700, 0x15a4, 0x3000 },
+ { 0x8700, 0x15a2, 0x2000 },
+ { 0x0700, 0x15a1, 0x0000 },
+ { 0x0700, 0x15a3, 0x0000 },
+ { 0x8700, 0x15a6, 0x2000 },
+ { 0x0700, 0x15a5, 0x0000 },
+ { 0x0700, 0x15a7, 0x0000 },
+ { 0x8700, 0x15b0, 0x4000 },
+ { 0x8700, 0x15ac, 0x3000 },
+ { 0x8700, 0x15aa, 0x2000 },
+ { 0x0700, 0x15a9, 0x0000 },
+ { 0x0700, 0x15ab, 0x0000 },
+ { 0x8700, 0x15ae, 0x2000 },
+ { 0x0700, 0x15ad, 0x0000 },
+ { 0x0700, 0x15af, 0x0000 },
+ { 0x8700, 0x15b4, 0x3000 },
+ { 0x8700, 0x15b2, 0x2000 },
+ { 0x0700, 0x15b1, 0x0000 },
+ { 0x0700, 0x15b3, 0x0000 },
+ { 0x8700, 0x15b6, 0x2000 },
+ { 0x0700, 0x15b5, 0x0000 },
+ { 0x0700, 0x15b7, 0x0000 },
+ { 0x8700, 0x15c8, 0x5000 },
+ { 0x8700, 0x15c0, 0x4000 },
+ { 0x8700, 0x15bc, 0x3000 },
+ { 0x8700, 0x15ba, 0x2000 },
+ { 0x0700, 0x15b9, 0x0000 },
+ { 0x0700, 0x15bb, 0x0000 },
+ { 0x8700, 0x15be, 0x2000 },
+ { 0x0700, 0x15bd, 0x0000 },
+ { 0x0700, 0x15bf, 0x0000 },
+ { 0x8700, 0x15c4, 0x3000 },
+ { 0x8700, 0x15c2, 0x2000 },
+ { 0x0700, 0x15c1, 0x0000 },
+ { 0x0700, 0x15c3, 0x0000 },
+ { 0x8700, 0x15c6, 0x2000 },
+ { 0x0700, 0x15c5, 0x0000 },
+ { 0x0700, 0x15c7, 0x0000 },
+ { 0x8700, 0x15d0, 0x4000 },
+ { 0x8700, 0x15cc, 0x3000 },
+ { 0x8700, 0x15ca, 0x2000 },
+ { 0x0700, 0x15c9, 0x0000 },
+ { 0x0700, 0x15cb, 0x0000 },
+ { 0x8700, 0x15ce, 0x2000 },
+ { 0x0700, 0x15cd, 0x0000 },
+ { 0x0700, 0x15cf, 0x0000 },
+ { 0x8700, 0x15d4, 0x3000 },
+ { 0x8700, 0x15d2, 0x2000 },
+ { 0x0700, 0x15d1, 0x0000 },
+ { 0x0700, 0x15d3, 0x0000 },
+ { 0x8700, 0x15d6, 0x2000 },
+ { 0x0700, 0x15d5, 0x0000 },
+ { 0x0700, 0x15d7, 0x0000 },
+ { 0x8700, 0x1618, 0x7000 },
+ { 0x8700, 0x15f8, 0x6000 },
+ { 0x8700, 0x15e8, 0x5000 },
+ { 0x8700, 0x15e0, 0x4000 },
+ { 0x8700, 0x15dc, 0x3000 },
+ { 0x8700, 0x15da, 0x2000 },
+ { 0x0700, 0x15d9, 0x0000 },
+ { 0x0700, 0x15db, 0x0000 },
+ { 0x8700, 0x15de, 0x2000 },
+ { 0x0700, 0x15dd, 0x0000 },
+ { 0x0700, 0x15df, 0x0000 },
+ { 0x8700, 0x15e4, 0x3000 },
+ { 0x8700, 0x15e2, 0x2000 },
+ { 0x0700, 0x15e1, 0x0000 },
+ { 0x0700, 0x15e3, 0x0000 },
+ { 0x8700, 0x15e6, 0x2000 },
+ { 0x0700, 0x15e5, 0x0000 },
+ { 0x0700, 0x15e7, 0x0000 },
+ { 0x8700, 0x15f0, 0x4000 },
+ { 0x8700, 0x15ec, 0x3000 },
+ { 0x8700, 0x15ea, 0x2000 },
+ { 0x0700, 0x15e9, 0x0000 },
+ { 0x0700, 0x15eb, 0x0000 },
+ { 0x8700, 0x15ee, 0x2000 },
+ { 0x0700, 0x15ed, 0x0000 },
+ { 0x0700, 0x15ef, 0x0000 },
+ { 0x8700, 0x15f4, 0x3000 },
+ { 0x8700, 0x15f2, 0x2000 },
+ { 0x0700, 0x15f1, 0x0000 },
+ { 0x0700, 0x15f3, 0x0000 },
+ { 0x8700, 0x15f6, 0x2000 },
+ { 0x0700, 0x15f5, 0x0000 },
+ { 0x0700, 0x15f7, 0x0000 },
+ { 0x8700, 0x1608, 0x5000 },
+ { 0x8700, 0x1600, 0x4000 },
+ { 0x8700, 0x15fc, 0x3000 },
+ { 0x8700, 0x15fa, 0x2000 },
+ { 0x0700, 0x15f9, 0x0000 },
+ { 0x0700, 0x15fb, 0x0000 },
+ { 0x8700, 0x15fe, 0x2000 },
+ { 0x0700, 0x15fd, 0x0000 },
+ { 0x0700, 0x15ff, 0x0000 },
+ { 0x8700, 0x1604, 0x3000 },
+ { 0x8700, 0x1602, 0x2000 },
+ { 0x0700, 0x1601, 0x0000 },
+ { 0x0700, 0x1603, 0x0000 },
+ { 0x8700, 0x1606, 0x2000 },
+ { 0x0700, 0x1605, 0x0000 },
+ { 0x0700, 0x1607, 0x0000 },
+ { 0x8700, 0x1610, 0x4000 },
+ { 0x8700, 0x160c, 0x3000 },
+ { 0x8700, 0x160a, 0x2000 },
+ { 0x0700, 0x1609, 0x0000 },
+ { 0x0700, 0x160b, 0x0000 },
+ { 0x8700, 0x160e, 0x2000 },
+ { 0x0700, 0x160d, 0x0000 },
+ { 0x0700, 0x160f, 0x0000 },
+ { 0x8700, 0x1614, 0x3000 },
+ { 0x8700, 0x1612, 0x2000 },
+ { 0x0700, 0x1611, 0x0000 },
+ { 0x0700, 0x1613, 0x0000 },
+ { 0x8700, 0x1616, 0x2000 },
+ { 0x0700, 0x1615, 0x0000 },
+ { 0x0700, 0x1617, 0x0000 },
+ { 0x8700, 0x1638, 0x6000 },
+ { 0x8700, 0x1628, 0x5000 },
+ { 0x8700, 0x1620, 0x4000 },
+ { 0x8700, 0x161c, 0x3000 },
+ { 0x8700, 0x161a, 0x2000 },
+ { 0x0700, 0x1619, 0x0000 },
+ { 0x0700, 0x161b, 0x0000 },
+ { 0x8700, 0x161e, 0x2000 },
+ { 0x0700, 0x161d, 0x0000 },
+ { 0x0700, 0x161f, 0x0000 },
+ { 0x8700, 0x1624, 0x3000 },
+ { 0x8700, 0x1622, 0x2000 },
+ { 0x0700, 0x1621, 0x0000 },
+ { 0x0700, 0x1623, 0x0000 },
+ { 0x8700, 0x1626, 0x2000 },
+ { 0x0700, 0x1625, 0x0000 },
+ { 0x0700, 0x1627, 0x0000 },
+ { 0x8700, 0x1630, 0x4000 },
+ { 0x8700, 0x162c, 0x3000 },
+ { 0x8700, 0x162a, 0x2000 },
+ { 0x0700, 0x1629, 0x0000 },
+ { 0x0700, 0x162b, 0x0000 },
+ { 0x8700, 0x162e, 0x2000 },
+ { 0x0700, 0x162d, 0x0000 },
+ { 0x0700, 0x162f, 0x0000 },
+ { 0x8700, 0x1634, 0x3000 },
+ { 0x8700, 0x1632, 0x2000 },
+ { 0x0700, 0x1631, 0x0000 },
+ { 0x0700, 0x1633, 0x0000 },
+ { 0x8700, 0x1636, 0x2000 },
+ { 0x0700, 0x1635, 0x0000 },
+ { 0x0700, 0x1637, 0x0000 },
+ { 0x8700, 0x1648, 0x5000 },
+ { 0x8700, 0x1640, 0x4000 },
+ { 0x8700, 0x163c, 0x3000 },
+ { 0x8700, 0x163a, 0x2000 },
+ { 0x0700, 0x1639, 0x0000 },
+ { 0x0700, 0x163b, 0x0000 },
+ { 0x8700, 0x163e, 0x2000 },
+ { 0x0700, 0x163d, 0x0000 },
+ { 0x0700, 0x163f, 0x0000 },
+ { 0x8700, 0x1644, 0x3000 },
+ { 0x8700, 0x1642, 0x2000 },
+ { 0x0700, 0x1641, 0x0000 },
+ { 0x0700, 0x1643, 0x0000 },
+ { 0x8700, 0x1646, 0x2000 },
+ { 0x0700, 0x1645, 0x0000 },
+ { 0x0700, 0x1647, 0x0000 },
+ { 0x8700, 0x1650, 0x4000 },
+ { 0x8700, 0x164c, 0x3000 },
+ { 0x8700, 0x164a, 0x2000 },
+ { 0x0700, 0x1649, 0x0000 },
+ { 0x0700, 0x164b, 0x0000 },
+ { 0x8700, 0x164e, 0x2000 },
+ { 0x0700, 0x164d, 0x0000 },
+ { 0x0700, 0x164f, 0x0000 },
+ { 0x8700, 0x1654, 0x3000 },
+ { 0x8700, 0x1652, 0x2000 },
+ { 0x0700, 0x1651, 0x0000 },
+ { 0x0700, 0x1653, 0x0000 },
+ { 0x8700, 0x1656, 0x2000 },
+ { 0x0700, 0x1655, 0x0000 },
+ { 0x0700, 0x1657, 0x0000 },
+ { 0x8700, 0x16e4, 0x8000 },
+ { 0x8700, 0x16a4, 0x7000 },
+ { 0x8700, 0x1681, 0x6000 },
+ { 0x8700, 0x1668, 0x5000 },
+ { 0x8700, 0x1660, 0x4000 },
+ { 0x8700, 0x165c, 0x3000 },
+ { 0x8700, 0x165a, 0x2000 },
+ { 0x0700, 0x1659, 0x0000 },
+ { 0x0700, 0x165b, 0x0000 },
+ { 0x8700, 0x165e, 0x2000 },
+ { 0x0700, 0x165d, 0x0000 },
+ { 0x0700, 0x165f, 0x0000 },
+ { 0x8700, 0x1664, 0x3000 },
+ { 0x8700, 0x1662, 0x2000 },
+ { 0x0700, 0x1661, 0x0000 },
+ { 0x0700, 0x1663, 0x0000 },
+ { 0x8700, 0x1666, 0x2000 },
+ { 0x0700, 0x1665, 0x0000 },
+ { 0x0700, 0x1667, 0x0000 },
+ { 0x8700, 0x1670, 0x4000 },
+ { 0x8700, 0x166c, 0x3000 },
+ { 0x8700, 0x166a, 0x2000 },
+ { 0x0700, 0x1669, 0x0000 },
+ { 0x0700, 0x166b, 0x0000 },
+ { 0x9500, 0x166e, 0x2000 },
+ { 0x1500, 0x166d, 0x0000 },
+ { 0x0700, 0x166f, 0x0000 },
+ { 0x8700, 0x1674, 0x3000 },
+ { 0x8700, 0x1672, 0x2000 },
+ { 0x0700, 0x1671, 0x0000 },
+ { 0x0700, 0x1673, 0x0000 },
+ { 0x8700, 0x1676, 0x2000 },
+ { 0x0700, 0x1675, 0x0000 },
+ { 0x1d00, 0x1680, 0x0000 },
+ { 0x8700, 0x1691, 0x5000 },
+ { 0x8700, 0x1689, 0x4000 },
+ { 0x8700, 0x1685, 0x3000 },
+ { 0x8700, 0x1683, 0x2000 },
+ { 0x0700, 0x1682, 0x0000 },
+ { 0x0700, 0x1684, 0x0000 },
+ { 0x8700, 0x1687, 0x2000 },
+ { 0x0700, 0x1686, 0x0000 },
+ { 0x0700, 0x1688, 0x0000 },
+ { 0x8700, 0x168d, 0x3000 },
+ { 0x8700, 0x168b, 0x2000 },
+ { 0x0700, 0x168a, 0x0000 },
+ { 0x0700, 0x168c, 0x0000 },
+ { 0x8700, 0x168f, 0x2000 },
+ { 0x0700, 0x168e, 0x0000 },
+ { 0x0700, 0x1690, 0x0000 },
+ { 0x8700, 0x1699, 0x4000 },
+ { 0x8700, 0x1695, 0x3000 },
+ { 0x8700, 0x1693, 0x2000 },
+ { 0x0700, 0x1692, 0x0000 },
+ { 0x0700, 0x1694, 0x0000 },
+ { 0x8700, 0x1697, 0x2000 },
+ { 0x0700, 0x1696, 0x0000 },
+ { 0x0700, 0x1698, 0x0000 },
+ { 0x8700, 0x16a0, 0x3000 },
+ { 0x9600, 0x169b, 0x2000 },
+ { 0x0700, 0x169a, 0x0000 },
+ { 0x1200, 0x169c, 0x0000 },
+ { 0x8700, 0x16a2, 0x2000 },
+ { 0x0700, 0x16a1, 0x0000 },
+ { 0x0700, 0x16a3, 0x0000 },
+ { 0x8700, 0x16c4, 0x6000 },
+ { 0x8700, 0x16b4, 0x5000 },
+ { 0x8700, 0x16ac, 0x4000 },
+ { 0x8700, 0x16a8, 0x3000 },
+ { 0x8700, 0x16a6, 0x2000 },
+ { 0x0700, 0x16a5, 0x0000 },
+ { 0x0700, 0x16a7, 0x0000 },
+ { 0x8700, 0x16aa, 0x2000 },
+ { 0x0700, 0x16a9, 0x0000 },
+ { 0x0700, 0x16ab, 0x0000 },
+ { 0x8700, 0x16b0, 0x3000 },
+ { 0x8700, 0x16ae, 0x2000 },
+ { 0x0700, 0x16ad, 0x0000 },
+ { 0x0700, 0x16af, 0x0000 },
+ { 0x8700, 0x16b2, 0x2000 },
+ { 0x0700, 0x16b1, 0x0000 },
+ { 0x0700, 0x16b3, 0x0000 },
+ { 0x8700, 0x16bc, 0x4000 },
+ { 0x8700, 0x16b8, 0x3000 },
+ { 0x8700, 0x16b6, 0x2000 },
+ { 0x0700, 0x16b5, 0x0000 },
+ { 0x0700, 0x16b7, 0x0000 },
+ { 0x8700, 0x16ba, 0x2000 },
+ { 0x0700, 0x16b9, 0x0000 },
+ { 0x0700, 0x16bb, 0x0000 },
+ { 0x8700, 0x16c0, 0x3000 },
+ { 0x8700, 0x16be, 0x2000 },
+ { 0x0700, 0x16bd, 0x0000 },
+ { 0x0700, 0x16bf, 0x0000 },
+ { 0x8700, 0x16c2, 0x2000 },
+ { 0x0700, 0x16c1, 0x0000 },
+ { 0x0700, 0x16c3, 0x0000 },
+ { 0x8700, 0x16d4, 0x5000 },
+ { 0x8700, 0x16cc, 0x4000 },
+ { 0x8700, 0x16c8, 0x3000 },
+ { 0x8700, 0x16c6, 0x2000 },
+ { 0x0700, 0x16c5, 0x0000 },
+ { 0x0700, 0x16c7, 0x0000 },
+ { 0x8700, 0x16ca, 0x2000 },
+ { 0x0700, 0x16c9, 0x0000 },
+ { 0x0700, 0x16cb, 0x0000 },
+ { 0x8700, 0x16d0, 0x3000 },
+ { 0x8700, 0x16ce, 0x2000 },
+ { 0x0700, 0x16cd, 0x0000 },
+ { 0x0700, 0x16cf, 0x0000 },
+ { 0x8700, 0x16d2, 0x2000 },
+ { 0x0700, 0x16d1, 0x0000 },
+ { 0x0700, 0x16d3, 0x0000 },
+ { 0x8700, 0x16dc, 0x4000 },
+ { 0x8700, 0x16d8, 0x3000 },
+ { 0x8700, 0x16d6, 0x2000 },
+ { 0x0700, 0x16d5, 0x0000 },
+ { 0x0700, 0x16d7, 0x0000 },
+ { 0x8700, 0x16da, 0x2000 },
+ { 0x0700, 0x16d9, 0x0000 },
+ { 0x0700, 0x16db, 0x0000 },
+ { 0x8700, 0x16e0, 0x3000 },
+ { 0x8700, 0x16de, 0x2000 },
+ { 0x0700, 0x16dd, 0x0000 },
+ { 0x0700, 0x16df, 0x0000 },
+ { 0x8700, 0x16e2, 0x2000 },
+ { 0x0700, 0x16e1, 0x0000 },
+ { 0x0700, 0x16e3, 0x0000 },
+ { 0x8700, 0x1748, 0x7000 },
+ { 0x8c00, 0x1714, 0x6000 },
+ { 0x8700, 0x1703, 0x5000 },
+ { 0x9500, 0x16ec, 0x4000 },
+ { 0x8700, 0x16e8, 0x3000 },
+ { 0x8700, 0x16e6, 0x2000 },
+ { 0x0700, 0x16e5, 0x0000 },
+ { 0x0700, 0x16e7, 0x0000 },
+ { 0x8700, 0x16ea, 0x2000 },
+ { 0x0700, 0x16e9, 0x0000 },
+ { 0x1500, 0x16eb, 0x0000 },
+ { 0x8e00, 0x16f0, 0x3000 },
+ { 0x8e00, 0x16ee, 0x2000 },
+ { 0x1500, 0x16ed, 0x0000 },
+ { 0x0e00, 0x16ef, 0x0000 },
+ { 0x8700, 0x1701, 0x2000 },
+ { 0x0700, 0x1700, 0x0000 },
+ { 0x0700, 0x1702, 0x0000 },
+ { 0x8700, 0x170b, 0x4000 },
+ { 0x8700, 0x1707, 0x3000 },
+ { 0x8700, 0x1705, 0x2000 },
+ { 0x0700, 0x1704, 0x0000 },
+ { 0x0700, 0x1706, 0x0000 },
+ { 0x8700, 0x1709, 0x2000 },
+ { 0x0700, 0x1708, 0x0000 },
+ { 0x0700, 0x170a, 0x0000 },
+ { 0x8700, 0x1710, 0x3000 },
+ { 0x8700, 0x170e, 0x2000 },
+ { 0x0700, 0x170c, 0x0000 },
+ { 0x0700, 0x170f, 0x0000 },
+ { 0x8c00, 0x1712, 0x2000 },
+ { 0x0700, 0x1711, 0x0000 },
+ { 0x0c00, 0x1713, 0x0000 },
+ { 0x8700, 0x172f, 0x5000 },
+ { 0x8700, 0x1727, 0x4000 },
+ { 0x8700, 0x1723, 0x3000 },
+ { 0x8700, 0x1721, 0x2000 },
+ { 0x0700, 0x1720, 0x0000 },
+ { 0x0700, 0x1722, 0x0000 },
+ { 0x8700, 0x1725, 0x2000 },
+ { 0x0700, 0x1724, 0x0000 },
+ { 0x0700, 0x1726, 0x0000 },
+ { 0x8700, 0x172b, 0x3000 },
+ { 0x8700, 0x1729, 0x2000 },
+ { 0x0700, 0x1728, 0x0000 },
+ { 0x0700, 0x172a, 0x0000 },
+ { 0x8700, 0x172d, 0x2000 },
+ { 0x0700, 0x172c, 0x0000 },
+ { 0x0700, 0x172e, 0x0000 },
+ { 0x8700, 0x1740, 0x4000 },
+ { 0x8c00, 0x1733, 0x3000 },
+ { 0x8700, 0x1731, 0x2000 },
+ { 0x0700, 0x1730, 0x0000 },
+ { 0x0c00, 0x1732, 0x0000 },
+ { 0x9500, 0x1735, 0x2000 },
+ { 0x0c00, 0x1734, 0x0000 },
+ { 0x1500, 0x1736, 0x0000 },
+ { 0x8700, 0x1744, 0x3000 },
+ { 0x8700, 0x1742, 0x2000 },
+ { 0x0700, 0x1741, 0x0000 },
+ { 0x0700, 0x1743, 0x0000 },
+ { 0x8700, 0x1746, 0x2000 },
+ { 0x0700, 0x1745, 0x0000 },
+ { 0x0700, 0x1747, 0x0000 },
+ { 0x8700, 0x1782, 0x6000 },
+ { 0x8700, 0x1764, 0x5000 },
+ { 0x8700, 0x1750, 0x4000 },
+ { 0x8700, 0x174c, 0x3000 },
+ { 0x8700, 0x174a, 0x2000 },
+ { 0x0700, 0x1749, 0x0000 },
+ { 0x0700, 0x174b, 0x0000 },
+ { 0x8700, 0x174e, 0x2000 },
+ { 0x0700, 0x174d, 0x0000 },
+ { 0x0700, 0x174f, 0x0000 },
+ { 0x8700, 0x1760, 0x3000 },
+ { 0x8c00, 0x1752, 0x2000 },
+ { 0x0700, 0x1751, 0x0000 },
+ { 0x0c00, 0x1753, 0x0000 },
+ { 0x8700, 0x1762, 0x2000 },
+ { 0x0700, 0x1761, 0x0000 },
+ { 0x0700, 0x1763, 0x0000 },
+ { 0x8700, 0x176c, 0x4000 },
+ { 0x8700, 0x1768, 0x3000 },
+ { 0x8700, 0x1766, 0x2000 },
+ { 0x0700, 0x1765, 0x0000 },
+ { 0x0700, 0x1767, 0x0000 },
+ { 0x8700, 0x176a, 0x2000 },
+ { 0x0700, 0x1769, 0x0000 },
+ { 0x0700, 0x176b, 0x0000 },
+ { 0x8c00, 0x1772, 0x3000 },
+ { 0x8700, 0x176f, 0x2000 },
+ { 0x0700, 0x176e, 0x0000 },
+ { 0x0700, 0x1770, 0x0000 },
+ { 0x8700, 0x1780, 0x2000 },
+ { 0x0c00, 0x1773, 0x0000 },
+ { 0x0700, 0x1781, 0x0000 },
+ { 0x8700, 0x1792, 0x5000 },
+ { 0x8700, 0x178a, 0x4000 },
+ { 0x8700, 0x1786, 0x3000 },
+ { 0x8700, 0x1784, 0x2000 },
+ { 0x0700, 0x1783, 0x0000 },
+ { 0x0700, 0x1785, 0x0000 },
+ { 0x8700, 0x1788, 0x2000 },
+ { 0x0700, 0x1787, 0x0000 },
+ { 0x0700, 0x1789, 0x0000 },
+ { 0x8700, 0x178e, 0x3000 },
+ { 0x8700, 0x178c, 0x2000 },
+ { 0x0700, 0x178b, 0x0000 },
+ { 0x0700, 0x178d, 0x0000 },
+ { 0x8700, 0x1790, 0x2000 },
+ { 0x0700, 0x178f, 0x0000 },
+ { 0x0700, 0x1791, 0x0000 },
+ { 0x8700, 0x179a, 0x4000 },
+ { 0x8700, 0x1796, 0x3000 },
+ { 0x8700, 0x1794, 0x2000 },
+ { 0x0700, 0x1793, 0x0000 },
+ { 0x0700, 0x1795, 0x0000 },
+ { 0x8700, 0x1798, 0x2000 },
+ { 0x0700, 0x1797, 0x0000 },
+ { 0x0700, 0x1799, 0x0000 },
+ { 0x8700, 0x179e, 0x3000 },
+ { 0x8700, 0x179c, 0x2000 },
+ { 0x0700, 0x179b, 0x0000 },
+ { 0x0700, 0x179d, 0x0000 },
+ { 0x8700, 0x17a0, 0x2000 },
+ { 0x0700, 0x179f, 0x0000 },
+ { 0x0700, 0x17a1, 0x0000 },
+ { 0x8700, 0x1915, 0x9000 },
+ { 0x8700, 0x1837, 0x8000 },
+ { 0x8d00, 0x17e4, 0x7000 },
+ { 0x8a00, 0x17c2, 0x6000 },
+ { 0x8700, 0x17b2, 0x5000 },
+ { 0x8700, 0x17aa, 0x4000 },
+ { 0x8700, 0x17a6, 0x3000 },
+ { 0x8700, 0x17a4, 0x2000 },
+ { 0x0700, 0x17a3, 0x0000 },
+ { 0x0700, 0x17a5, 0x0000 },
+ { 0x8700, 0x17a8, 0x2000 },
+ { 0x0700, 0x17a7, 0x0000 },
+ { 0x0700, 0x17a9, 0x0000 },
+ { 0x8700, 0x17ae, 0x3000 },
+ { 0x8700, 0x17ac, 0x2000 },
+ { 0x0700, 0x17ab, 0x0000 },
+ { 0x0700, 0x17ad, 0x0000 },
+ { 0x8700, 0x17b0, 0x2000 },
+ { 0x0700, 0x17af, 0x0000 },
+ { 0x0700, 0x17b1, 0x0000 },
+ { 0x8c00, 0x17ba, 0x4000 },
+ { 0x8a00, 0x17b6, 0x3000 },
+ { 0x8100, 0x17b4, 0x2000 },
+ { 0x0700, 0x17b3, 0x0000 },
+ { 0x0100, 0x17b5, 0x0000 },
+ { 0x8c00, 0x17b8, 0x2000 },
+ { 0x0c00, 0x17b7, 0x0000 },
+ { 0x0c00, 0x17b9, 0x0000 },
+ { 0x8a00, 0x17be, 0x3000 },
+ { 0x8c00, 0x17bc, 0x2000 },
+ { 0x0c00, 0x17bb, 0x0000 },
+ { 0x0c00, 0x17bd, 0x0000 },
+ { 0x8a00, 0x17c0, 0x2000 },
+ { 0x0a00, 0x17bf, 0x0000 },
+ { 0x0a00, 0x17c1, 0x0000 },
+ { 0x8c00, 0x17d2, 0x5000 },
+ { 0x8c00, 0x17ca, 0x4000 },
+ { 0x8c00, 0x17c6, 0x3000 },
+ { 0x8a00, 0x17c4, 0x2000 },
+ { 0x0a00, 0x17c3, 0x0000 },
+ { 0x0a00, 0x17c5, 0x0000 },
+ { 0x8a00, 0x17c8, 0x2000 },
+ { 0x0a00, 0x17c7, 0x0000 },
+ { 0x0c00, 0x17c9, 0x0000 },
+ { 0x8c00, 0x17ce, 0x3000 },
+ { 0x8c00, 0x17cc, 0x2000 },
+ { 0x0c00, 0x17cb, 0x0000 },
+ { 0x0c00, 0x17cd, 0x0000 },
+ { 0x8c00, 0x17d0, 0x2000 },
+ { 0x0c00, 0x17cf, 0x0000 },
+ { 0x0c00, 0x17d1, 0x0000 },
+ { 0x9500, 0x17da, 0x4000 },
+ { 0x9500, 0x17d6, 0x3000 },
+ { 0x9500, 0x17d4, 0x2000 },
+ { 0x0c00, 0x17d3, 0x0000 },
+ { 0x1500, 0x17d5, 0x0000 },
+ { 0x9500, 0x17d8, 0x2000 },
+ { 0x0600, 0x17d7, 0x0000 },
+ { 0x1500, 0x17d9, 0x0000 },
+ { 0x8d00, 0x17e0, 0x3000 },
+ { 0x8700, 0x17dc, 0x2000 },
+ { 0x1700, 0x17db, 0x0000 },
+ { 0x0c00, 0x17dd, 0x0000 },
+ { 0x8d00, 0x17e2, 0x2000 },
+ { 0x0d00, 0x17e1, 0x0000 },
+ { 0x0d00, 0x17e3, 0x0000 },
+ { 0x8d00, 0x1811, 0x6000 },
+ { 0x9500, 0x1800, 0x5000 },
+ { 0x8f00, 0x17f2, 0x4000 },
+ { 0x8d00, 0x17e8, 0x3000 },
+ { 0x8d00, 0x17e6, 0x2000 },
+ { 0x0d00, 0x17e5, 0x0000 },
+ { 0x0d00, 0x17e7, 0x0000 },
+ { 0x8f00, 0x17f0, 0x2000 },
+ { 0x0d00, 0x17e9, 0x0000 },
+ { 0x0f00, 0x17f1, 0x0000 },
+ { 0x8f00, 0x17f6, 0x3000 },
+ { 0x8f00, 0x17f4, 0x2000 },
+ { 0x0f00, 0x17f3, 0x0000 },
+ { 0x0f00, 0x17f5, 0x0000 },
+ { 0x8f00, 0x17f8, 0x2000 },
+ { 0x0f00, 0x17f7, 0x0000 },
+ { 0x0f00, 0x17f9, 0x0000 },
+ { 0x9500, 0x1808, 0x4000 },
+ { 0x9500, 0x1804, 0x3000 },
+ { 0x9500, 0x1802, 0x2000 },
+ { 0x1500, 0x1801, 0x0000 },
+ { 0x1500, 0x1803, 0x0000 },
+ { 0x9100, 0x1806, 0x2000 },
+ { 0x1500, 0x1805, 0x0000 },
+ { 0x1500, 0x1807, 0x0000 },
+ { 0x8c00, 0x180c, 0x3000 },
+ { 0x9500, 0x180a, 0x2000 },
+ { 0x1500, 0x1809, 0x0000 },
+ { 0x0c00, 0x180b, 0x0000 },
+ { 0x9d00, 0x180e, 0x2000 },
+ { 0x0c00, 0x180d, 0x0000 },
+ { 0x0d00, 0x1810, 0x0000 },
+ { 0x8700, 0x1827, 0x5000 },
+ { 0x8d00, 0x1819, 0x4000 },
+ { 0x8d00, 0x1815, 0x3000 },
+ { 0x8d00, 0x1813, 0x2000 },
+ { 0x0d00, 0x1812, 0x0000 },
+ { 0x0d00, 0x1814, 0x0000 },
+ { 0x8d00, 0x1817, 0x2000 },
+ { 0x0d00, 0x1816, 0x0000 },
+ { 0x0d00, 0x1818, 0x0000 },
+ { 0x8700, 0x1823, 0x3000 },
+ { 0x8700, 0x1821, 0x2000 },
+ { 0x0700, 0x1820, 0x0000 },
+ { 0x0700, 0x1822, 0x0000 },
+ { 0x8700, 0x1825, 0x2000 },
+ { 0x0700, 0x1824, 0x0000 },
+ { 0x0700, 0x1826, 0x0000 },
+ { 0x8700, 0x182f, 0x4000 },
+ { 0x8700, 0x182b, 0x3000 },
+ { 0x8700, 0x1829, 0x2000 },
+ { 0x0700, 0x1828, 0x0000 },
+ { 0x0700, 0x182a, 0x0000 },
+ { 0x8700, 0x182d, 0x2000 },
+ { 0x0700, 0x182c, 0x0000 },
+ { 0x0700, 0x182e, 0x0000 },
+ { 0x8700, 0x1833, 0x3000 },
+ { 0x8700, 0x1831, 0x2000 },
+ { 0x0700, 0x1830, 0x0000 },
+ { 0x0700, 0x1832, 0x0000 },
+ { 0x8700, 0x1835, 0x2000 },
+ { 0x0700, 0x1834, 0x0000 },
+ { 0x0700, 0x1836, 0x0000 },
+ { 0x8700, 0x1877, 0x7000 },
+ { 0x8700, 0x1857, 0x6000 },
+ { 0x8700, 0x1847, 0x5000 },
+ { 0x8700, 0x183f, 0x4000 },
+ { 0x8700, 0x183b, 0x3000 },
+ { 0x8700, 0x1839, 0x2000 },
+ { 0x0700, 0x1838, 0x0000 },
+ { 0x0700, 0x183a, 0x0000 },
+ { 0x8700, 0x183d, 0x2000 },
+ { 0x0700, 0x183c, 0x0000 },
+ { 0x0700, 0x183e, 0x0000 },
+ { 0x8600, 0x1843, 0x3000 },
+ { 0x8700, 0x1841, 0x2000 },
+ { 0x0700, 0x1840, 0x0000 },
+ { 0x0700, 0x1842, 0x0000 },
+ { 0x8700, 0x1845, 0x2000 },
+ { 0x0700, 0x1844, 0x0000 },
+ { 0x0700, 0x1846, 0x0000 },
+ { 0x8700, 0x184f, 0x4000 },
+ { 0x8700, 0x184b, 0x3000 },
+ { 0x8700, 0x1849, 0x2000 },
+ { 0x0700, 0x1848, 0x0000 },
+ { 0x0700, 0x184a, 0x0000 },
+ { 0x8700, 0x184d, 0x2000 },
+ { 0x0700, 0x184c, 0x0000 },
+ { 0x0700, 0x184e, 0x0000 },
+ { 0x8700, 0x1853, 0x3000 },
+ { 0x8700, 0x1851, 0x2000 },
+ { 0x0700, 0x1850, 0x0000 },
+ { 0x0700, 0x1852, 0x0000 },
+ { 0x8700, 0x1855, 0x2000 },
+ { 0x0700, 0x1854, 0x0000 },
+ { 0x0700, 0x1856, 0x0000 },
+ { 0x8700, 0x1867, 0x5000 },
+ { 0x8700, 0x185f, 0x4000 },
+ { 0x8700, 0x185b, 0x3000 },
+ { 0x8700, 0x1859, 0x2000 },
+ { 0x0700, 0x1858, 0x0000 },
+ { 0x0700, 0x185a, 0x0000 },
+ { 0x8700, 0x185d, 0x2000 },
+ { 0x0700, 0x185c, 0x0000 },
+ { 0x0700, 0x185e, 0x0000 },
+ { 0x8700, 0x1863, 0x3000 },
+ { 0x8700, 0x1861, 0x2000 },
+ { 0x0700, 0x1860, 0x0000 },
+ { 0x0700, 0x1862, 0x0000 },
+ { 0x8700, 0x1865, 0x2000 },
+ { 0x0700, 0x1864, 0x0000 },
+ { 0x0700, 0x1866, 0x0000 },
+ { 0x8700, 0x186f, 0x4000 },
+ { 0x8700, 0x186b, 0x3000 },
+ { 0x8700, 0x1869, 0x2000 },
+ { 0x0700, 0x1868, 0x0000 },
+ { 0x0700, 0x186a, 0x0000 },
+ { 0x8700, 0x186d, 0x2000 },
+ { 0x0700, 0x186c, 0x0000 },
+ { 0x0700, 0x186e, 0x0000 },
+ { 0x8700, 0x1873, 0x3000 },
+ { 0x8700, 0x1871, 0x2000 },
+ { 0x0700, 0x1870, 0x0000 },
+ { 0x0700, 0x1872, 0x0000 },
+ { 0x8700, 0x1875, 0x2000 },
+ { 0x0700, 0x1874, 0x0000 },
+ { 0x0700, 0x1876, 0x0000 },
+ { 0x8700, 0x189f, 0x6000 },
+ { 0x8700, 0x188f, 0x5000 },
+ { 0x8700, 0x1887, 0x4000 },
+ { 0x8700, 0x1883, 0x3000 },
+ { 0x8700, 0x1881, 0x2000 },
+ { 0x0700, 0x1880, 0x0000 },
+ { 0x0700, 0x1882, 0x0000 },
+ { 0x8700, 0x1885, 0x2000 },
+ { 0x0700, 0x1884, 0x0000 },
+ { 0x0700, 0x1886, 0x0000 },
+ { 0x8700, 0x188b, 0x3000 },
+ { 0x8700, 0x1889, 0x2000 },
+ { 0x0700, 0x1888, 0x0000 },
+ { 0x0700, 0x188a, 0x0000 },
+ { 0x8700, 0x188d, 0x2000 },
+ { 0x0700, 0x188c, 0x0000 },
+ { 0x0700, 0x188e, 0x0000 },
+ { 0x8700, 0x1897, 0x4000 },
+ { 0x8700, 0x1893, 0x3000 },
+ { 0x8700, 0x1891, 0x2000 },
+ { 0x0700, 0x1890, 0x0000 },
+ { 0x0700, 0x1892, 0x0000 },
+ { 0x8700, 0x1895, 0x2000 },
+ { 0x0700, 0x1894, 0x0000 },
+ { 0x0700, 0x1896, 0x0000 },
+ { 0x8700, 0x189b, 0x3000 },
+ { 0x8700, 0x1899, 0x2000 },
+ { 0x0700, 0x1898, 0x0000 },
+ { 0x0700, 0x189a, 0x0000 },
+ { 0x8700, 0x189d, 0x2000 },
+ { 0x0700, 0x189c, 0x0000 },
+ { 0x0700, 0x189e, 0x0000 },
+ { 0x8700, 0x1905, 0x5000 },
+ { 0x8700, 0x18a7, 0x4000 },
+ { 0x8700, 0x18a3, 0x3000 },
+ { 0x8700, 0x18a1, 0x2000 },
+ { 0x0700, 0x18a0, 0x0000 },
+ { 0x0700, 0x18a2, 0x0000 },
+ { 0x8700, 0x18a5, 0x2000 },
+ { 0x0700, 0x18a4, 0x0000 },
+ { 0x0700, 0x18a6, 0x0000 },
+ { 0x8700, 0x1901, 0x3000 },
+ { 0x8c00, 0x18a9, 0x2000 },
+ { 0x0700, 0x18a8, 0x0000 },
+ { 0x0700, 0x1900, 0x0000 },
+ { 0x8700, 0x1903, 0x2000 },
+ { 0x0700, 0x1902, 0x0000 },
+ { 0x0700, 0x1904, 0x0000 },
+ { 0x8700, 0x190d, 0x4000 },
+ { 0x8700, 0x1909, 0x3000 },
+ { 0x8700, 0x1907, 0x2000 },
+ { 0x0700, 0x1906, 0x0000 },
+ { 0x0700, 0x1908, 0x0000 },
+ { 0x8700, 0x190b, 0x2000 },
+ { 0x0700, 0x190a, 0x0000 },
+ { 0x0700, 0x190c, 0x0000 },
+ { 0x8700, 0x1911, 0x3000 },
+ { 0x8700, 0x190f, 0x2000 },
+ { 0x0700, 0x190e, 0x0000 },
+ { 0x0700, 0x1910, 0x0000 },
+ { 0x8700, 0x1913, 0x2000 },
+ { 0x0700, 0x1912, 0x0000 },
+ { 0x0700, 0x1914, 0x0000 },
+ { 0x8500, 0x1d10, 0x8000 },
+ { 0x8700, 0x1963, 0x7000 },
+ { 0x9a00, 0x1940, 0x6000 },
+ { 0x8c00, 0x1928, 0x5000 },
+ { 0x8c00, 0x1920, 0x4000 },
+ { 0x8700, 0x1919, 0x3000 },
+ { 0x8700, 0x1917, 0x2000 },
+ { 0x0700, 0x1916, 0x0000 },
+ { 0x0700, 0x1918, 0x0000 },
+ { 0x8700, 0x191b, 0x2000 },
+ { 0x0700, 0x191a, 0x0000 },
+ { 0x0700, 0x191c, 0x0000 },
+ { 0x8a00, 0x1924, 0x3000 },
+ { 0x8c00, 0x1922, 0x2000 },
+ { 0x0c00, 0x1921, 0x0000 },
+ { 0x0a00, 0x1923, 0x0000 },
+ { 0x8a00, 0x1926, 0x2000 },
+ { 0x0a00, 0x1925, 0x0000 },
+ { 0x0c00, 0x1927, 0x0000 },
+ { 0x8a00, 0x1934, 0x4000 },
+ { 0x8a00, 0x1930, 0x3000 },
+ { 0x8a00, 0x192a, 0x2000 },
+ { 0x0a00, 0x1929, 0x0000 },
+ { 0x0a00, 0x192b, 0x0000 },
+ { 0x8c00, 0x1932, 0x2000 },
+ { 0x0a00, 0x1931, 0x0000 },
+ { 0x0a00, 0x1933, 0x0000 },
+ { 0x8a00, 0x1938, 0x3000 },
+ { 0x8a00, 0x1936, 0x2000 },
+ { 0x0a00, 0x1935, 0x0000 },
+ { 0x0a00, 0x1937, 0x0000 },
+ { 0x8c00, 0x193a, 0x2000 },
+ { 0x0c00, 0x1939, 0x0000 },
+ { 0x0c00, 0x193b, 0x0000 },
+ { 0x8700, 0x1953, 0x5000 },
+ { 0x8d00, 0x194b, 0x4000 },
+ { 0x8d00, 0x1947, 0x3000 },
+ { 0x9500, 0x1945, 0x2000 },
+ { 0x1500, 0x1944, 0x0000 },
+ { 0x0d00, 0x1946, 0x0000 },
+ { 0x8d00, 0x1949, 0x2000 },
+ { 0x0d00, 0x1948, 0x0000 },
+ { 0x0d00, 0x194a, 0x0000 },
+ { 0x8d00, 0x194f, 0x3000 },
+ { 0x8d00, 0x194d, 0x2000 },
+ { 0x0d00, 0x194c, 0x0000 },
+ { 0x0d00, 0x194e, 0x0000 },
+ { 0x8700, 0x1951, 0x2000 },
+ { 0x0700, 0x1950, 0x0000 },
+ { 0x0700, 0x1952, 0x0000 },
+ { 0x8700, 0x195b, 0x4000 },
+ { 0x8700, 0x1957, 0x3000 },
+ { 0x8700, 0x1955, 0x2000 },
+ { 0x0700, 0x1954, 0x0000 },
+ { 0x0700, 0x1956, 0x0000 },
+ { 0x8700, 0x1959, 0x2000 },
+ { 0x0700, 0x1958, 0x0000 },
+ { 0x0700, 0x195a, 0x0000 },
+ { 0x8700, 0x195f, 0x3000 },
+ { 0x8700, 0x195d, 0x2000 },
+ { 0x0700, 0x195c, 0x0000 },
+ { 0x0700, 0x195e, 0x0000 },
+ { 0x8700, 0x1961, 0x2000 },
+ { 0x0700, 0x1960, 0x0000 },
+ { 0x0700, 0x1962, 0x0000 },
+ { 0x9a00, 0x19f0, 0x6000 },
+ { 0x9a00, 0x19e0, 0x5000 },
+ { 0x8700, 0x196b, 0x4000 },
+ { 0x8700, 0x1967, 0x3000 },
+ { 0x8700, 0x1965, 0x2000 },
+ { 0x0700, 0x1964, 0x0000 },
+ { 0x0700, 0x1966, 0x0000 },
+ { 0x8700, 0x1969, 0x2000 },
+ { 0x0700, 0x1968, 0x0000 },
+ { 0x0700, 0x196a, 0x0000 },
+ { 0x8700, 0x1971, 0x3000 },
+ { 0x8700, 0x196d, 0x2000 },
+ { 0x0700, 0x196c, 0x0000 },
+ { 0x0700, 0x1970, 0x0000 },
+ { 0x8700, 0x1973, 0x2000 },
+ { 0x0700, 0x1972, 0x0000 },
+ { 0x0700, 0x1974, 0x0000 },
+ { 0x9a00, 0x19e8, 0x4000 },
+ { 0x9a00, 0x19e4, 0x3000 },
+ { 0x9a00, 0x19e2, 0x2000 },
+ { 0x1a00, 0x19e1, 0x0000 },
+ { 0x1a00, 0x19e3, 0x0000 },
+ { 0x9a00, 0x19e6, 0x2000 },
+ { 0x1a00, 0x19e5, 0x0000 },
+ { 0x1a00, 0x19e7, 0x0000 },
+ { 0x9a00, 0x19ec, 0x3000 },
+ { 0x9a00, 0x19ea, 0x2000 },
+ { 0x1a00, 0x19e9, 0x0000 },
+ { 0x1a00, 0x19eb, 0x0000 },
+ { 0x9a00, 0x19ee, 0x2000 },
+ { 0x1a00, 0x19ed, 0x0000 },
+ { 0x1a00, 0x19ef, 0x0000 },
+ { 0x8500, 0x1d00, 0x5000 },
+ { 0x9a00, 0x19f8, 0x4000 },
+ { 0x9a00, 0x19f4, 0x3000 },
+ { 0x9a00, 0x19f2, 0x2000 },
+ { 0x1a00, 0x19f1, 0x0000 },
+ { 0x1a00, 0x19f3, 0x0000 },
+ { 0x9a00, 0x19f6, 0x2000 },
+ { 0x1a00, 0x19f5, 0x0000 },
+ { 0x1a00, 0x19f7, 0x0000 },
+ { 0x9a00, 0x19fc, 0x3000 },
+ { 0x9a00, 0x19fa, 0x2000 },
+ { 0x1a00, 0x19f9, 0x0000 },
+ { 0x1a00, 0x19fb, 0x0000 },
+ { 0x9a00, 0x19fe, 0x2000 },
+ { 0x1a00, 0x19fd, 0x0000 },
+ { 0x1a00, 0x19ff, 0x0000 },
+ { 0x8500, 0x1d08, 0x4000 },
+ { 0x8500, 0x1d04, 0x3000 },
+ { 0x8500, 0x1d02, 0x2000 },
+ { 0x0500, 0x1d01, 0x0000 },
+ { 0x0500, 0x1d03, 0x0000 },
+ { 0x8500, 0x1d06, 0x2000 },
+ { 0x0500, 0x1d05, 0x0000 },
+ { 0x0500, 0x1d07, 0x0000 },
+ { 0x8500, 0x1d0c, 0x3000 },
+ { 0x8500, 0x1d0a, 0x2000 },
+ { 0x0500, 0x1d09, 0x0000 },
+ { 0x0500, 0x1d0b, 0x0000 },
+ { 0x8500, 0x1d0e, 0x2000 },
+ { 0x0500, 0x1d0d, 0x0000 },
+ { 0x0500, 0x1d0f, 0x0000 },
+ { 0x8600, 0x1d50, 0x7000 },
+ { 0x8600, 0x1d30, 0x6000 },
+ { 0x8500, 0x1d20, 0x5000 },
+ { 0x8500, 0x1d18, 0x4000 },
+ { 0x8500, 0x1d14, 0x3000 },
+ { 0x8500, 0x1d12, 0x2000 },
+ { 0x0500, 0x1d11, 0x0000 },
+ { 0x0500, 0x1d13, 0x0000 },
+ { 0x8500, 0x1d16, 0x2000 },
+ { 0x0500, 0x1d15, 0x0000 },
+ { 0x0500, 0x1d17, 0x0000 },
+ { 0x8500, 0x1d1c, 0x3000 },
+ { 0x8500, 0x1d1a, 0x2000 },
+ { 0x0500, 0x1d19, 0x0000 },
+ { 0x0500, 0x1d1b, 0x0000 },
+ { 0x8500, 0x1d1e, 0x2000 },
+ { 0x0500, 0x1d1d, 0x0000 },
+ { 0x0500, 0x1d1f, 0x0000 },
+ { 0x8500, 0x1d28, 0x4000 },
+ { 0x8500, 0x1d24, 0x3000 },
+ { 0x8500, 0x1d22, 0x2000 },
+ { 0x0500, 0x1d21, 0x0000 },
+ { 0x0500, 0x1d23, 0x0000 },
+ { 0x8500, 0x1d26, 0x2000 },
+ { 0x0500, 0x1d25, 0x0000 },
+ { 0x0500, 0x1d27, 0x0000 },
+ { 0x8600, 0x1d2c, 0x3000 },
+ { 0x8500, 0x1d2a, 0x2000 },
+ { 0x0500, 0x1d29, 0x0000 },
+ { 0x0500, 0x1d2b, 0x0000 },
+ { 0x8600, 0x1d2e, 0x2000 },
+ { 0x0600, 0x1d2d, 0x0000 },
+ { 0x0600, 0x1d2f, 0x0000 },
+ { 0x8600, 0x1d40, 0x5000 },
+ { 0x8600, 0x1d38, 0x4000 },
+ { 0x8600, 0x1d34, 0x3000 },
+ { 0x8600, 0x1d32, 0x2000 },
+ { 0x0600, 0x1d31, 0x0000 },
+ { 0x0600, 0x1d33, 0x0000 },
+ { 0x8600, 0x1d36, 0x2000 },
+ { 0x0600, 0x1d35, 0x0000 },
+ { 0x0600, 0x1d37, 0x0000 },
+ { 0x8600, 0x1d3c, 0x3000 },
+ { 0x8600, 0x1d3a, 0x2000 },
+ { 0x0600, 0x1d39, 0x0000 },
+ { 0x0600, 0x1d3b, 0x0000 },
+ { 0x8600, 0x1d3e, 0x2000 },
+ { 0x0600, 0x1d3d, 0x0000 },
+ { 0x0600, 0x1d3f, 0x0000 },
+ { 0x8600, 0x1d48, 0x4000 },
+ { 0x8600, 0x1d44, 0x3000 },
+ { 0x8600, 0x1d42, 0x2000 },
+ { 0x0600, 0x1d41, 0x0000 },
+ { 0x0600, 0x1d43, 0x0000 },
+ { 0x8600, 0x1d46, 0x2000 },
+ { 0x0600, 0x1d45, 0x0000 },
+ { 0x0600, 0x1d47, 0x0000 },
+ { 0x8600, 0x1d4c, 0x3000 },
+ { 0x8600, 0x1d4a, 0x2000 },
+ { 0x0600, 0x1d49, 0x0000 },
+ { 0x0600, 0x1d4b, 0x0000 },
+ { 0x8600, 0x1d4e, 0x2000 },
+ { 0x0600, 0x1d4d, 0x0000 },
+ { 0x0600, 0x1d4f, 0x0000 },
+ { 0x8900, 0x1e04, 0x6001 },
+ { 0x8600, 0x1d60, 0x5000 },
+ { 0x8600, 0x1d58, 0x4000 },
+ { 0x8600, 0x1d54, 0x3000 },
+ { 0x8600, 0x1d52, 0x2000 },
+ { 0x0600, 0x1d51, 0x0000 },
+ { 0x0600, 0x1d53, 0x0000 },
+ { 0x8600, 0x1d56, 0x2000 },
+ { 0x0600, 0x1d55, 0x0000 },
+ { 0x0600, 0x1d57, 0x0000 },
+ { 0x8600, 0x1d5c, 0x3000 },
+ { 0x8600, 0x1d5a, 0x2000 },
+ { 0x0600, 0x1d59, 0x0000 },
+ { 0x0600, 0x1d5b, 0x0000 },
+ { 0x8600, 0x1d5e, 0x2000 },
+ { 0x0600, 0x1d5d, 0x0000 },
+ { 0x0600, 0x1d5f, 0x0000 },
+ { 0x8500, 0x1d68, 0x4000 },
+ { 0x8500, 0x1d64, 0x3000 },
+ { 0x8500, 0x1d62, 0x2000 },
+ { 0x0600, 0x1d61, 0x0000 },
+ { 0x0500, 0x1d63, 0x0000 },
+ { 0x8500, 0x1d66, 0x2000 },
+ { 0x0500, 0x1d65, 0x0000 },
+ { 0x0500, 0x1d67, 0x0000 },
+ { 0x8900, 0x1e00, 0x3001 },
+ { 0x8500, 0x1d6a, 0x2000 },
+ { 0x0500, 0x1d69, 0x0000 },
+ { 0x0500, 0x1d6b, 0x0000 },
+ { 0x8900, 0x1e02, 0x2001 },
+ { 0x0500, 0x1e01, 0x0fff },
+ { 0x0500, 0x1e03, 0x0fff },
+ { 0x8900, 0x1e14, 0x5001 },
+ { 0x8900, 0x1e0c, 0x4001 },
+ { 0x8900, 0x1e08, 0x3001 },
+ { 0x8900, 0x1e06, 0x2001 },
+ { 0x0500, 0x1e05, 0x0fff },
+ { 0x0500, 0x1e07, 0x0fff },
+ { 0x8900, 0x1e0a, 0x2001 },
+ { 0x0500, 0x1e09, 0x0fff },
+ { 0x0500, 0x1e0b, 0x0fff },
+ { 0x8900, 0x1e10, 0x3001 },
+ { 0x8900, 0x1e0e, 0x2001 },
+ { 0x0500, 0x1e0d, 0x0fff },
+ { 0x0500, 0x1e0f, 0x0fff },
+ { 0x8900, 0x1e12, 0x2001 },
+ { 0x0500, 0x1e11, 0x0fff },
+ { 0x0500, 0x1e13, 0x0fff },
+ { 0x8900, 0x1e1c, 0x4001 },
+ { 0x8900, 0x1e18, 0x3001 },
+ { 0x8900, 0x1e16, 0x2001 },
+ { 0x0500, 0x1e15, 0x0fff },
+ { 0x0500, 0x1e17, 0x0fff },
+ { 0x8900, 0x1e1a, 0x2001 },
+ { 0x0500, 0x1e19, 0x0fff },
+ { 0x0500, 0x1e1b, 0x0fff },
+ { 0x8900, 0x1e20, 0x3001 },
+ { 0x8900, 0x1e1e, 0x2001 },
+ { 0x0500, 0x1e1d, 0x0fff },
+ { 0x0500, 0x1e1f, 0x0fff },
+ { 0x8900, 0x1e22, 0x2001 },
+ { 0x0500, 0x1e21, 0x0fff },
+ { 0x0500, 0x1e23, 0x0fff },
+ { 0x9600, 0x2045, 0xa000 },
+ { 0x8500, 0x1f32, 0x9008 },
+ { 0x8900, 0x1ea8, 0x8001 },
+ { 0x8900, 0x1e64, 0x7001 },
+ { 0x8900, 0x1e44, 0x6001 },
+ { 0x8900, 0x1e34, 0x5001 },
+ { 0x8900, 0x1e2c, 0x4001 },
+ { 0x8900, 0x1e28, 0x3001 },
+ { 0x8900, 0x1e26, 0x2001 },
+ { 0x0500, 0x1e25, 0x0fff },
+ { 0x0500, 0x1e27, 0x0fff },
+ { 0x8900, 0x1e2a, 0x2001 },
+ { 0x0500, 0x1e29, 0x0fff },
+ { 0x0500, 0x1e2b, 0x0fff },
+ { 0x8900, 0x1e30, 0x3001 },
+ { 0x8900, 0x1e2e, 0x2001 },
+ { 0x0500, 0x1e2d, 0x0fff },
+ { 0x0500, 0x1e2f, 0x0fff },
+ { 0x8900, 0x1e32, 0x2001 },
+ { 0x0500, 0x1e31, 0x0fff },
+ { 0x0500, 0x1e33, 0x0fff },
+ { 0x8900, 0x1e3c, 0x4001 },
+ { 0x8900, 0x1e38, 0x3001 },
+ { 0x8900, 0x1e36, 0x2001 },
+ { 0x0500, 0x1e35, 0x0fff },
+ { 0x0500, 0x1e37, 0x0fff },
+ { 0x8900, 0x1e3a, 0x2001 },
+ { 0x0500, 0x1e39, 0x0fff },
+ { 0x0500, 0x1e3b, 0x0fff },
+ { 0x8900, 0x1e40, 0x3001 },
+ { 0x8900, 0x1e3e, 0x2001 },
+ { 0x0500, 0x1e3d, 0x0fff },
+ { 0x0500, 0x1e3f, 0x0fff },
+ { 0x8900, 0x1e42, 0x2001 },
+ { 0x0500, 0x1e41, 0x0fff },
+ { 0x0500, 0x1e43, 0x0fff },
+ { 0x8900, 0x1e54, 0x5001 },
+ { 0x8900, 0x1e4c, 0x4001 },
+ { 0x8900, 0x1e48, 0x3001 },
+ { 0x8900, 0x1e46, 0x2001 },
+ { 0x0500, 0x1e45, 0x0fff },
+ { 0x0500, 0x1e47, 0x0fff },
+ { 0x8900, 0x1e4a, 0x2001 },
+ { 0x0500, 0x1e49, 0x0fff },
+ { 0x0500, 0x1e4b, 0x0fff },
+ { 0x8900, 0x1e50, 0x3001 },
+ { 0x8900, 0x1e4e, 0x2001 },
+ { 0x0500, 0x1e4d, 0x0fff },
+ { 0x0500, 0x1e4f, 0x0fff },
+ { 0x8900, 0x1e52, 0x2001 },
+ { 0x0500, 0x1e51, 0x0fff },
+ { 0x0500, 0x1e53, 0x0fff },
+ { 0x8900, 0x1e5c, 0x4001 },
+ { 0x8900, 0x1e58, 0x3001 },
+ { 0x8900, 0x1e56, 0x2001 },
+ { 0x0500, 0x1e55, 0x0fff },
+ { 0x0500, 0x1e57, 0x0fff },
+ { 0x8900, 0x1e5a, 0x2001 },
+ { 0x0500, 0x1e59, 0x0fff },
+ { 0x0500, 0x1e5b, 0x0fff },
+ { 0x8900, 0x1e60, 0x3001 },
+ { 0x8900, 0x1e5e, 0x2001 },
+ { 0x0500, 0x1e5d, 0x0fff },
+ { 0x0500, 0x1e5f, 0x0fff },
+ { 0x8900, 0x1e62, 0x2001 },
+ { 0x0500, 0x1e61, 0x0fff },
+ { 0x0500, 0x1e63, 0x0fff },
+ { 0x8900, 0x1e84, 0x6001 },
+ { 0x8900, 0x1e74, 0x5001 },
+ { 0x8900, 0x1e6c, 0x4001 },
+ { 0x8900, 0x1e68, 0x3001 },
+ { 0x8900, 0x1e66, 0x2001 },
+ { 0x0500, 0x1e65, 0x0fff },
+ { 0x0500, 0x1e67, 0x0fff },
+ { 0x8900, 0x1e6a, 0x2001 },
+ { 0x0500, 0x1e69, 0x0fff },
+ { 0x0500, 0x1e6b, 0x0fff },
+ { 0x8900, 0x1e70, 0x3001 },
+ { 0x8900, 0x1e6e, 0x2001 },
+ { 0x0500, 0x1e6d, 0x0fff },
+ { 0x0500, 0x1e6f, 0x0fff },
+ { 0x8900, 0x1e72, 0x2001 },
+ { 0x0500, 0x1e71, 0x0fff },
+ { 0x0500, 0x1e73, 0x0fff },
+ { 0x8900, 0x1e7c, 0x4001 },
+ { 0x8900, 0x1e78, 0x3001 },
+ { 0x8900, 0x1e76, 0x2001 },
+ { 0x0500, 0x1e75, 0x0fff },
+ { 0x0500, 0x1e77, 0x0fff },
+ { 0x8900, 0x1e7a, 0x2001 },
+ { 0x0500, 0x1e79, 0x0fff },
+ { 0x0500, 0x1e7b, 0x0fff },
+ { 0x8900, 0x1e80, 0x3001 },
+ { 0x8900, 0x1e7e, 0x2001 },
+ { 0x0500, 0x1e7d, 0x0fff },
+ { 0x0500, 0x1e7f, 0x0fff },
+ { 0x8900, 0x1e82, 0x2001 },
+ { 0x0500, 0x1e81, 0x0fff },
+ { 0x0500, 0x1e83, 0x0fff },
+ { 0x8900, 0x1e94, 0x5001 },
+ { 0x8900, 0x1e8c, 0x4001 },
+ { 0x8900, 0x1e88, 0x3001 },
+ { 0x8900, 0x1e86, 0x2001 },
+ { 0x0500, 0x1e85, 0x0fff },
+ { 0x0500, 0x1e87, 0x0fff },
+ { 0x8900, 0x1e8a, 0x2001 },
+ { 0x0500, 0x1e89, 0x0fff },
+ { 0x0500, 0x1e8b, 0x0fff },
+ { 0x8900, 0x1e90, 0x3001 },
+ { 0x8900, 0x1e8e, 0x2001 },
+ { 0x0500, 0x1e8d, 0x0fff },
+ { 0x0500, 0x1e8f, 0x0fff },
+ { 0x8900, 0x1e92, 0x2001 },
+ { 0x0500, 0x1e91, 0x0fff },
+ { 0x0500, 0x1e93, 0x0fff },
+ { 0x8900, 0x1ea0, 0x4001 },
+ { 0x8500, 0x1e98, 0x3000 },
+ { 0x8500, 0x1e96, 0x2000 },
+ { 0x0500, 0x1e95, 0x0fff },
+ { 0x0500, 0x1e97, 0x0000 },
+ { 0x8500, 0x1e9a, 0x2000 },
+ { 0x0500, 0x1e99, 0x0000 },
+ { 0x0500, 0x1e9b, 0x0fc5 },
+ { 0x8900, 0x1ea4, 0x3001 },
+ { 0x8900, 0x1ea2, 0x2001 },
+ { 0x0500, 0x1ea1, 0x0fff },
+ { 0x0500, 0x1ea3, 0x0fff },
+ { 0x8900, 0x1ea6, 0x2001 },
+ { 0x0500, 0x1ea5, 0x0fff },
+ { 0x0500, 0x1ea7, 0x0fff },
+ { 0x8900, 0x1ee8, 0x7001 },
+ { 0x8900, 0x1ec8, 0x6001 },
+ { 0x8900, 0x1eb8, 0x5001 },
+ { 0x8900, 0x1eb0, 0x4001 },
+ { 0x8900, 0x1eac, 0x3001 },
+ { 0x8900, 0x1eaa, 0x2001 },
+ { 0x0500, 0x1ea9, 0x0fff },
+ { 0x0500, 0x1eab, 0x0fff },
+ { 0x8900, 0x1eae, 0x2001 },
+ { 0x0500, 0x1ead, 0x0fff },
+ { 0x0500, 0x1eaf, 0x0fff },
+ { 0x8900, 0x1eb4, 0x3001 },
+ { 0x8900, 0x1eb2, 0x2001 },
+ { 0x0500, 0x1eb1, 0x0fff },
+ { 0x0500, 0x1eb3, 0x0fff },
+ { 0x8900, 0x1eb6, 0x2001 },
+ { 0x0500, 0x1eb5, 0x0fff },
+ { 0x0500, 0x1eb7, 0x0fff },
+ { 0x8900, 0x1ec0, 0x4001 },
+ { 0x8900, 0x1ebc, 0x3001 },
+ { 0x8900, 0x1eba, 0x2001 },
+ { 0x0500, 0x1eb9, 0x0fff },
+ { 0x0500, 0x1ebb, 0x0fff },
+ { 0x8900, 0x1ebe, 0x2001 },
+ { 0x0500, 0x1ebd, 0x0fff },
+ { 0x0500, 0x1ebf, 0x0fff },
+ { 0x8900, 0x1ec4, 0x3001 },
+ { 0x8900, 0x1ec2, 0x2001 },
+ { 0x0500, 0x1ec1, 0x0fff },
+ { 0x0500, 0x1ec3, 0x0fff },
+ { 0x8900, 0x1ec6, 0x2001 },
+ { 0x0500, 0x1ec5, 0x0fff },
+ { 0x0500, 0x1ec7, 0x0fff },
+ { 0x8900, 0x1ed8, 0x5001 },
+ { 0x8900, 0x1ed0, 0x4001 },
+ { 0x8900, 0x1ecc, 0x3001 },
+ { 0x8900, 0x1eca, 0x2001 },
+ { 0x0500, 0x1ec9, 0x0fff },
+ { 0x0500, 0x1ecb, 0x0fff },
+ { 0x8900, 0x1ece, 0x2001 },
+ { 0x0500, 0x1ecd, 0x0fff },
+ { 0x0500, 0x1ecf, 0x0fff },
+ { 0x8900, 0x1ed4, 0x3001 },
+ { 0x8900, 0x1ed2, 0x2001 },
+ { 0x0500, 0x1ed1, 0x0fff },
+ { 0x0500, 0x1ed3, 0x0fff },
+ { 0x8900, 0x1ed6, 0x2001 },
+ { 0x0500, 0x1ed5, 0x0fff },
+ { 0x0500, 0x1ed7, 0x0fff },
+ { 0x8900, 0x1ee0, 0x4001 },
+ { 0x8900, 0x1edc, 0x3001 },
+ { 0x8900, 0x1eda, 0x2001 },
+ { 0x0500, 0x1ed9, 0x0fff },
+ { 0x0500, 0x1edb, 0x0fff },
+ { 0x8900, 0x1ede, 0x2001 },
+ { 0x0500, 0x1edd, 0x0fff },
+ { 0x0500, 0x1edf, 0x0fff },
+ { 0x8900, 0x1ee4, 0x3001 },
+ { 0x8900, 0x1ee2, 0x2001 },
+ { 0x0500, 0x1ee1, 0x0fff },
+ { 0x0500, 0x1ee3, 0x0fff },
+ { 0x8900, 0x1ee6, 0x2001 },
+ { 0x0500, 0x1ee5, 0x0fff },
+ { 0x0500, 0x1ee7, 0x0fff },
+ { 0x8900, 0x1f0e, 0x6ff8 },
+ { 0x8900, 0x1ef8, 0x5001 },
+ { 0x8900, 0x1ef0, 0x4001 },
+ { 0x8900, 0x1eec, 0x3001 },
+ { 0x8900, 0x1eea, 0x2001 },
+ { 0x0500, 0x1ee9, 0x0fff },
+ { 0x0500, 0x1eeb, 0x0fff },
+ { 0x8900, 0x1eee, 0x2001 },
+ { 0x0500, 0x1eed, 0x0fff },
+ { 0x0500, 0x1eef, 0x0fff },
+ { 0x8900, 0x1ef4, 0x3001 },
+ { 0x8900, 0x1ef2, 0x2001 },
+ { 0x0500, 0x1ef1, 0x0fff },
+ { 0x0500, 0x1ef3, 0x0fff },
+ { 0x8900, 0x1ef6, 0x2001 },
+ { 0x0500, 0x1ef5, 0x0fff },
+ { 0x0500, 0x1ef7, 0x0fff },
+ { 0x8500, 0x1f06, 0x4008 },
+ { 0x8500, 0x1f02, 0x3008 },
+ { 0x8500, 0x1f00, 0x2008 },
+ { 0x0500, 0x1ef9, 0x0fff },
+ { 0x0500, 0x1f01, 0x0008 },
+ { 0x8500, 0x1f04, 0x2008 },
+ { 0x0500, 0x1f03, 0x0008 },
+ { 0x0500, 0x1f05, 0x0008 },
+ { 0x8900, 0x1f0a, 0x3ff8 },
+ { 0x8900, 0x1f08, 0x2ff8 },
+ { 0x0500, 0x1f07, 0x0008 },
+ { 0x0900, 0x1f09, 0x0ff8 },
+ { 0x8900, 0x1f0c, 0x2ff8 },
+ { 0x0900, 0x1f0b, 0x0ff8 },
+ { 0x0900, 0x1f0d, 0x0ff8 },
+ { 0x8500, 0x1f22, 0x5008 },
+ { 0x8900, 0x1f18, 0x4ff8 },
+ { 0x8500, 0x1f12, 0x3008 },
+ { 0x8500, 0x1f10, 0x2008 },
+ { 0x0900, 0x1f0f, 0x0ff8 },
+ { 0x0500, 0x1f11, 0x0008 },
+ { 0x8500, 0x1f14, 0x2008 },
+ { 0x0500, 0x1f13, 0x0008 },
+ { 0x0500, 0x1f15, 0x0008 },
+ { 0x8900, 0x1f1c, 0x3ff8 },
+ { 0x8900, 0x1f1a, 0x2ff8 },
+ { 0x0900, 0x1f19, 0x0ff8 },
+ { 0x0900, 0x1f1b, 0x0ff8 },
+ { 0x8500, 0x1f20, 0x2008 },
+ { 0x0900, 0x1f1d, 0x0ff8 },
+ { 0x0500, 0x1f21, 0x0008 },
+ { 0x8900, 0x1f2a, 0x4ff8 },
+ { 0x8500, 0x1f26, 0x3008 },
+ { 0x8500, 0x1f24, 0x2008 },
+ { 0x0500, 0x1f23, 0x0008 },
+ { 0x0500, 0x1f25, 0x0008 },
+ { 0x8900, 0x1f28, 0x2ff8 },
+ { 0x0500, 0x1f27, 0x0008 },
+ { 0x0900, 0x1f29, 0x0ff8 },
+ { 0x8900, 0x1f2e, 0x3ff8 },
+ { 0x8900, 0x1f2c, 0x2ff8 },
+ { 0x0900, 0x1f2b, 0x0ff8 },
+ { 0x0900, 0x1f2d, 0x0ff8 },
+ { 0x8500, 0x1f30, 0x2008 },
+ { 0x0900, 0x1f2f, 0x0ff8 },
+ { 0x0500, 0x1f31, 0x0008 },
+ { 0x9800, 0x1fbd, 0x8000 },
+ { 0x8500, 0x1f7a, 0x7070 },
+ { 0x8500, 0x1f56, 0x6000 },
+ { 0x8500, 0x1f42, 0x5008 },
+ { 0x8900, 0x1f3a, 0x4ff8 },
+ { 0x8500, 0x1f36, 0x3008 },
+ { 0x8500, 0x1f34, 0x2008 },
+ { 0x0500, 0x1f33, 0x0008 },
+ { 0x0500, 0x1f35, 0x0008 },
+ { 0x8900, 0x1f38, 0x2ff8 },
+ { 0x0500, 0x1f37, 0x0008 },
+ { 0x0900, 0x1f39, 0x0ff8 },
+ { 0x8900, 0x1f3e, 0x3ff8 },
+ { 0x8900, 0x1f3c, 0x2ff8 },
+ { 0x0900, 0x1f3b, 0x0ff8 },
+ { 0x0900, 0x1f3d, 0x0ff8 },
+ { 0x8500, 0x1f40, 0x2008 },
+ { 0x0900, 0x1f3f, 0x0ff8 },
+ { 0x0500, 0x1f41, 0x0008 },
+ { 0x8900, 0x1f4c, 0x4ff8 },
+ { 0x8900, 0x1f48, 0x3ff8 },
+ { 0x8500, 0x1f44, 0x2008 },
+ { 0x0500, 0x1f43, 0x0008 },
+ { 0x0500, 0x1f45, 0x0008 },
+ { 0x8900, 0x1f4a, 0x2ff8 },
+ { 0x0900, 0x1f49, 0x0ff8 },
+ { 0x0900, 0x1f4b, 0x0ff8 },
+ { 0x8500, 0x1f52, 0x3000 },
+ { 0x8500, 0x1f50, 0x2000 },
+ { 0x0900, 0x1f4d, 0x0ff8 },
+ { 0x0500, 0x1f51, 0x0008 },
+ { 0x8500, 0x1f54, 0x2000 },
+ { 0x0500, 0x1f53, 0x0008 },
+ { 0x0500, 0x1f55, 0x0008 },
+ { 0x8900, 0x1f6a, 0x5ff8 },
+ { 0x8500, 0x1f62, 0x4008 },
+ { 0x8900, 0x1f5d, 0x3ff8 },
+ { 0x8900, 0x1f59, 0x2ff8 },
+ { 0x0500, 0x1f57, 0x0008 },
+ { 0x0900, 0x1f5b, 0x0ff8 },
+ { 0x8500, 0x1f60, 0x2008 },
+ { 0x0900, 0x1f5f, 0x0ff8 },
+ { 0x0500, 0x1f61, 0x0008 },
+ { 0x8500, 0x1f66, 0x3008 },
+ { 0x8500, 0x1f64, 0x2008 },
+ { 0x0500, 0x1f63, 0x0008 },
+ { 0x0500, 0x1f65, 0x0008 },
+ { 0x8900, 0x1f68, 0x2ff8 },
+ { 0x0500, 0x1f67, 0x0008 },
+ { 0x0900, 0x1f69, 0x0ff8 },
+ { 0x8500, 0x1f72, 0x4056 },
+ { 0x8900, 0x1f6e, 0x3ff8 },
+ { 0x8900, 0x1f6c, 0x2ff8 },
+ { 0x0900, 0x1f6b, 0x0ff8 },
+ { 0x0900, 0x1f6d, 0x0ff8 },
+ { 0x8500, 0x1f70, 0x204a },
+ { 0x0900, 0x1f6f, 0x0ff8 },
+ { 0x0500, 0x1f71, 0x004a },
+ { 0x8500, 0x1f76, 0x3064 },
+ { 0x8500, 0x1f74, 0x2056 },
+ { 0x0500, 0x1f73, 0x0056 },
+ { 0x0500, 0x1f75, 0x0056 },
+ { 0x8500, 0x1f78, 0x2080 },
+ { 0x0500, 0x1f77, 0x0064 },
+ { 0x0500, 0x1f79, 0x0080 },
+ { 0x8800, 0x1f9c, 0x6000 },
+ { 0x8800, 0x1f8c, 0x5000 },
+ { 0x8500, 0x1f84, 0x4008 },
+ { 0x8500, 0x1f80, 0x3008 },
+ { 0x8500, 0x1f7c, 0x207e },
+ { 0x0500, 0x1f7b, 0x0070 },
+ { 0x0500, 0x1f7d, 0x007e },
+ { 0x8500, 0x1f82, 0x2008 },
+ { 0x0500, 0x1f81, 0x0008 },
+ { 0x0500, 0x1f83, 0x0008 },
+ { 0x8800, 0x1f88, 0x3000 },
+ { 0x8500, 0x1f86, 0x2008 },
+ { 0x0500, 0x1f85, 0x0008 },
+ { 0x0500, 0x1f87, 0x0008 },
+ { 0x8800, 0x1f8a, 0x2000 },
+ { 0x0800, 0x1f89, 0x0000 },
+ { 0x0800, 0x1f8b, 0x0000 },
+ { 0x8500, 0x1f94, 0x4008 },
+ { 0x8500, 0x1f90, 0x3008 },
+ { 0x8800, 0x1f8e, 0x2000 },
+ { 0x0800, 0x1f8d, 0x0000 },
+ { 0x0800, 0x1f8f, 0x0000 },
+ { 0x8500, 0x1f92, 0x2008 },
+ { 0x0500, 0x1f91, 0x0008 },
+ { 0x0500, 0x1f93, 0x0008 },
+ { 0x8800, 0x1f98, 0x3000 },
+ { 0x8500, 0x1f96, 0x2008 },
+ { 0x0500, 0x1f95, 0x0008 },
+ { 0x0500, 0x1f97, 0x0008 },
+ { 0x8800, 0x1f9a, 0x2000 },
+ { 0x0800, 0x1f99, 0x0000 },
+ { 0x0800, 0x1f9b, 0x0000 },
+ { 0x8800, 0x1fac, 0x5000 },
+ { 0x8500, 0x1fa4, 0x4008 },
+ { 0x8500, 0x1fa0, 0x3008 },
+ { 0x8800, 0x1f9e, 0x2000 },
+ { 0x0800, 0x1f9d, 0x0000 },
+ { 0x0800, 0x1f9f, 0x0000 },
+ { 0x8500, 0x1fa2, 0x2008 },
+ { 0x0500, 0x1fa1, 0x0008 },
+ { 0x0500, 0x1fa3, 0x0008 },
+ { 0x8800, 0x1fa8, 0x3000 },
+ { 0x8500, 0x1fa6, 0x2008 },
+ { 0x0500, 0x1fa5, 0x0008 },
+ { 0x0500, 0x1fa7, 0x0008 },
+ { 0x8800, 0x1faa, 0x2000 },
+ { 0x0800, 0x1fa9, 0x0000 },
+ { 0x0800, 0x1fab, 0x0000 },
+ { 0x8500, 0x1fb4, 0x4000 },
+ { 0x8500, 0x1fb0, 0x3008 },
+ { 0x8800, 0x1fae, 0x2000 },
+ { 0x0800, 0x1fad, 0x0000 },
+ { 0x0800, 0x1faf, 0x0000 },
+ { 0x8500, 0x1fb2, 0x2000 },
+ { 0x0500, 0x1fb1, 0x0008 },
+ { 0x0500, 0x1fb3, 0x0009 },
+ { 0x8900, 0x1fb9, 0x3ff8 },
+ { 0x8500, 0x1fb7, 0x2000 },
+ { 0x0500, 0x1fb6, 0x0000 },
+ { 0x0900, 0x1fb8, 0x0ff8 },
+ { 0x8900, 0x1fbb, 0x2fb6 },
+ { 0x0900, 0x1fba, 0x0fb6 },
+ { 0x0800, 0x1fbc, 0x0000 },
+ { 0x9d00, 0x2005, 0x7000 },
+ { 0x8500, 0x1fe1, 0x6008 },
+ { 0x9800, 0x1fce, 0x5000 },
+ { 0x8500, 0x1fc6, 0x4000 },
+ { 0x9800, 0x1fc1, 0x3000 },
+ { 0x9800, 0x1fbf, 0x2000 },
+ { 0x0500, 0x1fbe, 0x0000 },
+ { 0x1800, 0x1fc0, 0x0000 },
+ { 0x8500, 0x1fc3, 0x2009 },
+ { 0x0500, 0x1fc2, 0x0000 },
+ { 0x0500, 0x1fc4, 0x0000 },
+ { 0x8900, 0x1fca, 0x3faa },
+ { 0x8900, 0x1fc8, 0x2faa },
+ { 0x0500, 0x1fc7, 0x0000 },
+ { 0x0900, 0x1fc9, 0x0faa },
+ { 0x8800, 0x1fcc, 0x2000 },
+ { 0x0900, 0x1fcb, 0x0faa },
+ { 0x1800, 0x1fcd, 0x0000 },
+ { 0x8900, 0x1fd8, 0x4ff8 },
+ { 0x8500, 0x1fd2, 0x3000 },
+ { 0x8500, 0x1fd0, 0x2008 },
+ { 0x1800, 0x1fcf, 0x0000 },
+ { 0x0500, 0x1fd1, 0x0008 },
+ { 0x8500, 0x1fd6, 0x2000 },
+ { 0x0500, 0x1fd3, 0x0000 },
+ { 0x0500, 0x1fd7, 0x0000 },
+ { 0x9800, 0x1fdd, 0x3000 },
+ { 0x8900, 0x1fda, 0x2f9c },
+ { 0x0900, 0x1fd9, 0x0ff8 },
+ { 0x0900, 0x1fdb, 0x0f9c },
+ { 0x9800, 0x1fdf, 0x2000 },
+ { 0x1800, 0x1fde, 0x0000 },
+ { 0x0500, 0x1fe0, 0x0008 },
+ { 0x8500, 0x1ff3, 0x5009 },
+ { 0x8900, 0x1fe9, 0x4ff8 },
+ { 0x8500, 0x1fe5, 0x3007 },
+ { 0x8500, 0x1fe3, 0x2000 },
+ { 0x0500, 0x1fe2, 0x0000 },
+ { 0x0500, 0x1fe4, 0x0000 },
+ { 0x8500, 0x1fe7, 0x2000 },
+ { 0x0500, 0x1fe6, 0x0000 },
+ { 0x0900, 0x1fe8, 0x0ff8 },
+ { 0x9800, 0x1fed, 0x3000 },
+ { 0x8900, 0x1feb, 0x2f90 },
+ { 0x0900, 0x1fea, 0x0f90 },
+ { 0x0900, 0x1fec, 0x0ff9 },
+ { 0x9800, 0x1fef, 0x2000 },
+ { 0x1800, 0x1fee, 0x0000 },
+ { 0x0500, 0x1ff2, 0x0000 },
+ { 0x8800, 0x1ffc, 0x4000 },
+ { 0x8900, 0x1ff8, 0x3f80 },
+ { 0x8500, 0x1ff6, 0x2000 },
+ { 0x0500, 0x1ff4, 0x0000 },
+ { 0x0500, 0x1ff7, 0x0000 },
+ { 0x8900, 0x1ffa, 0x2f82 },
+ { 0x0900, 0x1ff9, 0x0f80 },
+ { 0x0900, 0x1ffb, 0x0f82 },
+ { 0x9d00, 0x2001, 0x3000 },
+ { 0x9800, 0x1ffe, 0x2000 },
+ { 0x1800, 0x1ffd, 0x0000 },
+ { 0x1d00, 0x2000, 0x0000 },
+ { 0x9d00, 0x2003, 0x2000 },
+ { 0x1d00, 0x2002, 0x0000 },
+ { 0x1d00, 0x2004, 0x0000 },
+ { 0x9500, 0x2025, 0x6000 },
+ { 0x9100, 0x2015, 0x5000 },
+ { 0x8100, 0x200d, 0x4000 },
+ { 0x9d00, 0x2009, 0x3000 },
+ { 0x9d00, 0x2007, 0x2000 },
+ { 0x1d00, 0x2006, 0x0000 },
+ { 0x1d00, 0x2008, 0x0000 },
+ { 0x9d00, 0x200b, 0x2000 },
+ { 0x1d00, 0x200a, 0x0000 },
+ { 0x0100, 0x200c, 0x0000 },
+ { 0x9100, 0x2011, 0x3000 },
+ { 0x8100, 0x200f, 0x2000 },
+ { 0x0100, 0x200e, 0x0000 },
+ { 0x1100, 0x2010, 0x0000 },
+ { 0x9100, 0x2013, 0x2000 },
+ { 0x1100, 0x2012, 0x0000 },
+ { 0x1100, 0x2014, 0x0000 },
+ { 0x9300, 0x201d, 0x4000 },
+ { 0x9300, 0x2019, 0x3000 },
+ { 0x9500, 0x2017, 0x2000 },
+ { 0x1500, 0x2016, 0x0000 },
+ { 0x1400, 0x2018, 0x0000 },
+ { 0x9400, 0x201b, 0x2000 },
+ { 0x1600, 0x201a, 0x0000 },
+ { 0x1400, 0x201c, 0x0000 },
+ { 0x9500, 0x2021, 0x3000 },
+ { 0x9400, 0x201f, 0x2000 },
+ { 0x1600, 0x201e, 0x0000 },
+ { 0x1500, 0x2020, 0x0000 },
+ { 0x9500, 0x2023, 0x2000 },
+ { 0x1500, 0x2022, 0x0000 },
+ { 0x1500, 0x2024, 0x0000 },
+ { 0x9500, 0x2035, 0x5000 },
+ { 0x8100, 0x202d, 0x4000 },
+ { 0x9c00, 0x2029, 0x3000 },
+ { 0x9500, 0x2027, 0x2000 },
+ { 0x1500, 0x2026, 0x0000 },
+ { 0x1b00, 0x2028, 0x0000 },
+ { 0x8100, 0x202b, 0x2000 },
+ { 0x0100, 0x202a, 0x0000 },
+ { 0x0100, 0x202c, 0x0000 },
+ { 0x9500, 0x2031, 0x3000 },
+ { 0x9d00, 0x202f, 0x2000 },
+ { 0x0100, 0x202e, 0x0000 },
+ { 0x1500, 0x2030, 0x0000 },
+ { 0x9500, 0x2033, 0x2000 },
+ { 0x1500, 0x2032, 0x0000 },
+ { 0x1500, 0x2034, 0x0000 },
+ { 0x9500, 0x203d, 0x4000 },
+ { 0x9400, 0x2039, 0x3000 },
+ { 0x9500, 0x2037, 0x2000 },
+ { 0x1500, 0x2036, 0x0000 },
+ { 0x1500, 0x2038, 0x0000 },
+ { 0x9500, 0x203b, 0x2000 },
+ { 0x1300, 0x203a, 0x0000 },
+ { 0x1500, 0x203c, 0x0000 },
+ { 0x9500, 0x2041, 0x3000 },
+ { 0x9000, 0x203f, 0x2000 },
+ { 0x1500, 0x203e, 0x0000 },
+ { 0x1000, 0x2040, 0x0000 },
+ { 0x9500, 0x2043, 0x2000 },
+ { 0x1500, 0x2042, 0x0000 },
+ { 0x1900, 0x2044, 0x0000 },
+ { 0x9900, 0x21ae, 0x9000 },
+ { 0x8900, 0x211a, 0x8000 },
+ { 0x9700, 0x20a7, 0x7000 },
+ { 0x8f00, 0x2076, 0x6000 },
+ { 0x9500, 0x2057, 0x5000 },
+ { 0x9500, 0x204d, 0x4000 },
+ { 0x9500, 0x2049, 0x3000 },
+ { 0x9500, 0x2047, 0x2000 },
+ { 0x1200, 0x2046, 0x0000 },
+ { 0x1500, 0x2048, 0x0000 },
+ { 0x9500, 0x204b, 0x2000 },
+ { 0x1500, 0x204a, 0x0000 },
+ { 0x1500, 0x204c, 0x0000 },
+ { 0x9500, 0x2051, 0x3000 },
+ { 0x9500, 0x204f, 0x2000 },
+ { 0x1500, 0x204e, 0x0000 },
+ { 0x1500, 0x2050, 0x0000 },
+ { 0x9500, 0x2053, 0x2000 },
+ { 0x1900, 0x2052, 0x0000 },
+ { 0x1000, 0x2054, 0x0000 },
+ { 0x8100, 0x206c, 0x4000 },
+ { 0x8100, 0x2062, 0x3000 },
+ { 0x8100, 0x2060, 0x2000 },
+ { 0x1d00, 0x205f, 0x0000 },
+ { 0x0100, 0x2061, 0x0000 },
+ { 0x8100, 0x206a, 0x2000 },
+ { 0x0100, 0x2063, 0x0000 },
+ { 0x0100, 0x206b, 0x0000 },
+ { 0x8f00, 0x2070, 0x3000 },
+ { 0x8100, 0x206e, 0x2000 },
+ { 0x0100, 0x206d, 0x0000 },
+ { 0x0100, 0x206f, 0x0000 },
+ { 0x8f00, 0x2074, 0x2000 },
+ { 0x0500, 0x2071, 0x0000 },
+ { 0x0f00, 0x2075, 0x0000 },
+ { 0x8f00, 0x2086, 0x5000 },
+ { 0x9200, 0x207e, 0x4000 },
+ { 0x9900, 0x207a, 0x3000 },
+ { 0x8f00, 0x2078, 0x2000 },
+ { 0x0f00, 0x2077, 0x0000 },
+ { 0x0f00, 0x2079, 0x0000 },
+ { 0x9900, 0x207c, 0x2000 },
+ { 0x1900, 0x207b, 0x0000 },
+ { 0x1600, 0x207d, 0x0000 },
+ { 0x8f00, 0x2082, 0x3000 },
+ { 0x8f00, 0x2080, 0x2000 },
+ { 0x0500, 0x207f, 0x0000 },
+ { 0x0f00, 0x2081, 0x0000 },
+ { 0x8f00, 0x2084, 0x2000 },
+ { 0x0f00, 0x2083, 0x0000 },
+ { 0x0f00, 0x2085, 0x0000 },
+ { 0x9200, 0x208e, 0x4000 },
+ { 0x9900, 0x208a, 0x3000 },
+ { 0x8f00, 0x2088, 0x2000 },
+ { 0x0f00, 0x2087, 0x0000 },
+ { 0x0f00, 0x2089, 0x0000 },
+ { 0x9900, 0x208c, 0x2000 },
+ { 0x1900, 0x208b, 0x0000 },
+ { 0x1600, 0x208d, 0x0000 },
+ { 0x9700, 0x20a3, 0x3000 },
+ { 0x9700, 0x20a1, 0x2000 },
+ { 0x1700, 0x20a0, 0x0000 },
+ { 0x1700, 0x20a2, 0x0000 },
+ { 0x9700, 0x20a5, 0x2000 },
+ { 0x1700, 0x20a4, 0x0000 },
+ { 0x1700, 0x20a6, 0x0000 },
+ { 0x8c00, 0x20e5, 0x6000 },
+ { 0x8c00, 0x20d5, 0x5000 },
+ { 0x9700, 0x20af, 0x4000 },
+ { 0x9700, 0x20ab, 0x3000 },
+ { 0x9700, 0x20a9, 0x2000 },
+ { 0x1700, 0x20a8, 0x0000 },
+ { 0x1700, 0x20aa, 0x0000 },
+ { 0x9700, 0x20ad, 0x2000 },
+ { 0x1700, 0x20ac, 0x0000 },
+ { 0x1700, 0x20ae, 0x0000 },
+ { 0x8c00, 0x20d1, 0x3000 },
+ { 0x9700, 0x20b1, 0x2000 },
+ { 0x1700, 0x20b0, 0x0000 },
+ { 0x0c00, 0x20d0, 0x0000 },
+ { 0x8c00, 0x20d3, 0x2000 },
+ { 0x0c00, 0x20d2, 0x0000 },
+ { 0x0c00, 0x20d4, 0x0000 },
+ { 0x8b00, 0x20dd, 0x4000 },
+ { 0x8c00, 0x20d9, 0x3000 },
+ { 0x8c00, 0x20d7, 0x2000 },
+ { 0x0c00, 0x20d6, 0x0000 },
+ { 0x0c00, 0x20d8, 0x0000 },
+ { 0x8c00, 0x20db, 0x2000 },
+ { 0x0c00, 0x20da, 0x0000 },
+ { 0x0c00, 0x20dc, 0x0000 },
+ { 0x8c00, 0x20e1, 0x3000 },
+ { 0x8b00, 0x20df, 0x2000 },
+ { 0x0b00, 0x20de, 0x0000 },
+ { 0x0b00, 0x20e0, 0x0000 },
+ { 0x8b00, 0x20e3, 0x2000 },
+ { 0x0b00, 0x20e2, 0x0000 },
+ { 0x0b00, 0x20e4, 0x0000 },
+ { 0x8500, 0x210a, 0x5000 },
+ { 0x8900, 0x2102, 0x4000 },
+ { 0x8c00, 0x20e9, 0x3000 },
+ { 0x8c00, 0x20e7, 0x2000 },
+ { 0x0c00, 0x20e6, 0x0000 },
+ { 0x0c00, 0x20e8, 0x0000 },
+ { 0x9a00, 0x2100, 0x2000 },
+ { 0x0c00, 0x20ea, 0x0000 },
+ { 0x1a00, 0x2101, 0x0000 },
+ { 0x9a00, 0x2106, 0x3000 },
+ { 0x9a00, 0x2104, 0x2000 },
+ { 0x1a00, 0x2103, 0x0000 },
+ { 0x1a00, 0x2105, 0x0000 },
+ { 0x9a00, 0x2108, 0x2000 },
+ { 0x0900, 0x2107, 0x0000 },
+ { 0x1a00, 0x2109, 0x0000 },
+ { 0x8900, 0x2112, 0x4000 },
+ { 0x8500, 0x210e, 0x3000 },
+ { 0x8900, 0x210c, 0x2000 },
+ { 0x0900, 0x210b, 0x0000 },
+ { 0x0900, 0x210d, 0x0000 },
+ { 0x8900, 0x2110, 0x2000 },
+ { 0x0500, 0x210f, 0x0000 },
+ { 0x0900, 0x2111, 0x0000 },
+ { 0x9a00, 0x2116, 0x3000 },
+ { 0x9a00, 0x2114, 0x2000 },
+ { 0x0500, 0x2113, 0x0000 },
+ { 0x0900, 0x2115, 0x0000 },
+ { 0x9a00, 0x2118, 0x2000 },
+ { 0x1a00, 0x2117, 0x0000 },
+ { 0x0900, 0x2119, 0x0000 },
+ { 0x8e00, 0x2162, 0x7000 },
+ { 0x9a00, 0x213a, 0x6000 },
+ { 0x8900, 0x212a, 0x5000 },
+ { 0x9a00, 0x2122, 0x4000 },
+ { 0x9a00, 0x211e, 0x3000 },
+ { 0x8900, 0x211c, 0x2000 },
+ { 0x0900, 0x211b, 0x0000 },
+ { 0x0900, 0x211d, 0x0000 },
+ { 0x9a00, 0x2120, 0x2000 },
+ { 0x1a00, 0x211f, 0x0000 },
+ { 0x1a00, 0x2121, 0x0000 },
+ { 0x8900, 0x2126, 0x3000 },
+ { 0x8900, 0x2124, 0x2000 },
+ { 0x1a00, 0x2123, 0x0000 },
+ { 0x1a00, 0x2125, 0x0000 },
+ { 0x8900, 0x2128, 0x2000 },
+ { 0x1a00, 0x2127, 0x0000 },
+ { 0x1a00, 0x2129, 0x0000 },
+ { 0x9a00, 0x2132, 0x4000 },
+ { 0x9a00, 0x212e, 0x3000 },
+ { 0x8900, 0x212c, 0x2000 },
+ { 0x0900, 0x212b, 0x0000 },
+ { 0x0900, 0x212d, 0x0000 },
+ { 0x8900, 0x2130, 0x2000 },
+ { 0x0500, 0x212f, 0x0000 },
+ { 0x0900, 0x2131, 0x0000 },
+ { 0x8700, 0x2136, 0x3000 },
+ { 0x8500, 0x2134, 0x2000 },
+ { 0x0900, 0x2133, 0x0000 },
+ { 0x0700, 0x2135, 0x0000 },
+ { 0x8700, 0x2138, 0x2000 },
+ { 0x0700, 0x2137, 0x0000 },
+ { 0x0500, 0x2139, 0x0000 },
+ { 0x9900, 0x214b, 0x5000 },
+ { 0x9900, 0x2143, 0x4000 },
+ { 0x8900, 0x213f, 0x3000 },
+ { 0x8500, 0x213d, 0x2000 },
+ { 0x1a00, 0x213b, 0x0000 },
+ { 0x0900, 0x213e, 0x0000 },
+ { 0x9900, 0x2141, 0x2000 },
+ { 0x1900, 0x2140, 0x0000 },
+ { 0x1900, 0x2142, 0x0000 },
+ { 0x8500, 0x2147, 0x3000 },
+ { 0x8900, 0x2145, 0x2000 },
+ { 0x1900, 0x2144, 0x0000 },
+ { 0x0500, 0x2146, 0x0000 },
+ { 0x8500, 0x2149, 0x2000 },
+ { 0x0500, 0x2148, 0x0000 },
+ { 0x1a00, 0x214a, 0x0000 },
+ { 0x8f00, 0x215a, 0x4000 },
+ { 0x8f00, 0x2156, 0x3000 },
+ { 0x8f00, 0x2154, 0x2000 },
+ { 0x0f00, 0x2153, 0x0000 },
+ { 0x0f00, 0x2155, 0x0000 },
+ { 0x8f00, 0x2158, 0x2000 },
+ { 0x0f00, 0x2157, 0x0000 },
+ { 0x0f00, 0x2159, 0x0000 },
+ { 0x8f00, 0x215e, 0x3000 },
+ { 0x8f00, 0x215c, 0x2000 },
+ { 0x0f00, 0x215b, 0x0000 },
+ { 0x0f00, 0x215d, 0x0000 },
+ { 0x8e00, 0x2160, 0x2000 },
+ { 0x0f00, 0x215f, 0x0000 },
+ { 0x0e00, 0x2161, 0x0000 },
+ { 0x8e00, 0x2182, 0x6000 },
+ { 0x8e00, 0x2172, 0x5000 },
+ { 0x8e00, 0x216a, 0x4000 },
+ { 0x8e00, 0x2166, 0x3000 },
+ { 0x8e00, 0x2164, 0x2000 },
+ { 0x0e00, 0x2163, 0x0000 },
+ { 0x0e00, 0x2165, 0x0000 },
+ { 0x8e00, 0x2168, 0x2000 },
+ { 0x0e00, 0x2167, 0x0000 },
+ { 0x0e00, 0x2169, 0x0000 },
+ { 0x8e00, 0x216e, 0x3000 },
+ { 0x8e00, 0x216c, 0x2000 },
+ { 0x0e00, 0x216b, 0x0000 },
+ { 0x0e00, 0x216d, 0x0000 },
+ { 0x8e00, 0x2170, 0x2000 },
+ { 0x0e00, 0x216f, 0x0000 },
+ { 0x0e00, 0x2171, 0x0000 },
+ { 0x8e00, 0x217a, 0x4000 },
+ { 0x8e00, 0x2176, 0x3000 },
+ { 0x8e00, 0x2174, 0x2000 },
+ { 0x0e00, 0x2173, 0x0000 },
+ { 0x0e00, 0x2175, 0x0000 },
+ { 0x8e00, 0x2178, 0x2000 },
+ { 0x0e00, 0x2177, 0x0000 },
+ { 0x0e00, 0x2179, 0x0000 },
+ { 0x8e00, 0x217e, 0x3000 },
+ { 0x8e00, 0x217c, 0x2000 },
+ { 0x0e00, 0x217b, 0x0000 },
+ { 0x0e00, 0x217d, 0x0000 },
+ { 0x8e00, 0x2180, 0x2000 },
+ { 0x0e00, 0x217f, 0x0000 },
+ { 0x0e00, 0x2181, 0x0000 },
+ { 0x9a00, 0x219e, 0x5000 },
+ { 0x9a00, 0x2196, 0x4000 },
+ { 0x9900, 0x2192, 0x3000 },
+ { 0x9900, 0x2190, 0x2000 },
+ { 0x0e00, 0x2183, 0x0000 },
+ { 0x1900, 0x2191, 0x0000 },
+ { 0x9900, 0x2194, 0x2000 },
+ { 0x1900, 0x2193, 0x0000 },
+ { 0x1a00, 0x2195, 0x0000 },
+ { 0x9900, 0x219a, 0x3000 },
+ { 0x9a00, 0x2198, 0x2000 },
+ { 0x1a00, 0x2197, 0x0000 },
+ { 0x1a00, 0x2199, 0x0000 },
+ { 0x9a00, 0x219c, 0x2000 },
+ { 0x1900, 0x219b, 0x0000 },
+ { 0x1a00, 0x219d, 0x0000 },
+ { 0x9900, 0x21a6, 0x4000 },
+ { 0x9a00, 0x21a2, 0x3000 },
+ { 0x9900, 0x21a0, 0x2000 },
+ { 0x1a00, 0x219f, 0x0000 },
+ { 0x1a00, 0x21a1, 0x0000 },
+ { 0x9a00, 0x21a4, 0x2000 },
+ { 0x1900, 0x21a3, 0x0000 },
+ { 0x1a00, 0x21a5, 0x0000 },
+ { 0x9a00, 0x21aa, 0x3000 },
+ { 0x9a00, 0x21a8, 0x2000 },
+ { 0x1a00, 0x21a7, 0x0000 },
+ { 0x1a00, 0x21a9, 0x0000 },
+ { 0x9a00, 0x21ac, 0x2000 },
+ { 0x1a00, 0x21ab, 0x0000 },
+ { 0x1a00, 0x21ad, 0x0000 },
+ { 0x9900, 0x222e, 0x8000 },
+ { 0x9a00, 0x21ee, 0x7000 },
+ { 0x9900, 0x21ce, 0x6000 },
+ { 0x9a00, 0x21be, 0x5000 },
+ { 0x9a00, 0x21b6, 0x4000 },
+ { 0x9a00, 0x21b2, 0x3000 },
+ { 0x9a00, 0x21b0, 0x2000 },
+ { 0x1a00, 0x21af, 0x0000 },
+ { 0x1a00, 0x21b1, 0x0000 },
+ { 0x9a00, 0x21b4, 0x2000 },
+ { 0x1a00, 0x21b3, 0x0000 },
+ { 0x1a00, 0x21b5, 0x0000 },
+ { 0x9a00, 0x21ba, 0x3000 },
+ { 0x9a00, 0x21b8, 0x2000 },
+ { 0x1a00, 0x21b7, 0x0000 },
+ { 0x1a00, 0x21b9, 0x0000 },
+ { 0x9a00, 0x21bc, 0x2000 },
+ { 0x1a00, 0x21bb, 0x0000 },
+ { 0x1a00, 0x21bd, 0x0000 },
+ { 0x9a00, 0x21c6, 0x4000 },
+ { 0x9a00, 0x21c2, 0x3000 },
+ { 0x9a00, 0x21c0, 0x2000 },
+ { 0x1a00, 0x21bf, 0x0000 },
+ { 0x1a00, 0x21c1, 0x0000 },
+ { 0x9a00, 0x21c4, 0x2000 },
+ { 0x1a00, 0x21c3, 0x0000 },
+ { 0x1a00, 0x21c5, 0x0000 },
+ { 0x9a00, 0x21ca, 0x3000 },
+ { 0x9a00, 0x21c8, 0x2000 },
+ { 0x1a00, 0x21c7, 0x0000 },
+ { 0x1a00, 0x21c9, 0x0000 },
+ { 0x9a00, 0x21cc, 0x2000 },
+ { 0x1a00, 0x21cb, 0x0000 },
+ { 0x1a00, 0x21cd, 0x0000 },
+ { 0x9a00, 0x21de, 0x5000 },
+ { 0x9a00, 0x21d6, 0x4000 },
+ { 0x9900, 0x21d2, 0x3000 },
+ { 0x9a00, 0x21d0, 0x2000 },
+ { 0x1900, 0x21cf, 0x0000 },
+ { 0x1a00, 0x21d1, 0x0000 },
+ { 0x9900, 0x21d4, 0x2000 },
+ { 0x1a00, 0x21d3, 0x0000 },
+ { 0x1a00, 0x21d5, 0x0000 },
+ { 0x9a00, 0x21da, 0x3000 },
+ { 0x9a00, 0x21d8, 0x2000 },
+ { 0x1a00, 0x21d7, 0x0000 },
+ { 0x1a00, 0x21d9, 0x0000 },
+ { 0x9a00, 0x21dc, 0x2000 },
+ { 0x1a00, 0x21db, 0x0000 },
+ { 0x1a00, 0x21dd, 0x0000 },
+ { 0x9a00, 0x21e6, 0x4000 },
+ { 0x9a00, 0x21e2, 0x3000 },
+ { 0x9a00, 0x21e0, 0x2000 },
+ { 0x1a00, 0x21df, 0x0000 },
+ { 0x1a00, 0x21e1, 0x0000 },
+ { 0x9a00, 0x21e4, 0x2000 },
+ { 0x1a00, 0x21e3, 0x0000 },
+ { 0x1a00, 0x21e5, 0x0000 },
+ { 0x9a00, 0x21ea, 0x3000 },
+ { 0x9a00, 0x21e8, 0x2000 },
+ { 0x1a00, 0x21e7, 0x0000 },
+ { 0x1a00, 0x21e9, 0x0000 },
+ { 0x9a00, 0x21ec, 0x2000 },
+ { 0x1a00, 0x21eb, 0x0000 },
+ { 0x1a00, 0x21ed, 0x0000 },
+ { 0x9900, 0x220e, 0x6000 },
+ { 0x9900, 0x21fe, 0x5000 },
+ { 0x9900, 0x21f6, 0x4000 },
+ { 0x9a00, 0x21f2, 0x3000 },
+ { 0x9a00, 0x21f0, 0x2000 },
+ { 0x1a00, 0x21ef, 0x0000 },
+ { 0x1a00, 0x21f1, 0x0000 },
+ { 0x9900, 0x21f4, 0x2000 },
+ { 0x1a00, 0x21f3, 0x0000 },
+ { 0x1900, 0x21f5, 0x0000 },
+ { 0x9900, 0x21fa, 0x3000 },
+ { 0x9900, 0x21f8, 0x2000 },
+ { 0x1900, 0x21f7, 0x0000 },
+ { 0x1900, 0x21f9, 0x0000 },
+ { 0x9900, 0x21fc, 0x2000 },
+ { 0x1900, 0x21fb, 0x0000 },
+ { 0x1900, 0x21fd, 0x0000 },
+ { 0x9900, 0x2206, 0x4000 },
+ { 0x9900, 0x2202, 0x3000 },
+ { 0x9900, 0x2200, 0x2000 },
+ { 0x1900, 0x21ff, 0x0000 },
+ { 0x1900, 0x2201, 0x0000 },
+ { 0x9900, 0x2204, 0x2000 },
+ { 0x1900, 0x2203, 0x0000 },
+ { 0x1900, 0x2205, 0x0000 },
+ { 0x9900, 0x220a, 0x3000 },
+ { 0x9900, 0x2208, 0x2000 },
+ { 0x1900, 0x2207, 0x0000 },
+ { 0x1900, 0x2209, 0x0000 },
+ { 0x9900, 0x220c, 0x2000 },
+ { 0x1900, 0x220b, 0x0000 },
+ { 0x1900, 0x220d, 0x0000 },
+ { 0x9900, 0x221e, 0x5000 },
+ { 0x9900, 0x2216, 0x4000 },
+ { 0x9900, 0x2212, 0x3000 },
+ { 0x9900, 0x2210, 0x2000 },
+ { 0x1900, 0x220f, 0x0000 },
+ { 0x1900, 0x2211, 0x0000 },
+ { 0x9900, 0x2214, 0x2000 },
+ { 0x1900, 0x2213, 0x0000 },
+ { 0x1900, 0x2215, 0x0000 },
+ { 0x9900, 0x221a, 0x3000 },
+ { 0x9900, 0x2218, 0x2000 },
+ { 0x1900, 0x2217, 0x0000 },
+ { 0x1900, 0x2219, 0x0000 },
+ { 0x9900, 0x221c, 0x2000 },
+ { 0x1900, 0x221b, 0x0000 },
+ { 0x1900, 0x221d, 0x0000 },
+ { 0x9900, 0x2226, 0x4000 },
+ { 0x9900, 0x2222, 0x3000 },
+ { 0x9900, 0x2220, 0x2000 },
+ { 0x1900, 0x221f, 0x0000 },
+ { 0x1900, 0x2221, 0x0000 },
+ { 0x9900, 0x2224, 0x2000 },
+ { 0x1900, 0x2223, 0x0000 },
+ { 0x1900, 0x2225, 0x0000 },
+ { 0x9900, 0x222a, 0x3000 },
+ { 0x9900, 0x2228, 0x2000 },
+ { 0x1900, 0x2227, 0x0000 },
+ { 0x1900, 0x2229, 0x0000 },
+ { 0x9900, 0x222c, 0x2000 },
+ { 0x1900, 0x222b, 0x0000 },
+ { 0x1900, 0x222d, 0x0000 },
+ { 0x9900, 0x226e, 0x7000 },
+ { 0x9900, 0x224e, 0x6000 },
+ { 0x9900, 0x223e, 0x5000 },
+ { 0x9900, 0x2236, 0x4000 },
+ { 0x9900, 0x2232, 0x3000 },
+ { 0x9900, 0x2230, 0x2000 },
+ { 0x1900, 0x222f, 0x0000 },
+ { 0x1900, 0x2231, 0x0000 },
+ { 0x9900, 0x2234, 0x2000 },
+ { 0x1900, 0x2233, 0x0000 },
+ { 0x1900, 0x2235, 0x0000 },
+ { 0x9900, 0x223a, 0x3000 },
+ { 0x9900, 0x2238, 0x2000 },
+ { 0x1900, 0x2237, 0x0000 },
+ { 0x1900, 0x2239, 0x0000 },
+ { 0x9900, 0x223c, 0x2000 },
+ { 0x1900, 0x223b, 0x0000 },
+ { 0x1900, 0x223d, 0x0000 },
+ { 0x9900, 0x2246, 0x4000 },
+ { 0x9900, 0x2242, 0x3000 },
+ { 0x9900, 0x2240, 0x2000 },
+ { 0x1900, 0x223f, 0x0000 },
+ { 0x1900, 0x2241, 0x0000 },
+ { 0x9900, 0x2244, 0x2000 },
+ { 0x1900, 0x2243, 0x0000 },
+ { 0x1900, 0x2245, 0x0000 },
+ { 0x9900, 0x224a, 0x3000 },
+ { 0x9900, 0x2248, 0x2000 },
+ { 0x1900, 0x2247, 0x0000 },
+ { 0x1900, 0x2249, 0x0000 },
+ { 0x9900, 0x224c, 0x2000 },
+ { 0x1900, 0x224b, 0x0000 },
+ { 0x1900, 0x224d, 0x0000 },
+ { 0x9900, 0x225e, 0x5000 },
+ { 0x9900, 0x2256, 0x4000 },
+ { 0x9900, 0x2252, 0x3000 },
+ { 0x9900, 0x2250, 0x2000 },
+ { 0x1900, 0x224f, 0x0000 },
+ { 0x1900, 0x2251, 0x0000 },
+ { 0x9900, 0x2254, 0x2000 },
+ { 0x1900, 0x2253, 0x0000 },
+ { 0x1900, 0x2255, 0x0000 },
+ { 0x9900, 0x225a, 0x3000 },
+ { 0x9900, 0x2258, 0x2000 },
+ { 0x1900, 0x2257, 0x0000 },
+ { 0x1900, 0x2259, 0x0000 },
+ { 0x9900, 0x225c, 0x2000 },
+ { 0x1900, 0x225b, 0x0000 },
+ { 0x1900, 0x225d, 0x0000 },
+ { 0x9900, 0x2266, 0x4000 },
+ { 0x9900, 0x2262, 0x3000 },
+ { 0x9900, 0x2260, 0x2000 },
+ { 0x1900, 0x225f, 0x0000 },
+ { 0x1900, 0x2261, 0x0000 },
+ { 0x9900, 0x2264, 0x2000 },
+ { 0x1900, 0x2263, 0x0000 },
+ { 0x1900, 0x2265, 0x0000 },
+ { 0x9900, 0x226a, 0x3000 },
+ { 0x9900, 0x2268, 0x2000 },
+ { 0x1900, 0x2267, 0x0000 },
+ { 0x1900, 0x2269, 0x0000 },
+ { 0x9900, 0x226c, 0x2000 },
+ { 0x1900, 0x226b, 0x0000 },
+ { 0x1900, 0x226d, 0x0000 },
+ { 0x9900, 0x228e, 0x6000 },
+ { 0x9900, 0x227e, 0x5000 },
+ { 0x9900, 0x2276, 0x4000 },
+ { 0x9900, 0x2272, 0x3000 },
+ { 0x9900, 0x2270, 0x2000 },
+ { 0x1900, 0x226f, 0x0000 },
+ { 0x1900, 0x2271, 0x0000 },
+ { 0x9900, 0x2274, 0x2000 },
+ { 0x1900, 0x2273, 0x0000 },
+ { 0x1900, 0x2275, 0x0000 },
+ { 0x9900, 0x227a, 0x3000 },
+ { 0x9900, 0x2278, 0x2000 },
+ { 0x1900, 0x2277, 0x0000 },
+ { 0x1900, 0x2279, 0x0000 },
+ { 0x9900, 0x227c, 0x2000 },
+ { 0x1900, 0x227b, 0x0000 },
+ { 0x1900, 0x227d, 0x0000 },
+ { 0x9900, 0x2286, 0x4000 },
+ { 0x9900, 0x2282, 0x3000 },
+ { 0x9900, 0x2280, 0x2000 },
+ { 0x1900, 0x227f, 0x0000 },
+ { 0x1900, 0x2281, 0x0000 },
+ { 0x9900, 0x2284, 0x2000 },
+ { 0x1900, 0x2283, 0x0000 },
+ { 0x1900, 0x2285, 0x0000 },
+ { 0x9900, 0x228a, 0x3000 },
+ { 0x9900, 0x2288, 0x2000 },
+ { 0x1900, 0x2287, 0x0000 },
+ { 0x1900, 0x2289, 0x0000 },
+ { 0x9900, 0x228c, 0x2000 },
+ { 0x1900, 0x228b, 0x0000 },
+ { 0x1900, 0x228d, 0x0000 },
+ { 0x9900, 0x229e, 0x5000 },
+ { 0x9900, 0x2296, 0x4000 },
+ { 0x9900, 0x2292, 0x3000 },
+ { 0x9900, 0x2290, 0x2000 },
+ { 0x1900, 0x228f, 0x0000 },
+ { 0x1900, 0x2291, 0x0000 },
+ { 0x9900, 0x2294, 0x2000 },
+ { 0x1900, 0x2293, 0x0000 },
+ { 0x1900, 0x2295, 0x0000 },
+ { 0x9900, 0x229a, 0x3000 },
+ { 0x9900, 0x2298, 0x2000 },
+ { 0x1900, 0x2297, 0x0000 },
+ { 0x1900, 0x2299, 0x0000 },
+ { 0x9900, 0x229c, 0x2000 },
+ { 0x1900, 0x229b, 0x0000 },
+ { 0x1900, 0x229d, 0x0000 },
+ { 0x9900, 0x22a6, 0x4000 },
+ { 0x9900, 0x22a2, 0x3000 },
+ { 0x9900, 0x22a0, 0x2000 },
+ { 0x1900, 0x229f, 0x0000 },
+ { 0x1900, 0x22a1, 0x0000 },
+ { 0x9900, 0x22a4, 0x2000 },
+ { 0x1900, 0x22a3, 0x0000 },
+ { 0x1900, 0x22a5, 0x0000 },
+ { 0x9900, 0x22aa, 0x3000 },
+ { 0x9900, 0x22a8, 0x2000 },
+ { 0x1900, 0x22a7, 0x0000 },
+ { 0x1900, 0x22a9, 0x0000 },
+ { 0x9900, 0x22ac, 0x2000 },
+ { 0x1900, 0x22ab, 0x0000 },
+ { 0x1900, 0x22ad, 0x0000 },
+ { 0x8f00, 0x2787, 0xb000 },
+ { 0x9a00, 0x250b, 0xa000 },
+ { 0x9900, 0x23ae, 0x9000 },
+ { 0x9a00, 0x232e, 0x8000 },
+ { 0x9900, 0x22ee, 0x7000 },
+ { 0x9900, 0x22ce, 0x6000 },
+ { 0x9900, 0x22be, 0x5000 },
+ { 0x9900, 0x22b6, 0x4000 },
+ { 0x9900, 0x22b2, 0x3000 },
+ { 0x9900, 0x22b0, 0x2000 },
+ { 0x1900, 0x22af, 0x0000 },
+ { 0x1900, 0x22b1, 0x0000 },
+ { 0x9900, 0x22b4, 0x2000 },
+ { 0x1900, 0x22b3, 0x0000 },
+ { 0x1900, 0x22b5, 0x0000 },
+ { 0x9900, 0x22ba, 0x3000 },
+ { 0x9900, 0x22b8, 0x2000 },
+ { 0x1900, 0x22b7, 0x0000 },
+ { 0x1900, 0x22b9, 0x0000 },
+ { 0x9900, 0x22bc, 0x2000 },
+ { 0x1900, 0x22bb, 0x0000 },
+ { 0x1900, 0x22bd, 0x0000 },
+ { 0x9900, 0x22c6, 0x4000 },
+ { 0x9900, 0x22c2, 0x3000 },
+ { 0x9900, 0x22c0, 0x2000 },
+ { 0x1900, 0x22bf, 0x0000 },
+ { 0x1900, 0x22c1, 0x0000 },
+ { 0x9900, 0x22c4, 0x2000 },
+ { 0x1900, 0x22c3, 0x0000 },
+ { 0x1900, 0x22c5, 0x0000 },
+ { 0x9900, 0x22ca, 0x3000 },
+ { 0x9900, 0x22c8, 0x2000 },
+ { 0x1900, 0x22c7, 0x0000 },
+ { 0x1900, 0x22c9, 0x0000 },
+ { 0x9900, 0x22cc, 0x2000 },
+ { 0x1900, 0x22cb, 0x0000 },
+ { 0x1900, 0x22cd, 0x0000 },
+ { 0x9900, 0x22de, 0x5000 },
+ { 0x9900, 0x22d6, 0x4000 },
+ { 0x9900, 0x22d2, 0x3000 },
+ { 0x9900, 0x22d0, 0x2000 },
+ { 0x1900, 0x22cf, 0x0000 },
+ { 0x1900, 0x22d1, 0x0000 },
+ { 0x9900, 0x22d4, 0x2000 },
+ { 0x1900, 0x22d3, 0x0000 },
+ { 0x1900, 0x22d5, 0x0000 },
+ { 0x9900, 0x22da, 0x3000 },
+ { 0x9900, 0x22d8, 0x2000 },
+ { 0x1900, 0x22d7, 0x0000 },
+ { 0x1900, 0x22d9, 0x0000 },
+ { 0x9900, 0x22dc, 0x2000 },
+ { 0x1900, 0x22db, 0x0000 },
+ { 0x1900, 0x22dd, 0x0000 },
+ { 0x9900, 0x22e6, 0x4000 },
+ { 0x9900, 0x22e2, 0x3000 },
+ { 0x9900, 0x22e0, 0x2000 },
+ { 0x1900, 0x22df, 0x0000 },
+ { 0x1900, 0x22e1, 0x0000 },
+ { 0x9900, 0x22e4, 0x2000 },
+ { 0x1900, 0x22e3, 0x0000 },
+ { 0x1900, 0x22e5, 0x0000 },
+ { 0x9900, 0x22ea, 0x3000 },
+ { 0x9900, 0x22e8, 0x2000 },
+ { 0x1900, 0x22e7, 0x0000 },
+ { 0x1900, 0x22e9, 0x0000 },
+ { 0x9900, 0x22ec, 0x2000 },
+ { 0x1900, 0x22eb, 0x0000 },
+ { 0x1900, 0x22ed, 0x0000 },
+ { 0x9a00, 0x230e, 0x6000 },
+ { 0x9900, 0x22fe, 0x5000 },
+ { 0x9900, 0x22f6, 0x4000 },
+ { 0x9900, 0x22f2, 0x3000 },
+ { 0x9900, 0x22f0, 0x2000 },
+ { 0x1900, 0x22ef, 0x0000 },
+ { 0x1900, 0x22f1, 0x0000 },
+ { 0x9900, 0x22f4, 0x2000 },
+ { 0x1900, 0x22f3, 0x0000 },
+ { 0x1900, 0x22f5, 0x0000 },
+ { 0x9900, 0x22fa, 0x3000 },
+ { 0x9900, 0x22f8, 0x2000 },
+ { 0x1900, 0x22f7, 0x0000 },
+ { 0x1900, 0x22f9, 0x0000 },
+ { 0x9900, 0x22fc, 0x2000 },
+ { 0x1900, 0x22fb, 0x0000 },
+ { 0x1900, 0x22fd, 0x0000 },
+ { 0x9a00, 0x2306, 0x4000 },
+ { 0x9a00, 0x2302, 0x3000 },
+ { 0x9a00, 0x2300, 0x2000 },
+ { 0x1900, 0x22ff, 0x0000 },
+ { 0x1a00, 0x2301, 0x0000 },
+ { 0x9a00, 0x2304, 0x2000 },
+ { 0x1a00, 0x2303, 0x0000 },
+ { 0x1a00, 0x2305, 0x0000 },
+ { 0x9900, 0x230a, 0x3000 },
+ { 0x9900, 0x2308, 0x2000 },
+ { 0x1a00, 0x2307, 0x0000 },
+ { 0x1900, 0x2309, 0x0000 },
+ { 0x9a00, 0x230c, 0x2000 },
+ { 0x1900, 0x230b, 0x0000 },
+ { 0x1a00, 0x230d, 0x0000 },
+ { 0x9a00, 0x231e, 0x5000 },
+ { 0x9a00, 0x2316, 0x4000 },
+ { 0x9a00, 0x2312, 0x3000 },
+ { 0x9a00, 0x2310, 0x2000 },
+ { 0x1a00, 0x230f, 0x0000 },
+ { 0x1a00, 0x2311, 0x0000 },
+ { 0x9a00, 0x2314, 0x2000 },
+ { 0x1a00, 0x2313, 0x0000 },
+ { 0x1a00, 0x2315, 0x0000 },
+ { 0x9a00, 0x231a, 0x3000 },
+ { 0x9a00, 0x2318, 0x2000 },
+ { 0x1a00, 0x2317, 0x0000 },
+ { 0x1a00, 0x2319, 0x0000 },
+ { 0x9a00, 0x231c, 0x2000 },
+ { 0x1a00, 0x231b, 0x0000 },
+ { 0x1a00, 0x231d, 0x0000 },
+ { 0x9a00, 0x2326, 0x4000 },
+ { 0x9a00, 0x2322, 0x3000 },
+ { 0x9900, 0x2320, 0x2000 },
+ { 0x1a00, 0x231f, 0x0000 },
+ { 0x1900, 0x2321, 0x0000 },
+ { 0x9a00, 0x2324, 0x2000 },
+ { 0x1a00, 0x2323, 0x0000 },
+ { 0x1a00, 0x2325, 0x0000 },
+ { 0x9200, 0x232a, 0x3000 },
+ { 0x9a00, 0x2328, 0x2000 },
+ { 0x1a00, 0x2327, 0x0000 },
+ { 0x1600, 0x2329, 0x0000 },
+ { 0x9a00, 0x232c, 0x2000 },
+ { 0x1a00, 0x232b, 0x0000 },
+ { 0x1a00, 0x232d, 0x0000 },
+ { 0x9a00, 0x236e, 0x7000 },
+ { 0x9a00, 0x234e, 0x6000 },
+ { 0x9a00, 0x233e, 0x5000 },
+ { 0x9a00, 0x2336, 0x4000 },
+ { 0x9a00, 0x2332, 0x3000 },
+ { 0x9a00, 0x2330, 0x2000 },
+ { 0x1a00, 0x232f, 0x0000 },
+ { 0x1a00, 0x2331, 0x0000 },
+ { 0x9a00, 0x2334, 0x2000 },
+ { 0x1a00, 0x2333, 0x0000 },
+ { 0x1a00, 0x2335, 0x0000 },
+ { 0x9a00, 0x233a, 0x3000 },
+ { 0x9a00, 0x2338, 0x2000 },
+ { 0x1a00, 0x2337, 0x0000 },
+ { 0x1a00, 0x2339, 0x0000 },
+ { 0x9a00, 0x233c, 0x2000 },
+ { 0x1a00, 0x233b, 0x0000 },
+ { 0x1a00, 0x233d, 0x0000 },
+ { 0x9a00, 0x2346, 0x4000 },
+ { 0x9a00, 0x2342, 0x3000 },
+ { 0x9a00, 0x2340, 0x2000 },
+ { 0x1a00, 0x233f, 0x0000 },
+ { 0x1a00, 0x2341, 0x0000 },
+ { 0x9a00, 0x2344, 0x2000 },
+ { 0x1a00, 0x2343, 0x0000 },
+ { 0x1a00, 0x2345, 0x0000 },
+ { 0x9a00, 0x234a, 0x3000 },
+ { 0x9a00, 0x2348, 0x2000 },
+ { 0x1a00, 0x2347, 0x0000 },
+ { 0x1a00, 0x2349, 0x0000 },
+ { 0x9a00, 0x234c, 0x2000 },
+ { 0x1a00, 0x234b, 0x0000 },
+ { 0x1a00, 0x234d, 0x0000 },
+ { 0x9a00, 0x235e, 0x5000 },
+ { 0x9a00, 0x2356, 0x4000 },
+ { 0x9a00, 0x2352, 0x3000 },
+ { 0x9a00, 0x2350, 0x2000 },
+ { 0x1a00, 0x234f, 0x0000 },
+ { 0x1a00, 0x2351, 0x0000 },
+ { 0x9a00, 0x2354, 0x2000 },
+ { 0x1a00, 0x2353, 0x0000 },
+ { 0x1a00, 0x2355, 0x0000 },
+ { 0x9a00, 0x235a, 0x3000 },
+ { 0x9a00, 0x2358, 0x2000 },
+ { 0x1a00, 0x2357, 0x0000 },
+ { 0x1a00, 0x2359, 0x0000 },
+ { 0x9a00, 0x235c, 0x2000 },
+ { 0x1a00, 0x235b, 0x0000 },
+ { 0x1a00, 0x235d, 0x0000 },
+ { 0x9a00, 0x2366, 0x4000 },
+ { 0x9a00, 0x2362, 0x3000 },
+ { 0x9a00, 0x2360, 0x2000 },
+ { 0x1a00, 0x235f, 0x0000 },
+ { 0x1a00, 0x2361, 0x0000 },
+ { 0x9a00, 0x2364, 0x2000 },
+ { 0x1a00, 0x2363, 0x0000 },
+ { 0x1a00, 0x2365, 0x0000 },
+ { 0x9a00, 0x236a, 0x3000 },
+ { 0x9a00, 0x2368, 0x2000 },
+ { 0x1a00, 0x2367, 0x0000 },
+ { 0x1a00, 0x2369, 0x0000 },
+ { 0x9a00, 0x236c, 0x2000 },
+ { 0x1a00, 0x236b, 0x0000 },
+ { 0x1a00, 0x236d, 0x0000 },
+ { 0x9a00, 0x238e, 0x6000 },
+ { 0x9a00, 0x237e, 0x5000 },
+ { 0x9a00, 0x2376, 0x4000 },
+ { 0x9a00, 0x2372, 0x3000 },
+ { 0x9a00, 0x2370, 0x2000 },
+ { 0x1a00, 0x236f, 0x0000 },
+ { 0x1a00, 0x2371, 0x0000 },
+ { 0x9a00, 0x2374, 0x2000 },
+ { 0x1a00, 0x2373, 0x0000 },
+ { 0x1a00, 0x2375, 0x0000 },
+ { 0x9a00, 0x237a, 0x3000 },
+ { 0x9a00, 0x2378, 0x2000 },
+ { 0x1a00, 0x2377, 0x0000 },
+ { 0x1a00, 0x2379, 0x0000 },
+ { 0x9900, 0x237c, 0x2000 },
+ { 0x1a00, 0x237b, 0x0000 },
+ { 0x1a00, 0x237d, 0x0000 },
+ { 0x9a00, 0x2386, 0x4000 },
+ { 0x9a00, 0x2382, 0x3000 },
+ { 0x9a00, 0x2380, 0x2000 },
+ { 0x1a00, 0x237f, 0x0000 },
+ { 0x1a00, 0x2381, 0x0000 },
+ { 0x9a00, 0x2384, 0x2000 },
+ { 0x1a00, 0x2383, 0x0000 },
+ { 0x1a00, 0x2385, 0x0000 },
+ { 0x9a00, 0x238a, 0x3000 },
+ { 0x9a00, 0x2388, 0x2000 },
+ { 0x1a00, 0x2387, 0x0000 },
+ { 0x1a00, 0x2389, 0x0000 },
+ { 0x9a00, 0x238c, 0x2000 },
+ { 0x1a00, 0x238b, 0x0000 },
+ { 0x1a00, 0x238d, 0x0000 },
+ { 0x9900, 0x239e, 0x5000 },
+ { 0x9a00, 0x2396, 0x4000 },
+ { 0x9a00, 0x2392, 0x3000 },
+ { 0x9a00, 0x2390, 0x2000 },
+ { 0x1a00, 0x238f, 0x0000 },
+ { 0x1a00, 0x2391, 0x0000 },
+ { 0x9a00, 0x2394, 0x2000 },
+ { 0x1a00, 0x2393, 0x0000 },
+ { 0x1a00, 0x2395, 0x0000 },
+ { 0x9a00, 0x239a, 0x3000 },
+ { 0x9a00, 0x2398, 0x2000 },
+ { 0x1a00, 0x2397, 0x0000 },
+ { 0x1a00, 0x2399, 0x0000 },
+ { 0x9900, 0x239c, 0x2000 },
+ { 0x1900, 0x239b, 0x0000 },
+ { 0x1900, 0x239d, 0x0000 },
+ { 0x9900, 0x23a6, 0x4000 },
+ { 0x9900, 0x23a2, 0x3000 },
+ { 0x9900, 0x23a0, 0x2000 },
+ { 0x1900, 0x239f, 0x0000 },
+ { 0x1900, 0x23a1, 0x0000 },
+ { 0x9900, 0x23a4, 0x2000 },
+ { 0x1900, 0x23a3, 0x0000 },
+ { 0x1900, 0x23a5, 0x0000 },
+ { 0x9900, 0x23aa, 0x3000 },
+ { 0x9900, 0x23a8, 0x2000 },
+ { 0x1900, 0x23a7, 0x0000 },
+ { 0x1900, 0x23a9, 0x0000 },
+ { 0x9900, 0x23ac, 0x2000 },
+ { 0x1900, 0x23ab, 0x0000 },
+ { 0x1900, 0x23ad, 0x0000 },
+ { 0x8f00, 0x248b, 0x8000 },
+ { 0x9a00, 0x241d, 0x7000 },
+ { 0x9a00, 0x23ce, 0x6000 },
+ { 0x9a00, 0x23be, 0x5000 },
+ { 0x9500, 0x23b6, 0x4000 },
+ { 0x9900, 0x23b2, 0x3000 },
+ { 0x9900, 0x23b0, 0x2000 },
+ { 0x1900, 0x23af, 0x0000 },
+ { 0x1900, 0x23b1, 0x0000 },
+ { 0x9600, 0x23b4, 0x2000 },
+ { 0x1900, 0x23b3, 0x0000 },
+ { 0x1200, 0x23b5, 0x0000 },
+ { 0x9a00, 0x23ba, 0x3000 },
+ { 0x9a00, 0x23b8, 0x2000 },
+ { 0x1a00, 0x23b7, 0x0000 },
+ { 0x1a00, 0x23b9, 0x0000 },
+ { 0x9a00, 0x23bc, 0x2000 },
+ { 0x1a00, 0x23bb, 0x0000 },
+ { 0x1a00, 0x23bd, 0x0000 },
+ { 0x9a00, 0x23c6, 0x4000 },
+ { 0x9a00, 0x23c2, 0x3000 },
+ { 0x9a00, 0x23c0, 0x2000 },
+ { 0x1a00, 0x23bf, 0x0000 },
+ { 0x1a00, 0x23c1, 0x0000 },
+ { 0x9a00, 0x23c4, 0x2000 },
+ { 0x1a00, 0x23c3, 0x0000 },
+ { 0x1a00, 0x23c5, 0x0000 },
+ { 0x9a00, 0x23ca, 0x3000 },
+ { 0x9a00, 0x23c8, 0x2000 },
+ { 0x1a00, 0x23c7, 0x0000 },
+ { 0x1a00, 0x23c9, 0x0000 },
+ { 0x9a00, 0x23cc, 0x2000 },
+ { 0x1a00, 0x23cb, 0x0000 },
+ { 0x1a00, 0x23cd, 0x0000 },
+ { 0x9a00, 0x240d, 0x5000 },
+ { 0x9a00, 0x2405, 0x4000 },
+ { 0x9a00, 0x2401, 0x3000 },
+ { 0x9a00, 0x23d0, 0x2000 },
+ { 0x1a00, 0x23cf, 0x0000 },
+ { 0x1a00, 0x2400, 0x0000 },
+ { 0x9a00, 0x2403, 0x2000 },
+ { 0x1a00, 0x2402, 0x0000 },
+ { 0x1a00, 0x2404, 0x0000 },
+ { 0x9a00, 0x2409, 0x3000 },
+ { 0x9a00, 0x2407, 0x2000 },
+ { 0x1a00, 0x2406, 0x0000 },
+ { 0x1a00, 0x2408, 0x0000 },
+ { 0x9a00, 0x240b, 0x2000 },
+ { 0x1a00, 0x240a, 0x0000 },
+ { 0x1a00, 0x240c, 0x0000 },
+ { 0x9a00, 0x2415, 0x4000 },
+ { 0x9a00, 0x2411, 0x3000 },
+ { 0x9a00, 0x240f, 0x2000 },
+ { 0x1a00, 0x240e, 0x0000 },
+ { 0x1a00, 0x2410, 0x0000 },
+ { 0x9a00, 0x2413, 0x2000 },
+ { 0x1a00, 0x2412, 0x0000 },
+ { 0x1a00, 0x2414, 0x0000 },
+ { 0x9a00, 0x2419, 0x3000 },
+ { 0x9a00, 0x2417, 0x2000 },
+ { 0x1a00, 0x2416, 0x0000 },
+ { 0x1a00, 0x2418, 0x0000 },
+ { 0x9a00, 0x241b, 0x2000 },
+ { 0x1a00, 0x241a, 0x0000 },
+ { 0x1a00, 0x241c, 0x0000 },
+ { 0x8f00, 0x246b, 0x6000 },
+ { 0x9a00, 0x2446, 0x5000 },
+ { 0x9a00, 0x2425, 0x4000 },
+ { 0x9a00, 0x2421, 0x3000 },
+ { 0x9a00, 0x241f, 0x2000 },
+ { 0x1a00, 0x241e, 0x0000 },
+ { 0x1a00, 0x2420, 0x0000 },
+ { 0x9a00, 0x2423, 0x2000 },
+ { 0x1a00, 0x2422, 0x0000 },
+ { 0x1a00, 0x2424, 0x0000 },
+ { 0x9a00, 0x2442, 0x3000 },
+ { 0x9a00, 0x2440, 0x2000 },
+ { 0x1a00, 0x2426, 0x0000 },
+ { 0x1a00, 0x2441, 0x0000 },
+ { 0x9a00, 0x2444, 0x2000 },
+ { 0x1a00, 0x2443, 0x0000 },
+ { 0x1a00, 0x2445, 0x0000 },
+ { 0x8f00, 0x2463, 0x4000 },
+ { 0x9a00, 0x244a, 0x3000 },
+ { 0x9a00, 0x2448, 0x2000 },
+ { 0x1a00, 0x2447, 0x0000 },
+ { 0x1a00, 0x2449, 0x0000 },
+ { 0x8f00, 0x2461, 0x2000 },
+ { 0x0f00, 0x2460, 0x0000 },
+ { 0x0f00, 0x2462, 0x0000 },
+ { 0x8f00, 0x2467, 0x3000 },
+ { 0x8f00, 0x2465, 0x2000 },
+ { 0x0f00, 0x2464, 0x0000 },
+ { 0x0f00, 0x2466, 0x0000 },
+ { 0x8f00, 0x2469, 0x2000 },
+ { 0x0f00, 0x2468, 0x0000 },
+ { 0x0f00, 0x246a, 0x0000 },
+ { 0x8f00, 0x247b, 0x5000 },
+ { 0x8f00, 0x2473, 0x4000 },
+ { 0x8f00, 0x246f, 0x3000 },
+ { 0x8f00, 0x246d, 0x2000 },
+ { 0x0f00, 0x246c, 0x0000 },
+ { 0x0f00, 0x246e, 0x0000 },
+ { 0x8f00, 0x2471, 0x2000 },
+ { 0x0f00, 0x2470, 0x0000 },
+ { 0x0f00, 0x2472, 0x0000 },
+ { 0x8f00, 0x2477, 0x3000 },
+ { 0x8f00, 0x2475, 0x2000 },
+ { 0x0f00, 0x2474, 0x0000 },
+ { 0x0f00, 0x2476, 0x0000 },
+ { 0x8f00, 0x2479, 0x2000 },
+ { 0x0f00, 0x2478, 0x0000 },
+ { 0x0f00, 0x247a, 0x0000 },
+ { 0x8f00, 0x2483, 0x4000 },
+ { 0x8f00, 0x247f, 0x3000 },
+ { 0x8f00, 0x247d, 0x2000 },
+ { 0x0f00, 0x247c, 0x0000 },
+ { 0x0f00, 0x247e, 0x0000 },
+ { 0x8f00, 0x2481, 0x2000 },
+ { 0x0f00, 0x2480, 0x0000 },
+ { 0x0f00, 0x2482, 0x0000 },
+ { 0x8f00, 0x2487, 0x3000 },
+ { 0x8f00, 0x2485, 0x2000 },
+ { 0x0f00, 0x2484, 0x0000 },
+ { 0x0f00, 0x2486, 0x0000 },
+ { 0x8f00, 0x2489, 0x2000 },
+ { 0x0f00, 0x2488, 0x0000 },
+ { 0x0f00, 0x248a, 0x0000 },
+ { 0x9a00, 0x24cb, 0x7000 },
+ { 0x9a00, 0x24ab, 0x6000 },
+ { 0x8f00, 0x249b, 0x5000 },
+ { 0x8f00, 0x2493, 0x4000 },
+ { 0x8f00, 0x248f, 0x3000 },
+ { 0x8f00, 0x248d, 0x2000 },
+ { 0x0f00, 0x248c, 0x0000 },
+ { 0x0f00, 0x248e, 0x0000 },
+ { 0x8f00, 0x2491, 0x2000 },
+ { 0x0f00, 0x2490, 0x0000 },
+ { 0x0f00, 0x2492, 0x0000 },
+ { 0x8f00, 0x2497, 0x3000 },
+ { 0x8f00, 0x2495, 0x2000 },
+ { 0x0f00, 0x2494, 0x0000 },
+ { 0x0f00, 0x2496, 0x0000 },
+ { 0x8f00, 0x2499, 0x2000 },
+ { 0x0f00, 0x2498, 0x0000 },
+ { 0x0f00, 0x249a, 0x0000 },
+ { 0x9a00, 0x24a3, 0x4000 },
+ { 0x9a00, 0x249f, 0x3000 },
+ { 0x9a00, 0x249d, 0x2000 },
+ { 0x1a00, 0x249c, 0x0000 },
+ { 0x1a00, 0x249e, 0x0000 },
+ { 0x9a00, 0x24a1, 0x2000 },
+ { 0x1a00, 0x24a0, 0x0000 },
+ { 0x1a00, 0x24a2, 0x0000 },
+ { 0x9a00, 0x24a7, 0x3000 },
+ { 0x9a00, 0x24a5, 0x2000 },
+ { 0x1a00, 0x24a4, 0x0000 },
+ { 0x1a00, 0x24a6, 0x0000 },
+ { 0x9a00, 0x24a9, 0x2000 },
+ { 0x1a00, 0x24a8, 0x0000 },
+ { 0x1a00, 0x24aa, 0x0000 },
+ { 0x9a00, 0x24bb, 0x5000 },
+ { 0x9a00, 0x24b3, 0x4000 },
+ { 0x9a00, 0x24af, 0x3000 },
+ { 0x9a00, 0x24ad, 0x2000 },
+ { 0x1a00, 0x24ac, 0x0000 },
+ { 0x1a00, 0x24ae, 0x0000 },
+ { 0x9a00, 0x24b1, 0x2000 },
+ { 0x1a00, 0x24b0, 0x0000 },
+ { 0x1a00, 0x24b2, 0x0000 },
+ { 0x9a00, 0x24b7, 0x3000 },
+ { 0x9a00, 0x24b5, 0x2000 },
+ { 0x1a00, 0x24b4, 0x0000 },
+ { 0x1a00, 0x24b6, 0x0000 },
+ { 0x9a00, 0x24b9, 0x2000 },
+ { 0x1a00, 0x24b8, 0x0000 },
+ { 0x1a00, 0x24ba, 0x0000 },
+ { 0x9a00, 0x24c3, 0x4000 },
+ { 0x9a00, 0x24bf, 0x3000 },
+ { 0x9a00, 0x24bd, 0x2000 },
+ { 0x1a00, 0x24bc, 0x0000 },
+ { 0x1a00, 0x24be, 0x0000 },
+ { 0x9a00, 0x24c1, 0x2000 },
+ { 0x1a00, 0x24c0, 0x0000 },
+ { 0x1a00, 0x24c2, 0x0000 },
+ { 0x9a00, 0x24c7, 0x3000 },
+ { 0x9a00, 0x24c5, 0x2000 },
+ { 0x1a00, 0x24c4, 0x0000 },
+ { 0x1a00, 0x24c6, 0x0000 },
+ { 0x9a00, 0x24c9, 0x2000 },
+ { 0x1a00, 0x24c8, 0x0000 },
+ { 0x1a00, 0x24ca, 0x0000 },
+ { 0x8f00, 0x24eb, 0x6000 },
+ { 0x9a00, 0x24db, 0x5000 },
+ { 0x9a00, 0x24d3, 0x4000 },
+ { 0x9a00, 0x24cf, 0x3000 },
+ { 0x9a00, 0x24cd, 0x2000 },
+ { 0x1a00, 0x24cc, 0x0000 },
+ { 0x1a00, 0x24ce, 0x0000 },
+ { 0x9a00, 0x24d1, 0x2000 },
+ { 0x1a00, 0x24d0, 0x0000 },
+ { 0x1a00, 0x24d2, 0x0000 },
+ { 0x9a00, 0x24d7, 0x3000 },
+ { 0x9a00, 0x24d5, 0x2000 },
+ { 0x1a00, 0x24d4, 0x0000 },
+ { 0x1a00, 0x24d6, 0x0000 },
+ { 0x9a00, 0x24d9, 0x2000 },
+ { 0x1a00, 0x24d8, 0x0000 },
+ { 0x1a00, 0x24da, 0x0000 },
+ { 0x9a00, 0x24e3, 0x4000 },
+ { 0x9a00, 0x24df, 0x3000 },
+ { 0x9a00, 0x24dd, 0x2000 },
+ { 0x1a00, 0x24dc, 0x0000 },
+ { 0x1a00, 0x24de, 0x0000 },
+ { 0x9a00, 0x24e1, 0x2000 },
+ { 0x1a00, 0x24e0, 0x0000 },
+ { 0x1a00, 0x24e2, 0x0000 },
+ { 0x9a00, 0x24e7, 0x3000 },
+ { 0x9a00, 0x24e5, 0x2000 },
+ { 0x1a00, 0x24e4, 0x0000 },
+ { 0x1a00, 0x24e6, 0x0000 },
+ { 0x9a00, 0x24e9, 0x2000 },
+ { 0x1a00, 0x24e8, 0x0000 },
+ { 0x0f00, 0x24ea, 0x0000 },
+ { 0x8f00, 0x24fb, 0x5000 },
+ { 0x8f00, 0x24f3, 0x4000 },
+ { 0x8f00, 0x24ef, 0x3000 },
+ { 0x8f00, 0x24ed, 0x2000 },
+ { 0x0f00, 0x24ec, 0x0000 },
+ { 0x0f00, 0x24ee, 0x0000 },
+ { 0x8f00, 0x24f1, 0x2000 },
+ { 0x0f00, 0x24f0, 0x0000 },
+ { 0x0f00, 0x24f2, 0x0000 },
+ { 0x8f00, 0x24f7, 0x3000 },
+ { 0x8f00, 0x24f5, 0x2000 },
+ { 0x0f00, 0x24f4, 0x0000 },
+ { 0x0f00, 0x24f6, 0x0000 },
+ { 0x8f00, 0x24f9, 0x2000 },
+ { 0x0f00, 0x24f8, 0x0000 },
+ { 0x0f00, 0x24fa, 0x0000 },
+ { 0x9a00, 0x2503, 0x4000 },
+ { 0x8f00, 0x24ff, 0x3000 },
+ { 0x8f00, 0x24fd, 0x2000 },
+ { 0x0f00, 0x24fc, 0x0000 },
+ { 0x0f00, 0x24fe, 0x0000 },
+ { 0x9a00, 0x2501, 0x2000 },
+ { 0x1a00, 0x2500, 0x0000 },
+ { 0x1a00, 0x2502, 0x0000 },
+ { 0x9a00, 0x2507, 0x3000 },
+ { 0x9a00, 0x2505, 0x2000 },
+ { 0x1a00, 0x2504, 0x0000 },
+ { 0x1a00, 0x2506, 0x0000 },
+ { 0x9a00, 0x2509, 0x2000 },
+ { 0x1a00, 0x2508, 0x0000 },
+ { 0x1a00, 0x250a, 0x0000 },
+ { 0x9a00, 0x260b, 0x9000 },
+ { 0x9a00, 0x258b, 0x8000 },
+ { 0x9a00, 0x254b, 0x7000 },
+ { 0x9a00, 0x252b, 0x6000 },
+ { 0x9a00, 0x251b, 0x5000 },
+ { 0x9a00, 0x2513, 0x4000 },
+ { 0x9a00, 0x250f, 0x3000 },
+ { 0x9a00, 0x250d, 0x2000 },
+ { 0x1a00, 0x250c, 0x0000 },
+ { 0x1a00, 0x250e, 0x0000 },
+ { 0x9a00, 0x2511, 0x2000 },
+ { 0x1a00, 0x2510, 0x0000 },
+ { 0x1a00, 0x2512, 0x0000 },
+ { 0x9a00, 0x2517, 0x3000 },
+ { 0x9a00, 0x2515, 0x2000 },
+ { 0x1a00, 0x2514, 0x0000 },
+ { 0x1a00, 0x2516, 0x0000 },
+ { 0x9a00, 0x2519, 0x2000 },
+ { 0x1a00, 0x2518, 0x0000 },
+ { 0x1a00, 0x251a, 0x0000 },
+ { 0x9a00, 0x2523, 0x4000 },
+ { 0x9a00, 0x251f, 0x3000 },
+ { 0x9a00, 0x251d, 0x2000 },
+ { 0x1a00, 0x251c, 0x0000 },
+ { 0x1a00, 0x251e, 0x0000 },
+ { 0x9a00, 0x2521, 0x2000 },
+ { 0x1a00, 0x2520, 0x0000 },
+ { 0x1a00, 0x2522, 0x0000 },
+ { 0x9a00, 0x2527, 0x3000 },
+ { 0x9a00, 0x2525, 0x2000 },
+ { 0x1a00, 0x2524, 0x0000 },
+ { 0x1a00, 0x2526, 0x0000 },
+ { 0x9a00, 0x2529, 0x2000 },
+ { 0x1a00, 0x2528, 0x0000 },
+ { 0x1a00, 0x252a, 0x0000 },
+ { 0x9a00, 0x253b, 0x5000 },
+ { 0x9a00, 0x2533, 0x4000 },
+ { 0x9a00, 0x252f, 0x3000 },
+ { 0x9a00, 0x252d, 0x2000 },
+ { 0x1a00, 0x252c, 0x0000 },
+ { 0x1a00, 0x252e, 0x0000 },
+ { 0x9a00, 0x2531, 0x2000 },
+ { 0x1a00, 0x2530, 0x0000 },
+ { 0x1a00, 0x2532, 0x0000 },
+ { 0x9a00, 0x2537, 0x3000 },
+ { 0x9a00, 0x2535, 0x2000 },
+ { 0x1a00, 0x2534, 0x0000 },
+ { 0x1a00, 0x2536, 0x0000 },
+ { 0x9a00, 0x2539, 0x2000 },
+ { 0x1a00, 0x2538, 0x0000 },
+ { 0x1a00, 0x253a, 0x0000 },
+ { 0x9a00, 0x2543, 0x4000 },
+ { 0x9a00, 0x253f, 0x3000 },
+ { 0x9a00, 0x253d, 0x2000 },
+ { 0x1a00, 0x253c, 0x0000 },
+ { 0x1a00, 0x253e, 0x0000 },
+ { 0x9a00, 0x2541, 0x2000 },
+ { 0x1a00, 0x2540, 0x0000 },
+ { 0x1a00, 0x2542, 0x0000 },
+ { 0x9a00, 0x2547, 0x3000 },
+ { 0x9a00, 0x2545, 0x2000 },
+ { 0x1a00, 0x2544, 0x0000 },
+ { 0x1a00, 0x2546, 0x0000 },
+ { 0x9a00, 0x2549, 0x2000 },
+ { 0x1a00, 0x2548, 0x0000 },
+ { 0x1a00, 0x254a, 0x0000 },
+ { 0x9a00, 0x256b, 0x6000 },
+ { 0x9a00, 0x255b, 0x5000 },
+ { 0x9a00, 0x2553, 0x4000 },
+ { 0x9a00, 0x254f, 0x3000 },
+ { 0x9a00, 0x254d, 0x2000 },
+ { 0x1a00, 0x254c, 0x0000 },
+ { 0x1a00, 0x254e, 0x0000 },
+ { 0x9a00, 0x2551, 0x2000 },
+ { 0x1a00, 0x2550, 0x0000 },
+ { 0x1a00, 0x2552, 0x0000 },
+ { 0x9a00, 0x2557, 0x3000 },
+ { 0x9a00, 0x2555, 0x2000 },
+ { 0x1a00, 0x2554, 0x0000 },
+ { 0x1a00, 0x2556, 0x0000 },
+ { 0x9a00, 0x2559, 0x2000 },
+ { 0x1a00, 0x2558, 0x0000 },
+ { 0x1a00, 0x255a, 0x0000 },
+ { 0x9a00, 0x2563, 0x4000 },
+ { 0x9a00, 0x255f, 0x3000 },
+ { 0x9a00, 0x255d, 0x2000 },
+ { 0x1a00, 0x255c, 0x0000 },
+ { 0x1a00, 0x255e, 0x0000 },
+ { 0x9a00, 0x2561, 0x2000 },
+ { 0x1a00, 0x2560, 0x0000 },
+ { 0x1a00, 0x2562, 0x0000 },
+ { 0x9a00, 0x2567, 0x3000 },
+ { 0x9a00, 0x2565, 0x2000 },
+ { 0x1a00, 0x2564, 0x0000 },
+ { 0x1a00, 0x2566, 0x0000 },
+ { 0x9a00, 0x2569, 0x2000 },
+ { 0x1a00, 0x2568, 0x0000 },
+ { 0x1a00, 0x256a, 0x0000 },
+ { 0x9a00, 0x257b, 0x5000 },
+ { 0x9a00, 0x2573, 0x4000 },
+ { 0x9a00, 0x256f, 0x3000 },
+ { 0x9a00, 0x256d, 0x2000 },
+ { 0x1a00, 0x256c, 0x0000 },
+ { 0x1a00, 0x256e, 0x0000 },
+ { 0x9a00, 0x2571, 0x2000 },
+ { 0x1a00, 0x2570, 0x0000 },
+ { 0x1a00, 0x2572, 0x0000 },
+ { 0x9a00, 0x2577, 0x3000 },
+ { 0x9a00, 0x2575, 0x2000 },
+ { 0x1a00, 0x2574, 0x0000 },
+ { 0x1a00, 0x2576, 0x0000 },
+ { 0x9a00, 0x2579, 0x2000 },
+ { 0x1a00, 0x2578, 0x0000 },
+ { 0x1a00, 0x257a, 0x0000 },
+ { 0x9a00, 0x2583, 0x4000 },
+ { 0x9a00, 0x257f, 0x3000 },
+ { 0x9a00, 0x257d, 0x2000 },
+ { 0x1a00, 0x257c, 0x0000 },
+ { 0x1a00, 0x257e, 0x0000 },
+ { 0x9a00, 0x2581, 0x2000 },
+ { 0x1a00, 0x2580, 0x0000 },
+ { 0x1a00, 0x2582, 0x0000 },
+ { 0x9a00, 0x2587, 0x3000 },
+ { 0x9a00, 0x2585, 0x2000 },
+ { 0x1a00, 0x2584, 0x0000 },
+ { 0x1a00, 0x2586, 0x0000 },
+ { 0x9a00, 0x2589, 0x2000 },
+ { 0x1a00, 0x2588, 0x0000 },
+ { 0x1a00, 0x258a, 0x0000 },
+ { 0x9a00, 0x25cb, 0x7000 },
+ { 0x9a00, 0x25ab, 0x6000 },
+ { 0x9a00, 0x259b, 0x5000 },
+ { 0x9a00, 0x2593, 0x4000 },
+ { 0x9a00, 0x258f, 0x3000 },
+ { 0x9a00, 0x258d, 0x2000 },
+ { 0x1a00, 0x258c, 0x0000 },
+ { 0x1a00, 0x258e, 0x0000 },
+ { 0x9a00, 0x2591, 0x2000 },
+ { 0x1a00, 0x2590, 0x0000 },
+ { 0x1a00, 0x2592, 0x0000 },
+ { 0x9a00, 0x2597, 0x3000 },
+ { 0x9a00, 0x2595, 0x2000 },
+ { 0x1a00, 0x2594, 0x0000 },
+ { 0x1a00, 0x2596, 0x0000 },
+ { 0x9a00, 0x2599, 0x2000 },
+ { 0x1a00, 0x2598, 0x0000 },
+ { 0x1a00, 0x259a, 0x0000 },
+ { 0x9a00, 0x25a3, 0x4000 },
+ { 0x9a00, 0x259f, 0x3000 },
+ { 0x9a00, 0x259d, 0x2000 },
+ { 0x1a00, 0x259c, 0x0000 },
+ { 0x1a00, 0x259e, 0x0000 },
+ { 0x9a00, 0x25a1, 0x2000 },
+ { 0x1a00, 0x25a0, 0x0000 },
+ { 0x1a00, 0x25a2, 0x0000 },
+ { 0x9a00, 0x25a7, 0x3000 },
+ { 0x9a00, 0x25a5, 0x2000 },
+ { 0x1a00, 0x25a4, 0x0000 },
+ { 0x1a00, 0x25a6, 0x0000 },
+ { 0x9a00, 0x25a9, 0x2000 },
+ { 0x1a00, 0x25a8, 0x0000 },
+ { 0x1a00, 0x25aa, 0x0000 },
+ { 0x9a00, 0x25bb, 0x5000 },
+ { 0x9a00, 0x25b3, 0x4000 },
+ { 0x9a00, 0x25af, 0x3000 },
+ { 0x9a00, 0x25ad, 0x2000 },
+ { 0x1a00, 0x25ac, 0x0000 },
+ { 0x1a00, 0x25ae, 0x0000 },
+ { 0x9a00, 0x25b1, 0x2000 },
+ { 0x1a00, 0x25b0, 0x0000 },
+ { 0x1a00, 0x25b2, 0x0000 },
+ { 0x9900, 0x25b7, 0x3000 },
+ { 0x9a00, 0x25b5, 0x2000 },
+ { 0x1a00, 0x25b4, 0x0000 },
+ { 0x1a00, 0x25b6, 0x0000 },
+ { 0x9a00, 0x25b9, 0x2000 },
+ { 0x1a00, 0x25b8, 0x0000 },
+ { 0x1a00, 0x25ba, 0x0000 },
+ { 0x9a00, 0x25c3, 0x4000 },
+ { 0x9a00, 0x25bf, 0x3000 },
+ { 0x9a00, 0x25bd, 0x2000 },
+ { 0x1a00, 0x25bc, 0x0000 },
+ { 0x1a00, 0x25be, 0x0000 },
+ { 0x9900, 0x25c1, 0x2000 },
+ { 0x1a00, 0x25c0, 0x0000 },
+ { 0x1a00, 0x25c2, 0x0000 },
+ { 0x9a00, 0x25c7, 0x3000 },
+ { 0x9a00, 0x25c5, 0x2000 },
+ { 0x1a00, 0x25c4, 0x0000 },
+ { 0x1a00, 0x25c6, 0x0000 },
+ { 0x9a00, 0x25c9, 0x2000 },
+ { 0x1a00, 0x25c8, 0x0000 },
+ { 0x1a00, 0x25ca, 0x0000 },
+ { 0x9a00, 0x25eb, 0x6000 },
+ { 0x9a00, 0x25db, 0x5000 },
+ { 0x9a00, 0x25d3, 0x4000 },
+ { 0x9a00, 0x25cf, 0x3000 },
+ { 0x9a00, 0x25cd, 0x2000 },
+ { 0x1a00, 0x25cc, 0x0000 },
+ { 0x1a00, 0x25ce, 0x0000 },
+ { 0x9a00, 0x25d1, 0x2000 },
+ { 0x1a00, 0x25d0, 0x0000 },
+ { 0x1a00, 0x25d2, 0x0000 },
+ { 0x9a00, 0x25d7, 0x3000 },
+ { 0x9a00, 0x25d5, 0x2000 },
+ { 0x1a00, 0x25d4, 0x0000 },
+ { 0x1a00, 0x25d6, 0x0000 },
+ { 0x9a00, 0x25d9, 0x2000 },
+ { 0x1a00, 0x25d8, 0x0000 },
+ { 0x1a00, 0x25da, 0x0000 },
+ { 0x9a00, 0x25e3, 0x4000 },
+ { 0x9a00, 0x25df, 0x3000 },
+ { 0x9a00, 0x25dd, 0x2000 },
+ { 0x1a00, 0x25dc, 0x0000 },
+ { 0x1a00, 0x25de, 0x0000 },
+ { 0x9a00, 0x25e1, 0x2000 },
+ { 0x1a00, 0x25e0, 0x0000 },
+ { 0x1a00, 0x25e2, 0x0000 },
+ { 0x9a00, 0x25e7, 0x3000 },
+ { 0x9a00, 0x25e5, 0x2000 },
+ { 0x1a00, 0x25e4, 0x0000 },
+ { 0x1a00, 0x25e6, 0x0000 },
+ { 0x9a00, 0x25e9, 0x2000 },
+ { 0x1a00, 0x25e8, 0x0000 },
+ { 0x1a00, 0x25ea, 0x0000 },
+ { 0x9900, 0x25fb, 0x5000 },
+ { 0x9a00, 0x25f3, 0x4000 },
+ { 0x9a00, 0x25ef, 0x3000 },
+ { 0x9a00, 0x25ed, 0x2000 },
+ { 0x1a00, 0x25ec, 0x0000 },
+ { 0x1a00, 0x25ee, 0x0000 },
+ { 0x9a00, 0x25f1, 0x2000 },
+ { 0x1a00, 0x25f0, 0x0000 },
+ { 0x1a00, 0x25f2, 0x0000 },
+ { 0x9a00, 0x25f7, 0x3000 },
+ { 0x9a00, 0x25f5, 0x2000 },
+ { 0x1a00, 0x25f4, 0x0000 },
+ { 0x1a00, 0x25f6, 0x0000 },
+ { 0x9900, 0x25f9, 0x2000 },
+ { 0x1900, 0x25f8, 0x0000 },
+ { 0x1900, 0x25fa, 0x0000 },
+ { 0x9a00, 0x2603, 0x4000 },
+ { 0x9900, 0x25ff, 0x3000 },
+ { 0x9900, 0x25fd, 0x2000 },
+ { 0x1900, 0x25fc, 0x0000 },
+ { 0x1900, 0x25fe, 0x0000 },
+ { 0x9a00, 0x2601, 0x2000 },
+ { 0x1a00, 0x2600, 0x0000 },
+ { 0x1a00, 0x2602, 0x0000 },
+ { 0x9a00, 0x2607, 0x3000 },
+ { 0x9a00, 0x2605, 0x2000 },
+ { 0x1a00, 0x2604, 0x0000 },
+ { 0x1a00, 0x2606, 0x0000 },
+ { 0x9a00, 0x2609, 0x2000 },
+ { 0x1a00, 0x2608, 0x0000 },
+ { 0x1a00, 0x260a, 0x0000 },
+ { 0x9a00, 0x268e, 0x8000 },
+ { 0x9a00, 0x264c, 0x7000 },
+ { 0x9a00, 0x262c, 0x6000 },
+ { 0x9a00, 0x261c, 0x5000 },
+ { 0x9a00, 0x2613, 0x4000 },
+ { 0x9a00, 0x260f, 0x3000 },
+ { 0x9a00, 0x260d, 0x2000 },
+ { 0x1a00, 0x260c, 0x0000 },
+ { 0x1a00, 0x260e, 0x0000 },
+ { 0x9a00, 0x2611, 0x2000 },
+ { 0x1a00, 0x2610, 0x0000 },
+ { 0x1a00, 0x2612, 0x0000 },
+ { 0x9a00, 0x2617, 0x3000 },
+ { 0x9a00, 0x2615, 0x2000 },
+ { 0x1a00, 0x2614, 0x0000 },
+ { 0x1a00, 0x2616, 0x0000 },
+ { 0x9a00, 0x261a, 0x2000 },
+ { 0x1a00, 0x2619, 0x0000 },
+ { 0x1a00, 0x261b, 0x0000 },
+ { 0x9a00, 0x2624, 0x4000 },
+ { 0x9a00, 0x2620, 0x3000 },
+ { 0x9a00, 0x261e, 0x2000 },
+ { 0x1a00, 0x261d, 0x0000 },
+ { 0x1a00, 0x261f, 0x0000 },
+ { 0x9a00, 0x2622, 0x2000 },
+ { 0x1a00, 0x2621, 0x0000 },
+ { 0x1a00, 0x2623, 0x0000 },
+ { 0x9a00, 0x2628, 0x3000 },
+ { 0x9a00, 0x2626, 0x2000 },
+ { 0x1a00, 0x2625, 0x0000 },
+ { 0x1a00, 0x2627, 0x0000 },
+ { 0x9a00, 0x262a, 0x2000 },
+ { 0x1a00, 0x2629, 0x0000 },
+ { 0x1a00, 0x262b, 0x0000 },
+ { 0x9a00, 0x263c, 0x5000 },
+ { 0x9a00, 0x2634, 0x4000 },
+ { 0x9a00, 0x2630, 0x3000 },
+ { 0x9a00, 0x262e, 0x2000 },
+ { 0x1a00, 0x262d, 0x0000 },
+ { 0x1a00, 0x262f, 0x0000 },
+ { 0x9a00, 0x2632, 0x2000 },
+ { 0x1a00, 0x2631, 0x0000 },
+ { 0x1a00, 0x2633, 0x0000 },
+ { 0x9a00, 0x2638, 0x3000 },
+ { 0x9a00, 0x2636, 0x2000 },
+ { 0x1a00, 0x2635, 0x0000 },
+ { 0x1a00, 0x2637, 0x0000 },
+ { 0x9a00, 0x263a, 0x2000 },
+ { 0x1a00, 0x2639, 0x0000 },
+ { 0x1a00, 0x263b, 0x0000 },
+ { 0x9a00, 0x2644, 0x4000 },
+ { 0x9a00, 0x2640, 0x3000 },
+ { 0x9a00, 0x263e, 0x2000 },
+ { 0x1a00, 0x263d, 0x0000 },
+ { 0x1a00, 0x263f, 0x0000 },
+ { 0x9a00, 0x2642, 0x2000 },
+ { 0x1a00, 0x2641, 0x0000 },
+ { 0x1a00, 0x2643, 0x0000 },
+ { 0x9a00, 0x2648, 0x3000 },
+ { 0x9a00, 0x2646, 0x2000 },
+ { 0x1a00, 0x2645, 0x0000 },
+ { 0x1a00, 0x2647, 0x0000 },
+ { 0x9a00, 0x264a, 0x2000 },
+ { 0x1a00, 0x2649, 0x0000 },
+ { 0x1a00, 0x264b, 0x0000 },
+ { 0x9a00, 0x266c, 0x6000 },
+ { 0x9a00, 0x265c, 0x5000 },
+ { 0x9a00, 0x2654, 0x4000 },
+ { 0x9a00, 0x2650, 0x3000 },
+ { 0x9a00, 0x264e, 0x2000 },
+ { 0x1a00, 0x264d, 0x0000 },
+ { 0x1a00, 0x264f, 0x0000 },
+ { 0x9a00, 0x2652, 0x2000 },
+ { 0x1a00, 0x2651, 0x0000 },
+ { 0x1a00, 0x2653, 0x0000 },
+ { 0x9a00, 0x2658, 0x3000 },
+ { 0x9a00, 0x2656, 0x2000 },
+ { 0x1a00, 0x2655, 0x0000 },
+ { 0x1a00, 0x2657, 0x0000 },
+ { 0x9a00, 0x265a, 0x2000 },
+ { 0x1a00, 0x2659, 0x0000 },
+ { 0x1a00, 0x265b, 0x0000 },
+ { 0x9a00, 0x2664, 0x4000 },
+ { 0x9a00, 0x2660, 0x3000 },
+ { 0x9a00, 0x265e, 0x2000 },
+ { 0x1a00, 0x265d, 0x0000 },
+ { 0x1a00, 0x265f, 0x0000 },
+ { 0x9a00, 0x2662, 0x2000 },
+ { 0x1a00, 0x2661, 0x0000 },
+ { 0x1a00, 0x2663, 0x0000 },
+ { 0x9a00, 0x2668, 0x3000 },
+ { 0x9a00, 0x2666, 0x2000 },
+ { 0x1a00, 0x2665, 0x0000 },
+ { 0x1a00, 0x2667, 0x0000 },
+ { 0x9a00, 0x266a, 0x2000 },
+ { 0x1a00, 0x2669, 0x0000 },
+ { 0x1a00, 0x266b, 0x0000 },
+ { 0x9a00, 0x267c, 0x5000 },
+ { 0x9a00, 0x2674, 0x4000 },
+ { 0x9a00, 0x2670, 0x3000 },
+ { 0x9a00, 0x266e, 0x2000 },
+ { 0x1a00, 0x266d, 0x0000 },
+ { 0x1900, 0x266f, 0x0000 },
+ { 0x9a00, 0x2672, 0x2000 },
+ { 0x1a00, 0x2671, 0x0000 },
+ { 0x1a00, 0x2673, 0x0000 },
+ { 0x9a00, 0x2678, 0x3000 },
+ { 0x9a00, 0x2676, 0x2000 },
+ { 0x1a00, 0x2675, 0x0000 },
+ { 0x1a00, 0x2677, 0x0000 },
+ { 0x9a00, 0x267a, 0x2000 },
+ { 0x1a00, 0x2679, 0x0000 },
+ { 0x1a00, 0x267b, 0x0000 },
+ { 0x9a00, 0x2686, 0x4000 },
+ { 0x9a00, 0x2682, 0x3000 },
+ { 0x9a00, 0x2680, 0x2000 },
+ { 0x1a00, 0x267d, 0x0000 },
+ { 0x1a00, 0x2681, 0x0000 },
+ { 0x9a00, 0x2684, 0x2000 },
+ { 0x1a00, 0x2683, 0x0000 },
+ { 0x1a00, 0x2685, 0x0000 },
+ { 0x9a00, 0x268a, 0x3000 },
+ { 0x9a00, 0x2688, 0x2000 },
+ { 0x1a00, 0x2687, 0x0000 },
+ { 0x1a00, 0x2689, 0x0000 },
+ { 0x9a00, 0x268c, 0x2000 },
+ { 0x1a00, 0x268b, 0x0000 },
+ { 0x1a00, 0x268d, 0x0000 },
+ { 0x9a00, 0x273f, 0x7000 },
+ { 0x9a00, 0x271e, 0x6000 },
+ { 0x9a00, 0x270e, 0x5000 },
+ { 0x9a00, 0x2703, 0x4000 },
+ { 0x9a00, 0x26a0, 0x3000 },
+ { 0x9a00, 0x2690, 0x2000 },
+ { 0x1a00, 0x268f, 0x0000 },
+ { 0x1a00, 0x2691, 0x0000 },
+ { 0x9a00, 0x2701, 0x2000 },
+ { 0x1a00, 0x26a1, 0x0000 },
+ { 0x1a00, 0x2702, 0x0000 },
+ { 0x9a00, 0x2708, 0x3000 },
+ { 0x9a00, 0x2706, 0x2000 },
+ { 0x1a00, 0x2704, 0x0000 },
+ { 0x1a00, 0x2707, 0x0000 },
+ { 0x9a00, 0x270c, 0x2000 },
+ { 0x1a00, 0x2709, 0x0000 },
+ { 0x1a00, 0x270d, 0x0000 },
+ { 0x9a00, 0x2716, 0x4000 },
+ { 0x9a00, 0x2712, 0x3000 },
+ { 0x9a00, 0x2710, 0x2000 },
+ { 0x1a00, 0x270f, 0x0000 },
+ { 0x1a00, 0x2711, 0x0000 },
+ { 0x9a00, 0x2714, 0x2000 },
+ { 0x1a00, 0x2713, 0x0000 },
+ { 0x1a00, 0x2715, 0x0000 },
+ { 0x9a00, 0x271a, 0x3000 },
+ { 0x9a00, 0x2718, 0x2000 },
+ { 0x1a00, 0x2717, 0x0000 },
+ { 0x1a00, 0x2719, 0x0000 },
+ { 0x9a00, 0x271c, 0x2000 },
+ { 0x1a00, 0x271b, 0x0000 },
+ { 0x1a00, 0x271d, 0x0000 },
+ { 0x9a00, 0x272f, 0x5000 },
+ { 0x9a00, 0x2726, 0x4000 },
+ { 0x9a00, 0x2722, 0x3000 },
+ { 0x9a00, 0x2720, 0x2000 },
+ { 0x1a00, 0x271f, 0x0000 },
+ { 0x1a00, 0x2721, 0x0000 },
+ { 0x9a00, 0x2724, 0x2000 },
+ { 0x1a00, 0x2723, 0x0000 },
+ { 0x1a00, 0x2725, 0x0000 },
+ { 0x9a00, 0x272b, 0x3000 },
+ { 0x9a00, 0x2729, 0x2000 },
+ { 0x1a00, 0x2727, 0x0000 },
+ { 0x1a00, 0x272a, 0x0000 },
+ { 0x9a00, 0x272d, 0x2000 },
+ { 0x1a00, 0x272c, 0x0000 },
+ { 0x1a00, 0x272e, 0x0000 },
+ { 0x9a00, 0x2737, 0x4000 },
+ { 0x9a00, 0x2733, 0x3000 },
+ { 0x9a00, 0x2731, 0x2000 },
+ { 0x1a00, 0x2730, 0x0000 },
+ { 0x1a00, 0x2732, 0x0000 },
+ { 0x9a00, 0x2735, 0x2000 },
+ { 0x1a00, 0x2734, 0x0000 },
+ { 0x1a00, 0x2736, 0x0000 },
+ { 0x9a00, 0x273b, 0x3000 },
+ { 0x9a00, 0x2739, 0x2000 },
+ { 0x1a00, 0x2738, 0x0000 },
+ { 0x1a00, 0x273a, 0x0000 },
+ { 0x9a00, 0x273d, 0x2000 },
+ { 0x1a00, 0x273c, 0x0000 },
+ { 0x1a00, 0x273e, 0x0000 },
+ { 0x9a00, 0x2767, 0x6000 },
+ { 0x9a00, 0x2751, 0x5000 },
+ { 0x9a00, 0x2747, 0x4000 },
+ { 0x9a00, 0x2743, 0x3000 },
+ { 0x9a00, 0x2741, 0x2000 },
+ { 0x1a00, 0x2740, 0x0000 },
+ { 0x1a00, 0x2742, 0x0000 },
+ { 0x9a00, 0x2745, 0x2000 },
+ { 0x1a00, 0x2744, 0x0000 },
+ { 0x1a00, 0x2746, 0x0000 },
+ { 0x9a00, 0x274b, 0x3000 },
+ { 0x9a00, 0x2749, 0x2000 },
+ { 0x1a00, 0x2748, 0x0000 },
+ { 0x1a00, 0x274a, 0x0000 },
+ { 0x9a00, 0x274f, 0x2000 },
+ { 0x1a00, 0x274d, 0x0000 },
+ { 0x1a00, 0x2750, 0x0000 },
+ { 0x9a00, 0x275d, 0x4000 },
+ { 0x9a00, 0x2759, 0x3000 },
+ { 0x9a00, 0x2756, 0x2000 },
+ { 0x1a00, 0x2752, 0x0000 },
+ { 0x1a00, 0x2758, 0x0000 },
+ { 0x9a00, 0x275b, 0x2000 },
+ { 0x1a00, 0x275a, 0x0000 },
+ { 0x1a00, 0x275c, 0x0000 },
+ { 0x9a00, 0x2763, 0x3000 },
+ { 0x9a00, 0x2761, 0x2000 },
+ { 0x1a00, 0x275e, 0x0000 },
+ { 0x1a00, 0x2762, 0x0000 },
+ { 0x9a00, 0x2765, 0x2000 },
+ { 0x1a00, 0x2764, 0x0000 },
+ { 0x1a00, 0x2766, 0x0000 },
+ { 0x8f00, 0x2777, 0x5000 },
+ { 0x9200, 0x276f, 0x4000 },
+ { 0x9200, 0x276b, 0x3000 },
+ { 0x9200, 0x2769, 0x2000 },
+ { 0x1600, 0x2768, 0x0000 },
+ { 0x1600, 0x276a, 0x0000 },
+ { 0x9200, 0x276d, 0x2000 },
+ { 0x1600, 0x276c, 0x0000 },
+ { 0x1600, 0x276e, 0x0000 },
+ { 0x9200, 0x2773, 0x3000 },
+ { 0x9200, 0x2771, 0x2000 },
+ { 0x1600, 0x2770, 0x0000 },
+ { 0x1600, 0x2772, 0x0000 },
+ { 0x9200, 0x2775, 0x2000 },
+ { 0x1600, 0x2774, 0x0000 },
+ { 0x0f00, 0x2776, 0x0000 },
+ { 0x8f00, 0x277f, 0x4000 },
+ { 0x8f00, 0x277b, 0x3000 },
+ { 0x8f00, 0x2779, 0x2000 },
+ { 0x0f00, 0x2778, 0x0000 },
+ { 0x0f00, 0x277a, 0x0000 },
+ { 0x8f00, 0x277d, 0x2000 },
+ { 0x0f00, 0x277c, 0x0000 },
+ { 0x0f00, 0x277e, 0x0000 },
+ { 0x8f00, 0x2783, 0x3000 },
+ { 0x8f00, 0x2781, 0x2000 },
+ { 0x0f00, 0x2780, 0x0000 },
+ { 0x0f00, 0x2782, 0x0000 },
+ { 0x8f00, 0x2785, 0x2000 },
+ { 0x0f00, 0x2784, 0x0000 },
+ { 0x0f00, 0x2786, 0x0000 },
+ { 0x9900, 0x29a0, 0xa000 },
+ { 0x9a00, 0x28a0, 0x9000 },
+ { 0x9a00, 0x2820, 0x8000 },
+ { 0x9900, 0x27dc, 0x7000 },
+ { 0x9a00, 0x27aa, 0x6000 },
+ { 0x9a00, 0x279a, 0x5000 },
+ { 0x8f00, 0x278f, 0x4000 },
+ { 0x8f00, 0x278b, 0x3000 },
+ { 0x8f00, 0x2789, 0x2000 },
+ { 0x0f00, 0x2788, 0x0000 },
+ { 0x0f00, 0x278a, 0x0000 },
+ { 0x8f00, 0x278d, 0x2000 },
+ { 0x0f00, 0x278c, 0x0000 },
+ { 0x0f00, 0x278e, 0x0000 },
+ { 0x8f00, 0x2793, 0x3000 },
+ { 0x8f00, 0x2791, 0x2000 },
+ { 0x0f00, 0x2790, 0x0000 },
+ { 0x0f00, 0x2792, 0x0000 },
+ { 0x9a00, 0x2798, 0x2000 },
+ { 0x1a00, 0x2794, 0x0000 },
+ { 0x1a00, 0x2799, 0x0000 },
+ { 0x9a00, 0x27a2, 0x4000 },
+ { 0x9a00, 0x279e, 0x3000 },
+ { 0x9a00, 0x279c, 0x2000 },
+ { 0x1a00, 0x279b, 0x0000 },
+ { 0x1a00, 0x279d, 0x0000 },
+ { 0x9a00, 0x27a0, 0x2000 },
+ { 0x1a00, 0x279f, 0x0000 },
+ { 0x1a00, 0x27a1, 0x0000 },
+ { 0x9a00, 0x27a6, 0x3000 },
+ { 0x9a00, 0x27a4, 0x2000 },
+ { 0x1a00, 0x27a3, 0x0000 },
+ { 0x1a00, 0x27a5, 0x0000 },
+ { 0x9a00, 0x27a8, 0x2000 },
+ { 0x1a00, 0x27a7, 0x0000 },
+ { 0x1a00, 0x27a9, 0x0000 },
+ { 0x9a00, 0x27bb, 0x5000 },
+ { 0x9a00, 0x27b3, 0x4000 },
+ { 0x9a00, 0x27ae, 0x3000 },
+ { 0x9a00, 0x27ac, 0x2000 },
+ { 0x1a00, 0x27ab, 0x0000 },
+ { 0x1a00, 0x27ad, 0x0000 },
+ { 0x9a00, 0x27b1, 0x2000 },
+ { 0x1a00, 0x27af, 0x0000 },
+ { 0x1a00, 0x27b2, 0x0000 },
+ { 0x9a00, 0x27b7, 0x3000 },
+ { 0x9a00, 0x27b5, 0x2000 },
+ { 0x1a00, 0x27b4, 0x0000 },
+ { 0x1a00, 0x27b6, 0x0000 },
+ { 0x9a00, 0x27b9, 0x2000 },
+ { 0x1a00, 0x27b8, 0x0000 },
+ { 0x1a00, 0x27ba, 0x0000 },
+ { 0x9900, 0x27d4, 0x4000 },
+ { 0x9900, 0x27d0, 0x3000 },
+ { 0x9a00, 0x27bd, 0x2000 },
+ { 0x1a00, 0x27bc, 0x0000 },
+ { 0x1a00, 0x27be, 0x0000 },
+ { 0x9900, 0x27d2, 0x2000 },
+ { 0x1900, 0x27d1, 0x0000 },
+ { 0x1900, 0x27d3, 0x0000 },
+ { 0x9900, 0x27d8, 0x3000 },
+ { 0x9900, 0x27d6, 0x2000 },
+ { 0x1900, 0x27d5, 0x0000 },
+ { 0x1900, 0x27d7, 0x0000 },
+ { 0x9900, 0x27da, 0x2000 },
+ { 0x1900, 0x27d9, 0x0000 },
+ { 0x1900, 0x27db, 0x0000 },
+ { 0x9a00, 0x2800, 0x6000 },
+ { 0x9900, 0x27f0, 0x5000 },
+ { 0x9900, 0x27e4, 0x4000 },
+ { 0x9900, 0x27e0, 0x3000 },
+ { 0x9900, 0x27de, 0x2000 },
+ { 0x1900, 0x27dd, 0x0000 },
+ { 0x1900, 0x27df, 0x0000 },
+ { 0x9900, 0x27e2, 0x2000 },
+ { 0x1900, 0x27e1, 0x0000 },
+ { 0x1900, 0x27e3, 0x0000 },
+ { 0x9600, 0x27e8, 0x3000 },
+ { 0x9600, 0x27e6, 0x2000 },
+ { 0x1900, 0x27e5, 0x0000 },
+ { 0x1200, 0x27e7, 0x0000 },
+ { 0x9600, 0x27ea, 0x2000 },
+ { 0x1200, 0x27e9, 0x0000 },
+ { 0x1200, 0x27eb, 0x0000 },
+ { 0x9900, 0x27f8, 0x4000 },
+ { 0x9900, 0x27f4, 0x3000 },
+ { 0x9900, 0x27f2, 0x2000 },
+ { 0x1900, 0x27f1, 0x0000 },
+ { 0x1900, 0x27f3, 0x0000 },
+ { 0x9900, 0x27f6, 0x2000 },
+ { 0x1900, 0x27f5, 0x0000 },
+ { 0x1900, 0x27f7, 0x0000 },
+ { 0x9900, 0x27fc, 0x3000 },
+ { 0x9900, 0x27fa, 0x2000 },
+ { 0x1900, 0x27f9, 0x0000 },
+ { 0x1900, 0x27fb, 0x0000 },
+ { 0x9900, 0x27fe, 0x2000 },
+ { 0x1900, 0x27fd, 0x0000 },
+ { 0x1900, 0x27ff, 0x0000 },
+ { 0x9a00, 0x2810, 0x5000 },
+ { 0x9a00, 0x2808, 0x4000 },
+ { 0x9a00, 0x2804, 0x3000 },
+ { 0x9a00, 0x2802, 0x2000 },
+ { 0x1a00, 0x2801, 0x0000 },
+ { 0x1a00, 0x2803, 0x0000 },
+ { 0x9a00, 0x2806, 0x2000 },
+ { 0x1a00, 0x2805, 0x0000 },
+ { 0x1a00, 0x2807, 0x0000 },
+ { 0x9a00, 0x280c, 0x3000 },
+ { 0x9a00, 0x280a, 0x2000 },
+ { 0x1a00, 0x2809, 0x0000 },
+ { 0x1a00, 0x280b, 0x0000 },
+ { 0x9a00, 0x280e, 0x2000 },
+ { 0x1a00, 0x280d, 0x0000 },
+ { 0x1a00, 0x280f, 0x0000 },
+ { 0x9a00, 0x2818, 0x4000 },
+ { 0x9a00, 0x2814, 0x3000 },
+ { 0x9a00, 0x2812, 0x2000 },
+ { 0x1a00, 0x2811, 0x0000 },
+ { 0x1a00, 0x2813, 0x0000 },
+ { 0x9a00, 0x2816, 0x2000 },
+ { 0x1a00, 0x2815, 0x0000 },
+ { 0x1a00, 0x2817, 0x0000 },
+ { 0x9a00, 0x281c, 0x3000 },
+ { 0x9a00, 0x281a, 0x2000 },
+ { 0x1a00, 0x2819, 0x0000 },
+ { 0x1a00, 0x281b, 0x0000 },
+ { 0x9a00, 0x281e, 0x2000 },
+ { 0x1a00, 0x281d, 0x0000 },
+ { 0x1a00, 0x281f, 0x0000 },
+ { 0x9a00, 0x2860, 0x7000 },
+ { 0x9a00, 0x2840, 0x6000 },
+ { 0x9a00, 0x2830, 0x5000 },
+ { 0x9a00, 0x2828, 0x4000 },
+ { 0x9a00, 0x2824, 0x3000 },
+ { 0x9a00, 0x2822, 0x2000 },
+ { 0x1a00, 0x2821, 0x0000 },
+ { 0x1a00, 0x2823, 0x0000 },
+ { 0x9a00, 0x2826, 0x2000 },
+ { 0x1a00, 0x2825, 0x0000 },
+ { 0x1a00, 0x2827, 0x0000 },
+ { 0x9a00, 0x282c, 0x3000 },
+ { 0x9a00, 0x282a, 0x2000 },
+ { 0x1a00, 0x2829, 0x0000 },
+ { 0x1a00, 0x282b, 0x0000 },
+ { 0x9a00, 0x282e, 0x2000 },
+ { 0x1a00, 0x282d, 0x0000 },
+ { 0x1a00, 0x282f, 0x0000 },
+ { 0x9a00, 0x2838, 0x4000 },
+ { 0x9a00, 0x2834, 0x3000 },
+ { 0x9a00, 0x2832, 0x2000 },
+ { 0x1a00, 0x2831, 0x0000 },
+ { 0x1a00, 0x2833, 0x0000 },
+ { 0x9a00, 0x2836, 0x2000 },
+ { 0x1a00, 0x2835, 0x0000 },
+ { 0x1a00, 0x2837, 0x0000 },
+ { 0x9a00, 0x283c, 0x3000 },
+ { 0x9a00, 0x283a, 0x2000 },
+ { 0x1a00, 0x2839, 0x0000 },
+ { 0x1a00, 0x283b, 0x0000 },
+ { 0x9a00, 0x283e, 0x2000 },
+ { 0x1a00, 0x283d, 0x0000 },
+ { 0x1a00, 0x283f, 0x0000 },
+ { 0x9a00, 0x2850, 0x5000 },
+ { 0x9a00, 0x2848, 0x4000 },
+ { 0x9a00, 0x2844, 0x3000 },
+ { 0x9a00, 0x2842, 0x2000 },
+ { 0x1a00, 0x2841, 0x0000 },
+ { 0x1a00, 0x2843, 0x0000 },
+ { 0x9a00, 0x2846, 0x2000 },
+ { 0x1a00, 0x2845, 0x0000 },
+ { 0x1a00, 0x2847, 0x0000 },
+ { 0x9a00, 0x284c, 0x3000 },
+ { 0x9a00, 0x284a, 0x2000 },
+ { 0x1a00, 0x2849, 0x0000 },
+ { 0x1a00, 0x284b, 0x0000 },
+ { 0x9a00, 0x284e, 0x2000 },
+ { 0x1a00, 0x284d, 0x0000 },
+ { 0x1a00, 0x284f, 0x0000 },
+ { 0x9a00, 0x2858, 0x4000 },
+ { 0x9a00, 0x2854, 0x3000 },
+ { 0x9a00, 0x2852, 0x2000 },
+ { 0x1a00, 0x2851, 0x0000 },
+ { 0x1a00, 0x2853, 0x0000 },
+ { 0x9a00, 0x2856, 0x2000 },
+ { 0x1a00, 0x2855, 0x0000 },
+ { 0x1a00, 0x2857, 0x0000 },
+ { 0x9a00, 0x285c, 0x3000 },
+ { 0x9a00, 0x285a, 0x2000 },
+ { 0x1a00, 0x2859, 0x0000 },
+ { 0x1a00, 0x285b, 0x0000 },
+ { 0x9a00, 0x285e, 0x2000 },
+ { 0x1a00, 0x285d, 0x0000 },
+ { 0x1a00, 0x285f, 0x0000 },
+ { 0x9a00, 0x2880, 0x6000 },
+ { 0x9a00, 0x2870, 0x5000 },
+ { 0x9a00, 0x2868, 0x4000 },
+ { 0x9a00, 0x2864, 0x3000 },
+ { 0x9a00, 0x2862, 0x2000 },
+ { 0x1a00, 0x2861, 0x0000 },
+ { 0x1a00, 0x2863, 0x0000 },
+ { 0x9a00, 0x2866, 0x2000 },
+ { 0x1a00, 0x2865, 0x0000 },
+ { 0x1a00, 0x2867, 0x0000 },
+ { 0x9a00, 0x286c, 0x3000 },
+ { 0x9a00, 0x286a, 0x2000 },
+ { 0x1a00, 0x2869, 0x0000 },
+ { 0x1a00, 0x286b, 0x0000 },
+ { 0x9a00, 0x286e, 0x2000 },
+ { 0x1a00, 0x286d, 0x0000 },
+ { 0x1a00, 0x286f, 0x0000 },
+ { 0x9a00, 0x2878, 0x4000 },
+ { 0x9a00, 0x2874, 0x3000 },
+ { 0x9a00, 0x2872, 0x2000 },
+ { 0x1a00, 0x2871, 0x0000 },
+ { 0x1a00, 0x2873, 0x0000 },
+ { 0x9a00, 0x2876, 0x2000 },
+ { 0x1a00, 0x2875, 0x0000 },
+ { 0x1a00, 0x2877, 0x0000 },
+ { 0x9a00, 0x287c, 0x3000 },
+ { 0x9a00, 0x287a, 0x2000 },
+ { 0x1a00, 0x2879, 0x0000 },
+ { 0x1a00, 0x287b, 0x0000 },
+ { 0x9a00, 0x287e, 0x2000 },
+ { 0x1a00, 0x287d, 0x0000 },
+ { 0x1a00, 0x287f, 0x0000 },
+ { 0x9a00, 0x2890, 0x5000 },
+ { 0x9a00, 0x2888, 0x4000 },
+ { 0x9a00, 0x2884, 0x3000 },
+ { 0x9a00, 0x2882, 0x2000 },
+ { 0x1a00, 0x2881, 0x0000 },
+ { 0x1a00, 0x2883, 0x0000 },
+ { 0x9a00, 0x2886, 0x2000 },
+ { 0x1a00, 0x2885, 0x0000 },
+ { 0x1a00, 0x2887, 0x0000 },
+ { 0x9a00, 0x288c, 0x3000 },
+ { 0x9a00, 0x288a, 0x2000 },
+ { 0x1a00, 0x2889, 0x0000 },
+ { 0x1a00, 0x288b, 0x0000 },
+ { 0x9a00, 0x288e, 0x2000 },
+ { 0x1a00, 0x288d, 0x0000 },
+ { 0x1a00, 0x288f, 0x0000 },
+ { 0x9a00, 0x2898, 0x4000 },
+ { 0x9a00, 0x2894, 0x3000 },
+ { 0x9a00, 0x2892, 0x2000 },
+ { 0x1a00, 0x2891, 0x0000 },
+ { 0x1a00, 0x2893, 0x0000 },
+ { 0x9a00, 0x2896, 0x2000 },
+ { 0x1a00, 0x2895, 0x0000 },
+ { 0x1a00, 0x2897, 0x0000 },
+ { 0x9a00, 0x289c, 0x3000 },
+ { 0x9a00, 0x289a, 0x2000 },
+ { 0x1a00, 0x2899, 0x0000 },
+ { 0x1a00, 0x289b, 0x0000 },
+ { 0x9a00, 0x289e, 0x2000 },
+ { 0x1a00, 0x289d, 0x0000 },
+ { 0x1a00, 0x289f, 0x0000 },
+ { 0x9900, 0x2920, 0x8000 },
+ { 0x9a00, 0x28e0, 0x7000 },
+ { 0x9a00, 0x28c0, 0x6000 },
+ { 0x9a00, 0x28b0, 0x5000 },
+ { 0x9a00, 0x28a8, 0x4000 },
+ { 0x9a00, 0x28a4, 0x3000 },
+ { 0x9a00, 0x28a2, 0x2000 },
+ { 0x1a00, 0x28a1, 0x0000 },
+ { 0x1a00, 0x28a3, 0x0000 },
+ { 0x9a00, 0x28a6, 0x2000 },
+ { 0x1a00, 0x28a5, 0x0000 },
+ { 0x1a00, 0x28a7, 0x0000 },
+ { 0x9a00, 0x28ac, 0x3000 },
+ { 0x9a00, 0x28aa, 0x2000 },
+ { 0x1a00, 0x28a9, 0x0000 },
+ { 0x1a00, 0x28ab, 0x0000 },
+ { 0x9a00, 0x28ae, 0x2000 },
+ { 0x1a00, 0x28ad, 0x0000 },
+ { 0x1a00, 0x28af, 0x0000 },
+ { 0x9a00, 0x28b8, 0x4000 },
+ { 0x9a00, 0x28b4, 0x3000 },
+ { 0x9a00, 0x28b2, 0x2000 },
+ { 0x1a00, 0x28b1, 0x0000 },
+ { 0x1a00, 0x28b3, 0x0000 },
+ { 0x9a00, 0x28b6, 0x2000 },
+ { 0x1a00, 0x28b5, 0x0000 },
+ { 0x1a00, 0x28b7, 0x0000 },
+ { 0x9a00, 0x28bc, 0x3000 },
+ { 0x9a00, 0x28ba, 0x2000 },
+ { 0x1a00, 0x28b9, 0x0000 },
+ { 0x1a00, 0x28bb, 0x0000 },
+ { 0x9a00, 0x28be, 0x2000 },
+ { 0x1a00, 0x28bd, 0x0000 },
+ { 0x1a00, 0x28bf, 0x0000 },
+ { 0x9a00, 0x28d0, 0x5000 },
+ { 0x9a00, 0x28c8, 0x4000 },
+ { 0x9a00, 0x28c4, 0x3000 },
+ { 0x9a00, 0x28c2, 0x2000 },
+ { 0x1a00, 0x28c1, 0x0000 },
+ { 0x1a00, 0x28c3, 0x0000 },
+ { 0x9a00, 0x28c6, 0x2000 },
+ { 0x1a00, 0x28c5, 0x0000 },
+ { 0x1a00, 0x28c7, 0x0000 },
+ { 0x9a00, 0x28cc, 0x3000 },
+ { 0x9a00, 0x28ca, 0x2000 },
+ { 0x1a00, 0x28c9, 0x0000 },
+ { 0x1a00, 0x28cb, 0x0000 },
+ { 0x9a00, 0x28ce, 0x2000 },
+ { 0x1a00, 0x28cd, 0x0000 },
+ { 0x1a00, 0x28cf, 0x0000 },
+ { 0x9a00, 0x28d8, 0x4000 },
+ { 0x9a00, 0x28d4, 0x3000 },
+ { 0x9a00, 0x28d2, 0x2000 },
+ { 0x1a00, 0x28d1, 0x0000 },
+ { 0x1a00, 0x28d3, 0x0000 },
+ { 0x9a00, 0x28d6, 0x2000 },
+ { 0x1a00, 0x28d5, 0x0000 },
+ { 0x1a00, 0x28d7, 0x0000 },
+ { 0x9a00, 0x28dc, 0x3000 },
+ { 0x9a00, 0x28da, 0x2000 },
+ { 0x1a00, 0x28d9, 0x0000 },
+ { 0x1a00, 0x28db, 0x0000 },
+ { 0x9a00, 0x28de, 0x2000 },
+ { 0x1a00, 0x28dd, 0x0000 },
+ { 0x1a00, 0x28df, 0x0000 },
+ { 0x9900, 0x2900, 0x6000 },
+ { 0x9a00, 0x28f0, 0x5000 },
+ { 0x9a00, 0x28e8, 0x4000 },
+ { 0x9a00, 0x28e4, 0x3000 },
+ { 0x9a00, 0x28e2, 0x2000 },
+ { 0x1a00, 0x28e1, 0x0000 },
+ { 0x1a00, 0x28e3, 0x0000 },
+ { 0x9a00, 0x28e6, 0x2000 },
+ { 0x1a00, 0x28e5, 0x0000 },
+ { 0x1a00, 0x28e7, 0x0000 },
+ { 0x9a00, 0x28ec, 0x3000 },
+ { 0x9a00, 0x28ea, 0x2000 },
+ { 0x1a00, 0x28e9, 0x0000 },
+ { 0x1a00, 0x28eb, 0x0000 },
+ { 0x9a00, 0x28ee, 0x2000 },
+ { 0x1a00, 0x28ed, 0x0000 },
+ { 0x1a00, 0x28ef, 0x0000 },
+ { 0x9a00, 0x28f8, 0x4000 },
+ { 0x9a00, 0x28f4, 0x3000 },
+ { 0x9a00, 0x28f2, 0x2000 },
+ { 0x1a00, 0x28f1, 0x0000 },
+ { 0x1a00, 0x28f3, 0x0000 },
+ { 0x9a00, 0x28f6, 0x2000 },
+ { 0x1a00, 0x28f5, 0x0000 },
+ { 0x1a00, 0x28f7, 0x0000 },
+ { 0x9a00, 0x28fc, 0x3000 },
+ { 0x9a00, 0x28fa, 0x2000 },
+ { 0x1a00, 0x28f9, 0x0000 },
+ { 0x1a00, 0x28fb, 0x0000 },
+ { 0x9a00, 0x28fe, 0x2000 },
+ { 0x1a00, 0x28fd, 0x0000 },
+ { 0x1a00, 0x28ff, 0x0000 },
+ { 0x9900, 0x2910, 0x5000 },
+ { 0x9900, 0x2908, 0x4000 },
+ { 0x9900, 0x2904, 0x3000 },
+ { 0x9900, 0x2902, 0x2000 },
+ { 0x1900, 0x2901, 0x0000 },
+ { 0x1900, 0x2903, 0x0000 },
+ { 0x9900, 0x2906, 0x2000 },
+ { 0x1900, 0x2905, 0x0000 },
+ { 0x1900, 0x2907, 0x0000 },
+ { 0x9900, 0x290c, 0x3000 },
+ { 0x9900, 0x290a, 0x2000 },
+ { 0x1900, 0x2909, 0x0000 },
+ { 0x1900, 0x290b, 0x0000 },
+ { 0x9900, 0x290e, 0x2000 },
+ { 0x1900, 0x290d, 0x0000 },
+ { 0x1900, 0x290f, 0x0000 },
+ { 0x9900, 0x2918, 0x4000 },
+ { 0x9900, 0x2914, 0x3000 },
+ { 0x9900, 0x2912, 0x2000 },
+ { 0x1900, 0x2911, 0x0000 },
+ { 0x1900, 0x2913, 0x0000 },
+ { 0x9900, 0x2916, 0x2000 },
+ { 0x1900, 0x2915, 0x0000 },
+ { 0x1900, 0x2917, 0x0000 },
+ { 0x9900, 0x291c, 0x3000 },
+ { 0x9900, 0x291a, 0x2000 },
+ { 0x1900, 0x2919, 0x0000 },
+ { 0x1900, 0x291b, 0x0000 },
+ { 0x9900, 0x291e, 0x2000 },
+ { 0x1900, 0x291d, 0x0000 },
+ { 0x1900, 0x291f, 0x0000 },
+ { 0x9900, 0x2960, 0x7000 },
+ { 0x9900, 0x2940, 0x6000 },
+ { 0x9900, 0x2930, 0x5000 },
+ { 0x9900, 0x2928, 0x4000 },
+ { 0x9900, 0x2924, 0x3000 },
+ { 0x9900, 0x2922, 0x2000 },
+ { 0x1900, 0x2921, 0x0000 },
+ { 0x1900, 0x2923, 0x0000 },
+ { 0x9900, 0x2926, 0x2000 },
+ { 0x1900, 0x2925, 0x0000 },
+ { 0x1900, 0x2927, 0x0000 },
+ { 0x9900, 0x292c, 0x3000 },
+ { 0x9900, 0x292a, 0x2000 },
+ { 0x1900, 0x2929, 0x0000 },
+ { 0x1900, 0x292b, 0x0000 },
+ { 0x9900, 0x292e, 0x2000 },
+ { 0x1900, 0x292d, 0x0000 },
+ { 0x1900, 0x292f, 0x0000 },
+ { 0x9900, 0x2938, 0x4000 },
+ { 0x9900, 0x2934, 0x3000 },
+ { 0x9900, 0x2932, 0x2000 },
+ { 0x1900, 0x2931, 0x0000 },
+ { 0x1900, 0x2933, 0x0000 },
+ { 0x9900, 0x2936, 0x2000 },
+ { 0x1900, 0x2935, 0x0000 },
+ { 0x1900, 0x2937, 0x0000 },
+ { 0x9900, 0x293c, 0x3000 },
+ { 0x9900, 0x293a, 0x2000 },
+ { 0x1900, 0x2939, 0x0000 },
+ { 0x1900, 0x293b, 0x0000 },
+ { 0x9900, 0x293e, 0x2000 },
+ { 0x1900, 0x293d, 0x0000 },
+ { 0x1900, 0x293f, 0x0000 },
+ { 0x9900, 0x2950, 0x5000 },
+ { 0x9900, 0x2948, 0x4000 },
+ { 0x9900, 0x2944, 0x3000 },
+ { 0x9900, 0x2942, 0x2000 },
+ { 0x1900, 0x2941, 0x0000 },
+ { 0x1900, 0x2943, 0x0000 },
+ { 0x9900, 0x2946, 0x2000 },
+ { 0x1900, 0x2945, 0x0000 },
+ { 0x1900, 0x2947, 0x0000 },
+ { 0x9900, 0x294c, 0x3000 },
+ { 0x9900, 0x294a, 0x2000 },
+ { 0x1900, 0x2949, 0x0000 },
+ { 0x1900, 0x294b, 0x0000 },
+ { 0x9900, 0x294e, 0x2000 },
+ { 0x1900, 0x294d, 0x0000 },
+ { 0x1900, 0x294f, 0x0000 },
+ { 0x9900, 0x2958, 0x4000 },
+ { 0x9900, 0x2954, 0x3000 },
+ { 0x9900, 0x2952, 0x2000 },
+ { 0x1900, 0x2951, 0x0000 },
+ { 0x1900, 0x2953, 0x0000 },
+ { 0x9900, 0x2956, 0x2000 },
+ { 0x1900, 0x2955, 0x0000 },
+ { 0x1900, 0x2957, 0x0000 },
+ { 0x9900, 0x295c, 0x3000 },
+ { 0x9900, 0x295a, 0x2000 },
+ { 0x1900, 0x2959, 0x0000 },
+ { 0x1900, 0x295b, 0x0000 },
+ { 0x9900, 0x295e, 0x2000 },
+ { 0x1900, 0x295d, 0x0000 },
+ { 0x1900, 0x295f, 0x0000 },
+ { 0x9900, 0x2980, 0x6000 },
+ { 0x9900, 0x2970, 0x5000 },
+ { 0x9900, 0x2968, 0x4000 },
+ { 0x9900, 0x2964, 0x3000 },
+ { 0x9900, 0x2962, 0x2000 },
+ { 0x1900, 0x2961, 0x0000 },
+ { 0x1900, 0x2963, 0x0000 },
+ { 0x9900, 0x2966, 0x2000 },
+ { 0x1900, 0x2965, 0x0000 },
+ { 0x1900, 0x2967, 0x0000 },
+ { 0x9900, 0x296c, 0x3000 },
+ { 0x9900, 0x296a, 0x2000 },
+ { 0x1900, 0x2969, 0x0000 },
+ { 0x1900, 0x296b, 0x0000 },
+ { 0x9900, 0x296e, 0x2000 },
+ { 0x1900, 0x296d, 0x0000 },
+ { 0x1900, 0x296f, 0x0000 },
+ { 0x9900, 0x2978, 0x4000 },
+ { 0x9900, 0x2974, 0x3000 },
+ { 0x9900, 0x2972, 0x2000 },
+ { 0x1900, 0x2971, 0x0000 },
+ { 0x1900, 0x2973, 0x0000 },
+ { 0x9900, 0x2976, 0x2000 },
+ { 0x1900, 0x2975, 0x0000 },
+ { 0x1900, 0x2977, 0x0000 },
+ { 0x9900, 0x297c, 0x3000 },
+ { 0x9900, 0x297a, 0x2000 },
+ { 0x1900, 0x2979, 0x0000 },
+ { 0x1900, 0x297b, 0x0000 },
+ { 0x9900, 0x297e, 0x2000 },
+ { 0x1900, 0x297d, 0x0000 },
+ { 0x1900, 0x297f, 0x0000 },
+ { 0x9200, 0x2990, 0x5000 },
+ { 0x9200, 0x2988, 0x4000 },
+ { 0x9200, 0x2984, 0x3000 },
+ { 0x9900, 0x2982, 0x2000 },
+ { 0x1900, 0x2981, 0x0000 },
+ { 0x1600, 0x2983, 0x0000 },
+ { 0x9200, 0x2986, 0x2000 },
+ { 0x1600, 0x2985, 0x0000 },
+ { 0x1600, 0x2987, 0x0000 },
+ { 0x9200, 0x298c, 0x3000 },
+ { 0x9200, 0x298a, 0x2000 },
+ { 0x1600, 0x2989, 0x0000 },
+ { 0x1600, 0x298b, 0x0000 },
+ { 0x9200, 0x298e, 0x2000 },
+ { 0x1600, 0x298d, 0x0000 },
+ { 0x1600, 0x298f, 0x0000 },
+ { 0x9200, 0x2998, 0x4000 },
+ { 0x9200, 0x2994, 0x3000 },
+ { 0x9200, 0x2992, 0x2000 },
+ { 0x1600, 0x2991, 0x0000 },
+ { 0x1600, 0x2993, 0x0000 },
+ { 0x9200, 0x2996, 0x2000 },
+ { 0x1600, 0x2995, 0x0000 },
+ { 0x1600, 0x2997, 0x0000 },
+ { 0x9900, 0x299c, 0x3000 },
+ { 0x9900, 0x299a, 0x2000 },
+ { 0x1900, 0x2999, 0x0000 },
+ { 0x1900, 0x299b, 0x0000 },
+ { 0x9900, 0x299e, 0x2000 },
+ { 0x1900, 0x299d, 0x0000 },
+ { 0x1900, 0x299f, 0x0000 },
+ { 0x9900, 0x2aa0, 0x9000 },
+ { 0x9900, 0x2a20, 0x8000 },
+ { 0x9900, 0x29e0, 0x7000 },
+ { 0x9900, 0x29c0, 0x6000 },
+ { 0x9900, 0x29b0, 0x5000 },
+ { 0x9900, 0x29a8, 0x4000 },
+ { 0x9900, 0x29a4, 0x3000 },
+ { 0x9900, 0x29a2, 0x2000 },
+ { 0x1900, 0x29a1, 0x0000 },
+ { 0x1900, 0x29a3, 0x0000 },
+ { 0x9900, 0x29a6, 0x2000 },
+ { 0x1900, 0x29a5, 0x0000 },
+ { 0x1900, 0x29a7, 0x0000 },
+ { 0x9900, 0x29ac, 0x3000 },
+ { 0x9900, 0x29aa, 0x2000 },
+ { 0x1900, 0x29a9, 0x0000 },
+ { 0x1900, 0x29ab, 0x0000 },
+ { 0x9900, 0x29ae, 0x2000 },
+ { 0x1900, 0x29ad, 0x0000 },
+ { 0x1900, 0x29af, 0x0000 },
+ { 0x9900, 0x29b8, 0x4000 },
+ { 0x9900, 0x29b4, 0x3000 },
+ { 0x9900, 0x29b2, 0x2000 },
+ { 0x1900, 0x29b1, 0x0000 },
+ { 0x1900, 0x29b3, 0x0000 },
+ { 0x9900, 0x29b6, 0x2000 },
+ { 0x1900, 0x29b5, 0x0000 },
+ { 0x1900, 0x29b7, 0x0000 },
+ { 0x9900, 0x29bc, 0x3000 },
+ { 0x9900, 0x29ba, 0x2000 },
+ { 0x1900, 0x29b9, 0x0000 },
+ { 0x1900, 0x29bb, 0x0000 },
+ { 0x9900, 0x29be, 0x2000 },
+ { 0x1900, 0x29bd, 0x0000 },
+ { 0x1900, 0x29bf, 0x0000 },
+ { 0x9900, 0x29d0, 0x5000 },
+ { 0x9900, 0x29c8, 0x4000 },
+ { 0x9900, 0x29c4, 0x3000 },
+ { 0x9900, 0x29c2, 0x2000 },
+ { 0x1900, 0x29c1, 0x0000 },
+ { 0x1900, 0x29c3, 0x0000 },
+ { 0x9900, 0x29c6, 0x2000 },
+ { 0x1900, 0x29c5, 0x0000 },
+ { 0x1900, 0x29c7, 0x0000 },
+ { 0x9900, 0x29cc, 0x3000 },
+ { 0x9900, 0x29ca, 0x2000 },
+ { 0x1900, 0x29c9, 0x0000 },
+ { 0x1900, 0x29cb, 0x0000 },
+ { 0x9900, 0x29ce, 0x2000 },
+ { 0x1900, 0x29cd, 0x0000 },
+ { 0x1900, 0x29cf, 0x0000 },
+ { 0x9600, 0x29d8, 0x4000 },
+ { 0x9900, 0x29d4, 0x3000 },
+ { 0x9900, 0x29d2, 0x2000 },
+ { 0x1900, 0x29d1, 0x0000 },
+ { 0x1900, 0x29d3, 0x0000 },
+ { 0x9900, 0x29d6, 0x2000 },
+ { 0x1900, 0x29d5, 0x0000 },
+ { 0x1900, 0x29d7, 0x0000 },
+ { 0x9900, 0x29dc, 0x3000 },
+ { 0x9600, 0x29da, 0x2000 },
+ { 0x1200, 0x29d9, 0x0000 },
+ { 0x1200, 0x29db, 0x0000 },
+ { 0x9900, 0x29de, 0x2000 },
+ { 0x1900, 0x29dd, 0x0000 },
+ { 0x1900, 0x29df, 0x0000 },
+ { 0x9900, 0x2a00, 0x6000 },
+ { 0x9900, 0x29f0, 0x5000 },
+ { 0x9900, 0x29e8, 0x4000 },
+ { 0x9900, 0x29e4, 0x3000 },
+ { 0x9900, 0x29e2, 0x2000 },
+ { 0x1900, 0x29e1, 0x0000 },
+ { 0x1900, 0x29e3, 0x0000 },
+ { 0x9900, 0x29e6, 0x2000 },
+ { 0x1900, 0x29e5, 0x0000 },
+ { 0x1900, 0x29e7, 0x0000 },
+ { 0x9900, 0x29ec, 0x3000 },
+ { 0x9900, 0x29ea, 0x2000 },
+ { 0x1900, 0x29e9, 0x0000 },
+ { 0x1900, 0x29eb, 0x0000 },
+ { 0x9900, 0x29ee, 0x2000 },
+ { 0x1900, 0x29ed, 0x0000 },
+ { 0x1900, 0x29ef, 0x0000 },
+ { 0x9900, 0x29f8, 0x4000 },
+ { 0x9900, 0x29f4, 0x3000 },
+ { 0x9900, 0x29f2, 0x2000 },
+ { 0x1900, 0x29f1, 0x0000 },
+ { 0x1900, 0x29f3, 0x0000 },
+ { 0x9900, 0x29f6, 0x2000 },
+ { 0x1900, 0x29f5, 0x0000 },
+ { 0x1900, 0x29f7, 0x0000 },
+ { 0x9600, 0x29fc, 0x3000 },
+ { 0x9900, 0x29fa, 0x2000 },
+ { 0x1900, 0x29f9, 0x0000 },
+ { 0x1900, 0x29fb, 0x0000 },
+ { 0x9900, 0x29fe, 0x2000 },
+ { 0x1200, 0x29fd, 0x0000 },
+ { 0x1900, 0x29ff, 0x0000 },
+ { 0x9900, 0x2a10, 0x5000 },
+ { 0x9900, 0x2a08, 0x4000 },
+ { 0x9900, 0x2a04, 0x3000 },
+ { 0x9900, 0x2a02, 0x2000 },
+ { 0x1900, 0x2a01, 0x0000 },
+ { 0x1900, 0x2a03, 0x0000 },
+ { 0x9900, 0x2a06, 0x2000 },
+ { 0x1900, 0x2a05, 0x0000 },
+ { 0x1900, 0x2a07, 0x0000 },
+ { 0x9900, 0x2a0c, 0x3000 },
+ { 0x9900, 0x2a0a, 0x2000 },
+ { 0x1900, 0x2a09, 0x0000 },
+ { 0x1900, 0x2a0b, 0x0000 },
+ { 0x9900, 0x2a0e, 0x2000 },
+ { 0x1900, 0x2a0d, 0x0000 },
+ { 0x1900, 0x2a0f, 0x0000 },
+ { 0x9900, 0x2a18, 0x4000 },
+ { 0x9900, 0x2a14, 0x3000 },
+ { 0x9900, 0x2a12, 0x2000 },
+ { 0x1900, 0x2a11, 0x0000 },
+ { 0x1900, 0x2a13, 0x0000 },
+ { 0x9900, 0x2a16, 0x2000 },
+ { 0x1900, 0x2a15, 0x0000 },
+ { 0x1900, 0x2a17, 0x0000 },
+ { 0x9900, 0x2a1c, 0x3000 },
+ { 0x9900, 0x2a1a, 0x2000 },
+ { 0x1900, 0x2a19, 0x0000 },
+ { 0x1900, 0x2a1b, 0x0000 },
+ { 0x9900, 0x2a1e, 0x2000 },
+ { 0x1900, 0x2a1d, 0x0000 },
+ { 0x1900, 0x2a1f, 0x0000 },
+ { 0x9900, 0x2a60, 0x7000 },
+ { 0x9900, 0x2a40, 0x6000 },
+ { 0x9900, 0x2a30, 0x5000 },
+ { 0x9900, 0x2a28, 0x4000 },
+ { 0x9900, 0x2a24, 0x3000 },
+ { 0x9900, 0x2a22, 0x2000 },
+ { 0x1900, 0x2a21, 0x0000 },
+ { 0x1900, 0x2a23, 0x0000 },
+ { 0x9900, 0x2a26, 0x2000 },
+ { 0x1900, 0x2a25, 0x0000 },
+ { 0x1900, 0x2a27, 0x0000 },
+ { 0x9900, 0x2a2c, 0x3000 },
+ { 0x9900, 0x2a2a, 0x2000 },
+ { 0x1900, 0x2a29, 0x0000 },
+ { 0x1900, 0x2a2b, 0x0000 },
+ { 0x9900, 0x2a2e, 0x2000 },
+ { 0x1900, 0x2a2d, 0x0000 },
+ { 0x1900, 0x2a2f, 0x0000 },
+ { 0x9900, 0x2a38, 0x4000 },
+ { 0x9900, 0x2a34, 0x3000 },
+ { 0x9900, 0x2a32, 0x2000 },
+ { 0x1900, 0x2a31, 0x0000 },
+ { 0x1900, 0x2a33, 0x0000 },
+ { 0x9900, 0x2a36, 0x2000 },
+ { 0x1900, 0x2a35, 0x0000 },
+ { 0x1900, 0x2a37, 0x0000 },
+ { 0x9900, 0x2a3c, 0x3000 },
+ { 0x9900, 0x2a3a, 0x2000 },
+ { 0x1900, 0x2a39, 0x0000 },
+ { 0x1900, 0x2a3b, 0x0000 },
+ { 0x9900, 0x2a3e, 0x2000 },
+ { 0x1900, 0x2a3d, 0x0000 },
+ { 0x1900, 0x2a3f, 0x0000 },
+ { 0x9900, 0x2a50, 0x5000 },
+ { 0x9900, 0x2a48, 0x4000 },
+ { 0x9900, 0x2a44, 0x3000 },
+ { 0x9900, 0x2a42, 0x2000 },
+ { 0x1900, 0x2a41, 0x0000 },
+ { 0x1900, 0x2a43, 0x0000 },
+ { 0x9900, 0x2a46, 0x2000 },
+ { 0x1900, 0x2a45, 0x0000 },
+ { 0x1900, 0x2a47, 0x0000 },
+ { 0x9900, 0x2a4c, 0x3000 },
+ { 0x9900, 0x2a4a, 0x2000 },
+ { 0x1900, 0x2a49, 0x0000 },
+ { 0x1900, 0x2a4b, 0x0000 },
+ { 0x9900, 0x2a4e, 0x2000 },
+ { 0x1900, 0x2a4d, 0x0000 },
+ { 0x1900, 0x2a4f, 0x0000 },
+ { 0x9900, 0x2a58, 0x4000 },
+ { 0x9900, 0x2a54, 0x3000 },
+ { 0x9900, 0x2a52, 0x2000 },
+ { 0x1900, 0x2a51, 0x0000 },
+ { 0x1900, 0x2a53, 0x0000 },
+ { 0x9900, 0x2a56, 0x2000 },
+ { 0x1900, 0x2a55, 0x0000 },
+ { 0x1900, 0x2a57, 0x0000 },
+ { 0x9900, 0x2a5c, 0x3000 },
+ { 0x9900, 0x2a5a, 0x2000 },
+ { 0x1900, 0x2a59, 0x0000 },
+ { 0x1900, 0x2a5b, 0x0000 },
+ { 0x9900, 0x2a5e, 0x2000 },
+ { 0x1900, 0x2a5d, 0x0000 },
+ { 0x1900, 0x2a5f, 0x0000 },
+ { 0x9900, 0x2a80, 0x6000 },
+ { 0x9900, 0x2a70, 0x5000 },
+ { 0x9900, 0x2a68, 0x4000 },
+ { 0x9900, 0x2a64, 0x3000 },
+ { 0x9900, 0x2a62, 0x2000 },
+ { 0x1900, 0x2a61, 0x0000 },
+ { 0x1900, 0x2a63, 0x0000 },
+ { 0x9900, 0x2a66, 0x2000 },
+ { 0x1900, 0x2a65, 0x0000 },
+ { 0x1900, 0x2a67, 0x0000 },
+ { 0x9900, 0x2a6c, 0x3000 },
+ { 0x9900, 0x2a6a, 0x2000 },
+ { 0x1900, 0x2a69, 0x0000 },
+ { 0x1900, 0x2a6b, 0x0000 },
+ { 0x9900, 0x2a6e, 0x2000 },
+ { 0x1900, 0x2a6d, 0x0000 },
+ { 0x1900, 0x2a6f, 0x0000 },
+ { 0x9900, 0x2a78, 0x4000 },
+ { 0x9900, 0x2a74, 0x3000 },
+ { 0x9900, 0x2a72, 0x2000 },
+ { 0x1900, 0x2a71, 0x0000 },
+ { 0x1900, 0x2a73, 0x0000 },
+ { 0x9900, 0x2a76, 0x2000 },
+ { 0x1900, 0x2a75, 0x0000 },
+ { 0x1900, 0x2a77, 0x0000 },
+ { 0x9900, 0x2a7c, 0x3000 },
+ { 0x9900, 0x2a7a, 0x2000 },
+ { 0x1900, 0x2a79, 0x0000 },
+ { 0x1900, 0x2a7b, 0x0000 },
+ { 0x9900, 0x2a7e, 0x2000 },
+ { 0x1900, 0x2a7d, 0x0000 },
+ { 0x1900, 0x2a7f, 0x0000 },
+ { 0x9900, 0x2a90, 0x5000 },
+ { 0x9900, 0x2a88, 0x4000 },
+ { 0x9900, 0x2a84, 0x3000 },
+ { 0x9900, 0x2a82, 0x2000 },
+ { 0x1900, 0x2a81, 0x0000 },
+ { 0x1900, 0x2a83, 0x0000 },
+ { 0x9900, 0x2a86, 0x2000 },
+ { 0x1900, 0x2a85, 0x0000 },
+ { 0x1900, 0x2a87, 0x0000 },
+ { 0x9900, 0x2a8c, 0x3000 },
+ { 0x9900, 0x2a8a, 0x2000 },
+ { 0x1900, 0x2a89, 0x0000 },
+ { 0x1900, 0x2a8b, 0x0000 },
+ { 0x9900, 0x2a8e, 0x2000 },
+ { 0x1900, 0x2a8d, 0x0000 },
+ { 0x1900, 0x2a8f, 0x0000 },
+ { 0x9900, 0x2a98, 0x4000 },
+ { 0x9900, 0x2a94, 0x3000 },
+ { 0x9900, 0x2a92, 0x2000 },
+ { 0x1900, 0x2a91, 0x0000 },
+ { 0x1900, 0x2a93, 0x0000 },
+ { 0x9900, 0x2a96, 0x2000 },
+ { 0x1900, 0x2a95, 0x0000 },
+ { 0x1900, 0x2a97, 0x0000 },
+ { 0x9900, 0x2a9c, 0x3000 },
+ { 0x9900, 0x2a9a, 0x2000 },
+ { 0x1900, 0x2a99, 0x0000 },
+ { 0x1900, 0x2a9b, 0x0000 },
+ { 0x9900, 0x2a9e, 0x2000 },
+ { 0x1900, 0x2a9d, 0x0000 },
+ { 0x1900, 0x2a9f, 0x0000 },
+ { 0x9a00, 0x2e92, 0x8000 },
+ { 0x9900, 0x2ae0, 0x7000 },
+ { 0x9900, 0x2ac0, 0x6000 },
+ { 0x9900, 0x2ab0, 0x5000 },
+ { 0x9900, 0x2aa8, 0x4000 },
+ { 0x9900, 0x2aa4, 0x3000 },
+ { 0x9900, 0x2aa2, 0x2000 },
+ { 0x1900, 0x2aa1, 0x0000 },
+ { 0x1900, 0x2aa3, 0x0000 },
+ { 0x9900, 0x2aa6, 0x2000 },
+ { 0x1900, 0x2aa5, 0x0000 },
+ { 0x1900, 0x2aa7, 0x0000 },
+ { 0x9900, 0x2aac, 0x3000 },
+ { 0x9900, 0x2aaa, 0x2000 },
+ { 0x1900, 0x2aa9, 0x0000 },
+ { 0x1900, 0x2aab, 0x0000 },
+ { 0x9900, 0x2aae, 0x2000 },
+ { 0x1900, 0x2aad, 0x0000 },
+ { 0x1900, 0x2aaf, 0x0000 },
+ { 0x9900, 0x2ab8, 0x4000 },
+ { 0x9900, 0x2ab4, 0x3000 },
+ { 0x9900, 0x2ab2, 0x2000 },
+ { 0x1900, 0x2ab1, 0x0000 },
+ { 0x1900, 0x2ab3, 0x0000 },
+ { 0x9900, 0x2ab6, 0x2000 },
+ { 0x1900, 0x2ab5, 0x0000 },
+ { 0x1900, 0x2ab7, 0x0000 },
+ { 0x9900, 0x2abc, 0x3000 },
+ { 0x9900, 0x2aba, 0x2000 },
+ { 0x1900, 0x2ab9, 0x0000 },
+ { 0x1900, 0x2abb, 0x0000 },
+ { 0x9900, 0x2abe, 0x2000 },
+ { 0x1900, 0x2abd, 0x0000 },
+ { 0x1900, 0x2abf, 0x0000 },
+ { 0x9900, 0x2ad0, 0x5000 },
+ { 0x9900, 0x2ac8, 0x4000 },
+ { 0x9900, 0x2ac4, 0x3000 },
+ { 0x9900, 0x2ac2, 0x2000 },
+ { 0x1900, 0x2ac1, 0x0000 },
+ { 0x1900, 0x2ac3, 0x0000 },
+ { 0x9900, 0x2ac6, 0x2000 },
+ { 0x1900, 0x2ac5, 0x0000 },
+ { 0x1900, 0x2ac7, 0x0000 },
+ { 0x9900, 0x2acc, 0x3000 },
+ { 0x9900, 0x2aca, 0x2000 },
+ { 0x1900, 0x2ac9, 0x0000 },
+ { 0x1900, 0x2acb, 0x0000 },
+ { 0x9900, 0x2ace, 0x2000 },
+ { 0x1900, 0x2acd, 0x0000 },
+ { 0x1900, 0x2acf, 0x0000 },
+ { 0x9900, 0x2ad8, 0x4000 },
+ { 0x9900, 0x2ad4, 0x3000 },
+ { 0x9900, 0x2ad2, 0x2000 },
+ { 0x1900, 0x2ad1, 0x0000 },
+ { 0x1900, 0x2ad3, 0x0000 },
+ { 0x9900, 0x2ad6, 0x2000 },
+ { 0x1900, 0x2ad5, 0x0000 },
+ { 0x1900, 0x2ad7, 0x0000 },
+ { 0x9900, 0x2adc, 0x3000 },
+ { 0x9900, 0x2ada, 0x2000 },
+ { 0x1900, 0x2ad9, 0x0000 },
+ { 0x1900, 0x2adb, 0x0000 },
+ { 0x9900, 0x2ade, 0x2000 },
+ { 0x1900, 0x2add, 0x0000 },
+ { 0x1900, 0x2adf, 0x0000 },
+ { 0x9a00, 0x2b00, 0x6000 },
+ { 0x9900, 0x2af0, 0x5000 },
+ { 0x9900, 0x2ae8, 0x4000 },
+ { 0x9900, 0x2ae4, 0x3000 },
+ { 0x9900, 0x2ae2, 0x2000 },
+ { 0x1900, 0x2ae1, 0x0000 },
+ { 0x1900, 0x2ae3, 0x0000 },
+ { 0x9900, 0x2ae6, 0x2000 },
+ { 0x1900, 0x2ae5, 0x0000 },
+ { 0x1900, 0x2ae7, 0x0000 },
+ { 0x9900, 0x2aec, 0x3000 },
+ { 0x9900, 0x2aea, 0x2000 },
+ { 0x1900, 0x2ae9, 0x0000 },
+ { 0x1900, 0x2aeb, 0x0000 },
+ { 0x9900, 0x2aee, 0x2000 },
+ { 0x1900, 0x2aed, 0x0000 },
+ { 0x1900, 0x2aef, 0x0000 },
+ { 0x9900, 0x2af8, 0x4000 },
+ { 0x9900, 0x2af4, 0x3000 },
+ { 0x9900, 0x2af2, 0x2000 },
+ { 0x1900, 0x2af1, 0x0000 },
+ { 0x1900, 0x2af3, 0x0000 },
+ { 0x9900, 0x2af6, 0x2000 },
+ { 0x1900, 0x2af5, 0x0000 },
+ { 0x1900, 0x2af7, 0x0000 },
+ { 0x9900, 0x2afc, 0x3000 },
+ { 0x9900, 0x2afa, 0x2000 },
+ { 0x1900, 0x2af9, 0x0000 },
+ { 0x1900, 0x2afb, 0x0000 },
+ { 0x9900, 0x2afe, 0x2000 },
+ { 0x1900, 0x2afd, 0x0000 },
+ { 0x1900, 0x2aff, 0x0000 },
+ { 0x9a00, 0x2e82, 0x5000 },
+ { 0x9a00, 0x2b08, 0x4000 },
+ { 0x9a00, 0x2b04, 0x3000 },
+ { 0x9a00, 0x2b02, 0x2000 },
+ { 0x1a00, 0x2b01, 0x0000 },
+ { 0x1a00, 0x2b03, 0x0000 },
+ { 0x9a00, 0x2b06, 0x2000 },
+ { 0x1a00, 0x2b05, 0x0000 },
+ { 0x1a00, 0x2b07, 0x0000 },
+ { 0x9a00, 0x2b0c, 0x3000 },
+ { 0x9a00, 0x2b0a, 0x2000 },
+ { 0x1a00, 0x2b09, 0x0000 },
+ { 0x1a00, 0x2b0b, 0x0000 },
+ { 0x9a00, 0x2e80, 0x2000 },
+ { 0x1a00, 0x2b0d, 0x0000 },
+ { 0x1a00, 0x2e81, 0x0000 },
+ { 0x9a00, 0x2e8a, 0x4000 },
+ { 0x9a00, 0x2e86, 0x3000 },
+ { 0x9a00, 0x2e84, 0x2000 },
+ { 0x1a00, 0x2e83, 0x0000 },
+ { 0x1a00, 0x2e85, 0x0000 },
+ { 0x9a00, 0x2e88, 0x2000 },
+ { 0x1a00, 0x2e87, 0x0000 },
+ { 0x1a00, 0x2e89, 0x0000 },
+ { 0x9a00, 0x2e8e, 0x3000 },
+ { 0x9a00, 0x2e8c, 0x2000 },
+ { 0x1a00, 0x2e8b, 0x0000 },
+ { 0x1a00, 0x2e8d, 0x0000 },
+ { 0x9a00, 0x2e90, 0x2000 },
+ { 0x1a00, 0x2e8f, 0x0000 },
+ { 0x1a00, 0x2e91, 0x0000 },
+ { 0x9a00, 0x2ed3, 0x7000 },
+ { 0x9a00, 0x2eb3, 0x6000 },
+ { 0x9a00, 0x2ea3, 0x5000 },
+ { 0x9a00, 0x2e9b, 0x4000 },
+ { 0x9a00, 0x2e96, 0x3000 },
+ { 0x9a00, 0x2e94, 0x2000 },
+ { 0x1a00, 0x2e93, 0x0000 },
+ { 0x1a00, 0x2e95, 0x0000 },
+ { 0x9a00, 0x2e98, 0x2000 },
+ { 0x1a00, 0x2e97, 0x0000 },
+ { 0x1a00, 0x2e99, 0x0000 },
+ { 0x9a00, 0x2e9f, 0x3000 },
+ { 0x9a00, 0x2e9d, 0x2000 },
+ { 0x1a00, 0x2e9c, 0x0000 },
+ { 0x1a00, 0x2e9e, 0x0000 },
+ { 0x9a00, 0x2ea1, 0x2000 },
+ { 0x1a00, 0x2ea0, 0x0000 },
+ { 0x1a00, 0x2ea2, 0x0000 },
+ { 0x9a00, 0x2eab, 0x4000 },
+ { 0x9a00, 0x2ea7, 0x3000 },
+ { 0x9a00, 0x2ea5, 0x2000 },
+ { 0x1a00, 0x2ea4, 0x0000 },
+ { 0x1a00, 0x2ea6, 0x0000 },
+ { 0x9a00, 0x2ea9, 0x2000 },
+ { 0x1a00, 0x2ea8, 0x0000 },
+ { 0x1a00, 0x2eaa, 0x0000 },
+ { 0x9a00, 0x2eaf, 0x3000 },
+ { 0x9a00, 0x2ead, 0x2000 },
+ { 0x1a00, 0x2eac, 0x0000 },
+ { 0x1a00, 0x2eae, 0x0000 },
+ { 0x9a00, 0x2eb1, 0x2000 },
+ { 0x1a00, 0x2eb0, 0x0000 },
+ { 0x1a00, 0x2eb2, 0x0000 },
+ { 0x9a00, 0x2ec3, 0x5000 },
+ { 0x9a00, 0x2ebb, 0x4000 },
+ { 0x9a00, 0x2eb7, 0x3000 },
+ { 0x9a00, 0x2eb5, 0x2000 },
+ { 0x1a00, 0x2eb4, 0x0000 },
+ { 0x1a00, 0x2eb6, 0x0000 },
+ { 0x9a00, 0x2eb9, 0x2000 },
+ { 0x1a00, 0x2eb8, 0x0000 },
+ { 0x1a00, 0x2eba, 0x0000 },
+ { 0x9a00, 0x2ebf, 0x3000 },
+ { 0x9a00, 0x2ebd, 0x2000 },
+ { 0x1a00, 0x2ebc, 0x0000 },
+ { 0x1a00, 0x2ebe, 0x0000 },
+ { 0x9a00, 0x2ec1, 0x2000 },
+ { 0x1a00, 0x2ec0, 0x0000 },
+ { 0x1a00, 0x2ec2, 0x0000 },
+ { 0x9a00, 0x2ecb, 0x4000 },
+ { 0x9a00, 0x2ec7, 0x3000 },
+ { 0x9a00, 0x2ec5, 0x2000 },
+ { 0x1a00, 0x2ec4, 0x0000 },
+ { 0x1a00, 0x2ec6, 0x0000 },
+ { 0x9a00, 0x2ec9, 0x2000 },
+ { 0x1a00, 0x2ec8, 0x0000 },
+ { 0x1a00, 0x2eca, 0x0000 },
+ { 0x9a00, 0x2ecf, 0x3000 },
+ { 0x9a00, 0x2ecd, 0x2000 },
+ { 0x1a00, 0x2ecc, 0x0000 },
+ { 0x1a00, 0x2ece, 0x0000 },
+ { 0x9a00, 0x2ed1, 0x2000 },
+ { 0x1a00, 0x2ed0, 0x0000 },
+ { 0x1a00, 0x2ed2, 0x0000 },
+ { 0x9a00, 0x2ef3, 0x6000 },
+ { 0x9a00, 0x2ee3, 0x5000 },
+ { 0x9a00, 0x2edb, 0x4000 },
+ { 0x9a00, 0x2ed7, 0x3000 },
+ { 0x9a00, 0x2ed5, 0x2000 },
+ { 0x1a00, 0x2ed4, 0x0000 },
+ { 0x1a00, 0x2ed6, 0x0000 },
+ { 0x9a00, 0x2ed9, 0x2000 },
+ { 0x1a00, 0x2ed8, 0x0000 },
+ { 0x1a00, 0x2eda, 0x0000 },
+ { 0x9a00, 0x2edf, 0x3000 },
+ { 0x9a00, 0x2edd, 0x2000 },
+ { 0x1a00, 0x2edc, 0x0000 },
+ { 0x1a00, 0x2ede, 0x0000 },
+ { 0x9a00, 0x2ee1, 0x2000 },
+ { 0x1a00, 0x2ee0, 0x0000 },
+ { 0x1a00, 0x2ee2, 0x0000 },
+ { 0x9a00, 0x2eeb, 0x4000 },
+ { 0x9a00, 0x2ee7, 0x3000 },
+ { 0x9a00, 0x2ee5, 0x2000 },
+ { 0x1a00, 0x2ee4, 0x0000 },
+ { 0x1a00, 0x2ee6, 0x0000 },
+ { 0x9a00, 0x2ee9, 0x2000 },
+ { 0x1a00, 0x2ee8, 0x0000 },
+ { 0x1a00, 0x2eea, 0x0000 },
+ { 0x9a00, 0x2eef, 0x3000 },
+ { 0x9a00, 0x2eed, 0x2000 },
+ { 0x1a00, 0x2eec, 0x0000 },
+ { 0x1a00, 0x2eee, 0x0000 },
+ { 0x9a00, 0x2ef1, 0x2000 },
+ { 0x1a00, 0x2ef0, 0x0000 },
+ { 0x1a00, 0x2ef2, 0x0000 },
+ { 0x9a00, 0x2f0f, 0x5000 },
+ { 0x9a00, 0x2f07, 0x4000 },
+ { 0x9a00, 0x2f03, 0x3000 },
+ { 0x9a00, 0x2f01, 0x2000 },
+ { 0x1a00, 0x2f00, 0x0000 },
+ { 0x1a00, 0x2f02, 0x0000 },
+ { 0x9a00, 0x2f05, 0x2000 },
+ { 0x1a00, 0x2f04, 0x0000 },
+ { 0x1a00, 0x2f06, 0x0000 },
+ { 0x9a00, 0x2f0b, 0x3000 },
+ { 0x9a00, 0x2f09, 0x2000 },
+ { 0x1a00, 0x2f08, 0x0000 },
+ { 0x1a00, 0x2f0a, 0x0000 },
+ { 0x9a00, 0x2f0d, 0x2000 },
+ { 0x1a00, 0x2f0c, 0x0000 },
+ { 0x1a00, 0x2f0e, 0x0000 },
+ { 0x9a00, 0x2f17, 0x4000 },
+ { 0x9a00, 0x2f13, 0x3000 },
+ { 0x9a00, 0x2f11, 0x2000 },
+ { 0x1a00, 0x2f10, 0x0000 },
+ { 0x1a00, 0x2f12, 0x0000 },
+ { 0x9a00, 0x2f15, 0x2000 },
+ { 0x1a00, 0x2f14, 0x0000 },
+ { 0x1a00, 0x2f16, 0x0000 },
+ { 0x9a00, 0x2f1b, 0x3000 },
+ { 0x9a00, 0x2f19, 0x2000 },
+ { 0x1a00, 0x2f18, 0x0000 },
+ { 0x1a00, 0x2f1a, 0x0000 },
+ { 0x9a00, 0x2f1d, 0x2000 },
+ { 0x1a00, 0x2f1c, 0x0000 },
+ { 0x1a00, 0x2f1e, 0x0000 },
+ { 0x8701, 0x00f0, 0xd000 },
+ { 0x8700, 0xa34d, 0xc000 },
+ { 0x9a00, 0x3391, 0xb000 },
+ { 0x8700, 0x3149, 0xa000 },
+ { 0x9500, 0x303d, 0x9000 },
+ { 0x9a00, 0x2f9f, 0x8000 },
+ { 0x9a00, 0x2f5f, 0x7000 },
+ { 0x9a00, 0x2f3f, 0x6000 },
+ { 0x9a00, 0x2f2f, 0x5000 },
+ { 0x9a00, 0x2f27, 0x4000 },
+ { 0x9a00, 0x2f23, 0x3000 },
+ { 0x9a00, 0x2f21, 0x2000 },
+ { 0x1a00, 0x2f20, 0x0000 },
+ { 0x1a00, 0x2f22, 0x0000 },
+ { 0x9a00, 0x2f25, 0x2000 },
+ { 0x1a00, 0x2f24, 0x0000 },
+ { 0x1a00, 0x2f26, 0x0000 },
+ { 0x9a00, 0x2f2b, 0x3000 },
+ { 0x9a00, 0x2f29, 0x2000 },
+ { 0x1a00, 0x2f28, 0x0000 },
+ { 0x1a00, 0x2f2a, 0x0000 },
+ { 0x9a00, 0x2f2d, 0x2000 },
+ { 0x1a00, 0x2f2c, 0x0000 },
+ { 0x1a00, 0x2f2e, 0x0000 },
+ { 0x9a00, 0x2f37, 0x4000 },
+ { 0x9a00, 0x2f33, 0x3000 },
+ { 0x9a00, 0x2f31, 0x2000 },
+ { 0x1a00, 0x2f30, 0x0000 },
+ { 0x1a00, 0x2f32, 0x0000 },
+ { 0x9a00, 0x2f35, 0x2000 },
+ { 0x1a00, 0x2f34, 0x0000 },
+ { 0x1a00, 0x2f36, 0x0000 },
+ { 0x9a00, 0x2f3b, 0x3000 },
+ { 0x9a00, 0x2f39, 0x2000 },
+ { 0x1a00, 0x2f38, 0x0000 },
+ { 0x1a00, 0x2f3a, 0x0000 },
+ { 0x9a00, 0x2f3d, 0x2000 },
+ { 0x1a00, 0x2f3c, 0x0000 },
+ { 0x1a00, 0x2f3e, 0x0000 },
+ { 0x9a00, 0x2f4f, 0x5000 },
+ { 0x9a00, 0x2f47, 0x4000 },
+ { 0x9a00, 0x2f43, 0x3000 },
+ { 0x9a00, 0x2f41, 0x2000 },
+ { 0x1a00, 0x2f40, 0x0000 },
+ { 0x1a00, 0x2f42, 0x0000 },
+ { 0x9a00, 0x2f45, 0x2000 },
+ { 0x1a00, 0x2f44, 0x0000 },
+ { 0x1a00, 0x2f46, 0x0000 },
+ { 0x9a00, 0x2f4b, 0x3000 },
+ { 0x9a00, 0x2f49, 0x2000 },
+ { 0x1a00, 0x2f48, 0x0000 },
+ { 0x1a00, 0x2f4a, 0x0000 },
+ { 0x9a00, 0x2f4d, 0x2000 },
+ { 0x1a00, 0x2f4c, 0x0000 },
+ { 0x1a00, 0x2f4e, 0x0000 },
+ { 0x9a00, 0x2f57, 0x4000 },
+ { 0x9a00, 0x2f53, 0x3000 },
+ { 0x9a00, 0x2f51, 0x2000 },
+ { 0x1a00, 0x2f50, 0x0000 },
+ { 0x1a00, 0x2f52, 0x0000 },
+ { 0x9a00, 0x2f55, 0x2000 },
+ { 0x1a00, 0x2f54, 0x0000 },
+ { 0x1a00, 0x2f56, 0x0000 },
+ { 0x9a00, 0x2f5b, 0x3000 },
+ { 0x9a00, 0x2f59, 0x2000 },
+ { 0x1a00, 0x2f58, 0x0000 },
+ { 0x1a00, 0x2f5a, 0x0000 },
+ { 0x9a00, 0x2f5d, 0x2000 },
+ { 0x1a00, 0x2f5c, 0x0000 },
+ { 0x1a00, 0x2f5e, 0x0000 },
+ { 0x9a00, 0x2f7f, 0x6000 },
+ { 0x9a00, 0x2f6f, 0x5000 },
+ { 0x9a00, 0x2f67, 0x4000 },
+ { 0x9a00, 0x2f63, 0x3000 },
+ { 0x9a00, 0x2f61, 0x2000 },
+ { 0x1a00, 0x2f60, 0x0000 },
+ { 0x1a00, 0x2f62, 0x0000 },
+ { 0x9a00, 0x2f65, 0x2000 },
+ { 0x1a00, 0x2f64, 0x0000 },
+ { 0x1a00, 0x2f66, 0x0000 },
+ { 0x9a00, 0x2f6b, 0x3000 },
+ { 0x9a00, 0x2f69, 0x2000 },
+ { 0x1a00, 0x2f68, 0x0000 },
+ { 0x1a00, 0x2f6a, 0x0000 },
+ { 0x9a00, 0x2f6d, 0x2000 },
+ { 0x1a00, 0x2f6c, 0x0000 },
+ { 0x1a00, 0x2f6e, 0x0000 },
+ { 0x9a00, 0x2f77, 0x4000 },
+ { 0x9a00, 0x2f73, 0x3000 },
+ { 0x9a00, 0x2f71, 0x2000 },
+ { 0x1a00, 0x2f70, 0x0000 },
+ { 0x1a00, 0x2f72, 0x0000 },
+ { 0x9a00, 0x2f75, 0x2000 },
+ { 0x1a00, 0x2f74, 0x0000 },
+ { 0x1a00, 0x2f76, 0x0000 },
+ { 0x9a00, 0x2f7b, 0x3000 },
+ { 0x9a00, 0x2f79, 0x2000 },
+ { 0x1a00, 0x2f78, 0x0000 },
+ { 0x1a00, 0x2f7a, 0x0000 },
+ { 0x9a00, 0x2f7d, 0x2000 },
+ { 0x1a00, 0x2f7c, 0x0000 },
+ { 0x1a00, 0x2f7e, 0x0000 },
+ { 0x9a00, 0x2f8f, 0x5000 },
+ { 0x9a00, 0x2f87, 0x4000 },
+ { 0x9a00, 0x2f83, 0x3000 },
+ { 0x9a00, 0x2f81, 0x2000 },
+ { 0x1a00, 0x2f80, 0x0000 },
+ { 0x1a00, 0x2f82, 0x0000 },
+ { 0x9a00, 0x2f85, 0x2000 },
+ { 0x1a00, 0x2f84, 0x0000 },
+ { 0x1a00, 0x2f86, 0x0000 },
+ { 0x9a00, 0x2f8b, 0x3000 },
+ { 0x9a00, 0x2f89, 0x2000 },
+ { 0x1a00, 0x2f88, 0x0000 },
+ { 0x1a00, 0x2f8a, 0x0000 },
+ { 0x9a00, 0x2f8d, 0x2000 },
+ { 0x1a00, 0x2f8c, 0x0000 },
+ { 0x1a00, 0x2f8e, 0x0000 },
+ { 0x9a00, 0x2f97, 0x4000 },
+ { 0x9a00, 0x2f93, 0x3000 },
+ { 0x9a00, 0x2f91, 0x2000 },
+ { 0x1a00, 0x2f90, 0x0000 },
+ { 0x1a00, 0x2f92, 0x0000 },
+ { 0x9a00, 0x2f95, 0x2000 },
+ { 0x1a00, 0x2f94, 0x0000 },
+ { 0x1a00, 0x2f96, 0x0000 },
+ { 0x9a00, 0x2f9b, 0x3000 },
+ { 0x9a00, 0x2f99, 0x2000 },
+ { 0x1a00, 0x2f98, 0x0000 },
+ { 0x1a00, 0x2f9a, 0x0000 },
+ { 0x9a00, 0x2f9d, 0x2000 },
+ { 0x1a00, 0x2f9c, 0x0000 },
+ { 0x1a00, 0x2f9e, 0x0000 },
+ { 0x9a00, 0x2ff9, 0x7000 },
+ { 0x9a00, 0x2fbf, 0x6000 },
+ { 0x9a00, 0x2faf, 0x5000 },
+ { 0x9a00, 0x2fa7, 0x4000 },
+ { 0x9a00, 0x2fa3, 0x3000 },
+ { 0x9a00, 0x2fa1, 0x2000 },
+ { 0x1a00, 0x2fa0, 0x0000 },
+ { 0x1a00, 0x2fa2, 0x0000 },
+ { 0x9a00, 0x2fa5, 0x2000 },
+ { 0x1a00, 0x2fa4, 0x0000 },
+ { 0x1a00, 0x2fa6, 0x0000 },
+ { 0x9a00, 0x2fab, 0x3000 },
+ { 0x9a00, 0x2fa9, 0x2000 },
+ { 0x1a00, 0x2fa8, 0x0000 },
+ { 0x1a00, 0x2faa, 0x0000 },
+ { 0x9a00, 0x2fad, 0x2000 },
+ { 0x1a00, 0x2fac, 0x0000 },
+ { 0x1a00, 0x2fae, 0x0000 },
+ { 0x9a00, 0x2fb7, 0x4000 },
+ { 0x9a00, 0x2fb3, 0x3000 },
+ { 0x9a00, 0x2fb1, 0x2000 },
+ { 0x1a00, 0x2fb0, 0x0000 },
+ { 0x1a00, 0x2fb2, 0x0000 },
+ { 0x9a00, 0x2fb5, 0x2000 },
+ { 0x1a00, 0x2fb4, 0x0000 },
+ { 0x1a00, 0x2fb6, 0x0000 },
+ { 0x9a00, 0x2fbb, 0x3000 },
+ { 0x9a00, 0x2fb9, 0x2000 },
+ { 0x1a00, 0x2fb8, 0x0000 },
+ { 0x1a00, 0x2fba, 0x0000 },
+ { 0x9a00, 0x2fbd, 0x2000 },
+ { 0x1a00, 0x2fbc, 0x0000 },
+ { 0x1a00, 0x2fbe, 0x0000 },
+ { 0x9a00, 0x2fcf, 0x5000 },
+ { 0x9a00, 0x2fc7, 0x4000 },
+ { 0x9a00, 0x2fc3, 0x3000 },
+ { 0x9a00, 0x2fc1, 0x2000 },
+ { 0x1a00, 0x2fc0, 0x0000 },
+ { 0x1a00, 0x2fc2, 0x0000 },
+ { 0x9a00, 0x2fc5, 0x2000 },
+ { 0x1a00, 0x2fc4, 0x0000 },
+ { 0x1a00, 0x2fc6, 0x0000 },
+ { 0x9a00, 0x2fcb, 0x3000 },
+ { 0x9a00, 0x2fc9, 0x2000 },
+ { 0x1a00, 0x2fc8, 0x0000 },
+ { 0x1a00, 0x2fca, 0x0000 },
+ { 0x9a00, 0x2fcd, 0x2000 },
+ { 0x1a00, 0x2fcc, 0x0000 },
+ { 0x1a00, 0x2fce, 0x0000 },
+ { 0x9a00, 0x2ff1, 0x4000 },
+ { 0x9a00, 0x2fd3, 0x3000 },
+ { 0x9a00, 0x2fd1, 0x2000 },
+ { 0x1a00, 0x2fd0, 0x0000 },
+ { 0x1a00, 0x2fd2, 0x0000 },
+ { 0x9a00, 0x2fd5, 0x2000 },
+ { 0x1a00, 0x2fd4, 0x0000 },
+ { 0x1a00, 0x2ff0, 0x0000 },
+ { 0x9a00, 0x2ff5, 0x3000 },
+ { 0x9a00, 0x2ff3, 0x2000 },
+ { 0x1a00, 0x2ff2, 0x0000 },
+ { 0x1a00, 0x2ff4, 0x0000 },
+ { 0x9a00, 0x2ff7, 0x2000 },
+ { 0x1a00, 0x2ff6, 0x0000 },
+ { 0x1a00, 0x2ff8, 0x0000 },
+ { 0x9600, 0x301d, 0x6000 },
+ { 0x9200, 0x300d, 0x5000 },
+ { 0x8600, 0x3005, 0x4000 },
+ { 0x9500, 0x3001, 0x3000 },
+ { 0x9a00, 0x2ffb, 0x2000 },
+ { 0x1a00, 0x2ffa, 0x0000 },
+ { 0x1d00, 0x3000, 0x0000 },
+ { 0x9500, 0x3003, 0x2000 },
+ { 0x1500, 0x3002, 0x0000 },
+ { 0x1a00, 0x3004, 0x0000 },
+ { 0x9200, 0x3009, 0x3000 },
+ { 0x8e00, 0x3007, 0x2000 },
+ { 0x0700, 0x3006, 0x0000 },
+ { 0x1600, 0x3008, 0x0000 },
+ { 0x9200, 0x300b, 0x2000 },
+ { 0x1600, 0x300a, 0x0000 },
+ { 0x1600, 0x300c, 0x0000 },
+ { 0x9200, 0x3015, 0x4000 },
+ { 0x9200, 0x3011, 0x3000 },
+ { 0x9200, 0x300f, 0x2000 },
+ { 0x1600, 0x300e, 0x0000 },
+ { 0x1600, 0x3010, 0x0000 },
+ { 0x9a00, 0x3013, 0x2000 },
+ { 0x1a00, 0x3012, 0x0000 },
+ { 0x1600, 0x3014, 0x0000 },
+ { 0x9200, 0x3019, 0x3000 },
+ { 0x9200, 0x3017, 0x2000 },
+ { 0x1600, 0x3016, 0x0000 },
+ { 0x1600, 0x3018, 0x0000 },
+ { 0x9200, 0x301b, 0x2000 },
+ { 0x1600, 0x301a, 0x0000 },
+ { 0x1100, 0x301c, 0x0000 },
+ { 0x8c00, 0x302d, 0x5000 },
+ { 0x8e00, 0x3025, 0x4000 },
+ { 0x8e00, 0x3021, 0x3000 },
+ { 0x9200, 0x301f, 0x2000 },
+ { 0x1200, 0x301e, 0x0000 },
+ { 0x1a00, 0x3020, 0x0000 },
+ { 0x8e00, 0x3023, 0x2000 },
+ { 0x0e00, 0x3022, 0x0000 },
+ { 0x0e00, 0x3024, 0x0000 },
+ { 0x8e00, 0x3029, 0x3000 },
+ { 0x8e00, 0x3027, 0x2000 },
+ { 0x0e00, 0x3026, 0x0000 },
+ { 0x0e00, 0x3028, 0x0000 },
+ { 0x8c00, 0x302b, 0x2000 },
+ { 0x0c00, 0x302a, 0x0000 },
+ { 0x0c00, 0x302c, 0x0000 },
+ { 0x8600, 0x3035, 0x4000 },
+ { 0x8600, 0x3031, 0x3000 },
+ { 0x8c00, 0x302f, 0x2000 },
+ { 0x0c00, 0x302e, 0x0000 },
+ { 0x1100, 0x3030, 0x0000 },
+ { 0x8600, 0x3033, 0x2000 },
+ { 0x0600, 0x3032, 0x0000 },
+ { 0x0600, 0x3034, 0x0000 },
+ { 0x8e00, 0x3039, 0x3000 },
+ { 0x9a00, 0x3037, 0x2000 },
+ { 0x1a00, 0x3036, 0x0000 },
+ { 0x0e00, 0x3038, 0x0000 },
+ { 0x8600, 0x303b, 0x2000 },
+ { 0x0e00, 0x303a, 0x0000 },
+ { 0x0700, 0x303c, 0x0000 },
+ { 0x8700, 0x30c0, 0x8000 },
+ { 0x8700, 0x307e, 0x7000 },
+ { 0x8700, 0x305e, 0x6000 },
+ { 0x8700, 0x304e, 0x5000 },
+ { 0x8700, 0x3046, 0x4000 },
+ { 0x8700, 0x3042, 0x3000 },
+ { 0x9a00, 0x303f, 0x2000 },
+ { 0x1a00, 0x303e, 0x0000 },
+ { 0x0700, 0x3041, 0x0000 },
+ { 0x8700, 0x3044, 0x2000 },
+ { 0x0700, 0x3043, 0x0000 },
+ { 0x0700, 0x3045, 0x0000 },
+ { 0x8700, 0x304a, 0x3000 },
+ { 0x8700, 0x3048, 0x2000 },
+ { 0x0700, 0x3047, 0x0000 },
+ { 0x0700, 0x3049, 0x0000 },
+ { 0x8700, 0x304c, 0x2000 },
+ { 0x0700, 0x304b, 0x0000 },
+ { 0x0700, 0x304d, 0x0000 },
+ { 0x8700, 0x3056, 0x4000 },
+ { 0x8700, 0x3052, 0x3000 },
+ { 0x8700, 0x3050, 0x2000 },
+ { 0x0700, 0x304f, 0x0000 },
+ { 0x0700, 0x3051, 0x0000 },
+ { 0x8700, 0x3054, 0x2000 },
+ { 0x0700, 0x3053, 0x0000 },
+ { 0x0700, 0x3055, 0x0000 },
+ { 0x8700, 0x305a, 0x3000 },
+ { 0x8700, 0x3058, 0x2000 },
+ { 0x0700, 0x3057, 0x0000 },
+ { 0x0700, 0x3059, 0x0000 },
+ { 0x8700, 0x305c, 0x2000 },
+ { 0x0700, 0x305b, 0x0000 },
+ { 0x0700, 0x305d, 0x0000 },
+ { 0x8700, 0x306e, 0x5000 },
+ { 0x8700, 0x3066, 0x4000 },
+ { 0x8700, 0x3062, 0x3000 },
+ { 0x8700, 0x3060, 0x2000 },
+ { 0x0700, 0x305f, 0x0000 },
+ { 0x0700, 0x3061, 0x0000 },
+ { 0x8700, 0x3064, 0x2000 },
+ { 0x0700, 0x3063, 0x0000 },
+ { 0x0700, 0x3065, 0x0000 },
+ { 0x8700, 0x306a, 0x3000 },
+ { 0x8700, 0x3068, 0x2000 },
+ { 0x0700, 0x3067, 0x0000 },
+ { 0x0700, 0x3069, 0x0000 },
+ { 0x8700, 0x306c, 0x2000 },
+ { 0x0700, 0x306b, 0x0000 },
+ { 0x0700, 0x306d, 0x0000 },
+ { 0x8700, 0x3076, 0x4000 },
+ { 0x8700, 0x3072, 0x3000 },
+ { 0x8700, 0x3070, 0x2000 },
+ { 0x0700, 0x306f, 0x0000 },
+ { 0x0700, 0x3071, 0x0000 },
+ { 0x8700, 0x3074, 0x2000 },
+ { 0x0700, 0x3073, 0x0000 },
+ { 0x0700, 0x3075, 0x0000 },
+ { 0x8700, 0x307a, 0x3000 },
+ { 0x8700, 0x3078, 0x2000 },
+ { 0x0700, 0x3077, 0x0000 },
+ { 0x0700, 0x3079, 0x0000 },
+ { 0x8700, 0x307c, 0x2000 },
+ { 0x0700, 0x307b, 0x0000 },
+ { 0x0700, 0x307d, 0x0000 },
+ { 0x9100, 0x30a0, 0x6000 },
+ { 0x8700, 0x308e, 0x5000 },
+ { 0x8700, 0x3086, 0x4000 },
+ { 0x8700, 0x3082, 0x3000 },
+ { 0x8700, 0x3080, 0x2000 },
+ { 0x0700, 0x307f, 0x0000 },
+ { 0x0700, 0x3081, 0x0000 },
+ { 0x8700, 0x3084, 0x2000 },
+ { 0x0700, 0x3083, 0x0000 },
+ { 0x0700, 0x3085, 0x0000 },
+ { 0x8700, 0x308a, 0x3000 },
+ { 0x8700, 0x3088, 0x2000 },
+ { 0x0700, 0x3087, 0x0000 },
+ { 0x0700, 0x3089, 0x0000 },
+ { 0x8700, 0x308c, 0x2000 },
+ { 0x0700, 0x308b, 0x0000 },
+ { 0x0700, 0x308d, 0x0000 },
+ { 0x8700, 0x3096, 0x4000 },
+ { 0x8700, 0x3092, 0x3000 },
+ { 0x8700, 0x3090, 0x2000 },
+ { 0x0700, 0x308f, 0x0000 },
+ { 0x0700, 0x3091, 0x0000 },
+ { 0x8700, 0x3094, 0x2000 },
+ { 0x0700, 0x3093, 0x0000 },
+ { 0x0700, 0x3095, 0x0000 },
+ { 0x9800, 0x309c, 0x3000 },
+ { 0x8c00, 0x309a, 0x2000 },
+ { 0x0c00, 0x3099, 0x0000 },
+ { 0x1800, 0x309b, 0x0000 },
+ { 0x8600, 0x309e, 0x2000 },
+ { 0x0600, 0x309d, 0x0000 },
+ { 0x0700, 0x309f, 0x0000 },
+ { 0x8700, 0x30b0, 0x5000 },
+ { 0x8700, 0x30a8, 0x4000 },
+ { 0x8700, 0x30a4, 0x3000 },
+ { 0x8700, 0x30a2, 0x2000 },
+ { 0x0700, 0x30a1, 0x0000 },
+ { 0x0700, 0x30a3, 0x0000 },
+ { 0x8700, 0x30a6, 0x2000 },
+ { 0x0700, 0x30a5, 0x0000 },
+ { 0x0700, 0x30a7, 0x0000 },
+ { 0x8700, 0x30ac, 0x3000 },
+ { 0x8700, 0x30aa, 0x2000 },
+ { 0x0700, 0x30a9, 0x0000 },
+ { 0x0700, 0x30ab, 0x0000 },
+ { 0x8700, 0x30ae, 0x2000 },
+ { 0x0700, 0x30ad, 0x0000 },
+ { 0x0700, 0x30af, 0x0000 },
+ { 0x8700, 0x30b8, 0x4000 },
+ { 0x8700, 0x30b4, 0x3000 },
+ { 0x8700, 0x30b2, 0x2000 },
+ { 0x0700, 0x30b1, 0x0000 },
+ { 0x0700, 0x30b3, 0x0000 },
+ { 0x8700, 0x30b6, 0x2000 },
+ { 0x0700, 0x30b5, 0x0000 },
+ { 0x0700, 0x30b7, 0x0000 },
+ { 0x8700, 0x30bc, 0x3000 },
+ { 0x8700, 0x30ba, 0x2000 },
+ { 0x0700, 0x30b9, 0x0000 },
+ { 0x0700, 0x30bb, 0x0000 },
+ { 0x8700, 0x30be, 0x2000 },
+ { 0x0700, 0x30bd, 0x0000 },
+ { 0x0700, 0x30bf, 0x0000 },
+ { 0x8700, 0x3105, 0x7000 },
+ { 0x8700, 0x30e0, 0x6000 },
+ { 0x8700, 0x30d0, 0x5000 },
+ { 0x8700, 0x30c8, 0x4000 },
+ { 0x8700, 0x30c4, 0x3000 },
+ { 0x8700, 0x30c2, 0x2000 },
+ { 0x0700, 0x30c1, 0x0000 },
+ { 0x0700, 0x30c3, 0x0000 },
+ { 0x8700, 0x30c6, 0x2000 },
+ { 0x0700, 0x30c5, 0x0000 },
+ { 0x0700, 0x30c7, 0x0000 },
+ { 0x8700, 0x30cc, 0x3000 },
+ { 0x8700, 0x30ca, 0x2000 },
+ { 0x0700, 0x30c9, 0x0000 },
+ { 0x0700, 0x30cb, 0x0000 },
+ { 0x8700, 0x30ce, 0x2000 },
+ { 0x0700, 0x30cd, 0x0000 },
+ { 0x0700, 0x30cf, 0x0000 },
+ { 0x8700, 0x30d8, 0x4000 },
+ { 0x8700, 0x30d4, 0x3000 },
+ { 0x8700, 0x30d2, 0x2000 },
+ { 0x0700, 0x30d1, 0x0000 },
+ { 0x0700, 0x30d3, 0x0000 },
+ { 0x8700, 0x30d6, 0x2000 },
+ { 0x0700, 0x30d5, 0x0000 },
+ { 0x0700, 0x30d7, 0x0000 },
+ { 0x8700, 0x30dc, 0x3000 },
+ { 0x8700, 0x30da, 0x2000 },
+ { 0x0700, 0x30d9, 0x0000 },
+ { 0x0700, 0x30db, 0x0000 },
+ { 0x8700, 0x30de, 0x2000 },
+ { 0x0700, 0x30dd, 0x0000 },
+ { 0x0700, 0x30df, 0x0000 },
+ { 0x8700, 0x30f0, 0x5000 },
+ { 0x8700, 0x30e8, 0x4000 },
+ { 0x8700, 0x30e4, 0x3000 },
+ { 0x8700, 0x30e2, 0x2000 },
+ { 0x0700, 0x30e1, 0x0000 },
+ { 0x0700, 0x30e3, 0x0000 },
+ { 0x8700, 0x30e6, 0x2000 },
+ { 0x0700, 0x30e5, 0x0000 },
+ { 0x0700, 0x30e7, 0x0000 },
+ { 0x8700, 0x30ec, 0x3000 },
+ { 0x8700, 0x30ea, 0x2000 },
+ { 0x0700, 0x30e9, 0x0000 },
+ { 0x0700, 0x30eb, 0x0000 },
+ { 0x8700, 0x30ee, 0x2000 },
+ { 0x0700, 0x30ed, 0x0000 },
+ { 0x0700, 0x30ef, 0x0000 },
+ { 0x8700, 0x30f8, 0x4000 },
+ { 0x8700, 0x30f4, 0x3000 },
+ { 0x8700, 0x30f2, 0x2000 },
+ { 0x0700, 0x30f1, 0x0000 },
+ { 0x0700, 0x30f3, 0x0000 },
+ { 0x8700, 0x30f6, 0x2000 },
+ { 0x0700, 0x30f5, 0x0000 },
+ { 0x0700, 0x30f7, 0x0000 },
+ { 0x8600, 0x30fc, 0x3000 },
+ { 0x8700, 0x30fa, 0x2000 },
+ { 0x0700, 0x30f9, 0x0000 },
+ { 0x1000, 0x30fb, 0x0000 },
+ { 0x8600, 0x30fe, 0x2000 },
+ { 0x0600, 0x30fd, 0x0000 },
+ { 0x0700, 0x30ff, 0x0000 },
+ { 0x8700, 0x3125, 0x6000 },
+ { 0x8700, 0x3115, 0x5000 },
+ { 0x8700, 0x310d, 0x4000 },
+ { 0x8700, 0x3109, 0x3000 },
+ { 0x8700, 0x3107, 0x2000 },
+ { 0x0700, 0x3106, 0x0000 },
+ { 0x0700, 0x3108, 0x0000 },
+ { 0x8700, 0x310b, 0x2000 },
+ { 0x0700, 0x310a, 0x0000 },
+ { 0x0700, 0x310c, 0x0000 },
+ { 0x8700, 0x3111, 0x3000 },
+ { 0x8700, 0x310f, 0x2000 },
+ { 0x0700, 0x310e, 0x0000 },
+ { 0x0700, 0x3110, 0x0000 },
+ { 0x8700, 0x3113, 0x2000 },
+ { 0x0700, 0x3112, 0x0000 },
+ { 0x0700, 0x3114, 0x0000 },
+ { 0x8700, 0x311d, 0x4000 },
+ { 0x8700, 0x3119, 0x3000 },
+ { 0x8700, 0x3117, 0x2000 },
+ { 0x0700, 0x3116, 0x0000 },
+ { 0x0700, 0x3118, 0x0000 },
+ { 0x8700, 0x311b, 0x2000 },
+ { 0x0700, 0x311a, 0x0000 },
+ { 0x0700, 0x311c, 0x0000 },
+ { 0x8700, 0x3121, 0x3000 },
+ { 0x8700, 0x311f, 0x2000 },
+ { 0x0700, 0x311e, 0x0000 },
+ { 0x0700, 0x3120, 0x0000 },
+ { 0x8700, 0x3123, 0x2000 },
+ { 0x0700, 0x3122, 0x0000 },
+ { 0x0700, 0x3124, 0x0000 },
+ { 0x8700, 0x3139, 0x5000 },
+ { 0x8700, 0x3131, 0x4000 },
+ { 0x8700, 0x3129, 0x3000 },
+ { 0x8700, 0x3127, 0x2000 },
+ { 0x0700, 0x3126, 0x0000 },
+ { 0x0700, 0x3128, 0x0000 },
+ { 0x8700, 0x312b, 0x2000 },
+ { 0x0700, 0x312a, 0x0000 },
+ { 0x0700, 0x312c, 0x0000 },
+ { 0x8700, 0x3135, 0x3000 },
+ { 0x8700, 0x3133, 0x2000 },
+ { 0x0700, 0x3132, 0x0000 },
+ { 0x0700, 0x3134, 0x0000 },
+ { 0x8700, 0x3137, 0x2000 },
+ { 0x0700, 0x3136, 0x0000 },
+ { 0x0700, 0x3138, 0x0000 },
+ { 0x8700, 0x3141, 0x4000 },
+ { 0x8700, 0x313d, 0x3000 },
+ { 0x8700, 0x313b, 0x2000 },
+ { 0x0700, 0x313a, 0x0000 },
+ { 0x0700, 0x313c, 0x0000 },
+ { 0x8700, 0x313f, 0x2000 },
+ { 0x0700, 0x313e, 0x0000 },
+ { 0x0700, 0x3140, 0x0000 },
+ { 0x8700, 0x3145, 0x3000 },
+ { 0x8700, 0x3143, 0x2000 },
+ { 0x0700, 0x3142, 0x0000 },
+ { 0x0700, 0x3144, 0x0000 },
+ { 0x8700, 0x3147, 0x2000 },
+ { 0x0700, 0x3146, 0x0000 },
+ { 0x0700, 0x3148, 0x0000 },
+ { 0x9a00, 0x3290, 0x9000 },
+ { 0x9a00, 0x3202, 0x8000 },
+ { 0x8700, 0x3189, 0x7000 },
+ { 0x8700, 0x3169, 0x6000 },
+ { 0x8700, 0x3159, 0x5000 },
+ { 0x8700, 0x3151, 0x4000 },
+ { 0x8700, 0x314d, 0x3000 },
+ { 0x8700, 0x314b, 0x2000 },
+ { 0x0700, 0x314a, 0x0000 },
+ { 0x0700, 0x314c, 0x0000 },
+ { 0x8700, 0x314f, 0x2000 },
+ { 0x0700, 0x314e, 0x0000 },
+ { 0x0700, 0x3150, 0x0000 },
+ { 0x8700, 0x3155, 0x3000 },
+ { 0x8700, 0x3153, 0x2000 },
+ { 0x0700, 0x3152, 0x0000 },
+ { 0x0700, 0x3154, 0x0000 },
+ { 0x8700, 0x3157, 0x2000 },
+ { 0x0700, 0x3156, 0x0000 },
+ { 0x0700, 0x3158, 0x0000 },
+ { 0x8700, 0x3161, 0x4000 },
+ { 0x8700, 0x315d, 0x3000 },
+ { 0x8700, 0x315b, 0x2000 },
+ { 0x0700, 0x315a, 0x0000 },
+ { 0x0700, 0x315c, 0x0000 },
+ { 0x8700, 0x315f, 0x2000 },
+ { 0x0700, 0x315e, 0x0000 },
+ { 0x0700, 0x3160, 0x0000 },
+ { 0x8700, 0x3165, 0x3000 },
+ { 0x8700, 0x3163, 0x2000 },
+ { 0x0700, 0x3162, 0x0000 },
+ { 0x0700, 0x3164, 0x0000 },
+ { 0x8700, 0x3167, 0x2000 },
+ { 0x0700, 0x3166, 0x0000 },
+ { 0x0700, 0x3168, 0x0000 },
+ { 0x8700, 0x3179, 0x5000 },
+ { 0x8700, 0x3171, 0x4000 },
+ { 0x8700, 0x316d, 0x3000 },
+ { 0x8700, 0x316b, 0x2000 },
+ { 0x0700, 0x316a, 0x0000 },
+ { 0x0700, 0x316c, 0x0000 },
+ { 0x8700, 0x316f, 0x2000 },
+ { 0x0700, 0x316e, 0x0000 },
+ { 0x0700, 0x3170, 0x0000 },
+ { 0x8700, 0x3175, 0x3000 },
+ { 0x8700, 0x3173, 0x2000 },
+ { 0x0700, 0x3172, 0x0000 },
+ { 0x0700, 0x3174, 0x0000 },
+ { 0x8700, 0x3177, 0x2000 },
+ { 0x0700, 0x3176, 0x0000 },
+ { 0x0700, 0x3178, 0x0000 },
+ { 0x8700, 0x3181, 0x4000 },
+ { 0x8700, 0x317d, 0x3000 },
+ { 0x8700, 0x317b, 0x2000 },
+ { 0x0700, 0x317a, 0x0000 },
+ { 0x0700, 0x317c, 0x0000 },
+ { 0x8700, 0x317f, 0x2000 },
+ { 0x0700, 0x317e, 0x0000 },
+ { 0x0700, 0x3180, 0x0000 },
+ { 0x8700, 0x3185, 0x3000 },
+ { 0x8700, 0x3183, 0x2000 },
+ { 0x0700, 0x3182, 0x0000 },
+ { 0x0700, 0x3184, 0x0000 },
+ { 0x8700, 0x3187, 0x2000 },
+ { 0x0700, 0x3186, 0x0000 },
+ { 0x0700, 0x3188, 0x0000 },
+ { 0x8700, 0x31aa, 0x6000 },
+ { 0x9a00, 0x319a, 0x5000 },
+ { 0x8f00, 0x3192, 0x4000 },
+ { 0x8700, 0x318d, 0x3000 },
+ { 0x8700, 0x318b, 0x2000 },
+ { 0x0700, 0x318a, 0x0000 },
+ { 0x0700, 0x318c, 0x0000 },
+ { 0x9a00, 0x3190, 0x2000 },
+ { 0x0700, 0x318e, 0x0000 },
+ { 0x1a00, 0x3191, 0x0000 },
+ { 0x9a00, 0x3196, 0x3000 },
+ { 0x8f00, 0x3194, 0x2000 },
+ { 0x0f00, 0x3193, 0x0000 },
+ { 0x0f00, 0x3195, 0x0000 },
+ { 0x9a00, 0x3198, 0x2000 },
+ { 0x1a00, 0x3197, 0x0000 },
+ { 0x1a00, 0x3199, 0x0000 },
+ { 0x8700, 0x31a2, 0x4000 },
+ { 0x9a00, 0x319e, 0x3000 },
+ { 0x9a00, 0x319c, 0x2000 },
+ { 0x1a00, 0x319b, 0x0000 },
+ { 0x1a00, 0x319d, 0x0000 },
+ { 0x8700, 0x31a0, 0x2000 },
+ { 0x1a00, 0x319f, 0x0000 },
+ { 0x0700, 0x31a1, 0x0000 },
+ { 0x8700, 0x31a6, 0x3000 },
+ { 0x8700, 0x31a4, 0x2000 },
+ { 0x0700, 0x31a3, 0x0000 },
+ { 0x0700, 0x31a5, 0x0000 },
+ { 0x8700, 0x31a8, 0x2000 },
+ { 0x0700, 0x31a7, 0x0000 },
+ { 0x0700, 0x31a9, 0x0000 },
+ { 0x8700, 0x31f2, 0x5000 },
+ { 0x8700, 0x31b2, 0x4000 },
+ { 0x8700, 0x31ae, 0x3000 },
+ { 0x8700, 0x31ac, 0x2000 },
+ { 0x0700, 0x31ab, 0x0000 },
+ { 0x0700, 0x31ad, 0x0000 },
+ { 0x8700, 0x31b0, 0x2000 },
+ { 0x0700, 0x31af, 0x0000 },
+ { 0x0700, 0x31b1, 0x0000 },
+ { 0x8700, 0x31b6, 0x3000 },
+ { 0x8700, 0x31b4, 0x2000 },
+ { 0x0700, 0x31b3, 0x0000 },
+ { 0x0700, 0x31b5, 0x0000 },
+ { 0x8700, 0x31f0, 0x2000 },
+ { 0x0700, 0x31b7, 0x0000 },
+ { 0x0700, 0x31f1, 0x0000 },
+ { 0x8700, 0x31fa, 0x4000 },
+ { 0x8700, 0x31f6, 0x3000 },
+ { 0x8700, 0x31f4, 0x2000 },
+ { 0x0700, 0x31f3, 0x0000 },
+ { 0x0700, 0x31f5, 0x0000 },
+ { 0x8700, 0x31f8, 0x2000 },
+ { 0x0700, 0x31f7, 0x0000 },
+ { 0x0700, 0x31f9, 0x0000 },
+ { 0x8700, 0x31fe, 0x3000 },
+ { 0x8700, 0x31fc, 0x2000 },
+ { 0x0700, 0x31fb, 0x0000 },
+ { 0x0700, 0x31fd, 0x0000 },
+ { 0x9a00, 0x3200, 0x2000 },
+ { 0x0700, 0x31ff, 0x0000 },
+ { 0x1a00, 0x3201, 0x0000 },
+ { 0x9a00, 0x3243, 0x7000 },
+ { 0x8f00, 0x3223, 0x6000 },
+ { 0x9a00, 0x3212, 0x5000 },
+ { 0x9a00, 0x320a, 0x4000 },
+ { 0x9a00, 0x3206, 0x3000 },
+ { 0x9a00, 0x3204, 0x2000 },
+ { 0x1a00, 0x3203, 0x0000 },
+ { 0x1a00, 0x3205, 0x0000 },
+ { 0x9a00, 0x3208, 0x2000 },
+ { 0x1a00, 0x3207, 0x0000 },
+ { 0x1a00, 0x3209, 0x0000 },
+ { 0x9a00, 0x320e, 0x3000 },
+ { 0x9a00, 0x320c, 0x2000 },
+ { 0x1a00, 0x320b, 0x0000 },
+ { 0x1a00, 0x320d, 0x0000 },
+ { 0x9a00, 0x3210, 0x2000 },
+ { 0x1a00, 0x320f, 0x0000 },
+ { 0x1a00, 0x3211, 0x0000 },
+ { 0x9a00, 0x321a, 0x4000 },
+ { 0x9a00, 0x3216, 0x3000 },
+ { 0x9a00, 0x3214, 0x2000 },
+ { 0x1a00, 0x3213, 0x0000 },
+ { 0x1a00, 0x3215, 0x0000 },
+ { 0x9a00, 0x3218, 0x2000 },
+ { 0x1a00, 0x3217, 0x0000 },
+ { 0x1a00, 0x3219, 0x0000 },
+ { 0x9a00, 0x321e, 0x3000 },
+ { 0x9a00, 0x321c, 0x2000 },
+ { 0x1a00, 0x321b, 0x0000 },
+ { 0x1a00, 0x321d, 0x0000 },
+ { 0x8f00, 0x3221, 0x2000 },
+ { 0x0f00, 0x3220, 0x0000 },
+ { 0x0f00, 0x3222, 0x0000 },
+ { 0x9a00, 0x3233, 0x5000 },
+ { 0x9a00, 0x322b, 0x4000 },
+ { 0x8f00, 0x3227, 0x3000 },
+ { 0x8f00, 0x3225, 0x2000 },
+ { 0x0f00, 0x3224, 0x0000 },
+ { 0x0f00, 0x3226, 0x0000 },
+ { 0x8f00, 0x3229, 0x2000 },
+ { 0x0f00, 0x3228, 0x0000 },
+ { 0x1a00, 0x322a, 0x0000 },
+ { 0x9a00, 0x322f, 0x3000 },
+ { 0x9a00, 0x322d, 0x2000 },
+ { 0x1a00, 0x322c, 0x0000 },
+ { 0x1a00, 0x322e, 0x0000 },
+ { 0x9a00, 0x3231, 0x2000 },
+ { 0x1a00, 0x3230, 0x0000 },
+ { 0x1a00, 0x3232, 0x0000 },
+ { 0x9a00, 0x323b, 0x4000 },
+ { 0x9a00, 0x3237, 0x3000 },
+ { 0x9a00, 0x3235, 0x2000 },
+ { 0x1a00, 0x3234, 0x0000 },
+ { 0x1a00, 0x3236, 0x0000 },
+ { 0x9a00, 0x3239, 0x2000 },
+ { 0x1a00, 0x3238, 0x0000 },
+ { 0x1a00, 0x323a, 0x0000 },
+ { 0x9a00, 0x323f, 0x3000 },
+ { 0x9a00, 0x323d, 0x2000 },
+ { 0x1a00, 0x323c, 0x0000 },
+ { 0x1a00, 0x323e, 0x0000 },
+ { 0x9a00, 0x3241, 0x2000 },
+ { 0x1a00, 0x3240, 0x0000 },
+ { 0x1a00, 0x3242, 0x0000 },
+ { 0x9a00, 0x326f, 0x6000 },
+ { 0x8f00, 0x325f, 0x5000 },
+ { 0x8f00, 0x3257, 0x4000 },
+ { 0x8f00, 0x3253, 0x3000 },
+ { 0x8f00, 0x3251, 0x2000 },
+ { 0x1a00, 0x3250, 0x0000 },
+ { 0x0f00, 0x3252, 0x0000 },
+ { 0x8f00, 0x3255, 0x2000 },
+ { 0x0f00, 0x3254, 0x0000 },
+ { 0x0f00, 0x3256, 0x0000 },
+ { 0x8f00, 0x325b, 0x3000 },
+ { 0x8f00, 0x3259, 0x2000 },
+ { 0x0f00, 0x3258, 0x0000 },
+ { 0x0f00, 0x325a, 0x0000 },
+ { 0x8f00, 0x325d, 0x2000 },
+ { 0x0f00, 0x325c, 0x0000 },
+ { 0x0f00, 0x325e, 0x0000 },
+ { 0x9a00, 0x3267, 0x4000 },
+ { 0x9a00, 0x3263, 0x3000 },
+ { 0x9a00, 0x3261, 0x2000 },
+ { 0x1a00, 0x3260, 0x0000 },
+ { 0x1a00, 0x3262, 0x0000 },
+ { 0x9a00, 0x3265, 0x2000 },
+ { 0x1a00, 0x3264, 0x0000 },
+ { 0x1a00, 0x3266, 0x0000 },
+ { 0x9a00, 0x326b, 0x3000 },
+ { 0x9a00, 0x3269, 0x2000 },
+ { 0x1a00, 0x3268, 0x0000 },
+ { 0x1a00, 0x326a, 0x0000 },
+ { 0x9a00, 0x326d, 0x2000 },
+ { 0x1a00, 0x326c, 0x0000 },
+ { 0x1a00, 0x326e, 0x0000 },
+ { 0x8f00, 0x3280, 0x5000 },
+ { 0x9a00, 0x3277, 0x4000 },
+ { 0x9a00, 0x3273, 0x3000 },
+ { 0x9a00, 0x3271, 0x2000 },
+ { 0x1a00, 0x3270, 0x0000 },
+ { 0x1a00, 0x3272, 0x0000 },
+ { 0x9a00, 0x3275, 0x2000 },
+ { 0x1a00, 0x3274, 0x0000 },
+ { 0x1a00, 0x3276, 0x0000 },
+ { 0x9a00, 0x327b, 0x3000 },
+ { 0x9a00, 0x3279, 0x2000 },
+ { 0x1a00, 0x3278, 0x0000 },
+ { 0x1a00, 0x327a, 0x0000 },
+ { 0x9a00, 0x327d, 0x2000 },
+ { 0x1a00, 0x327c, 0x0000 },
+ { 0x1a00, 0x327f, 0x0000 },
+ { 0x8f00, 0x3288, 0x4000 },
+ { 0x8f00, 0x3284, 0x3000 },
+ { 0x8f00, 0x3282, 0x2000 },
+ { 0x0f00, 0x3281, 0x0000 },
+ { 0x0f00, 0x3283, 0x0000 },
+ { 0x8f00, 0x3286, 0x2000 },
+ { 0x0f00, 0x3285, 0x0000 },
+ { 0x0f00, 0x3287, 0x0000 },
+ { 0x9a00, 0x328c, 0x3000 },
+ { 0x9a00, 0x328a, 0x2000 },
+ { 0x0f00, 0x3289, 0x0000 },
+ { 0x1a00, 0x328b, 0x0000 },
+ { 0x9a00, 0x328e, 0x2000 },
+ { 0x1a00, 0x328d, 0x0000 },
+ { 0x1a00, 0x328f, 0x0000 },
+ { 0x9a00, 0x3311, 0x8000 },
+ { 0x9a00, 0x32d0, 0x7000 },
+ { 0x9a00, 0x32b0, 0x6000 },
+ { 0x9a00, 0x32a0, 0x5000 },
+ { 0x9a00, 0x3298, 0x4000 },
+ { 0x9a00, 0x3294, 0x3000 },
+ { 0x9a00, 0x3292, 0x2000 },
+ { 0x1a00, 0x3291, 0x0000 },
+ { 0x1a00, 0x3293, 0x0000 },
+ { 0x9a00, 0x3296, 0x2000 },
+ { 0x1a00, 0x3295, 0x0000 },
+ { 0x1a00, 0x3297, 0x0000 },
+ { 0x9a00, 0x329c, 0x3000 },
+ { 0x9a00, 0x329a, 0x2000 },
+ { 0x1a00, 0x3299, 0x0000 },
+ { 0x1a00, 0x329b, 0x0000 },
+ { 0x9a00, 0x329e, 0x2000 },
+ { 0x1a00, 0x329d, 0x0000 },
+ { 0x1a00, 0x329f, 0x0000 },
+ { 0x9a00, 0x32a8, 0x4000 },
+ { 0x9a00, 0x32a4, 0x3000 },
+ { 0x9a00, 0x32a2, 0x2000 },
+ { 0x1a00, 0x32a1, 0x0000 },
+ { 0x1a00, 0x32a3, 0x0000 },
+ { 0x9a00, 0x32a6, 0x2000 },
+ { 0x1a00, 0x32a5, 0x0000 },
+ { 0x1a00, 0x32a7, 0x0000 },
+ { 0x9a00, 0x32ac, 0x3000 },
+ { 0x9a00, 0x32aa, 0x2000 },
+ { 0x1a00, 0x32a9, 0x0000 },
+ { 0x1a00, 0x32ab, 0x0000 },
+ { 0x9a00, 0x32ae, 0x2000 },
+ { 0x1a00, 0x32ad, 0x0000 },
+ { 0x1a00, 0x32af, 0x0000 },
+ { 0x9a00, 0x32c0, 0x5000 },
+ { 0x8f00, 0x32b8, 0x4000 },
+ { 0x8f00, 0x32b4, 0x3000 },
+ { 0x8f00, 0x32b2, 0x2000 },
+ { 0x0f00, 0x32b1, 0x0000 },
+ { 0x0f00, 0x32b3, 0x0000 },
+ { 0x8f00, 0x32b6, 0x2000 },
+ { 0x0f00, 0x32b5, 0x0000 },
+ { 0x0f00, 0x32b7, 0x0000 },
+ { 0x8f00, 0x32bc, 0x3000 },
+ { 0x8f00, 0x32ba, 0x2000 },
+ { 0x0f00, 0x32b9, 0x0000 },
+ { 0x0f00, 0x32bb, 0x0000 },
+ { 0x8f00, 0x32be, 0x2000 },
+ { 0x0f00, 0x32bd, 0x0000 },
+ { 0x0f00, 0x32bf, 0x0000 },
+ { 0x9a00, 0x32c8, 0x4000 },
+ { 0x9a00, 0x32c4, 0x3000 },
+ { 0x9a00, 0x32c2, 0x2000 },
+ { 0x1a00, 0x32c1, 0x0000 },
+ { 0x1a00, 0x32c3, 0x0000 },
+ { 0x9a00, 0x32c6, 0x2000 },
+ { 0x1a00, 0x32c5, 0x0000 },
+ { 0x1a00, 0x32c7, 0x0000 },
+ { 0x9a00, 0x32cc, 0x3000 },
+ { 0x9a00, 0x32ca, 0x2000 },
+ { 0x1a00, 0x32c9, 0x0000 },
+ { 0x1a00, 0x32cb, 0x0000 },
+ { 0x9a00, 0x32ce, 0x2000 },
+ { 0x1a00, 0x32cd, 0x0000 },
+ { 0x1a00, 0x32cf, 0x0000 },
+ { 0x9a00, 0x32f0, 0x6000 },
+ { 0x9a00, 0x32e0, 0x5000 },
+ { 0x9a00, 0x32d8, 0x4000 },
+ { 0x9a00, 0x32d4, 0x3000 },
+ { 0x9a00, 0x32d2, 0x2000 },
+ { 0x1a00, 0x32d1, 0x0000 },
+ { 0x1a00, 0x32d3, 0x0000 },
+ { 0x9a00, 0x32d6, 0x2000 },
+ { 0x1a00, 0x32d5, 0x0000 },
+ { 0x1a00, 0x32d7, 0x0000 },
+ { 0x9a00, 0x32dc, 0x3000 },
+ { 0x9a00, 0x32da, 0x2000 },
+ { 0x1a00, 0x32d9, 0x0000 },
+ { 0x1a00, 0x32db, 0x0000 },
+ { 0x9a00, 0x32de, 0x2000 },
+ { 0x1a00, 0x32dd, 0x0000 },
+ { 0x1a00, 0x32df, 0x0000 },
+ { 0x9a00, 0x32e8, 0x4000 },
+ { 0x9a00, 0x32e4, 0x3000 },
+ { 0x9a00, 0x32e2, 0x2000 },
+ { 0x1a00, 0x32e1, 0x0000 },
+ { 0x1a00, 0x32e3, 0x0000 },
+ { 0x9a00, 0x32e6, 0x2000 },
+ { 0x1a00, 0x32e5, 0x0000 },
+ { 0x1a00, 0x32e7, 0x0000 },
+ { 0x9a00, 0x32ec, 0x3000 },
+ { 0x9a00, 0x32ea, 0x2000 },
+ { 0x1a00, 0x32e9, 0x0000 },
+ { 0x1a00, 0x32eb, 0x0000 },
+ { 0x9a00, 0x32ee, 0x2000 },
+ { 0x1a00, 0x32ed, 0x0000 },
+ { 0x1a00, 0x32ef, 0x0000 },
+ { 0x9a00, 0x3301, 0x5000 },
+ { 0x9a00, 0x32f8, 0x4000 },
+ { 0x9a00, 0x32f4, 0x3000 },
+ { 0x9a00, 0x32f2, 0x2000 },
+ { 0x1a00, 0x32f1, 0x0000 },
+ { 0x1a00, 0x32f3, 0x0000 },
+ { 0x9a00, 0x32f6, 0x2000 },
+ { 0x1a00, 0x32f5, 0x0000 },
+ { 0x1a00, 0x32f7, 0x0000 },
+ { 0x9a00, 0x32fc, 0x3000 },
+ { 0x9a00, 0x32fa, 0x2000 },
+ { 0x1a00, 0x32f9, 0x0000 },
+ { 0x1a00, 0x32fb, 0x0000 },
+ { 0x9a00, 0x32fe, 0x2000 },
+ { 0x1a00, 0x32fd, 0x0000 },
+ { 0x1a00, 0x3300, 0x0000 },
+ { 0x9a00, 0x3309, 0x4000 },
+ { 0x9a00, 0x3305, 0x3000 },
+ { 0x9a00, 0x3303, 0x2000 },
+ { 0x1a00, 0x3302, 0x0000 },
+ { 0x1a00, 0x3304, 0x0000 },
+ { 0x9a00, 0x3307, 0x2000 },
+ { 0x1a00, 0x3306, 0x0000 },
+ { 0x1a00, 0x3308, 0x0000 },
+ { 0x9a00, 0x330d, 0x3000 },
+ { 0x9a00, 0x330b, 0x2000 },
+ { 0x1a00, 0x330a, 0x0000 },
+ { 0x1a00, 0x330c, 0x0000 },
+ { 0x9a00, 0x330f, 0x2000 },
+ { 0x1a00, 0x330e, 0x0000 },
+ { 0x1a00, 0x3310, 0x0000 },
+ { 0x9a00, 0x3351, 0x7000 },
+ { 0x9a00, 0x3331, 0x6000 },
+ { 0x9a00, 0x3321, 0x5000 },
+ { 0x9a00, 0x3319, 0x4000 },
+ { 0x9a00, 0x3315, 0x3000 },
+ { 0x9a00, 0x3313, 0x2000 },
+ { 0x1a00, 0x3312, 0x0000 },
+ { 0x1a00, 0x3314, 0x0000 },
+ { 0x9a00, 0x3317, 0x2000 },
+ { 0x1a00, 0x3316, 0x0000 },
+ { 0x1a00, 0x3318, 0x0000 },
+ { 0x9a00, 0x331d, 0x3000 },
+ { 0x9a00, 0x331b, 0x2000 },
+ { 0x1a00, 0x331a, 0x0000 },
+ { 0x1a00, 0x331c, 0x0000 },
+ { 0x9a00, 0x331f, 0x2000 },
+ { 0x1a00, 0x331e, 0x0000 },
+ { 0x1a00, 0x3320, 0x0000 },
+ { 0x9a00, 0x3329, 0x4000 },
+ { 0x9a00, 0x3325, 0x3000 },
+ { 0x9a00, 0x3323, 0x2000 },
+ { 0x1a00, 0x3322, 0x0000 },
+ { 0x1a00, 0x3324, 0x0000 },
+ { 0x9a00, 0x3327, 0x2000 },
+ { 0x1a00, 0x3326, 0x0000 },
+ { 0x1a00, 0x3328, 0x0000 },
+ { 0x9a00, 0x332d, 0x3000 },
+ { 0x9a00, 0x332b, 0x2000 },
+ { 0x1a00, 0x332a, 0x0000 },
+ { 0x1a00, 0x332c, 0x0000 },
+ { 0x9a00, 0x332f, 0x2000 },
+ { 0x1a00, 0x332e, 0x0000 },
+ { 0x1a00, 0x3330, 0x0000 },
+ { 0x9a00, 0x3341, 0x5000 },
+ { 0x9a00, 0x3339, 0x4000 },
+ { 0x9a00, 0x3335, 0x3000 },
+ { 0x9a00, 0x3333, 0x2000 },
+ { 0x1a00, 0x3332, 0x0000 },
+ { 0x1a00, 0x3334, 0x0000 },
+ { 0x9a00, 0x3337, 0x2000 },
+ { 0x1a00, 0x3336, 0x0000 },
+ { 0x1a00, 0x3338, 0x0000 },
+ { 0x9a00, 0x333d, 0x3000 },
+ { 0x9a00, 0x333b, 0x2000 },
+ { 0x1a00, 0x333a, 0x0000 },
+ { 0x1a00, 0x333c, 0x0000 },
+ { 0x9a00, 0x333f, 0x2000 },
+ { 0x1a00, 0x333e, 0x0000 },
+ { 0x1a00, 0x3340, 0x0000 },
+ { 0x9a00, 0x3349, 0x4000 },
+ { 0x9a00, 0x3345, 0x3000 },
+ { 0x9a00, 0x3343, 0x2000 },
+ { 0x1a00, 0x3342, 0x0000 },
+ { 0x1a00, 0x3344, 0x0000 },
+ { 0x9a00, 0x3347, 0x2000 },
+ { 0x1a00, 0x3346, 0x0000 },
+ { 0x1a00, 0x3348, 0x0000 },
+ { 0x9a00, 0x334d, 0x3000 },
+ { 0x9a00, 0x334b, 0x2000 },
+ { 0x1a00, 0x334a, 0x0000 },
+ { 0x1a00, 0x334c, 0x0000 },
+ { 0x9a00, 0x334f, 0x2000 },
+ { 0x1a00, 0x334e, 0x0000 },
+ { 0x1a00, 0x3350, 0x0000 },
+ { 0x9a00, 0x3371, 0x6000 },
+ { 0x9a00, 0x3361, 0x5000 },
+ { 0x9a00, 0x3359, 0x4000 },
+ { 0x9a00, 0x3355, 0x3000 },
+ { 0x9a00, 0x3353, 0x2000 },
+ { 0x1a00, 0x3352, 0x0000 },
+ { 0x1a00, 0x3354, 0x0000 },
+ { 0x9a00, 0x3357, 0x2000 },
+ { 0x1a00, 0x3356, 0x0000 },
+ { 0x1a00, 0x3358, 0x0000 },
+ { 0x9a00, 0x335d, 0x3000 },
+ { 0x9a00, 0x335b, 0x2000 },
+ { 0x1a00, 0x335a, 0x0000 },
+ { 0x1a00, 0x335c, 0x0000 },
+ { 0x9a00, 0x335f, 0x2000 },
+ { 0x1a00, 0x335e, 0x0000 },
+ { 0x1a00, 0x3360, 0x0000 },
+ { 0x9a00, 0x3369, 0x4000 },
+ { 0x9a00, 0x3365, 0x3000 },
+ { 0x9a00, 0x3363, 0x2000 },
+ { 0x1a00, 0x3362, 0x0000 },
+ { 0x1a00, 0x3364, 0x0000 },
+ { 0x9a00, 0x3367, 0x2000 },
+ { 0x1a00, 0x3366, 0x0000 },
+ { 0x1a00, 0x3368, 0x0000 },
+ { 0x9a00, 0x336d, 0x3000 },
+ { 0x9a00, 0x336b, 0x2000 },
+ { 0x1a00, 0x336a, 0x0000 },
+ { 0x1a00, 0x336c, 0x0000 },
+ { 0x9a00, 0x336f, 0x2000 },
+ { 0x1a00, 0x336e, 0x0000 },
+ { 0x1a00, 0x3370, 0x0000 },
+ { 0x9a00, 0x3381, 0x5000 },
+ { 0x9a00, 0x3379, 0x4000 },
+ { 0x9a00, 0x3375, 0x3000 },
+ { 0x9a00, 0x3373, 0x2000 },
+ { 0x1a00, 0x3372, 0x0000 },
+ { 0x1a00, 0x3374, 0x0000 },
+ { 0x9a00, 0x3377, 0x2000 },
+ { 0x1a00, 0x3376, 0x0000 },
+ { 0x1a00, 0x3378, 0x0000 },
+ { 0x9a00, 0x337d, 0x3000 },
+ { 0x9a00, 0x337b, 0x2000 },
+ { 0x1a00, 0x337a, 0x0000 },
+ { 0x1a00, 0x337c, 0x0000 },
+ { 0x9a00, 0x337f, 0x2000 },
+ { 0x1a00, 0x337e, 0x0000 },
+ { 0x1a00, 0x3380, 0x0000 },
+ { 0x9a00, 0x3389, 0x4000 },
+ { 0x9a00, 0x3385, 0x3000 },
+ { 0x9a00, 0x3383, 0x2000 },
+ { 0x1a00, 0x3382, 0x0000 },
+ { 0x1a00, 0x3384, 0x0000 },
+ { 0x9a00, 0x3387, 0x2000 },
+ { 0x1a00, 0x3386, 0x0000 },
+ { 0x1a00, 0x3388, 0x0000 },
+ { 0x9a00, 0x338d, 0x3000 },
+ { 0x9a00, 0x338b, 0x2000 },
+ { 0x1a00, 0x338a, 0x0000 },
+ { 0x1a00, 0x338c, 0x0000 },
+ { 0x9a00, 0x338f, 0x2000 },
+ { 0x1a00, 0x338e, 0x0000 },
+ { 0x1a00, 0x3390, 0x0000 },
+ { 0x8700, 0xa14d, 0xa000 },
+ { 0x8700, 0xa04d, 0x9000 },
+ { 0x9a00, 0x4dcf, 0x8000 },
+ { 0x9a00, 0x33d1, 0x7000 },
+ { 0x9a00, 0x33b1, 0x6000 },
+ { 0x9a00, 0x33a1, 0x5000 },
+ { 0x9a00, 0x3399, 0x4000 },
+ { 0x9a00, 0x3395, 0x3000 },
+ { 0x9a00, 0x3393, 0x2000 },
+ { 0x1a00, 0x3392, 0x0000 },
+ { 0x1a00, 0x3394, 0x0000 },
+ { 0x9a00, 0x3397, 0x2000 },
+ { 0x1a00, 0x3396, 0x0000 },
+ { 0x1a00, 0x3398, 0x0000 },
+ { 0x9a00, 0x339d, 0x3000 },
+ { 0x9a00, 0x339b, 0x2000 },
+ { 0x1a00, 0x339a, 0x0000 },
+ { 0x1a00, 0x339c, 0x0000 },
+ { 0x9a00, 0x339f, 0x2000 },
+ { 0x1a00, 0x339e, 0x0000 },
+ { 0x1a00, 0x33a0, 0x0000 },
+ { 0x9a00, 0x33a9, 0x4000 },
+ { 0x9a00, 0x33a5, 0x3000 },
+ { 0x9a00, 0x33a3, 0x2000 },
+ { 0x1a00, 0x33a2, 0x0000 },
+ { 0x1a00, 0x33a4, 0x0000 },
+ { 0x9a00, 0x33a7, 0x2000 },
+ { 0x1a00, 0x33a6, 0x0000 },
+ { 0x1a00, 0x33a8, 0x0000 },
+ { 0x9a00, 0x33ad, 0x3000 },
+ { 0x9a00, 0x33ab, 0x2000 },
+ { 0x1a00, 0x33aa, 0x0000 },
+ { 0x1a00, 0x33ac, 0x0000 },
+ { 0x9a00, 0x33af, 0x2000 },
+ { 0x1a00, 0x33ae, 0x0000 },
+ { 0x1a00, 0x33b0, 0x0000 },
+ { 0x9a00, 0x33c1, 0x5000 },
+ { 0x9a00, 0x33b9, 0x4000 },
+ { 0x9a00, 0x33b5, 0x3000 },
+ { 0x9a00, 0x33b3, 0x2000 },
+ { 0x1a00, 0x33b2, 0x0000 },
+ { 0x1a00, 0x33b4, 0x0000 },
+ { 0x9a00, 0x33b7, 0x2000 },
+ { 0x1a00, 0x33b6, 0x0000 },
+ { 0x1a00, 0x33b8, 0x0000 },
+ { 0x9a00, 0x33bd, 0x3000 },
+ { 0x9a00, 0x33bb, 0x2000 },
+ { 0x1a00, 0x33ba, 0x0000 },
+ { 0x1a00, 0x33bc, 0x0000 },
+ { 0x9a00, 0x33bf, 0x2000 },
+ { 0x1a00, 0x33be, 0x0000 },
+ { 0x1a00, 0x33c0, 0x0000 },
+ { 0x9a00, 0x33c9, 0x4000 },
+ { 0x9a00, 0x33c5, 0x3000 },
+ { 0x9a00, 0x33c3, 0x2000 },
+ { 0x1a00, 0x33c2, 0x0000 },
+ { 0x1a00, 0x33c4, 0x0000 },
+ { 0x9a00, 0x33c7, 0x2000 },
+ { 0x1a00, 0x33c6, 0x0000 },
+ { 0x1a00, 0x33c8, 0x0000 },
+ { 0x9a00, 0x33cd, 0x3000 },
+ { 0x9a00, 0x33cb, 0x2000 },
+ { 0x1a00, 0x33ca, 0x0000 },
+ { 0x1a00, 0x33cc, 0x0000 },
+ { 0x9a00, 0x33cf, 0x2000 },
+ { 0x1a00, 0x33ce, 0x0000 },
+ { 0x1a00, 0x33d0, 0x0000 },
+ { 0x9a00, 0x33f1, 0x6000 },
+ { 0x9a00, 0x33e1, 0x5000 },
+ { 0x9a00, 0x33d9, 0x4000 },
+ { 0x9a00, 0x33d5, 0x3000 },
+ { 0x9a00, 0x33d3, 0x2000 },
+ { 0x1a00, 0x33d2, 0x0000 },
+ { 0x1a00, 0x33d4, 0x0000 },
+ { 0x9a00, 0x33d7, 0x2000 },
+ { 0x1a00, 0x33d6, 0x0000 },
+ { 0x1a00, 0x33d8, 0x0000 },
+ { 0x9a00, 0x33dd, 0x3000 },
+ { 0x9a00, 0x33db, 0x2000 },
+ { 0x1a00, 0x33da, 0x0000 },
+ { 0x1a00, 0x33dc, 0x0000 },
+ { 0x9a00, 0x33df, 0x2000 },
+ { 0x1a00, 0x33de, 0x0000 },
+ { 0x1a00, 0x33e0, 0x0000 },
+ { 0x9a00, 0x33e9, 0x4000 },
+ { 0x9a00, 0x33e5, 0x3000 },
+ { 0x9a00, 0x33e3, 0x2000 },
+ { 0x1a00, 0x33e2, 0x0000 },
+ { 0x1a00, 0x33e4, 0x0000 },
+ { 0x9a00, 0x33e7, 0x2000 },
+ { 0x1a00, 0x33e6, 0x0000 },
+ { 0x1a00, 0x33e8, 0x0000 },
+ { 0x9a00, 0x33ed, 0x3000 },
+ { 0x9a00, 0x33eb, 0x2000 },
+ { 0x1a00, 0x33ea, 0x0000 },
+ { 0x1a00, 0x33ec, 0x0000 },
+ { 0x9a00, 0x33ef, 0x2000 },
+ { 0x1a00, 0x33ee, 0x0000 },
+ { 0x1a00, 0x33f0, 0x0000 },
+ { 0x8700, 0x4db5, 0x5000 },
+ { 0x9a00, 0x33f9, 0x4000 },
+ { 0x9a00, 0x33f5, 0x3000 },
+ { 0x9a00, 0x33f3, 0x2000 },
+ { 0x1a00, 0x33f2, 0x0000 },
+ { 0x1a00, 0x33f4, 0x0000 },
+ { 0x9a00, 0x33f7, 0x2000 },
+ { 0x1a00, 0x33f6, 0x0000 },
+ { 0x1a00, 0x33f8, 0x0000 },
+ { 0x9a00, 0x33fd, 0x3000 },
+ { 0x9a00, 0x33fb, 0x2000 },
+ { 0x1a00, 0x33fa, 0x0000 },
+ { 0x1a00, 0x33fc, 0x0000 },
+ { 0x9a00, 0x33ff, 0x2000 },
+ { 0x1a00, 0x33fe, 0x0000 },
+ { 0x0700, 0x3400, 0x0000 },
+ { 0x9a00, 0x4dc7, 0x4000 },
+ { 0x9a00, 0x4dc3, 0x3000 },
+ { 0x9a00, 0x4dc1, 0x2000 },
+ { 0x1a00, 0x4dc0, 0x0000 },
+ { 0x1a00, 0x4dc2, 0x0000 },
+ { 0x9a00, 0x4dc5, 0x2000 },
+ { 0x1a00, 0x4dc4, 0x0000 },
+ { 0x1a00, 0x4dc6, 0x0000 },
+ { 0x9a00, 0x4dcb, 0x3000 },
+ { 0x9a00, 0x4dc9, 0x2000 },
+ { 0x1a00, 0x4dc8, 0x0000 },
+ { 0x1a00, 0x4dca, 0x0000 },
+ { 0x9a00, 0x4dcd, 0x2000 },
+ { 0x1a00, 0x4dcc, 0x0000 },
+ { 0x1a00, 0x4dce, 0x0000 },
+ { 0x8700, 0xa00d, 0x7000 },
+ { 0x9a00, 0x4def, 0x6000 },
+ { 0x9a00, 0x4ddf, 0x5000 },
+ { 0x9a00, 0x4dd7, 0x4000 },
+ { 0x9a00, 0x4dd3, 0x3000 },
+ { 0x9a00, 0x4dd1, 0x2000 },
+ { 0x1a00, 0x4dd0, 0x0000 },
+ { 0x1a00, 0x4dd2, 0x0000 },
+ { 0x9a00, 0x4dd5, 0x2000 },
+ { 0x1a00, 0x4dd4, 0x0000 },
+ { 0x1a00, 0x4dd6, 0x0000 },
+ { 0x9a00, 0x4ddb, 0x3000 },
+ { 0x9a00, 0x4dd9, 0x2000 },
+ { 0x1a00, 0x4dd8, 0x0000 },
+ { 0x1a00, 0x4dda, 0x0000 },
+ { 0x9a00, 0x4ddd, 0x2000 },
+ { 0x1a00, 0x4ddc, 0x0000 },
+ { 0x1a00, 0x4dde, 0x0000 },
+ { 0x9a00, 0x4de7, 0x4000 },
+ { 0x9a00, 0x4de3, 0x3000 },
+ { 0x9a00, 0x4de1, 0x2000 },
+ { 0x1a00, 0x4de0, 0x0000 },
+ { 0x1a00, 0x4de2, 0x0000 },
+ { 0x9a00, 0x4de5, 0x2000 },
+ { 0x1a00, 0x4de4, 0x0000 },
+ { 0x1a00, 0x4de6, 0x0000 },
+ { 0x9a00, 0x4deb, 0x3000 },
+ { 0x9a00, 0x4de9, 0x2000 },
+ { 0x1a00, 0x4de8, 0x0000 },
+ { 0x1a00, 0x4dea, 0x0000 },
+ { 0x9a00, 0x4ded, 0x2000 },
+ { 0x1a00, 0x4dec, 0x0000 },
+ { 0x1a00, 0x4dee, 0x0000 },
+ { 0x9a00, 0x4dff, 0x5000 },
+ { 0x9a00, 0x4df7, 0x4000 },
+ { 0x9a00, 0x4df3, 0x3000 },
+ { 0x9a00, 0x4df1, 0x2000 },
+ { 0x1a00, 0x4df0, 0x0000 },
+ { 0x1a00, 0x4df2, 0x0000 },
+ { 0x9a00, 0x4df5, 0x2000 },
+ { 0x1a00, 0x4df4, 0x0000 },
+ { 0x1a00, 0x4df6, 0x0000 },
+ { 0x9a00, 0x4dfb, 0x3000 },
+ { 0x9a00, 0x4df9, 0x2000 },
+ { 0x1a00, 0x4df8, 0x0000 },
+ { 0x1a00, 0x4dfa, 0x0000 },
+ { 0x9a00, 0x4dfd, 0x2000 },
+ { 0x1a00, 0x4dfc, 0x0000 },
+ { 0x1a00, 0x4dfe, 0x0000 },
+ { 0x8700, 0xa005, 0x4000 },
+ { 0x8700, 0xa001, 0x3000 },
+ { 0x8700, 0x9fa5, 0x2000 },
+ { 0x0700, 0x4e00, 0x0000 },
+ { 0x0700, 0xa000, 0x0000 },
+ { 0x8700, 0xa003, 0x2000 },
+ { 0x0700, 0xa002, 0x0000 },
+ { 0x0700, 0xa004, 0x0000 },
+ { 0x8700, 0xa009, 0x3000 },
+ { 0x8700, 0xa007, 0x2000 },
+ { 0x0700, 0xa006, 0x0000 },
+ { 0x0700, 0xa008, 0x0000 },
+ { 0x8700, 0xa00b, 0x2000 },
+ { 0x0700, 0xa00a, 0x0000 },
+ { 0x0700, 0xa00c, 0x0000 },
+ { 0x8700, 0xa02d, 0x6000 },
+ { 0x8700, 0xa01d, 0x5000 },
+ { 0x8700, 0xa015, 0x4000 },
+ { 0x8700, 0xa011, 0x3000 },
+ { 0x8700, 0xa00f, 0x2000 },
+ { 0x0700, 0xa00e, 0x0000 },
+ { 0x0700, 0xa010, 0x0000 },
+ { 0x8700, 0xa013, 0x2000 },
+ { 0x0700, 0xa012, 0x0000 },
+ { 0x0700, 0xa014, 0x0000 },
+ { 0x8700, 0xa019, 0x3000 },
+ { 0x8700, 0xa017, 0x2000 },
+ { 0x0700, 0xa016, 0x0000 },
+ { 0x0700, 0xa018, 0x0000 },
+ { 0x8700, 0xa01b, 0x2000 },
+ { 0x0700, 0xa01a, 0x0000 },
+ { 0x0700, 0xa01c, 0x0000 },
+ { 0x8700, 0xa025, 0x4000 },
+ { 0x8700, 0xa021, 0x3000 },
+ { 0x8700, 0xa01f, 0x2000 },
+ { 0x0700, 0xa01e, 0x0000 },
+ { 0x0700, 0xa020, 0x0000 },
+ { 0x8700, 0xa023, 0x2000 },
+ { 0x0700, 0xa022, 0x0000 },
+ { 0x0700, 0xa024, 0x0000 },
+ { 0x8700, 0xa029, 0x3000 },
+ { 0x8700, 0xa027, 0x2000 },
+ { 0x0700, 0xa026, 0x0000 },
+ { 0x0700, 0xa028, 0x0000 },
+ { 0x8700, 0xa02b, 0x2000 },
+ { 0x0700, 0xa02a, 0x0000 },
+ { 0x0700, 0xa02c, 0x0000 },
+ { 0x8700, 0xa03d, 0x5000 },
+ { 0x8700, 0xa035, 0x4000 },
+ { 0x8700, 0xa031, 0x3000 },
+ { 0x8700, 0xa02f, 0x2000 },
+ { 0x0700, 0xa02e, 0x0000 },
+ { 0x0700, 0xa030, 0x0000 },
+ { 0x8700, 0xa033, 0x2000 },
+ { 0x0700, 0xa032, 0x0000 },
+ { 0x0700, 0xa034, 0x0000 },
+ { 0x8700, 0xa039, 0x3000 },
+ { 0x8700, 0xa037, 0x2000 },
+ { 0x0700, 0xa036, 0x0000 },
+ { 0x0700, 0xa038, 0x0000 },
+ { 0x8700, 0xa03b, 0x2000 },
+ { 0x0700, 0xa03a, 0x0000 },
+ { 0x0700, 0xa03c, 0x0000 },
+ { 0x8700, 0xa045, 0x4000 },
+ { 0x8700, 0xa041, 0x3000 },
+ { 0x8700, 0xa03f, 0x2000 },
+ { 0x0700, 0xa03e, 0x0000 },
+ { 0x0700, 0xa040, 0x0000 },
+ { 0x8700, 0xa043, 0x2000 },
+ { 0x0700, 0xa042, 0x0000 },
+ { 0x0700, 0xa044, 0x0000 },
+ { 0x8700, 0xa049, 0x3000 },
+ { 0x8700, 0xa047, 0x2000 },
+ { 0x0700, 0xa046, 0x0000 },
+ { 0x0700, 0xa048, 0x0000 },
+ { 0x8700, 0xa04b, 0x2000 },
+ { 0x0700, 0xa04a, 0x0000 },
+ { 0x0700, 0xa04c, 0x0000 },
+ { 0x8700, 0xa0cd, 0x8000 },
+ { 0x8700, 0xa08d, 0x7000 },
+ { 0x8700, 0xa06d, 0x6000 },
+ { 0x8700, 0xa05d, 0x5000 },
+ { 0x8700, 0xa055, 0x4000 },
+ { 0x8700, 0xa051, 0x3000 },
+ { 0x8700, 0xa04f, 0x2000 },
+ { 0x0700, 0xa04e, 0x0000 },
+ { 0x0700, 0xa050, 0x0000 },
+ { 0x8700, 0xa053, 0x2000 },
+ { 0x0700, 0xa052, 0x0000 },
+ { 0x0700, 0xa054, 0x0000 },
+ { 0x8700, 0xa059, 0x3000 },
+ { 0x8700, 0xa057, 0x2000 },
+ { 0x0700, 0xa056, 0x0000 },
+ { 0x0700, 0xa058, 0x0000 },
+ { 0x8700, 0xa05b, 0x2000 },
+ { 0x0700, 0xa05a, 0x0000 },
+ { 0x0700, 0xa05c, 0x0000 },
+ { 0x8700, 0xa065, 0x4000 },
+ { 0x8700, 0xa061, 0x3000 },
+ { 0x8700, 0xa05f, 0x2000 },
+ { 0x0700, 0xa05e, 0x0000 },
+ { 0x0700, 0xa060, 0x0000 },
+ { 0x8700, 0xa063, 0x2000 },
+ { 0x0700, 0xa062, 0x0000 },
+ { 0x0700, 0xa064, 0x0000 },
+ { 0x8700, 0xa069, 0x3000 },
+ { 0x8700, 0xa067, 0x2000 },
+ { 0x0700, 0xa066, 0x0000 },
+ { 0x0700, 0xa068, 0x0000 },
+ { 0x8700, 0xa06b, 0x2000 },
+ { 0x0700, 0xa06a, 0x0000 },
+ { 0x0700, 0xa06c, 0x0000 },
+ { 0x8700, 0xa07d, 0x5000 },
+ { 0x8700, 0xa075, 0x4000 },
+ { 0x8700, 0xa071, 0x3000 },
+ { 0x8700, 0xa06f, 0x2000 },
+ { 0x0700, 0xa06e, 0x0000 },
+ { 0x0700, 0xa070, 0x0000 },
+ { 0x8700, 0xa073, 0x2000 },
+ { 0x0700, 0xa072, 0x0000 },
+ { 0x0700, 0xa074, 0x0000 },
+ { 0x8700, 0xa079, 0x3000 },
+ { 0x8700, 0xa077, 0x2000 },
+ { 0x0700, 0xa076, 0x0000 },
+ { 0x0700, 0xa078, 0x0000 },
+ { 0x8700, 0xa07b, 0x2000 },
+ { 0x0700, 0xa07a, 0x0000 },
+ { 0x0700, 0xa07c, 0x0000 },
+ { 0x8700, 0xa085, 0x4000 },
+ { 0x8700, 0xa081, 0x3000 },
+ { 0x8700, 0xa07f, 0x2000 },
+ { 0x0700, 0xa07e, 0x0000 },
+ { 0x0700, 0xa080, 0x0000 },
+ { 0x8700, 0xa083, 0x2000 },
+ { 0x0700, 0xa082, 0x0000 },
+ { 0x0700, 0xa084, 0x0000 },
+ { 0x8700, 0xa089, 0x3000 },
+ { 0x8700, 0xa087, 0x2000 },
+ { 0x0700, 0xa086, 0x0000 },
+ { 0x0700, 0xa088, 0x0000 },
+ { 0x8700, 0xa08b, 0x2000 },
+ { 0x0700, 0xa08a, 0x0000 },
+ { 0x0700, 0xa08c, 0x0000 },
+ { 0x8700, 0xa0ad, 0x6000 },
+ { 0x8700, 0xa09d, 0x5000 },
+ { 0x8700, 0xa095, 0x4000 },
+ { 0x8700, 0xa091, 0x3000 },
+ { 0x8700, 0xa08f, 0x2000 },
+ { 0x0700, 0xa08e, 0x0000 },
+ { 0x0700, 0xa090, 0x0000 },
+ { 0x8700, 0xa093, 0x2000 },
+ { 0x0700, 0xa092, 0x0000 },
+ { 0x0700, 0xa094, 0x0000 },
+ { 0x8700, 0xa099, 0x3000 },
+ { 0x8700, 0xa097, 0x2000 },
+ { 0x0700, 0xa096, 0x0000 },
+ { 0x0700, 0xa098, 0x0000 },
+ { 0x8700, 0xa09b, 0x2000 },
+ { 0x0700, 0xa09a, 0x0000 },
+ { 0x0700, 0xa09c, 0x0000 },
+ { 0x8700, 0xa0a5, 0x4000 },
+ { 0x8700, 0xa0a1, 0x3000 },
+ { 0x8700, 0xa09f, 0x2000 },
+ { 0x0700, 0xa09e, 0x0000 },
+ { 0x0700, 0xa0a0, 0x0000 },
+ { 0x8700, 0xa0a3, 0x2000 },
+ { 0x0700, 0xa0a2, 0x0000 },
+ { 0x0700, 0xa0a4, 0x0000 },
+ { 0x8700, 0xa0a9, 0x3000 },
+ { 0x8700, 0xa0a7, 0x2000 },
+ { 0x0700, 0xa0a6, 0x0000 },
+ { 0x0700, 0xa0a8, 0x0000 },
+ { 0x8700, 0xa0ab, 0x2000 },
+ { 0x0700, 0xa0aa, 0x0000 },
+ { 0x0700, 0xa0ac, 0x0000 },
+ { 0x8700, 0xa0bd, 0x5000 },
+ { 0x8700, 0xa0b5, 0x4000 },
+ { 0x8700, 0xa0b1, 0x3000 },
+ { 0x8700, 0xa0af, 0x2000 },
+ { 0x0700, 0xa0ae, 0x0000 },
+ { 0x0700, 0xa0b0, 0x0000 },
+ { 0x8700, 0xa0b3, 0x2000 },
+ { 0x0700, 0xa0b2, 0x0000 },
+ { 0x0700, 0xa0b4, 0x0000 },
+ { 0x8700, 0xa0b9, 0x3000 },
+ { 0x8700, 0xa0b7, 0x2000 },
+ { 0x0700, 0xa0b6, 0x0000 },
+ { 0x0700, 0xa0b8, 0x0000 },
+ { 0x8700, 0xa0bb, 0x2000 },
+ { 0x0700, 0xa0ba, 0x0000 },
+ { 0x0700, 0xa0bc, 0x0000 },
+ { 0x8700, 0xa0c5, 0x4000 },
+ { 0x8700, 0xa0c1, 0x3000 },
+ { 0x8700, 0xa0bf, 0x2000 },
+ { 0x0700, 0xa0be, 0x0000 },
+ { 0x0700, 0xa0c0, 0x0000 },
+ { 0x8700, 0xa0c3, 0x2000 },
+ { 0x0700, 0xa0c2, 0x0000 },
+ { 0x0700, 0xa0c4, 0x0000 },
+ { 0x8700, 0xa0c9, 0x3000 },
+ { 0x8700, 0xa0c7, 0x2000 },
+ { 0x0700, 0xa0c6, 0x0000 },
+ { 0x0700, 0xa0c8, 0x0000 },
+ { 0x8700, 0xa0cb, 0x2000 },
+ { 0x0700, 0xa0ca, 0x0000 },
+ { 0x0700, 0xa0cc, 0x0000 },
+ { 0x8700, 0xa10d, 0x7000 },
+ { 0x8700, 0xa0ed, 0x6000 },
+ { 0x8700, 0xa0dd, 0x5000 },
+ { 0x8700, 0xa0d5, 0x4000 },
+ { 0x8700, 0xa0d1, 0x3000 },
+ { 0x8700, 0xa0cf, 0x2000 },
+ { 0x0700, 0xa0ce, 0x0000 },
+ { 0x0700, 0xa0d0, 0x0000 },
+ { 0x8700, 0xa0d3, 0x2000 },
+ { 0x0700, 0xa0d2, 0x0000 },
+ { 0x0700, 0xa0d4, 0x0000 },
+ { 0x8700, 0xa0d9, 0x3000 },
+ { 0x8700, 0xa0d7, 0x2000 },
+ { 0x0700, 0xa0d6, 0x0000 },
+ { 0x0700, 0xa0d8, 0x0000 },
+ { 0x8700, 0xa0db, 0x2000 },
+ { 0x0700, 0xa0da, 0x0000 },
+ { 0x0700, 0xa0dc, 0x0000 },
+ { 0x8700, 0xa0e5, 0x4000 },
+ { 0x8700, 0xa0e1, 0x3000 },
+ { 0x8700, 0xa0df, 0x2000 },
+ { 0x0700, 0xa0de, 0x0000 },
+ { 0x0700, 0xa0e0, 0x0000 },
+ { 0x8700, 0xa0e3, 0x2000 },
+ { 0x0700, 0xa0e2, 0x0000 },
+ { 0x0700, 0xa0e4, 0x0000 },
+ { 0x8700, 0xa0e9, 0x3000 },
+ { 0x8700, 0xa0e7, 0x2000 },
+ { 0x0700, 0xa0e6, 0x0000 },
+ { 0x0700, 0xa0e8, 0x0000 },
+ { 0x8700, 0xa0eb, 0x2000 },
+ { 0x0700, 0xa0ea, 0x0000 },
+ { 0x0700, 0xa0ec, 0x0000 },
+ { 0x8700, 0xa0fd, 0x5000 },
+ { 0x8700, 0xa0f5, 0x4000 },
+ { 0x8700, 0xa0f1, 0x3000 },
+ { 0x8700, 0xa0ef, 0x2000 },
+ { 0x0700, 0xa0ee, 0x0000 },
+ { 0x0700, 0xa0f0, 0x0000 },
+ { 0x8700, 0xa0f3, 0x2000 },
+ { 0x0700, 0xa0f2, 0x0000 },
+ { 0x0700, 0xa0f4, 0x0000 },
+ { 0x8700, 0xa0f9, 0x3000 },
+ { 0x8700, 0xa0f7, 0x2000 },
+ { 0x0700, 0xa0f6, 0x0000 },
+ { 0x0700, 0xa0f8, 0x0000 },
+ { 0x8700, 0xa0fb, 0x2000 },
+ { 0x0700, 0xa0fa, 0x0000 },
+ { 0x0700, 0xa0fc, 0x0000 },
+ { 0x8700, 0xa105, 0x4000 },
+ { 0x8700, 0xa101, 0x3000 },
+ { 0x8700, 0xa0ff, 0x2000 },
+ { 0x0700, 0xa0fe, 0x0000 },
+ { 0x0700, 0xa100, 0x0000 },
+ { 0x8700, 0xa103, 0x2000 },
+ { 0x0700, 0xa102, 0x0000 },
+ { 0x0700, 0xa104, 0x0000 },
+ { 0x8700, 0xa109, 0x3000 },
+ { 0x8700, 0xa107, 0x2000 },
+ { 0x0700, 0xa106, 0x0000 },
+ { 0x0700, 0xa108, 0x0000 },
+ { 0x8700, 0xa10b, 0x2000 },
+ { 0x0700, 0xa10a, 0x0000 },
+ { 0x0700, 0xa10c, 0x0000 },
+ { 0x8700, 0xa12d, 0x6000 },
+ { 0x8700, 0xa11d, 0x5000 },
+ { 0x8700, 0xa115, 0x4000 },
+ { 0x8700, 0xa111, 0x3000 },
+ { 0x8700, 0xa10f, 0x2000 },
+ { 0x0700, 0xa10e, 0x0000 },
+ { 0x0700, 0xa110, 0x0000 },
+ { 0x8700, 0xa113, 0x2000 },
+ { 0x0700, 0xa112, 0x0000 },
+ { 0x0700, 0xa114, 0x0000 },
+ { 0x8700, 0xa119, 0x3000 },
+ { 0x8700, 0xa117, 0x2000 },
+ { 0x0700, 0xa116, 0x0000 },
+ { 0x0700, 0xa118, 0x0000 },
+ { 0x8700, 0xa11b, 0x2000 },
+ { 0x0700, 0xa11a, 0x0000 },
+ { 0x0700, 0xa11c, 0x0000 },
+ { 0x8700, 0xa125, 0x4000 },
+ { 0x8700, 0xa121, 0x3000 },
+ { 0x8700, 0xa11f, 0x2000 },
+ { 0x0700, 0xa11e, 0x0000 },
+ { 0x0700, 0xa120, 0x0000 },
+ { 0x8700, 0xa123, 0x2000 },
+ { 0x0700, 0xa122, 0x0000 },
+ { 0x0700, 0xa124, 0x0000 },
+ { 0x8700, 0xa129, 0x3000 },
+ { 0x8700, 0xa127, 0x2000 },
+ { 0x0700, 0xa126, 0x0000 },
+ { 0x0700, 0xa128, 0x0000 },
+ { 0x8700, 0xa12b, 0x2000 },
+ { 0x0700, 0xa12a, 0x0000 },
+ { 0x0700, 0xa12c, 0x0000 },
+ { 0x8700, 0xa13d, 0x5000 },
+ { 0x8700, 0xa135, 0x4000 },
+ { 0x8700, 0xa131, 0x3000 },
+ { 0x8700, 0xa12f, 0x2000 },
+ { 0x0700, 0xa12e, 0x0000 },
+ { 0x0700, 0xa130, 0x0000 },
+ { 0x8700, 0xa133, 0x2000 },
+ { 0x0700, 0xa132, 0x0000 },
+ { 0x0700, 0xa134, 0x0000 },
+ { 0x8700, 0xa139, 0x3000 },
+ { 0x8700, 0xa137, 0x2000 },
+ { 0x0700, 0xa136, 0x0000 },
+ { 0x0700, 0xa138, 0x0000 },
+ { 0x8700, 0xa13b, 0x2000 },
+ { 0x0700, 0xa13a, 0x0000 },
+ { 0x0700, 0xa13c, 0x0000 },
+ { 0x8700, 0xa145, 0x4000 },
+ { 0x8700, 0xa141, 0x3000 },
+ { 0x8700, 0xa13f, 0x2000 },
+ { 0x0700, 0xa13e, 0x0000 },
+ { 0x0700, 0xa140, 0x0000 },
+ { 0x8700, 0xa143, 0x2000 },
+ { 0x0700, 0xa142, 0x0000 },
+ { 0x0700, 0xa144, 0x0000 },
+ { 0x8700, 0xa149, 0x3000 },
+ { 0x8700, 0xa147, 0x2000 },
+ { 0x0700, 0xa146, 0x0000 },
+ { 0x0700, 0xa148, 0x0000 },
+ { 0x8700, 0xa14b, 0x2000 },
+ { 0x0700, 0xa14a, 0x0000 },
+ { 0x0700, 0xa14c, 0x0000 },
+ { 0x8700, 0xa24d, 0x9000 },
+ { 0x8700, 0xa1cd, 0x8000 },
+ { 0x8700, 0xa18d, 0x7000 },
+ { 0x8700, 0xa16d, 0x6000 },
+ { 0x8700, 0xa15d, 0x5000 },
+ { 0x8700, 0xa155, 0x4000 },
+ { 0x8700, 0xa151, 0x3000 },
+ { 0x8700, 0xa14f, 0x2000 },
+ { 0x0700, 0xa14e, 0x0000 },
+ { 0x0700, 0xa150, 0x0000 },
+ { 0x8700, 0xa153, 0x2000 },
+ { 0x0700, 0xa152, 0x0000 },
+ { 0x0700, 0xa154, 0x0000 },
+ { 0x8700, 0xa159, 0x3000 },
+ { 0x8700, 0xa157, 0x2000 },
+ { 0x0700, 0xa156, 0x0000 },
+ { 0x0700, 0xa158, 0x0000 },
+ { 0x8700, 0xa15b, 0x2000 },
+ { 0x0700, 0xa15a, 0x0000 },
+ { 0x0700, 0xa15c, 0x0000 },
+ { 0x8700, 0xa165, 0x4000 },
+ { 0x8700, 0xa161, 0x3000 },
+ { 0x8700, 0xa15f, 0x2000 },
+ { 0x0700, 0xa15e, 0x0000 },
+ { 0x0700, 0xa160, 0x0000 },
+ { 0x8700, 0xa163, 0x2000 },
+ { 0x0700, 0xa162, 0x0000 },
+ { 0x0700, 0xa164, 0x0000 },
+ { 0x8700, 0xa169, 0x3000 },
+ { 0x8700, 0xa167, 0x2000 },
+ { 0x0700, 0xa166, 0x0000 },
+ { 0x0700, 0xa168, 0x0000 },
+ { 0x8700, 0xa16b, 0x2000 },
+ { 0x0700, 0xa16a, 0x0000 },
+ { 0x0700, 0xa16c, 0x0000 },
+ { 0x8700, 0xa17d, 0x5000 },
+ { 0x8700, 0xa175, 0x4000 },
+ { 0x8700, 0xa171, 0x3000 },
+ { 0x8700, 0xa16f, 0x2000 },
+ { 0x0700, 0xa16e, 0x0000 },
+ { 0x0700, 0xa170, 0x0000 },
+ { 0x8700, 0xa173, 0x2000 },
+ { 0x0700, 0xa172, 0x0000 },
+ { 0x0700, 0xa174, 0x0000 },
+ { 0x8700, 0xa179, 0x3000 },
+ { 0x8700, 0xa177, 0x2000 },
+ { 0x0700, 0xa176, 0x0000 },
+ { 0x0700, 0xa178, 0x0000 },
+ { 0x8700, 0xa17b, 0x2000 },
+ { 0x0700, 0xa17a, 0x0000 },
+ { 0x0700, 0xa17c, 0x0000 },
+ { 0x8700, 0xa185, 0x4000 },
+ { 0x8700, 0xa181, 0x3000 },
+ { 0x8700, 0xa17f, 0x2000 },
+ { 0x0700, 0xa17e, 0x0000 },
+ { 0x0700, 0xa180, 0x0000 },
+ { 0x8700, 0xa183, 0x2000 },
+ { 0x0700, 0xa182, 0x0000 },
+ { 0x0700, 0xa184, 0x0000 },
+ { 0x8700, 0xa189, 0x3000 },
+ { 0x8700, 0xa187, 0x2000 },
+ { 0x0700, 0xa186, 0x0000 },
+ { 0x0700, 0xa188, 0x0000 },
+ { 0x8700, 0xa18b, 0x2000 },
+ { 0x0700, 0xa18a, 0x0000 },
+ { 0x0700, 0xa18c, 0x0000 },
+ { 0x8700, 0xa1ad, 0x6000 },
+ { 0x8700, 0xa19d, 0x5000 },
+ { 0x8700, 0xa195, 0x4000 },
+ { 0x8700, 0xa191, 0x3000 },
+ { 0x8700, 0xa18f, 0x2000 },
+ { 0x0700, 0xa18e, 0x0000 },
+ { 0x0700, 0xa190, 0x0000 },
+ { 0x8700, 0xa193, 0x2000 },
+ { 0x0700, 0xa192, 0x0000 },
+ { 0x0700, 0xa194, 0x0000 },
+ { 0x8700, 0xa199, 0x3000 },
+ { 0x8700, 0xa197, 0x2000 },
+ { 0x0700, 0xa196, 0x0000 },
+ { 0x0700, 0xa198, 0x0000 },
+ { 0x8700, 0xa19b, 0x2000 },
+ { 0x0700, 0xa19a, 0x0000 },
+ { 0x0700, 0xa19c, 0x0000 },
+ { 0x8700, 0xa1a5, 0x4000 },
+ { 0x8700, 0xa1a1, 0x3000 },
+ { 0x8700, 0xa19f, 0x2000 },
+ { 0x0700, 0xa19e, 0x0000 },
+ { 0x0700, 0xa1a0, 0x0000 },
+ { 0x8700, 0xa1a3, 0x2000 },
+ { 0x0700, 0xa1a2, 0x0000 },
+ { 0x0700, 0xa1a4, 0x0000 },
+ { 0x8700, 0xa1a9, 0x3000 },
+ { 0x8700, 0xa1a7, 0x2000 },
+ { 0x0700, 0xa1a6, 0x0000 },
+ { 0x0700, 0xa1a8, 0x0000 },
+ { 0x8700, 0xa1ab, 0x2000 },
+ { 0x0700, 0xa1aa, 0x0000 },
+ { 0x0700, 0xa1ac, 0x0000 },
+ { 0x8700, 0xa1bd, 0x5000 },
+ { 0x8700, 0xa1b5, 0x4000 },
+ { 0x8700, 0xa1b1, 0x3000 },
+ { 0x8700, 0xa1af, 0x2000 },
+ { 0x0700, 0xa1ae, 0x0000 },
+ { 0x0700, 0xa1b0, 0x0000 },
+ { 0x8700, 0xa1b3, 0x2000 },
+ { 0x0700, 0xa1b2, 0x0000 },
+ { 0x0700, 0xa1b4, 0x0000 },
+ { 0x8700, 0xa1b9, 0x3000 },
+ { 0x8700, 0xa1b7, 0x2000 },
+ { 0x0700, 0xa1b6, 0x0000 },
+ { 0x0700, 0xa1b8, 0x0000 },
+ { 0x8700, 0xa1bb, 0x2000 },
+ { 0x0700, 0xa1ba, 0x0000 },
+ { 0x0700, 0xa1bc, 0x0000 },
+ { 0x8700, 0xa1c5, 0x4000 },
+ { 0x8700, 0xa1c1, 0x3000 },
+ { 0x8700, 0xa1bf, 0x2000 },
+ { 0x0700, 0xa1be, 0x0000 },
+ { 0x0700, 0xa1c0, 0x0000 },
+ { 0x8700, 0xa1c3, 0x2000 },
+ { 0x0700, 0xa1c2, 0x0000 },
+ { 0x0700, 0xa1c4, 0x0000 },
+ { 0x8700, 0xa1c9, 0x3000 },
+ { 0x8700, 0xa1c7, 0x2000 },
+ { 0x0700, 0xa1c6, 0x0000 },
+ { 0x0700, 0xa1c8, 0x0000 },
+ { 0x8700, 0xa1cb, 0x2000 },
+ { 0x0700, 0xa1ca, 0x0000 },
+ { 0x0700, 0xa1cc, 0x0000 },
+ { 0x8700, 0xa20d, 0x7000 },
+ { 0x8700, 0xa1ed, 0x6000 },
+ { 0x8700, 0xa1dd, 0x5000 },
+ { 0x8700, 0xa1d5, 0x4000 },
+ { 0x8700, 0xa1d1, 0x3000 },
+ { 0x8700, 0xa1cf, 0x2000 },
+ { 0x0700, 0xa1ce, 0x0000 },
+ { 0x0700, 0xa1d0, 0x0000 },
+ { 0x8700, 0xa1d3, 0x2000 },
+ { 0x0700, 0xa1d2, 0x0000 },
+ { 0x0700, 0xa1d4, 0x0000 },
+ { 0x8700, 0xa1d9, 0x3000 },
+ { 0x8700, 0xa1d7, 0x2000 },
+ { 0x0700, 0xa1d6, 0x0000 },
+ { 0x0700, 0xa1d8, 0x0000 },
+ { 0x8700, 0xa1db, 0x2000 },
+ { 0x0700, 0xa1da, 0x0000 },
+ { 0x0700, 0xa1dc, 0x0000 },
+ { 0x8700, 0xa1e5, 0x4000 },
+ { 0x8700, 0xa1e1, 0x3000 },
+ { 0x8700, 0xa1df, 0x2000 },
+ { 0x0700, 0xa1de, 0x0000 },
+ { 0x0700, 0xa1e0, 0x0000 },
+ { 0x8700, 0xa1e3, 0x2000 },
+ { 0x0700, 0xa1e2, 0x0000 },
+ { 0x0700, 0xa1e4, 0x0000 },
+ { 0x8700, 0xa1e9, 0x3000 },
+ { 0x8700, 0xa1e7, 0x2000 },
+ { 0x0700, 0xa1e6, 0x0000 },
+ { 0x0700, 0xa1e8, 0x0000 },
+ { 0x8700, 0xa1eb, 0x2000 },
+ { 0x0700, 0xa1ea, 0x0000 },
+ { 0x0700, 0xa1ec, 0x0000 },
+ { 0x8700, 0xa1fd, 0x5000 },
+ { 0x8700, 0xa1f5, 0x4000 },
+ { 0x8700, 0xa1f1, 0x3000 },
+ { 0x8700, 0xa1ef, 0x2000 },
+ { 0x0700, 0xa1ee, 0x0000 },
+ { 0x0700, 0xa1f0, 0x0000 },
+ { 0x8700, 0xa1f3, 0x2000 },
+ { 0x0700, 0xa1f2, 0x0000 },
+ { 0x0700, 0xa1f4, 0x0000 },
+ { 0x8700, 0xa1f9, 0x3000 },
+ { 0x8700, 0xa1f7, 0x2000 },
+ { 0x0700, 0xa1f6, 0x0000 },
+ { 0x0700, 0xa1f8, 0x0000 },
+ { 0x8700, 0xa1fb, 0x2000 },
+ { 0x0700, 0xa1fa, 0x0000 },
+ { 0x0700, 0xa1fc, 0x0000 },
+ { 0x8700, 0xa205, 0x4000 },
+ { 0x8700, 0xa201, 0x3000 },
+ { 0x8700, 0xa1ff, 0x2000 },
+ { 0x0700, 0xa1fe, 0x0000 },
+ { 0x0700, 0xa200, 0x0000 },
+ { 0x8700, 0xa203, 0x2000 },
+ { 0x0700, 0xa202, 0x0000 },
+ { 0x0700, 0xa204, 0x0000 },
+ { 0x8700, 0xa209, 0x3000 },
+ { 0x8700, 0xa207, 0x2000 },
+ { 0x0700, 0xa206, 0x0000 },
+ { 0x0700, 0xa208, 0x0000 },
+ { 0x8700, 0xa20b, 0x2000 },
+ { 0x0700, 0xa20a, 0x0000 },
+ { 0x0700, 0xa20c, 0x0000 },
+ { 0x8700, 0xa22d, 0x6000 },
+ { 0x8700, 0xa21d, 0x5000 },
+ { 0x8700, 0xa215, 0x4000 },
+ { 0x8700, 0xa211, 0x3000 },
+ { 0x8700, 0xa20f, 0x2000 },
+ { 0x0700, 0xa20e, 0x0000 },
+ { 0x0700, 0xa210, 0x0000 },
+ { 0x8700, 0xa213, 0x2000 },
+ { 0x0700, 0xa212, 0x0000 },
+ { 0x0700, 0xa214, 0x0000 },
+ { 0x8700, 0xa219, 0x3000 },
+ { 0x8700, 0xa217, 0x2000 },
+ { 0x0700, 0xa216, 0x0000 },
+ { 0x0700, 0xa218, 0x0000 },
+ { 0x8700, 0xa21b, 0x2000 },
+ { 0x0700, 0xa21a, 0x0000 },
+ { 0x0700, 0xa21c, 0x0000 },
+ { 0x8700, 0xa225, 0x4000 },
+ { 0x8700, 0xa221, 0x3000 },
+ { 0x8700, 0xa21f, 0x2000 },
+ { 0x0700, 0xa21e, 0x0000 },
+ { 0x0700, 0xa220, 0x0000 },
+ { 0x8700, 0xa223, 0x2000 },
+ { 0x0700, 0xa222, 0x0000 },
+ { 0x0700, 0xa224, 0x0000 },
+ { 0x8700, 0xa229, 0x3000 },
+ { 0x8700, 0xa227, 0x2000 },
+ { 0x0700, 0xa226, 0x0000 },
+ { 0x0700, 0xa228, 0x0000 },
+ { 0x8700, 0xa22b, 0x2000 },
+ { 0x0700, 0xa22a, 0x0000 },
+ { 0x0700, 0xa22c, 0x0000 },
+ { 0x8700, 0xa23d, 0x5000 },
+ { 0x8700, 0xa235, 0x4000 },
+ { 0x8700, 0xa231, 0x3000 },
+ { 0x8700, 0xa22f, 0x2000 },
+ { 0x0700, 0xa22e, 0x0000 },
+ { 0x0700, 0xa230, 0x0000 },
+ { 0x8700, 0xa233, 0x2000 },
+ { 0x0700, 0xa232, 0x0000 },
+ { 0x0700, 0xa234, 0x0000 },
+ { 0x8700, 0xa239, 0x3000 },
+ { 0x8700, 0xa237, 0x2000 },
+ { 0x0700, 0xa236, 0x0000 },
+ { 0x0700, 0xa238, 0x0000 },
+ { 0x8700, 0xa23b, 0x2000 },
+ { 0x0700, 0xa23a, 0x0000 },
+ { 0x0700, 0xa23c, 0x0000 },
+ { 0x8700, 0xa245, 0x4000 },
+ { 0x8700, 0xa241, 0x3000 },
+ { 0x8700, 0xa23f, 0x2000 },
+ { 0x0700, 0xa23e, 0x0000 },
+ { 0x0700, 0xa240, 0x0000 },
+ { 0x8700, 0xa243, 0x2000 },
+ { 0x0700, 0xa242, 0x0000 },
+ { 0x0700, 0xa244, 0x0000 },
+ { 0x8700, 0xa249, 0x3000 },
+ { 0x8700, 0xa247, 0x2000 },
+ { 0x0700, 0xa246, 0x0000 },
+ { 0x0700, 0xa248, 0x0000 },
+ { 0x8700, 0xa24b, 0x2000 },
+ { 0x0700, 0xa24a, 0x0000 },
+ { 0x0700, 0xa24c, 0x0000 },
+ { 0x8700, 0xa2cd, 0x8000 },
+ { 0x8700, 0xa28d, 0x7000 },
+ { 0x8700, 0xa26d, 0x6000 },
+ { 0x8700, 0xa25d, 0x5000 },
+ { 0x8700, 0xa255, 0x4000 },
+ { 0x8700, 0xa251, 0x3000 },
+ { 0x8700, 0xa24f, 0x2000 },
+ { 0x0700, 0xa24e, 0x0000 },
+ { 0x0700, 0xa250, 0x0000 },
+ { 0x8700, 0xa253, 0x2000 },
+ { 0x0700, 0xa252, 0x0000 },
+ { 0x0700, 0xa254, 0x0000 },
+ { 0x8700, 0xa259, 0x3000 },
+ { 0x8700, 0xa257, 0x2000 },
+ { 0x0700, 0xa256, 0x0000 },
+ { 0x0700, 0xa258, 0x0000 },
+ { 0x8700, 0xa25b, 0x2000 },
+ { 0x0700, 0xa25a, 0x0000 },
+ { 0x0700, 0xa25c, 0x0000 },
+ { 0x8700, 0xa265, 0x4000 },
+ { 0x8700, 0xa261, 0x3000 },
+ { 0x8700, 0xa25f, 0x2000 },
+ { 0x0700, 0xa25e, 0x0000 },
+ { 0x0700, 0xa260, 0x0000 },
+ { 0x8700, 0xa263, 0x2000 },
+ { 0x0700, 0xa262, 0x0000 },
+ { 0x0700, 0xa264, 0x0000 },
+ { 0x8700, 0xa269, 0x3000 },
+ { 0x8700, 0xa267, 0x2000 },
+ { 0x0700, 0xa266, 0x0000 },
+ { 0x0700, 0xa268, 0x0000 },
+ { 0x8700, 0xa26b, 0x2000 },
+ { 0x0700, 0xa26a, 0x0000 },
+ { 0x0700, 0xa26c, 0x0000 },
+ { 0x8700, 0xa27d, 0x5000 },
+ { 0x8700, 0xa275, 0x4000 },
+ { 0x8700, 0xa271, 0x3000 },
+ { 0x8700, 0xa26f, 0x2000 },
+ { 0x0700, 0xa26e, 0x0000 },
+ { 0x0700, 0xa270, 0x0000 },
+ { 0x8700, 0xa273, 0x2000 },
+ { 0x0700, 0xa272, 0x0000 },
+ { 0x0700, 0xa274, 0x0000 },
+ { 0x8700, 0xa279, 0x3000 },
+ { 0x8700, 0xa277, 0x2000 },
+ { 0x0700, 0xa276, 0x0000 },
+ { 0x0700, 0xa278, 0x0000 },
+ { 0x8700, 0xa27b, 0x2000 },
+ { 0x0700, 0xa27a, 0x0000 },
+ { 0x0700, 0xa27c, 0x0000 },
+ { 0x8700, 0xa285, 0x4000 },
+ { 0x8700, 0xa281, 0x3000 },
+ { 0x8700, 0xa27f, 0x2000 },
+ { 0x0700, 0xa27e, 0x0000 },
+ { 0x0700, 0xa280, 0x0000 },
+ { 0x8700, 0xa283, 0x2000 },
+ { 0x0700, 0xa282, 0x0000 },
+ { 0x0700, 0xa284, 0x0000 },
+ { 0x8700, 0xa289, 0x3000 },
+ { 0x8700, 0xa287, 0x2000 },
+ { 0x0700, 0xa286, 0x0000 },
+ { 0x0700, 0xa288, 0x0000 },
+ { 0x8700, 0xa28b, 0x2000 },
+ { 0x0700, 0xa28a, 0x0000 },
+ { 0x0700, 0xa28c, 0x0000 },
+ { 0x8700, 0xa2ad, 0x6000 },
+ { 0x8700, 0xa29d, 0x5000 },
+ { 0x8700, 0xa295, 0x4000 },
+ { 0x8700, 0xa291, 0x3000 },
+ { 0x8700, 0xa28f, 0x2000 },
+ { 0x0700, 0xa28e, 0x0000 },
+ { 0x0700, 0xa290, 0x0000 },
+ { 0x8700, 0xa293, 0x2000 },
+ { 0x0700, 0xa292, 0x0000 },
+ { 0x0700, 0xa294, 0x0000 },
+ { 0x8700, 0xa299, 0x3000 },
+ { 0x8700, 0xa297, 0x2000 },
+ { 0x0700, 0xa296, 0x0000 },
+ { 0x0700, 0xa298, 0x0000 },
+ { 0x8700, 0xa29b, 0x2000 },
+ { 0x0700, 0xa29a, 0x0000 },
+ { 0x0700, 0xa29c, 0x0000 },
+ { 0x8700, 0xa2a5, 0x4000 },
+ { 0x8700, 0xa2a1, 0x3000 },
+ { 0x8700, 0xa29f, 0x2000 },
+ { 0x0700, 0xa29e, 0x0000 },
+ { 0x0700, 0xa2a0, 0x0000 },
+ { 0x8700, 0xa2a3, 0x2000 },
+ { 0x0700, 0xa2a2, 0x0000 },
+ { 0x0700, 0xa2a4, 0x0000 },
+ { 0x8700, 0xa2a9, 0x3000 },
+ { 0x8700, 0xa2a7, 0x2000 },
+ { 0x0700, 0xa2a6, 0x0000 },
+ { 0x0700, 0xa2a8, 0x0000 },
+ { 0x8700, 0xa2ab, 0x2000 },
+ { 0x0700, 0xa2aa, 0x0000 },
+ { 0x0700, 0xa2ac, 0x0000 },
+ { 0x8700, 0xa2bd, 0x5000 },
+ { 0x8700, 0xa2b5, 0x4000 },
+ { 0x8700, 0xa2b1, 0x3000 },
+ { 0x8700, 0xa2af, 0x2000 },
+ { 0x0700, 0xa2ae, 0x0000 },
+ { 0x0700, 0xa2b0, 0x0000 },
+ { 0x8700, 0xa2b3, 0x2000 },
+ { 0x0700, 0xa2b2, 0x0000 },
+ { 0x0700, 0xa2b4, 0x0000 },
+ { 0x8700, 0xa2b9, 0x3000 },
+ { 0x8700, 0xa2b7, 0x2000 },
+ { 0x0700, 0xa2b6, 0x0000 },
+ { 0x0700, 0xa2b8, 0x0000 },
+ { 0x8700, 0xa2bb, 0x2000 },
+ { 0x0700, 0xa2ba, 0x0000 },
+ { 0x0700, 0xa2bc, 0x0000 },
+ { 0x8700, 0xa2c5, 0x4000 },
+ { 0x8700, 0xa2c1, 0x3000 },
+ { 0x8700, 0xa2bf, 0x2000 },
+ { 0x0700, 0xa2be, 0x0000 },
+ { 0x0700, 0xa2c0, 0x0000 },
+ { 0x8700, 0xa2c3, 0x2000 },
+ { 0x0700, 0xa2c2, 0x0000 },
+ { 0x0700, 0xa2c4, 0x0000 },
+ { 0x8700, 0xa2c9, 0x3000 },
+ { 0x8700, 0xa2c7, 0x2000 },
+ { 0x0700, 0xa2c6, 0x0000 },
+ { 0x0700, 0xa2c8, 0x0000 },
+ { 0x8700, 0xa2cb, 0x2000 },
+ { 0x0700, 0xa2ca, 0x0000 },
+ { 0x0700, 0xa2cc, 0x0000 },
+ { 0x8700, 0xa30d, 0x7000 },
+ { 0x8700, 0xa2ed, 0x6000 },
+ { 0x8700, 0xa2dd, 0x5000 },
+ { 0x8700, 0xa2d5, 0x4000 },
+ { 0x8700, 0xa2d1, 0x3000 },
+ { 0x8700, 0xa2cf, 0x2000 },
+ { 0x0700, 0xa2ce, 0x0000 },
+ { 0x0700, 0xa2d0, 0x0000 },
+ { 0x8700, 0xa2d3, 0x2000 },
+ { 0x0700, 0xa2d2, 0x0000 },
+ { 0x0700, 0xa2d4, 0x0000 },
+ { 0x8700, 0xa2d9, 0x3000 },
+ { 0x8700, 0xa2d7, 0x2000 },
+ { 0x0700, 0xa2d6, 0x0000 },
+ { 0x0700, 0xa2d8, 0x0000 },
+ { 0x8700, 0xa2db, 0x2000 },
+ { 0x0700, 0xa2da, 0x0000 },
+ { 0x0700, 0xa2dc, 0x0000 },
+ { 0x8700, 0xa2e5, 0x4000 },
+ { 0x8700, 0xa2e1, 0x3000 },
+ { 0x8700, 0xa2df, 0x2000 },
+ { 0x0700, 0xa2de, 0x0000 },
+ { 0x0700, 0xa2e0, 0x0000 },
+ { 0x8700, 0xa2e3, 0x2000 },
+ { 0x0700, 0xa2e2, 0x0000 },
+ { 0x0700, 0xa2e4, 0x0000 },
+ { 0x8700, 0xa2e9, 0x3000 },
+ { 0x8700, 0xa2e7, 0x2000 },
+ { 0x0700, 0xa2e6, 0x0000 },
+ { 0x0700, 0xa2e8, 0x0000 },
+ { 0x8700, 0xa2eb, 0x2000 },
+ { 0x0700, 0xa2ea, 0x0000 },
+ { 0x0700, 0xa2ec, 0x0000 },
+ { 0x8700, 0xa2fd, 0x5000 },
+ { 0x8700, 0xa2f5, 0x4000 },
+ { 0x8700, 0xa2f1, 0x3000 },
+ { 0x8700, 0xa2ef, 0x2000 },
+ { 0x0700, 0xa2ee, 0x0000 },
+ { 0x0700, 0xa2f0, 0x0000 },
+ { 0x8700, 0xa2f3, 0x2000 },
+ { 0x0700, 0xa2f2, 0x0000 },
+ { 0x0700, 0xa2f4, 0x0000 },
+ { 0x8700, 0xa2f9, 0x3000 },
+ { 0x8700, 0xa2f7, 0x2000 },
+ { 0x0700, 0xa2f6, 0x0000 },
+ { 0x0700, 0xa2f8, 0x0000 },
+ { 0x8700, 0xa2fb, 0x2000 },
+ { 0x0700, 0xa2fa, 0x0000 },
+ { 0x0700, 0xa2fc, 0x0000 },
+ { 0x8700, 0xa305, 0x4000 },
+ { 0x8700, 0xa301, 0x3000 },
+ { 0x8700, 0xa2ff, 0x2000 },
+ { 0x0700, 0xa2fe, 0x0000 },
+ { 0x0700, 0xa300, 0x0000 },
+ { 0x8700, 0xa303, 0x2000 },
+ { 0x0700, 0xa302, 0x0000 },
+ { 0x0700, 0xa304, 0x0000 },
+ { 0x8700, 0xa309, 0x3000 },
+ { 0x8700, 0xa307, 0x2000 },
+ { 0x0700, 0xa306, 0x0000 },
+ { 0x0700, 0xa308, 0x0000 },
+ { 0x8700, 0xa30b, 0x2000 },
+ { 0x0700, 0xa30a, 0x0000 },
+ { 0x0700, 0xa30c, 0x0000 },
+ { 0x8700, 0xa32d, 0x6000 },
+ { 0x8700, 0xa31d, 0x5000 },
+ { 0x8700, 0xa315, 0x4000 },
+ { 0x8700, 0xa311, 0x3000 },
+ { 0x8700, 0xa30f, 0x2000 },
+ { 0x0700, 0xa30e, 0x0000 },
+ { 0x0700, 0xa310, 0x0000 },
+ { 0x8700, 0xa313, 0x2000 },
+ { 0x0700, 0xa312, 0x0000 },
+ { 0x0700, 0xa314, 0x0000 },
+ { 0x8700, 0xa319, 0x3000 },
+ { 0x8700, 0xa317, 0x2000 },
+ { 0x0700, 0xa316, 0x0000 },
+ { 0x0700, 0xa318, 0x0000 },
+ { 0x8700, 0xa31b, 0x2000 },
+ { 0x0700, 0xa31a, 0x0000 },
+ { 0x0700, 0xa31c, 0x0000 },
+ { 0x8700, 0xa325, 0x4000 },
+ { 0x8700, 0xa321, 0x3000 },
+ { 0x8700, 0xa31f, 0x2000 },
+ { 0x0700, 0xa31e, 0x0000 },
+ { 0x0700, 0xa320, 0x0000 },
+ { 0x8700, 0xa323, 0x2000 },
+ { 0x0700, 0xa322, 0x0000 },
+ { 0x0700, 0xa324, 0x0000 },
+ { 0x8700, 0xa329, 0x3000 },
+ { 0x8700, 0xa327, 0x2000 },
+ { 0x0700, 0xa326, 0x0000 },
+ { 0x0700, 0xa328, 0x0000 },
+ { 0x8700, 0xa32b, 0x2000 },
+ { 0x0700, 0xa32a, 0x0000 },
+ { 0x0700, 0xa32c, 0x0000 },
+ { 0x8700, 0xa33d, 0x5000 },
+ { 0x8700, 0xa335, 0x4000 },
+ { 0x8700, 0xa331, 0x3000 },
+ { 0x8700, 0xa32f, 0x2000 },
+ { 0x0700, 0xa32e, 0x0000 },
+ { 0x0700, 0xa330, 0x0000 },
+ { 0x8700, 0xa333, 0x2000 },
+ { 0x0700, 0xa332, 0x0000 },
+ { 0x0700, 0xa334, 0x0000 },
+ { 0x8700, 0xa339, 0x3000 },
+ { 0x8700, 0xa337, 0x2000 },
+ { 0x0700, 0xa336, 0x0000 },
+ { 0x0700, 0xa338, 0x0000 },
+ { 0x8700, 0xa33b, 0x2000 },
+ { 0x0700, 0xa33a, 0x0000 },
+ { 0x0700, 0xa33c, 0x0000 },
+ { 0x8700, 0xa345, 0x4000 },
+ { 0x8700, 0xa341, 0x3000 },
+ { 0x8700, 0xa33f, 0x2000 },
+ { 0x0700, 0xa33e, 0x0000 },
+ { 0x0700, 0xa340, 0x0000 },
+ { 0x8700, 0xa343, 0x2000 },
+ { 0x0700, 0xa342, 0x0000 },
+ { 0x0700, 0xa344, 0x0000 },
+ { 0x8700, 0xa349, 0x3000 },
+ { 0x8700, 0xa347, 0x2000 },
+ { 0x0700, 0xa346, 0x0000 },
+ { 0x0700, 0xa348, 0x0000 },
+ { 0x8700, 0xa34b, 0x2000 },
+ { 0x0700, 0xa34a, 0x0000 },
+ { 0x0700, 0xa34c, 0x0000 },
+ { 0x8700, 0xfc4d, 0xb000 },
+ { 0x8700, 0xf97f, 0xa000 },
+ { 0x8700, 0xa44d, 0x9000 },
+ { 0x8700, 0xa3cd, 0x8000 },
+ { 0x8700, 0xa38d, 0x7000 },
+ { 0x8700, 0xa36d, 0x6000 },
+ { 0x8700, 0xa35d, 0x5000 },
+ { 0x8700, 0xa355, 0x4000 },
+ { 0x8700, 0xa351, 0x3000 },
+ { 0x8700, 0xa34f, 0x2000 },
+ { 0x0700, 0xa34e, 0x0000 },
+ { 0x0700, 0xa350, 0x0000 },
+ { 0x8700, 0xa353, 0x2000 },
+ { 0x0700, 0xa352, 0x0000 },
+ { 0x0700, 0xa354, 0x0000 },
+ { 0x8700, 0xa359, 0x3000 },
+ { 0x8700, 0xa357, 0x2000 },
+ { 0x0700, 0xa356, 0x0000 },
+ { 0x0700, 0xa358, 0x0000 },
+ { 0x8700, 0xa35b, 0x2000 },
+ { 0x0700, 0xa35a, 0x0000 },
+ { 0x0700, 0xa35c, 0x0000 },
+ { 0x8700, 0xa365, 0x4000 },
+ { 0x8700, 0xa361, 0x3000 },
+ { 0x8700, 0xa35f, 0x2000 },
+ { 0x0700, 0xa35e, 0x0000 },
+ { 0x0700, 0xa360, 0x0000 },
+ { 0x8700, 0xa363, 0x2000 },
+ { 0x0700, 0xa362, 0x0000 },
+ { 0x0700, 0xa364, 0x0000 },
+ { 0x8700, 0xa369, 0x3000 },
+ { 0x8700, 0xa367, 0x2000 },
+ { 0x0700, 0xa366, 0x0000 },
+ { 0x0700, 0xa368, 0x0000 },
+ { 0x8700, 0xa36b, 0x2000 },
+ { 0x0700, 0xa36a, 0x0000 },
+ { 0x0700, 0xa36c, 0x0000 },
+ { 0x8700, 0xa37d, 0x5000 },
+ { 0x8700, 0xa375, 0x4000 },
+ { 0x8700, 0xa371, 0x3000 },
+ { 0x8700, 0xa36f, 0x2000 },
+ { 0x0700, 0xa36e, 0x0000 },
+ { 0x0700, 0xa370, 0x0000 },
+ { 0x8700, 0xa373, 0x2000 },
+ { 0x0700, 0xa372, 0x0000 },
+ { 0x0700, 0xa374, 0x0000 },
+ { 0x8700, 0xa379, 0x3000 },
+ { 0x8700, 0xa377, 0x2000 },
+ { 0x0700, 0xa376, 0x0000 },
+ { 0x0700, 0xa378, 0x0000 },
+ { 0x8700, 0xa37b, 0x2000 },
+ { 0x0700, 0xa37a, 0x0000 },
+ { 0x0700, 0xa37c, 0x0000 },
+ { 0x8700, 0xa385, 0x4000 },
+ { 0x8700, 0xa381, 0x3000 },
+ { 0x8700, 0xa37f, 0x2000 },
+ { 0x0700, 0xa37e, 0x0000 },
+ { 0x0700, 0xa380, 0x0000 },
+ { 0x8700, 0xa383, 0x2000 },
+ { 0x0700, 0xa382, 0x0000 },
+ { 0x0700, 0xa384, 0x0000 },
+ { 0x8700, 0xa389, 0x3000 },
+ { 0x8700, 0xa387, 0x2000 },
+ { 0x0700, 0xa386, 0x0000 },
+ { 0x0700, 0xa388, 0x0000 },
+ { 0x8700, 0xa38b, 0x2000 },
+ { 0x0700, 0xa38a, 0x0000 },
+ { 0x0700, 0xa38c, 0x0000 },
+ { 0x8700, 0xa3ad, 0x6000 },
+ { 0x8700, 0xa39d, 0x5000 },
+ { 0x8700, 0xa395, 0x4000 },
+ { 0x8700, 0xa391, 0x3000 },
+ { 0x8700, 0xa38f, 0x2000 },
+ { 0x0700, 0xa38e, 0x0000 },
+ { 0x0700, 0xa390, 0x0000 },
+ { 0x8700, 0xa393, 0x2000 },
+ { 0x0700, 0xa392, 0x0000 },
+ { 0x0700, 0xa394, 0x0000 },
+ { 0x8700, 0xa399, 0x3000 },
+ { 0x8700, 0xa397, 0x2000 },
+ { 0x0700, 0xa396, 0x0000 },
+ { 0x0700, 0xa398, 0x0000 },
+ { 0x8700, 0xa39b, 0x2000 },
+ { 0x0700, 0xa39a, 0x0000 },
+ { 0x0700, 0xa39c, 0x0000 },
+ { 0x8700, 0xa3a5, 0x4000 },
+ { 0x8700, 0xa3a1, 0x3000 },
+ { 0x8700, 0xa39f, 0x2000 },
+ { 0x0700, 0xa39e, 0x0000 },
+ { 0x0700, 0xa3a0, 0x0000 },
+ { 0x8700, 0xa3a3, 0x2000 },
+ { 0x0700, 0xa3a2, 0x0000 },
+ { 0x0700, 0xa3a4, 0x0000 },
+ { 0x8700, 0xa3a9, 0x3000 },
+ { 0x8700, 0xa3a7, 0x2000 },
+ { 0x0700, 0xa3a6, 0x0000 },
+ { 0x0700, 0xa3a8, 0x0000 },
+ { 0x8700, 0xa3ab, 0x2000 },
+ { 0x0700, 0xa3aa, 0x0000 },
+ { 0x0700, 0xa3ac, 0x0000 },
+ { 0x8700, 0xa3bd, 0x5000 },
+ { 0x8700, 0xa3b5, 0x4000 },
+ { 0x8700, 0xa3b1, 0x3000 },
+ { 0x8700, 0xa3af, 0x2000 },
+ { 0x0700, 0xa3ae, 0x0000 },
+ { 0x0700, 0xa3b0, 0x0000 },
+ { 0x8700, 0xa3b3, 0x2000 },
+ { 0x0700, 0xa3b2, 0x0000 },
+ { 0x0700, 0xa3b4, 0x0000 },
+ { 0x8700, 0xa3b9, 0x3000 },
+ { 0x8700, 0xa3b7, 0x2000 },
+ { 0x0700, 0xa3b6, 0x0000 },
+ { 0x0700, 0xa3b8, 0x0000 },
+ { 0x8700, 0xa3bb, 0x2000 },
+ { 0x0700, 0xa3ba, 0x0000 },
+ { 0x0700, 0xa3bc, 0x0000 },
+ { 0x8700, 0xa3c5, 0x4000 },
+ { 0x8700, 0xa3c1, 0x3000 },
+ { 0x8700, 0xa3bf, 0x2000 },
+ { 0x0700, 0xa3be, 0x0000 },
+ { 0x0700, 0xa3c0, 0x0000 },
+ { 0x8700, 0xa3c3, 0x2000 },
+ { 0x0700, 0xa3c2, 0x0000 },
+ { 0x0700, 0xa3c4, 0x0000 },
+ { 0x8700, 0xa3c9, 0x3000 },
+ { 0x8700, 0xa3c7, 0x2000 },
+ { 0x0700, 0xa3c6, 0x0000 },
+ { 0x0700, 0xa3c8, 0x0000 },
+ { 0x8700, 0xa3cb, 0x2000 },
+ { 0x0700, 0xa3ca, 0x0000 },
+ { 0x0700, 0xa3cc, 0x0000 },
+ { 0x8700, 0xa40d, 0x7000 },
+ { 0x8700, 0xa3ed, 0x6000 },
+ { 0x8700, 0xa3dd, 0x5000 },
+ { 0x8700, 0xa3d5, 0x4000 },
+ { 0x8700, 0xa3d1, 0x3000 },
+ { 0x8700, 0xa3cf, 0x2000 },
+ { 0x0700, 0xa3ce, 0x0000 },
+ { 0x0700, 0xa3d0, 0x0000 },
+ { 0x8700, 0xa3d3, 0x2000 },
+ { 0x0700, 0xa3d2, 0x0000 },
+ { 0x0700, 0xa3d4, 0x0000 },
+ { 0x8700, 0xa3d9, 0x3000 },
+ { 0x8700, 0xa3d7, 0x2000 },
+ { 0x0700, 0xa3d6, 0x0000 },
+ { 0x0700, 0xa3d8, 0x0000 },
+ { 0x8700, 0xa3db, 0x2000 },
+ { 0x0700, 0xa3da, 0x0000 },
+ { 0x0700, 0xa3dc, 0x0000 },
+ { 0x8700, 0xa3e5, 0x4000 },
+ { 0x8700, 0xa3e1, 0x3000 },
+ { 0x8700, 0xa3df, 0x2000 },
+ { 0x0700, 0xa3de, 0x0000 },
+ { 0x0700, 0xa3e0, 0x0000 },
+ { 0x8700, 0xa3e3, 0x2000 },
+ { 0x0700, 0xa3e2, 0x0000 },
+ { 0x0700, 0xa3e4, 0x0000 },
+ { 0x8700, 0xa3e9, 0x3000 },
+ { 0x8700, 0xa3e7, 0x2000 },
+ { 0x0700, 0xa3e6, 0x0000 },
+ { 0x0700, 0xa3e8, 0x0000 },
+ { 0x8700, 0xa3eb, 0x2000 },
+ { 0x0700, 0xa3ea, 0x0000 },
+ { 0x0700, 0xa3ec, 0x0000 },
+ { 0x8700, 0xa3fd, 0x5000 },
+ { 0x8700, 0xa3f5, 0x4000 },
+ { 0x8700, 0xa3f1, 0x3000 },
+ { 0x8700, 0xa3ef, 0x2000 },
+ { 0x0700, 0xa3ee, 0x0000 },
+ { 0x0700, 0xa3f0, 0x0000 },
+ { 0x8700, 0xa3f3, 0x2000 },
+ { 0x0700, 0xa3f2, 0x0000 },
+ { 0x0700, 0xa3f4, 0x0000 },
+ { 0x8700, 0xa3f9, 0x3000 },
+ { 0x8700, 0xa3f7, 0x2000 },
+ { 0x0700, 0xa3f6, 0x0000 },
+ { 0x0700, 0xa3f8, 0x0000 },
+ { 0x8700, 0xa3fb, 0x2000 },
+ { 0x0700, 0xa3fa, 0x0000 },
+ { 0x0700, 0xa3fc, 0x0000 },
+ { 0x8700, 0xa405, 0x4000 },
+ { 0x8700, 0xa401, 0x3000 },
+ { 0x8700, 0xa3ff, 0x2000 },
+ { 0x0700, 0xa3fe, 0x0000 },
+ { 0x0700, 0xa400, 0x0000 },
+ { 0x8700, 0xa403, 0x2000 },
+ { 0x0700, 0xa402, 0x0000 },
+ { 0x0700, 0xa404, 0x0000 },
+ { 0x8700, 0xa409, 0x3000 },
+ { 0x8700, 0xa407, 0x2000 },
+ { 0x0700, 0xa406, 0x0000 },
+ { 0x0700, 0xa408, 0x0000 },
+ { 0x8700, 0xa40b, 0x2000 },
+ { 0x0700, 0xa40a, 0x0000 },
+ { 0x0700, 0xa40c, 0x0000 },
+ { 0x8700, 0xa42d, 0x6000 },
+ { 0x8700, 0xa41d, 0x5000 },
+ { 0x8700, 0xa415, 0x4000 },
+ { 0x8700, 0xa411, 0x3000 },
+ { 0x8700, 0xa40f, 0x2000 },
+ { 0x0700, 0xa40e, 0x0000 },
+ { 0x0700, 0xa410, 0x0000 },
+ { 0x8700, 0xa413, 0x2000 },
+ { 0x0700, 0xa412, 0x0000 },
+ { 0x0700, 0xa414, 0x0000 },
+ { 0x8700, 0xa419, 0x3000 },
+ { 0x8700, 0xa417, 0x2000 },
+ { 0x0700, 0xa416, 0x0000 },
+ { 0x0700, 0xa418, 0x0000 },
+ { 0x8700, 0xa41b, 0x2000 },
+ { 0x0700, 0xa41a, 0x0000 },
+ { 0x0700, 0xa41c, 0x0000 },
+ { 0x8700, 0xa425, 0x4000 },
+ { 0x8700, 0xa421, 0x3000 },
+ { 0x8700, 0xa41f, 0x2000 },
+ { 0x0700, 0xa41e, 0x0000 },
+ { 0x0700, 0xa420, 0x0000 },
+ { 0x8700, 0xa423, 0x2000 },
+ { 0x0700, 0xa422, 0x0000 },
+ { 0x0700, 0xa424, 0x0000 },
+ { 0x8700, 0xa429, 0x3000 },
+ { 0x8700, 0xa427, 0x2000 },
+ { 0x0700, 0xa426, 0x0000 },
+ { 0x0700, 0xa428, 0x0000 },
+ { 0x8700, 0xa42b, 0x2000 },
+ { 0x0700, 0xa42a, 0x0000 },
+ { 0x0700, 0xa42c, 0x0000 },
+ { 0x8700, 0xa43d, 0x5000 },
+ { 0x8700, 0xa435, 0x4000 },
+ { 0x8700, 0xa431, 0x3000 },
+ { 0x8700, 0xa42f, 0x2000 },
+ { 0x0700, 0xa42e, 0x0000 },
+ { 0x0700, 0xa430, 0x0000 },
+ { 0x8700, 0xa433, 0x2000 },
+ { 0x0700, 0xa432, 0x0000 },
+ { 0x0700, 0xa434, 0x0000 },
+ { 0x8700, 0xa439, 0x3000 },
+ { 0x8700, 0xa437, 0x2000 },
+ { 0x0700, 0xa436, 0x0000 },
+ { 0x0700, 0xa438, 0x0000 },
+ { 0x8700, 0xa43b, 0x2000 },
+ { 0x0700, 0xa43a, 0x0000 },
+ { 0x0700, 0xa43c, 0x0000 },
+ { 0x8700, 0xa445, 0x4000 },
+ { 0x8700, 0xa441, 0x3000 },
+ { 0x8700, 0xa43f, 0x2000 },
+ { 0x0700, 0xa43e, 0x0000 },
+ { 0x0700, 0xa440, 0x0000 },
+ { 0x8700, 0xa443, 0x2000 },
+ { 0x0700, 0xa442, 0x0000 },
+ { 0x0700, 0xa444, 0x0000 },
+ { 0x8700, 0xa449, 0x3000 },
+ { 0x8700, 0xa447, 0x2000 },
+ { 0x0700, 0xa446, 0x0000 },
+ { 0x0700, 0xa448, 0x0000 },
+ { 0x8700, 0xa44b, 0x2000 },
+ { 0x0700, 0xa44a, 0x0000 },
+ { 0x0700, 0xa44c, 0x0000 },
+ { 0x8300, 0xf8ff, 0x8000 },
+ { 0x9a00, 0xa490, 0x7000 },
+ { 0x8700, 0xa46d, 0x6000 },
+ { 0x8700, 0xa45d, 0x5000 },
+ { 0x8700, 0xa455, 0x4000 },
+ { 0x8700, 0xa451, 0x3000 },
+ { 0x8700, 0xa44f, 0x2000 },
+ { 0x0700, 0xa44e, 0x0000 },
+ { 0x0700, 0xa450, 0x0000 },
+ { 0x8700, 0xa453, 0x2000 },
+ { 0x0700, 0xa452, 0x0000 },
+ { 0x0700, 0xa454, 0x0000 },
+ { 0x8700, 0xa459, 0x3000 },
+ { 0x8700, 0xa457, 0x2000 },
+ { 0x0700, 0xa456, 0x0000 },
+ { 0x0700, 0xa458, 0x0000 },
+ { 0x8700, 0xa45b, 0x2000 },
+ { 0x0700, 0xa45a, 0x0000 },
+ { 0x0700, 0xa45c, 0x0000 },
+ { 0x8700, 0xa465, 0x4000 },
+ { 0x8700, 0xa461, 0x3000 },
+ { 0x8700, 0xa45f, 0x2000 },
+ { 0x0700, 0xa45e, 0x0000 },
+ { 0x0700, 0xa460, 0x0000 },
+ { 0x8700, 0xa463, 0x2000 },
+ { 0x0700, 0xa462, 0x0000 },
+ { 0x0700, 0xa464, 0x0000 },
+ { 0x8700, 0xa469, 0x3000 },
+ { 0x8700, 0xa467, 0x2000 },
+ { 0x0700, 0xa466, 0x0000 },
+ { 0x0700, 0xa468, 0x0000 },
+ { 0x8700, 0xa46b, 0x2000 },
+ { 0x0700, 0xa46a, 0x0000 },
+ { 0x0700, 0xa46c, 0x0000 },
+ { 0x8700, 0xa47d, 0x5000 },
+ { 0x8700, 0xa475, 0x4000 },
+ { 0x8700, 0xa471, 0x3000 },
+ { 0x8700, 0xa46f, 0x2000 },
+ { 0x0700, 0xa46e, 0x0000 },
+ { 0x0700, 0xa470, 0x0000 },
+ { 0x8700, 0xa473, 0x2000 },
+ { 0x0700, 0xa472, 0x0000 },
+ { 0x0700, 0xa474, 0x0000 },
+ { 0x8700, 0xa479, 0x3000 },
+ { 0x8700, 0xa477, 0x2000 },
+ { 0x0700, 0xa476, 0x0000 },
+ { 0x0700, 0xa478, 0x0000 },
+ { 0x8700, 0xa47b, 0x2000 },
+ { 0x0700, 0xa47a, 0x0000 },
+ { 0x0700, 0xa47c, 0x0000 },
+ { 0x8700, 0xa485, 0x4000 },
+ { 0x8700, 0xa481, 0x3000 },
+ { 0x8700, 0xa47f, 0x2000 },
+ { 0x0700, 0xa47e, 0x0000 },
+ { 0x0700, 0xa480, 0x0000 },
+ { 0x8700, 0xa483, 0x2000 },
+ { 0x0700, 0xa482, 0x0000 },
+ { 0x0700, 0xa484, 0x0000 },
+ { 0x8700, 0xa489, 0x3000 },
+ { 0x8700, 0xa487, 0x2000 },
+ { 0x0700, 0xa486, 0x0000 },
+ { 0x0700, 0xa488, 0x0000 },
+ { 0x8700, 0xa48b, 0x2000 },
+ { 0x0700, 0xa48a, 0x0000 },
+ { 0x0700, 0xa48c, 0x0000 },
+ { 0x9a00, 0xa4b0, 0x6000 },
+ { 0x9a00, 0xa4a0, 0x5000 },
+ { 0x9a00, 0xa498, 0x4000 },
+ { 0x9a00, 0xa494, 0x3000 },
+ { 0x9a00, 0xa492, 0x2000 },
+ { 0x1a00, 0xa491, 0x0000 },
+ { 0x1a00, 0xa493, 0x0000 },
+ { 0x9a00, 0xa496, 0x2000 },
+ { 0x1a00, 0xa495, 0x0000 },
+ { 0x1a00, 0xa497, 0x0000 },
+ { 0x9a00, 0xa49c, 0x3000 },
+ { 0x9a00, 0xa49a, 0x2000 },
+ { 0x1a00, 0xa499, 0x0000 },
+ { 0x1a00, 0xa49b, 0x0000 },
+ { 0x9a00, 0xa49e, 0x2000 },
+ { 0x1a00, 0xa49d, 0x0000 },
+ { 0x1a00, 0xa49f, 0x0000 },
+ { 0x9a00, 0xa4a8, 0x4000 },
+ { 0x9a00, 0xa4a4, 0x3000 },
+ { 0x9a00, 0xa4a2, 0x2000 },
+ { 0x1a00, 0xa4a1, 0x0000 },
+ { 0x1a00, 0xa4a3, 0x0000 },
+ { 0x9a00, 0xa4a6, 0x2000 },
+ { 0x1a00, 0xa4a5, 0x0000 },
+ { 0x1a00, 0xa4a7, 0x0000 },
+ { 0x9a00, 0xa4ac, 0x3000 },
+ { 0x9a00, 0xa4aa, 0x2000 },
+ { 0x1a00, 0xa4a9, 0x0000 },
+ { 0x1a00, 0xa4ab, 0x0000 },
+ { 0x9a00, 0xa4ae, 0x2000 },
+ { 0x1a00, 0xa4ad, 0x0000 },
+ { 0x1a00, 0xa4af, 0x0000 },
+ { 0x9a00, 0xa4c0, 0x5000 },
+ { 0x9a00, 0xa4b8, 0x4000 },
+ { 0x9a00, 0xa4b4, 0x3000 },
+ { 0x9a00, 0xa4b2, 0x2000 },
+ { 0x1a00, 0xa4b1, 0x0000 },
+ { 0x1a00, 0xa4b3, 0x0000 },
+ { 0x9a00, 0xa4b6, 0x2000 },
+ { 0x1a00, 0xa4b5, 0x0000 },
+ { 0x1a00, 0xa4b7, 0x0000 },
+ { 0x9a00, 0xa4bc, 0x3000 },
+ { 0x9a00, 0xa4ba, 0x2000 },
+ { 0x1a00, 0xa4b9, 0x0000 },
+ { 0x1a00, 0xa4bb, 0x0000 },
+ { 0x9a00, 0xa4be, 0x2000 },
+ { 0x1a00, 0xa4bd, 0x0000 },
+ { 0x1a00, 0xa4bf, 0x0000 },
+ { 0x8700, 0xd7a3, 0x4000 },
+ { 0x9a00, 0xa4c4, 0x3000 },
+ { 0x9a00, 0xa4c2, 0x2000 },
+ { 0x1a00, 0xa4c1, 0x0000 },
+ { 0x1a00, 0xa4c3, 0x0000 },
+ { 0x9a00, 0xa4c6, 0x2000 },
+ { 0x1a00, 0xa4c5, 0x0000 },
+ { 0x0700, 0xac00, 0x0000 },
+ { 0x8400, 0xdbff, 0x3000 },
+ { 0x8400, 0xdb7f, 0x2000 },
+ { 0x0400, 0xd800, 0x0000 },
+ { 0x0400, 0xdb80, 0x0000 },
+ { 0x8400, 0xdfff, 0x2000 },
+ { 0x0400, 0xdc00, 0x0000 },
+ { 0x0300, 0xe000, 0x0000 },
+ { 0x8700, 0xf93f, 0x7000 },
+ { 0x8700, 0xf91f, 0x6000 },
+ { 0x8700, 0xf90f, 0x5000 },
+ { 0x8700, 0xf907, 0x4000 },
+ { 0x8700, 0xf903, 0x3000 },
+ { 0x8700, 0xf901, 0x2000 },
+ { 0x0700, 0xf900, 0x0000 },
+ { 0x0700, 0xf902, 0x0000 },
+ { 0x8700, 0xf905, 0x2000 },
+ { 0x0700, 0xf904, 0x0000 },
+ { 0x0700, 0xf906, 0x0000 },
+ { 0x8700, 0xf90b, 0x3000 },
+ { 0x8700, 0xf909, 0x2000 },
+ { 0x0700, 0xf908, 0x0000 },
+ { 0x0700, 0xf90a, 0x0000 },
+ { 0x8700, 0xf90d, 0x2000 },
+ { 0x0700, 0xf90c, 0x0000 },
+ { 0x0700, 0xf90e, 0x0000 },
+ { 0x8700, 0xf917, 0x4000 },
+ { 0x8700, 0xf913, 0x3000 },
+ { 0x8700, 0xf911, 0x2000 },
+ { 0x0700, 0xf910, 0x0000 },
+ { 0x0700, 0xf912, 0x0000 },
+ { 0x8700, 0xf915, 0x2000 },
+ { 0x0700, 0xf914, 0x0000 },
+ { 0x0700, 0xf916, 0x0000 },
+ { 0x8700, 0xf91b, 0x3000 },
+ { 0x8700, 0xf919, 0x2000 },
+ { 0x0700, 0xf918, 0x0000 },
+ { 0x0700, 0xf91a, 0x0000 },
+ { 0x8700, 0xf91d, 0x2000 },
+ { 0x0700, 0xf91c, 0x0000 },
+ { 0x0700, 0xf91e, 0x0000 },
+ { 0x8700, 0xf92f, 0x5000 },
+ { 0x8700, 0xf927, 0x4000 },
+ { 0x8700, 0xf923, 0x3000 },
+ { 0x8700, 0xf921, 0x2000 },
+ { 0x0700, 0xf920, 0x0000 },
+ { 0x0700, 0xf922, 0x0000 },
+ { 0x8700, 0xf925, 0x2000 },
+ { 0x0700, 0xf924, 0x0000 },
+ { 0x0700, 0xf926, 0x0000 },
+ { 0x8700, 0xf92b, 0x3000 },
+ { 0x8700, 0xf929, 0x2000 },
+ { 0x0700, 0xf928, 0x0000 },
+ { 0x0700, 0xf92a, 0x0000 },
+ { 0x8700, 0xf92d, 0x2000 },
+ { 0x0700, 0xf92c, 0x0000 },
+ { 0x0700, 0xf92e, 0x0000 },
+ { 0x8700, 0xf937, 0x4000 },
+ { 0x8700, 0xf933, 0x3000 },
+ { 0x8700, 0xf931, 0x2000 },
+ { 0x0700, 0xf930, 0x0000 },
+ { 0x0700, 0xf932, 0x0000 },
+ { 0x8700, 0xf935, 0x2000 },
+ { 0x0700, 0xf934, 0x0000 },
+ { 0x0700, 0xf936, 0x0000 },
+ { 0x8700, 0xf93b, 0x3000 },
+ { 0x8700, 0xf939, 0x2000 },
+ { 0x0700, 0xf938, 0x0000 },
+ { 0x0700, 0xf93a, 0x0000 },
+ { 0x8700, 0xf93d, 0x2000 },
+ { 0x0700, 0xf93c, 0x0000 },
+ { 0x0700, 0xf93e, 0x0000 },
+ { 0x8700, 0xf95f, 0x6000 },
+ { 0x8700, 0xf94f, 0x5000 },
+ { 0x8700, 0xf947, 0x4000 },
+ { 0x8700, 0xf943, 0x3000 },
+ { 0x8700, 0xf941, 0x2000 },
+ { 0x0700, 0xf940, 0x0000 },
+ { 0x0700, 0xf942, 0x0000 },
+ { 0x8700, 0xf945, 0x2000 },
+ { 0x0700, 0xf944, 0x0000 },
+ { 0x0700, 0xf946, 0x0000 },
+ { 0x8700, 0xf94b, 0x3000 },
+ { 0x8700, 0xf949, 0x2000 },
+ { 0x0700, 0xf948, 0x0000 },
+ { 0x0700, 0xf94a, 0x0000 },
+ { 0x8700, 0xf94d, 0x2000 },
+ { 0x0700, 0xf94c, 0x0000 },
+ { 0x0700, 0xf94e, 0x0000 },
+ { 0x8700, 0xf957, 0x4000 },
+ { 0x8700, 0xf953, 0x3000 },
+ { 0x8700, 0xf951, 0x2000 },
+ { 0x0700, 0xf950, 0x0000 },
+ { 0x0700, 0xf952, 0x0000 },
+ { 0x8700, 0xf955, 0x2000 },
+ { 0x0700, 0xf954, 0x0000 },
+ { 0x0700, 0xf956, 0x0000 },
+ { 0x8700, 0xf95b, 0x3000 },
+ { 0x8700, 0xf959, 0x2000 },
+ { 0x0700, 0xf958, 0x0000 },
+ { 0x0700, 0xf95a, 0x0000 },
+ { 0x8700, 0xf95d, 0x2000 },
+ { 0x0700, 0xf95c, 0x0000 },
+ { 0x0700, 0xf95e, 0x0000 },
+ { 0x8700, 0xf96f, 0x5000 },
+ { 0x8700, 0xf967, 0x4000 },
+ { 0x8700, 0xf963, 0x3000 },
+ { 0x8700, 0xf961, 0x2000 },
+ { 0x0700, 0xf960, 0x0000 },
+ { 0x0700, 0xf962, 0x0000 },
+ { 0x8700, 0xf965, 0x2000 },
+ { 0x0700, 0xf964, 0x0000 },
+ { 0x0700, 0xf966, 0x0000 },
+ { 0x8700, 0xf96b, 0x3000 },
+ { 0x8700, 0xf969, 0x2000 },
+ { 0x0700, 0xf968, 0x0000 },
+ { 0x0700, 0xf96a, 0x0000 },
+ { 0x8700, 0xf96d, 0x2000 },
+ { 0x0700, 0xf96c, 0x0000 },
+ { 0x0700, 0xf96e, 0x0000 },
+ { 0x8700, 0xf977, 0x4000 },
+ { 0x8700, 0xf973, 0x3000 },
+ { 0x8700, 0xf971, 0x2000 },
+ { 0x0700, 0xf970, 0x0000 },
+ { 0x0700, 0xf972, 0x0000 },
+ { 0x8700, 0xf975, 0x2000 },
+ { 0x0700, 0xf974, 0x0000 },
+ { 0x0700, 0xf976, 0x0000 },
+ { 0x8700, 0xf97b, 0x3000 },
+ { 0x8700, 0xf979, 0x2000 },
+ { 0x0700, 0xf978, 0x0000 },
+ { 0x0700, 0xf97a, 0x0000 },
+ { 0x8700, 0xf97d, 0x2000 },
+ { 0x0700, 0xf97c, 0x0000 },
+ { 0x0700, 0xf97e, 0x0000 },
+ { 0x8700, 0xfb27, 0x9000 },
+ { 0x8700, 0xf9ff, 0x8000 },
+ { 0x8700, 0xf9bf, 0x7000 },
+ { 0x8700, 0xf99f, 0x6000 },
+ { 0x8700, 0xf98f, 0x5000 },
+ { 0x8700, 0xf987, 0x4000 },
+ { 0x8700, 0xf983, 0x3000 },
+ { 0x8700, 0xf981, 0x2000 },
+ { 0x0700, 0xf980, 0x0000 },
+ { 0x0700, 0xf982, 0x0000 },
+ { 0x8700, 0xf985, 0x2000 },
+ { 0x0700, 0xf984, 0x0000 },
+ { 0x0700, 0xf986, 0x0000 },
+ { 0x8700, 0xf98b, 0x3000 },
+ { 0x8700, 0xf989, 0x2000 },
+ { 0x0700, 0xf988, 0x0000 },
+ { 0x0700, 0xf98a, 0x0000 },
+ { 0x8700, 0xf98d, 0x2000 },
+ { 0x0700, 0xf98c, 0x0000 },
+ { 0x0700, 0xf98e, 0x0000 },
+ { 0x8700, 0xf997, 0x4000 },
+ { 0x8700, 0xf993, 0x3000 },
+ { 0x8700, 0xf991, 0x2000 },
+ { 0x0700, 0xf990, 0x0000 },
+ { 0x0700, 0xf992, 0x0000 },
+ { 0x8700, 0xf995, 0x2000 },
+ { 0x0700, 0xf994, 0x0000 },
+ { 0x0700, 0xf996, 0x0000 },
+ { 0x8700, 0xf99b, 0x3000 },
+ { 0x8700, 0xf999, 0x2000 },
+ { 0x0700, 0xf998, 0x0000 },
+ { 0x0700, 0xf99a, 0x0000 },
+ { 0x8700, 0xf99d, 0x2000 },
+ { 0x0700, 0xf99c, 0x0000 },
+ { 0x0700, 0xf99e, 0x0000 },
+ { 0x8700, 0xf9af, 0x5000 },
+ { 0x8700, 0xf9a7, 0x4000 },
+ { 0x8700, 0xf9a3, 0x3000 },
+ { 0x8700, 0xf9a1, 0x2000 },
+ { 0x0700, 0xf9a0, 0x0000 },
+ { 0x0700, 0xf9a2, 0x0000 },
+ { 0x8700, 0xf9a5, 0x2000 },
+ { 0x0700, 0xf9a4, 0x0000 },
+ { 0x0700, 0xf9a6, 0x0000 },
+ { 0x8700, 0xf9ab, 0x3000 },
+ { 0x8700, 0xf9a9, 0x2000 },
+ { 0x0700, 0xf9a8, 0x0000 },
+ { 0x0700, 0xf9aa, 0x0000 },
+ { 0x8700, 0xf9ad, 0x2000 },
+ { 0x0700, 0xf9ac, 0x0000 },
+ { 0x0700, 0xf9ae, 0x0000 },
+ { 0x8700, 0xf9b7, 0x4000 },
+ { 0x8700, 0xf9b3, 0x3000 },
+ { 0x8700, 0xf9b1, 0x2000 },
+ { 0x0700, 0xf9b0, 0x0000 },
+ { 0x0700, 0xf9b2, 0x0000 },
+ { 0x8700, 0xf9b5, 0x2000 },
+ { 0x0700, 0xf9b4, 0x0000 },
+ { 0x0700, 0xf9b6, 0x0000 },
+ { 0x8700, 0xf9bb, 0x3000 },
+ { 0x8700, 0xf9b9, 0x2000 },
+ { 0x0700, 0xf9b8, 0x0000 },
+ { 0x0700, 0xf9ba, 0x0000 },
+ { 0x8700, 0xf9bd, 0x2000 },
+ { 0x0700, 0xf9bc, 0x0000 },
+ { 0x0700, 0xf9be, 0x0000 },
+ { 0x8700, 0xf9df, 0x6000 },
+ { 0x8700, 0xf9cf, 0x5000 },
+ { 0x8700, 0xf9c7, 0x4000 },
+ { 0x8700, 0xf9c3, 0x3000 },
+ { 0x8700, 0xf9c1, 0x2000 },
+ { 0x0700, 0xf9c0, 0x0000 },
+ { 0x0700, 0xf9c2, 0x0000 },
+ { 0x8700, 0xf9c5, 0x2000 },
+ { 0x0700, 0xf9c4, 0x0000 },
+ { 0x0700, 0xf9c6, 0x0000 },
+ { 0x8700, 0xf9cb, 0x3000 },
+ { 0x8700, 0xf9c9, 0x2000 },
+ { 0x0700, 0xf9c8, 0x0000 },
+ { 0x0700, 0xf9ca, 0x0000 },
+ { 0x8700, 0xf9cd, 0x2000 },
+ { 0x0700, 0xf9cc, 0x0000 },
+ { 0x0700, 0xf9ce, 0x0000 },
+ { 0x8700, 0xf9d7, 0x4000 },
+ { 0x8700, 0xf9d3, 0x3000 },
+ { 0x8700, 0xf9d1, 0x2000 },
+ { 0x0700, 0xf9d0, 0x0000 },
+ { 0x0700, 0xf9d2, 0x0000 },
+ { 0x8700, 0xf9d5, 0x2000 },
+ { 0x0700, 0xf9d4, 0x0000 },
+ { 0x0700, 0xf9d6, 0x0000 },
+ { 0x8700, 0xf9db, 0x3000 },
+ { 0x8700, 0xf9d9, 0x2000 },
+ { 0x0700, 0xf9d8, 0x0000 },
+ { 0x0700, 0xf9da, 0x0000 },
+ { 0x8700, 0xf9dd, 0x2000 },
+ { 0x0700, 0xf9dc, 0x0000 },
+ { 0x0700, 0xf9de, 0x0000 },
+ { 0x8700, 0xf9ef, 0x5000 },
+ { 0x8700, 0xf9e7, 0x4000 },
+ { 0x8700, 0xf9e3, 0x3000 },
+ { 0x8700, 0xf9e1, 0x2000 },
+ { 0x0700, 0xf9e0, 0x0000 },
+ { 0x0700, 0xf9e2, 0x0000 },
+ { 0x8700, 0xf9e5, 0x2000 },
+ { 0x0700, 0xf9e4, 0x0000 },
+ { 0x0700, 0xf9e6, 0x0000 },
+ { 0x8700, 0xf9eb, 0x3000 },
+ { 0x8700, 0xf9e9, 0x2000 },
+ { 0x0700, 0xf9e8, 0x0000 },
+ { 0x0700, 0xf9ea, 0x0000 },
+ { 0x8700, 0xf9ed, 0x2000 },
+ { 0x0700, 0xf9ec, 0x0000 },
+ { 0x0700, 0xf9ee, 0x0000 },
+ { 0x8700, 0xf9f7, 0x4000 },
+ { 0x8700, 0xf9f3, 0x3000 },
+ { 0x8700, 0xf9f1, 0x2000 },
+ { 0x0700, 0xf9f0, 0x0000 },
+ { 0x0700, 0xf9f2, 0x0000 },
+ { 0x8700, 0xf9f5, 0x2000 },
+ { 0x0700, 0xf9f4, 0x0000 },
+ { 0x0700, 0xf9f6, 0x0000 },
+ { 0x8700, 0xf9fb, 0x3000 },
+ { 0x8700, 0xf9f9, 0x2000 },
+ { 0x0700, 0xf9f8, 0x0000 },
+ { 0x0700, 0xf9fa, 0x0000 },
+ { 0x8700, 0xf9fd, 0x2000 },
+ { 0x0700, 0xf9fc, 0x0000 },
+ { 0x0700, 0xf9fe, 0x0000 },
+ { 0x8700, 0xfa41, 0x7000 },
+ { 0x8700, 0xfa1f, 0x6000 },
+ { 0x8700, 0xfa0f, 0x5000 },
+ { 0x8700, 0xfa07, 0x4000 },
+ { 0x8700, 0xfa03, 0x3000 },
+ { 0x8700, 0xfa01, 0x2000 },
+ { 0x0700, 0xfa00, 0x0000 },
+ { 0x0700, 0xfa02, 0x0000 },
+ { 0x8700, 0xfa05, 0x2000 },
+ { 0x0700, 0xfa04, 0x0000 },
+ { 0x0700, 0xfa06, 0x0000 },
+ { 0x8700, 0xfa0b, 0x3000 },
+ { 0x8700, 0xfa09, 0x2000 },
+ { 0x0700, 0xfa08, 0x0000 },
+ { 0x0700, 0xfa0a, 0x0000 },
+ { 0x8700, 0xfa0d, 0x2000 },
+ { 0x0700, 0xfa0c, 0x0000 },
+ { 0x0700, 0xfa0e, 0x0000 },
+ { 0x8700, 0xfa17, 0x4000 },
+ { 0x8700, 0xfa13, 0x3000 },
+ { 0x8700, 0xfa11, 0x2000 },
+ { 0x0700, 0xfa10, 0x0000 },
+ { 0x0700, 0xfa12, 0x0000 },
+ { 0x8700, 0xfa15, 0x2000 },
+ { 0x0700, 0xfa14, 0x0000 },
+ { 0x0700, 0xfa16, 0x0000 },
+ { 0x8700, 0xfa1b, 0x3000 },
+ { 0x8700, 0xfa19, 0x2000 },
+ { 0x0700, 0xfa18, 0x0000 },
+ { 0x0700, 0xfa1a, 0x0000 },
+ { 0x8700, 0xfa1d, 0x2000 },
+ { 0x0700, 0xfa1c, 0x0000 },
+ { 0x0700, 0xfa1e, 0x0000 },
+ { 0x8700, 0xfa31, 0x5000 },
+ { 0x8700, 0xfa27, 0x4000 },
+ { 0x8700, 0xfa23, 0x3000 },
+ { 0x8700, 0xfa21, 0x2000 },
+ { 0x0700, 0xfa20, 0x0000 },
+ { 0x0700, 0xfa22, 0x0000 },
+ { 0x8700, 0xfa25, 0x2000 },
+ { 0x0700, 0xfa24, 0x0000 },
+ { 0x0700, 0xfa26, 0x0000 },
+ { 0x8700, 0xfa2b, 0x3000 },
+ { 0x8700, 0xfa29, 0x2000 },
+ { 0x0700, 0xfa28, 0x0000 },
+ { 0x0700, 0xfa2a, 0x0000 },
+ { 0x8700, 0xfa2d, 0x2000 },
+ { 0x0700, 0xfa2c, 0x0000 },
+ { 0x0700, 0xfa30, 0x0000 },
+ { 0x8700, 0xfa39, 0x4000 },
+ { 0x8700, 0xfa35, 0x3000 },
+ { 0x8700, 0xfa33, 0x2000 },
+ { 0x0700, 0xfa32, 0x0000 },
+ { 0x0700, 0xfa34, 0x0000 },
+ { 0x8700, 0xfa37, 0x2000 },
+ { 0x0700, 0xfa36, 0x0000 },
+ { 0x0700, 0xfa38, 0x0000 },
+ { 0x8700, 0xfa3d, 0x3000 },
+ { 0x8700, 0xfa3b, 0x2000 },
+ { 0x0700, 0xfa3a, 0x0000 },
+ { 0x0700, 0xfa3c, 0x0000 },
+ { 0x8700, 0xfa3f, 0x2000 },
+ { 0x0700, 0xfa3e, 0x0000 },
+ { 0x0700, 0xfa40, 0x0000 },
+ { 0x8700, 0xfa61, 0x6000 },
+ { 0x8700, 0xfa51, 0x5000 },
+ { 0x8700, 0xfa49, 0x4000 },
+ { 0x8700, 0xfa45, 0x3000 },
+ { 0x8700, 0xfa43, 0x2000 },
+ { 0x0700, 0xfa42, 0x0000 },
+ { 0x0700, 0xfa44, 0x0000 },
+ { 0x8700, 0xfa47, 0x2000 },
+ { 0x0700, 0xfa46, 0x0000 },
+ { 0x0700, 0xfa48, 0x0000 },
+ { 0x8700, 0xfa4d, 0x3000 },
+ { 0x8700, 0xfa4b, 0x2000 },
+ { 0x0700, 0xfa4a, 0x0000 },
+ { 0x0700, 0xfa4c, 0x0000 },
+ { 0x8700, 0xfa4f, 0x2000 },
+ { 0x0700, 0xfa4e, 0x0000 },
+ { 0x0700, 0xfa50, 0x0000 },
+ { 0x8700, 0xfa59, 0x4000 },
+ { 0x8700, 0xfa55, 0x3000 },
+ { 0x8700, 0xfa53, 0x2000 },
+ { 0x0700, 0xfa52, 0x0000 },
+ { 0x0700, 0xfa54, 0x0000 },
+ { 0x8700, 0xfa57, 0x2000 },
+ { 0x0700, 0xfa56, 0x0000 },
+ { 0x0700, 0xfa58, 0x0000 },
+ { 0x8700, 0xfa5d, 0x3000 },
+ { 0x8700, 0xfa5b, 0x2000 },
+ { 0x0700, 0xfa5a, 0x0000 },
+ { 0x0700, 0xfa5c, 0x0000 },
+ { 0x8700, 0xfa5f, 0x2000 },
+ { 0x0700, 0xfa5e, 0x0000 },
+ { 0x0700, 0xfa60, 0x0000 },
+ { 0x8500, 0xfb06, 0x5000 },
+ { 0x8700, 0xfa69, 0x4000 },
+ { 0x8700, 0xfa65, 0x3000 },
+ { 0x8700, 0xfa63, 0x2000 },
+ { 0x0700, 0xfa62, 0x0000 },
+ { 0x0700, 0xfa64, 0x0000 },
+ { 0x8700, 0xfa67, 0x2000 },
+ { 0x0700, 0xfa66, 0x0000 },
+ { 0x0700, 0xfa68, 0x0000 },
+ { 0x8500, 0xfb02, 0x3000 },
+ { 0x8500, 0xfb00, 0x2000 },
+ { 0x0700, 0xfa6a, 0x0000 },
+ { 0x0500, 0xfb01, 0x0000 },
+ { 0x8500, 0xfb04, 0x2000 },
+ { 0x0500, 0xfb03, 0x0000 },
+ { 0x0500, 0xfb05, 0x0000 },
+ { 0x8700, 0xfb1f, 0x4000 },
+ { 0x8500, 0xfb16, 0x3000 },
+ { 0x8500, 0xfb14, 0x2000 },
+ { 0x0500, 0xfb13, 0x0000 },
+ { 0x0500, 0xfb15, 0x0000 },
+ { 0x8700, 0xfb1d, 0x2000 },
+ { 0x0500, 0xfb17, 0x0000 },
+ { 0x0c00, 0xfb1e, 0x0000 },
+ { 0x8700, 0xfb23, 0x3000 },
+ { 0x8700, 0xfb21, 0x2000 },
+ { 0x0700, 0xfb20, 0x0000 },
+ { 0x0700, 0xfb22, 0x0000 },
+ { 0x8700, 0xfb25, 0x2000 },
+ { 0x0700, 0xfb24, 0x0000 },
+ { 0x0700, 0xfb26, 0x0000 },
+ { 0x8700, 0xfbac, 0x8000 },
+ { 0x8700, 0xfb6c, 0x7000 },
+ { 0x8700, 0xfb4c, 0x6000 },
+ { 0x8700, 0xfb38, 0x5000 },
+ { 0x8700, 0xfb2f, 0x4000 },
+ { 0x8700, 0xfb2b, 0x3000 },
+ { 0x9900, 0xfb29, 0x2000 },
+ { 0x0700, 0xfb28, 0x0000 },
+ { 0x0700, 0xfb2a, 0x0000 },
+ { 0x8700, 0xfb2d, 0x2000 },
+ { 0x0700, 0xfb2c, 0x0000 },
+ { 0x0700, 0xfb2e, 0x0000 },
+ { 0x8700, 0xfb33, 0x3000 },
+ { 0x8700, 0xfb31, 0x2000 },
+ { 0x0700, 0xfb30, 0x0000 },
+ { 0x0700, 0xfb32, 0x0000 },
+ { 0x8700, 0xfb35, 0x2000 },
+ { 0x0700, 0xfb34, 0x0000 },
+ { 0x0700, 0xfb36, 0x0000 },
+ { 0x8700, 0xfb43, 0x4000 },
+ { 0x8700, 0xfb3c, 0x3000 },
+ { 0x8700, 0xfb3a, 0x2000 },
+ { 0x0700, 0xfb39, 0x0000 },
+ { 0x0700, 0xfb3b, 0x0000 },
+ { 0x8700, 0xfb40, 0x2000 },
+ { 0x0700, 0xfb3e, 0x0000 },
+ { 0x0700, 0xfb41, 0x0000 },
+ { 0x8700, 0xfb48, 0x3000 },
+ { 0x8700, 0xfb46, 0x2000 },
+ { 0x0700, 0xfb44, 0x0000 },
+ { 0x0700, 0xfb47, 0x0000 },
+ { 0x8700, 0xfb4a, 0x2000 },
+ { 0x0700, 0xfb49, 0x0000 },
+ { 0x0700, 0xfb4b, 0x0000 },
+ { 0x8700, 0xfb5c, 0x5000 },
+ { 0x8700, 0xfb54, 0x4000 },
+ { 0x8700, 0xfb50, 0x3000 },
+ { 0x8700, 0xfb4e, 0x2000 },
+ { 0x0700, 0xfb4d, 0x0000 },
+ { 0x0700, 0xfb4f, 0x0000 },
+ { 0x8700, 0xfb52, 0x2000 },
+ { 0x0700, 0xfb51, 0x0000 },
+ { 0x0700, 0xfb53, 0x0000 },
+ { 0x8700, 0xfb58, 0x3000 },
+ { 0x8700, 0xfb56, 0x2000 },
+ { 0x0700, 0xfb55, 0x0000 },
+ { 0x0700, 0xfb57, 0x0000 },
+ { 0x8700, 0xfb5a, 0x2000 },
+ { 0x0700, 0xfb59, 0x0000 },
+ { 0x0700, 0xfb5b, 0x0000 },
+ { 0x8700, 0xfb64, 0x4000 },
+ { 0x8700, 0xfb60, 0x3000 },
+ { 0x8700, 0xfb5e, 0x2000 },
+ { 0x0700, 0xfb5d, 0x0000 },
+ { 0x0700, 0xfb5f, 0x0000 },
+ { 0x8700, 0xfb62, 0x2000 },
+ { 0x0700, 0xfb61, 0x0000 },
+ { 0x0700, 0xfb63, 0x0000 },
+ { 0x8700, 0xfb68, 0x3000 },
+ { 0x8700, 0xfb66, 0x2000 },
+ { 0x0700, 0xfb65, 0x0000 },
+ { 0x0700, 0xfb67, 0x0000 },
+ { 0x8700, 0xfb6a, 0x2000 },
+ { 0x0700, 0xfb69, 0x0000 },
+ { 0x0700, 0xfb6b, 0x0000 },
+ { 0x8700, 0xfb8c, 0x6000 },
+ { 0x8700, 0xfb7c, 0x5000 },
+ { 0x8700, 0xfb74, 0x4000 },
+ { 0x8700, 0xfb70, 0x3000 },
+ { 0x8700, 0xfb6e, 0x2000 },
+ { 0x0700, 0xfb6d, 0x0000 },
+ { 0x0700, 0xfb6f, 0x0000 },
+ { 0x8700, 0xfb72, 0x2000 },
+ { 0x0700, 0xfb71, 0x0000 },
+ { 0x0700, 0xfb73, 0x0000 },
+ { 0x8700, 0xfb78, 0x3000 },
+ { 0x8700, 0xfb76, 0x2000 },
+ { 0x0700, 0xfb75, 0x0000 },
+ { 0x0700, 0xfb77, 0x0000 },
+ { 0x8700, 0xfb7a, 0x2000 },
+ { 0x0700, 0xfb79, 0x0000 },
+ { 0x0700, 0xfb7b, 0x0000 },
+ { 0x8700, 0xfb84, 0x4000 },
+ { 0x8700, 0xfb80, 0x3000 },
+ { 0x8700, 0xfb7e, 0x2000 },
+ { 0x0700, 0xfb7d, 0x0000 },
+ { 0x0700, 0xfb7f, 0x0000 },
+ { 0x8700, 0xfb82, 0x2000 },
+ { 0x0700, 0xfb81, 0x0000 },
+ { 0x0700, 0xfb83, 0x0000 },
+ { 0x8700, 0xfb88, 0x3000 },
+ { 0x8700, 0xfb86, 0x2000 },
+ { 0x0700, 0xfb85, 0x0000 },
+ { 0x0700, 0xfb87, 0x0000 },
+ { 0x8700, 0xfb8a, 0x2000 },
+ { 0x0700, 0xfb89, 0x0000 },
+ { 0x0700, 0xfb8b, 0x0000 },
+ { 0x8700, 0xfb9c, 0x5000 },
+ { 0x8700, 0xfb94, 0x4000 },
+ { 0x8700, 0xfb90, 0x3000 },
+ { 0x8700, 0xfb8e, 0x2000 },
+ { 0x0700, 0xfb8d, 0x0000 },
+ { 0x0700, 0xfb8f, 0x0000 },
+ { 0x8700, 0xfb92, 0x2000 },
+ { 0x0700, 0xfb91, 0x0000 },
+ { 0x0700, 0xfb93, 0x0000 },
+ { 0x8700, 0xfb98, 0x3000 },
+ { 0x8700, 0xfb96, 0x2000 },
+ { 0x0700, 0xfb95, 0x0000 },
+ { 0x0700, 0xfb97, 0x0000 },
+ { 0x8700, 0xfb9a, 0x2000 },
+ { 0x0700, 0xfb99, 0x0000 },
+ { 0x0700, 0xfb9b, 0x0000 },
+ { 0x8700, 0xfba4, 0x4000 },
+ { 0x8700, 0xfba0, 0x3000 },
+ { 0x8700, 0xfb9e, 0x2000 },
+ { 0x0700, 0xfb9d, 0x0000 },
+ { 0x0700, 0xfb9f, 0x0000 },
+ { 0x8700, 0xfba2, 0x2000 },
+ { 0x0700, 0xfba1, 0x0000 },
+ { 0x0700, 0xfba3, 0x0000 },
+ { 0x8700, 0xfba8, 0x3000 },
+ { 0x8700, 0xfba6, 0x2000 },
+ { 0x0700, 0xfba5, 0x0000 },
+ { 0x0700, 0xfba7, 0x0000 },
+ { 0x8700, 0xfbaa, 0x2000 },
+ { 0x0700, 0xfba9, 0x0000 },
+ { 0x0700, 0xfbab, 0x0000 },
+ { 0x8700, 0xfc0d, 0x7000 },
+ { 0x8700, 0xfbed, 0x6000 },
+ { 0x8700, 0xfbdd, 0x5000 },
+ { 0x8700, 0xfbd5, 0x4000 },
+ { 0x8700, 0xfbb0, 0x3000 },
+ { 0x8700, 0xfbae, 0x2000 },
+ { 0x0700, 0xfbad, 0x0000 },
+ { 0x0700, 0xfbaf, 0x0000 },
+ { 0x8700, 0xfbd3, 0x2000 },
+ { 0x0700, 0xfbb1, 0x0000 },
+ { 0x0700, 0xfbd4, 0x0000 },
+ { 0x8700, 0xfbd9, 0x3000 },
+ { 0x8700, 0xfbd7, 0x2000 },
+ { 0x0700, 0xfbd6, 0x0000 },
+ { 0x0700, 0xfbd8, 0x0000 },
+ { 0x8700, 0xfbdb, 0x2000 },
+ { 0x0700, 0xfbda, 0x0000 },
+ { 0x0700, 0xfbdc, 0x0000 },
+ { 0x8700, 0xfbe5, 0x4000 },
+ { 0x8700, 0xfbe1, 0x3000 },
+ { 0x8700, 0xfbdf, 0x2000 },
+ { 0x0700, 0xfbde, 0x0000 },
+ { 0x0700, 0xfbe0, 0x0000 },
+ { 0x8700, 0xfbe3, 0x2000 },
+ { 0x0700, 0xfbe2, 0x0000 },
+ { 0x0700, 0xfbe4, 0x0000 },
+ { 0x8700, 0xfbe9, 0x3000 },
+ { 0x8700, 0xfbe7, 0x2000 },
+ { 0x0700, 0xfbe6, 0x0000 },
+ { 0x0700, 0xfbe8, 0x0000 },
+ { 0x8700, 0xfbeb, 0x2000 },
+ { 0x0700, 0xfbea, 0x0000 },
+ { 0x0700, 0xfbec, 0x0000 },
+ { 0x8700, 0xfbfd, 0x5000 },
+ { 0x8700, 0xfbf5, 0x4000 },
+ { 0x8700, 0xfbf1, 0x3000 },
+ { 0x8700, 0xfbef, 0x2000 },
+ { 0x0700, 0xfbee, 0x0000 },
+ { 0x0700, 0xfbf0, 0x0000 },
+ { 0x8700, 0xfbf3, 0x2000 },
+ { 0x0700, 0xfbf2, 0x0000 },
+ { 0x0700, 0xfbf4, 0x0000 },
+ { 0x8700, 0xfbf9, 0x3000 },
+ { 0x8700, 0xfbf7, 0x2000 },
+ { 0x0700, 0xfbf6, 0x0000 },
+ { 0x0700, 0xfbf8, 0x0000 },
+ { 0x8700, 0xfbfb, 0x2000 },
+ { 0x0700, 0xfbfa, 0x0000 },
+ { 0x0700, 0xfbfc, 0x0000 },
+ { 0x8700, 0xfc05, 0x4000 },
+ { 0x8700, 0xfc01, 0x3000 },
+ { 0x8700, 0xfbff, 0x2000 },
+ { 0x0700, 0xfbfe, 0x0000 },
+ { 0x0700, 0xfc00, 0x0000 },
+ { 0x8700, 0xfc03, 0x2000 },
+ { 0x0700, 0xfc02, 0x0000 },
+ { 0x0700, 0xfc04, 0x0000 },
+ { 0x8700, 0xfc09, 0x3000 },
+ { 0x8700, 0xfc07, 0x2000 },
+ { 0x0700, 0xfc06, 0x0000 },
+ { 0x0700, 0xfc08, 0x0000 },
+ { 0x8700, 0xfc0b, 0x2000 },
+ { 0x0700, 0xfc0a, 0x0000 },
+ { 0x0700, 0xfc0c, 0x0000 },
+ { 0x8700, 0xfc2d, 0x6000 },
+ { 0x8700, 0xfc1d, 0x5000 },
+ { 0x8700, 0xfc15, 0x4000 },
+ { 0x8700, 0xfc11, 0x3000 },
+ { 0x8700, 0xfc0f, 0x2000 },
+ { 0x0700, 0xfc0e, 0x0000 },
+ { 0x0700, 0xfc10, 0x0000 },
+ { 0x8700, 0xfc13, 0x2000 },
+ { 0x0700, 0xfc12, 0x0000 },
+ { 0x0700, 0xfc14, 0x0000 },
+ { 0x8700, 0xfc19, 0x3000 },
+ { 0x8700, 0xfc17, 0x2000 },
+ { 0x0700, 0xfc16, 0x0000 },
+ { 0x0700, 0xfc18, 0x0000 },
+ { 0x8700, 0xfc1b, 0x2000 },
+ { 0x0700, 0xfc1a, 0x0000 },
+ { 0x0700, 0xfc1c, 0x0000 },
+ { 0x8700, 0xfc25, 0x4000 },
+ { 0x8700, 0xfc21, 0x3000 },
+ { 0x8700, 0xfc1f, 0x2000 },
+ { 0x0700, 0xfc1e, 0x0000 },
+ { 0x0700, 0xfc20, 0x0000 },
+ { 0x8700, 0xfc23, 0x2000 },
+ { 0x0700, 0xfc22, 0x0000 },
+ { 0x0700, 0xfc24, 0x0000 },
+ { 0x8700, 0xfc29, 0x3000 },
+ { 0x8700, 0xfc27, 0x2000 },
+ { 0x0700, 0xfc26, 0x0000 },
+ { 0x0700, 0xfc28, 0x0000 },
+ { 0x8700, 0xfc2b, 0x2000 },
+ { 0x0700, 0xfc2a, 0x0000 },
+ { 0x0700, 0xfc2c, 0x0000 },
+ { 0x8700, 0xfc3d, 0x5000 },
+ { 0x8700, 0xfc35, 0x4000 },
+ { 0x8700, 0xfc31, 0x3000 },
+ { 0x8700, 0xfc2f, 0x2000 },
+ { 0x0700, 0xfc2e, 0x0000 },
+ { 0x0700, 0xfc30, 0x0000 },
+ { 0x8700, 0xfc33, 0x2000 },
+ { 0x0700, 0xfc32, 0x0000 },
+ { 0x0700, 0xfc34, 0x0000 },
+ { 0x8700, 0xfc39, 0x3000 },
+ { 0x8700, 0xfc37, 0x2000 },
+ { 0x0700, 0xfc36, 0x0000 },
+ { 0x0700, 0xfc38, 0x0000 },
+ { 0x8700, 0xfc3b, 0x2000 },
+ { 0x0700, 0xfc3a, 0x0000 },
+ { 0x0700, 0xfc3c, 0x0000 },
+ { 0x8700, 0xfc45, 0x4000 },
+ { 0x8700, 0xfc41, 0x3000 },
+ { 0x8700, 0xfc3f, 0x2000 },
+ { 0x0700, 0xfc3e, 0x0000 },
+ { 0x0700, 0xfc40, 0x0000 },
+ { 0x8700, 0xfc43, 0x2000 },
+ { 0x0700, 0xfc42, 0x0000 },
+ { 0x0700, 0xfc44, 0x0000 },
+ { 0x8700, 0xfc49, 0x3000 },
+ { 0x8700, 0xfc47, 0x2000 },
+ { 0x0700, 0xfc46, 0x0000 },
+ { 0x0700, 0xfc48, 0x0000 },
+ { 0x8700, 0xfc4b, 0x2000 },
+ { 0x0700, 0xfc4a, 0x0000 },
+ { 0x0700, 0xfc4c, 0x0000 },
+ { 0x8700, 0xfeac, 0xa000 },
+ { 0x8700, 0xfd5d, 0x9000 },
+ { 0x8700, 0xfccd, 0x8000 },
+ { 0x8700, 0xfc8d, 0x7000 },
+ { 0x8700, 0xfc6d, 0x6000 },
+ { 0x8700, 0xfc5d, 0x5000 },
+ { 0x8700, 0xfc55, 0x4000 },
+ { 0x8700, 0xfc51, 0x3000 },
+ { 0x8700, 0xfc4f, 0x2000 },
+ { 0x0700, 0xfc4e, 0x0000 },
+ { 0x0700, 0xfc50, 0x0000 },
+ { 0x8700, 0xfc53, 0x2000 },
+ { 0x0700, 0xfc52, 0x0000 },
+ { 0x0700, 0xfc54, 0x0000 },
+ { 0x8700, 0xfc59, 0x3000 },
+ { 0x8700, 0xfc57, 0x2000 },
+ { 0x0700, 0xfc56, 0x0000 },
+ { 0x0700, 0xfc58, 0x0000 },
+ { 0x8700, 0xfc5b, 0x2000 },
+ { 0x0700, 0xfc5a, 0x0000 },
+ { 0x0700, 0xfc5c, 0x0000 },
+ { 0x8700, 0xfc65, 0x4000 },
+ { 0x8700, 0xfc61, 0x3000 },
+ { 0x8700, 0xfc5f, 0x2000 },
+ { 0x0700, 0xfc5e, 0x0000 },
+ { 0x0700, 0xfc60, 0x0000 },
+ { 0x8700, 0xfc63, 0x2000 },
+ { 0x0700, 0xfc62, 0x0000 },
+ { 0x0700, 0xfc64, 0x0000 },
+ { 0x8700, 0xfc69, 0x3000 },
+ { 0x8700, 0xfc67, 0x2000 },
+ { 0x0700, 0xfc66, 0x0000 },
+ { 0x0700, 0xfc68, 0x0000 },
+ { 0x8700, 0xfc6b, 0x2000 },
+ { 0x0700, 0xfc6a, 0x0000 },
+ { 0x0700, 0xfc6c, 0x0000 },
+ { 0x8700, 0xfc7d, 0x5000 },
+ { 0x8700, 0xfc75, 0x4000 },
+ { 0x8700, 0xfc71, 0x3000 },
+ { 0x8700, 0xfc6f, 0x2000 },
+ { 0x0700, 0xfc6e, 0x0000 },
+ { 0x0700, 0xfc70, 0x0000 },
+ { 0x8700, 0xfc73, 0x2000 },
+ { 0x0700, 0xfc72, 0x0000 },
+ { 0x0700, 0xfc74, 0x0000 },
+ { 0x8700, 0xfc79, 0x3000 },
+ { 0x8700, 0xfc77, 0x2000 },
+ { 0x0700, 0xfc76, 0x0000 },
+ { 0x0700, 0xfc78, 0x0000 },
+ { 0x8700, 0xfc7b, 0x2000 },
+ { 0x0700, 0xfc7a, 0x0000 },
+ { 0x0700, 0xfc7c, 0x0000 },
+ { 0x8700, 0xfc85, 0x4000 },
+ { 0x8700, 0xfc81, 0x3000 },
+ { 0x8700, 0xfc7f, 0x2000 },
+ { 0x0700, 0xfc7e, 0x0000 },
+ { 0x0700, 0xfc80, 0x0000 },
+ { 0x8700, 0xfc83, 0x2000 },
+ { 0x0700, 0xfc82, 0x0000 },
+ { 0x0700, 0xfc84, 0x0000 },
+ { 0x8700, 0xfc89, 0x3000 },
+ { 0x8700, 0xfc87, 0x2000 },
+ { 0x0700, 0xfc86, 0x0000 },
+ { 0x0700, 0xfc88, 0x0000 },
+ { 0x8700, 0xfc8b, 0x2000 },
+ { 0x0700, 0xfc8a, 0x0000 },
+ { 0x0700, 0xfc8c, 0x0000 },
+ { 0x8700, 0xfcad, 0x6000 },
+ { 0x8700, 0xfc9d, 0x5000 },
+ { 0x8700, 0xfc95, 0x4000 },
+ { 0x8700, 0xfc91, 0x3000 },
+ { 0x8700, 0xfc8f, 0x2000 },
+ { 0x0700, 0xfc8e, 0x0000 },
+ { 0x0700, 0xfc90, 0x0000 },
+ { 0x8700, 0xfc93, 0x2000 },
+ { 0x0700, 0xfc92, 0x0000 },
+ { 0x0700, 0xfc94, 0x0000 },
+ { 0x8700, 0xfc99, 0x3000 },
+ { 0x8700, 0xfc97, 0x2000 },
+ { 0x0700, 0xfc96, 0x0000 },
+ { 0x0700, 0xfc98, 0x0000 },
+ { 0x8700, 0xfc9b, 0x2000 },
+ { 0x0700, 0xfc9a, 0x0000 },
+ { 0x0700, 0xfc9c, 0x0000 },
+ { 0x8700, 0xfca5, 0x4000 },
+ { 0x8700, 0xfca1, 0x3000 },
+ { 0x8700, 0xfc9f, 0x2000 },
+ { 0x0700, 0xfc9e, 0x0000 },
+ { 0x0700, 0xfca0, 0x0000 },
+ { 0x8700, 0xfca3, 0x2000 },
+ { 0x0700, 0xfca2, 0x0000 },
+ { 0x0700, 0xfca4, 0x0000 },
+ { 0x8700, 0xfca9, 0x3000 },
+ { 0x8700, 0xfca7, 0x2000 },
+ { 0x0700, 0xfca6, 0x0000 },
+ { 0x0700, 0xfca8, 0x0000 },
+ { 0x8700, 0xfcab, 0x2000 },
+ { 0x0700, 0xfcaa, 0x0000 },
+ { 0x0700, 0xfcac, 0x0000 },
+ { 0x8700, 0xfcbd, 0x5000 },
+ { 0x8700, 0xfcb5, 0x4000 },
+ { 0x8700, 0xfcb1, 0x3000 },
+ { 0x8700, 0xfcaf, 0x2000 },
+ { 0x0700, 0xfcae, 0x0000 },
+ { 0x0700, 0xfcb0, 0x0000 },
+ { 0x8700, 0xfcb3, 0x2000 },
+ { 0x0700, 0xfcb2, 0x0000 },
+ { 0x0700, 0xfcb4, 0x0000 },
+ { 0x8700, 0xfcb9, 0x3000 },
+ { 0x8700, 0xfcb7, 0x2000 },
+ { 0x0700, 0xfcb6, 0x0000 },
+ { 0x0700, 0xfcb8, 0x0000 },
+ { 0x8700, 0xfcbb, 0x2000 },
+ { 0x0700, 0xfcba, 0x0000 },
+ { 0x0700, 0xfcbc, 0x0000 },
+ { 0x8700, 0xfcc5, 0x4000 },
+ { 0x8700, 0xfcc1, 0x3000 },
+ { 0x8700, 0xfcbf, 0x2000 },
+ { 0x0700, 0xfcbe, 0x0000 },
+ { 0x0700, 0xfcc0, 0x0000 },
+ { 0x8700, 0xfcc3, 0x2000 },
+ { 0x0700, 0xfcc2, 0x0000 },
+ { 0x0700, 0xfcc4, 0x0000 },
+ { 0x8700, 0xfcc9, 0x3000 },
+ { 0x8700, 0xfcc7, 0x2000 },
+ { 0x0700, 0xfcc6, 0x0000 },
+ { 0x0700, 0xfcc8, 0x0000 },
+ { 0x8700, 0xfccb, 0x2000 },
+ { 0x0700, 0xfcca, 0x0000 },
+ { 0x0700, 0xfccc, 0x0000 },
+ { 0x8700, 0xfd0d, 0x7000 },
+ { 0x8700, 0xfced, 0x6000 },
+ { 0x8700, 0xfcdd, 0x5000 },
+ { 0x8700, 0xfcd5, 0x4000 },
+ { 0x8700, 0xfcd1, 0x3000 },
+ { 0x8700, 0xfccf, 0x2000 },
+ { 0x0700, 0xfcce, 0x0000 },
+ { 0x0700, 0xfcd0, 0x0000 },
+ { 0x8700, 0xfcd3, 0x2000 },
+ { 0x0700, 0xfcd2, 0x0000 },
+ { 0x0700, 0xfcd4, 0x0000 },
+ { 0x8700, 0xfcd9, 0x3000 },
+ { 0x8700, 0xfcd7, 0x2000 },
+ { 0x0700, 0xfcd6, 0x0000 },
+ { 0x0700, 0xfcd8, 0x0000 },
+ { 0x8700, 0xfcdb, 0x2000 },
+ { 0x0700, 0xfcda, 0x0000 },
+ { 0x0700, 0xfcdc, 0x0000 },
+ { 0x8700, 0xfce5, 0x4000 },
+ { 0x8700, 0xfce1, 0x3000 },
+ { 0x8700, 0xfcdf, 0x2000 },
+ { 0x0700, 0xfcde, 0x0000 },
+ { 0x0700, 0xfce0, 0x0000 },
+ { 0x8700, 0xfce3, 0x2000 },
+ { 0x0700, 0xfce2, 0x0000 },
+ { 0x0700, 0xfce4, 0x0000 },
+ { 0x8700, 0xfce9, 0x3000 },
+ { 0x8700, 0xfce7, 0x2000 },
+ { 0x0700, 0xfce6, 0x0000 },
+ { 0x0700, 0xfce8, 0x0000 },
+ { 0x8700, 0xfceb, 0x2000 },
+ { 0x0700, 0xfcea, 0x0000 },
+ { 0x0700, 0xfcec, 0x0000 },
+ { 0x8700, 0xfcfd, 0x5000 },
+ { 0x8700, 0xfcf5, 0x4000 },
+ { 0x8700, 0xfcf1, 0x3000 },
+ { 0x8700, 0xfcef, 0x2000 },
+ { 0x0700, 0xfcee, 0x0000 },
+ { 0x0700, 0xfcf0, 0x0000 },
+ { 0x8700, 0xfcf3, 0x2000 },
+ { 0x0700, 0xfcf2, 0x0000 },
+ { 0x0700, 0xfcf4, 0x0000 },
+ { 0x8700, 0xfcf9, 0x3000 },
+ { 0x8700, 0xfcf7, 0x2000 },
+ { 0x0700, 0xfcf6, 0x0000 },
+ { 0x0700, 0xfcf8, 0x0000 },
+ { 0x8700, 0xfcfb, 0x2000 },
+ { 0x0700, 0xfcfa, 0x0000 },
+ { 0x0700, 0xfcfc, 0x0000 },
+ { 0x8700, 0xfd05, 0x4000 },
+ { 0x8700, 0xfd01, 0x3000 },
+ { 0x8700, 0xfcff, 0x2000 },
+ { 0x0700, 0xfcfe, 0x0000 },
+ { 0x0700, 0xfd00, 0x0000 },
+ { 0x8700, 0xfd03, 0x2000 },
+ { 0x0700, 0xfd02, 0x0000 },
+ { 0x0700, 0xfd04, 0x0000 },
+ { 0x8700, 0xfd09, 0x3000 },
+ { 0x8700, 0xfd07, 0x2000 },
+ { 0x0700, 0xfd06, 0x0000 },
+ { 0x0700, 0xfd08, 0x0000 },
+ { 0x8700, 0xfd0b, 0x2000 },
+ { 0x0700, 0xfd0a, 0x0000 },
+ { 0x0700, 0xfd0c, 0x0000 },
+ { 0x8700, 0xfd2d, 0x6000 },
+ { 0x8700, 0xfd1d, 0x5000 },
+ { 0x8700, 0xfd15, 0x4000 },
+ { 0x8700, 0xfd11, 0x3000 },
+ { 0x8700, 0xfd0f, 0x2000 },
+ { 0x0700, 0xfd0e, 0x0000 },
+ { 0x0700, 0xfd10, 0x0000 },
+ { 0x8700, 0xfd13, 0x2000 },
+ { 0x0700, 0xfd12, 0x0000 },
+ { 0x0700, 0xfd14, 0x0000 },
+ { 0x8700, 0xfd19, 0x3000 },
+ { 0x8700, 0xfd17, 0x2000 },
+ { 0x0700, 0xfd16, 0x0000 },
+ { 0x0700, 0xfd18, 0x0000 },
+ { 0x8700, 0xfd1b, 0x2000 },
+ { 0x0700, 0xfd1a, 0x0000 },
+ { 0x0700, 0xfd1c, 0x0000 },
+ { 0x8700, 0xfd25, 0x4000 },
+ { 0x8700, 0xfd21, 0x3000 },
+ { 0x8700, 0xfd1f, 0x2000 },
+ { 0x0700, 0xfd1e, 0x0000 },
+ { 0x0700, 0xfd20, 0x0000 },
+ { 0x8700, 0xfd23, 0x2000 },
+ { 0x0700, 0xfd22, 0x0000 },
+ { 0x0700, 0xfd24, 0x0000 },
+ { 0x8700, 0xfd29, 0x3000 },
+ { 0x8700, 0xfd27, 0x2000 },
+ { 0x0700, 0xfd26, 0x0000 },
+ { 0x0700, 0xfd28, 0x0000 },
+ { 0x8700, 0xfd2b, 0x2000 },
+ { 0x0700, 0xfd2a, 0x0000 },
+ { 0x0700, 0xfd2c, 0x0000 },
+ { 0x8700, 0xfd3d, 0x5000 },
+ { 0x8700, 0xfd35, 0x4000 },
+ { 0x8700, 0xfd31, 0x3000 },
+ { 0x8700, 0xfd2f, 0x2000 },
+ { 0x0700, 0xfd2e, 0x0000 },
+ { 0x0700, 0xfd30, 0x0000 },
+ { 0x8700, 0xfd33, 0x2000 },
+ { 0x0700, 0xfd32, 0x0000 },
+ { 0x0700, 0xfd34, 0x0000 },
+ { 0x8700, 0xfd39, 0x3000 },
+ { 0x8700, 0xfd37, 0x2000 },
+ { 0x0700, 0xfd36, 0x0000 },
+ { 0x0700, 0xfd38, 0x0000 },
+ { 0x8700, 0xfd3b, 0x2000 },
+ { 0x0700, 0xfd3a, 0x0000 },
+ { 0x0700, 0xfd3c, 0x0000 },
+ { 0x8700, 0xfd55, 0x4000 },
+ { 0x8700, 0xfd51, 0x3000 },
+ { 0x9200, 0xfd3f, 0x2000 },
+ { 0x1600, 0xfd3e, 0x0000 },
+ { 0x0700, 0xfd50, 0x0000 },
+ { 0x8700, 0xfd53, 0x2000 },
+ { 0x0700, 0xfd52, 0x0000 },
+ { 0x0700, 0xfd54, 0x0000 },
+ { 0x8700, 0xfd59, 0x3000 },
+ { 0x8700, 0xfd57, 0x2000 },
+ { 0x0700, 0xfd56, 0x0000 },
+ { 0x0700, 0xfd58, 0x0000 },
+ { 0x8700, 0xfd5b, 0x2000 },
+ { 0x0700, 0xfd5a, 0x0000 },
+ { 0x0700, 0xfd5c, 0x0000 },
+ { 0x8c00, 0xfe09, 0x8000 },
+ { 0x8700, 0xfd9f, 0x7000 },
+ { 0x8700, 0xfd7d, 0x6000 },
+ { 0x8700, 0xfd6d, 0x5000 },
+ { 0x8700, 0xfd65, 0x4000 },
+ { 0x8700, 0xfd61, 0x3000 },
+ { 0x8700, 0xfd5f, 0x2000 },
+ { 0x0700, 0xfd5e, 0x0000 },
+ { 0x0700, 0xfd60, 0x0000 },
+ { 0x8700, 0xfd63, 0x2000 },
+ { 0x0700, 0xfd62, 0x0000 },
+ { 0x0700, 0xfd64, 0x0000 },
+ { 0x8700, 0xfd69, 0x3000 },
+ { 0x8700, 0xfd67, 0x2000 },
+ { 0x0700, 0xfd66, 0x0000 },
+ { 0x0700, 0xfd68, 0x0000 },
+ { 0x8700, 0xfd6b, 0x2000 },
+ { 0x0700, 0xfd6a, 0x0000 },
+ { 0x0700, 0xfd6c, 0x0000 },
+ { 0x8700, 0xfd75, 0x4000 },
+ { 0x8700, 0xfd71, 0x3000 },
+ { 0x8700, 0xfd6f, 0x2000 },
+ { 0x0700, 0xfd6e, 0x0000 },
+ { 0x0700, 0xfd70, 0x0000 },
+ { 0x8700, 0xfd73, 0x2000 },
+ { 0x0700, 0xfd72, 0x0000 },
+ { 0x0700, 0xfd74, 0x0000 },
+ { 0x8700, 0xfd79, 0x3000 },
+ { 0x8700, 0xfd77, 0x2000 },
+ { 0x0700, 0xfd76, 0x0000 },
+ { 0x0700, 0xfd78, 0x0000 },
+ { 0x8700, 0xfd7b, 0x2000 },
+ { 0x0700, 0xfd7a, 0x0000 },
+ { 0x0700, 0xfd7c, 0x0000 },
+ { 0x8700, 0xfd8d, 0x5000 },
+ { 0x8700, 0xfd85, 0x4000 },
+ { 0x8700, 0xfd81, 0x3000 },
+ { 0x8700, 0xfd7f, 0x2000 },
+ { 0x0700, 0xfd7e, 0x0000 },
+ { 0x0700, 0xfd80, 0x0000 },
+ { 0x8700, 0xfd83, 0x2000 },
+ { 0x0700, 0xfd82, 0x0000 },
+ { 0x0700, 0xfd84, 0x0000 },
+ { 0x8700, 0xfd89, 0x3000 },
+ { 0x8700, 0xfd87, 0x2000 },
+ { 0x0700, 0xfd86, 0x0000 },
+ { 0x0700, 0xfd88, 0x0000 },
+ { 0x8700, 0xfd8b, 0x2000 },
+ { 0x0700, 0xfd8a, 0x0000 },
+ { 0x0700, 0xfd8c, 0x0000 },
+ { 0x8700, 0xfd97, 0x4000 },
+ { 0x8700, 0xfd93, 0x3000 },
+ { 0x8700, 0xfd8f, 0x2000 },
+ { 0x0700, 0xfd8e, 0x0000 },
+ { 0x0700, 0xfd92, 0x0000 },
+ { 0x8700, 0xfd95, 0x2000 },
+ { 0x0700, 0xfd94, 0x0000 },
+ { 0x0700, 0xfd96, 0x0000 },
+ { 0x8700, 0xfd9b, 0x3000 },
+ { 0x8700, 0xfd99, 0x2000 },
+ { 0x0700, 0xfd98, 0x0000 },
+ { 0x0700, 0xfd9a, 0x0000 },
+ { 0x8700, 0xfd9d, 0x2000 },
+ { 0x0700, 0xfd9c, 0x0000 },
+ { 0x0700, 0xfd9e, 0x0000 },
+ { 0x8700, 0xfdbf, 0x6000 },
+ { 0x8700, 0xfdaf, 0x5000 },
+ { 0x8700, 0xfda7, 0x4000 },
+ { 0x8700, 0xfda3, 0x3000 },
+ { 0x8700, 0xfda1, 0x2000 },
+ { 0x0700, 0xfda0, 0x0000 },
+ { 0x0700, 0xfda2, 0x0000 },
+ { 0x8700, 0xfda5, 0x2000 },
+ { 0x0700, 0xfda4, 0x0000 },
+ { 0x0700, 0xfda6, 0x0000 },
+ { 0x8700, 0xfdab, 0x3000 },
+ { 0x8700, 0xfda9, 0x2000 },
+ { 0x0700, 0xfda8, 0x0000 },
+ { 0x0700, 0xfdaa, 0x0000 },
+ { 0x8700, 0xfdad, 0x2000 },
+ { 0x0700, 0xfdac, 0x0000 },
+ { 0x0700, 0xfdae, 0x0000 },
+ { 0x8700, 0xfdb7, 0x4000 },
+ { 0x8700, 0xfdb3, 0x3000 },
+ { 0x8700, 0xfdb1, 0x2000 },
+ { 0x0700, 0xfdb0, 0x0000 },
+ { 0x0700, 0xfdb2, 0x0000 },
+ { 0x8700, 0xfdb5, 0x2000 },
+ { 0x0700, 0xfdb4, 0x0000 },
+ { 0x0700, 0xfdb6, 0x0000 },
+ { 0x8700, 0xfdbb, 0x3000 },
+ { 0x8700, 0xfdb9, 0x2000 },
+ { 0x0700, 0xfdb8, 0x0000 },
+ { 0x0700, 0xfdba, 0x0000 },
+ { 0x8700, 0xfdbd, 0x2000 },
+ { 0x0700, 0xfdbc, 0x0000 },
+ { 0x0700, 0xfdbe, 0x0000 },
+ { 0x8700, 0xfdf7, 0x5000 },
+ { 0x8700, 0xfdc7, 0x4000 },
+ { 0x8700, 0xfdc3, 0x3000 },
+ { 0x8700, 0xfdc1, 0x2000 },
+ { 0x0700, 0xfdc0, 0x0000 },
+ { 0x0700, 0xfdc2, 0x0000 },
+ { 0x8700, 0xfdc5, 0x2000 },
+ { 0x0700, 0xfdc4, 0x0000 },
+ { 0x0700, 0xfdc6, 0x0000 },
+ { 0x8700, 0xfdf3, 0x3000 },
+ { 0x8700, 0xfdf1, 0x2000 },
+ { 0x0700, 0xfdf0, 0x0000 },
+ { 0x0700, 0xfdf2, 0x0000 },
+ { 0x8700, 0xfdf5, 0x2000 },
+ { 0x0700, 0xfdf4, 0x0000 },
+ { 0x0700, 0xfdf6, 0x0000 },
+ { 0x8c00, 0xfe01, 0x4000 },
+ { 0x8700, 0xfdfb, 0x3000 },
+ { 0x8700, 0xfdf9, 0x2000 },
+ { 0x0700, 0xfdf8, 0x0000 },
+ { 0x0700, 0xfdfa, 0x0000 },
+ { 0x9a00, 0xfdfd, 0x2000 },
+ { 0x1700, 0xfdfc, 0x0000 },
+ { 0x0c00, 0xfe00, 0x0000 },
+ { 0x8c00, 0xfe05, 0x3000 },
+ { 0x8c00, 0xfe03, 0x2000 },
+ { 0x0c00, 0xfe02, 0x0000 },
+ { 0x0c00, 0xfe04, 0x0000 },
+ { 0x8c00, 0xfe07, 0x2000 },
+ { 0x0c00, 0xfe06, 0x0000 },
+ { 0x0c00, 0xfe08, 0x0000 },
+ { 0x9900, 0xfe66, 0x7000 },
+ { 0x9500, 0xfe45, 0x6000 },
+ { 0x9600, 0xfe35, 0x5000 },
+ { 0x8c00, 0xfe21, 0x4000 },
+ { 0x8c00, 0xfe0d, 0x3000 },
+ { 0x8c00, 0xfe0b, 0x2000 },
+ { 0x0c00, 0xfe0a, 0x0000 },
+ { 0x0c00, 0xfe0c, 0x0000 },
+ { 0x8c00, 0xfe0f, 0x2000 },
+ { 0x0c00, 0xfe0e, 0x0000 },
+ { 0x0c00, 0xfe20, 0x0000 },
+ { 0x9100, 0xfe31, 0x3000 },
+ { 0x8c00, 0xfe23, 0x2000 },
+ { 0x0c00, 0xfe22, 0x0000 },
+ { 0x1500, 0xfe30, 0x0000 },
+ { 0x9000, 0xfe33, 0x2000 },
+ { 0x1100, 0xfe32, 0x0000 },
+ { 0x1000, 0xfe34, 0x0000 },
+ { 0x9600, 0xfe3d, 0x4000 },
+ { 0x9600, 0xfe39, 0x3000 },
+ { 0x9600, 0xfe37, 0x2000 },
+ { 0x1200, 0xfe36, 0x0000 },
+ { 0x1200, 0xfe38, 0x0000 },
+ { 0x9600, 0xfe3b, 0x2000 },
+ { 0x1200, 0xfe3a, 0x0000 },
+ { 0x1200, 0xfe3c, 0x0000 },
+ { 0x9600, 0xfe41, 0x3000 },
+ { 0x9600, 0xfe3f, 0x2000 },
+ { 0x1200, 0xfe3e, 0x0000 },
+ { 0x1200, 0xfe40, 0x0000 },
+ { 0x9600, 0xfe43, 0x2000 },
+ { 0x1200, 0xfe42, 0x0000 },
+ { 0x1200, 0xfe44, 0x0000 },
+ { 0x9500, 0xfe56, 0x5000 },
+ { 0x9000, 0xfe4d, 0x4000 },
+ { 0x9500, 0xfe49, 0x3000 },
+ { 0x9600, 0xfe47, 0x2000 },
+ { 0x1500, 0xfe46, 0x0000 },
+ { 0x1200, 0xfe48, 0x0000 },
+ { 0x9500, 0xfe4b, 0x2000 },
+ { 0x1500, 0xfe4a, 0x0000 },
+ { 0x1500, 0xfe4c, 0x0000 },
+ { 0x9500, 0xfe51, 0x3000 },
+ { 0x9000, 0xfe4f, 0x2000 },
+ { 0x1000, 0xfe4e, 0x0000 },
+ { 0x1500, 0xfe50, 0x0000 },
+ { 0x9500, 0xfe54, 0x2000 },
+ { 0x1500, 0xfe52, 0x0000 },
+ { 0x1500, 0xfe55, 0x0000 },
+ { 0x9200, 0xfe5e, 0x4000 },
+ { 0x9200, 0xfe5a, 0x3000 },
+ { 0x9100, 0xfe58, 0x2000 },
+ { 0x1500, 0xfe57, 0x0000 },
+ { 0x1600, 0xfe59, 0x0000 },
+ { 0x9200, 0xfe5c, 0x2000 },
+ { 0x1600, 0xfe5b, 0x0000 },
+ { 0x1600, 0xfe5d, 0x0000 },
+ { 0x9900, 0xfe62, 0x3000 },
+ { 0x9500, 0xfe60, 0x2000 },
+ { 0x1500, 0xfe5f, 0x0000 },
+ { 0x1500, 0xfe61, 0x0000 },
+ { 0x9900, 0xfe64, 0x2000 },
+ { 0x1100, 0xfe63, 0x0000 },
+ { 0x1900, 0xfe65, 0x0000 },
+ { 0x8700, 0xfe8c, 0x6000 },
+ { 0x8700, 0xfe7c, 0x5000 },
+ { 0x8700, 0xfe73, 0x4000 },
+ { 0x9500, 0xfe6b, 0x3000 },
+ { 0x9700, 0xfe69, 0x2000 },
+ { 0x1500, 0xfe68, 0x0000 },
+ { 0x1500, 0xfe6a, 0x0000 },
+ { 0x8700, 0xfe71, 0x2000 },
+ { 0x0700, 0xfe70, 0x0000 },
+ { 0x0700, 0xfe72, 0x0000 },
+ { 0x8700, 0xfe78, 0x3000 },
+ { 0x8700, 0xfe76, 0x2000 },
+ { 0x0700, 0xfe74, 0x0000 },
+ { 0x0700, 0xfe77, 0x0000 },
+ { 0x8700, 0xfe7a, 0x2000 },
+ { 0x0700, 0xfe79, 0x0000 },
+ { 0x0700, 0xfe7b, 0x0000 },
+ { 0x8700, 0xfe84, 0x4000 },
+ { 0x8700, 0xfe80, 0x3000 },
+ { 0x8700, 0xfe7e, 0x2000 },
+ { 0x0700, 0xfe7d, 0x0000 },
+ { 0x0700, 0xfe7f, 0x0000 },
+ { 0x8700, 0xfe82, 0x2000 },
+ { 0x0700, 0xfe81, 0x0000 },
+ { 0x0700, 0xfe83, 0x0000 },
+ { 0x8700, 0xfe88, 0x3000 },
+ { 0x8700, 0xfe86, 0x2000 },
+ { 0x0700, 0xfe85, 0x0000 },
+ { 0x0700, 0xfe87, 0x0000 },
+ { 0x8700, 0xfe8a, 0x2000 },
+ { 0x0700, 0xfe89, 0x0000 },
+ { 0x0700, 0xfe8b, 0x0000 },
+ { 0x8700, 0xfe9c, 0x5000 },
+ { 0x8700, 0xfe94, 0x4000 },
+ { 0x8700, 0xfe90, 0x3000 },
+ { 0x8700, 0xfe8e, 0x2000 },
+ { 0x0700, 0xfe8d, 0x0000 },
+ { 0x0700, 0xfe8f, 0x0000 },
+ { 0x8700, 0xfe92, 0x2000 },
+ { 0x0700, 0xfe91, 0x0000 },
+ { 0x0700, 0xfe93, 0x0000 },
+ { 0x8700, 0xfe98, 0x3000 },
+ { 0x8700, 0xfe96, 0x2000 },
+ { 0x0700, 0xfe95, 0x0000 },
+ { 0x0700, 0xfe97, 0x0000 },
+ { 0x8700, 0xfe9a, 0x2000 },
+ { 0x0700, 0xfe99, 0x0000 },
+ { 0x0700, 0xfe9b, 0x0000 },
+ { 0x8700, 0xfea4, 0x4000 },
+ { 0x8700, 0xfea0, 0x3000 },
+ { 0x8700, 0xfe9e, 0x2000 },
+ { 0x0700, 0xfe9d, 0x0000 },
+ { 0x0700, 0xfe9f, 0x0000 },
+ { 0x8700, 0xfea2, 0x2000 },
+ { 0x0700, 0xfea1, 0x0000 },
+ { 0x0700, 0xfea3, 0x0000 },
+ { 0x8700, 0xfea8, 0x3000 },
+ { 0x8700, 0xfea6, 0x2000 },
+ { 0x0700, 0xfea5, 0x0000 },
+ { 0x0700, 0xfea7, 0x0000 },
+ { 0x8700, 0xfeaa, 0x2000 },
+ { 0x0700, 0xfea9, 0x0000 },
+ { 0x0700, 0xfeab, 0x0000 },
+ { 0x8700, 0xffaf, 0x9000 },
+ { 0x8900, 0xff2f, 0x8020 },
+ { 0x8700, 0xfeec, 0x7000 },
+ { 0x8700, 0xfecc, 0x6000 },
+ { 0x8700, 0xfebc, 0x5000 },
+ { 0x8700, 0xfeb4, 0x4000 },
+ { 0x8700, 0xfeb0, 0x3000 },
+ { 0x8700, 0xfeae, 0x2000 },
+ { 0x0700, 0xfead, 0x0000 },
+ { 0x0700, 0xfeaf, 0x0000 },
+ { 0x8700, 0xfeb2, 0x2000 },
+ { 0x0700, 0xfeb1, 0x0000 },
+ { 0x0700, 0xfeb3, 0x0000 },
+ { 0x8700, 0xfeb8, 0x3000 },
+ { 0x8700, 0xfeb6, 0x2000 },
+ { 0x0700, 0xfeb5, 0x0000 },
+ { 0x0700, 0xfeb7, 0x0000 },
+ { 0x8700, 0xfeba, 0x2000 },
+ { 0x0700, 0xfeb9, 0x0000 },
+ { 0x0700, 0xfebb, 0x0000 },
+ { 0x8700, 0xfec4, 0x4000 },
+ { 0x8700, 0xfec0, 0x3000 },
+ { 0x8700, 0xfebe, 0x2000 },
+ { 0x0700, 0xfebd, 0x0000 },
+ { 0x0700, 0xfebf, 0x0000 },
+ { 0x8700, 0xfec2, 0x2000 },
+ { 0x0700, 0xfec1, 0x0000 },
+ { 0x0700, 0xfec3, 0x0000 },
+ { 0x8700, 0xfec8, 0x3000 },
+ { 0x8700, 0xfec6, 0x2000 },
+ { 0x0700, 0xfec5, 0x0000 },
+ { 0x0700, 0xfec7, 0x0000 },
+ { 0x8700, 0xfeca, 0x2000 },
+ { 0x0700, 0xfec9, 0x0000 },
+ { 0x0700, 0xfecb, 0x0000 },
+ { 0x8700, 0xfedc, 0x5000 },
+ { 0x8700, 0xfed4, 0x4000 },
+ { 0x8700, 0xfed0, 0x3000 },
+ { 0x8700, 0xfece, 0x2000 },
+ { 0x0700, 0xfecd, 0x0000 },
+ { 0x0700, 0xfecf, 0x0000 },
+ { 0x8700, 0xfed2, 0x2000 },
+ { 0x0700, 0xfed1, 0x0000 },
+ { 0x0700, 0xfed3, 0x0000 },
+ { 0x8700, 0xfed8, 0x3000 },
+ { 0x8700, 0xfed6, 0x2000 },
+ { 0x0700, 0xfed5, 0x0000 },
+ { 0x0700, 0xfed7, 0x0000 },
+ { 0x8700, 0xfeda, 0x2000 },
+ { 0x0700, 0xfed9, 0x0000 },
+ { 0x0700, 0xfedb, 0x0000 },
+ { 0x8700, 0xfee4, 0x4000 },
+ { 0x8700, 0xfee0, 0x3000 },
+ { 0x8700, 0xfede, 0x2000 },
+ { 0x0700, 0xfedd, 0x0000 },
+ { 0x0700, 0xfedf, 0x0000 },
+ { 0x8700, 0xfee2, 0x2000 },
+ { 0x0700, 0xfee1, 0x0000 },
+ { 0x0700, 0xfee3, 0x0000 },
+ { 0x8700, 0xfee8, 0x3000 },
+ { 0x8700, 0xfee6, 0x2000 },
+ { 0x0700, 0xfee5, 0x0000 },
+ { 0x0700, 0xfee7, 0x0000 },
+ { 0x8700, 0xfeea, 0x2000 },
+ { 0x0700, 0xfee9, 0x0000 },
+ { 0x0700, 0xfeeb, 0x0000 },
+ { 0x9500, 0xff0f, 0x6000 },
+ { 0x8700, 0xfefc, 0x5000 },
+ { 0x8700, 0xfef4, 0x4000 },
+ { 0x8700, 0xfef0, 0x3000 },
+ { 0x8700, 0xfeee, 0x2000 },
+ { 0x0700, 0xfeed, 0x0000 },
+ { 0x0700, 0xfeef, 0x0000 },
+ { 0x8700, 0xfef2, 0x2000 },
+ { 0x0700, 0xfef1, 0x0000 },
+ { 0x0700, 0xfef3, 0x0000 },
+ { 0x8700, 0xfef8, 0x3000 },
+ { 0x8700, 0xfef6, 0x2000 },
+ { 0x0700, 0xfef5, 0x0000 },
+ { 0x0700, 0xfef7, 0x0000 },
+ { 0x8700, 0xfefa, 0x2000 },
+ { 0x0700, 0xfef9, 0x0000 },
+ { 0x0700, 0xfefb, 0x0000 },
+ { 0x9500, 0xff07, 0x4000 },
+ { 0x9500, 0xff03, 0x3000 },
+ { 0x9500, 0xff01, 0x2000 },
+ { 0x0100, 0xfeff, 0x0000 },
+ { 0x1500, 0xff02, 0x0000 },
+ { 0x9500, 0xff05, 0x2000 },
+ { 0x1700, 0xff04, 0x0000 },
+ { 0x1500, 0xff06, 0x0000 },
+ { 0x9900, 0xff0b, 0x3000 },
+ { 0x9200, 0xff09, 0x2000 },
+ { 0x1600, 0xff08, 0x0000 },
+ { 0x1500, 0xff0a, 0x0000 },
+ { 0x9100, 0xff0d, 0x2000 },
+ { 0x1500, 0xff0c, 0x0000 },
+ { 0x1500, 0xff0e, 0x0000 },
+ { 0x9500, 0xff1f, 0x5000 },
+ { 0x8d00, 0xff17, 0x4000 },
+ { 0x8d00, 0xff13, 0x3000 },
+ { 0x8d00, 0xff11, 0x2000 },
+ { 0x0d00, 0xff10, 0x0000 },
+ { 0x0d00, 0xff12, 0x0000 },
+ { 0x8d00, 0xff15, 0x2000 },
+ { 0x0d00, 0xff14, 0x0000 },
+ { 0x0d00, 0xff16, 0x0000 },
+ { 0x9500, 0xff1b, 0x3000 },
+ { 0x8d00, 0xff19, 0x2000 },
+ { 0x0d00, 0xff18, 0x0000 },
+ { 0x1500, 0xff1a, 0x0000 },
+ { 0x9900, 0xff1d, 0x2000 },
+ { 0x1900, 0xff1c, 0x0000 },
+ { 0x1900, 0xff1e, 0x0000 },
+ { 0x8900, 0xff27, 0x4020 },
+ { 0x8900, 0xff23, 0x3020 },
+ { 0x8900, 0xff21, 0x2020 },
+ { 0x1500, 0xff20, 0x0000 },
+ { 0x0900, 0xff22, 0x0020 },
+ { 0x8900, 0xff25, 0x2020 },
+ { 0x0900, 0xff24, 0x0020 },
+ { 0x0900, 0xff26, 0x0020 },
+ { 0x8900, 0xff2b, 0x3020 },
+ { 0x8900, 0xff29, 0x2020 },
+ { 0x0900, 0xff28, 0x0020 },
+ { 0x0900, 0xff2a, 0x0020 },
+ { 0x8900, 0xff2d, 0x2020 },
+ { 0x0900, 0xff2c, 0x0020 },
+ { 0x0900, 0xff2e, 0x0020 },
+ { 0x8700, 0xff6f, 0x7000 },
+ { 0x8500, 0xff4f, 0x6fe0 },
+ { 0x9000, 0xff3f, 0x5000 },
+ { 0x8900, 0xff37, 0x4020 },
+ { 0x8900, 0xff33, 0x3020 },
+ { 0x8900, 0xff31, 0x2020 },
+ { 0x0900, 0xff30, 0x0020 },
+ { 0x0900, 0xff32, 0x0020 },
+ { 0x8900, 0xff35, 0x2020 },
+ { 0x0900, 0xff34, 0x0020 },
+ { 0x0900, 0xff36, 0x0020 },
+ { 0x9600, 0xff3b, 0x3000 },
+ { 0x8900, 0xff39, 0x2020 },
+ { 0x0900, 0xff38, 0x0020 },
+ { 0x0900, 0xff3a, 0x0020 },
+ { 0x9200, 0xff3d, 0x2000 },
+ { 0x1500, 0xff3c, 0x0000 },
+ { 0x1800, 0xff3e, 0x0000 },
+ { 0x8500, 0xff47, 0x4fe0 },
+ { 0x8500, 0xff43, 0x3fe0 },
+ { 0x8500, 0xff41, 0x2fe0 },
+ { 0x1800, 0xff40, 0x0000 },
+ { 0x0500, 0xff42, 0x0fe0 },
+ { 0x8500, 0xff45, 0x2fe0 },
+ { 0x0500, 0xff44, 0x0fe0 },
+ { 0x0500, 0xff46, 0x0fe0 },
+ { 0x8500, 0xff4b, 0x3fe0 },
+ { 0x8500, 0xff49, 0x2fe0 },
+ { 0x0500, 0xff48, 0x0fe0 },
+ { 0x0500, 0xff4a, 0x0fe0 },
+ { 0x8500, 0xff4d, 0x2fe0 },
+ { 0x0500, 0xff4c, 0x0fe0 },
+ { 0x0500, 0xff4e, 0x0fe0 },
+ { 0x9600, 0xff5f, 0x5000 },
+ { 0x8500, 0xff57, 0x4fe0 },
+ { 0x8500, 0xff53, 0x3fe0 },
+ { 0x8500, 0xff51, 0x2fe0 },
+ { 0x0500, 0xff50, 0x0fe0 },
+ { 0x0500, 0xff52, 0x0fe0 },
+ { 0x8500, 0xff55, 0x2fe0 },
+ { 0x0500, 0xff54, 0x0fe0 },
+ { 0x0500, 0xff56, 0x0fe0 },
+ { 0x9600, 0xff5b, 0x3000 },
+ { 0x8500, 0xff59, 0x2fe0 },
+ { 0x0500, 0xff58, 0x0fe0 },
+ { 0x0500, 0xff5a, 0x0fe0 },
+ { 0x9200, 0xff5d, 0x2000 },
+ { 0x1900, 0xff5c, 0x0000 },
+ { 0x1900, 0xff5e, 0x0000 },
+ { 0x8700, 0xff67, 0x4000 },
+ { 0x9200, 0xff63, 0x3000 },
+ { 0x9500, 0xff61, 0x2000 },
+ { 0x1200, 0xff60, 0x0000 },
+ { 0x1600, 0xff62, 0x0000 },
+ { 0x9000, 0xff65, 0x2000 },
+ { 0x1500, 0xff64, 0x0000 },
+ { 0x0700, 0xff66, 0x0000 },
+ { 0x8700, 0xff6b, 0x3000 },
+ { 0x8700, 0xff69, 0x2000 },
+ { 0x0700, 0xff68, 0x0000 },
+ { 0x0700, 0xff6a, 0x0000 },
+ { 0x8700, 0xff6d, 0x2000 },
+ { 0x0700, 0xff6c, 0x0000 },
+ { 0x0700, 0xff6e, 0x0000 },
+ { 0x8700, 0xff8f, 0x6000 },
+ { 0x8700, 0xff7f, 0x5000 },
+ { 0x8700, 0xff77, 0x4000 },
+ { 0x8700, 0xff73, 0x3000 },
+ { 0x8700, 0xff71, 0x2000 },
+ { 0x0600, 0xff70, 0x0000 },
+ { 0x0700, 0xff72, 0x0000 },
+ { 0x8700, 0xff75, 0x2000 },
+ { 0x0700, 0xff74, 0x0000 },
+ { 0x0700, 0xff76, 0x0000 },
+ { 0x8700, 0xff7b, 0x3000 },
+ { 0x8700, 0xff79, 0x2000 },
+ { 0x0700, 0xff78, 0x0000 },
+ { 0x0700, 0xff7a, 0x0000 },
+ { 0x8700, 0xff7d, 0x2000 },
+ { 0x0700, 0xff7c, 0x0000 },
+ { 0x0700, 0xff7e, 0x0000 },
+ { 0x8700, 0xff87, 0x4000 },
+ { 0x8700, 0xff83, 0x3000 },
+ { 0x8700, 0xff81, 0x2000 },
+ { 0x0700, 0xff80, 0x0000 },
+ { 0x0700, 0xff82, 0x0000 },
+ { 0x8700, 0xff85, 0x2000 },
+ { 0x0700, 0xff84, 0x0000 },
+ { 0x0700, 0xff86, 0x0000 },
+ { 0x8700, 0xff8b, 0x3000 },
+ { 0x8700, 0xff89, 0x2000 },
+ { 0x0700, 0xff88, 0x0000 },
+ { 0x0700, 0xff8a, 0x0000 },
+ { 0x8700, 0xff8d, 0x2000 },
+ { 0x0700, 0xff8c, 0x0000 },
+ { 0x0700, 0xff8e, 0x0000 },
+ { 0x8600, 0xff9f, 0x5000 },
+ { 0x8700, 0xff97, 0x4000 },
+ { 0x8700, 0xff93, 0x3000 },
+ { 0x8700, 0xff91, 0x2000 },
+ { 0x0700, 0xff90, 0x0000 },
+ { 0x0700, 0xff92, 0x0000 },
+ { 0x8700, 0xff95, 0x2000 },
+ { 0x0700, 0xff94, 0x0000 },
+ { 0x0700, 0xff96, 0x0000 },
+ { 0x8700, 0xff9b, 0x3000 },
+ { 0x8700, 0xff99, 0x2000 },
+ { 0x0700, 0xff98, 0x0000 },
+ { 0x0700, 0xff9a, 0x0000 },
+ { 0x8700, 0xff9d, 0x2000 },
+ { 0x0700, 0xff9c, 0x0000 },
+ { 0x0600, 0xff9e, 0x0000 },
+ { 0x8700, 0xffa7, 0x4000 },
+ { 0x8700, 0xffa3, 0x3000 },
+ { 0x8700, 0xffa1, 0x2000 },
+ { 0x0700, 0xffa0, 0x0000 },
+ { 0x0700, 0xffa2, 0x0000 },
+ { 0x8700, 0xffa5, 0x2000 },
+ { 0x0700, 0xffa4, 0x0000 },
+ { 0x0700, 0xffa6, 0x0000 },
+ { 0x8700, 0xffab, 0x3000 },
+ { 0x8700, 0xffa9, 0x2000 },
+ { 0x0700, 0xffa8, 0x0000 },
+ { 0x0700, 0xffaa, 0x0000 },
+ { 0x8700, 0xffad, 0x2000 },
+ { 0x0700, 0xffac, 0x0000 },
+ { 0x0700, 0xffae, 0x0000 },
+ { 0x8701, 0x004c, 0x8000 },
+ { 0x8701, 0x0008, 0x7000 },
+ { 0x8700, 0xffd6, 0x6000 },
+ { 0x8700, 0xffc2, 0x5000 },
+ { 0x8700, 0xffb7, 0x4000 },
+ { 0x8700, 0xffb3, 0x3000 },
+ { 0x8700, 0xffb1, 0x2000 },
+ { 0x0700, 0xffb0, 0x0000 },
+ { 0x0700, 0xffb2, 0x0000 },
+ { 0x8700, 0xffb5, 0x2000 },
+ { 0x0700, 0xffb4, 0x0000 },
+ { 0x0700, 0xffb6, 0x0000 },
+ { 0x8700, 0xffbb, 0x3000 },
+ { 0x8700, 0xffb9, 0x2000 },
+ { 0x0700, 0xffb8, 0x0000 },
+ { 0x0700, 0xffba, 0x0000 },
+ { 0x8700, 0xffbd, 0x2000 },
+ { 0x0700, 0xffbc, 0x0000 },
+ { 0x0700, 0xffbe, 0x0000 },
+ { 0x8700, 0xffcc, 0x4000 },
+ { 0x8700, 0xffc6, 0x3000 },
+ { 0x8700, 0xffc4, 0x2000 },
+ { 0x0700, 0xffc3, 0x0000 },
+ { 0x0700, 0xffc5, 0x0000 },
+ { 0x8700, 0xffca, 0x2000 },
+ { 0x0700, 0xffc7, 0x0000 },
+ { 0x0700, 0xffcb, 0x0000 },
+ { 0x8700, 0xffd2, 0x3000 },
+ { 0x8700, 0xffce, 0x2000 },
+ { 0x0700, 0xffcd, 0x0000 },
+ { 0x0700, 0xffcf, 0x0000 },
+ { 0x8700, 0xffd4, 0x2000 },
+ { 0x0700, 0xffd3, 0x0000 },
+ { 0x0700, 0xffd5, 0x0000 },
+ { 0x9900, 0xffec, 0x5000 },
+ { 0x9800, 0xffe3, 0x4000 },
+ { 0x8700, 0xffdc, 0x3000 },
+ { 0x8700, 0xffda, 0x2000 },
+ { 0x0700, 0xffd7, 0x0000 },
+ { 0x0700, 0xffdb, 0x0000 },
+ { 0x9700, 0xffe1, 0x2000 },
+ { 0x1700, 0xffe0, 0x0000 },
+ { 0x1900, 0xffe2, 0x0000 },
+ { 0x9a00, 0xffe8, 0x3000 },
+ { 0x9700, 0xffe5, 0x2000 },
+ { 0x1a00, 0xffe4, 0x0000 },
+ { 0x1700, 0xffe6, 0x0000 },
+ { 0x9900, 0xffea, 0x2000 },
+ { 0x1900, 0xffe9, 0x0000 },
+ { 0x1900, 0xffeb, 0x0000 },
+ { 0x8701, 0x0000, 0x4000 },
+ { 0x8100, 0xfffa, 0x3000 },
+ { 0x9a00, 0xffee, 0x2000 },
+ { 0x1a00, 0xffed, 0x0000 },
+ { 0x0100, 0xfff9, 0x0000 },
+ { 0x9a00, 0xfffc, 0x2000 },
+ { 0x0100, 0xfffb, 0x0000 },
+ { 0x1a00, 0xfffd, 0x0000 },
+ { 0x8701, 0x0004, 0x3000 },
+ { 0x8701, 0x0002, 0x2000 },
+ { 0x0701, 0x0001, 0x0000 },
+ { 0x0701, 0x0003, 0x0000 },
+ { 0x8701, 0x0006, 0x2000 },
+ { 0x0701, 0x0005, 0x0000 },
+ { 0x0701, 0x0007, 0x0000 },
+ { 0x8701, 0x002a, 0x6000 },
+ { 0x8701, 0x0019, 0x5000 },
+ { 0x8701, 0x0011, 0x4000 },
+ { 0x8701, 0x000d, 0x3000 },
+ { 0x8701, 0x000a, 0x2000 },
+ { 0x0701, 0x0009, 0x0000 },
+ { 0x0701, 0x000b, 0x0000 },
+ { 0x8701, 0x000f, 0x2000 },
+ { 0x0701, 0x000e, 0x0000 },
+ { 0x0701, 0x0010, 0x0000 },
+ { 0x8701, 0x0015, 0x3000 },
+ { 0x8701, 0x0013, 0x2000 },
+ { 0x0701, 0x0012, 0x0000 },
+ { 0x0701, 0x0014, 0x0000 },
+ { 0x8701, 0x0017, 0x2000 },
+ { 0x0701, 0x0016, 0x0000 },
+ { 0x0701, 0x0018, 0x0000 },
+ { 0x8701, 0x0021, 0x4000 },
+ { 0x8701, 0x001d, 0x3000 },
+ { 0x8701, 0x001b, 0x2000 },
+ { 0x0701, 0x001a, 0x0000 },
+ { 0x0701, 0x001c, 0x0000 },
+ { 0x8701, 0x001f, 0x2000 },
+ { 0x0701, 0x001e, 0x0000 },
+ { 0x0701, 0x0020, 0x0000 },
+ { 0x8701, 0x0025, 0x3000 },
+ { 0x8701, 0x0023, 0x2000 },
+ { 0x0701, 0x0022, 0x0000 },
+ { 0x0701, 0x0024, 0x0000 },
+ { 0x8701, 0x0028, 0x2000 },
+ { 0x0701, 0x0026, 0x0000 },
+ { 0x0701, 0x0029, 0x0000 },
+ { 0x8701, 0x003a, 0x5000 },
+ { 0x8701, 0x0032, 0x4000 },
+ { 0x8701, 0x002e, 0x3000 },
+ { 0x8701, 0x002c, 0x2000 },
+ { 0x0701, 0x002b, 0x0000 },
+ { 0x0701, 0x002d, 0x0000 },
+ { 0x8701, 0x0030, 0x2000 },
+ { 0x0701, 0x002f, 0x0000 },
+ { 0x0701, 0x0031, 0x0000 },
+ { 0x8701, 0x0036, 0x3000 },
+ { 0x8701, 0x0034, 0x2000 },
+ { 0x0701, 0x0033, 0x0000 },
+ { 0x0701, 0x0035, 0x0000 },
+ { 0x8701, 0x0038, 0x2000 },
+ { 0x0701, 0x0037, 0x0000 },
+ { 0x0701, 0x0039, 0x0000 },
+ { 0x8701, 0x0044, 0x4000 },
+ { 0x8701, 0x0040, 0x3000 },
+ { 0x8701, 0x003d, 0x2000 },
+ { 0x0701, 0x003c, 0x0000 },
+ { 0x0701, 0x003f, 0x0000 },
+ { 0x8701, 0x0042, 0x2000 },
+ { 0x0701, 0x0041, 0x0000 },
+ { 0x0701, 0x0043, 0x0000 },
+ { 0x8701, 0x0048, 0x3000 },
+ { 0x8701, 0x0046, 0x2000 },
+ { 0x0701, 0x0045, 0x0000 },
+ { 0x0701, 0x0047, 0x0000 },
+ { 0x8701, 0x004a, 0x2000 },
+ { 0x0701, 0x0049, 0x0000 },
+ { 0x0701, 0x004b, 0x0000 },
+ { 0x8701, 0x00b0, 0x7000 },
+ { 0x8701, 0x0090, 0x6000 },
+ { 0x8701, 0x0080, 0x5000 },
+ { 0x8701, 0x0056, 0x4000 },
+ { 0x8701, 0x0052, 0x3000 },
+ { 0x8701, 0x0050, 0x2000 },
+ { 0x0701, 0x004d, 0x0000 },
+ { 0x0701, 0x0051, 0x0000 },
+ { 0x8701, 0x0054, 0x2000 },
+ { 0x0701, 0x0053, 0x0000 },
+ { 0x0701, 0x0055, 0x0000 },
+ { 0x8701, 0x005a, 0x3000 },
+ { 0x8701, 0x0058, 0x2000 },
+ { 0x0701, 0x0057, 0x0000 },
+ { 0x0701, 0x0059, 0x0000 },
+ { 0x8701, 0x005c, 0x2000 },
+ { 0x0701, 0x005b, 0x0000 },
+ { 0x0701, 0x005d, 0x0000 },
+ { 0x8701, 0x0088, 0x4000 },
+ { 0x8701, 0x0084, 0x3000 },
+ { 0x8701, 0x0082, 0x2000 },
+ { 0x0701, 0x0081, 0x0000 },
+ { 0x0701, 0x0083, 0x0000 },
+ { 0x8701, 0x0086, 0x2000 },
+ { 0x0701, 0x0085, 0x0000 },
+ { 0x0701, 0x0087, 0x0000 },
+ { 0x8701, 0x008c, 0x3000 },
+ { 0x8701, 0x008a, 0x2000 },
+ { 0x0701, 0x0089, 0x0000 },
+ { 0x0701, 0x008b, 0x0000 },
+ { 0x8701, 0x008e, 0x2000 },
+ { 0x0701, 0x008d, 0x0000 },
+ { 0x0701, 0x008f, 0x0000 },
+ { 0x8701, 0x00a0, 0x5000 },
+ { 0x8701, 0x0098, 0x4000 },
+ { 0x8701, 0x0094, 0x3000 },
+ { 0x8701, 0x0092, 0x2000 },
+ { 0x0701, 0x0091, 0x0000 },
+ { 0x0701, 0x0093, 0x0000 },
+ { 0x8701, 0x0096, 0x2000 },
+ { 0x0701, 0x0095, 0x0000 },
+ { 0x0701, 0x0097, 0x0000 },
+ { 0x8701, 0x009c, 0x3000 },
+ { 0x8701, 0x009a, 0x2000 },
+ { 0x0701, 0x0099, 0x0000 },
+ { 0x0701, 0x009b, 0x0000 },
+ { 0x8701, 0x009e, 0x2000 },
+ { 0x0701, 0x009d, 0x0000 },
+ { 0x0701, 0x009f, 0x0000 },
+ { 0x8701, 0x00a8, 0x4000 },
+ { 0x8701, 0x00a4, 0x3000 },
+ { 0x8701, 0x00a2, 0x2000 },
+ { 0x0701, 0x00a1, 0x0000 },
+ { 0x0701, 0x00a3, 0x0000 },
+ { 0x8701, 0x00a6, 0x2000 },
+ { 0x0701, 0x00a5, 0x0000 },
+ { 0x0701, 0x00a7, 0x0000 },
+ { 0x8701, 0x00ac, 0x3000 },
+ { 0x8701, 0x00aa, 0x2000 },
+ { 0x0701, 0x00a9, 0x0000 },
+ { 0x0701, 0x00ab, 0x0000 },
+ { 0x8701, 0x00ae, 0x2000 },
+ { 0x0701, 0x00ad, 0x0000 },
+ { 0x0701, 0x00af, 0x0000 },
+ { 0x8701, 0x00d0, 0x6000 },
+ { 0x8701, 0x00c0, 0x5000 },
+ { 0x8701, 0x00b8, 0x4000 },
+ { 0x8701, 0x00b4, 0x3000 },
+ { 0x8701, 0x00b2, 0x2000 },
+ { 0x0701, 0x00b1, 0x0000 },
+ { 0x0701, 0x00b3, 0x0000 },
+ { 0x8701, 0x00b6, 0x2000 },
+ { 0x0701, 0x00b5, 0x0000 },
+ { 0x0701, 0x00b7, 0x0000 },
+ { 0x8701, 0x00bc, 0x3000 },
+ { 0x8701, 0x00ba, 0x2000 },
+ { 0x0701, 0x00b9, 0x0000 },
+ { 0x0701, 0x00bb, 0x0000 },
+ { 0x8701, 0x00be, 0x2000 },
+ { 0x0701, 0x00bd, 0x0000 },
+ { 0x0701, 0x00bf, 0x0000 },
+ { 0x8701, 0x00c8, 0x4000 },
+ { 0x8701, 0x00c4, 0x3000 },
+ { 0x8701, 0x00c2, 0x2000 },
+ { 0x0701, 0x00c1, 0x0000 },
+ { 0x0701, 0x00c3, 0x0000 },
+ { 0x8701, 0x00c6, 0x2000 },
+ { 0x0701, 0x00c5, 0x0000 },
+ { 0x0701, 0x00c7, 0x0000 },
+ { 0x8701, 0x00cc, 0x3000 },
+ { 0x8701, 0x00ca, 0x2000 },
+ { 0x0701, 0x00c9, 0x0000 },
+ { 0x0701, 0x00cb, 0x0000 },
+ { 0x8701, 0x00ce, 0x2000 },
+ { 0x0701, 0x00cd, 0x0000 },
+ { 0x0701, 0x00cf, 0x0000 },
+ { 0x8701, 0x00e0, 0x5000 },
+ { 0x8701, 0x00d8, 0x4000 },
+ { 0x8701, 0x00d4, 0x3000 },
+ { 0x8701, 0x00d2, 0x2000 },
+ { 0x0701, 0x00d1, 0x0000 },
+ { 0x0701, 0x00d3, 0x0000 },
+ { 0x8701, 0x00d6, 0x2000 },
+ { 0x0701, 0x00d5, 0x0000 },
+ { 0x0701, 0x00d7, 0x0000 },
+ { 0x8701, 0x00dc, 0x3000 },
+ { 0x8701, 0x00da, 0x2000 },
+ { 0x0701, 0x00d9, 0x0000 },
+ { 0x0701, 0x00db, 0x0000 },
+ { 0x8701, 0x00de, 0x2000 },
+ { 0x0701, 0x00dd, 0x0000 },
+ { 0x0701, 0x00df, 0x0000 },
+ { 0x8701, 0x00e8, 0x4000 },
+ { 0x8701, 0x00e4, 0x3000 },
+ { 0x8701, 0x00e2, 0x2000 },
+ { 0x0701, 0x00e1, 0x0000 },
+ { 0x0701, 0x00e3, 0x0000 },
+ { 0x8701, 0x00e6, 0x2000 },
+ { 0x0701, 0x00e5, 0x0000 },
+ { 0x0701, 0x00e7, 0x0000 },
+ { 0x8701, 0x00ec, 0x3000 },
+ { 0x8701, 0x00ea, 0x2000 },
+ { 0x0701, 0x00e9, 0x0000 },
+ { 0x0701, 0x00eb, 0x0000 },
+ { 0x8701, 0x00ee, 0x2000 },
+ { 0x0701, 0x00ed, 0x0000 },
+ { 0x0701, 0x00ef, 0x0000 },
+ { 0x8501, 0xd459, 0xb000 },
+ { 0x9a01, 0xd080, 0xa000 },
+ { 0x8701, 0x045f, 0x9000 },
+ { 0x8701, 0x0349, 0x8000 },
+ { 0x9a01, 0x013c, 0x7000 },
+ { 0x8f01, 0x0119, 0x6000 },
+ { 0x8f01, 0x0109, 0x5000 },
+ { 0x8701, 0x00f8, 0x4000 },
+ { 0x8701, 0x00f4, 0x3000 },
+ { 0x8701, 0x00f2, 0x2000 },
+ { 0x0701, 0x00f1, 0x0000 },
+ { 0x0701, 0x00f3, 0x0000 },
+ { 0x8701, 0x00f6, 0x2000 },
+ { 0x0701, 0x00f5, 0x0000 },
+ { 0x0701, 0x00f7, 0x0000 },
+ { 0x9501, 0x0101, 0x3000 },
+ { 0x8701, 0x00fa, 0x2000 },
+ { 0x0701, 0x00f9, 0x0000 },
+ { 0x1501, 0x0100, 0x0000 },
+ { 0x8f01, 0x0107, 0x2000 },
+ { 0x1a01, 0x0102, 0x0000 },
+ { 0x0f01, 0x0108, 0x0000 },
+ { 0x8f01, 0x0111, 0x4000 },
+ { 0x8f01, 0x010d, 0x3000 },
+ { 0x8f01, 0x010b, 0x2000 },
+ { 0x0f01, 0x010a, 0x0000 },
+ { 0x0f01, 0x010c, 0x0000 },
+ { 0x8f01, 0x010f, 0x2000 },
+ { 0x0f01, 0x010e, 0x0000 },
+ { 0x0f01, 0x0110, 0x0000 },
+ { 0x8f01, 0x0115, 0x3000 },
+ { 0x8f01, 0x0113, 0x2000 },
+ { 0x0f01, 0x0112, 0x0000 },
+ { 0x0f01, 0x0114, 0x0000 },
+ { 0x8f01, 0x0117, 0x2000 },
+ { 0x0f01, 0x0116, 0x0000 },
+ { 0x0f01, 0x0118, 0x0000 },
+ { 0x8f01, 0x0129, 0x5000 },
+ { 0x8f01, 0x0121, 0x4000 },
+ { 0x8f01, 0x011d, 0x3000 },
+ { 0x8f01, 0x011b, 0x2000 },
+ { 0x0f01, 0x011a, 0x0000 },
+ { 0x0f01, 0x011c, 0x0000 },
+ { 0x8f01, 0x011f, 0x2000 },
+ { 0x0f01, 0x011e, 0x0000 },
+ { 0x0f01, 0x0120, 0x0000 },
+ { 0x8f01, 0x0125, 0x3000 },
+ { 0x8f01, 0x0123, 0x2000 },
+ { 0x0f01, 0x0122, 0x0000 },
+ { 0x0f01, 0x0124, 0x0000 },
+ { 0x8f01, 0x0127, 0x2000 },
+ { 0x0f01, 0x0126, 0x0000 },
+ { 0x0f01, 0x0128, 0x0000 },
+ { 0x8f01, 0x0131, 0x4000 },
+ { 0x8f01, 0x012d, 0x3000 },
+ { 0x8f01, 0x012b, 0x2000 },
+ { 0x0f01, 0x012a, 0x0000 },
+ { 0x0f01, 0x012c, 0x0000 },
+ { 0x8f01, 0x012f, 0x2000 },
+ { 0x0f01, 0x012e, 0x0000 },
+ { 0x0f01, 0x0130, 0x0000 },
+ { 0x9a01, 0x0138, 0x3000 },
+ { 0x8f01, 0x0133, 0x2000 },
+ { 0x0f01, 0x0132, 0x0000 },
+ { 0x1a01, 0x0137, 0x0000 },
+ { 0x9a01, 0x013a, 0x2000 },
+ { 0x1a01, 0x0139, 0x0000 },
+ { 0x1a01, 0x013b, 0x0000 },
+ { 0x8701, 0x031c, 0x6000 },
+ { 0x8701, 0x030c, 0x5000 },
+ { 0x8701, 0x0304, 0x4000 },
+ { 0x8701, 0x0300, 0x3000 },
+ { 0x9a01, 0x013e, 0x2000 },
+ { 0x1a01, 0x013d, 0x0000 },
+ { 0x1a01, 0x013f, 0x0000 },
+ { 0x8701, 0x0302, 0x2000 },
+ { 0x0701, 0x0301, 0x0000 },
+ { 0x0701, 0x0303, 0x0000 },
+ { 0x8701, 0x0308, 0x3000 },
+ { 0x8701, 0x0306, 0x2000 },
+ { 0x0701, 0x0305, 0x0000 },
+ { 0x0701, 0x0307, 0x0000 },
+ { 0x8701, 0x030a, 0x2000 },
+ { 0x0701, 0x0309, 0x0000 },
+ { 0x0701, 0x030b, 0x0000 },
+ { 0x8701, 0x0314, 0x4000 },
+ { 0x8701, 0x0310, 0x3000 },
+ { 0x8701, 0x030e, 0x2000 },
+ { 0x0701, 0x030d, 0x0000 },
+ { 0x0701, 0x030f, 0x0000 },
+ { 0x8701, 0x0312, 0x2000 },
+ { 0x0701, 0x0311, 0x0000 },
+ { 0x0701, 0x0313, 0x0000 },
+ { 0x8701, 0x0318, 0x3000 },
+ { 0x8701, 0x0316, 0x2000 },
+ { 0x0701, 0x0315, 0x0000 },
+ { 0x0701, 0x0317, 0x0000 },
+ { 0x8701, 0x031a, 0x2000 },
+ { 0x0701, 0x0319, 0x0000 },
+ { 0x0701, 0x031b, 0x0000 },
+ { 0x8701, 0x0339, 0x5000 },
+ { 0x8701, 0x0331, 0x4000 },
+ { 0x8f01, 0x0321, 0x3000 },
+ { 0x8701, 0x031e, 0x2000 },
+ { 0x0701, 0x031d, 0x0000 },
+ { 0x0f01, 0x0320, 0x0000 },
+ { 0x8f01, 0x0323, 0x2000 },
+ { 0x0f01, 0x0322, 0x0000 },
+ { 0x0701, 0x0330, 0x0000 },
+ { 0x8701, 0x0335, 0x3000 },
+ { 0x8701, 0x0333, 0x2000 },
+ { 0x0701, 0x0332, 0x0000 },
+ { 0x0701, 0x0334, 0x0000 },
+ { 0x8701, 0x0337, 0x2000 },
+ { 0x0701, 0x0336, 0x0000 },
+ { 0x0701, 0x0338, 0x0000 },
+ { 0x8701, 0x0341, 0x4000 },
+ { 0x8701, 0x033d, 0x3000 },
+ { 0x8701, 0x033b, 0x2000 },
+ { 0x0701, 0x033a, 0x0000 },
+ { 0x0701, 0x033c, 0x0000 },
+ { 0x8701, 0x033f, 0x2000 },
+ { 0x0701, 0x033e, 0x0000 },
+ { 0x0701, 0x0340, 0x0000 },
+ { 0x8701, 0x0345, 0x3000 },
+ { 0x8701, 0x0343, 0x2000 },
+ { 0x0701, 0x0342, 0x0000 },
+ { 0x0701, 0x0344, 0x0000 },
+ { 0x8701, 0x0347, 0x2000 },
+ { 0x0701, 0x0346, 0x0000 },
+ { 0x0701, 0x0348, 0x0000 },
+ { 0x8901, 0x041f, 0x7028 },
+ { 0x9501, 0x039f, 0x6000 },
+ { 0x8701, 0x038e, 0x5000 },
+ { 0x8701, 0x0386, 0x4000 },
+ { 0x8701, 0x0382, 0x3000 },
+ { 0x8701, 0x0380, 0x2000 },
+ { 0x0e01, 0x034a, 0x0000 },
+ { 0x0701, 0x0381, 0x0000 },
+ { 0x8701, 0x0384, 0x2000 },
+ { 0x0701, 0x0383, 0x0000 },
+ { 0x0701, 0x0385, 0x0000 },
+ { 0x8701, 0x038a, 0x3000 },
+ { 0x8701, 0x0388, 0x2000 },
+ { 0x0701, 0x0387, 0x0000 },
+ { 0x0701, 0x0389, 0x0000 },
+ { 0x8701, 0x038c, 0x2000 },
+ { 0x0701, 0x038b, 0x0000 },
+ { 0x0701, 0x038d, 0x0000 },
+ { 0x8701, 0x0396, 0x4000 },
+ { 0x8701, 0x0392, 0x3000 },
+ { 0x8701, 0x0390, 0x2000 },
+ { 0x0701, 0x038f, 0x0000 },
+ { 0x0701, 0x0391, 0x0000 },
+ { 0x8701, 0x0394, 0x2000 },
+ { 0x0701, 0x0393, 0x0000 },
+ { 0x0701, 0x0395, 0x0000 },
+ { 0x8701, 0x039a, 0x3000 },
+ { 0x8701, 0x0398, 0x2000 },
+ { 0x0701, 0x0397, 0x0000 },
+ { 0x0701, 0x0399, 0x0000 },
+ { 0x8701, 0x039c, 0x2000 },
+ { 0x0701, 0x039b, 0x0000 },
+ { 0x0701, 0x039d, 0x0000 },
+ { 0x8901, 0x040f, 0x5028 },
+ { 0x8901, 0x0407, 0x4028 },
+ { 0x8901, 0x0403, 0x3028 },
+ { 0x8901, 0x0401, 0x2028 },
+ { 0x0901, 0x0400, 0x0028 },
+ { 0x0901, 0x0402, 0x0028 },
+ { 0x8901, 0x0405, 0x2028 },
+ { 0x0901, 0x0404, 0x0028 },
+ { 0x0901, 0x0406, 0x0028 },
+ { 0x8901, 0x040b, 0x3028 },
+ { 0x8901, 0x0409, 0x2028 },
+ { 0x0901, 0x0408, 0x0028 },
+ { 0x0901, 0x040a, 0x0028 },
+ { 0x8901, 0x040d, 0x2028 },
+ { 0x0901, 0x040c, 0x0028 },
+ { 0x0901, 0x040e, 0x0028 },
+ { 0x8901, 0x0417, 0x4028 },
+ { 0x8901, 0x0413, 0x3028 },
+ { 0x8901, 0x0411, 0x2028 },
+ { 0x0901, 0x0410, 0x0028 },
+ { 0x0901, 0x0412, 0x0028 },
+ { 0x8901, 0x0415, 0x2028 },
+ { 0x0901, 0x0414, 0x0028 },
+ { 0x0901, 0x0416, 0x0028 },
+ { 0x8901, 0x041b, 0x3028 },
+ { 0x8901, 0x0419, 0x2028 },
+ { 0x0901, 0x0418, 0x0028 },
+ { 0x0901, 0x041a, 0x0028 },
+ { 0x8901, 0x041d, 0x2028 },
+ { 0x0901, 0x041c, 0x0028 },
+ { 0x0901, 0x041e, 0x0028 },
+ { 0x8501, 0x043f, 0x6fd8 },
+ { 0x8501, 0x042f, 0x5fd8 },
+ { 0x8901, 0x0427, 0x4028 },
+ { 0x8901, 0x0423, 0x3028 },
+ { 0x8901, 0x0421, 0x2028 },
+ { 0x0901, 0x0420, 0x0028 },
+ { 0x0901, 0x0422, 0x0028 },
+ { 0x8901, 0x0425, 0x2028 },
+ { 0x0901, 0x0424, 0x0028 },
+ { 0x0901, 0x0426, 0x0028 },
+ { 0x8501, 0x042b, 0x3fd8 },
+ { 0x8501, 0x0429, 0x2fd8 },
+ { 0x0501, 0x0428, 0x0fd8 },
+ { 0x0501, 0x042a, 0x0fd8 },
+ { 0x8501, 0x042d, 0x2fd8 },
+ { 0x0501, 0x042c, 0x0fd8 },
+ { 0x0501, 0x042e, 0x0fd8 },
+ { 0x8501, 0x0437, 0x4fd8 },
+ { 0x8501, 0x0433, 0x3fd8 },
+ { 0x8501, 0x0431, 0x2fd8 },
+ { 0x0501, 0x0430, 0x0fd8 },
+ { 0x0501, 0x0432, 0x0fd8 },
+ { 0x8501, 0x0435, 0x2fd8 },
+ { 0x0501, 0x0434, 0x0fd8 },
+ { 0x0501, 0x0436, 0x0fd8 },
+ { 0x8501, 0x043b, 0x3fd8 },
+ { 0x8501, 0x0439, 0x2fd8 },
+ { 0x0501, 0x0438, 0x0fd8 },
+ { 0x0501, 0x043a, 0x0fd8 },
+ { 0x8501, 0x043d, 0x2fd8 },
+ { 0x0501, 0x043c, 0x0fd8 },
+ { 0x0501, 0x043e, 0x0fd8 },
+ { 0x8501, 0x044f, 0x5fd8 },
+ { 0x8501, 0x0447, 0x4fd8 },
+ { 0x8501, 0x0443, 0x3fd8 },
+ { 0x8501, 0x0441, 0x2fd8 },
+ { 0x0501, 0x0440, 0x0fd8 },
+ { 0x0501, 0x0442, 0x0fd8 },
+ { 0x8501, 0x0445, 0x2fd8 },
+ { 0x0501, 0x0444, 0x0fd8 },
+ { 0x0501, 0x0446, 0x0fd8 },
+ { 0x8501, 0x044b, 0x3fd8 },
+ { 0x8501, 0x0449, 0x2fd8 },
+ { 0x0501, 0x0448, 0x0fd8 },
+ { 0x0501, 0x044a, 0x0fd8 },
+ { 0x8501, 0x044d, 0x2fd8 },
+ { 0x0501, 0x044c, 0x0fd8 },
+ { 0x0501, 0x044e, 0x0fd8 },
+ { 0x8701, 0x0457, 0x4000 },
+ { 0x8701, 0x0453, 0x3000 },
+ { 0x8701, 0x0451, 0x2000 },
+ { 0x0701, 0x0450, 0x0000 },
+ { 0x0701, 0x0452, 0x0000 },
+ { 0x8701, 0x0455, 0x2000 },
+ { 0x0701, 0x0454, 0x0000 },
+ { 0x0701, 0x0456, 0x0000 },
+ { 0x8701, 0x045b, 0x3000 },
+ { 0x8701, 0x0459, 0x2000 },
+ { 0x0701, 0x0458, 0x0000 },
+ { 0x0701, 0x045a, 0x0000 },
+ { 0x8701, 0x045d, 0x2000 },
+ { 0x0701, 0x045c, 0x0000 },
+ { 0x0701, 0x045e, 0x0000 },
+ { 0x9a01, 0xd000, 0x8000 },
+ { 0x8d01, 0x04a1, 0x7000 },
+ { 0x8701, 0x047f, 0x6000 },
+ { 0x8701, 0x046f, 0x5000 },
+ { 0x8701, 0x0467, 0x4000 },
+ { 0x8701, 0x0463, 0x3000 },
+ { 0x8701, 0x0461, 0x2000 },
+ { 0x0701, 0x0460, 0x0000 },
+ { 0x0701, 0x0462, 0x0000 },
+ { 0x8701, 0x0465, 0x2000 },
+ { 0x0701, 0x0464, 0x0000 },
+ { 0x0701, 0x0466, 0x0000 },
+ { 0x8701, 0x046b, 0x3000 },
+ { 0x8701, 0x0469, 0x2000 },
+ { 0x0701, 0x0468, 0x0000 },
+ { 0x0701, 0x046a, 0x0000 },
+ { 0x8701, 0x046d, 0x2000 },
+ { 0x0701, 0x046c, 0x0000 },
+ { 0x0701, 0x046e, 0x0000 },
+ { 0x8701, 0x0477, 0x4000 },
+ { 0x8701, 0x0473, 0x3000 },
+ { 0x8701, 0x0471, 0x2000 },
+ { 0x0701, 0x0470, 0x0000 },
+ { 0x0701, 0x0472, 0x0000 },
+ { 0x8701, 0x0475, 0x2000 },
+ { 0x0701, 0x0474, 0x0000 },
+ { 0x0701, 0x0476, 0x0000 },
+ { 0x8701, 0x047b, 0x3000 },
+ { 0x8701, 0x0479, 0x2000 },
+ { 0x0701, 0x0478, 0x0000 },
+ { 0x0701, 0x047a, 0x0000 },
+ { 0x8701, 0x047d, 0x2000 },
+ { 0x0701, 0x047c, 0x0000 },
+ { 0x0701, 0x047e, 0x0000 },
+ { 0x8701, 0x048f, 0x5000 },
+ { 0x8701, 0x0487, 0x4000 },
+ { 0x8701, 0x0483, 0x3000 },
+ { 0x8701, 0x0481, 0x2000 },
+ { 0x0701, 0x0480, 0x0000 },
+ { 0x0701, 0x0482, 0x0000 },
+ { 0x8701, 0x0485, 0x2000 },
+ { 0x0701, 0x0484, 0x0000 },
+ { 0x0701, 0x0486, 0x0000 },
+ { 0x8701, 0x048b, 0x3000 },
+ { 0x8701, 0x0489, 0x2000 },
+ { 0x0701, 0x0488, 0x0000 },
+ { 0x0701, 0x048a, 0x0000 },
+ { 0x8701, 0x048d, 0x2000 },
+ { 0x0701, 0x048c, 0x0000 },
+ { 0x0701, 0x048e, 0x0000 },
+ { 0x8701, 0x0497, 0x4000 },
+ { 0x8701, 0x0493, 0x3000 },
+ { 0x8701, 0x0491, 0x2000 },
+ { 0x0701, 0x0490, 0x0000 },
+ { 0x0701, 0x0492, 0x0000 },
+ { 0x8701, 0x0495, 0x2000 },
+ { 0x0701, 0x0494, 0x0000 },
+ { 0x0701, 0x0496, 0x0000 },
+ { 0x8701, 0x049b, 0x3000 },
+ { 0x8701, 0x0499, 0x2000 },
+ { 0x0701, 0x0498, 0x0000 },
+ { 0x0701, 0x049a, 0x0000 },
+ { 0x8701, 0x049d, 0x2000 },
+ { 0x0701, 0x049c, 0x0000 },
+ { 0x0d01, 0x04a0, 0x0000 },
+ { 0x8701, 0x081a, 0x6000 },
+ { 0x8701, 0x080a, 0x5000 },
+ { 0x8d01, 0x04a9, 0x4000 },
+ { 0x8d01, 0x04a5, 0x3000 },
+ { 0x8d01, 0x04a3, 0x2000 },
+ { 0x0d01, 0x04a2, 0x0000 },
+ { 0x0d01, 0x04a4, 0x0000 },
+ { 0x8d01, 0x04a7, 0x2000 },
+ { 0x0d01, 0x04a6, 0x0000 },
+ { 0x0d01, 0x04a8, 0x0000 },
+ { 0x8701, 0x0803, 0x3000 },
+ { 0x8701, 0x0801, 0x2000 },
+ { 0x0701, 0x0800, 0x0000 },
+ { 0x0701, 0x0802, 0x0000 },
+ { 0x8701, 0x0805, 0x2000 },
+ { 0x0701, 0x0804, 0x0000 },
+ { 0x0701, 0x0808, 0x0000 },
+ { 0x8701, 0x0812, 0x4000 },
+ { 0x8701, 0x080e, 0x3000 },
+ { 0x8701, 0x080c, 0x2000 },
+ { 0x0701, 0x080b, 0x0000 },
+ { 0x0701, 0x080d, 0x0000 },
+ { 0x8701, 0x0810, 0x2000 },
+ { 0x0701, 0x080f, 0x0000 },
+ { 0x0701, 0x0811, 0x0000 },
+ { 0x8701, 0x0816, 0x3000 },
+ { 0x8701, 0x0814, 0x2000 },
+ { 0x0701, 0x0813, 0x0000 },
+ { 0x0701, 0x0815, 0x0000 },
+ { 0x8701, 0x0818, 0x2000 },
+ { 0x0701, 0x0817, 0x0000 },
+ { 0x0701, 0x0819, 0x0000 },
+ { 0x8701, 0x082a, 0x5000 },
+ { 0x8701, 0x0822, 0x4000 },
+ { 0x8701, 0x081e, 0x3000 },
+ { 0x8701, 0x081c, 0x2000 },
+ { 0x0701, 0x081b, 0x0000 },
+ { 0x0701, 0x081d, 0x0000 },
+ { 0x8701, 0x0820, 0x2000 },
+ { 0x0701, 0x081f, 0x0000 },
+ { 0x0701, 0x0821, 0x0000 },
+ { 0x8701, 0x0826, 0x3000 },
+ { 0x8701, 0x0824, 0x2000 },
+ { 0x0701, 0x0823, 0x0000 },
+ { 0x0701, 0x0825, 0x0000 },
+ { 0x8701, 0x0828, 0x2000 },
+ { 0x0701, 0x0827, 0x0000 },
+ { 0x0701, 0x0829, 0x0000 },
+ { 0x8701, 0x0832, 0x4000 },
+ { 0x8701, 0x082e, 0x3000 },
+ { 0x8701, 0x082c, 0x2000 },
+ { 0x0701, 0x082b, 0x0000 },
+ { 0x0701, 0x082d, 0x0000 },
+ { 0x8701, 0x0830, 0x2000 },
+ { 0x0701, 0x082f, 0x0000 },
+ { 0x0701, 0x0831, 0x0000 },
+ { 0x8701, 0x0837, 0x3000 },
+ { 0x8701, 0x0834, 0x2000 },
+ { 0x0701, 0x0833, 0x0000 },
+ { 0x0701, 0x0835, 0x0000 },
+ { 0x8701, 0x083c, 0x2000 },
+ { 0x0701, 0x0838, 0x0000 },
+ { 0x0701, 0x083f, 0x0000 },
+ { 0x9a01, 0xd040, 0x7000 },
+ { 0x9a01, 0xd020, 0x6000 },
+ { 0x9a01, 0xd010, 0x5000 },
+ { 0x9a01, 0xd008, 0x4000 },
+ { 0x9a01, 0xd004, 0x3000 },
+ { 0x9a01, 0xd002, 0x2000 },
+ { 0x1a01, 0xd001, 0x0000 },
+ { 0x1a01, 0xd003, 0x0000 },
+ { 0x9a01, 0xd006, 0x2000 },
+ { 0x1a01, 0xd005, 0x0000 },
+ { 0x1a01, 0xd007, 0x0000 },
+ { 0x9a01, 0xd00c, 0x3000 },
+ { 0x9a01, 0xd00a, 0x2000 },
+ { 0x1a01, 0xd009, 0x0000 },
+ { 0x1a01, 0xd00b, 0x0000 },
+ { 0x9a01, 0xd00e, 0x2000 },
+ { 0x1a01, 0xd00d, 0x0000 },
+ { 0x1a01, 0xd00f, 0x0000 },
+ { 0x9a01, 0xd018, 0x4000 },
+ { 0x9a01, 0xd014, 0x3000 },
+ { 0x9a01, 0xd012, 0x2000 },
+ { 0x1a01, 0xd011, 0x0000 },
+ { 0x1a01, 0xd013, 0x0000 },
+ { 0x9a01, 0xd016, 0x2000 },
+ { 0x1a01, 0xd015, 0x0000 },
+ { 0x1a01, 0xd017, 0x0000 },
+ { 0x9a01, 0xd01c, 0x3000 },
+ { 0x9a01, 0xd01a, 0x2000 },
+ { 0x1a01, 0xd019, 0x0000 },
+ { 0x1a01, 0xd01b, 0x0000 },
+ { 0x9a01, 0xd01e, 0x2000 },
+ { 0x1a01, 0xd01d, 0x0000 },
+ { 0x1a01, 0xd01f, 0x0000 },
+ { 0x9a01, 0xd030, 0x5000 },
+ { 0x9a01, 0xd028, 0x4000 },
+ { 0x9a01, 0xd024, 0x3000 },
+ { 0x9a01, 0xd022, 0x2000 },
+ { 0x1a01, 0xd021, 0x0000 },
+ { 0x1a01, 0xd023, 0x0000 },
+ { 0x9a01, 0xd026, 0x2000 },
+ { 0x1a01, 0xd025, 0x0000 },
+ { 0x1a01, 0xd027, 0x0000 },
+ { 0x9a01, 0xd02c, 0x3000 },
+ { 0x9a01, 0xd02a, 0x2000 },
+ { 0x1a01, 0xd029, 0x0000 },
+ { 0x1a01, 0xd02b, 0x0000 },
+ { 0x9a01, 0xd02e, 0x2000 },
+ { 0x1a01, 0xd02d, 0x0000 },
+ { 0x1a01, 0xd02f, 0x0000 },
+ { 0x9a01, 0xd038, 0x4000 },
+ { 0x9a01, 0xd034, 0x3000 },
+ { 0x9a01, 0xd032, 0x2000 },
+ { 0x1a01, 0xd031, 0x0000 },
+ { 0x1a01, 0xd033, 0x0000 },
+ { 0x9a01, 0xd036, 0x2000 },
+ { 0x1a01, 0xd035, 0x0000 },
+ { 0x1a01, 0xd037, 0x0000 },
+ { 0x9a01, 0xd03c, 0x3000 },
+ { 0x9a01, 0xd03a, 0x2000 },
+ { 0x1a01, 0xd039, 0x0000 },
+ { 0x1a01, 0xd03b, 0x0000 },
+ { 0x9a01, 0xd03e, 0x2000 },
+ { 0x1a01, 0xd03d, 0x0000 },
+ { 0x1a01, 0xd03f, 0x0000 },
+ { 0x9a01, 0xd060, 0x6000 },
+ { 0x9a01, 0xd050, 0x5000 },
+ { 0x9a01, 0xd048, 0x4000 },
+ { 0x9a01, 0xd044, 0x3000 },
+ { 0x9a01, 0xd042, 0x2000 },
+ { 0x1a01, 0xd041, 0x0000 },
+ { 0x1a01, 0xd043, 0x0000 },
+ { 0x9a01, 0xd046, 0x2000 },
+ { 0x1a01, 0xd045, 0x0000 },
+ { 0x1a01, 0xd047, 0x0000 },
+ { 0x9a01, 0xd04c, 0x3000 },
+ { 0x9a01, 0xd04a, 0x2000 },
+ { 0x1a01, 0xd049, 0x0000 },
+ { 0x1a01, 0xd04b, 0x0000 },
+ { 0x9a01, 0xd04e, 0x2000 },
+ { 0x1a01, 0xd04d, 0x0000 },
+ { 0x1a01, 0xd04f, 0x0000 },
+ { 0x9a01, 0xd058, 0x4000 },
+ { 0x9a01, 0xd054, 0x3000 },
+ { 0x9a01, 0xd052, 0x2000 },
+ { 0x1a01, 0xd051, 0x0000 },
+ { 0x1a01, 0xd053, 0x0000 },
+ { 0x9a01, 0xd056, 0x2000 },
+ { 0x1a01, 0xd055, 0x0000 },
+ { 0x1a01, 0xd057, 0x0000 },
+ { 0x9a01, 0xd05c, 0x3000 },
+ { 0x9a01, 0xd05a, 0x2000 },
+ { 0x1a01, 0xd059, 0x0000 },
+ { 0x1a01, 0xd05b, 0x0000 },
+ { 0x9a01, 0xd05e, 0x2000 },
+ { 0x1a01, 0xd05d, 0x0000 },
+ { 0x1a01, 0xd05f, 0x0000 },
+ { 0x9a01, 0xd070, 0x5000 },
+ { 0x9a01, 0xd068, 0x4000 },
+ { 0x9a01, 0xd064, 0x3000 },
+ { 0x9a01, 0xd062, 0x2000 },
+ { 0x1a01, 0xd061, 0x0000 },
+ { 0x1a01, 0xd063, 0x0000 },
+ { 0x9a01, 0xd066, 0x2000 },
+ { 0x1a01, 0xd065, 0x0000 },
+ { 0x1a01, 0xd067, 0x0000 },
+ { 0x9a01, 0xd06c, 0x3000 },
+ { 0x9a01, 0xd06a, 0x2000 },
+ { 0x1a01, 0xd069, 0x0000 },
+ { 0x1a01, 0xd06b, 0x0000 },
+ { 0x9a01, 0xd06e, 0x2000 },
+ { 0x1a01, 0xd06d, 0x0000 },
+ { 0x1a01, 0xd06f, 0x0000 },
+ { 0x9a01, 0xd078, 0x4000 },
+ { 0x9a01, 0xd074, 0x3000 },
+ { 0x9a01, 0xd072, 0x2000 },
+ { 0x1a01, 0xd071, 0x0000 },
+ { 0x1a01, 0xd073, 0x0000 },
+ { 0x9a01, 0xd076, 0x2000 },
+ { 0x1a01, 0xd075, 0x0000 },
+ { 0x1a01, 0xd077, 0x0000 },
+ { 0x9a01, 0xd07c, 0x3000 },
+ { 0x9a01, 0xd07a, 0x2000 },
+ { 0x1a01, 0xd079, 0x0000 },
+ { 0x1a01, 0xd07b, 0x0000 },
+ { 0x9a01, 0xd07e, 0x2000 },
+ { 0x1a01, 0xd07d, 0x0000 },
+ { 0x1a01, 0xd07f, 0x0000 },
+ { 0x9a01, 0xd18d, 0x9000 },
+ { 0x9a01, 0xd10a, 0x8000 },
+ { 0x9a01, 0xd0c0, 0x7000 },
+ { 0x9a01, 0xd0a0, 0x6000 },
+ { 0x9a01, 0xd090, 0x5000 },
+ { 0x9a01, 0xd088, 0x4000 },
+ { 0x9a01, 0xd084, 0x3000 },
+ { 0x9a01, 0xd082, 0x2000 },
+ { 0x1a01, 0xd081, 0x0000 },
+ { 0x1a01, 0xd083, 0x0000 },
+ { 0x9a01, 0xd086, 0x2000 },
+ { 0x1a01, 0xd085, 0x0000 },
+ { 0x1a01, 0xd087, 0x0000 },
+ { 0x9a01, 0xd08c, 0x3000 },
+ { 0x9a01, 0xd08a, 0x2000 },
+ { 0x1a01, 0xd089, 0x0000 },
+ { 0x1a01, 0xd08b, 0x0000 },
+ { 0x9a01, 0xd08e, 0x2000 },
+ { 0x1a01, 0xd08d, 0x0000 },
+ { 0x1a01, 0xd08f, 0x0000 },
+ { 0x9a01, 0xd098, 0x4000 },
+ { 0x9a01, 0xd094, 0x3000 },
+ { 0x9a01, 0xd092, 0x2000 },
+ { 0x1a01, 0xd091, 0x0000 },
+ { 0x1a01, 0xd093, 0x0000 },
+ { 0x9a01, 0xd096, 0x2000 },
+ { 0x1a01, 0xd095, 0x0000 },
+ { 0x1a01, 0xd097, 0x0000 },
+ { 0x9a01, 0xd09c, 0x3000 },
+ { 0x9a01, 0xd09a, 0x2000 },
+ { 0x1a01, 0xd099, 0x0000 },
+ { 0x1a01, 0xd09b, 0x0000 },
+ { 0x9a01, 0xd09e, 0x2000 },
+ { 0x1a01, 0xd09d, 0x0000 },
+ { 0x1a01, 0xd09f, 0x0000 },
+ { 0x9a01, 0xd0b0, 0x5000 },
+ { 0x9a01, 0xd0a8, 0x4000 },
+ { 0x9a01, 0xd0a4, 0x3000 },
+ { 0x9a01, 0xd0a2, 0x2000 },
+ { 0x1a01, 0xd0a1, 0x0000 },
+ { 0x1a01, 0xd0a3, 0x0000 },
+ { 0x9a01, 0xd0a6, 0x2000 },
+ { 0x1a01, 0xd0a5, 0x0000 },
+ { 0x1a01, 0xd0a7, 0x0000 },
+ { 0x9a01, 0xd0ac, 0x3000 },
+ { 0x9a01, 0xd0aa, 0x2000 },
+ { 0x1a01, 0xd0a9, 0x0000 },
+ { 0x1a01, 0xd0ab, 0x0000 },
+ { 0x9a01, 0xd0ae, 0x2000 },
+ { 0x1a01, 0xd0ad, 0x0000 },
+ { 0x1a01, 0xd0af, 0x0000 },
+ { 0x9a01, 0xd0b8, 0x4000 },
+ { 0x9a01, 0xd0b4, 0x3000 },
+ { 0x9a01, 0xd0b2, 0x2000 },
+ { 0x1a01, 0xd0b1, 0x0000 },
+ { 0x1a01, 0xd0b3, 0x0000 },
+ { 0x9a01, 0xd0b6, 0x2000 },
+ { 0x1a01, 0xd0b5, 0x0000 },
+ { 0x1a01, 0xd0b7, 0x0000 },
+ { 0x9a01, 0xd0bc, 0x3000 },
+ { 0x9a01, 0xd0ba, 0x2000 },
+ { 0x1a01, 0xd0b9, 0x0000 },
+ { 0x1a01, 0xd0bb, 0x0000 },
+ { 0x9a01, 0xd0be, 0x2000 },
+ { 0x1a01, 0xd0bd, 0x0000 },
+ { 0x1a01, 0xd0bf, 0x0000 },
+ { 0x9a01, 0xd0e0, 0x6000 },
+ { 0x9a01, 0xd0d0, 0x5000 },
+ { 0x9a01, 0xd0c8, 0x4000 },
+ { 0x9a01, 0xd0c4, 0x3000 },
+ { 0x9a01, 0xd0c2, 0x2000 },
+ { 0x1a01, 0xd0c1, 0x0000 },
+ { 0x1a01, 0xd0c3, 0x0000 },
+ { 0x9a01, 0xd0c6, 0x2000 },
+ { 0x1a01, 0xd0c5, 0x0000 },
+ { 0x1a01, 0xd0c7, 0x0000 },
+ { 0x9a01, 0xd0cc, 0x3000 },
+ { 0x9a01, 0xd0ca, 0x2000 },
+ { 0x1a01, 0xd0c9, 0x0000 },
+ { 0x1a01, 0xd0cb, 0x0000 },
+ { 0x9a01, 0xd0ce, 0x2000 },
+ { 0x1a01, 0xd0cd, 0x0000 },
+ { 0x1a01, 0xd0cf, 0x0000 },
+ { 0x9a01, 0xd0d8, 0x4000 },
+ { 0x9a01, 0xd0d4, 0x3000 },
+ { 0x9a01, 0xd0d2, 0x2000 },
+ { 0x1a01, 0xd0d1, 0x0000 },
+ { 0x1a01, 0xd0d3, 0x0000 },
+ { 0x9a01, 0xd0d6, 0x2000 },
+ { 0x1a01, 0xd0d5, 0x0000 },
+ { 0x1a01, 0xd0d7, 0x0000 },
+ { 0x9a01, 0xd0dc, 0x3000 },
+ { 0x9a01, 0xd0da, 0x2000 },
+ { 0x1a01, 0xd0d9, 0x0000 },
+ { 0x1a01, 0xd0db, 0x0000 },
+ { 0x9a01, 0xd0de, 0x2000 },
+ { 0x1a01, 0xd0dd, 0x0000 },
+ { 0x1a01, 0xd0df, 0x0000 },
+ { 0x9a01, 0xd0f0, 0x5000 },
+ { 0x9a01, 0xd0e8, 0x4000 },
+ { 0x9a01, 0xd0e4, 0x3000 },
+ { 0x9a01, 0xd0e2, 0x2000 },
+ { 0x1a01, 0xd0e1, 0x0000 },
+ { 0x1a01, 0xd0e3, 0x0000 },
+ { 0x9a01, 0xd0e6, 0x2000 },
+ { 0x1a01, 0xd0e5, 0x0000 },
+ { 0x1a01, 0xd0e7, 0x0000 },
+ { 0x9a01, 0xd0ec, 0x3000 },
+ { 0x9a01, 0xd0ea, 0x2000 },
+ { 0x1a01, 0xd0e9, 0x0000 },
+ { 0x1a01, 0xd0eb, 0x0000 },
+ { 0x9a01, 0xd0ee, 0x2000 },
+ { 0x1a01, 0xd0ed, 0x0000 },
+ { 0x1a01, 0xd0ef, 0x0000 },
+ { 0x9a01, 0xd102, 0x4000 },
+ { 0x9a01, 0xd0f4, 0x3000 },
+ { 0x9a01, 0xd0f2, 0x2000 },
+ { 0x1a01, 0xd0f1, 0x0000 },
+ { 0x1a01, 0xd0f3, 0x0000 },
+ { 0x9a01, 0xd100, 0x2000 },
+ { 0x1a01, 0xd0f5, 0x0000 },
+ { 0x1a01, 0xd101, 0x0000 },
+ { 0x9a01, 0xd106, 0x3000 },
+ { 0x9a01, 0xd104, 0x2000 },
+ { 0x1a01, 0xd103, 0x0000 },
+ { 0x1a01, 0xd105, 0x0000 },
+ { 0x9a01, 0xd108, 0x2000 },
+ { 0x1a01, 0xd107, 0x0000 },
+ { 0x1a01, 0xd109, 0x0000 },
+ { 0x9a01, 0xd14d, 0x7000 },
+ { 0x9a01, 0xd12d, 0x6000 },
+ { 0x9a01, 0xd11a, 0x5000 },
+ { 0x9a01, 0xd112, 0x4000 },
+ { 0x9a01, 0xd10e, 0x3000 },
+ { 0x9a01, 0xd10c, 0x2000 },
+ { 0x1a01, 0xd10b, 0x0000 },
+ { 0x1a01, 0xd10d, 0x0000 },
+ { 0x9a01, 0xd110, 0x2000 },
+ { 0x1a01, 0xd10f, 0x0000 },
+ { 0x1a01, 0xd111, 0x0000 },
+ { 0x9a01, 0xd116, 0x3000 },
+ { 0x9a01, 0xd114, 0x2000 },
+ { 0x1a01, 0xd113, 0x0000 },
+ { 0x1a01, 0xd115, 0x0000 },
+ { 0x9a01, 0xd118, 0x2000 },
+ { 0x1a01, 0xd117, 0x0000 },
+ { 0x1a01, 0xd119, 0x0000 },
+ { 0x9a01, 0xd122, 0x4000 },
+ { 0x9a01, 0xd11e, 0x3000 },
+ { 0x9a01, 0xd11c, 0x2000 },
+ { 0x1a01, 0xd11b, 0x0000 },
+ { 0x1a01, 0xd11d, 0x0000 },
+ { 0x9a01, 0xd120, 0x2000 },
+ { 0x1a01, 0xd11f, 0x0000 },
+ { 0x1a01, 0xd121, 0x0000 },
+ { 0x9a01, 0xd126, 0x3000 },
+ { 0x9a01, 0xd124, 0x2000 },
+ { 0x1a01, 0xd123, 0x0000 },
+ { 0x1a01, 0xd125, 0x0000 },
+ { 0x9a01, 0xd12b, 0x2000 },
+ { 0x1a01, 0xd12a, 0x0000 },
+ { 0x1a01, 0xd12c, 0x0000 },
+ { 0x9a01, 0xd13d, 0x5000 },
+ { 0x9a01, 0xd135, 0x4000 },
+ { 0x9a01, 0xd131, 0x3000 },
+ { 0x9a01, 0xd12f, 0x2000 },
+ { 0x1a01, 0xd12e, 0x0000 },
+ { 0x1a01, 0xd130, 0x0000 },
+ { 0x9a01, 0xd133, 0x2000 },
+ { 0x1a01, 0xd132, 0x0000 },
+ { 0x1a01, 0xd134, 0x0000 },
+ { 0x9a01, 0xd139, 0x3000 },
+ { 0x9a01, 0xd137, 0x2000 },
+ { 0x1a01, 0xd136, 0x0000 },
+ { 0x1a01, 0xd138, 0x0000 },
+ { 0x9a01, 0xd13b, 0x2000 },
+ { 0x1a01, 0xd13a, 0x0000 },
+ { 0x1a01, 0xd13c, 0x0000 },
+ { 0x9a01, 0xd145, 0x4000 },
+ { 0x9a01, 0xd141, 0x3000 },
+ { 0x9a01, 0xd13f, 0x2000 },
+ { 0x1a01, 0xd13e, 0x0000 },
+ { 0x1a01, 0xd140, 0x0000 },
+ { 0x9a01, 0xd143, 0x2000 },
+ { 0x1a01, 0xd142, 0x0000 },
+ { 0x1a01, 0xd144, 0x0000 },
+ { 0x9a01, 0xd149, 0x3000 },
+ { 0x9a01, 0xd147, 0x2000 },
+ { 0x1a01, 0xd146, 0x0000 },
+ { 0x1a01, 0xd148, 0x0000 },
+ { 0x9a01, 0xd14b, 0x2000 },
+ { 0x1a01, 0xd14a, 0x0000 },
+ { 0x1a01, 0xd14c, 0x0000 },
+ { 0x8a01, 0xd16d, 0x6000 },
+ { 0x9a01, 0xd15d, 0x5000 },
+ { 0x9a01, 0xd155, 0x4000 },
+ { 0x9a01, 0xd151, 0x3000 },
+ { 0x9a01, 0xd14f, 0x2000 },
+ { 0x1a01, 0xd14e, 0x0000 },
+ { 0x1a01, 0xd150, 0x0000 },
+ { 0x9a01, 0xd153, 0x2000 },
+ { 0x1a01, 0xd152, 0x0000 },
+ { 0x1a01, 0xd154, 0x0000 },
+ { 0x9a01, 0xd159, 0x3000 },
+ { 0x9a01, 0xd157, 0x2000 },
+ { 0x1a01, 0xd156, 0x0000 },
+ { 0x1a01, 0xd158, 0x0000 },
+ { 0x9a01, 0xd15b, 0x2000 },
+ { 0x1a01, 0xd15a, 0x0000 },
+ { 0x1a01, 0xd15c, 0x0000 },
+ { 0x8a01, 0xd165, 0x4000 },
+ { 0x9a01, 0xd161, 0x3000 },
+ { 0x9a01, 0xd15f, 0x2000 },
+ { 0x1a01, 0xd15e, 0x0000 },
+ { 0x1a01, 0xd160, 0x0000 },
+ { 0x9a01, 0xd163, 0x2000 },
+ { 0x1a01, 0xd162, 0x0000 },
+ { 0x1a01, 0xd164, 0x0000 },
+ { 0x8c01, 0xd169, 0x3000 },
+ { 0x8c01, 0xd167, 0x2000 },
+ { 0x0a01, 0xd166, 0x0000 },
+ { 0x0c01, 0xd168, 0x0000 },
+ { 0x9a01, 0xd16b, 0x2000 },
+ { 0x1a01, 0xd16a, 0x0000 },
+ { 0x1a01, 0xd16c, 0x0000 },
+ { 0x8c01, 0xd17d, 0x5000 },
+ { 0x8101, 0xd175, 0x4000 },
+ { 0x8a01, 0xd171, 0x3000 },
+ { 0x8a01, 0xd16f, 0x2000 },
+ { 0x0a01, 0xd16e, 0x0000 },
+ { 0x0a01, 0xd170, 0x0000 },
+ { 0x8101, 0xd173, 0x2000 },
+ { 0x0a01, 0xd172, 0x0000 },
+ { 0x0101, 0xd174, 0x0000 },
+ { 0x8101, 0xd179, 0x3000 },
+ { 0x8101, 0xd177, 0x2000 },
+ { 0x0101, 0xd176, 0x0000 },
+ { 0x0101, 0xd178, 0x0000 },
+ { 0x8c01, 0xd17b, 0x2000 },
+ { 0x0101, 0xd17a, 0x0000 },
+ { 0x0c01, 0xd17c, 0x0000 },
+ { 0x8c01, 0xd185, 0x4000 },
+ { 0x8c01, 0xd181, 0x3000 },
+ { 0x8c01, 0xd17f, 0x2000 },
+ { 0x0c01, 0xd17e, 0x0000 },
+ { 0x0c01, 0xd180, 0x0000 },
+ { 0x9a01, 0xd183, 0x2000 },
+ { 0x0c01, 0xd182, 0x0000 },
+ { 0x1a01, 0xd184, 0x0000 },
+ { 0x8c01, 0xd189, 0x3000 },
+ { 0x8c01, 0xd187, 0x2000 },
+ { 0x0c01, 0xd186, 0x0000 },
+ { 0x0c01, 0xd188, 0x0000 },
+ { 0x8c01, 0xd18b, 0x2000 },
+ { 0x0c01, 0xd18a, 0x0000 },
+ { 0x1a01, 0xd18c, 0x0000 },
+ { 0x9a01, 0xd32f, 0x8000 },
+ { 0x9a01, 0xd1cd, 0x7000 },
+ { 0x8c01, 0xd1ad, 0x6000 },
+ { 0x9a01, 0xd19d, 0x5000 },
+ { 0x9a01, 0xd195, 0x4000 },
+ { 0x9a01, 0xd191, 0x3000 },
+ { 0x9a01, 0xd18f, 0x2000 },
+ { 0x1a01, 0xd18e, 0x0000 },
+ { 0x1a01, 0xd190, 0x0000 },
+ { 0x9a01, 0xd193, 0x2000 },
+ { 0x1a01, 0xd192, 0x0000 },
+ { 0x1a01, 0xd194, 0x0000 },
+ { 0x9a01, 0xd199, 0x3000 },
+ { 0x9a01, 0xd197, 0x2000 },
+ { 0x1a01, 0xd196, 0x0000 },
+ { 0x1a01, 0xd198, 0x0000 },
+ { 0x9a01, 0xd19b, 0x2000 },
+ { 0x1a01, 0xd19a, 0x0000 },
+ { 0x1a01, 0xd19c, 0x0000 },
+ { 0x9a01, 0xd1a5, 0x4000 },
+ { 0x9a01, 0xd1a1, 0x3000 },
+ { 0x9a01, 0xd19f, 0x2000 },
+ { 0x1a01, 0xd19e, 0x0000 },
+ { 0x1a01, 0xd1a0, 0x0000 },
+ { 0x9a01, 0xd1a3, 0x2000 },
+ { 0x1a01, 0xd1a2, 0x0000 },
+ { 0x1a01, 0xd1a4, 0x0000 },
+ { 0x9a01, 0xd1a9, 0x3000 },
+ { 0x9a01, 0xd1a7, 0x2000 },
+ { 0x1a01, 0xd1a6, 0x0000 },
+ { 0x1a01, 0xd1a8, 0x0000 },
+ { 0x8c01, 0xd1ab, 0x2000 },
+ { 0x0c01, 0xd1aa, 0x0000 },
+ { 0x0c01, 0xd1ac, 0x0000 },
+ { 0x9a01, 0xd1bd, 0x5000 },
+ { 0x9a01, 0xd1b5, 0x4000 },
+ { 0x9a01, 0xd1b1, 0x3000 },
+ { 0x9a01, 0xd1af, 0x2000 },
+ { 0x1a01, 0xd1ae, 0x0000 },
+ { 0x1a01, 0xd1b0, 0x0000 },
+ { 0x9a01, 0xd1b3, 0x2000 },
+ { 0x1a01, 0xd1b2, 0x0000 },
+ { 0x1a01, 0xd1b4, 0x0000 },
+ { 0x9a01, 0xd1b9, 0x3000 },
+ { 0x9a01, 0xd1b7, 0x2000 },
+ { 0x1a01, 0xd1b6, 0x0000 },
+ { 0x1a01, 0xd1b8, 0x0000 },
+ { 0x9a01, 0xd1bb, 0x2000 },
+ { 0x1a01, 0xd1ba, 0x0000 },
+ { 0x1a01, 0xd1bc, 0x0000 },
+ { 0x9a01, 0xd1c5, 0x4000 },
+ { 0x9a01, 0xd1c1, 0x3000 },
+ { 0x9a01, 0xd1bf, 0x2000 },
+ { 0x1a01, 0xd1be, 0x0000 },
+ { 0x1a01, 0xd1c0, 0x0000 },
+ { 0x9a01, 0xd1c3, 0x2000 },
+ { 0x1a01, 0xd1c2, 0x0000 },
+ { 0x1a01, 0xd1c4, 0x0000 },
+ { 0x9a01, 0xd1c9, 0x3000 },
+ { 0x9a01, 0xd1c7, 0x2000 },
+ { 0x1a01, 0xd1c6, 0x0000 },
+ { 0x1a01, 0xd1c8, 0x0000 },
+ { 0x9a01, 0xd1cb, 0x2000 },
+ { 0x1a01, 0xd1ca, 0x0000 },
+ { 0x1a01, 0xd1cc, 0x0000 },
+ { 0x9a01, 0xd30f, 0x6000 },
+ { 0x9a01, 0xd1dd, 0x5000 },
+ { 0x9a01, 0xd1d5, 0x4000 },
+ { 0x9a01, 0xd1d1, 0x3000 },
+ { 0x9a01, 0xd1cf, 0x2000 },
+ { 0x1a01, 0xd1ce, 0x0000 },
+ { 0x1a01, 0xd1d0, 0x0000 },
+ { 0x9a01, 0xd1d3, 0x2000 },
+ { 0x1a01, 0xd1d2, 0x0000 },
+ { 0x1a01, 0xd1d4, 0x0000 },
+ { 0x9a01, 0xd1d9, 0x3000 },
+ { 0x9a01, 0xd1d7, 0x2000 },
+ { 0x1a01, 0xd1d6, 0x0000 },
+ { 0x1a01, 0xd1d8, 0x0000 },
+ { 0x9a01, 0xd1db, 0x2000 },
+ { 0x1a01, 0xd1da, 0x0000 },
+ { 0x1a01, 0xd1dc, 0x0000 },
+ { 0x9a01, 0xd307, 0x4000 },
+ { 0x9a01, 0xd303, 0x3000 },
+ { 0x9a01, 0xd301, 0x2000 },
+ { 0x1a01, 0xd300, 0x0000 },
+ { 0x1a01, 0xd302, 0x0000 },
+ { 0x9a01, 0xd305, 0x2000 },
+ { 0x1a01, 0xd304, 0x0000 },
+ { 0x1a01, 0xd306, 0x0000 },
+ { 0x9a01, 0xd30b, 0x3000 },
+ { 0x9a01, 0xd309, 0x2000 },
+ { 0x1a01, 0xd308, 0x0000 },
+ { 0x1a01, 0xd30a, 0x0000 },
+ { 0x9a01, 0xd30d, 0x2000 },
+ { 0x1a01, 0xd30c, 0x0000 },
+ { 0x1a01, 0xd30e, 0x0000 },
+ { 0x9a01, 0xd31f, 0x5000 },
+ { 0x9a01, 0xd317, 0x4000 },
+ { 0x9a01, 0xd313, 0x3000 },
+ { 0x9a01, 0xd311, 0x2000 },
+ { 0x1a01, 0xd310, 0x0000 },
+ { 0x1a01, 0xd312, 0x0000 },
+ { 0x9a01, 0xd315, 0x2000 },
+ { 0x1a01, 0xd314, 0x0000 },
+ { 0x1a01, 0xd316, 0x0000 },
+ { 0x9a01, 0xd31b, 0x3000 },
+ { 0x9a01, 0xd319, 0x2000 },
+ { 0x1a01, 0xd318, 0x0000 },
+ { 0x1a01, 0xd31a, 0x0000 },
+ { 0x9a01, 0xd31d, 0x2000 },
+ { 0x1a01, 0xd31c, 0x0000 },
+ { 0x1a01, 0xd31e, 0x0000 },
+ { 0x9a01, 0xd327, 0x4000 },
+ { 0x9a01, 0xd323, 0x3000 },
+ { 0x9a01, 0xd321, 0x2000 },
+ { 0x1a01, 0xd320, 0x0000 },
+ { 0x1a01, 0xd322, 0x0000 },
+ { 0x9a01, 0xd325, 0x2000 },
+ { 0x1a01, 0xd324, 0x0000 },
+ { 0x1a01, 0xd326, 0x0000 },
+ { 0x9a01, 0xd32b, 0x3000 },
+ { 0x9a01, 0xd329, 0x2000 },
+ { 0x1a01, 0xd328, 0x0000 },
+ { 0x1a01, 0xd32a, 0x0000 },
+ { 0x9a01, 0xd32d, 0x2000 },
+ { 0x1a01, 0xd32c, 0x0000 },
+ { 0x1a01, 0xd32e, 0x0000 },
+ { 0x8901, 0xd418, 0x7000 },
+ { 0x9a01, 0xd34f, 0x6000 },
+ { 0x9a01, 0xd33f, 0x5000 },
+ { 0x9a01, 0xd337, 0x4000 },
+ { 0x9a01, 0xd333, 0x3000 },
+ { 0x9a01, 0xd331, 0x2000 },
+ { 0x1a01, 0xd330, 0x0000 },
+ { 0x1a01, 0xd332, 0x0000 },
+ { 0x9a01, 0xd335, 0x2000 },
+ { 0x1a01, 0xd334, 0x0000 },
+ { 0x1a01, 0xd336, 0x0000 },
+ { 0x9a01, 0xd33b, 0x3000 },
+ { 0x9a01, 0xd339, 0x2000 },
+ { 0x1a01, 0xd338, 0x0000 },
+ { 0x1a01, 0xd33a, 0x0000 },
+ { 0x9a01, 0xd33d, 0x2000 },
+ { 0x1a01, 0xd33c, 0x0000 },
+ { 0x1a01, 0xd33e, 0x0000 },
+ { 0x9a01, 0xd347, 0x4000 },
+ { 0x9a01, 0xd343, 0x3000 },
+ { 0x9a01, 0xd341, 0x2000 },
+ { 0x1a01, 0xd340, 0x0000 },
+ { 0x1a01, 0xd342, 0x0000 },
+ { 0x9a01, 0xd345, 0x2000 },
+ { 0x1a01, 0xd344, 0x0000 },
+ { 0x1a01, 0xd346, 0x0000 },
+ { 0x9a01, 0xd34b, 0x3000 },
+ { 0x9a01, 0xd349, 0x2000 },
+ { 0x1a01, 0xd348, 0x0000 },
+ { 0x1a01, 0xd34a, 0x0000 },
+ { 0x9a01, 0xd34d, 0x2000 },
+ { 0x1a01, 0xd34c, 0x0000 },
+ { 0x1a01, 0xd34e, 0x0000 },
+ { 0x8901, 0xd408, 0x5000 },
+ { 0x8901, 0xd400, 0x4000 },
+ { 0x9a01, 0xd353, 0x3000 },
+ { 0x9a01, 0xd351, 0x2000 },
+ { 0x1a01, 0xd350, 0x0000 },
+ { 0x1a01, 0xd352, 0x0000 },
+ { 0x9a01, 0xd355, 0x2000 },
+ { 0x1a01, 0xd354, 0x0000 },
+ { 0x1a01, 0xd356, 0x0000 },
+ { 0x8901, 0xd404, 0x3000 },
+ { 0x8901, 0xd402, 0x2000 },
+ { 0x0901, 0xd401, 0x0000 },
+ { 0x0901, 0xd403, 0x0000 },
+ { 0x8901, 0xd406, 0x2000 },
+ { 0x0901, 0xd405, 0x0000 },
+ { 0x0901, 0xd407, 0x0000 },
+ { 0x8901, 0xd410, 0x4000 },
+ { 0x8901, 0xd40c, 0x3000 },
+ { 0x8901, 0xd40a, 0x2000 },
+ { 0x0901, 0xd409, 0x0000 },
+ { 0x0901, 0xd40b, 0x0000 },
+ { 0x8901, 0xd40e, 0x2000 },
+ { 0x0901, 0xd40d, 0x0000 },
+ { 0x0901, 0xd40f, 0x0000 },
+ { 0x8901, 0xd414, 0x3000 },
+ { 0x8901, 0xd412, 0x2000 },
+ { 0x0901, 0xd411, 0x0000 },
+ { 0x0901, 0xd413, 0x0000 },
+ { 0x8901, 0xd416, 0x2000 },
+ { 0x0901, 0xd415, 0x0000 },
+ { 0x0901, 0xd417, 0x0000 },
+ { 0x8901, 0xd438, 0x6000 },
+ { 0x8501, 0xd428, 0x5000 },
+ { 0x8501, 0xd420, 0x4000 },
+ { 0x8501, 0xd41c, 0x3000 },
+ { 0x8501, 0xd41a, 0x2000 },
+ { 0x0901, 0xd419, 0x0000 },
+ { 0x0501, 0xd41b, 0x0000 },
+ { 0x8501, 0xd41e, 0x2000 },
+ { 0x0501, 0xd41d, 0x0000 },
+ { 0x0501, 0xd41f, 0x0000 },
+ { 0x8501, 0xd424, 0x3000 },
+ { 0x8501, 0xd422, 0x2000 },
+ { 0x0501, 0xd421, 0x0000 },
+ { 0x0501, 0xd423, 0x0000 },
+ { 0x8501, 0xd426, 0x2000 },
+ { 0x0501, 0xd425, 0x0000 },
+ { 0x0501, 0xd427, 0x0000 },
+ { 0x8501, 0xd430, 0x4000 },
+ { 0x8501, 0xd42c, 0x3000 },
+ { 0x8501, 0xd42a, 0x2000 },
+ { 0x0501, 0xd429, 0x0000 },
+ { 0x0501, 0xd42b, 0x0000 },
+ { 0x8501, 0xd42e, 0x2000 },
+ { 0x0501, 0xd42d, 0x0000 },
+ { 0x0501, 0xd42f, 0x0000 },
+ { 0x8901, 0xd434, 0x3000 },
+ { 0x8501, 0xd432, 0x2000 },
+ { 0x0501, 0xd431, 0x0000 },
+ { 0x0501, 0xd433, 0x0000 },
+ { 0x8901, 0xd436, 0x2000 },
+ { 0x0901, 0xd435, 0x0000 },
+ { 0x0901, 0xd437, 0x0000 },
+ { 0x8901, 0xd448, 0x5000 },
+ { 0x8901, 0xd440, 0x4000 },
+ { 0x8901, 0xd43c, 0x3000 },
+ { 0x8901, 0xd43a, 0x2000 },
+ { 0x0901, 0xd439, 0x0000 },
+ { 0x0901, 0xd43b, 0x0000 },
+ { 0x8901, 0xd43e, 0x2000 },
+ { 0x0901, 0xd43d, 0x0000 },
+ { 0x0901, 0xd43f, 0x0000 },
+ { 0x8901, 0xd444, 0x3000 },
+ { 0x8901, 0xd442, 0x2000 },
+ { 0x0901, 0xd441, 0x0000 },
+ { 0x0901, 0xd443, 0x0000 },
+ { 0x8901, 0xd446, 0x2000 },
+ { 0x0901, 0xd445, 0x0000 },
+ { 0x0901, 0xd447, 0x0000 },
+ { 0x8501, 0xd450, 0x4000 },
+ { 0x8901, 0xd44c, 0x3000 },
+ { 0x8901, 0xd44a, 0x2000 },
+ { 0x0901, 0xd449, 0x0000 },
+ { 0x0901, 0xd44b, 0x0000 },
+ { 0x8501, 0xd44e, 0x2000 },
+ { 0x0901, 0xd44d, 0x0000 },
+ { 0x0501, 0xd44f, 0x0000 },
+ { 0x8501, 0xd454, 0x3000 },
+ { 0x8501, 0xd452, 0x2000 },
+ { 0x0501, 0xd451, 0x0000 },
+ { 0x0501, 0xd453, 0x0000 },
+ { 0x8501, 0xd457, 0x2000 },
+ { 0x0501, 0xd456, 0x0000 },
+ { 0x0501, 0xd458, 0x0000 },
+ { 0x8702, 0xf876, 0xb000 },
+ { 0x8901, 0xd670, 0xa000 },
+ { 0x8901, 0xd570, 0x9000 },
+ { 0x8901, 0xd4e4, 0x8000 },
+ { 0x8501, 0xd499, 0x7000 },
+ { 0x8901, 0xd479, 0x6000 },
+ { 0x8901, 0xd469, 0x5000 },
+ { 0x8501, 0xd461, 0x4000 },
+ { 0x8501, 0xd45d, 0x3000 },
+ { 0x8501, 0xd45b, 0x2000 },
+ { 0x0501, 0xd45a, 0x0000 },
+ { 0x0501, 0xd45c, 0x0000 },
+ { 0x8501, 0xd45f, 0x2000 },
+ { 0x0501, 0xd45e, 0x0000 },
+ { 0x0501, 0xd460, 0x0000 },
+ { 0x8501, 0xd465, 0x3000 },
+ { 0x8501, 0xd463, 0x2000 },
+ { 0x0501, 0xd462, 0x0000 },
+ { 0x0501, 0xd464, 0x0000 },
+ { 0x8501, 0xd467, 0x2000 },
+ { 0x0501, 0xd466, 0x0000 },
+ { 0x0901, 0xd468, 0x0000 },
+ { 0x8901, 0xd471, 0x4000 },
+ { 0x8901, 0xd46d, 0x3000 },
+ { 0x8901, 0xd46b, 0x2000 },
+ { 0x0901, 0xd46a, 0x0000 },
+ { 0x0901, 0xd46c, 0x0000 },
+ { 0x8901, 0xd46f, 0x2000 },
+ { 0x0901, 0xd46e, 0x0000 },
+ { 0x0901, 0xd470, 0x0000 },
+ { 0x8901, 0xd475, 0x3000 },
+ { 0x8901, 0xd473, 0x2000 },
+ { 0x0901, 0xd472, 0x0000 },
+ { 0x0901, 0xd474, 0x0000 },
+ { 0x8901, 0xd477, 0x2000 },
+ { 0x0901, 0xd476, 0x0000 },
+ { 0x0901, 0xd478, 0x0000 },
+ { 0x8501, 0xd489, 0x5000 },
+ { 0x8901, 0xd481, 0x4000 },
+ { 0x8901, 0xd47d, 0x3000 },
+ { 0x8901, 0xd47b, 0x2000 },
+ { 0x0901, 0xd47a, 0x0000 },
+ { 0x0901, 0xd47c, 0x0000 },
+ { 0x8901, 0xd47f, 0x2000 },
+ { 0x0901, 0xd47e, 0x0000 },
+ { 0x0901, 0xd480, 0x0000 },
+ { 0x8501, 0xd485, 0x3000 },
+ { 0x8501, 0xd483, 0x2000 },
+ { 0x0501, 0xd482, 0x0000 },
+ { 0x0501, 0xd484, 0x0000 },
+ { 0x8501, 0xd487, 0x2000 },
+ { 0x0501, 0xd486, 0x0000 },
+ { 0x0501, 0xd488, 0x0000 },
+ { 0x8501, 0xd491, 0x4000 },
+ { 0x8501, 0xd48d, 0x3000 },
+ { 0x8501, 0xd48b, 0x2000 },
+ { 0x0501, 0xd48a, 0x0000 },
+ { 0x0501, 0xd48c, 0x0000 },
+ { 0x8501, 0xd48f, 0x2000 },
+ { 0x0501, 0xd48e, 0x0000 },
+ { 0x0501, 0xd490, 0x0000 },
+ { 0x8501, 0xd495, 0x3000 },
+ { 0x8501, 0xd493, 0x2000 },
+ { 0x0501, 0xd492, 0x0000 },
+ { 0x0501, 0xd494, 0x0000 },
+ { 0x8501, 0xd497, 0x2000 },
+ { 0x0501, 0xd496, 0x0000 },
+ { 0x0501, 0xd498, 0x0000 },
+ { 0x8501, 0xd4c3, 0x6000 },
+ { 0x8901, 0xd4b1, 0x5000 },
+ { 0x8901, 0xd4a6, 0x4000 },
+ { 0x8901, 0xd49e, 0x3000 },
+ { 0x8501, 0xd49b, 0x2000 },
+ { 0x0501, 0xd49a, 0x0000 },
+ { 0x0901, 0xd49c, 0x0000 },
+ { 0x8901, 0xd4a2, 0x2000 },
+ { 0x0901, 0xd49f, 0x0000 },
+ { 0x0901, 0xd4a5, 0x0000 },
+ { 0x8901, 0xd4ac, 0x3000 },
+ { 0x8901, 0xd4aa, 0x2000 },
+ { 0x0901, 0xd4a9, 0x0000 },
+ { 0x0901, 0xd4ab, 0x0000 },
+ { 0x8901, 0xd4af, 0x2000 },
+ { 0x0901, 0xd4ae, 0x0000 },
+ { 0x0901, 0xd4b0, 0x0000 },
+ { 0x8501, 0xd4b9, 0x4000 },
+ { 0x8901, 0xd4b5, 0x3000 },
+ { 0x8901, 0xd4b3, 0x2000 },
+ { 0x0901, 0xd4b2, 0x0000 },
+ { 0x0901, 0xd4b4, 0x0000 },
+ { 0x8501, 0xd4b7, 0x2000 },
+ { 0x0501, 0xd4b6, 0x0000 },
+ { 0x0501, 0xd4b8, 0x0000 },
+ { 0x8501, 0xd4bf, 0x3000 },
+ { 0x8501, 0xd4bd, 0x2000 },
+ { 0x0501, 0xd4bb, 0x0000 },
+ { 0x0501, 0xd4be, 0x0000 },
+ { 0x8501, 0xd4c1, 0x2000 },
+ { 0x0501, 0xd4c0, 0x0000 },
+ { 0x0501, 0xd4c2, 0x0000 },
+ { 0x8901, 0xd4d4, 0x5000 },
+ { 0x8501, 0xd4cc, 0x4000 },
+ { 0x8501, 0xd4c8, 0x3000 },
+ { 0x8501, 0xd4c6, 0x2000 },
+ { 0x0501, 0xd4c5, 0x0000 },
+ { 0x0501, 0xd4c7, 0x0000 },
+ { 0x8501, 0xd4ca, 0x2000 },
+ { 0x0501, 0xd4c9, 0x0000 },
+ { 0x0501, 0xd4cb, 0x0000 },
+ { 0x8901, 0xd4d0, 0x3000 },
+ { 0x8501, 0xd4ce, 0x2000 },
+ { 0x0501, 0xd4cd, 0x0000 },
+ { 0x0501, 0xd4cf, 0x0000 },
+ { 0x8901, 0xd4d2, 0x2000 },
+ { 0x0901, 0xd4d1, 0x0000 },
+ { 0x0901, 0xd4d3, 0x0000 },
+ { 0x8901, 0xd4dc, 0x4000 },
+ { 0x8901, 0xd4d8, 0x3000 },
+ { 0x8901, 0xd4d6, 0x2000 },
+ { 0x0901, 0xd4d5, 0x0000 },
+ { 0x0901, 0xd4d7, 0x0000 },
+ { 0x8901, 0xd4da, 0x2000 },
+ { 0x0901, 0xd4d9, 0x0000 },
+ { 0x0901, 0xd4db, 0x0000 },
+ { 0x8901, 0xd4e0, 0x3000 },
+ { 0x8901, 0xd4de, 0x2000 },
+ { 0x0901, 0xd4dd, 0x0000 },
+ { 0x0901, 0xd4df, 0x0000 },
+ { 0x8901, 0xd4e2, 0x2000 },
+ { 0x0901, 0xd4e1, 0x0000 },
+ { 0x0901, 0xd4e3, 0x0000 },
+ { 0x8501, 0xd529, 0x7000 },
+ { 0x8901, 0xd504, 0x6000 },
+ { 0x8501, 0xd4f4, 0x5000 },
+ { 0x8501, 0xd4ec, 0x4000 },
+ { 0x8901, 0xd4e8, 0x3000 },
+ { 0x8901, 0xd4e6, 0x2000 },
+ { 0x0901, 0xd4e5, 0x0000 },
+ { 0x0901, 0xd4e7, 0x0000 },
+ { 0x8501, 0xd4ea, 0x2000 },
+ { 0x0901, 0xd4e9, 0x0000 },
+ { 0x0501, 0xd4eb, 0x0000 },
+ { 0x8501, 0xd4f0, 0x3000 },
+ { 0x8501, 0xd4ee, 0x2000 },
+ { 0x0501, 0xd4ed, 0x0000 },
+ { 0x0501, 0xd4ef, 0x0000 },
+ { 0x8501, 0xd4f2, 0x2000 },
+ { 0x0501, 0xd4f1, 0x0000 },
+ { 0x0501, 0xd4f3, 0x0000 },
+ { 0x8501, 0xd4fc, 0x4000 },
+ { 0x8501, 0xd4f8, 0x3000 },
+ { 0x8501, 0xd4f6, 0x2000 },
+ { 0x0501, 0xd4f5, 0x0000 },
+ { 0x0501, 0xd4f7, 0x0000 },
+ { 0x8501, 0xd4fa, 0x2000 },
+ { 0x0501, 0xd4f9, 0x0000 },
+ { 0x0501, 0xd4fb, 0x0000 },
+ { 0x8501, 0xd500, 0x3000 },
+ { 0x8501, 0xd4fe, 0x2000 },
+ { 0x0501, 0xd4fd, 0x0000 },
+ { 0x0501, 0xd4ff, 0x0000 },
+ { 0x8501, 0xd502, 0x2000 },
+ { 0x0501, 0xd501, 0x0000 },
+ { 0x0501, 0xd503, 0x0000 },
+ { 0x8901, 0xd518, 0x5000 },
+ { 0x8901, 0xd50f, 0x4000 },
+ { 0x8901, 0xd509, 0x3000 },
+ { 0x8901, 0xd507, 0x2000 },
+ { 0x0901, 0xd505, 0x0000 },
+ { 0x0901, 0xd508, 0x0000 },
+ { 0x8901, 0xd50d, 0x2000 },
+ { 0x0901, 0xd50a, 0x0000 },
+ { 0x0901, 0xd50e, 0x0000 },
+ { 0x8901, 0xd513, 0x3000 },
+ { 0x8901, 0xd511, 0x2000 },
+ { 0x0901, 0xd510, 0x0000 },
+ { 0x0901, 0xd512, 0x0000 },
+ { 0x8901, 0xd516, 0x2000 },
+ { 0x0901, 0xd514, 0x0000 },
+ { 0x0901, 0xd517, 0x0000 },
+ { 0x8501, 0xd521, 0x4000 },
+ { 0x8901, 0xd51c, 0x3000 },
+ { 0x8901, 0xd51a, 0x2000 },
+ { 0x0901, 0xd519, 0x0000 },
+ { 0x0901, 0xd51b, 0x0000 },
+ { 0x8501, 0xd51f, 0x2000 },
+ { 0x0501, 0xd51e, 0x0000 },
+ { 0x0501, 0xd520, 0x0000 },
+ { 0x8501, 0xd525, 0x3000 },
+ { 0x8501, 0xd523, 0x2000 },
+ { 0x0501, 0xd522, 0x0000 },
+ { 0x0501, 0xd524, 0x0000 },
+ { 0x8501, 0xd527, 0x2000 },
+ { 0x0501, 0xd526, 0x0000 },
+ { 0x0501, 0xd528, 0x0000 },
+ { 0x8901, 0xd54f, 0x6000 },
+ { 0x8901, 0xd539, 0x5000 },
+ { 0x8501, 0xd531, 0x4000 },
+ { 0x8501, 0xd52d, 0x3000 },
+ { 0x8501, 0xd52b, 0x2000 },
+ { 0x0501, 0xd52a, 0x0000 },
+ { 0x0501, 0xd52c, 0x0000 },
+ { 0x8501, 0xd52f, 0x2000 },
+ { 0x0501, 0xd52e, 0x0000 },
+ { 0x0501, 0xd530, 0x0000 },
+ { 0x8501, 0xd535, 0x3000 },
+ { 0x8501, 0xd533, 0x2000 },
+ { 0x0501, 0xd532, 0x0000 },
+ { 0x0501, 0xd534, 0x0000 },
+ { 0x8501, 0xd537, 0x2000 },
+ { 0x0501, 0xd536, 0x0000 },
+ { 0x0901, 0xd538, 0x0000 },
+ { 0x8901, 0xd543, 0x4000 },
+ { 0x8901, 0xd53e, 0x3000 },
+ { 0x8901, 0xd53c, 0x2000 },
+ { 0x0901, 0xd53b, 0x0000 },
+ { 0x0901, 0xd53d, 0x0000 },
+ { 0x8901, 0xd541, 0x2000 },
+ { 0x0901, 0xd540, 0x0000 },
+ { 0x0901, 0xd542, 0x0000 },
+ { 0x8901, 0xd54b, 0x3000 },
+ { 0x8901, 0xd546, 0x2000 },
+ { 0x0901, 0xd544, 0x0000 },
+ { 0x0901, 0xd54a, 0x0000 },
+ { 0x8901, 0xd54d, 0x2000 },
+ { 0x0901, 0xd54c, 0x0000 },
+ { 0x0901, 0xd54e, 0x0000 },
+ { 0x8501, 0xd560, 0x5000 },
+ { 0x8501, 0xd558, 0x4000 },
+ { 0x8501, 0xd554, 0x3000 },
+ { 0x8501, 0xd552, 0x2000 },
+ { 0x0901, 0xd550, 0x0000 },
+ { 0x0501, 0xd553, 0x0000 },
+ { 0x8501, 0xd556, 0x2000 },
+ { 0x0501, 0xd555, 0x0000 },
+ { 0x0501, 0xd557, 0x0000 },
+ { 0x8501, 0xd55c, 0x3000 },
+ { 0x8501, 0xd55a, 0x2000 },
+ { 0x0501, 0xd559, 0x0000 },
+ { 0x0501, 0xd55b, 0x0000 },
+ { 0x8501, 0xd55e, 0x2000 },
+ { 0x0501, 0xd55d, 0x0000 },
+ { 0x0501, 0xd55f, 0x0000 },
+ { 0x8501, 0xd568, 0x4000 },
+ { 0x8501, 0xd564, 0x3000 },
+ { 0x8501, 0xd562, 0x2000 },
+ { 0x0501, 0xd561, 0x0000 },
+ { 0x0501, 0xd563, 0x0000 },
+ { 0x8501, 0xd566, 0x2000 },
+ { 0x0501, 0xd565, 0x0000 },
+ { 0x0501, 0xd567, 0x0000 },
+ { 0x8901, 0xd56c, 0x3000 },
+ { 0x8501, 0xd56a, 0x2000 },
+ { 0x0501, 0xd569, 0x0000 },
+ { 0x0501, 0xd56b, 0x0000 },
+ { 0x8901, 0xd56e, 0x2000 },
+ { 0x0901, 0xd56d, 0x0000 },
+ { 0x0901, 0xd56f, 0x0000 },
+ { 0x8501, 0xd5f0, 0x8000 },
+ { 0x8901, 0xd5b0, 0x7000 },
+ { 0x8501, 0xd590, 0x6000 },
+ { 0x8901, 0xd580, 0x5000 },
+ { 0x8901, 0xd578, 0x4000 },
+ { 0x8901, 0xd574, 0x3000 },
+ { 0x8901, 0xd572, 0x2000 },
+ { 0x0901, 0xd571, 0x0000 },
+ { 0x0901, 0xd573, 0x0000 },
+ { 0x8901, 0xd576, 0x2000 },
+ { 0x0901, 0xd575, 0x0000 },
+ { 0x0901, 0xd577, 0x0000 },
+ { 0x8901, 0xd57c, 0x3000 },
+ { 0x8901, 0xd57a, 0x2000 },
+ { 0x0901, 0xd579, 0x0000 },
+ { 0x0901, 0xd57b, 0x0000 },
+ { 0x8901, 0xd57e, 0x2000 },
+ { 0x0901, 0xd57d, 0x0000 },
+ { 0x0901, 0xd57f, 0x0000 },
+ { 0x8501, 0xd588, 0x4000 },
+ { 0x8901, 0xd584, 0x3000 },
+ { 0x8901, 0xd582, 0x2000 },
+ { 0x0901, 0xd581, 0x0000 },
+ { 0x0901, 0xd583, 0x0000 },
+ { 0x8501, 0xd586, 0x2000 },
+ { 0x0901, 0xd585, 0x0000 },
+ { 0x0501, 0xd587, 0x0000 },
+ { 0x8501, 0xd58c, 0x3000 },
+ { 0x8501, 0xd58a, 0x2000 },
+ { 0x0501, 0xd589, 0x0000 },
+ { 0x0501, 0xd58b, 0x0000 },
+ { 0x8501, 0xd58e, 0x2000 },
+ { 0x0501, 0xd58d, 0x0000 },
+ { 0x0501, 0xd58f, 0x0000 },
+ { 0x8901, 0xd5a0, 0x5000 },
+ { 0x8501, 0xd598, 0x4000 },
+ { 0x8501, 0xd594, 0x3000 },
+ { 0x8501, 0xd592, 0x2000 },
+ { 0x0501, 0xd591, 0x0000 },
+ { 0x0501, 0xd593, 0x0000 },
+ { 0x8501, 0xd596, 0x2000 },
+ { 0x0501, 0xd595, 0x0000 },
+ { 0x0501, 0xd597, 0x0000 },
+ { 0x8501, 0xd59c, 0x3000 },
+ { 0x8501, 0xd59a, 0x2000 },
+ { 0x0501, 0xd599, 0x0000 },
+ { 0x0501, 0xd59b, 0x0000 },
+ { 0x8501, 0xd59e, 0x2000 },
+ { 0x0501, 0xd59d, 0x0000 },
+ { 0x0501, 0xd59f, 0x0000 },
+ { 0x8901, 0xd5a8, 0x4000 },
+ { 0x8901, 0xd5a4, 0x3000 },
+ { 0x8901, 0xd5a2, 0x2000 },
+ { 0x0901, 0xd5a1, 0x0000 },
+ { 0x0901, 0xd5a3, 0x0000 },
+ { 0x8901, 0xd5a6, 0x2000 },
+ { 0x0901, 0xd5a5, 0x0000 },
+ { 0x0901, 0xd5a7, 0x0000 },
+ { 0x8901, 0xd5ac, 0x3000 },
+ { 0x8901, 0xd5aa, 0x2000 },
+ { 0x0901, 0xd5a9, 0x0000 },
+ { 0x0901, 0xd5ab, 0x0000 },
+ { 0x8901, 0xd5ae, 0x2000 },
+ { 0x0901, 0xd5ad, 0x0000 },
+ { 0x0901, 0xd5af, 0x0000 },
+ { 0x8501, 0xd5d0, 0x6000 },
+ { 0x8501, 0xd5c0, 0x5000 },
+ { 0x8901, 0xd5b8, 0x4000 },
+ { 0x8901, 0xd5b4, 0x3000 },
+ { 0x8901, 0xd5b2, 0x2000 },
+ { 0x0901, 0xd5b1, 0x0000 },
+ { 0x0901, 0xd5b3, 0x0000 },
+ { 0x8901, 0xd5b6, 0x2000 },
+ { 0x0901, 0xd5b5, 0x0000 },
+ { 0x0901, 0xd5b7, 0x0000 },
+ { 0x8501, 0xd5bc, 0x3000 },
+ { 0x8501, 0xd5ba, 0x2000 },
+ { 0x0901, 0xd5b9, 0x0000 },
+ { 0x0501, 0xd5bb, 0x0000 },
+ { 0x8501, 0xd5be, 0x2000 },
+ { 0x0501, 0xd5bd, 0x0000 },
+ { 0x0501, 0xd5bf, 0x0000 },
+ { 0x8501, 0xd5c8, 0x4000 },
+ { 0x8501, 0xd5c4, 0x3000 },
+ { 0x8501, 0xd5c2, 0x2000 },
+ { 0x0501, 0xd5c1, 0x0000 },
+ { 0x0501, 0xd5c3, 0x0000 },
+ { 0x8501, 0xd5c6, 0x2000 },
+ { 0x0501, 0xd5c5, 0x0000 },
+ { 0x0501, 0xd5c7, 0x0000 },
+ { 0x8501, 0xd5cc, 0x3000 },
+ { 0x8501, 0xd5ca, 0x2000 },
+ { 0x0501, 0xd5c9, 0x0000 },
+ { 0x0501, 0xd5cb, 0x0000 },
+ { 0x8501, 0xd5ce, 0x2000 },
+ { 0x0501, 0xd5cd, 0x0000 },
+ { 0x0501, 0xd5cf, 0x0000 },
+ { 0x8901, 0xd5e0, 0x5000 },
+ { 0x8901, 0xd5d8, 0x4000 },
+ { 0x8901, 0xd5d4, 0x3000 },
+ { 0x8501, 0xd5d2, 0x2000 },
+ { 0x0501, 0xd5d1, 0x0000 },
+ { 0x0501, 0xd5d3, 0x0000 },
+ { 0x8901, 0xd5d6, 0x2000 },
+ { 0x0901, 0xd5d5, 0x0000 },
+ { 0x0901, 0xd5d7, 0x0000 },
+ { 0x8901, 0xd5dc, 0x3000 },
+ { 0x8901, 0xd5da, 0x2000 },
+ { 0x0901, 0xd5d9, 0x0000 },
+ { 0x0901, 0xd5db, 0x0000 },
+ { 0x8901, 0xd5de, 0x2000 },
+ { 0x0901, 0xd5dd, 0x0000 },
+ { 0x0901, 0xd5df, 0x0000 },
+ { 0x8901, 0xd5e8, 0x4000 },
+ { 0x8901, 0xd5e4, 0x3000 },
+ { 0x8901, 0xd5e2, 0x2000 },
+ { 0x0901, 0xd5e1, 0x0000 },
+ { 0x0901, 0xd5e3, 0x0000 },
+ { 0x8901, 0xd5e6, 0x2000 },
+ { 0x0901, 0xd5e5, 0x0000 },
+ { 0x0901, 0xd5e7, 0x0000 },
+ { 0x8901, 0xd5ec, 0x3000 },
+ { 0x8901, 0xd5ea, 0x2000 },
+ { 0x0901, 0xd5e9, 0x0000 },
+ { 0x0901, 0xd5eb, 0x0000 },
+ { 0x8501, 0xd5ee, 0x2000 },
+ { 0x0901, 0xd5ed, 0x0000 },
+ { 0x0501, 0xd5ef, 0x0000 },
+ { 0x8501, 0xd630, 0x7000 },
+ { 0x8901, 0xd610, 0x6000 },
+ { 0x8501, 0xd600, 0x5000 },
+ { 0x8501, 0xd5f8, 0x4000 },
+ { 0x8501, 0xd5f4, 0x3000 },
+ { 0x8501, 0xd5f2, 0x2000 },
+ { 0x0501, 0xd5f1, 0x0000 },
+ { 0x0501, 0xd5f3, 0x0000 },
+ { 0x8501, 0xd5f6, 0x2000 },
+ { 0x0501, 0xd5f5, 0x0000 },
+ { 0x0501, 0xd5f7, 0x0000 },
+ { 0x8501, 0xd5fc, 0x3000 },
+ { 0x8501, 0xd5fa, 0x2000 },
+ { 0x0501, 0xd5f9, 0x0000 },
+ { 0x0501, 0xd5fb, 0x0000 },
+ { 0x8501, 0xd5fe, 0x2000 },
+ { 0x0501, 0xd5fd, 0x0000 },
+ { 0x0501, 0xd5ff, 0x0000 },
+ { 0x8901, 0xd608, 0x4000 },
+ { 0x8501, 0xd604, 0x3000 },
+ { 0x8501, 0xd602, 0x2000 },
+ { 0x0501, 0xd601, 0x0000 },
+ { 0x0501, 0xd603, 0x0000 },
+ { 0x8501, 0xd606, 0x2000 },
+ { 0x0501, 0xd605, 0x0000 },
+ { 0x0501, 0xd607, 0x0000 },
+ { 0x8901, 0xd60c, 0x3000 },
+ { 0x8901, 0xd60a, 0x2000 },
+ { 0x0901, 0xd609, 0x0000 },
+ { 0x0901, 0xd60b, 0x0000 },
+ { 0x8901, 0xd60e, 0x2000 },
+ { 0x0901, 0xd60d, 0x0000 },
+ { 0x0901, 0xd60f, 0x0000 },
+ { 0x8901, 0xd620, 0x5000 },
+ { 0x8901, 0xd618, 0x4000 },
+ { 0x8901, 0xd614, 0x3000 },
+ { 0x8901, 0xd612, 0x2000 },
+ { 0x0901, 0xd611, 0x0000 },
+ { 0x0901, 0xd613, 0x0000 },
+ { 0x8901, 0xd616, 0x2000 },
+ { 0x0901, 0xd615, 0x0000 },
+ { 0x0901, 0xd617, 0x0000 },
+ { 0x8901, 0xd61c, 0x3000 },
+ { 0x8901, 0xd61a, 0x2000 },
+ { 0x0901, 0xd619, 0x0000 },
+ { 0x0901, 0xd61b, 0x0000 },
+ { 0x8901, 0xd61e, 0x2000 },
+ { 0x0901, 0xd61d, 0x0000 },
+ { 0x0901, 0xd61f, 0x0000 },
+ { 0x8501, 0xd628, 0x4000 },
+ { 0x8501, 0xd624, 0x3000 },
+ { 0x8501, 0xd622, 0x2000 },
+ { 0x0901, 0xd621, 0x0000 },
+ { 0x0501, 0xd623, 0x0000 },
+ { 0x8501, 0xd626, 0x2000 },
+ { 0x0501, 0xd625, 0x0000 },
+ { 0x0501, 0xd627, 0x0000 },
+ { 0x8501, 0xd62c, 0x3000 },
+ { 0x8501, 0xd62a, 0x2000 },
+ { 0x0501, 0xd629, 0x0000 },
+ { 0x0501, 0xd62b, 0x0000 },
+ { 0x8501, 0xd62e, 0x2000 },
+ { 0x0501, 0xd62d, 0x0000 },
+ { 0x0501, 0xd62f, 0x0000 },
+ { 0x8901, 0xd650, 0x6000 },
+ { 0x8901, 0xd640, 0x5000 },
+ { 0x8501, 0xd638, 0x4000 },
+ { 0x8501, 0xd634, 0x3000 },
+ { 0x8501, 0xd632, 0x2000 },
+ { 0x0501, 0xd631, 0x0000 },
+ { 0x0501, 0xd633, 0x0000 },
+ { 0x8501, 0xd636, 0x2000 },
+ { 0x0501, 0xd635, 0x0000 },
+ { 0x0501, 0xd637, 0x0000 },
+ { 0x8901, 0xd63c, 0x3000 },
+ { 0x8501, 0xd63a, 0x2000 },
+ { 0x0501, 0xd639, 0x0000 },
+ { 0x0501, 0xd63b, 0x0000 },
+ { 0x8901, 0xd63e, 0x2000 },
+ { 0x0901, 0xd63d, 0x0000 },
+ { 0x0901, 0xd63f, 0x0000 },
+ { 0x8901, 0xd648, 0x4000 },
+ { 0x8901, 0xd644, 0x3000 },
+ { 0x8901, 0xd642, 0x2000 },
+ { 0x0901, 0xd641, 0x0000 },
+ { 0x0901, 0xd643, 0x0000 },
+ { 0x8901, 0xd646, 0x2000 },
+ { 0x0901, 0xd645, 0x0000 },
+ { 0x0901, 0xd647, 0x0000 },
+ { 0x8901, 0xd64c, 0x3000 },
+ { 0x8901, 0xd64a, 0x2000 },
+ { 0x0901, 0xd649, 0x0000 },
+ { 0x0901, 0xd64b, 0x0000 },
+ { 0x8901, 0xd64e, 0x2000 },
+ { 0x0901, 0xd64d, 0x0000 },
+ { 0x0901, 0xd64f, 0x0000 },
+ { 0x8501, 0xd660, 0x5000 },
+ { 0x8501, 0xd658, 0x4000 },
+ { 0x8901, 0xd654, 0x3000 },
+ { 0x8901, 0xd652, 0x2000 },
+ { 0x0901, 0xd651, 0x0000 },
+ { 0x0901, 0xd653, 0x0000 },
+ { 0x8501, 0xd656, 0x2000 },
+ { 0x0901, 0xd655, 0x0000 },
+ { 0x0501, 0xd657, 0x0000 },
+ { 0x8501, 0xd65c, 0x3000 },
+ { 0x8501, 0xd65a, 0x2000 },
+ { 0x0501, 0xd659, 0x0000 },
+ { 0x0501, 0xd65b, 0x0000 },
+ { 0x8501, 0xd65e, 0x2000 },
+ { 0x0501, 0xd65d, 0x0000 },
+ { 0x0501, 0xd65f, 0x0000 },
+ { 0x8501, 0xd668, 0x4000 },
+ { 0x8501, 0xd664, 0x3000 },
+ { 0x8501, 0xd662, 0x2000 },
+ { 0x0501, 0xd661, 0x0000 },
+ { 0x0501, 0xd663, 0x0000 },
+ { 0x8501, 0xd666, 0x2000 },
+ { 0x0501, 0xd665, 0x0000 },
+ { 0x0501, 0xd667, 0x0000 },
+ { 0x8501, 0xd66c, 0x3000 },
+ { 0x8501, 0xd66a, 0x2000 },
+ { 0x0501, 0xd669, 0x0000 },
+ { 0x0501, 0xd66b, 0x0000 },
+ { 0x8501, 0xd66e, 0x2000 },
+ { 0x0501, 0xd66d, 0x0000 },
+ { 0x0501, 0xd66f, 0x0000 },
+ { 0x8501, 0xd774, 0x9000 },
+ { 0x8901, 0xd6f4, 0x8000 },
+ { 0x8901, 0xd6b4, 0x7000 },
+ { 0x8501, 0xd690, 0x6000 },
+ { 0x8901, 0xd680, 0x5000 },
+ { 0x8901, 0xd678, 0x4000 },
+ { 0x8901, 0xd674, 0x3000 },
+ { 0x8901, 0xd672, 0x2000 },
+ { 0x0901, 0xd671, 0x0000 },
+ { 0x0901, 0xd673, 0x0000 },
+ { 0x8901, 0xd676, 0x2000 },
+ { 0x0901, 0xd675, 0x0000 },
+ { 0x0901, 0xd677, 0x0000 },
+ { 0x8901, 0xd67c, 0x3000 },
+ { 0x8901, 0xd67a, 0x2000 },
+ { 0x0901, 0xd679, 0x0000 },
+ { 0x0901, 0xd67b, 0x0000 },
+ { 0x8901, 0xd67e, 0x2000 },
+ { 0x0901, 0xd67d, 0x0000 },
+ { 0x0901, 0xd67f, 0x0000 },
+ { 0x8901, 0xd688, 0x4000 },
+ { 0x8901, 0xd684, 0x3000 },
+ { 0x8901, 0xd682, 0x2000 },
+ { 0x0901, 0xd681, 0x0000 },
+ { 0x0901, 0xd683, 0x0000 },
+ { 0x8901, 0xd686, 0x2000 },
+ { 0x0901, 0xd685, 0x0000 },
+ { 0x0901, 0xd687, 0x0000 },
+ { 0x8501, 0xd68c, 0x3000 },
+ { 0x8501, 0xd68a, 0x2000 },
+ { 0x0901, 0xd689, 0x0000 },
+ { 0x0501, 0xd68b, 0x0000 },
+ { 0x8501, 0xd68e, 0x2000 },
+ { 0x0501, 0xd68d, 0x0000 },
+ { 0x0501, 0xd68f, 0x0000 },
+ { 0x8501, 0xd6a0, 0x5000 },
+ { 0x8501, 0xd698, 0x4000 },
+ { 0x8501, 0xd694, 0x3000 },
+ { 0x8501, 0xd692, 0x2000 },
+ { 0x0501, 0xd691, 0x0000 },
+ { 0x0501, 0xd693, 0x0000 },
+ { 0x8501, 0xd696, 0x2000 },
+ { 0x0501, 0xd695, 0x0000 },
+ { 0x0501, 0xd697, 0x0000 },
+ { 0x8501, 0xd69c, 0x3000 },
+ { 0x8501, 0xd69a, 0x2000 },
+ { 0x0501, 0xd699, 0x0000 },
+ { 0x0501, 0xd69b, 0x0000 },
+ { 0x8501, 0xd69e, 0x2000 },
+ { 0x0501, 0xd69d, 0x0000 },
+ { 0x0501, 0xd69f, 0x0000 },
+ { 0x8901, 0xd6ac, 0x4000 },
+ { 0x8901, 0xd6a8, 0x3000 },
+ { 0x8501, 0xd6a2, 0x2000 },
+ { 0x0501, 0xd6a1, 0x0000 },
+ { 0x0501, 0xd6a3, 0x0000 },
+ { 0x8901, 0xd6aa, 0x2000 },
+ { 0x0901, 0xd6a9, 0x0000 },
+ { 0x0901, 0xd6ab, 0x0000 },
+ { 0x8901, 0xd6b0, 0x3000 },
+ { 0x8901, 0xd6ae, 0x2000 },
+ { 0x0901, 0xd6ad, 0x0000 },
+ { 0x0901, 0xd6af, 0x0000 },
+ { 0x8901, 0xd6b2, 0x2000 },
+ { 0x0901, 0xd6b1, 0x0000 },
+ { 0x0901, 0xd6b3, 0x0000 },
+ { 0x8501, 0xd6d4, 0x6000 },
+ { 0x8501, 0xd6c4, 0x5000 },
+ { 0x8901, 0xd6bc, 0x4000 },
+ { 0x8901, 0xd6b8, 0x3000 },
+ { 0x8901, 0xd6b6, 0x2000 },
+ { 0x0901, 0xd6b5, 0x0000 },
+ { 0x0901, 0xd6b7, 0x0000 },
+ { 0x8901, 0xd6ba, 0x2000 },
+ { 0x0901, 0xd6b9, 0x0000 },
+ { 0x0901, 0xd6bb, 0x0000 },
+ { 0x8901, 0xd6c0, 0x3000 },
+ { 0x8901, 0xd6be, 0x2000 },
+ { 0x0901, 0xd6bd, 0x0000 },
+ { 0x0901, 0xd6bf, 0x0000 },
+ { 0x8501, 0xd6c2, 0x2000 },
+ { 0x1901, 0xd6c1, 0x0000 },
+ { 0x0501, 0xd6c3, 0x0000 },
+ { 0x8501, 0xd6cc, 0x4000 },
+ { 0x8501, 0xd6c8, 0x3000 },
+ { 0x8501, 0xd6c6, 0x2000 },
+ { 0x0501, 0xd6c5, 0x0000 },
+ { 0x0501, 0xd6c7, 0x0000 },
+ { 0x8501, 0xd6ca, 0x2000 },
+ { 0x0501, 0xd6c9, 0x0000 },
+ { 0x0501, 0xd6cb, 0x0000 },
+ { 0x8501, 0xd6d0, 0x3000 },
+ { 0x8501, 0xd6ce, 0x2000 },
+ { 0x0501, 0xd6cd, 0x0000 },
+ { 0x0501, 0xd6cf, 0x0000 },
+ { 0x8501, 0xd6d2, 0x2000 },
+ { 0x0501, 0xd6d1, 0x0000 },
+ { 0x0501, 0xd6d3, 0x0000 },
+ { 0x8901, 0xd6e4, 0x5000 },
+ { 0x8501, 0xd6dc, 0x4000 },
+ { 0x8501, 0xd6d8, 0x3000 },
+ { 0x8501, 0xd6d6, 0x2000 },
+ { 0x0501, 0xd6d5, 0x0000 },
+ { 0x0501, 0xd6d7, 0x0000 },
+ { 0x8501, 0xd6da, 0x2000 },
+ { 0x0501, 0xd6d9, 0x0000 },
+ { 0x1901, 0xd6db, 0x0000 },
+ { 0x8501, 0xd6e0, 0x3000 },
+ { 0x8501, 0xd6de, 0x2000 },
+ { 0x0501, 0xd6dd, 0x0000 },
+ { 0x0501, 0xd6df, 0x0000 },
+ { 0x8901, 0xd6e2, 0x2000 },
+ { 0x0501, 0xd6e1, 0x0000 },
+ { 0x0901, 0xd6e3, 0x0000 },
+ { 0x8901, 0xd6ec, 0x4000 },
+ { 0x8901, 0xd6e8, 0x3000 },
+ { 0x8901, 0xd6e6, 0x2000 },
+ { 0x0901, 0xd6e5, 0x0000 },
+ { 0x0901, 0xd6e7, 0x0000 },
+ { 0x8901, 0xd6ea, 0x2000 },
+ { 0x0901, 0xd6e9, 0x0000 },
+ { 0x0901, 0xd6eb, 0x0000 },
+ { 0x8901, 0xd6f0, 0x3000 },
+ { 0x8901, 0xd6ee, 0x2000 },
+ { 0x0901, 0xd6ed, 0x0000 },
+ { 0x0901, 0xd6ef, 0x0000 },
+ { 0x8901, 0xd6f2, 0x2000 },
+ { 0x0901, 0xd6f1, 0x0000 },
+ { 0x0901, 0xd6f3, 0x0000 },
+ { 0x8901, 0xd734, 0x7000 },
+ { 0x8501, 0xd714, 0x6000 },
+ { 0x8501, 0xd704, 0x5000 },
+ { 0x8501, 0xd6fc, 0x4000 },
+ { 0x8901, 0xd6f8, 0x3000 },
+ { 0x8901, 0xd6f6, 0x2000 },
+ { 0x0901, 0xd6f5, 0x0000 },
+ { 0x0901, 0xd6f7, 0x0000 },
+ { 0x8901, 0xd6fa, 0x2000 },
+ { 0x0901, 0xd6f9, 0x0000 },
+ { 0x1901, 0xd6fb, 0x0000 },
+ { 0x8501, 0xd700, 0x3000 },
+ { 0x8501, 0xd6fe, 0x2000 },
+ { 0x0501, 0xd6fd, 0x0000 },
+ { 0x0501, 0xd6ff, 0x0000 },
+ { 0x8501, 0xd702, 0x2000 },
+ { 0x0501, 0xd701, 0x0000 },
+ { 0x0501, 0xd703, 0x0000 },
+ { 0x8501, 0xd70c, 0x4000 },
+ { 0x8501, 0xd708, 0x3000 },
+ { 0x8501, 0xd706, 0x2000 },
+ { 0x0501, 0xd705, 0x0000 },
+ { 0x0501, 0xd707, 0x0000 },
+ { 0x8501, 0xd70a, 0x2000 },
+ { 0x0501, 0xd709, 0x0000 },
+ { 0x0501, 0xd70b, 0x0000 },
+ { 0x8501, 0xd710, 0x3000 },
+ { 0x8501, 0xd70e, 0x2000 },
+ { 0x0501, 0xd70d, 0x0000 },
+ { 0x0501, 0xd70f, 0x0000 },
+ { 0x8501, 0xd712, 0x2000 },
+ { 0x0501, 0xd711, 0x0000 },
+ { 0x0501, 0xd713, 0x0000 },
+ { 0x8901, 0xd724, 0x5000 },
+ { 0x8901, 0xd71c, 0x4000 },
+ { 0x8501, 0xd718, 0x3000 },
+ { 0x8501, 0xd716, 0x2000 },
+ { 0x1901, 0xd715, 0x0000 },
+ { 0x0501, 0xd717, 0x0000 },
+ { 0x8501, 0xd71a, 0x2000 },
+ { 0x0501, 0xd719, 0x0000 },
+ { 0x0501, 0xd71b, 0x0000 },
+ { 0x8901, 0xd720, 0x3000 },
+ { 0x8901, 0xd71e, 0x2000 },
+ { 0x0901, 0xd71d, 0x0000 },
+ { 0x0901, 0xd71f, 0x0000 },
+ { 0x8901, 0xd722, 0x2000 },
+ { 0x0901, 0xd721, 0x0000 },
+ { 0x0901, 0xd723, 0x0000 },
+ { 0x8901, 0xd72c, 0x4000 },
+ { 0x8901, 0xd728, 0x3000 },
+ { 0x8901, 0xd726, 0x2000 },
+ { 0x0901, 0xd725, 0x0000 },
+ { 0x0901, 0xd727, 0x0000 },
+ { 0x8901, 0xd72a, 0x2000 },
+ { 0x0901, 0xd729, 0x0000 },
+ { 0x0901, 0xd72b, 0x0000 },
+ { 0x8901, 0xd730, 0x3000 },
+ { 0x8901, 0xd72e, 0x2000 },
+ { 0x0901, 0xd72d, 0x0000 },
+ { 0x0901, 0xd72f, 0x0000 },
+ { 0x8901, 0xd732, 0x2000 },
+ { 0x0901, 0xd731, 0x0000 },
+ { 0x0901, 0xd733, 0x0000 },
+ { 0x8501, 0xd754, 0x6000 },
+ { 0x8501, 0xd744, 0x5000 },
+ { 0x8501, 0xd73c, 0x4000 },
+ { 0x8501, 0xd738, 0x3000 },
+ { 0x8501, 0xd736, 0x2000 },
+ { 0x1901, 0xd735, 0x0000 },
+ { 0x0501, 0xd737, 0x0000 },
+ { 0x8501, 0xd73a, 0x2000 },
+ { 0x0501, 0xd739, 0x0000 },
+ { 0x0501, 0xd73b, 0x0000 },
+ { 0x8501, 0xd740, 0x3000 },
+ { 0x8501, 0xd73e, 0x2000 },
+ { 0x0501, 0xd73d, 0x0000 },
+ { 0x0501, 0xd73f, 0x0000 },
+ { 0x8501, 0xd742, 0x2000 },
+ { 0x0501, 0xd741, 0x0000 },
+ { 0x0501, 0xd743, 0x0000 },
+ { 0x8501, 0xd74c, 0x4000 },
+ { 0x8501, 0xd748, 0x3000 },
+ { 0x8501, 0xd746, 0x2000 },
+ { 0x0501, 0xd745, 0x0000 },
+ { 0x0501, 0xd747, 0x0000 },
+ { 0x8501, 0xd74a, 0x2000 },
+ { 0x0501, 0xd749, 0x0000 },
+ { 0x0501, 0xd74b, 0x0000 },
+ { 0x8501, 0xd750, 0x3000 },
+ { 0x8501, 0xd74e, 0x2000 },
+ { 0x0501, 0xd74d, 0x0000 },
+ { 0x1901, 0xd74f, 0x0000 },
+ { 0x8501, 0xd752, 0x2000 },
+ { 0x0501, 0xd751, 0x0000 },
+ { 0x0501, 0xd753, 0x0000 },
+ { 0x8901, 0xd764, 0x5000 },
+ { 0x8901, 0xd75c, 0x4000 },
+ { 0x8901, 0xd758, 0x3000 },
+ { 0x8901, 0xd756, 0x2000 },
+ { 0x0501, 0xd755, 0x0000 },
+ { 0x0901, 0xd757, 0x0000 },
+ { 0x8901, 0xd75a, 0x2000 },
+ { 0x0901, 0xd759, 0x0000 },
+ { 0x0901, 0xd75b, 0x0000 },
+ { 0x8901, 0xd760, 0x3000 },
+ { 0x8901, 0xd75e, 0x2000 },
+ { 0x0901, 0xd75d, 0x0000 },
+ { 0x0901, 0xd75f, 0x0000 },
+ { 0x8901, 0xd762, 0x2000 },
+ { 0x0901, 0xd761, 0x0000 },
+ { 0x0901, 0xd763, 0x0000 },
+ { 0x8901, 0xd76c, 0x4000 },
+ { 0x8901, 0xd768, 0x3000 },
+ { 0x8901, 0xd766, 0x2000 },
+ { 0x0901, 0xd765, 0x0000 },
+ { 0x0901, 0xd767, 0x0000 },
+ { 0x8901, 0xd76a, 0x2000 },
+ { 0x0901, 0xd769, 0x0000 },
+ { 0x0901, 0xd76b, 0x0000 },
+ { 0x8501, 0xd770, 0x3000 },
+ { 0x8901, 0xd76e, 0x2000 },
+ { 0x0901, 0xd76d, 0x0000 },
+ { 0x1901, 0xd76f, 0x0000 },
+ { 0x8501, 0xd772, 0x2000 },
+ { 0x0501, 0xd771, 0x0000 },
+ { 0x0501, 0xd773, 0x0000 },
+ { 0x8d01, 0xd7f8, 0x8000 },
+ { 0x8501, 0xd7b4, 0x7000 },
+ { 0x8901, 0xd794, 0x6000 },
+ { 0x8501, 0xd784, 0x5000 },
+ { 0x8501, 0xd77c, 0x4000 },
+ { 0x8501, 0xd778, 0x3000 },
+ { 0x8501, 0xd776, 0x2000 },
+ { 0x0501, 0xd775, 0x0000 },
+ { 0x0501, 0xd777, 0x0000 },
+ { 0x8501, 0xd77a, 0x2000 },
+ { 0x0501, 0xd779, 0x0000 },
+ { 0x0501, 0xd77b, 0x0000 },
+ { 0x8501, 0xd780, 0x3000 },
+ { 0x8501, 0xd77e, 0x2000 },
+ { 0x0501, 0xd77d, 0x0000 },
+ { 0x0501, 0xd77f, 0x0000 },
+ { 0x8501, 0xd782, 0x2000 },
+ { 0x0501, 0xd781, 0x0000 },
+ { 0x0501, 0xd783, 0x0000 },
+ { 0x8501, 0xd78c, 0x4000 },
+ { 0x8501, 0xd788, 0x3000 },
+ { 0x8501, 0xd786, 0x2000 },
+ { 0x0501, 0xd785, 0x0000 },
+ { 0x0501, 0xd787, 0x0000 },
+ { 0x8501, 0xd78a, 0x2000 },
+ { 0x1901, 0xd789, 0x0000 },
+ { 0x0501, 0xd78b, 0x0000 },
+ { 0x8901, 0xd790, 0x3000 },
+ { 0x8501, 0xd78e, 0x2000 },
+ { 0x0501, 0xd78d, 0x0000 },
+ { 0x0501, 0xd78f, 0x0000 },
+ { 0x8901, 0xd792, 0x2000 },
+ { 0x0901, 0xd791, 0x0000 },
+ { 0x0901, 0xd793, 0x0000 },
+ { 0x8901, 0xd7a4, 0x5000 },
+ { 0x8901, 0xd79c, 0x4000 },
+ { 0x8901, 0xd798, 0x3000 },
+ { 0x8901, 0xd796, 0x2000 },
+ { 0x0901, 0xd795, 0x0000 },
+ { 0x0901, 0xd797, 0x0000 },
+ { 0x8901, 0xd79a, 0x2000 },
+ { 0x0901, 0xd799, 0x0000 },
+ { 0x0901, 0xd79b, 0x0000 },
+ { 0x8901, 0xd7a0, 0x3000 },
+ { 0x8901, 0xd79e, 0x2000 },
+ { 0x0901, 0xd79d, 0x0000 },
+ { 0x0901, 0xd79f, 0x0000 },
+ { 0x8901, 0xd7a2, 0x2000 },
+ { 0x0901, 0xd7a1, 0x0000 },
+ { 0x0901, 0xd7a3, 0x0000 },
+ { 0x8501, 0xd7ac, 0x4000 },
+ { 0x8901, 0xd7a8, 0x3000 },
+ { 0x8901, 0xd7a6, 0x2000 },
+ { 0x0901, 0xd7a5, 0x0000 },
+ { 0x0901, 0xd7a7, 0x0000 },
+ { 0x8501, 0xd7aa, 0x2000 },
+ { 0x1901, 0xd7a9, 0x0000 },
+ { 0x0501, 0xd7ab, 0x0000 },
+ { 0x8501, 0xd7b0, 0x3000 },
+ { 0x8501, 0xd7ae, 0x2000 },
+ { 0x0501, 0xd7ad, 0x0000 },
+ { 0x0501, 0xd7af, 0x0000 },
+ { 0x8501, 0xd7b2, 0x2000 },
+ { 0x0501, 0xd7b1, 0x0000 },
+ { 0x0501, 0xd7b3, 0x0000 },
+ { 0x8d01, 0xd7d8, 0x6000 },
+ { 0x8501, 0xd7c4, 0x5000 },
+ { 0x8501, 0xd7bc, 0x4000 },
+ { 0x8501, 0xd7b8, 0x3000 },
+ { 0x8501, 0xd7b6, 0x2000 },
+ { 0x0501, 0xd7b5, 0x0000 },
+ { 0x0501, 0xd7b7, 0x0000 },
+ { 0x8501, 0xd7ba, 0x2000 },
+ { 0x0501, 0xd7b9, 0x0000 },
+ { 0x0501, 0xd7bb, 0x0000 },
+ { 0x8501, 0xd7c0, 0x3000 },
+ { 0x8501, 0xd7be, 0x2000 },
+ { 0x0501, 0xd7bd, 0x0000 },
+ { 0x0501, 0xd7bf, 0x0000 },
+ { 0x8501, 0xd7c2, 0x2000 },
+ { 0x0501, 0xd7c1, 0x0000 },
+ { 0x1901, 0xd7c3, 0x0000 },
+ { 0x8d01, 0xd7d0, 0x4000 },
+ { 0x8501, 0xd7c8, 0x3000 },
+ { 0x8501, 0xd7c6, 0x2000 },
+ { 0x0501, 0xd7c5, 0x0000 },
+ { 0x0501, 0xd7c7, 0x0000 },
+ { 0x8d01, 0xd7ce, 0x2000 },
+ { 0x0501, 0xd7c9, 0x0000 },
+ { 0x0d01, 0xd7cf, 0x0000 },
+ { 0x8d01, 0xd7d4, 0x3000 },
+ { 0x8d01, 0xd7d2, 0x2000 },
+ { 0x0d01, 0xd7d1, 0x0000 },
+ { 0x0d01, 0xd7d3, 0x0000 },
+ { 0x8d01, 0xd7d6, 0x2000 },
+ { 0x0d01, 0xd7d5, 0x0000 },
+ { 0x0d01, 0xd7d7, 0x0000 },
+ { 0x8d01, 0xd7e8, 0x5000 },
+ { 0x8d01, 0xd7e0, 0x4000 },
+ { 0x8d01, 0xd7dc, 0x3000 },
+ { 0x8d01, 0xd7da, 0x2000 },
+ { 0x0d01, 0xd7d9, 0x0000 },
+ { 0x0d01, 0xd7db, 0x0000 },
+ { 0x8d01, 0xd7de, 0x2000 },
+ { 0x0d01, 0xd7dd, 0x0000 },
+ { 0x0d01, 0xd7df, 0x0000 },
+ { 0x8d01, 0xd7e4, 0x3000 },
+ { 0x8d01, 0xd7e2, 0x2000 },
+ { 0x0d01, 0xd7e1, 0x0000 },
+ { 0x0d01, 0xd7e3, 0x0000 },
+ { 0x8d01, 0xd7e6, 0x2000 },
+ { 0x0d01, 0xd7e5, 0x0000 },
+ { 0x0d01, 0xd7e7, 0x0000 },
+ { 0x8d01, 0xd7f0, 0x4000 },
+ { 0x8d01, 0xd7ec, 0x3000 },
+ { 0x8d01, 0xd7ea, 0x2000 },
+ { 0x0d01, 0xd7e9, 0x0000 },
+ { 0x0d01, 0xd7eb, 0x0000 },
+ { 0x8d01, 0xd7ee, 0x2000 },
+ { 0x0d01, 0xd7ed, 0x0000 },
+ { 0x0d01, 0xd7ef, 0x0000 },
+ { 0x8d01, 0xd7f4, 0x3000 },
+ { 0x8d01, 0xd7f2, 0x2000 },
+ { 0x0d01, 0xd7f1, 0x0000 },
+ { 0x0d01, 0xd7f3, 0x0000 },
+ { 0x8d01, 0xd7f6, 0x2000 },
+ { 0x0d01, 0xd7f5, 0x0000 },
+ { 0x0d01, 0xd7f7, 0x0000 },
+ { 0x8702, 0xf836, 0x7000 },
+ { 0x8702, 0xf816, 0x6000 },
+ { 0x8702, 0xf806, 0x5000 },
+ { 0x8702, 0x0000, 0x4000 },
+ { 0x8d01, 0xd7fc, 0x3000 },
+ { 0x8d01, 0xd7fa, 0x2000 },
+ { 0x0d01, 0xd7f9, 0x0000 },
+ { 0x0d01, 0xd7fb, 0x0000 },
+ { 0x8d01, 0xd7fe, 0x2000 },
+ { 0x0d01, 0xd7fd, 0x0000 },
+ { 0x0d01, 0xd7ff, 0x0000 },
+ { 0x8702, 0xf802, 0x3000 },
+ { 0x8702, 0xf800, 0x2000 },
+ { 0x0702, 0xa6d6, 0x0000 },
+ { 0x0702, 0xf801, 0x0000 },
+ { 0x8702, 0xf804, 0x2000 },
+ { 0x0702, 0xf803, 0x0000 },
+ { 0x0702, 0xf805, 0x0000 },
+ { 0x8702, 0xf80e, 0x4000 },
+ { 0x8702, 0xf80a, 0x3000 },
+ { 0x8702, 0xf808, 0x2000 },
+ { 0x0702, 0xf807, 0x0000 },
+ { 0x0702, 0xf809, 0x0000 },
+ { 0x8702, 0xf80c, 0x2000 },
+ { 0x0702, 0xf80b, 0x0000 },
+ { 0x0702, 0xf80d, 0x0000 },
+ { 0x8702, 0xf812, 0x3000 },
+ { 0x8702, 0xf810, 0x2000 },
+ { 0x0702, 0xf80f, 0x0000 },
+ { 0x0702, 0xf811, 0x0000 },
+ { 0x8702, 0xf814, 0x2000 },
+ { 0x0702, 0xf813, 0x0000 },
+ { 0x0702, 0xf815, 0x0000 },
+ { 0x8702, 0xf826, 0x5000 },
+ { 0x8702, 0xf81e, 0x4000 },
+ { 0x8702, 0xf81a, 0x3000 },
+ { 0x8702, 0xf818, 0x2000 },
+ { 0x0702, 0xf817, 0x0000 },
+ { 0x0702, 0xf819, 0x0000 },
+ { 0x8702, 0xf81c, 0x2000 },
+ { 0x0702, 0xf81b, 0x0000 },
+ { 0x0702, 0xf81d, 0x0000 },
+ { 0x8702, 0xf822, 0x3000 },
+ { 0x8702, 0xf820, 0x2000 },
+ { 0x0702, 0xf81f, 0x0000 },
+ { 0x0702, 0xf821, 0x0000 },
+ { 0x8702, 0xf824, 0x2000 },
+ { 0x0702, 0xf823, 0x0000 },
+ { 0x0702, 0xf825, 0x0000 },
+ { 0x8702, 0xf82e, 0x4000 },
+ { 0x8702, 0xf82a, 0x3000 },
+ { 0x8702, 0xf828, 0x2000 },
+ { 0x0702, 0xf827, 0x0000 },
+ { 0x0702, 0xf829, 0x0000 },
+ { 0x8702, 0xf82c, 0x2000 },
+ { 0x0702, 0xf82b, 0x0000 },
+ { 0x0702, 0xf82d, 0x0000 },
+ { 0x8702, 0xf832, 0x3000 },
+ { 0x8702, 0xf830, 0x2000 },
+ { 0x0702, 0xf82f, 0x0000 },
+ { 0x0702, 0xf831, 0x0000 },
+ { 0x8702, 0xf834, 0x2000 },
+ { 0x0702, 0xf833, 0x0000 },
+ { 0x0702, 0xf835, 0x0000 },
+ { 0x8702, 0xf856, 0x6000 },
+ { 0x8702, 0xf846, 0x5000 },
+ { 0x8702, 0xf83e, 0x4000 },
+ { 0x8702, 0xf83a, 0x3000 },
+ { 0x8702, 0xf838, 0x2000 },
+ { 0x0702, 0xf837, 0x0000 },
+ { 0x0702, 0xf839, 0x0000 },
+ { 0x8702, 0xf83c, 0x2000 },
+ { 0x0702, 0xf83b, 0x0000 },
+ { 0x0702, 0xf83d, 0x0000 },
+ { 0x8702, 0xf842, 0x3000 },
+ { 0x8702, 0xf840, 0x2000 },
+ { 0x0702, 0xf83f, 0x0000 },
+ { 0x0702, 0xf841, 0x0000 },
+ { 0x8702, 0xf844, 0x2000 },
+ { 0x0702, 0xf843, 0x0000 },
+ { 0x0702, 0xf845, 0x0000 },
+ { 0x8702, 0xf84e, 0x4000 },
+ { 0x8702, 0xf84a, 0x3000 },
+ { 0x8702, 0xf848, 0x2000 },
+ { 0x0702, 0xf847, 0x0000 },
+ { 0x0702, 0xf849, 0x0000 },
+ { 0x8702, 0xf84c, 0x2000 },
+ { 0x0702, 0xf84b, 0x0000 },
+ { 0x0702, 0xf84d, 0x0000 },
+ { 0x8702, 0xf852, 0x3000 },
+ { 0x8702, 0xf850, 0x2000 },
+ { 0x0702, 0xf84f, 0x0000 },
+ { 0x0702, 0xf851, 0x0000 },
+ { 0x8702, 0xf854, 0x2000 },
+ { 0x0702, 0xf853, 0x0000 },
+ { 0x0702, 0xf855, 0x0000 },
+ { 0x8702, 0xf866, 0x5000 },
+ { 0x8702, 0xf85e, 0x4000 },
+ { 0x8702, 0xf85a, 0x3000 },
+ { 0x8702, 0xf858, 0x2000 },
+ { 0x0702, 0xf857, 0x0000 },
+ { 0x0702, 0xf859, 0x0000 },
+ { 0x8702, 0xf85c, 0x2000 },
+ { 0x0702, 0xf85b, 0x0000 },
+ { 0x0702, 0xf85d, 0x0000 },
+ { 0x8702, 0xf862, 0x3000 },
+ { 0x8702, 0xf860, 0x2000 },
+ { 0x0702, 0xf85f, 0x0000 },
+ { 0x0702, 0xf861, 0x0000 },
+ { 0x8702, 0xf864, 0x2000 },
+ { 0x0702, 0xf863, 0x0000 },
+ { 0x0702, 0xf865, 0x0000 },
+ { 0x8702, 0xf86e, 0x4000 },
+ { 0x8702, 0xf86a, 0x3000 },
+ { 0x8702, 0xf868, 0x2000 },
+ { 0x0702, 0xf867, 0x0000 },
+ { 0x0702, 0xf869, 0x0000 },
+ { 0x8702, 0xf86c, 0x2000 },
+ { 0x0702, 0xf86b, 0x0000 },
+ { 0x0702, 0xf86d, 0x0000 },
+ { 0x8702, 0xf872, 0x3000 },
+ { 0x8702, 0xf870, 0x2000 },
+ { 0x0702, 0xf86f, 0x0000 },
+ { 0x0702, 0xf871, 0x0000 },
+ { 0x8702, 0xf874, 0x2000 },
+ { 0x0702, 0xf873, 0x0000 },
+ { 0x0702, 0xf875, 0x0000 },
+ { 0x8702, 0xf976, 0x9000 },
+ { 0x8702, 0xf8f6, 0x8000 },
+ { 0x8702, 0xf8b6, 0x7000 },
+ { 0x8702, 0xf896, 0x6000 },
+ { 0x8702, 0xf886, 0x5000 },
+ { 0x8702, 0xf87e, 0x4000 },
+ { 0x8702, 0xf87a, 0x3000 },
+ { 0x8702, 0xf878, 0x2000 },
+ { 0x0702, 0xf877, 0x0000 },
+ { 0x0702, 0xf879, 0x0000 },
+ { 0x8702, 0xf87c, 0x2000 },
+ { 0x0702, 0xf87b, 0x0000 },
+ { 0x0702, 0xf87d, 0x0000 },
+ { 0x8702, 0xf882, 0x3000 },
+ { 0x8702, 0xf880, 0x2000 },
+ { 0x0702, 0xf87f, 0x0000 },
+ { 0x0702, 0xf881, 0x0000 },
+ { 0x8702, 0xf884, 0x2000 },
+ { 0x0702, 0xf883, 0x0000 },
+ { 0x0702, 0xf885, 0x0000 },
+ { 0x8702, 0xf88e, 0x4000 },
+ { 0x8702, 0xf88a, 0x3000 },
+ { 0x8702, 0xf888, 0x2000 },
+ { 0x0702, 0xf887, 0x0000 },
+ { 0x0702, 0xf889, 0x0000 },
+ { 0x8702, 0xf88c, 0x2000 },
+ { 0x0702, 0xf88b, 0x0000 },
+ { 0x0702, 0xf88d, 0x0000 },
+ { 0x8702, 0xf892, 0x3000 },
+ { 0x8702, 0xf890, 0x2000 },
+ { 0x0702, 0xf88f, 0x0000 },
+ { 0x0702, 0xf891, 0x0000 },
+ { 0x8702, 0xf894, 0x2000 },
+ { 0x0702, 0xf893, 0x0000 },
+ { 0x0702, 0xf895, 0x0000 },
+ { 0x8702, 0xf8a6, 0x5000 },
+ { 0x8702, 0xf89e, 0x4000 },
+ { 0x8702, 0xf89a, 0x3000 },
+ { 0x8702, 0xf898, 0x2000 },
+ { 0x0702, 0xf897, 0x0000 },
+ { 0x0702, 0xf899, 0x0000 },
+ { 0x8702, 0xf89c, 0x2000 },
+ { 0x0702, 0xf89b, 0x0000 },
+ { 0x0702, 0xf89d, 0x0000 },
+ { 0x8702, 0xf8a2, 0x3000 },
+ { 0x8702, 0xf8a0, 0x2000 },
+ { 0x0702, 0xf89f, 0x0000 },
+ { 0x0702, 0xf8a1, 0x0000 },
+ { 0x8702, 0xf8a4, 0x2000 },
+ { 0x0702, 0xf8a3, 0x0000 },
+ { 0x0702, 0xf8a5, 0x0000 },
+ { 0x8702, 0xf8ae, 0x4000 },
+ { 0x8702, 0xf8aa, 0x3000 },
+ { 0x8702, 0xf8a8, 0x2000 },
+ { 0x0702, 0xf8a7, 0x0000 },
+ { 0x0702, 0xf8a9, 0x0000 },
+ { 0x8702, 0xf8ac, 0x2000 },
+ { 0x0702, 0xf8ab, 0x0000 },
+ { 0x0702, 0xf8ad, 0x0000 },
+ { 0x8702, 0xf8b2, 0x3000 },
+ { 0x8702, 0xf8b0, 0x2000 },
+ { 0x0702, 0xf8af, 0x0000 },
+ { 0x0702, 0xf8b1, 0x0000 },
+ { 0x8702, 0xf8b4, 0x2000 },
+ { 0x0702, 0xf8b3, 0x0000 },
+ { 0x0702, 0xf8b5, 0x0000 },
+ { 0x8702, 0xf8d6, 0x6000 },
+ { 0x8702, 0xf8c6, 0x5000 },
+ { 0x8702, 0xf8be, 0x4000 },
+ { 0x8702, 0xf8ba, 0x3000 },
+ { 0x8702, 0xf8b8, 0x2000 },
+ { 0x0702, 0xf8b7, 0x0000 },
+ { 0x0702, 0xf8b9, 0x0000 },
+ { 0x8702, 0xf8bc, 0x2000 },
+ { 0x0702, 0xf8bb, 0x0000 },
+ { 0x0702, 0xf8bd, 0x0000 },
+ { 0x8702, 0xf8c2, 0x3000 },
+ { 0x8702, 0xf8c0, 0x2000 },
+ { 0x0702, 0xf8bf, 0x0000 },
+ { 0x0702, 0xf8c1, 0x0000 },
+ { 0x8702, 0xf8c4, 0x2000 },
+ { 0x0702, 0xf8c3, 0x0000 },
+ { 0x0702, 0xf8c5, 0x0000 },
+ { 0x8702, 0xf8ce, 0x4000 },
+ { 0x8702, 0xf8ca, 0x3000 },
+ { 0x8702, 0xf8c8, 0x2000 },
+ { 0x0702, 0xf8c7, 0x0000 },
+ { 0x0702, 0xf8c9, 0x0000 },
+ { 0x8702, 0xf8cc, 0x2000 },
+ { 0x0702, 0xf8cb, 0x0000 },
+ { 0x0702, 0xf8cd, 0x0000 },
+ { 0x8702, 0xf8d2, 0x3000 },
+ { 0x8702, 0xf8d0, 0x2000 },
+ { 0x0702, 0xf8cf, 0x0000 },
+ { 0x0702, 0xf8d1, 0x0000 },
+ { 0x8702, 0xf8d4, 0x2000 },
+ { 0x0702, 0xf8d3, 0x0000 },
+ { 0x0702, 0xf8d5, 0x0000 },
+ { 0x8702, 0xf8e6, 0x5000 },
+ { 0x8702, 0xf8de, 0x4000 },
+ { 0x8702, 0xf8da, 0x3000 },
+ { 0x8702, 0xf8d8, 0x2000 },
+ { 0x0702, 0xf8d7, 0x0000 },
+ { 0x0702, 0xf8d9, 0x0000 },
+ { 0x8702, 0xf8dc, 0x2000 },
+ { 0x0702, 0xf8db, 0x0000 },
+ { 0x0702, 0xf8dd, 0x0000 },
+ { 0x8702, 0xf8e2, 0x3000 },
+ { 0x8702, 0xf8e0, 0x2000 },
+ { 0x0702, 0xf8df, 0x0000 },
+ { 0x0702, 0xf8e1, 0x0000 },
+ { 0x8702, 0xf8e4, 0x2000 },
+ { 0x0702, 0xf8e3, 0x0000 },
+ { 0x0702, 0xf8e5, 0x0000 },
+ { 0x8702, 0xf8ee, 0x4000 },
+ { 0x8702, 0xf8ea, 0x3000 },
+ { 0x8702, 0xf8e8, 0x2000 },
+ { 0x0702, 0xf8e7, 0x0000 },
+ { 0x0702, 0xf8e9, 0x0000 },
+ { 0x8702, 0xf8ec, 0x2000 },
+ { 0x0702, 0xf8eb, 0x0000 },
+ { 0x0702, 0xf8ed, 0x0000 },
+ { 0x8702, 0xf8f2, 0x3000 },
+ { 0x8702, 0xf8f0, 0x2000 },
+ { 0x0702, 0xf8ef, 0x0000 },
+ { 0x0702, 0xf8f1, 0x0000 },
+ { 0x8702, 0xf8f4, 0x2000 },
+ { 0x0702, 0xf8f3, 0x0000 },
+ { 0x0702, 0xf8f5, 0x0000 },
+ { 0x8702, 0xf936, 0x7000 },
+ { 0x8702, 0xf916, 0x6000 },
+ { 0x8702, 0xf906, 0x5000 },
+ { 0x8702, 0xf8fe, 0x4000 },
+ { 0x8702, 0xf8fa, 0x3000 },
+ { 0x8702, 0xf8f8, 0x2000 },
+ { 0x0702, 0xf8f7, 0x0000 },
+ { 0x0702, 0xf8f9, 0x0000 },
+ { 0x8702, 0xf8fc, 0x2000 },
+ { 0x0702, 0xf8fb, 0x0000 },
+ { 0x0702, 0xf8fd, 0x0000 },
+ { 0x8702, 0xf902, 0x3000 },
+ { 0x8702, 0xf900, 0x2000 },
+ { 0x0702, 0xf8ff, 0x0000 },
+ { 0x0702, 0xf901, 0x0000 },
+ { 0x8702, 0xf904, 0x2000 },
+ { 0x0702, 0xf903, 0x0000 },
+ { 0x0702, 0xf905, 0x0000 },
+ { 0x8702, 0xf90e, 0x4000 },
+ { 0x8702, 0xf90a, 0x3000 },
+ { 0x8702, 0xf908, 0x2000 },
+ { 0x0702, 0xf907, 0x0000 },
+ { 0x0702, 0xf909, 0x0000 },
+ { 0x8702, 0xf90c, 0x2000 },
+ { 0x0702, 0xf90b, 0x0000 },
+ { 0x0702, 0xf90d, 0x0000 },
+ { 0x8702, 0xf912, 0x3000 },
+ { 0x8702, 0xf910, 0x2000 },
+ { 0x0702, 0xf90f, 0x0000 },
+ { 0x0702, 0xf911, 0x0000 },
+ { 0x8702, 0xf914, 0x2000 },
+ { 0x0702, 0xf913, 0x0000 },
+ { 0x0702, 0xf915, 0x0000 },
+ { 0x8702, 0xf926, 0x5000 },
+ { 0x8702, 0xf91e, 0x4000 },
+ { 0x8702, 0xf91a, 0x3000 },
+ { 0x8702, 0xf918, 0x2000 },
+ { 0x0702, 0xf917, 0x0000 },
+ { 0x0702, 0xf919, 0x0000 },
+ { 0x8702, 0xf91c, 0x2000 },
+ { 0x0702, 0xf91b, 0x0000 },
+ { 0x0702, 0xf91d, 0x0000 },
+ { 0x8702, 0xf922, 0x3000 },
+ { 0x8702, 0xf920, 0x2000 },
+ { 0x0702, 0xf91f, 0x0000 },
+ { 0x0702, 0xf921, 0x0000 },
+ { 0x8702, 0xf924, 0x2000 },
+ { 0x0702, 0xf923, 0x0000 },
+ { 0x0702, 0xf925, 0x0000 },
+ { 0x8702, 0xf92e, 0x4000 },
+ { 0x8702, 0xf92a, 0x3000 },
+ { 0x8702, 0xf928, 0x2000 },
+ { 0x0702, 0xf927, 0x0000 },
+ { 0x0702, 0xf929, 0x0000 },
+ { 0x8702, 0xf92c, 0x2000 },
+ { 0x0702, 0xf92b, 0x0000 },
+ { 0x0702, 0xf92d, 0x0000 },
+ { 0x8702, 0xf932, 0x3000 },
+ { 0x8702, 0xf930, 0x2000 },
+ { 0x0702, 0xf92f, 0x0000 },
+ { 0x0702, 0xf931, 0x0000 },
+ { 0x8702, 0xf934, 0x2000 },
+ { 0x0702, 0xf933, 0x0000 },
+ { 0x0702, 0xf935, 0x0000 },
+ { 0x8702, 0xf956, 0x6000 },
+ { 0x8702, 0xf946, 0x5000 },
+ { 0x8702, 0xf93e, 0x4000 },
+ { 0x8702, 0xf93a, 0x3000 },
+ { 0x8702, 0xf938, 0x2000 },
+ { 0x0702, 0xf937, 0x0000 },
+ { 0x0702, 0xf939, 0x0000 },
+ { 0x8702, 0xf93c, 0x2000 },
+ { 0x0702, 0xf93b, 0x0000 },
+ { 0x0702, 0xf93d, 0x0000 },
+ { 0x8702, 0xf942, 0x3000 },
+ { 0x8702, 0xf940, 0x2000 },
+ { 0x0702, 0xf93f, 0x0000 },
+ { 0x0702, 0xf941, 0x0000 },
+ { 0x8702, 0xf944, 0x2000 },
+ { 0x0702, 0xf943, 0x0000 },
+ { 0x0702, 0xf945, 0x0000 },
+ { 0x8702, 0xf94e, 0x4000 },
+ { 0x8702, 0xf94a, 0x3000 },
+ { 0x8702, 0xf948, 0x2000 },
+ { 0x0702, 0xf947, 0x0000 },
+ { 0x0702, 0xf949, 0x0000 },
+ { 0x8702, 0xf94c, 0x2000 },
+ { 0x0702, 0xf94b, 0x0000 },
+ { 0x0702, 0xf94d, 0x0000 },
+ { 0x8702, 0xf952, 0x3000 },
+ { 0x8702, 0xf950, 0x2000 },
+ { 0x0702, 0xf94f, 0x0000 },
+ { 0x0702, 0xf951, 0x0000 },
+ { 0x8702, 0xf954, 0x2000 },
+ { 0x0702, 0xf953, 0x0000 },
+ { 0x0702, 0xf955, 0x0000 },
+ { 0x8702, 0xf966, 0x5000 },
+ { 0x8702, 0xf95e, 0x4000 },
+ { 0x8702, 0xf95a, 0x3000 },
+ { 0x8702, 0xf958, 0x2000 },
+ { 0x0702, 0xf957, 0x0000 },
+ { 0x0702, 0xf959, 0x0000 },
+ { 0x8702, 0xf95c, 0x2000 },
+ { 0x0702, 0xf95b, 0x0000 },
+ { 0x0702, 0xf95d, 0x0000 },
+ { 0x8702, 0xf962, 0x3000 },
+ { 0x8702, 0xf960, 0x2000 },
+ { 0x0702, 0xf95f, 0x0000 },
+ { 0x0702, 0xf961, 0x0000 },
+ { 0x8702, 0xf964, 0x2000 },
+ { 0x0702, 0xf963, 0x0000 },
+ { 0x0702, 0xf965, 0x0000 },
+ { 0x8702, 0xf96e, 0x4000 },
+ { 0x8702, 0xf96a, 0x3000 },
+ { 0x8702, 0xf968, 0x2000 },
+ { 0x0702, 0xf967, 0x0000 },
+ { 0x0702, 0xf969, 0x0000 },
+ { 0x8702, 0xf96c, 0x2000 },
+ { 0x0702, 0xf96b, 0x0000 },
+ { 0x0702, 0xf96d, 0x0000 },
+ { 0x8702, 0xf972, 0x3000 },
+ { 0x8702, 0xf970, 0x2000 },
+ { 0x0702, 0xf96f, 0x0000 },
+ { 0x0702, 0xf971, 0x0000 },
+ { 0x8702, 0xf974, 0x2000 },
+ { 0x0702, 0xf973, 0x0000 },
+ { 0x0702, 0xf975, 0x0000 },
+ { 0x810e, 0x0077, 0x9000 },
+ { 0x8702, 0xf9f6, 0x8000 },
+ { 0x8702, 0xf9b6, 0x7000 },
+ { 0x8702, 0xf996, 0x6000 },
+ { 0x8702, 0xf986, 0x5000 },
+ { 0x8702, 0xf97e, 0x4000 },
+ { 0x8702, 0xf97a, 0x3000 },
+ { 0x8702, 0xf978, 0x2000 },
+ { 0x0702, 0xf977, 0x0000 },
+ { 0x0702, 0xf979, 0x0000 },
+ { 0x8702, 0xf97c, 0x2000 },
+ { 0x0702, 0xf97b, 0x0000 },
+ { 0x0702, 0xf97d, 0x0000 },
+ { 0x8702, 0xf982, 0x3000 },
+ { 0x8702, 0xf980, 0x2000 },
+ { 0x0702, 0xf97f, 0x0000 },
+ { 0x0702, 0xf981, 0x0000 },
+ { 0x8702, 0xf984, 0x2000 },
+ { 0x0702, 0xf983, 0x0000 },
+ { 0x0702, 0xf985, 0x0000 },
+ { 0x8702, 0xf98e, 0x4000 },
+ { 0x8702, 0xf98a, 0x3000 },
+ { 0x8702, 0xf988, 0x2000 },
+ { 0x0702, 0xf987, 0x0000 },
+ { 0x0702, 0xf989, 0x0000 },
+ { 0x8702, 0xf98c, 0x2000 },
+ { 0x0702, 0xf98b, 0x0000 },
+ { 0x0702, 0xf98d, 0x0000 },
+ { 0x8702, 0xf992, 0x3000 },
+ { 0x8702, 0xf990, 0x2000 },
+ { 0x0702, 0xf98f, 0x0000 },
+ { 0x0702, 0xf991, 0x0000 },
+ { 0x8702, 0xf994, 0x2000 },
+ { 0x0702, 0xf993, 0x0000 },
+ { 0x0702, 0xf995, 0x0000 },
+ { 0x8702, 0xf9a6, 0x5000 },
+ { 0x8702, 0xf99e, 0x4000 },
+ { 0x8702, 0xf99a, 0x3000 },
+ { 0x8702, 0xf998, 0x2000 },
+ { 0x0702, 0xf997, 0x0000 },
+ { 0x0702, 0xf999, 0x0000 },
+ { 0x8702, 0xf99c, 0x2000 },
+ { 0x0702, 0xf99b, 0x0000 },
+ { 0x0702, 0xf99d, 0x0000 },
+ { 0x8702, 0xf9a2, 0x3000 },
+ { 0x8702, 0xf9a0, 0x2000 },
+ { 0x0702, 0xf99f, 0x0000 },
+ { 0x0702, 0xf9a1, 0x0000 },
+ { 0x8702, 0xf9a4, 0x2000 },
+ { 0x0702, 0xf9a3, 0x0000 },
+ { 0x0702, 0xf9a5, 0x0000 },
+ { 0x8702, 0xf9ae, 0x4000 },
+ { 0x8702, 0xf9aa, 0x3000 },
+ { 0x8702, 0xf9a8, 0x2000 },
+ { 0x0702, 0xf9a7, 0x0000 },
+ { 0x0702, 0xf9a9, 0x0000 },
+ { 0x8702, 0xf9ac, 0x2000 },
+ { 0x0702, 0xf9ab, 0x0000 },
+ { 0x0702, 0xf9ad, 0x0000 },
+ { 0x8702, 0xf9b2, 0x3000 },
+ { 0x8702, 0xf9b0, 0x2000 },
+ { 0x0702, 0xf9af, 0x0000 },
+ { 0x0702, 0xf9b1, 0x0000 },
+ { 0x8702, 0xf9b4, 0x2000 },
+ { 0x0702, 0xf9b3, 0x0000 },
+ { 0x0702, 0xf9b5, 0x0000 },
+ { 0x8702, 0xf9d6, 0x6000 },
+ { 0x8702, 0xf9c6, 0x5000 },
+ { 0x8702, 0xf9be, 0x4000 },
+ { 0x8702, 0xf9ba, 0x3000 },
+ { 0x8702, 0xf9b8, 0x2000 },
+ { 0x0702, 0xf9b7, 0x0000 },
+ { 0x0702, 0xf9b9, 0x0000 },
+ { 0x8702, 0xf9bc, 0x2000 },
+ { 0x0702, 0xf9bb, 0x0000 },
+ { 0x0702, 0xf9bd, 0x0000 },
+ { 0x8702, 0xf9c2, 0x3000 },
+ { 0x8702, 0xf9c0, 0x2000 },
+ { 0x0702, 0xf9bf, 0x0000 },
+ { 0x0702, 0xf9c1, 0x0000 },
+ { 0x8702, 0xf9c4, 0x2000 },
+ { 0x0702, 0xf9c3, 0x0000 },
+ { 0x0702, 0xf9c5, 0x0000 },
+ { 0x8702, 0xf9ce, 0x4000 },
+ { 0x8702, 0xf9ca, 0x3000 },
+ { 0x8702, 0xf9c8, 0x2000 },
+ { 0x0702, 0xf9c7, 0x0000 },
+ { 0x0702, 0xf9c9, 0x0000 },
+ { 0x8702, 0xf9cc, 0x2000 },
+ { 0x0702, 0xf9cb, 0x0000 },
+ { 0x0702, 0xf9cd, 0x0000 },
+ { 0x8702, 0xf9d2, 0x3000 },
+ { 0x8702, 0xf9d0, 0x2000 },
+ { 0x0702, 0xf9cf, 0x0000 },
+ { 0x0702, 0xf9d1, 0x0000 },
+ { 0x8702, 0xf9d4, 0x2000 },
+ { 0x0702, 0xf9d3, 0x0000 },
+ { 0x0702, 0xf9d5, 0x0000 },
+ { 0x8702, 0xf9e6, 0x5000 },
+ { 0x8702, 0xf9de, 0x4000 },
+ { 0x8702, 0xf9da, 0x3000 },
+ { 0x8702, 0xf9d8, 0x2000 },
+ { 0x0702, 0xf9d7, 0x0000 },
+ { 0x0702, 0xf9d9, 0x0000 },
+ { 0x8702, 0xf9dc, 0x2000 },
+ { 0x0702, 0xf9db, 0x0000 },
+ { 0x0702, 0xf9dd, 0x0000 },
+ { 0x8702, 0xf9e2, 0x3000 },
+ { 0x8702, 0xf9e0, 0x2000 },
+ { 0x0702, 0xf9df, 0x0000 },
+ { 0x0702, 0xf9e1, 0x0000 },
+ { 0x8702, 0xf9e4, 0x2000 },
+ { 0x0702, 0xf9e3, 0x0000 },
+ { 0x0702, 0xf9e5, 0x0000 },
+ { 0x8702, 0xf9ee, 0x4000 },
+ { 0x8702, 0xf9ea, 0x3000 },
+ { 0x8702, 0xf9e8, 0x2000 },
+ { 0x0702, 0xf9e7, 0x0000 },
+ { 0x0702, 0xf9e9, 0x0000 },
+ { 0x8702, 0xf9ec, 0x2000 },
+ { 0x0702, 0xf9eb, 0x0000 },
+ { 0x0702, 0xf9ed, 0x0000 },
+ { 0x8702, 0xf9f2, 0x3000 },
+ { 0x8702, 0xf9f0, 0x2000 },
+ { 0x0702, 0xf9ef, 0x0000 },
+ { 0x0702, 0xf9f1, 0x0000 },
+ { 0x8702, 0xf9f4, 0x2000 },
+ { 0x0702, 0xf9f3, 0x0000 },
+ { 0x0702, 0xf9f5, 0x0000 },
+ { 0x810e, 0x0037, 0x7000 },
+ { 0x8702, 0xfa16, 0x6000 },
+ { 0x8702, 0xfa06, 0x5000 },
+ { 0x8702, 0xf9fe, 0x4000 },
+ { 0x8702, 0xf9fa, 0x3000 },
+ { 0x8702, 0xf9f8, 0x2000 },
+ { 0x0702, 0xf9f7, 0x0000 },
+ { 0x0702, 0xf9f9, 0x0000 },
+ { 0x8702, 0xf9fc, 0x2000 },
+ { 0x0702, 0xf9fb, 0x0000 },
+ { 0x0702, 0xf9fd, 0x0000 },
+ { 0x8702, 0xfa02, 0x3000 },
+ { 0x8702, 0xfa00, 0x2000 },
+ { 0x0702, 0xf9ff, 0x0000 },
+ { 0x0702, 0xfa01, 0x0000 },
+ { 0x8702, 0xfa04, 0x2000 },
+ { 0x0702, 0xfa03, 0x0000 },
+ { 0x0702, 0xfa05, 0x0000 },
+ { 0x8702, 0xfa0e, 0x4000 },
+ { 0x8702, 0xfa0a, 0x3000 },
+ { 0x8702, 0xfa08, 0x2000 },
+ { 0x0702, 0xfa07, 0x0000 },
+ { 0x0702, 0xfa09, 0x0000 },
+ { 0x8702, 0xfa0c, 0x2000 },
+ { 0x0702, 0xfa0b, 0x0000 },
+ { 0x0702, 0xfa0d, 0x0000 },
+ { 0x8702, 0xfa12, 0x3000 },
+ { 0x8702, 0xfa10, 0x2000 },
+ { 0x0702, 0xfa0f, 0x0000 },
+ { 0x0702, 0xfa11, 0x0000 },
+ { 0x8702, 0xfa14, 0x2000 },
+ { 0x0702, 0xfa13, 0x0000 },
+ { 0x0702, 0xfa15, 0x0000 },
+ { 0x810e, 0x0027, 0x5000 },
+ { 0x810e, 0x0001, 0x4000 },
+ { 0x8702, 0xfa1a, 0x3000 },
+ { 0x8702, 0xfa18, 0x2000 },
+ { 0x0702, 0xfa17, 0x0000 },
+ { 0x0702, 0xfa19, 0x0000 },
+ { 0x8702, 0xfa1c, 0x2000 },
+ { 0x0702, 0xfa1b, 0x0000 },
+ { 0x0702, 0xfa1d, 0x0000 },
+ { 0x810e, 0x0023, 0x3000 },
+ { 0x810e, 0x0021, 0x2000 },
+ { 0x010e, 0x0020, 0x0000 },
+ { 0x010e, 0x0022, 0x0000 },
+ { 0x810e, 0x0025, 0x2000 },
+ { 0x010e, 0x0024, 0x0000 },
+ { 0x010e, 0x0026, 0x0000 },
+ { 0x810e, 0x002f, 0x4000 },
+ { 0x810e, 0x002b, 0x3000 },
+ { 0x810e, 0x0029, 0x2000 },
+ { 0x010e, 0x0028, 0x0000 },
+ { 0x010e, 0x002a, 0x0000 },
+ { 0x810e, 0x002d, 0x2000 },
+ { 0x010e, 0x002c, 0x0000 },
+ { 0x010e, 0x002e, 0x0000 },
+ { 0x810e, 0x0033, 0x3000 },
+ { 0x810e, 0x0031, 0x2000 },
+ { 0x010e, 0x0030, 0x0000 },
+ { 0x010e, 0x0032, 0x0000 },
+ { 0x810e, 0x0035, 0x2000 },
+ { 0x010e, 0x0034, 0x0000 },
+ { 0x010e, 0x0036, 0x0000 },
+ { 0x810e, 0x0057, 0x6000 },
+ { 0x810e, 0x0047, 0x5000 },
+ { 0x810e, 0x003f, 0x4000 },
+ { 0x810e, 0x003b, 0x3000 },
+ { 0x810e, 0x0039, 0x2000 },
+ { 0x010e, 0x0038, 0x0000 },
+ { 0x010e, 0x003a, 0x0000 },
+ { 0x810e, 0x003d, 0x2000 },
+ { 0x010e, 0x003c, 0x0000 },
+ { 0x010e, 0x003e, 0x0000 },
+ { 0x810e, 0x0043, 0x3000 },
+ { 0x810e, 0x0041, 0x2000 },
+ { 0x010e, 0x0040, 0x0000 },
+ { 0x010e, 0x0042, 0x0000 },
+ { 0x810e, 0x0045, 0x2000 },
+ { 0x010e, 0x0044, 0x0000 },
+ { 0x010e, 0x0046, 0x0000 },
+ { 0x810e, 0x004f, 0x4000 },
+ { 0x810e, 0x004b, 0x3000 },
+ { 0x810e, 0x0049, 0x2000 },
+ { 0x010e, 0x0048, 0x0000 },
+ { 0x010e, 0x004a, 0x0000 },
+ { 0x810e, 0x004d, 0x2000 },
+ { 0x010e, 0x004c, 0x0000 },
+ { 0x010e, 0x004e, 0x0000 },
+ { 0x810e, 0x0053, 0x3000 },
+ { 0x810e, 0x0051, 0x2000 },
+ { 0x010e, 0x0050, 0x0000 },
+ { 0x010e, 0x0052, 0x0000 },
+ { 0x810e, 0x0055, 0x2000 },
+ { 0x010e, 0x0054, 0x0000 },
+ { 0x010e, 0x0056, 0x0000 },
+ { 0x810e, 0x0067, 0x5000 },
+ { 0x810e, 0x005f, 0x4000 },
+ { 0x810e, 0x005b, 0x3000 },
+ { 0x810e, 0x0059, 0x2000 },
+ { 0x010e, 0x0058, 0x0000 },
+ { 0x010e, 0x005a, 0x0000 },
+ { 0x810e, 0x005d, 0x2000 },
+ { 0x010e, 0x005c, 0x0000 },
+ { 0x010e, 0x005e, 0x0000 },
+ { 0x810e, 0x0063, 0x3000 },
+ { 0x810e, 0x0061, 0x2000 },
+ { 0x010e, 0x0060, 0x0000 },
+ { 0x010e, 0x0062, 0x0000 },
+ { 0x810e, 0x0065, 0x2000 },
+ { 0x010e, 0x0064, 0x0000 },
+ { 0x010e, 0x0066, 0x0000 },
+ { 0x810e, 0x006f, 0x4000 },
+ { 0x810e, 0x006b, 0x3000 },
+ { 0x810e, 0x0069, 0x2000 },
+ { 0x010e, 0x0068, 0x0000 },
+ { 0x010e, 0x006a, 0x0000 },
+ { 0x810e, 0x006d, 0x2000 },
+ { 0x010e, 0x006c, 0x0000 },
+ { 0x010e, 0x006e, 0x0000 },
+ { 0x810e, 0x0073, 0x3000 },
+ { 0x810e, 0x0071, 0x2000 },
+ { 0x010e, 0x0070, 0x0000 },
+ { 0x010e, 0x0072, 0x0000 },
+ { 0x810e, 0x0075, 0x2000 },
+ { 0x010e, 0x0074, 0x0000 },
+ { 0x010e, 0x0076, 0x0000 },
+ { 0x8c0e, 0x0177, 0x8000 },
+ { 0x8c0e, 0x0137, 0x7000 },
+ { 0x8c0e, 0x0117, 0x6000 },
+ { 0x8c0e, 0x0107, 0x5000 },
+ { 0x810e, 0x007f, 0x4000 },
+ { 0x810e, 0x007b, 0x3000 },
+ { 0x810e, 0x0079, 0x2000 },
+ { 0x010e, 0x0078, 0x0000 },
+ { 0x010e, 0x007a, 0x0000 },
+ { 0x810e, 0x007d, 0x2000 },
+ { 0x010e, 0x007c, 0x0000 },
+ { 0x010e, 0x007e, 0x0000 },
+ { 0x8c0e, 0x0103, 0x3000 },
+ { 0x8c0e, 0x0101, 0x2000 },
+ { 0x0c0e, 0x0100, 0x0000 },
+ { 0x0c0e, 0x0102, 0x0000 },
+ { 0x8c0e, 0x0105, 0x2000 },
+ { 0x0c0e, 0x0104, 0x0000 },
+ { 0x0c0e, 0x0106, 0x0000 },
+ { 0x8c0e, 0x010f, 0x4000 },
+ { 0x8c0e, 0x010b, 0x3000 },
+ { 0x8c0e, 0x0109, 0x2000 },
+ { 0x0c0e, 0x0108, 0x0000 },
+ { 0x0c0e, 0x010a, 0x0000 },
+ { 0x8c0e, 0x010d, 0x2000 },
+ { 0x0c0e, 0x010c, 0x0000 },
+ { 0x0c0e, 0x010e, 0x0000 },
+ { 0x8c0e, 0x0113, 0x3000 },
+ { 0x8c0e, 0x0111, 0x2000 },
+ { 0x0c0e, 0x0110, 0x0000 },
+ { 0x0c0e, 0x0112, 0x0000 },
+ { 0x8c0e, 0x0115, 0x2000 },
+ { 0x0c0e, 0x0114, 0x0000 },
+ { 0x0c0e, 0x0116, 0x0000 },
+ { 0x8c0e, 0x0127, 0x5000 },
+ { 0x8c0e, 0x011f, 0x4000 },
+ { 0x8c0e, 0x011b, 0x3000 },
+ { 0x8c0e, 0x0119, 0x2000 },
+ { 0x0c0e, 0x0118, 0x0000 },
+ { 0x0c0e, 0x011a, 0x0000 },
+ { 0x8c0e, 0x011d, 0x2000 },
+ { 0x0c0e, 0x011c, 0x0000 },
+ { 0x0c0e, 0x011e, 0x0000 },
+ { 0x8c0e, 0x0123, 0x3000 },
+ { 0x8c0e, 0x0121, 0x2000 },
+ { 0x0c0e, 0x0120, 0x0000 },
+ { 0x0c0e, 0x0122, 0x0000 },
+ { 0x8c0e, 0x0125, 0x2000 },
+ { 0x0c0e, 0x0124, 0x0000 },
+ { 0x0c0e, 0x0126, 0x0000 },
+ { 0x8c0e, 0x012f, 0x4000 },
+ { 0x8c0e, 0x012b, 0x3000 },
+ { 0x8c0e, 0x0129, 0x2000 },
+ { 0x0c0e, 0x0128, 0x0000 },
+ { 0x0c0e, 0x012a, 0x0000 },
+ { 0x8c0e, 0x012d, 0x2000 },
+ { 0x0c0e, 0x012c, 0x0000 },
+ { 0x0c0e, 0x012e, 0x0000 },
+ { 0x8c0e, 0x0133, 0x3000 },
+ { 0x8c0e, 0x0131, 0x2000 },
+ { 0x0c0e, 0x0130, 0x0000 },
+ { 0x0c0e, 0x0132, 0x0000 },
+ { 0x8c0e, 0x0135, 0x2000 },
+ { 0x0c0e, 0x0134, 0x0000 },
+ { 0x0c0e, 0x0136, 0x0000 },
+ { 0x8c0e, 0x0157, 0x6000 },
+ { 0x8c0e, 0x0147, 0x5000 },
+ { 0x8c0e, 0x013f, 0x4000 },
+ { 0x8c0e, 0x013b, 0x3000 },
+ { 0x8c0e, 0x0139, 0x2000 },
+ { 0x0c0e, 0x0138, 0x0000 },
+ { 0x0c0e, 0x013a, 0x0000 },
+ { 0x8c0e, 0x013d, 0x2000 },
+ { 0x0c0e, 0x013c, 0x0000 },
+ { 0x0c0e, 0x013e, 0x0000 },
+ { 0x8c0e, 0x0143, 0x3000 },
+ { 0x8c0e, 0x0141, 0x2000 },
+ { 0x0c0e, 0x0140, 0x0000 },
+ { 0x0c0e, 0x0142, 0x0000 },
+ { 0x8c0e, 0x0145, 0x2000 },
+ { 0x0c0e, 0x0144, 0x0000 },
+ { 0x0c0e, 0x0146, 0x0000 },
+ { 0x8c0e, 0x014f, 0x4000 },
+ { 0x8c0e, 0x014b, 0x3000 },
+ { 0x8c0e, 0x0149, 0x2000 },
+ { 0x0c0e, 0x0148, 0x0000 },
+ { 0x0c0e, 0x014a, 0x0000 },
+ { 0x8c0e, 0x014d, 0x2000 },
+ { 0x0c0e, 0x014c, 0x0000 },
+ { 0x0c0e, 0x014e, 0x0000 },
+ { 0x8c0e, 0x0153, 0x3000 },
+ { 0x8c0e, 0x0151, 0x2000 },
+ { 0x0c0e, 0x0150, 0x0000 },
+ { 0x0c0e, 0x0152, 0x0000 },
+ { 0x8c0e, 0x0155, 0x2000 },
+ { 0x0c0e, 0x0154, 0x0000 },
+ { 0x0c0e, 0x0156, 0x0000 },
+ { 0x8c0e, 0x0167, 0x5000 },
+ { 0x8c0e, 0x015f, 0x4000 },
+ { 0x8c0e, 0x015b, 0x3000 },
+ { 0x8c0e, 0x0159, 0x2000 },
+ { 0x0c0e, 0x0158, 0x0000 },
+ { 0x0c0e, 0x015a, 0x0000 },
+ { 0x8c0e, 0x015d, 0x2000 },
+ { 0x0c0e, 0x015c, 0x0000 },
+ { 0x0c0e, 0x015e, 0x0000 },
+ { 0x8c0e, 0x0163, 0x3000 },
+ { 0x8c0e, 0x0161, 0x2000 },
+ { 0x0c0e, 0x0160, 0x0000 },
+ { 0x0c0e, 0x0162, 0x0000 },
+ { 0x8c0e, 0x0165, 0x2000 },
+ { 0x0c0e, 0x0164, 0x0000 },
+ { 0x0c0e, 0x0166, 0x0000 },
+ { 0x8c0e, 0x016f, 0x4000 },
+ { 0x8c0e, 0x016b, 0x3000 },
+ { 0x8c0e, 0x0169, 0x2000 },
+ { 0x0c0e, 0x0168, 0x0000 },
+ { 0x0c0e, 0x016a, 0x0000 },
+ { 0x8c0e, 0x016d, 0x2000 },
+ { 0x0c0e, 0x016c, 0x0000 },
+ { 0x0c0e, 0x016e, 0x0000 },
+ { 0x8c0e, 0x0173, 0x3000 },
+ { 0x8c0e, 0x0171, 0x2000 },
+ { 0x0c0e, 0x0170, 0x0000 },
+ { 0x0c0e, 0x0172, 0x0000 },
+ { 0x8c0e, 0x0175, 0x2000 },
+ { 0x0c0e, 0x0174, 0x0000 },
+ { 0x0c0e, 0x0176, 0x0000 },
+ { 0x8c0e, 0x01b7, 0x7000 },
+ { 0x8c0e, 0x0197, 0x6000 },
+ { 0x8c0e, 0x0187, 0x5000 },
+ { 0x8c0e, 0x017f, 0x4000 },
+ { 0x8c0e, 0x017b, 0x3000 },
+ { 0x8c0e, 0x0179, 0x2000 },
+ { 0x0c0e, 0x0178, 0x0000 },
+ { 0x0c0e, 0x017a, 0x0000 },
+ { 0x8c0e, 0x017d, 0x2000 },
+ { 0x0c0e, 0x017c, 0x0000 },
+ { 0x0c0e, 0x017e, 0x0000 },
+ { 0x8c0e, 0x0183, 0x3000 },
+ { 0x8c0e, 0x0181, 0x2000 },
+ { 0x0c0e, 0x0180, 0x0000 },
+ { 0x0c0e, 0x0182, 0x0000 },
+ { 0x8c0e, 0x0185, 0x2000 },
+ { 0x0c0e, 0x0184, 0x0000 },
+ { 0x0c0e, 0x0186, 0x0000 },
+ { 0x8c0e, 0x018f, 0x4000 },
+ { 0x8c0e, 0x018b, 0x3000 },
+ { 0x8c0e, 0x0189, 0x2000 },
+ { 0x0c0e, 0x0188, 0x0000 },
+ { 0x0c0e, 0x018a, 0x0000 },
+ { 0x8c0e, 0x018d, 0x2000 },
+ { 0x0c0e, 0x018c, 0x0000 },
+ { 0x0c0e, 0x018e, 0x0000 },
+ { 0x8c0e, 0x0193, 0x3000 },
+ { 0x8c0e, 0x0191, 0x2000 },
+ { 0x0c0e, 0x0190, 0x0000 },
+ { 0x0c0e, 0x0192, 0x0000 },
+ { 0x8c0e, 0x0195, 0x2000 },
+ { 0x0c0e, 0x0194, 0x0000 },
+ { 0x0c0e, 0x0196, 0x0000 },
+ { 0x8c0e, 0x01a7, 0x5000 },
+ { 0x8c0e, 0x019f, 0x4000 },
+ { 0x8c0e, 0x019b, 0x3000 },
+ { 0x8c0e, 0x0199, 0x2000 },
+ { 0x0c0e, 0x0198, 0x0000 },
+ { 0x0c0e, 0x019a, 0x0000 },
+ { 0x8c0e, 0x019d, 0x2000 },
+ { 0x0c0e, 0x019c, 0x0000 },
+ { 0x0c0e, 0x019e, 0x0000 },
+ { 0x8c0e, 0x01a3, 0x3000 },
+ { 0x8c0e, 0x01a1, 0x2000 },
+ { 0x0c0e, 0x01a0, 0x0000 },
+ { 0x0c0e, 0x01a2, 0x0000 },
+ { 0x8c0e, 0x01a5, 0x2000 },
+ { 0x0c0e, 0x01a4, 0x0000 },
+ { 0x0c0e, 0x01a6, 0x0000 },
+ { 0x8c0e, 0x01af, 0x4000 },
+ { 0x8c0e, 0x01ab, 0x3000 },
+ { 0x8c0e, 0x01a9, 0x2000 },
+ { 0x0c0e, 0x01a8, 0x0000 },
+ { 0x0c0e, 0x01aa, 0x0000 },
+ { 0x8c0e, 0x01ad, 0x2000 },
+ { 0x0c0e, 0x01ac, 0x0000 },
+ { 0x0c0e, 0x01ae, 0x0000 },
+ { 0x8c0e, 0x01b3, 0x3000 },
+ { 0x8c0e, 0x01b1, 0x2000 },
+ { 0x0c0e, 0x01b0, 0x0000 },
+ { 0x0c0e, 0x01b2, 0x0000 },
+ { 0x8c0e, 0x01b5, 0x2000 },
+ { 0x0c0e, 0x01b4, 0x0000 },
+ { 0x0c0e, 0x01b6, 0x0000 },
+ { 0x8c0e, 0x01d7, 0x6000 },
+ { 0x8c0e, 0x01c7, 0x5000 },
+ { 0x8c0e, 0x01bf, 0x4000 },
+ { 0x8c0e, 0x01bb, 0x3000 },
+ { 0x8c0e, 0x01b9, 0x2000 },
+ { 0x0c0e, 0x01b8, 0x0000 },
+ { 0x0c0e, 0x01ba, 0x0000 },
+ { 0x8c0e, 0x01bd, 0x2000 },
+ { 0x0c0e, 0x01bc, 0x0000 },
+ { 0x0c0e, 0x01be, 0x0000 },
+ { 0x8c0e, 0x01c3, 0x3000 },
+ { 0x8c0e, 0x01c1, 0x2000 },
+ { 0x0c0e, 0x01c0, 0x0000 },
+ { 0x0c0e, 0x01c2, 0x0000 },
+ { 0x8c0e, 0x01c5, 0x2000 },
+ { 0x0c0e, 0x01c4, 0x0000 },
+ { 0x0c0e, 0x01c6, 0x0000 },
+ { 0x8c0e, 0x01cf, 0x4000 },
+ { 0x8c0e, 0x01cb, 0x3000 },
+ { 0x8c0e, 0x01c9, 0x2000 },
+ { 0x0c0e, 0x01c8, 0x0000 },
+ { 0x0c0e, 0x01ca, 0x0000 },
+ { 0x8c0e, 0x01cd, 0x2000 },
+ { 0x0c0e, 0x01cc, 0x0000 },
+ { 0x0c0e, 0x01ce, 0x0000 },
+ { 0x8c0e, 0x01d3, 0x3000 },
+ { 0x8c0e, 0x01d1, 0x2000 },
+ { 0x0c0e, 0x01d0, 0x0000 },
+ { 0x0c0e, 0x01d2, 0x0000 },
+ { 0x8c0e, 0x01d5, 0x2000 },
+ { 0x0c0e, 0x01d4, 0x0000 },
+ { 0x0c0e, 0x01d6, 0x0000 },
+ { 0x8c0e, 0x01e7, 0x5000 },
+ { 0x8c0e, 0x01df, 0x4000 },
+ { 0x8c0e, 0x01db, 0x3000 },
+ { 0x8c0e, 0x01d9, 0x2000 },
+ { 0x0c0e, 0x01d8, 0x0000 },
+ { 0x0c0e, 0x01da, 0x0000 },
+ { 0x8c0e, 0x01dd, 0x2000 },
+ { 0x0c0e, 0x01dc, 0x0000 },
+ { 0x0c0e, 0x01de, 0x0000 },
+ { 0x8c0e, 0x01e3, 0x3000 },
+ { 0x8c0e, 0x01e1, 0x2000 },
+ { 0x0c0e, 0x01e0, 0x0000 },
+ { 0x0c0e, 0x01e2, 0x0000 },
+ { 0x8c0e, 0x01e5, 0x2000 },
+ { 0x0c0e, 0x01e4, 0x0000 },
+ { 0x0c0e, 0x01e6, 0x0000 },
+ { 0x8c0e, 0x01ef, 0x4000 },
+ { 0x8c0e, 0x01eb, 0x3000 },
+ { 0x8c0e, 0x01e9, 0x2000 },
+ { 0x0c0e, 0x01e8, 0x0000 },
+ { 0x0c0e, 0x01ea, 0x0000 },
+ { 0x8c0e, 0x01ed, 0x2000 },
+ { 0x0c0e, 0x01ec, 0x0000 },
+ { 0x0c0e, 0x01ee, 0x0000 },
+ { 0x830f, 0xfffd, 0x2000 },
+ { 0x030f, 0x0000, 0x0000 },
+ { 0x0310, 0x0000, 0x1000 },
+ { 0x0310, 0xfffd, 0x0000 },
+};
diff --git a/ucptypetable.c b/ucptypetable.c
new file mode 100644
index 0000000..129529b
--- /dev/null
+++ b/ucptypetable.c
@@ -0,0 +1,93 @@
+/*************************************************
+* Perl-Compatible Regular Expressions *
+*************************************************/
+
+/*
+This is a library of functions to support regular expressions whose syntax
+and semantics are as close as possible to those of the Perl 5 language. See
+the file Tech.Notes for some information on the internals.
+
+Written by: Philip Hazel <ph10@cam.ac.uk>
+
+ Copyright (c) 1997-2004 University of Cambridge
+
+-----------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-----------------------------------------------------------------------------
+*/
+
+/* This module contains a table for translating Unicode property names into
+code values for the ucp_findchar function. It is in a separate module so that
+it can be included both in the main pcre library, and into pcretest (for
+printing out internals). */
+
+typedef struct {
+ const char *name;
+ int value;
+} ucp_type_table;
+
+static ucp_type_table utt[] = {
+ { "C", 128 + ucp_C },
+ { "Cc", ucp_Cc },
+ { "Cf", ucp_Cf },
+ { "Cn", ucp_Cn },
+ { "Co", ucp_Co },
+ { "Cs", ucp_Cs },
+ { "L", 128 + ucp_L },
+ { "Ll", ucp_Ll },
+ { "Lm", ucp_Lm },
+ { "Lo", ucp_Lo },
+ { "Lt", ucp_Lt },
+ { "Lu", ucp_Lu },
+ { "M", 128 + ucp_M },
+ { "Mc", ucp_Mc },
+ { "Me", ucp_Me },
+ { "Mn", ucp_Mn },
+ { "N", 128 + ucp_N },
+ { "Nd", ucp_Nd },
+ { "Nl", ucp_Nl },
+ { "No", ucp_No },
+ { "P", 128 + ucp_P },
+ { "Pc", ucp_Pc },
+ { "Pd", ucp_Pd },
+ { "Pe", ucp_Pe },
+ { "Pf", ucp_Pf },
+ { "Pi", ucp_Pi },
+ { "Po", ucp_Po },
+ { "Ps", ucp_Ps },
+ { "S", 128 + ucp_S },
+ { "Sc", ucp_Sc },
+ { "Sk", ucp_Sk },
+ { "Sm", ucp_Sm },
+ { "So", ucp_So },
+ { "Z", 128 + ucp_Z },
+ { "Zl", ucp_Zl },
+ { "Zp", ucp_Zp },
+ { "Zs", ucp_Zs }
+};
+
+/* End of ucptypetable.c */