summaryrefslogtreecommitdiff
path: root/biblio/bibtex
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/bibtex')
-rw-r--r--biblio/bibtex/bibtex-x/00bibtex8-history.txt75
-rw-r--r--biblio/bibtex/bibtex-x/00bibtex8-readme.txt905
-rw-r--r--biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bbl44
-rw-r--r--biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bib48
-rw-r--r--biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.pdfbin0 -> 51623 bytes
-rw-r--r--biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.tex73
-rw-r--r--biblio/bibtex/bibtex-x/COPYING339
-rw-r--r--biblio/bibtex/bibtex-x/ChangeLog572
-rw-r--r--biblio/bibtex/bibtex-x/Makefile.am185
-rw-r--r--biblio/bibtex/bibtex-x/Makefile.in1798
-rw-r--r--biblio/bibtex/bibtex-x/README48
-rw-r--r--biblio/bibtex/bibtex-x/ac/bibtex-x.ac18
-rw-r--r--biblio/bibtex/bibtex-x/ac/withenable.ac8
-rw-r--r--biblio/bibtex/bibtex-x/aclocal.m41197
-rw-r--r--biblio/bibtex/bibtex-x/bibtex-1.c3048
-rw-r--r--biblio/bibtex/bibtex-x/bibtex-2.c3986
-rw-r--r--biblio/bibtex/bibtex-x/bibtex-3.c3482
-rw-r--r--biblio/bibtex/bibtex-x/bibtex-4.c2871
-rw-r--r--biblio/bibtex/bibtex-x/bibtex.c517
-rw-r--r--biblio/bibtex/bibtex-x/bibtex.h1521
-rw-r--r--biblio/bibtex/bibtex-x/bibtex8.1119
-rw-r--r--biblio/bibtex/bibtex-x/bibtexu.1117
-rw-r--r--biblio/bibtex/bibtex-x/config.h.in167
-rwxr-xr-xbiblio/bibtex/bibtex-x/configure24
-rw-r--r--biblio/bibtex/bibtex-x/configure.ac46
-rwxr-xr-xbiblio/bibtex/bibtex-x/configure.texk23239
-rw-r--r--biblio/bibtex/bibtex-x/csf/88591lat.csf313
-rw-r--r--biblio/bibtex/bibtex-x/csf/88591sca.csf283
-rw-r--r--biblio/bibtex/bibtex-x/csf/ascii.csf242
-rw-r--r--biblio/bibtex/bibtex-x/csf/cp437lat.csf281
-rw-r--r--biblio/bibtex/bibtex-x/csf/cp850lat.csf272
-rw-r--r--biblio/bibtex/bibtex-x/csf/cp850sca.csf279
-rw-r--r--biblio/bibtex/bibtex-x/csf/cp866rus.csf296
-rw-r--r--biblio/bibtex/bibtex-x/csf/csfile.txt318
-rw-r--r--biblio/bibtex/bibtex-x/datatype.h179
-rw-r--r--biblio/bibtex/bibtex-x/dos-dj.mak349
-rw-r--r--biblio/bibtex/bibtex-x/dos-emx.mak345
-rw-r--r--biblio/bibtex/bibtex-x/file_id.diz13
-rw-r--r--biblio/bibtex/bibtex-x/gblprocs.h436
-rw-r--r--biblio/bibtex/bibtex-x/gblvars.h474
-rw-r--r--biblio/bibtex/bibtex-x/os2.mak341
-rw-r--r--biblio/bibtex/bibtex-x/sysdep.h305
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtex8-char.test48
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtex8-sort.test36
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtex8.test17
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtex8u-mem.test77
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtexu-basic.test25
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtexu-char.test54
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtexu-range.test22
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtexu-sort.test36
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtexu-yannis.test23
-rwxr-xr-xbiblio/bibtex/bibtex-x/tests/bibtexu.test17
-rw-r--r--biblio/bibtex/bibtex-x/tests/casea.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/casea.bbl12
-rw-r--r--biblio/bibtex/bibtex-x/tests/caseu.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/caseu.bbl52
-rw-r--r--biblio/bibtex/bibtex-x/tests/chara.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/chara.bbl20
-rw-r--r--biblio/bibtex/bibtex-x/tests/charu.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/charu.bbl53
-rw-r--r--biblio/bibtex/bibtex-x/tests/exampl.bbl212
-rw-r--r--biblio/bibtex/bibtex-x/tests/iscjku.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/iscjku.bbl63
-rw-r--r--biblio/bibtex/bibtex-x/tests/ltnbib.bib67
-rw-r--r--biblio/bibtex/bibtex-x/tests/mlgbib.bib159
-rw-r--r--biblio/bibtex/bibtex-x/tests/namea.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/namea.bbl32
-rw-r--r--biblio/bibtex/bibtex-x/tests/nameu.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/nameu.bbl85
-rw-r--r--biblio/bibtex/bibtex-x/tests/perioda.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/perioda.bbl18
-rw-r--r--biblio/bibtex/bibtex-x/tests/periodu.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/periodu.bbl64
-rw-r--r--biblio/bibtex/bibtex-x/tests/sort.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/sort1.bbl15
-rw-r--r--biblio/bibtex/bibtex-x/tests/sort1.csf275
-rw-r--r--biblio/bibtex/bibtex-x/tests/sort2.bbl15
-rw-r--r--biblio/bibtex/bibtex-x/tests/sort2.csf114
-rw-r--r--biblio/bibtex/bibtex-x/tests/sort3.bbl15
-rw-r--r--biblio/bibtex/bibtex-x/tests/sort3.csf281
-rw-r--r--biblio/bibtex/bibtex-x/tests/sortu-az.bbl27
-rw-r--r--biblio/bibtex/bibtex-x/tests/sortu-da.bbl27
-rw-r--r--biblio/bibtex/bibtex-x/tests/sortu-en.bbl27
-rw-r--r--biblio/bibtex/bibtex-x/tests/sortu-fi.bbl27
-rw-r--r--biblio/bibtex/bibtex-x/tests/sortu-tr.bbl27
-rw-r--r--biblio/bibtex/bibtex-x/tests/sortu.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/substra.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/substra.bbl334
-rw-r--r--biblio/bibtex/bibtex-x/tests/substru.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/substru.bbl885
-rw-r--r--biblio/bibtex/bibtex-x/tests/testcase.bst44
-rw-r--r--biblio/bibtex/bibtex-x/tests/testcasea.bib8
-rw-r--r--biblio/bibtex/bibtex-x/tests/testcaseu.bib48
-rw-r--r--biblio/bibtex/bibtex-x/tests/testchar.bst40
-rw-r--r--biblio/bibtex/bibtex-x/tests/testchara.bib18
-rw-r--r--biblio/bibtex/bibtex-x/tests/testcharu.bib56
-rw-r--r--biblio/bibtex/bibtex-x/tests/testdata.bib43
-rw-r--r--biblio/bibtex/bibtex-x/tests/testiscjk.bst47
-rw-r--r--biblio/bibtex/bibtex-x/tests/testiscjku.bib66
-rw-r--r--biblio/bibtex/bibtex-x/tests/testname.bst64
-rw-r--r--biblio/bibtex/bibtex-x/tests/testperiod.bst40
-rw-r--r--biblio/bibtex/bibtex-x/tests/testperioda.bib8
-rw-r--r--biblio/bibtex/bibtex-x/tests/testperiodu.bib33
-rw-r--r--biblio/bibtex/bibtex-x/tests/testsortu.bib27
-rw-r--r--biblio/bibtex/bibtex-x/tests/teststyle.bst36
-rw-r--r--biblio/bibtex/bibtex-x/tests/testsubstr.bst91
-rw-r--r--biblio/bibtex/bibtex-x/tests/testsubstra.bib21
-rw-r--r--biblio/bibtex/bibtex-x/tests/testsubstru.bib59
-rw-r--r--biblio/bibtex/bibtex-x/tests/testtxtprfx.bst45
-rw-r--r--biblio/bibtex/bibtex-x/tests/testwidth.bst38
-rw-r--r--biblio/bibtex/bibtex-x/tests/testwidtha.bib155
-rw-r--r--biblio/bibtex/bibtex-x/tests/testwidthu.bib378
-rw-r--r--biblio/bibtex/bibtex-x/tests/txtprfxa.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/txtprfxa.bbl58
-rw-r--r--biblio/bibtex/bibtex-x/tests/txtprfxu.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/txtprfxu.bbl149
-rw-r--r--biblio/bibtex/bibtex-x/tests/ubasic.aux6
-rw-r--r--biblio/bibtex/bibtex-x/tests/ubasic.bbl8
-rw-r--r--biblio/bibtex/bibtex-x/tests/ubasic.bib13
-rw-r--r--biblio/bibtex/bibtex-x/tests/ubasic.tex15
-rw-r--r--biblio/bibtex/bibtex-x/tests/urange.aux6
-rw-r--r--biblio/bibtex/bibtex-x/tests/urange.bbl8
-rw-r--r--biblio/bibtex/bibtex-x/tests/urange.bib13
-rw-r--r--biblio/bibtex/bibtex-x/tests/urange.tex15
-rw-r--r--biblio/bibtex/bibtex-x/tests/widtha.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/widtha.bbl158
-rw-r--r--biblio/bibtex/bibtex-x/tests/widthu.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/widthu.bbl417
-rw-r--r--biblio/bibtex/bibtex-x/tests/yannis.aux4
-rw-r--r--biblio/bibtex/bibtex-x/tests/yannis.bbl49
-rw-r--r--biblio/bibtex/bibtex-x/tests/yannis.bib56
-rw-r--r--biblio/bibtex/bibtex-x/unix.mak418
-rw-r--r--biblio/bibtex/bibtex-x/utils.c2741
-rw-r--r--biblio/bibtex/bibtex-x/utils.h140
-rw-r--r--biblio/bibtex/bibtex-x/version.h96
135 files changed, 58237 insertions, 0 deletions
diff --git a/biblio/bibtex/bibtex-x/00bibtex8-history.txt b/biblio/bibtex/bibtex-x/00bibtex8-history.txt
new file mode 100644
index 0000000000..1f51c20c20
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/00bibtex8-history.txt
@@ -0,0 +1,75 @@
+******************************************************************************
+FILE: HISTORY
+******************************************************************************
+
+
+8-Bit BibTeX CHANGE HISTORY
+---------------------------
+
+(For later changes, see the ./ChangeLog file.)
+
+v4.00 29-April-2022 TANAKA Takuji
+ - Added operators bitwise AND "&" and bitwise OR "|" to built-in
+ functions in style files.
+
+v3.80 16-April-2022 TANAKA Takuji
+ - Supported Latin-1 characters by built-in function width$ in style
+ files.
+ - Accepted characters over ASCII by built-in function int.to.chr$
+ in style files.
+
+31-May-2005 Karl Berry
+ - Applied utils.c patch from Arne J\"orgensen for space character
+ sorting weight, sent to tex-live@tug.org 31 May 2005 15:52:07 +0200.
+
+v3.71 18-August-1996 Niel Kempson <snowyowl.co.uk>
+
+ - Changed default environment variables used for consistency across OS
+ implementations and better compatibility with emTeX. Now uses
+ BIBINPUT, BSTINPUT & CSFINPUT as the default environment variables
+ for .bib, .bst and .csf files respectively.
+
+ "Hard-coded" fallback search paths can now be specified for use if
+ the chosen environment variables are not defined. The environment
+ variables and the fallback paths are now defined in the Makefile
+ rather than in sysdep.h.
+
+ Thanks to Lars Frellesen <frelle@math-tech.dk> for spotting the
+ inconsistency and his Makefile suggestions.
+
+ - Fixed bug in handling of CSF \order section. Any alpha or numeric
+ character may now be specified in the sort order - previously only
+ alphas were allowed and BibTeX didn't correctly sort citations like
+ Knuth89, Knuth92 because the digits were ignored during sort
+ comparisons. Corrected example CS files to include digits in the
+ sort orders. Thanks to Andrei Grinkevitch <grin@bals.usr.pu.ru> for
+ spotting this one.
+
+ - Included the first contributed CS file: for codepage 866 with a Russian
+ sorting order. Thanks again to Andrei Grinkevitch <grin@bals.usr.pu.ru>.
+
+ - Added the missing 'd' to the sort section of 88591lat.csf. Thanks to
+ Tim Geisler <geisler@pms.informatik.uni-muenchen.de>.
+
+ - Removed CS files from all but the bt371csf.zip distribution file.
+
+ - Clarified 00readme.txt, specifically sections dealing with environment
+ variables and CS files. Moved 8-bit section describing CS files into
+ a separate csfile.txt because some people were having problems when
+ they tried to view the 8-bit 00readme.txt file on a 7-bit Unix
+ system. Thanks to Ken Smith <kgs@maths.uq.oz.au> for highlighting
+ this issue.
+
+ - Reinstated the -W option (--wolfgang did work). Thanks to Thomas
+ Plagwitz <tplagiwt@ix.urz.uni-heidelberg.de> for spotting this.
+
+ - Fixed str_lookup() to work with a hash size > 32767.
+
+ - Created new HISTORY file.
+
+
+v3.70 29-Apr-1996 Niel Kempson <snowyowl.co.uk>
+
+ Final documentation & cosmetic changes for official release 3.70.
+
+******************************** END OF FILE *******************************
diff --git a/biblio/bibtex/bibtex-x/00bibtex8-readme.txt b/biblio/bibtex/bibtex-x/00bibtex8-readme.txt
new file mode 100644
index 0000000000..f680979d94
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/00bibtex8-readme.txt
@@ -0,0 +1,905 @@
+******************************************************************************
+FILE: 00readme.txt
+******************************************************************************
+
+
+An 8-bit Implementation of BibTeX 0.99 with a Very Large Capacity
+=================================================================
+
+
+Contents
+--------
+
+ 0. Abstract
+
+ 1. Introduction
+ 1.1 8-bit Character Set Support
+ 1.2 Big and Customisable Capacity
+
+ 2. Distribution Kits and Where to Find Them
+ 2.1 bt371dos.zip
+ 2.2 bt371os2.zip
+ 2.3 bt371src.zip
+ 2.4 bt371csf.zip
+
+ 3. Running 8-bit BibTeX
+ 3.1 Command line options
+ 3.2 Finding Files
+ 3.3 Environment variables
+
+ 4. The Codepage and Sort Order (CS) File
+ 4.1 CS file syntax
+ 4.2 Testing a CS file
+ 4.3 Sharing your CS file
+
+ 5. Building 8-bit BibTeX from Source Code
+ 5.1 DOS
+ 5.2 OS/2
+ 5.3 Unix
+ 5.4 VMS
+
+ 6. Reporting Bugs and Requesting Improvements
+ 6.1 Contacting the authors
+ 6.2 Further enhancements
+
+ 7. Frequently Asked Questions
+
+ 8. Acknowledgements
+
+ 9. BibTeX Use and Copying Conditions
+
+ 10. Change Log
+
+
+
+0. Abstract
+-----------
+
+This abstract is in a format suitable for inclusion in BBS description files
+(file_id.diz):
+
+ (BibTeX8) "big" BibTeX with full 8-bit support
+
+ An enhanced, portable C version of BibTeX.
+ Enhanced by conversion to "big" (32-bit)
+ capacity, addition of run-time selectable
+ capacity and 8-bit support extensions.
+ National character set and sorting order
+ are controlled by an external configuration
+ file. Various examples are included.
+ Freeware / GNU Public Licence.
+
+ Niel Kempson <kempson@snowyowl.co.uk>
+ Alejandro Aguilar-Sierra <asierra@servidor.unam.mx>
+
+
+
+1. Introduction
+----------------
+
+8-bit BibTeX is an enhanced, portable C version of BibTeX 0.99. It has been
+enhanced in these areas:
+
+ - conversion to "big" (32-bit) capacity
+ - capacity selectable at run time
+ - flexible support for non-English languages using 8-bit character sets
+ - well matched to LateX2e and its "inputenc" package
+
+Oren Patashnik, the creator of BibTeX, is working on a new BibTeX 1.0 that
+will be a modern implementation supporting large capacities and non-English
+languages (see TUGboat, pages 269--274, volume 15, number 3, September 1994).
+He is content for this version to be released, but hopes that people will
+eventually migrate to BibTeX 1.0 when it is released. Its release date is
+uncertain at the moment.
+
+
+ 1.1 Big and Customisable Capacity
+ ---------------------------------
+
+ The original 16-bit code has been rewritten to use 32-bit data types
+ wherever possible. The result is a very large potential capacity. To
+ increase flexibility and to avoid BibTeX allocating all available memory,
+ the capacity of some key arrays can be set on the command line.
+
+ For convenience, several standard capacities have been predefined:
+ default, big and huge. The key capacities are set as follows:
+
+ Parameter Standard --big --huge --wolfgang
+ ------------------------------------------------------------
+ Hash_Prime 4,253 8,501 16,319 30,011
+ Hash_Size 5,000 10,000 19,000 35,000
+ Max_Cites 750 2,000 5,000 7,500
+ Max_Ent_Ints 3,000 4,000 5,000 7,500
+ Max_Ent_Strs 3,000 6,000 10,000 10,000
+ Max_Fields 17,250 30,000 85,000 125,000
+ Max_Strings 4,000 10,000 19,000 30,000
+ Pool_Size 65,530 130,000 500,000 750,000
+ Wiz_Fn_Space 3,000 6,000 10,000 10,000
+
+ If these parameter names mean nothing to you, don't worry, you've
+ probably never exceeded BibTeX's capacity.
+
+
+ 1.2 8-bit Character Set Support
+ -------------------------------
+
+ BibTeX now accepts 8-bit characters in its input files and writes 8-bit
+ characters to its output files. The character set is defined by an
+ external configuration text file - the codepage and sort order ("CS")
+ file.
+
+ The sort order can be defined for the language and character set. For
+ example, in German, the control sequence \"o (o umlaut) should be sorted
+ as if it were the letter "o", but after ordinary "o", leading to this
+ order:
+
+ Trofer, Tr\"ofer, Trufer
+
+ However, in Swedish, \"o (o umlaut) is treated as the 29th letter of the
+ alphabet and these entries would be sorted as:
+
+ Trofer, Trufer, Tr\"ofer
+
+ The sorting order is defined by an external configuration text file -
+ the codepage and sort order ("CS") file.
+
+ This version of BibTeX, coupled with LaTeX2e and its "inputenc" package
+ provide a robust means of handling 8-bit character sets.
+
+
+
+2. Distribution Kits and Where to Find Them
+--------------------------------------------
+
+Note by TeX Live team - This section is an old description by the original
+author Niel Kempson. Currently (2022) BibTeX8 is shipped with TL.
+
+8-bit BibTeX is distributed as a set of ZIP files created by the freely
+available implementation of ZIP by the Info-ZIP project. The files have all
+been compressed using the new "deflation" algorithm and can only be
+compressed using the Info-ZIP implementation of UNZIP, or PKUNZIP v2.04 or
+later. Ancient versions of PKUNZIP (e.g. v1.10) will not be able to unZIP
+the files and will complain with a message like: "PKUNZIP: Warning! I don't
+know how to handle: xxxxxxxx.xxx".
+
+The "official" version of 8-bit BibTeX will be available by anonymous FTP
+from the Comprehensive TeX Archive Network (CTAN) sites:
+
+ ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+ ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+
+There are four main ZIP files in the complete 8-bit BibTeX distribution:
+
+ bt###dos.zip bt###os2.zip bt###src.zip bt###csf.zip
+
+where ### is the latest version, currently 371 (for v3.71). Their contents
+and purpose are summarised below.
+
+
+ 2.1 bt371dos.zip
+ ----------------
+
+ The binary + documentation kit for MS-DOS users. It contains all you
+ need to run 8-bit BibTeX under MS-DOS, but no source code. The
+ executable program uses a 32-bit virtual memory extender called EMX to
+ run in 32-bit mode. emTeX is probably the most comprehensive and capable
+ implementation of TeX for DOS & OS/2 and it too uses EMX.
+
+ The kit contains these files:
+
+ 00readme.txt this file
+ COPYING GNU copyright notice
+ HISTORY summary of changes made so far
+ csfile.txt documentation for codepage and sort order
+ ("CS") files
+ msdos/bibtex.exe the 8-bit BibTeX program
+
+ EMX uses the VCPI mechanism to run in 32-bit mode and will therefore not
+ run in a DOS session under MS Windows. It will run under native DOS and
+ in a DOS session under OS/2. The EMX extender (v0.9b) is bound into
+ bibtex.exe, but you can always obtain the latest version of EMX by
+ anaonymous FTP from:
+
+ ftp.uni-stuttgart.de:/pub/systems/os2/emx-0.9b
+ ftp.leo.org:/pub/comp/os/os2/gnu/emx+gcc
+
+ If you want to run this version of BibTeX in a DOS session under MS
+ Windows, you have two choices:
+
+ - get and install the RSX extender. RSX is a DPMI-compliant DOS
+ extender which is more or less compatible with emx. It is compatible
+ with EMX, DPMI servers and DOS sessions under MS Windows. The
+ official site for the latest version of RSX is
+
+ ftp.uni-bielefeld.de:/pub/systems/msdos/misc
+
+ but you can also get it by anonymous FTP from the same CTAN sites as
+ BibTeX:
+
+ ftp.tex.ac.uk:/tex-archive/systems/msdos/dpmigcc
+ ftp.uni-stuttgart.de:/tex-archive/systems/msdos
+
+ The files to look for are dpmigcc5.zip and rsxwin3a.zip
+
+ If you use the emTeX implementation of TeX and friends, it may be
+ more convenient to get the "emxrsx" package - it's a minimal version
+ of RSX to allow emTeX to run in DOS sessions under MS Windows. It is
+ available by anonymous FTP from CTAN sites in the emTeX directory:
+
+ ftp.tex.ac.uk:/tex-archive/systems/msdos/emtex
+ ftp.uni-stuttgart.de:/tex-archive/systems/msdos/emtex
+
+ On the other hand, if you're using emTeX under MS Windows, you've
+ probably solved the problem already :-)
+
+ - get the djgpp GNU C compiler and DOS extender package and build
+ BibTeX from the source code. The master site for djgpp is
+ ftp.delorie.com.
+
+
+ 2.2 bt371os2.zip
+ ----------------
+
+ The binary + documentation kit for OS/2 2.x and 3.x users. It contains
+ all you need to run 8-bit BibTeX under OS/2, but no source code. The
+ executable program was developed using the EMX development system and has
+ its run-time library linked in - there is no need to install EMX just to
+ run BibTeX. If you already have EMX installed want a smaller executable,
+ you'll need to rebuild from sources.
+
+ The kit contains these files:
+
+ 00readme.txt this file
+ COPYING GNU copyright notice
+ HISTORY summary of changes made so far
+ csfile.txt documentation for codepage and sort order
+ ("CS") files
+ os2/bibtex.exe the 8-bit BibTeX program
+
+
+ 2.3 bt371src.zip
+ ----------------
+
+ The complete source code kit to build 8-bit BibTeX on all supported
+ systems. The source code is known to build easily under MS-DOS and OS/2
+ if you have the GNU C Compiler installed. The source code is quite
+ portable and contains almost no system-specific items - it should very
+ easily port to Unix or VMS. If you decide to port 8-bit BibTeX to
+ another platform, please let me know so that I can include your efforts
+ in the master distribution.
+
+ The source kit contains these files:
+
+ 00readme.txt this file
+ COPYING GNU copyright notice
+ HISTORY summary of changes made so far
+ csfile.txt documentation for codepage and sort order
+ ("CS") files
+
+ bibtex.h definition of global parameters and limits
+ datatype.h definition of custom data types
+ gblprocs.h forward declaration of all global functions
+ gblvars.h declaration of global variables
+ sysdep.h determine the compiler and environment
+
+ bibtex.c main source including system dependent code
+ bibtex-1.c part 1 of the system independent functions
+ bibtex-2.c part 2 of the system independent functions
+ bibtex-3.c part 3 of the system independent functions
+ bibtex-4.c part 4 of the system independent functions
+
+ utils.c nearly all of the enhancement code
+ utils.h
+
+ getopt.c the GNU getopt package for command line parsing
+ getopt1.c
+ getopt.h
+
+ dos-emx.mak makefile for EMX GNU C under MS-DOS
+ dos-dj.mak makefile for DJGPP GNU C under MS-DOS
+ os2.mak makefile for EMX GNU C under OS/2
+ unix.mak makefile for Unix variants
+
+
+ 2.4 bt371csf.zip
+ ----------------
+
+ The character set and sorting order is now defined by an external
+ configuration text file - the codepage and sort order ("CS") file. A
+ number of example files have been included with the master distribution,
+ but I hope that others will be written by 8-bit BibTeX users in due
+ course. To avoid the need to reissue to the master ZIP files every time
+ a new CS file is created, CS files will also be available as a separate
+ kit.
+
+ At the time of writing, the kit contains these CS files:
+
+ File Name Character Set Sorting Order
+ -------------------------------------------------------------
+ 88591lat.csf ISO 8859-1 Latin
+ 88591sca.csf ISO 8859-1 Scandinavean
+ ascii.csf US ASCII English
+ cp437lat.csf IBM codepage 437 Latin
+ cp850lat.csf IBM codepage 850 Latin
+ cp850sca.csf IBM codepage 850 Scandinavean
+ cp866rus.csf IBM codepage 866 Russian
+
+
+
+3. Running 8-bit BibTeX
+------------------------
+
+Running 8-bit BibTeX is superficially the same as running the original
+BibTeX, but there are quite a number of command line options that may be
+specified.
+
+
+ 3.1 Command line options
+ ------------------------
+
+ The command line syntax is:
+
+ bibtex [options] aux-file
+
+ where "aux-file" is the name of the TeX auxilliary output file to be
+ processed by BibTeX. The trailing ".aux" may be omitted.
+
+ Valid options are:
+
+ -? --help
+
+ Display some brief help text and then exit.
+
+ -7 --traditional
+
+ Operate in the original 7-bit mode. A CS file is not read:
+ only 7-bit ASCII characters are supported and sorting is
+ strictly by ASCII code value.
+
+ BibTeX will not allow you to specify --traditional with
+ either the --8bit or --csfile option.
+
+ -8 --8bit
+
+ Force 8-bit mode. A CS file is not read. All 8-bit
+ characters (code > 127) are treated as letters and sorting is
+ strictly by code page value.
+
+ BibTeX will not allow you to specify --8bit with either the
+ --csfile or --traditional option.
+
+ -c --csfile FILE
+
+ Read FILE as the BibTeX codepage and sort definition (CS)
+ file. The CS file is used to define the 8-bit character set
+ used by BibTeX and the order in which those characters should
+ be sorted.
+
+ BibTeX will not allow you to specify --csfile with either
+ the --8bit or --traditional option.
+
+ -d --debug TYPE
+
+ Report debugging information to the BibTeX log file and the
+ standard error device. The value TYPE controls the type of
+ debugging information reported. TYPE can be one or more of:
+
+ all - all debugging categories
+ csf - CS file processing
+ io - file I/O
+ mem - memory allocation and capacity
+ misc - other debugging information
+ search - path searching and file location
+
+ It is possible that your version of BibTeX has been compiled
+ with debugging support disabled. If this is the case, BibTeX
+ will issue a warning message when --debug is specified.
+
+ -s --statistics
+
+ Report internal statistics to the BibTeX log file.
+
+ It is possible that your version of BibTeX has been compiled
+ with statistics support disabled. If this is the case,
+ BibTeX will issue a warning message when --statistics is
+ specified.
+
+ -t --trace
+
+ Report execution tracing to the BibTeX log file.
+
+ It is possible that your version of BibTeX has been compiled
+ with tracing support disabled. If this is the case, BibTeX
+ will issue a warning message when --trace is specified.
+
+ -v --version
+
+ Report BibTeX's version and then exit.
+
+ -B --big
+
+ Set BibTeX's capacity to "big". The size of particular
+ parameters will be set as follows (the default sizes are
+ shown in brackets):
+
+ Hash_Prime 8,501 (4,253)
+ Hash_Size 10,000 (5,000)
+ Max_Cites 2,000 (750)
+ Max_Ent_Ints 4,000 (3,000)
+ Max_Ent_Strs 6,000 (3,000)
+ Max_Fields 30,000 (17,250)
+ Max_Strings 10,000 (4,000)
+ Pool_Size 130,000 (65,530)
+ Wiz_Fn_Space 6,000 (3,000)
+
+ -H --huge
+
+ Set BibTeX's capacity to "huge". The size of particular
+ parameters will be set as follows (the default sizes are
+ shown in brackets):
+
+ Hash_Prime 16,319 (4,253)
+ Hash_Size 19,000 (5,000)
+ Max_Cites 5,000 (750)
+ Max_Ent_Ints 5,000 (3,000)
+ Max_Ent_Strs 10,000 (3,000)
+ Max_Fields 85,000 (17,250)
+ Max_Strings 19,000 (4,000)
+ Pool_Size 500,000 (65,530)
+ Wiz_Fn_Space 10,000 (3,000)
+
+ -W --wolfgang
+
+ Set BibTeX's capacity to "really huge" - required for
+ Wolfgang's PhD thesis. The size of particular parameters
+ will be set as follows (the default sizes are shown in
+ brackets):
+
+ Hash_Prime 30,011 (4,253)
+ Hash_Size 35,000 (5,000)
+ Max_Cites 7,500 (750)
+ Max_Ent_Ints 7,500 (3,000)
+ Max_Ent_Strs 10,000 (3,000)
+ Max_Fields 125,000 (17,250)
+ Max_Strings 30,000 (4,000)
+ Pool_Size 750,000 (65,530)
+ Wiz_Fn_Space 10,000 (3,000)
+
+ -M --min_crossrefs ##
+
+ Set min_crossrefs to ##. If an item is cross-referenced at
+ least ## times, it will be placed in the list of citations,
+ even if it is not explicitly \cited as a reference. The
+ default value is 2.
+
+ --mcites ##
+
+ Allow a maximum of ## distinct \cites in the .aux files.
+ This number must be less than the maximum number of strings
+ (settable with --mstrings).
+
+ --mentints ##
+
+ Allow a maximum of ## integer entries in the .bib databases.
+
+ --mentstrs ##
+
+ Allow a maximum of ## string entries in the .bib databases.
+
+ --mfields ##
+
+ Allow a maximum of ## fields in the .bib databases.
+
+ --mpool ##
+
+ Set the string pool to ## bytes.
+
+ --mstrings ##
+
+ Allow a maximum of ## unique strings. This number must be
+ less than the hash size and greater than the maximum number
+ of \cites (settable with --mcites).
+
+ --mwizfuns ##
+
+ Allow a maximum of ## wizard functions.
+
+
+ 3.2 Finding Files
+ -----------------
+
+ 8-bit BibTeX looks for input files in three different steps as summarised
+ below. As soon as 8-bit BibTeX finds a matching file, it stops looking
+ (i.e. only the first matching file is used). In order, the three steps
+ are:
+
+ - look for the file in the current working directory.
+
+ - if the appropriate environment variable has been set (e.g. BSTINPUT),
+ treat its value as a list of directories to be searched. Look for the
+ file in each of the directories in the list.
+
+ - if the appropriate environment variable (e.g. BSTINPUT) has not been
+ set, use a predefined "fallback" path as a list of directories to be
+ searched.
+
+ A search list consists of a number of directories separated by a delimiter
+ (semicolons for MS-DOS & OS/2, colons for Unix and commas for VMS).
+
+ As distributed, the strategy adopted by 8-bit BibTeX for opening specific
+ file types is
+
+ .aux files
+
+ - look in current working directory only
+
+ .bib (BibTeX database) files
+
+ - look in current working directory
+ - search along path defined by environment variable BIBINPUT
+ - search along fallback path (empty by default)
+
+ .bst (BibTeX style) files
+
+ - look in current working directory
+ - search along path defined by environment variable BSTINPUT
+ - search along fallback path (empty by default)
+
+ .csf (CS) files
+
+ - look in current working directory
+ - search along path defined by environment variable CSFINPUT
+ - search along fallback path (empty by default)
+
+ The name of the CS file is determined using a number of steps
+
+ - use value of --csfile command line option,
+ - use value of the BIBTEX_CSFILE environment variable
+ - use fallback CS file name (empty by default)
+
+ Output files
+
+ All of BibTeX's output (.bbl, .blg) files are created in the
+ current working directory.
+
+
+ The environment variables and fallback paths used by 8-bit BibTeX are
+ defined in the Makefile and set at compile time, but you can determine
+ what your version of 8-bit BibTeX is using by starting it with the command
+ line
+
+ bibtex --debug=search non-existent-file-name
+
+ The debugging output (written to the standard error device) should look
+ something like:
+
+ D-SCH: Search strategy for .aux files:
+ D-SCH: search path environment variable: <undefined>
+ D-SCH: fallback search path: <undefined>
+ D-SCH: Search strategy for .bib files:
+ D-SCH: search path environment variable: BIBINPUT
+ D-SCH: BIBINPUT value: e:\usr\c\bibtex
+ D-SCH: fallback search path: e:/usr/latex/bibtex;e:/emtex/bibtex/bib
+ D-SCH: Search strategy for .bst files:
+ D-SCH: search path environment variable: BSTINPUT
+ D-SCH: BSTINPUT value: <undefined>
+ D-SCH: fallback search path: e:/usr/latex/bibtex;e:/emtex/bibtex/bst
+ D-SCH: Search strategy for .csf files:
+ D-SCH: search path environment variable: CSFINPUT
+ D-SCH: CSFINPUT value: e:\usr\c\bibtex
+ D-SCH: fallback search path: e:/usr/latex/bibtex;e:/emtex/bibtex/csf
+ D-SCH: Default .csf file:
+ D-SCH: file name environment variable: BIBTEX_CSFILE
+ D-SCH: BIBTEX_CSFILE value: e:/emtex/texinput/cp437lat.csf
+ D-SCH: fallback file name: cp850lat.csf
+
+ The current working directory will always be searched, even if the
+ environment variable and fallback paths have not been specified (e.g. as
+ for .aux files in the above example).
+
+ If the default behaviour is not to your liking, you will need to rebuild
+ 8-bit BibTeX from its source code (see section 5).
+
+
+ 3.3 Environment variables
+ -------------------------
+
+ As supplied, 8-bit BibTeX uses a number of environment variables:
+
+ BIBINPUT search path for database (.bib) files
+ BSTINPUT search path for style (.bst) files
+ CSFINPUT search path for CS (.csf) files
+ BIBTEX_CSFILE the default CS file
+ TMP directory for virtual memory files (DOS only)
+
+ The name of the environment variables used may be changed (in the
+ Makefile) when BibTeX is built. See the appropriate Makefile for your
+ environment and remember that you can use the "--debug=search" command
+ line option to reveal the environment variables used by your version of
+ 8-bit BibTeX (see previous section).
+
+ All environment variables used as a search list (BIBINPUT, BSTINPUT &
+ CSFINPUT) can be set to a number of separate directories, separated
+ by a delimiter (semicolons for MS-DOS & OS/2, colons for Unix and
+ commas for VMS).
+
+ Examples for MS-DOS and OS/2 are:
+
+ SET BIBINPUT=e:\data\tex\bibtex;c:\emtex\bibtex\bib
+ SET BSTINPUT=e:\data\tex\bibtex;c:\emtex\bibtex\bst
+ SET CSFINPUT=e:\data\tex\bibtex
+ SET BIBTEX_CSFILE=c:\data\tex\bibtex\cp850lat.csf
+
+ Examples for Unix:
+
+ setenv BIBINPUT /u/kempson/bibtex:/usr/local/lib/tex/bib-files
+ setenv BSTINPUT /u/kempson/bibtex:/usr/local/lib/tex/bst-files
+ setenv CSFINPUT /u/kempson/bibtex:/usr/local/lib/tex/csf-files
+ setenv BIBTEX_CSFILE /usr/local/lib/tex/csf-files/88591lat.csf
+
+ Examples for VMS:
+
+ define BIBINPUT "sys$login:,disk$tex:[bibtex.bib-files]"
+ define BSTINPUT "sys$login:,disk$tex:[bibtex.bst-files]"
+ define CSFINPUT "sys$login:,disk$tex:[bibtex.csf-files]"
+ define BIBTEX_CSFILE disk$tex:[bibtex.csf-files]88951lat.csf
+
+
+
+4. The Codepage and Sort Order (CS) File
+-----------------------------------------
+
+The Codepage and Sort definition (CS) file is used to define the 8-bit
+character set used by BibTeX and the order in which those characters should
+be sorted.
+
+Please see the associated csfile.txt for details of CS file syntax and
+guidelines for testing new CS files. NOTE: it contains many 8-bit characters
+and may cause problems if you try to display or print it on 7-bit systems
+(e.g. older versions of Unix).
+
+
+
+5. Building 8-bit BibTeX from Source Code
+------------------------------------------
+
+The 8-bit BibTeX source is fairly standard ANSI C with almost no system
+specific code. It should therefore be relatively straightforward to build it
+in a different environment if you have GNU C or an ANSI C compiler.
+
+A number of Makefiles have been provided to build 8-bit BibTeX from source
+code:
+
+ dos-emx.mak makefile for EMX GNU C under MS-DOS
+ dos-dj.mak makefile for DJGPP GNU C under MS-DOS
+ os2.mak makefile for EMX GNU C under OS/2
+ unix.mak makefile for Unix variants
+
+Whichever Makefile you use, you need to check that the "local definitions"
+are appropriate for your system. There are three small sections to
+customise:
+
+ BibTeX File Searching
+
+ - specifies the names of environment variables and paths to be used when
+ searching for input files
+
+ Utility Programs
+
+ - specifies the names of programs to be used for simple functions
+
+ Compiler/Linker
+
+ - specifies compiler/linker command lines
+
+If your system is already supported it should not be necessary to modify any
+part of the Makefile except these three sections.
+
+Brief notes for specific environments follow.
+
+
+ 5.1 DOS
+ -------
+
+ 8-bit BibTeX has been built and tested using the EMX and DJGPP
+ development environments. Both are based on GNU C with their own
+ custom 32-bit extenders.
+
+
+ 5.2 OS/2
+ --------
+
+ The EMX development environment is supported.
+
+
+ 5.3 Unix
+ --------
+
+ Most variants of Unix supporting GNU C should be capable of building
+ and running 8-bit BibTeX.
+
+
+ 5.4 VMS
+ -------
+
+ The authors have not built or tested this version of 8-bit BibTeX on
+ VMS, but see no reason why it shouldn't compile and run successfully
+ if GNU C is installed on the system. (The only system-dependent code
+ in 8-bit BibTeX concerns file opening and provision has been made for
+ VMS file modes.)
+
+ If you have GNU C installed, we recommend starting with a copy of the
+ unix.mak Makefile and customising it for VMS. If you successfully
+ get 8-bit BibTeX running under VMS, *please* let the authors know how
+ you did it.
+
+
+
+6. Reporting Bugs and Requesting Improvements
+----------------------------------------------
+
+Where possible, we will try to fix bugs and will consider requests for
+improvements. If you are reporting a bug, please provide as much information
+as possible (e.g. operating environment, 8-bit BibTeX version and source,
+exact error message and the offending files if possible).
+
+The most common message is of the form "BibTeX doesn't work on XXXX". This
+is generally of no help in debugging a problem so please provide as much
+information as possible.
+
+
+ 6.1 Contacting the authors
+ --------------------------
+
+ The authors are
+
+ Niel Kempson
+ Snowy Owl Systems Limited, Cheltenham, England
+ E-mail: kempson@snowyowl.co.uk
+
+ and
+
+ Alejandro Aguilar-Sierra
+ Centro de Ciencias de la Atm\'osfera,
+ Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+ E-mail: asierra@servidor.unam.mx
+
+ Niel Kempson did the original manual translation from WEB to C,
+ conversion to "big" (32-bit) capacity, addition of run-time selectable
+ capacity and part of the 8-bit support extensions. He intermittently
+ maintains the master version of the source code.
+
+ Alejandro Aguilar-Sierra should take the credit for most of the 8-bit
+ function provided by this version of BibTeX.
+
+
+ 6.2 Further Enhancements
+ ------------------------
+
+ No program is perfect and this version of BibTeX is no exception to that
+ rule. Some known weaknesses are:
+
+ - the 8-bit support is currently limited to single 8-bit characters.
+ TeX control sequences (e.g. \'{A}) are not interpreted and treated in
+ the same way as the equivalent 8-bit character.
+
+ - it is not possible to redefine the lower 128 character codes. This
+ excludes support for character codes not built on ASCII (e.g. EBCDIC).
+
+ Future enhancements will be considered, but it may be time to build a
+ "proper" system built from the ground up to handle 8-bit character
+ sets. BibTeX 1.0 promises to be this system.
+
+ Other items that ought to be on the "to do" list:
+
+ - path searching using Karl Berry's kpathsea package
+ - TeX format documentation
+ - Unix man pages
+ - OS/2 .inf format documentation
+ - native 32-bit support for MS Windows 95/NT
+
+
+
+7. Frequently Asked Questions
+------------------------------
+
+When I run the DOS version 8-bit BibTeX in a DOS window under MS Windows 3.x,
+95 or NT, I get the message "DPMI not supported".
+
+ 8-bit BibTeX has been built using the EMX development environment. It
+ uses the VCPI mechanism to run in 32-bit mode and will therefore not run
+ in a DOS session under MS Windows.
+
+ If you want to run this version of 8-bit BibTeX in a DOS session under
+ MS Windows, you have two choices:
+
+ - get and install the RSX extender
+ - rebuild from sources using a suitable compiler
+
+ See section 2.1 for more information.
+
+
+8-bit BibTeX doesn't find my .bib/.bst files. How can I find out where it
+looks for them?
+
+ See section 3.2
+
+
+There isn't a CS file for my character set / language sorting order
+
+ Creating a new CS file should be relatively straightforward. If you'd
+ like to try, please contact the authors for assistance. If you don't
+ need assistance, *please* let us have a copy of your finished CS file so
+ we can include it in the distribution.
+
+
+
+8. Acknowledgement
+-------------------
+
+The original BibTeX was written by Oren Patashnik using Donald Knuth's WEB
+system. This format produces a PASCAL program for execution and a TeX
+documented version of the source code. This program started as a (manual)
+translation of the WEB source into C.
+
+
+
+9. BibTeX Use and Copying Conditions
+-------------------------------------
+
+The programs currently being distributed that relate to 8-bit BibTeX are
+*free*; this means that everyone may use them and redistribute them freely.
+The 8-bit BibTeX-related programs are not in the public domain; they are
+copyrighted and there are restrictions on their distribution, but these
+restrictions are designed to permit everything that a good cooperating
+citizen would want to do. What is not allowed is to try to prevent others
+from further sharing any version of these programs that they might get from
+you.
+
+Specifically, we want to make sure that you have the right to give away
+copies of the programs that relate to 8-bit BibTeX, that you receive source
+code or else can get it if you want it, that you can change these programs or
+use pieces of them in new free programs, and that you know you can do these
+things.
+
+To make sure that everyone has such rights, we have to forbid you to deprive
+anyone else of these rights. For example, if you distribute copies of the
+8-bit BibTeX related programs, you must give the recipients all the rights
+that you have. You must make sure that they, too, receive or can get the
+source code. And you must tell them their rights.
+
+Also, for our own protection, we must make certain that everyone finds out
+that there is no warranty for the programs that relate to 8-bit BibTeX. If
+these programs are modified by someone else and passed on, we want their
+recipients to know that what they have is not what we distributed, so that
+any problems introduced by others will not reflect on our reputation.
+
+The precise conditions of the licences for the programs currently being
+distributed that relate to 8-bit BibTeX are found in the General Public
+Licences that accompany them.
+
+
+
+10. Change Log
+---------------
+
+For later changes by TeX Live, please refer to HISTORY.
+
+Revision 3.71 1996/08/18 20:38:55 kempson
+Official release 3.71 (see HISTORY for details).
+
+Revision 3.70 1996/04/29 20:17:53 kempson
+Final documentation & cosmetic changes for official release 3.70.
+
+Revision 1.2 1995/10/21 22:23:01 kempson
+Updated for v3.60 beta. Added description of --wolfgang option.
+Added some more information on running BibTeX in a Windows DOS session.
+Changed the example of CSF debugging output to something that is correct.
+
+Revision 1.1 1995/09/24 20:50:00 kempson
+Updated for the final beta test release.
+
+Revision 1.0 1995/09/24 20:42:30 kempson
+Placed under RCS control
+
+******************************** END OF FILE *******************************
diff --git a/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bbl b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bbl
new file mode 100644
index 0000000000..401334dacb
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bbl
@@ -0,0 +1,44 @@
+\begin{thebibliography}{1}
+
+\bibitem{cle2}
+Nicolas Échelon.
+\newblock {\em La vie est un long fleuve tranquille}.
+\newblock Les Éditions du désastre, 2009.
+
+\bibitem{cle8}
+Nicolas Å’tingen.
+\newblock {\em Un livre}.
+\newblock Les Éditions du désastre, 2009.
+
+\bibitem{cle4}
+Nicolas Tarantin.
+\newblock {\em En revenant de Tarascon}.
+\newblock Les Éditions du désastre, 2009.
+
+\bibitem{cle1}
+Διογένης.
+\newblock {\em Μήπως εἴδατε τὸ φανάÏι μου;}.
+\newblock Τὰ σοφὰ βιβλία, 2009.
+
+\bibitem{cle7}
+Μῆτσος á¼Î»Î»Î·Î½Î±Ï‚.
+\newblock {\em Τὸ καλὸ παÏάδειγμα}.
+\newblock Ἐκδοτικὸς οἶκος «Δὲν βαÏιέσαι», 2009.
+
+\bibitem{cle5}
+ΖαχαÏίας ΖαχαÏόπουλος.
+\newblock {\em Μοῦ λένε νὰ μὴν κλαίω, μὰ τί νὰ
+ κάνω, ἀφοῦ σὲ χάνω}.
+\newblock Ἐκδόσεις τῶν χαμένων á¼Î»Ï€Î¯Î´Ï‰Î½, 2009.
+
+\bibitem{cle3}
+æ ¼çš„å„¿å­ å¤©å ‚æœ€æ–°çš„ç« èŠ‚è¡¨.
+\newblock {\em 製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω}.
+\newblock Les Éditions du désastre, 2009.
+
+\bibitem{cle6}
+节列表 天王最新章.
+\newblock {\em 製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω}.
+\newblock Les Éditions du désastre, 2009.
+
+\end{thebibliography}
diff --git a/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bib b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bib
new file mode 100644
index 0000000000..b442eeb88a
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.bib
@@ -0,0 +1,48 @@
+
+@book{cle1,
+ Author = {Διογένης},
+ Publisher = {Τὰ σοφὰ βιβλία},
+ Title = {Μήπως εἴδατε τὸ φανάÏι μου;},
+ Year = {2009}}
+
+@book{cle2,
+ Author = {Échelon, Nicolas},
+ Publisher = {Les Éditions du désastre},
+ Title = {La vie est un long fleuve tranquille},
+ Year = {2009}}
+
+@book{cle3,
+ Author = {天堂最新的章节表, 格的儿å­},
+ Publisher = {Les Éditions du désastre},
+ Title = {製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω},
+ Year = {2009}}
+
+@book{cle4,
+ Author = {Tarantin, Nicolas},
+ Publisher = {Les Éditions du désastre},
+ Title = {En revenant de Tarascon},
+ Year = {2009}}
+
+@book{cle5,
+ Author = {ΖαχαÏόπουλος, ΖαχαÏίας},
+ Publisher = {Ἐκδόσεις τῶν χαμένων á¼Î»Ï€Î¯Î´Ï‰Î½},
+ Title = {Μοῦ λένε νὰ μὴν κλαίω, μὰ τί νὰ κάνω, ἀφοῦ σὲ χάνω},
+ Year = {2009}}
+
+@book{cle6,
+ Author = {天王最新章, 节列表},
+ Publisher = {Les Éditions du désastre},
+ Title = {製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω},
+ Year = {2009}}
+
+@book{cle7,
+ Author = {á¼Î»Î»Î·Î½Î±Ï‚, Μῆτσος},
+ Publisher = {Ἐκδοτικὸς οἶκος «Δὲν βαÏιέσαι»},
+ Title = {Τὸ καλὸ παÏάδειγμα},
+ Year = {2009}}
+
+@book{cle8,
+ Author = {Å’tingen, Nicolas},
+ Publisher = {Les Éditions du désastre},
+ Title = {Un livre},
+ Year = {2009}}
diff --git a/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.pdf b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.pdf
new file mode 100644
index 0000000000..2efe0add22
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.pdf
Binary files differ
diff --git a/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.tex b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.tex
new file mode 100644
index 0000000000..4cd387bace
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/01bibtexu-doc/examples/test.tex
@@ -0,0 +1,73 @@
+\documentclass{article}
+\title{Test file for Bib\TeX u}
+\author{Yannis Haralambous}
+\begin{document}
+\maketitle
+\font\x="Arial Unicode MS"
+\let\em\x
+\x
+
+This is a test file for Bib\TeX u. The BIB file is as follows:
+
+\medskip
+
+\noindent@book\{cle1,\\
+ Author = \{Διογένης\},\\
+ Publisher = \{Τὰ σοφὰ βιβλία\},\\
+ Title = \{Μήπως εἴδατε τὸ φανάÏι μου;\},\\
+ Year = \{2009\}\}\\
+
+\noindent@book\{cle2,\\
+ Author = \{Échelon, Nicolas\},\\
+ Publisher = \{Les Éditions du désastre\},\\
+ Title = \{La vie est un long fleuve tranquille\},\\
+ Year = \{2009\}\}\\
+
+\noindent@book\{cle3,\\
+ Author = \{天堂最新的章节表, 格的儿å­\},\\
+ Publisher = \{Les Éditions du désastre\},\\
+ Title = \{製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω\},\\
+ Year = \{2009\}\}\\
+
+\noindent@book\{cle4,\\
+ Author = \{Tarantin, Nicolas\},\\
+ Publisher = \{Les Éditions du désastre\},\\
+ Title = \{En revenant de Tarascon\},\\
+ Year = \{2009\}\}\\
+
+\noindent@book\{cle5,\\
+ Author = \{ΖαχαÏόπουλος, ΖαχαÏίας\},\\
+ Publisher = \{Ἐκδόσεις τῶν χαμένων á¼Î»Ï€Î¯Î´Ï‰Î½\},\\
+ Title = \{Μοῦ λένε νὰ μὴν κλαίω, μὰ τί νὰ κάνω, ἀφοῦ σὲ χάνω\},\\
+ Year = \{2009\}\}\\
+
+\noindent@book\{cle6,\\
+ Author = \{天王最新章, 节列表\},\\
+ Publisher = \{Les Éditions du désastre\},\\
+ Title = \{製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω\},\\
+ Year = \{2009\}\}\\
+
+\noindent@book\{cle7,\\
+ Author = \{á¼Î»Î»Î·Î½Î±Ï‚, Μῆτσος\},\\
+ Publisher = \{Ἐκδοτικὸς οἶκος «Δὲν βαÏιέσαι»\},\\
+ Title = \{Τὸ καλὸ παÏάδειγμα\},\\
+ Year = \{2009\}\}\\
+
+\noindent@book\{cle8,\\
+ Author = \{Å’tingen, Nicolas\},\\
+ Publisher = \{Les Éditions du désastre\},\\
+ Title = \{Un livre\},\\
+ Year = \{2009\}\}\\
+
+\medskip
+
+As you can see, we have mixed together entries in French, Greek and Chinese. The challenge of the French entries is that Échelon should be sorted as â€echelon†and Å’tingen sorted as “oetingen†so that the right order is : Échelon < Å’tingen < Tartarin.
+
+Same problem in Greek: á¼Î»Î»Î·Î½Î±Ï‚ should be sorted as “ελληνας†and hence should appear between Διογένης and ΖαχαÏόπουλος.
+
+Have fun with Bib\TeX u! Once testing and debugging is finished we will write a paper for TUGboat.
+
+\nocite{*}
+\bibliographystyle{plain}
+\bibliography{test}
+\end{document}
diff --git a/biblio/bibtex/bibtex-x/COPYING b/biblio/bibtex/bibtex-x/COPYING
new file mode 100644
index 0000000000..a43ea2126f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/COPYING
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 675 Mass Ave, Cambridge, MA 02139, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ Appendix: How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) 19yy <name of author>
+
+ 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) 19yy name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
diff --git a/biblio/bibtex/bibtex-x/ChangeLog b/biblio/bibtex/bibtex-x/ChangeLog
new file mode 100644
index 0000000000..be11b3d351
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/ChangeLog
@@ -0,0 +1,572 @@
+2022-09-12 Karl Berry <karl@freefriends.org>
+
+ * README: new file to mention both programs.
+ * bibtex8.1: remove old addresses for Kempson and Aguilar-Sierra.
+
+2022-09-02 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * bibtex.c:
+ Initialize max_print_line after checking options.
+ This change prevents unwanted looking for texmf.cnf.
+
+2022-08-30 Karl Berry <karl@freefriends.org>
+
+ * bibtex8.1,
+ * bibtexu.1: typo fixes from Hilmar Preu\ss{}e,
+ https://tug.org/pipermail/tex-live/2022-June/048227.html
+
+2022-05-22 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * version.h:
+ Bump version to 4.00 (22 may 2022).
+ * bibtex.c, utils.c, version.h:
+ Show "Release version" and TeX Live version at the first line
+ of a banner.
+
+2022-05-17 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * version.h:
+ Bump version to 4.00 (17 may 2022).
+ * bibtex-4.c, bibtex.h:
+ Fix a bug of text.prefix$ and text.length$ in bibtexu.
+ * tests/testsubstr[au].bib, substr[au].bbl, txtprfx[au].bbl:
+ Update tests.
+
+2022-05-08 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * version.h:
+ Bump version to 4.00 (8 may 2022).
+ * bibtex-2.c:
+ Set LEGAL_ID_CHAR to id_class of 8bit characters.
+ * Makefile.am, tests/bibtex[8u].test,
+ tests/bibtex8-char.test, tests/bibtexu-sort.test,
+ tests/test{case,char,name,period,substr,txtprfx,width,iscjk}.bst,
+ tests/case[au].bbl, tests/chara.bbl, tests/name[au].bbl,
+ tests/substra.bbl, tests/txtprfxa.bbl, tests/yannis.bbl,
+ tests/exampl.bbl, tests/ltnbib.bib, tests/mlgbib.bib,
+ tests/testcase[au].bib, tests/yannis.bib:
+ Update tests.
+
+2022-05-02 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * version.h:
+ Bump version to 4.00 (2 may 2022).
+ * bibtex.[ch], gblvars.h:
+ Accept max_print_line variable in kpathsea.
+ We can define max_print_line.bibtex8 or max_print_line.bibtexu
+ in texmf.cnf.
+ * tests/bibtex[8u]-char.test, tests/name[au].bbl:
+ Update tests.
+
+2022-04-29 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * configure.ac, version.h:
+ Bump version to 4.00 (29 apr 2022).
+
+ Both BibTeX8 and BibTeXu::
+ * bibtex.[ch], utils.[ch], datatype.h, gblprocs.h, gblvars.h, sysdep.h,
+ version.h, bibtex-[1234].c, HISTORY:
+ Remove keywords for RCS from headers since we do not use RCS anymore.
+ * bibtex-[234].c, bibtex.h, gblprocs.h, gblvars.h:
+ Add operators bitwise AND "&" and bitwise OR "|" to built-in functions
+ in style files.
+ * bibtex8.1, bibtexu.1, HISTORY: Update documents.
+ * Makefile.am, tests/bibtex[8u]-char.test,
+ tests/testcase.bst tests/testchar.bst,
+ tests/period[au].bbl, tests/testperiod[au].bib, tests/testperiod.bst,
+ tests/substr[au].bbl, tests/testsubstr[au].bib, tests/testsubstr.bst,
+ tests/txtprfx[au].bbl, tests/testtxtprfx.bst,
+ tests/width[au].bbl, tests/testwidth[au].bib, tests/testwidth.bst,
+ tests/name[au].{aux,bbl}, tests/{ltn,mlg}bib, tests/testname.bst,
+ tests/iscjku.{aux,bbl}, tests/testiscjku.bib, tests/testiscjk.bst:
+ Update tests.
+
+ BibTeXu only::
+ * bibtex-1.c:
+ Inhibit breaking lines between space and characters rather than Latin,
+ Greek, Cyrillic and Hangul Cyllables.
+ * bibtex-[234].c, bibtex.h, gblprocs.h, gblvars.h:
+ Add built-in functions is.cjk.str$ and is.kanji.str$ in style files
+ to check wheter a string is CJK or not.
+ * bibtex-[24].c:
+ Enhance built-in functions num.names$ and format.name$ in style files.
+ Ideographic/Fullwidth Comma ("ã€" U+3001, "," U+FF0C) in addition to
+ an " and " string is accepted as a sepalator between persons.
+ Ideographic Space (" " U+3000) in addition to a space " " is accepted
+ as a sepalator between a family name and a given name.
+
+2022-04-21 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * configure.ac, version.h:
+ Bump version to 3.80 (21 apr 2022).
+ * bibtex-4.c:
+ Fix a bug of substring$ in bibtexu.
+ * tests/substr[au].bbl, tests/testsubstr[au].bib, tests/testsubstr.bst,
+ tests/txtprfx[au].bbl:
+ Update tests.
+
+2022-04-16 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * configure.ac, version.h:
+ Bump version to 3.80 (16 apr 2022).
+ * bibtex-2.c, bibtex-4.c, bibtex.h, gblvars.h:
+ Support width$ for Latin-1 characters in bibtex8.
+ Support width$ for Latin-1, Latin Extended-A, CJK characters in bibtexu.
+ Note other character sets (Greek, Cyrillic, etc.) are not impremented yet.
+ * bibtex-2.c, bibtex-4.c, gblproc.h:
+ Support substring$ for characters on Unicode supplementary planes in bibtexu.
+ * bibtex-3.c:
+ Ignore add.period$ after Unicode punctuation marks ‼â‡âˆâ‰â€½ï¼ï¼Ÿã€‚ . in bibtexu.
+ * bibtex-4.c:
+ Accept characters over ASCII by int.to.chr$ in bibtex8 & bibtexu.
+ Accept multibyte characters by chr.to.int$ in bibtexu.
+ * Makefile.am,
+ tests/bibtex8u-mem.test, tests/bibtex[8u]-{sort,char}.test,
+ tests/sortu.aux, tests/sortu-{az,da,en,fi,tr}.bbl, tests/testsortu.bib,
+ tests/case[au].{aux,bbl}, tests/testcase[au].bib, tests/testcase.bst,
+ tests/char[au].{aux,bbl}, tests/testchar[au].bib, tests/testchar.bst,
+ tests/period[au].{aux,bbl}, tests/testperiod[au].bib, tests/testperiod.bst,
+ tests/substr[au].{aux,bbl}, tests/testsubstr[au].bib, tests/testsubstr.bst,
+ tests/txtprfx[au].{aux,bbl}, tests/testtxtprfx.bst,
+ tests/width[au].{aux,bbl}, tests/testwidth[au].bib, tests/testwidth.bst:
+ Add new tests.
+
+2022-02-05 Karl Berry <karl@freefriends.org>
+
+ * configure.ac,
+ * version.h: version 3.72 (05 feb 2022).
+
+2021-08-21 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * bibtex-4.c:
+ Fix bug of collation (check END_OF_STRING, compare arg1 and arg2).
+ * bibtex-2.c, gblproc.h:
+ Fix bug of making upper/lower cases.
+ It may remain a bug when lengths are different between
+ from-string and to-string, for example:
+ U+00DF ß LATIN SMALL LETTER SHARP S, 0xC3 0x9F in UTF-8
+ U+1E9E ẞ LATIN CAPITAL LETTER SHARP S, 0xE1 0xBA 0x9E in UTF-8
+ * tests/ubasic.{bib,bbl},yannis.{bib,bbl}:
+ Update.
+ * tests/bibtexu-yannis.test:
+ Reenable again (fixed the fails on FreeBSD, OpenBSD, sparc-solaris).
+ https://build.contextgarden.net/#/waterfall?tags=c.texlive
+
+2021-08-14 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * bibtex.c, bibtex-[23].c, gbl{proc,vars}.h:
+ Use ucol_strcollUTF8() for collation.
+ Use u_strToUTF8WithSub() in icu_fromUChars() and
+ u_strFromUTF8WithSub() in icu_toUChars() in stead of ucnv_*.
+ Initialize ICU collator only once.
+
+2021-06-21 Karl Berry <karl@freefriends.org>
+
+ * tests/bibtexu-yannis.test: disable again. Fails on
+ FreeBSD, OpenBSD, sparc-solaris.
+ https://tug.org/pipermail/tlbuild/2021q2/004918.html
+
+2021-06-20 Karl Berry <karl@freefriends.org>
+
+ * Makefile.am (bibtexu_tests): add tests/bibtexu-{basic,range}.test.
+ (EXTRA_DIST, DISTCLEANFILES): likewise.
+ * tests/bibtexu-{basic,range}.test,
+ * tests/u{basic,range}.{aux,bbl,bib,tex}: new files from Dmitry.
+
+ * tests/bibtexu-yannis.test: reenable (probably failed due to lack
+ of pthread?), use same test template.
+ * tests/yannis.bib: credit Yannis.
+
+2021-06-20 Dmitry Zheleznyakov <dmitry.zhelezniakov@gmail.com>
+
+ * bibtex-4.c (x_substring, web section 438): adjust pop_lit1
+ before icu_fromUChars calls, to avoid crash on page ranges.
+
+2021-06-19 Karl Berry <karl@freefriends.org>
+
+ * configure.ac [enable_bibtexu]: also check for -lpthread.
+ * Makefile.am (bibtexu_LDADD): include $(PTHREAD_LIB).
+ Report and fix from Dmitry Zheleznyakov:
+ https://tug.org/pipermail/tex-k/2021-June/003591.html
+
+2021-02-06 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * utils.c, configure.ac:
+ Show TeX Live version by version option.
+ Show bug report address in usage.
+
+2019-05-22 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * bibtex-2.c, bibtex-3.c: Better error messages for debug.
+ * bibtex-3.c (icu_strToUpper): React to Str_language.
+
+2019-05-05 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * bibtexu-yannis.test, yannis.aux, yannis.bib, yannis.bbl:
+ New test files for BibTeXu.
+ * Makefile.am: Add the new test.
+
+2019-03-15 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * Makefile.am: Add bibtex8.1 and bibtexu.1.
+ * bibtex8.1, bibtexu.1: New man pages.
+
+2019-03-06 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * bibtex-2.c: Check error status for every call of
+ u_strFromUTF8WithSub().
+
+2019-03-05 Akira Kakuto <kakuto@w32tex.org>
+
+ * bibtex-2.c: Use u_strFromUTF8WithSub() with a substitution
+ character 0xfffd, instead of u_strFromUTF8().
+
+2019-03-04 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ Both BibTeX8 and BibTeXu:
+ * bibtex-2.c: Add trace for sorting. (There is no related
+ code in the original BibTeX, but can be useful.)
+ Suppress compiler warnings.
+ * bibtex.c, utils.c: Print ICU version in BibTeXu.
+ * version.h: Bump version (04 mar 2019).
+
+ BibTeXu only:
+ * bibtex-2.c: Use u_strFromUTF8() instead of icu_toUChars()
+ while sorting for BibTeXu. Close UConverter properly.
+ * bibtex-4.c: Fix x_purify() for BibTeXu.
+ * utils.c: Default to Flag_8bit in BibTeXu. We should NOT
+ read any csf file in BibTeXu. (BibTeX8 is unaffected)
+
+2017-04-27 Karl Berry <karl@tug.org>
+
+ * Makefile.am (bibtexu_LDADD): add $(ICU_LIBS_EXTRA).
+
+2015-07-07 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am: Better dependencies for 'make check'.
+ * ac/bibtex-x.ac: Fixed a typo.
+
+2014-06-16 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am: Drop the obsolete ACLOCAL_AMFLAGS.
+
+2013-03-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Merge bibtex8/ and bibtexu/ into bibtex-x (extended).
+ * bibtex-[234].c, bibtex.[ch], gblprocs.h, gblvars.h, utils.c:
+ Use '#ifndef UTF_8 <bibtex8 code> #else <bibtexu code> #endif'.
+ * version.h: Set date to '18 mar 2013'.
+ Makefile.am, configure.ac: Adapted.
+
+2013-03-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ BibTeX8
+ * bibtex-2.c: Use char_less_than and char_greater_than macros.
+
+ BibTeXu
+ * bibtex-[24].c, bibtex.h: Define and use DO_UTF8 to handle
+ 1-, 2-, 3-, and 4-byte UTF-8 codes.
+ * tests/bibtex.test (removed): Renamed ...
+ * tests/bibtexu.test (new): ... into this.
+
+2013-03-15 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ BibTeXu
+ Reduce diffs with bibtex8.
+ * bibtex-[1-4].c, bibtex.[ch], gblprocs.h, gblvars.h,
+ utils.[ch]: Drop unused code and adjust white space,
+ #include "unicode/*.h" only through gblprocs.h.
+
+2013-02-08 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am (btdocdir): Change texmf => texmf-dist.
+
+2012-12-07 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ BibTeXu
+ * bibtex-2.c: Drop unused variable (gcc-4.6 warning).
+
+2012-11-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am: Avoid use of deprecated INCLUDES.
+
+2012-10-11 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * utils.c (c8read_csf): DEFAULT_BIBTEX_CSFILE is set to
+ "/nonesuch" in ../kpathsea/paths.h; so we use CSF_FILE_ENVVAR.
+
+2012-08-04 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ BibTeXu
+ * bibtex.c : Change order of inclusion of headers to avoid warnings.
+
+2012-04-12 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * bibtex-2.c: Do not check whether Glob_Str_Size > Buf_Size,
+ and Ent_Str_size > Buf_Size, since Buf_Size can be changed
+ dynamically, whereas Glob_Str_Size and Ent_Str_Size are maximum
+ values which are constants.
+
+2012-04-10 Norbert Preining <preining@logic.at>
+
+ * bibtex-2.c: Do not check whether Glob_Str_Size > Buf_Size,
+ since the former can be changed dynamically
+ * bibtex.h: Adjust BUF_SIZE to the value that matches bibtex.ch
+
+2012-02-14 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex.c (eoln): Accept both CR and LF as end-of-line.
+
+2011-12-06 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am: Replace ${prefix}/texmf => $(datarootdir)/texmf.
+
+2011-10-04 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ BibTeX8
+ * Makefile.am (DISTCLEANFILES): Preserve distributed files.
+
+ BibTeXu
+ * Makefile.am (DISTCLEANFILES): Add CXXLD.sh.
+
+2011-04-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Avoid 'differ in signedness' warnings.
+ * datatype.h (PdsType_T): Do not declare as unsigned.
+ * bibtex-3.c (pre_define): Cast xord[] index to UChar_T.
+ * utils.c (c8read_csf): Cast name_of_file to 'char *'.
+
+ BibTeXu
+ * bibtex-2.c: A few casts to 'char *'.
+
+2011-03-07 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * utils.c (setup_bound_variable): `program_invocation_name' has
+ been renamed into `kpse_invocation_name'.
+
+2010-10-04 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ BibTeXu
+ * tests/bibtexu.test (new): Just 'bibtexu -version'.
+ * Makefile.am: Add the new test.
+
+2010-05-03 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * bibtex.h: fix a bug in the macro BIB_XRETALLOC_STRING.
+
+2010-03-24 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex*.[ch], gblvars.h, utils.c: Obtain Ent_Str_Size and
+ Glob_Str_Size from environment or config file.
+ Dynamically allocate global strings arrays, literal stack
+ arrays, and single function space instances; reallocate them
+ as required.
+
+2010-03-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * utils.c: Default csfile and Max_Strings from env or config.
+ * bibtex.h (STR_ROOM): Call pool_overflow() as often as needed.
+ * bibtex-3.c (scan_fn_def): Same for increase Wiz_Fn_Space.
+ * bibtex-4.c (BST_STRING_SIZE_EXCEEDED): Drop extra "%ld".
+ (x_text_prefix): Add missing STR_ROOM.
+
+ BibTeX8
+ * bibtex.c: Call kpse_set_program_name with "bibtex8".
+
+ BibTeXu
+ * bibtex.c: Call kpse_set_program_name with "bibtexu".
+
+2010-03-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Dynamic allocation of name_of_file strings. No padding.
+ * bibtex-1.c (add_area): Not used and removed.
+ * bibtex-2.c (file_nm_size_overflow): Not used and removed.
+ * bibtex-3.c (s_bst_area, s_bib_area): Removed.
+ * gblvars.h (bib_area_string, bst_area_string): Removed.
+ * utils.c (open_ip_file, open_op_file): Adapted.
+
+2010-03-17 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex-1.c (check_cite_overflow): Reallocate cite_info,
+ cite_list, entry_exists, and type_list.
+ * bibtex.h (MAX_CITES): Initial allocation as in bibtex.web.
+ * gblvars.h (M_cites): Removed.
+ * utils.c (parse_cmd_line, usage): Ignore/remove --mcites.
+
+ * bibtex-1.c (add_database_cite): Fix bug, from bibtex.ch.
+
+ * Makefile.am (AM_CPPFLAGS): Remove obsolete -funsigned-char.
+
+ BibTeX8
+ * tests/bibtex-mem.test: New shell script for dynamic arrays.
+ * Makefile.am: Adapted.
+
+2010-03-16 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex-1.c, utils.c: Delay allocation of entry_ints and
+ entry_strs until the required size is known.
+ * bibtex.h (MAX_ENT_INTS, MAX_ENT_STRS): Removed.
+ * gblvars.h (M_entstrs, Max_Ent_Ints, Max_Ent_Strs): Removed.
+ * utils.c (parse_cmd_line, usage): Ignore/remove --mentstrs.
+
+ BibTeX8
+ * tests/sort.test: New shell script to test csfiles.
+ * tests/sort[123].{bbl,csf}, tests/test{data.bib,style.bst}:
+ Test data from Philipp Lehman <lehman@gmx.net>.
+
+2010-03-15 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * tests/bibtex.test: New shell script to test 7-bit mode.
+ * Makefile.am (TESTS, EXTRA_DIST, DISTCLEANFILES): Adapted.
+
+ * bibtex-1.c, bibtex-2.c: Reallocate bib_file, bib_list, and
+ s_preamble as needed.
+
+ * datatype.h (BufType_T): Declare as pointer instead of array.
+ * gblvars.h, utils.c: Dynamically allocate buffer, ex_buf,
+ out_buf, and sv_buffer.
+ * bibtex-1.c (add_out_pool): Call buffer_overflow to reallocate.
+ (buffer_overflow): Reallocate buffer, ex_buf, name_sep_char,
+ name_tok, out_buf, and sv_buffer as needed.
+
+ * utils.c (c8read_csf): Drastically reduce sx array size.
+
+2010-03-14 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex-1.c: Reallocate entry_ints, field_info as needed.
+ * bibtex-3.c: Reallocate wiz_functions as needed.
+ * gblvars.h, utils.c: Dynamically allocate bib_file, bib_list,
+ name_sep_char, name_tok, and s_preamble.
+ * gblvars.h (M_entints, M_fields, M_wiz_fn_space): Removed.
+ * utils.c (parse_cmd_line, usage): Ignore/remove --mentints,
+ --mfields, and --mwizfuns.
+
+ * bibtex-4.c: Added check for str_pool overflow (from bibtex).
+
+ * gblvars.h (Buf_Size, Max_Bib_Files): New global vars.
+ * utils.c: Set Buf_Size=BUF_SIZE, Max_Bib_Files=MAX_BIB_FILES.
+ Allocate bib_file, bib_list, name_sep_char, name_tok, and
+ s_preamble.[A
+ * bibtex-1.c, bibtex-2.c: Use Buf_Size and Max_Bib_Files.
+
+2010-03-13 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Dynamic allocation of arrays.
+ * bibtex.h (MYRETALLOC, BIB_XRETALLOC, BIB_XRETALLOC_NOSET):
+ Preprocessor macros used to reallocate arrays.
+ * utils.[ch] (myrealloc): New function.
+ (mymalloc, myrealloc): Allocate at least 1 byte, to avoid NULL.
+ (checkdbg, checklong): Declare as static.
+
+ * bibtex-2.c (pool_overflow): Reallocate str_pool as needed.
+ * gblvars.h (M_pool): Removed.
+ * utils.c (parse_cmd_line, usage): Ignore/remove --mpool.
+
+ BibTeX8
+ * utils.c (usage): This is bibtex8, not bibtex.
+
+2010-03-12 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Determine hash_size from max_strings and compute hash_prime.
+ * bibtex.c (main): Don't call allocate_arrays.
+ Print newline after fatal error message.
+ * utils.c (allocate_arrays): Declare as static.
+ (compute_hash_prime): New function, using allocated arrays.
+ (set_array_sizes): Call allocate_arrays and compute_hash_prime.
+ * utils.h (allocate_arrays): Remove.
+
+2010-03-10 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex.h: Adapt to bibtex.web final 0.99d from Oren.
+
+2010-03-09 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex-1.c: Remove spurious format spec in BIBTEX_OVERFLOW.
+
+2010-03-02 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex-1.c, bibtex.h: Adapt to bibtex.web 0.99d test 1
+ from Oren, breaking .bbl lines only at whitespace.
+
+2010-02-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * sysdep.h (IMPLEMENTATION): Define for MinGW32.
+ * utils.c [WIN32]: Do not #include <kpathsea/getopt.h>.
+ * utils.h (CDECL) [WIN32]: #undef before re-#define.
+
+2010-02-10 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * getopt.[ch], getopt1.h: Removed, use libkpathsea.
+ * utils.c: #include <kpathsea/getopt.h> instead of "getopt.h".
+ * Makefile.am (EXTRA_DIST): remove getopt.[ch] and getopt1.h.
+
+2009-11-20 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * bibtex*.c, utils.c: #include <config.h>.
+ * configure.ac: Add AC_CONFIG_HEADERS([config.h]).
+
+2009-10-24 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * utils.c (open_ip_file, open_op_file): Check for legitimate
+ file names via kpse_{in,out}_name_ok() before opening files.
+
+2009-10-08 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Import BibTeXu from http://omega.enstb.org/yannis/bibtexu/.
+ Avoid various compiler warnings:
+ * bibtex-[234].c: unused vars, decl. after stmt., return with
+ value in void function.
+ * bibtex-[23].c: #include "unicode/ustring.h".
+
+2009-09-30 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * utils.[ch] (getopt_str): Declare string as const.
+ (debug_msg): Declare param2 string as const.
+ (usage): Declare param string as const.
+ * datatype.h (PdsType_T): Declare char array as const.
+
+2009-06-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am (AM_CFLAGS): enable compiler warnings.
+ * bibtex-3.c (str_lookup): silence 'used uninitialized' warning.
+ * datatype.h, gblvars.h: in various places replace Integer8_T
+ (i.e., char) by UChar_T (i.e., unsigned char).
+ * utils.c (c8read_csf): avoid unused variable.
+ * remove rcsid's.
+
+ * FIXME: still needs careful checking for signed/unsigned char.
+
+2009-06-04 Karl Berry <karl@tug.org>
+
+ * Makefile.am (AM_CPPFLAGS): move -funsigned-char here,
+ since we don't want to pass it to the loader.
+ peb tlbuild mail 3 Jun 2009 17:37:38 +0200.
+
+2009-05-28 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Adapt to TL2009 build system.
+
+2008-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * sysdep.h: avoid redefinition of TRUE and FALSE.
+
+2008-02-29 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * configure.in: added AC_CONFIG_HEADERS (moved
+ from ../kpathsea/common.ac to here).
+
+2008-01-31 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * utils.c: Fix a typo (relevant for non-kpathsea version).
+
+2008-01-30 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Convert from autoconf-2.13 to autoconf-2.59+:
+ * Makefile.in: Add @configure_input@ line.
+ * aclocal.m4 (new): Generated (aclocal -I ../m4).
+ * configure: Regenerated (autoconf).
+
+2007-07-16 Karl Berry <karl@tug.org>
+
+ * bibtex.h (BUF_SIZE, MAX_CITES, MAX_ENT_INTS, MAX_ENT_STRS,
+ MAX_STRS): increase. From panov, 12 Jul 2007 12:13:38.
diff --git a/biblio/bibtex/bibtex-x/Makefile.am b/biblio/bibtex/bibtex-x/Makefile.am
new file mode 100644
index 0000000000..b4101f4953
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/Makefile.am
@@ -0,0 +1,185 @@
+## $Id: Makefile.am 64353 2022-09-11 22:41:59Z karl $
+## Makefile.am for the TeX Live subdirectory texk/bibtex-x/
+##
+## Copyright 2017-2022 Karl Berry <tex-live@tug.org>
+## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org>
+## You may freely use, modify and/or distribute this file.
+##
+AM_CPPFLAGS = $(KPATHSEA_INCLUDES) -DUNIX -DKPATHSEA
+AM_CFLAGS = $(WARNING_CFLAGS)
+
+EXTRA_PROGRAMS = bibtex8 bibtexu
+
+bin_PROGRAMS =
+if BIBTEX8
+bin_PROGRAMS += bibtex8
+endif BIBTEX8
+if BIBTEXU
+bin_PROGRAMS += bibtexu
+endif BIBTEXU
+
+common_sources = \
+ bibtex-1.c \
+ bibtex-2.c \
+ bibtex-3.c \
+ bibtex-4.c \
+ bibtex.c \
+ bibtex.h \
+ datatype.h \
+ gblprocs.h \
+ gblvars.h \
+ utils.c \
+ utils.h \
+ version.h \
+ sysdep.h
+
+bibtex8_SOURCES = $(common_sources)
+bibtex8_CPPFLAGS = $(AM_CPPFLAGS) -DSUPPORT_8BIT
+$(bibtex8_OBJECTS): $(KPATHSEA_DEPEND)
+bibtex8_LDADD = $(KPATHSEA_LIBS)
+
+bibtexu_SOURCES = $(common_sources)
+# Force Automake to use CXXLD for linking
+nodist_EXTRA_bibtexu_SOURCES = dummy.cxx
+bibtexu_CPPFLAGS = $(AM_CPPFLAGS) $(ICU_INCLUDES) -DUTF_8
+$(bibtexu_OBJECTS): $(KPATHSEA_DEPEND) $(ICU_DEPEND)
+bibtexu_LDADD = $(KPATHSEA_LIBS) $(ICU_LIBS) $(PTHREAD_LIB) $(ICU_LIBS_EXTRA)
+
+dist_man1_MANS = bibtex8.1 bibtexu.1
+
+## Rebuild libkpathsea
+@KPATHSEA_RULE@
+## Rebuild libsicuxxx
+@ICU_RULE@
+
+### BibTeX8 distribution
+
+csfdir = $(datarootdir)/texmf-dist/bibtex/csf/base
+
+dist_csf_DATA = \
+ csf/88591lat.csf \
+ csf/88591sca.csf \
+ csf/ascii.csf \
+ csf/cp437lat.csf \
+ csf/cp850lat.csf \
+ csf/cp850sca.csf \
+ csf/cp866rus.csf \
+ csf/csfile.txt
+
+btdocdir = $(datarootdir)/texmf-dist/doc/bibtex8
+
+dist_btdoc_DATA = \
+ 00bibtex8-readme.txt \
+ 00bibtex8-history.txt \
+ file_id.diz \
+ csf/csfile.txt
+
+### BibTeXu distribution
+
+btudocdir = $(datarootdir)/texmf-dist/doc/bibtexu
+btuexdir = $(datarootdir)/texmf-dist/doc/bibtexu/examples
+
+dist_btudoc_DATA = \
+ 01bibtexu-doc/README
+
+dist_btuex_DATA = \
+ 01bibtexu-doc/examples/test.bbl \
+ 01bibtexu-doc/examples/test.bib \
+ 01bibtexu-doc/examples/test.pdf \
+ 01bibtexu-doc/examples/test.tex
+
+## Tests.
+##
+bibtex8_tests = tests/bibtex8.test tests/bibtex8u-mem.test \
+ tests/bibtex8-sort.test tests/bibtex8-char.test
+bibtexu_tests = tests/bibtexu.test tests/bibtexu-basic.test \
+ tests/bibtexu-range.test tests/bibtexu-yannis.test \
+ tests/bibtexu-sort.test tests/bibtexu-char.test
+
+TESTS =
+if BIBTEX8
+TESTS += $(bibtex8_tests)
+endif BIBTEX8
+tests/bibtex8.log tests/bibtex8-mem.log tests/sort.log: bibtex8$(EXEEXT)
+if BIBTEXU
+TESTS += $(bibtexu_tests)
+endif BIBTEXU
+tests/bibtexu.log tests/bibtexu-basic.log tests/bibtexu-range.log \
+ tests/bibtexu-yannis.log: bibtexu$(EXEEXT)
+
+EXTRA_DIST = $(bibtex8_tests) $(bibtexu_tests)
+DISTCLEANFILES =
+## tests/bibtex8.test
+EXTRA_DIST += tests/exampl.bbl
+DISTCLEANFILES += tests/xexampl.aux tests/xexampl.bbl tests/xexampl.blg
+## tests/bibtexu.test
+##
+## tests/bibtex8u-mem.test
+DISTCLEANFILES += tests/memtest.bib tests/memtest?.* tests/memtestu?.*
+##
+## tests/bibtex8-sort.test
+EXTRA_DIST += tests/sort.aux \
+ tests/sort1.bbl tests/sort2.bbl tests/sort3.bbl \
+ tests/sort1.csf tests/sort2.csf tests/sort3.csf \
+ tests/testdata.bib tests/teststyle.bst \
+ tests/sort1.bbl tests/sort2.bbl tests/sort3.bbl \
+ tests/casea.aux tests/casea.bbl tests/testcasea.bib tests/testcase.bst
+DISTCLEANFILES += tests/xsort[123].aux tests/xsort[123].bbl tests/xsort[123].blg \
+ tests/xcase[123].aux tests/xcase[123].bbl tests/xcase[123].blg
+##
+## tests/bibtex8-char.test
+EXTRA_DIST += tests/perioda.aux tests/perioda.bbl tests/testperioda.bib tests/testperiod.bst \
+ tests/substra.aux tests/substra.bbl tests/testsubstra.bib tests/testsubstr.bst \
+ tests/txtprfxa.aux tests/txtprfxa.bbl tests/testtxtprfx.bst \
+ tests/widtha.aux tests/widtha.bbl tests/testwidtha.bib tests/testwidth.bst \
+ tests/chara.aux tests/chara.bbl tests/testchara.bib tests/testchar.bst \
+ tests/namea.aux tests/namea.bbl tests/ltnbib.bib tests/testname.bst
+DISTCLEANFILES += tests/xsubstra.aux tests/xsubstra.bbl tests/xsubstra.blg \
+ tests/xtxtprfxa.aux tests/txtprfxa.bbl tests/xtxtprfxa.blg \
+ tests/xwidtha.aux tests/widtha.bbl tests/xwidtha.blg \
+ tests/xchara.aux tests/xchara.bbl tests/xchara.blg \
+ tests/xnamea.aux tests/xnamea.bbl tests/xnamea.blg
+##
+## tests/bibtexu-basic.test
+EXTRA_DIST += tests/ubasic.aux tests/ubasic.bbl tests/ubasic.bib
+DISTCLEANFILES += tests/xubasic.aux tests/xubasic.bbl tests/xubasic.blg
+##
+## tests/bibtexu-range.test
+EXTRA_DIST += tests/urange.aux tests/urange.bbl tests/urange.bib
+DISTCLEANFILES += tests/xurange.aux tests/xurange.bbl tests/xurange.blg
+##
+## tests/bibtexu-yannis.test
+EXTRA_DIST += tests/yannis.aux tests/yannis.bbl tests/yannis.bib
+DISTCLEANFILES += tests/xyannis.aux tests/xyannis.bbl tests/xyannis.blg
+##
+## tests/bibtexu-sort.test
+EXTRA_DIST += tests/sortu.aux \
+ tests/sortu-az.bbl tests/sortu-da.bbl tests/sortu-en.bbl \
+ tests/sortu-fi.bbl tests/sortu-tr.bbl tests/testsortu.bib \
+ tests/caseu.aux tests/caseu.bbl tests/testcaseu.bib
+DISTCLEANFILES += tests/xsortu-*.aux tests/xsortu-*.bbl tests/xsortu-*.blg \
+ tests/xcaseu.aux tests/xcaseu.bbl tests/xcaseu.blg
+##
+## tests/bibtexu-char.test
+EXTRA_DIST += tests/periodu.aux tests/periodu.bbl tests/testperiodu.bib \
+ tests/substru.aux tests/substru.bbl tests/testsubstru.bib \
+ tests/txtprfxu.aux tests/txtprfxu.bbl \
+ tests/widthu.aux tests/widthu.bbl tests/testwidthu.bib \
+ tests/charu.aux tests/charu.bbl tests/testcharu.bib \
+ tests/nameu.aux tests/nameu.bbl tests/mlgbib.bib \
+ tests/iscjku.aux tests/iscjku.bbl tests/testiscjku.bib tests/testiscjk.bst
+DISTCLEANFILES += tests/xperiodu.aux tests/xperiodu.bbl tests/xperiodu.blg \
+ tests/xsubstru.aux tests/xsubstru.bbl tests/xsubstru.blg \
+ tests/xtxtprfxu.aux tests/txtprfxu.bbl tests/xtxtprfxu.blg \
+ tests/xwidthu.aux tests/widthu.bbl tests/xwidthu.blg \
+ tests/xcharu.aux tests/xcharu.bbl tests/xcharu.blg \
+ tests/xnameu.aux tests/xnameu.bbl tests/xnameu.blg \
+ tests/xiscjku.aux tests/xiscjku.bbl tests/xiscjku.blg
+
+## Not used
+##
+EXTRA_DIST += \
+ dos-dj.mak \
+ dos-emx.mak \
+ os2.mak \
+ unix.mak
diff --git a/biblio/bibtex/bibtex-x/Makefile.in b/biblio/bibtex/bibtex-x/Makefile.in
new file mode 100644
index 0000000000..dfb2a14d27
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/Makefile.in
@@ -0,0 +1,1798 @@
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+
+VPATH = @srcdir@
+am__is_gnu_make = { \
+ if test -z '$(MAKELEVEL)'; then \
+ false; \
+ elif test -n '$(MAKE_HOST)'; then \
+ true; \
+ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+ true; \
+ else \
+ false; \
+ fi; \
+}
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+EXTRA_PROGRAMS = bibtex8$(EXEEXT) bibtexu$(EXEEXT)
+bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2)
+@BIBTEX8_TRUE@am__append_1 = bibtex8
+@BIBTEXU_TRUE@am__append_2 = bibtexu
+@BIBTEX8_TRUE@am__append_3 = $(bibtex8_tests)
+@BIBTEXU_TRUE@am__append_4 = $(bibtexu_tests)
+subdir = .
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/../../m4/kpse-common.m4 \
+ $(top_srcdir)/../../m4/kpse-cxx-hack.m4 \
+ $(top_srcdir)/../../m4/kpse-icu-flags.m4 \
+ $(top_srcdir)/../../m4/kpse-kpathsea-flags.m4 \
+ $(top_srcdir)/../../m4/kpse-search-libs.m4 \
+ $(top_srcdir)/../../m4/kpse-warnings.m4 \
+ $(top_srcdir)/../../m4/libtool.m4 \
+ $(top_srcdir)/../../m4/ltoptions.m4 \
+ $(top_srcdir)/../../m4/ltsugar.m4 \
+ $(top_srcdir)/../../m4/ltversion.m4 \
+ $(top_srcdir)/../../m4/lt~obsolete.m4 \
+ $(top_srcdir)/ac/bibtex-x.ac $(top_srcdir)/../../version.ac \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
+ $(am__configure_deps) $(dist_btdoc_DATA) $(dist_btudoc_DATA) \
+ $(dist_btuex_DATA) $(dist_csf_DATA) $(am__DIST_COMMON)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+@BIBTEX8_TRUE@am__EXEEXT_1 = bibtex8$(EXEEXT)
+@BIBTEXU_TRUE@am__EXEEXT_2 = bibtexu$(EXEEXT)
+am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
+ "$(DESTDIR)$(btdocdir)" "$(DESTDIR)$(btudocdir)" \
+ "$(DESTDIR)$(btuexdir)" "$(DESTDIR)$(csfdir)"
+PROGRAMS = $(bin_PROGRAMS)
+am__objects_1 = bibtex8-bibtex-1.$(OBJEXT) bibtex8-bibtex-2.$(OBJEXT) \
+ bibtex8-bibtex-3.$(OBJEXT) bibtex8-bibtex-4.$(OBJEXT) \
+ bibtex8-bibtex.$(OBJEXT) bibtex8-utils.$(OBJEXT)
+am_bibtex8_OBJECTS = $(am__objects_1)
+bibtex8_OBJECTS = $(am_bibtex8_OBJECTS)
+am__DEPENDENCIES_1 =
+bibtex8_DEPENDENCIES = $(am__DEPENDENCIES_1)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 =
+am__objects_2 = bibtexu-bibtex-1.$(OBJEXT) bibtexu-bibtex-2.$(OBJEXT) \
+ bibtexu-bibtex-3.$(OBJEXT) bibtexu-bibtex-4.$(OBJEXT) \
+ bibtexu-bibtex.$(OBJEXT) bibtexu-utils.$(OBJEXT)
+am_bibtexu_OBJECTS = $(am__objects_2)
+bibtexu_OBJECTS = $(am_bibtexu_OBJECTS)
+bibtexu_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+DEFAULT_INCLUDES = -I.@am__isrc@
+depcomp = $(SHELL) $(top_srcdir)/../../build-aux/depcomp
+am__maybe_remake_depfiles = depfiles
+am__depfiles_remade = ./$(DEPDIR)/bibtex8-bibtex-1.Po \
+ ./$(DEPDIR)/bibtex8-bibtex-2.Po \
+ ./$(DEPDIR)/bibtex8-bibtex-3.Po \
+ ./$(DEPDIR)/bibtex8-bibtex-4.Po ./$(DEPDIR)/bibtex8-bibtex.Po \
+ ./$(DEPDIR)/bibtex8-utils.Po ./$(DEPDIR)/bibtexu-bibtex-1.Po \
+ ./$(DEPDIR)/bibtexu-bibtex-2.Po \
+ ./$(DEPDIR)/bibtexu-bibtex-3.Po \
+ ./$(DEPDIR)/bibtexu-bibtex-4.Po ./$(DEPDIR)/bibtexu-bibtex.Po \
+ ./$(DEPDIR)/bibtexu-dummy.Po ./$(DEPDIR)/bibtexu-utils.Po
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo " CC " $@;
+am__v_CC_1 =
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_1 =
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CXXFLAGS) $(CXXFLAGS)
+AM_V_CXX = $(am__v_CXX_@AM_V@)
+am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
+am__v_CXX_0 = @echo " CXX " $@;
+am__v_CXX_1 =
+CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
+am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
+am__v_CXXLD_0 = @echo " CXXLD " $@;
+am__v_CXXLD_1 =
+SOURCES = $(bibtex8_SOURCES) $(bibtexu_SOURCES) \
+ $(nodist_EXTRA_bibtexu_SOURCES)
+DIST_SOURCES = $(bibtex8_SOURCES) $(bibtexu_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+man1dir = $(mandir)/man1
+NROFF = nroff
+MANS = $(dist_man1_MANS)
+DATA = $(dist_btdoc_DATA) $(dist_btudoc_DATA) $(dist_btuex_DATA) \
+ $(dist_csf_DATA)
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
+ config.h.in
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
+AM_RECURSIVE_TARGETS = cscope check recheck
+am__tty_colors_dummy = \
+ mgn= red= grn= lgn= blu= brg= std=; \
+ am__color_tests=no
+am__tty_colors = { \
+ $(am__tty_colors_dummy); \
+ if test "X$(AM_COLOR_TESTS)" = Xno; then \
+ am__color_tests=no; \
+ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
+ am__color_tests=yes; \
+ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
+ am__color_tests=yes; \
+ fi; \
+ if test $$am__color_tests = yes; then \
+ red=''; \
+ grn=''; \
+ lgn=''; \
+ blu=''; \
+ mgn=''; \
+ brg=''; \
+ std=''; \
+ fi; \
+}
+am__recheck_rx = ^[ ]*:recheck:[ ]*
+am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
+am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
+# A command that, given a newline-separated list of test names on the
+# standard input, print the name of the tests that are to be re-run
+# upon "make recheck".
+am__list_recheck_tests = $(AWK) '{ \
+ recheck = 1; \
+ while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+ { \
+ if (rc < 0) \
+ { \
+ if ((getline line2 < ($$0 ".log")) < 0) \
+ recheck = 0; \
+ break; \
+ } \
+ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
+ { \
+ recheck = 0; \
+ break; \
+ } \
+ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
+ { \
+ break; \
+ } \
+ }; \
+ if (recheck) \
+ print $$0; \
+ close ($$0 ".trs"); \
+ close ($$0 ".log"); \
+}'
+# A command that, given a newline-separated list of test names on the
+# standard input, create the global log from their .trs and .log files.
+am__create_global_log = $(AWK) ' \
+function fatal(msg) \
+{ \
+ print "fatal: making $@: " msg | "cat >&2"; \
+ exit 1; \
+} \
+function rst_section(header) \
+{ \
+ print header; \
+ len = length(header); \
+ for (i = 1; i <= len; i = i + 1) \
+ printf "="; \
+ printf "\n\n"; \
+} \
+{ \
+ copy_in_global_log = 1; \
+ global_test_result = "RUN"; \
+ while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+ { \
+ if (rc < 0) \
+ fatal("failed to read from " $$0 ".trs"); \
+ if (line ~ /$(am__global_test_result_rx)/) \
+ { \
+ sub("$(am__global_test_result_rx)", "", line); \
+ sub("[ ]*$$", "", line); \
+ global_test_result = line; \
+ } \
+ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
+ copy_in_global_log = 0; \
+ }; \
+ if (copy_in_global_log) \
+ { \
+ rst_section(global_test_result ": " $$0); \
+ while ((rc = (getline line < ($$0 ".log"))) != 0) \
+ { \
+ if (rc < 0) \
+ fatal("failed to read from " $$0 ".log"); \
+ print line; \
+ }; \
+ printf "\n"; \
+ }; \
+ close ($$0 ".trs"); \
+ close ($$0 ".log"); \
+}'
+# Restructured Text title.
+am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
+# Solaris 10 'make', and several other traditional 'make' implementations,
+# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
+# by disabling -e (using the XSI extension "set +e") if it's set.
+am__sh_e_setup = case $$- in *e*) set +e;; esac
+# Default flags passed to test drivers.
+am__common_driver_flags = \
+ --color-tests "$$am__color_tests" \
+ --enable-hard-errors "$$am__enable_hard_errors" \
+ --expect-failure "$$am__expect_failure"
+# To be inserted before the command running the test. Creates the
+# directory for the log if needed. Stores in $dir the directory
+# containing $f, in $tst the test, in $log the log. Executes the
+# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
+# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
+# will run the test scripts (or their associated LOG_COMPILER, if
+# thy have one).
+am__check_pre = \
+$(am__sh_e_setup); \
+$(am__vpath_adj_setup) $(am__vpath_adj) \
+$(am__tty_colors); \
+srcdir=$(srcdir); export srcdir; \
+case "$@" in \
+ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
+ *) am__odir=.;; \
+esac; \
+test "x$$am__odir" = x"." || test -d "$$am__odir" \
+ || $(MKDIR_P) "$$am__odir" || exit $$?; \
+if test -f "./$$f"; then dir=./; \
+elif test -f "$$f"; then dir=; \
+else dir="$(srcdir)/"; fi; \
+tst=$$dir$$f; log='$@'; \
+if test -n '$(DISABLE_HARD_ERRORS)'; then \
+ am__enable_hard_errors=no; \
+else \
+ am__enable_hard_errors=yes; \
+fi; \
+case " $(XFAIL_TESTS) " in \
+ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
+ am__expect_failure=yes;; \
+ *) \
+ am__expect_failure=no;; \
+esac; \
+$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
+# A shell command to get the names of the tests scripts with any registered
+# extension removed (i.e., equivalently, the names of the test logs, with
+# the '.log' extension removed). The result is saved in the shell variable
+# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
+# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
+# since that might cause problem with VPATH rewrites for suffix-less tests.
+# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
+am__set_TESTS_bases = \
+ bases='$(TEST_LOGS)'; \
+ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
+ bases=`echo $$bases`
+AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
+RECHECK_LOGS = $(TEST_LOGS)
+TEST_SUITE_LOG = test-suite.log
+TEST_EXTENSIONS = @EXEEXT@ .test
+am__test_logs1 = $(TESTS:=.log)
+am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
+TEST_LOGS = $(am__test_logs2:.test.log=.log)
+TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/../../build-aux/test-driver
+TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
+ $(TEST_LOG_FLAGS)
+am__set_b = \
+ case '$@' in \
+ */*) \
+ case '$*' in \
+ */*) b='$*';; \
+ *) b=`echo '$@' | sed 's/\.log$$//'`; \
+ esac;; \
+ *) \
+ b='$*';; \
+ esac
+am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in \
+ $(srcdir)/config.h.in $(top_srcdir)/../../build-aux/compile \
+ $(top_srcdir)/../../build-aux/config.guess \
+ $(top_srcdir)/../../build-aux/config.sub \
+ $(top_srcdir)/../../build-aux/depcomp \
+ $(top_srcdir)/../../build-aux/install-sh \
+ $(top_srcdir)/../../build-aux/ltmain.sh \
+ $(top_srcdir)/../../build-aux/missing \
+ $(top_srcdir)/../../build-aux/test-driver \
+ ../../build-aux/ar-lib ../../build-aux/compile \
+ ../../build-aux/config.guess ../../build-aux/config.sub \
+ ../../build-aux/depcomp ../../build-aux/install-sh \
+ ../../build-aux/ltmain.sh ../../build-aux/missing \
+ ../../build-aux/texinfo.tex ../../build-aux/ylwrap COPYING \
+ ChangeLog
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ if test -d "$(distdir)"; then \
+ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -rf "$(distdir)" \
+ || { sleep 5 && rm -rf "$(distdir)"; }; \
+ else :; fi
+am__post_remove_distdir = $(am__remove_distdir)
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+DIST_TARGETS = dist-gzip
+# Exists only to be overridden by the user if desired.
+AM_DISTCHECK_DVI_TARGET = dvi
+distuninstallcheck_listfiles = find . -type f -print
+am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
+CSCOPE = @CSCOPE@
+CTAGS = @CTAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CXXLD = @CXXLD@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ETAGS = @ETAGS@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_DEPEND = @ICU_DEPEND@
+ICU_INCLUDES = @ICU_INCLUDES@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+KPATHSEA_DEPEND = @KPATHSEA_DEPEND@
+KPATHSEA_INCLUDES = @KPATHSEA_INCLUDES@
+KPATHSEA_LIBS = @KPATHSEA_LIBS@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_LIB = @PTHREAD_LIB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+WARNING_CFLAGS = @WARNING_CFLAGS@
+WARNING_CXXFLAGS = @WARNING_CXXFLAGS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+runstatedir = @runstatedir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+AM_CPPFLAGS = $(KPATHSEA_INCLUDES) -DUNIX -DKPATHSEA
+AM_CFLAGS = $(WARNING_CFLAGS)
+common_sources = \
+ bibtex-1.c \
+ bibtex-2.c \
+ bibtex-3.c \
+ bibtex-4.c \
+ bibtex.c \
+ bibtex.h \
+ datatype.h \
+ gblprocs.h \
+ gblvars.h \
+ utils.c \
+ utils.h \
+ version.h \
+ sysdep.h
+
+bibtex8_SOURCES = $(common_sources)
+bibtex8_CPPFLAGS = $(AM_CPPFLAGS) -DSUPPORT_8BIT
+bibtex8_LDADD = $(KPATHSEA_LIBS)
+bibtexu_SOURCES = $(common_sources)
+# Force Automake to use CXXLD for linking
+nodist_EXTRA_bibtexu_SOURCES = dummy.cxx
+bibtexu_CPPFLAGS = $(AM_CPPFLAGS) $(ICU_INCLUDES) -DUTF_8
+bibtexu_LDADD = $(KPATHSEA_LIBS) $(ICU_LIBS) $(PTHREAD_LIB) $(ICU_LIBS_EXTRA)
+dist_man1_MANS = bibtex8.1 bibtexu.1
+
+### BibTeX8 distribution
+csfdir = $(datarootdir)/texmf-dist/bibtex/csf/base
+dist_csf_DATA = \
+ csf/88591lat.csf \
+ csf/88591sca.csf \
+ csf/ascii.csf \
+ csf/cp437lat.csf \
+ csf/cp850lat.csf \
+ csf/cp850sca.csf \
+ csf/cp866rus.csf \
+ csf/csfile.txt
+
+btdocdir = $(datarootdir)/texmf-dist/doc/bibtex8
+dist_btdoc_DATA = \
+ 00bibtex8-readme.txt \
+ 00bibtex8-history.txt \
+ file_id.diz \
+ csf/csfile.txt
+
+
+### BibTeXu distribution
+btudocdir = $(datarootdir)/texmf-dist/doc/bibtexu
+btuexdir = $(datarootdir)/texmf-dist/doc/bibtexu/examples
+dist_btudoc_DATA = \
+ 01bibtexu-doc/README
+
+dist_btuex_DATA = \
+ 01bibtexu-doc/examples/test.bbl \
+ 01bibtexu-doc/examples/test.bib \
+ 01bibtexu-doc/examples/test.pdf \
+ 01bibtexu-doc/examples/test.tex
+
+bibtex8_tests = tests/bibtex8.test tests/bibtex8u-mem.test \
+ tests/bibtex8-sort.test tests/bibtex8-char.test
+
+bibtexu_tests = tests/bibtexu.test tests/bibtexu-basic.test \
+ tests/bibtexu-range.test tests/bibtexu-yannis.test \
+ tests/bibtexu-sort.test tests/bibtexu-char.test
+
+TESTS = $(am__append_3) $(am__append_4)
+EXTRA_DIST = $(bibtex8_tests) $(bibtexu_tests) tests/exampl.bbl \
+ tests/sort.aux tests/sort1.bbl tests/sort2.bbl tests/sort3.bbl \
+ tests/sort1.csf tests/sort2.csf tests/sort3.csf \
+ tests/testdata.bib tests/teststyle.bst tests/sort1.bbl \
+ tests/sort2.bbl tests/sort3.bbl tests/casea.aux \
+ tests/casea.bbl tests/testcasea.bib tests/testcase.bst \
+ tests/perioda.aux tests/perioda.bbl tests/testperioda.bib \
+ tests/testperiod.bst tests/substra.aux tests/substra.bbl \
+ tests/testsubstra.bib tests/testsubstr.bst tests/txtprfxa.aux \
+ tests/txtprfxa.bbl tests/testtxtprfx.bst tests/widtha.aux \
+ tests/widtha.bbl tests/testwidtha.bib tests/testwidth.bst \
+ tests/chara.aux tests/chara.bbl tests/testchara.bib \
+ tests/testchar.bst tests/namea.aux tests/namea.bbl \
+ tests/ltnbib.bib tests/testname.bst tests/ubasic.aux \
+ tests/ubasic.bbl tests/ubasic.bib tests/urange.aux \
+ tests/urange.bbl tests/urange.bib tests/yannis.aux \
+ tests/yannis.bbl tests/yannis.bib tests/sortu.aux \
+ tests/sortu-az.bbl tests/sortu-da.bbl tests/sortu-en.bbl \
+ tests/sortu-fi.bbl tests/sortu-tr.bbl tests/testsortu.bib \
+ tests/caseu.aux tests/caseu.bbl tests/testcaseu.bib \
+ tests/periodu.aux tests/periodu.bbl tests/testperiodu.bib \
+ tests/substru.aux tests/substru.bbl tests/testsubstru.bib \
+ tests/txtprfxu.aux tests/txtprfxu.bbl tests/widthu.aux \
+ tests/widthu.bbl tests/testwidthu.bib tests/charu.aux \
+ tests/charu.bbl tests/testcharu.bib tests/nameu.aux \
+ tests/nameu.bbl tests/mlgbib.bib tests/iscjku.aux \
+ tests/iscjku.bbl tests/testiscjku.bib tests/testiscjk.bst \
+ dos-dj.mak dos-emx.mak os2.mak unix.mak
+DISTCLEANFILES = tests/xexampl.aux tests/xexampl.bbl tests/xexampl.blg \
+ tests/memtest.bib tests/memtest?.* tests/memtestu?.* \
+ tests/xsort[123].aux tests/xsort[123].bbl tests/xsort[123].blg \
+ tests/xcase[123].aux tests/xcase[123].bbl tests/xcase[123].blg \
+ tests/xsubstra.aux tests/xsubstra.bbl tests/xsubstra.blg \
+ tests/xtxtprfxa.aux tests/txtprfxa.bbl tests/xtxtprfxa.blg \
+ tests/xwidtha.aux tests/widtha.bbl tests/xwidtha.blg \
+ tests/xchara.aux tests/xchara.bbl tests/xchara.blg \
+ tests/xnamea.aux tests/xnamea.bbl tests/xnamea.blg \
+ tests/xubasic.aux tests/xubasic.bbl tests/xubasic.blg \
+ tests/xurange.aux tests/xurange.bbl tests/xurange.blg \
+ tests/xyannis.aux tests/xyannis.bbl tests/xyannis.blg \
+ tests/xsortu-*.aux tests/xsortu-*.bbl tests/xsortu-*.blg \
+ tests/xcaseu.aux tests/xcaseu.bbl tests/xcaseu.blg \
+ tests/xperiodu.aux tests/xperiodu.bbl tests/xperiodu.blg \
+ tests/xsubstru.aux tests/xsubstru.bbl tests/xsubstru.blg \
+ tests/xtxtprfxu.aux tests/txtprfxu.bbl tests/xtxtprfxu.blg \
+ tests/xwidthu.aux tests/widthu.bbl tests/xwidthu.blg \
+ tests/xcharu.aux tests/xcharu.bbl tests/xcharu.blg \
+ tests/xnameu.aux tests/xnameu.bbl tests/xnameu.blg \
+ tests/xiscjku.aux tests/xiscjku.bbl tests/xiscjku.blg
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .cxx .lo .log .o .obj .test .test$(EXEEXT) .trs
+am--refresh: Makefile
+ @:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ $(am__cd) $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
+
+config.h: stamp-h1
+ @test -f $@ || rm -f stamp-h1
+ @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
+
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+ @rm -f stamp-h1
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
+$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
+ fi; \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed 's/$(EXEEXT)$$//' | \
+ while read p p1; do if test -f $$p \
+ || test -f $$p1 \
+ ; then echo "$$p"; echo "$$p"; else :; fi; \
+ done | \
+ sed -e 'p;s,.*/,,;n;h' \
+ -e 's|.*|.|' \
+ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+ sed 'N;N;N;s,\n, ,g' | \
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+ if ($$2 == $$4) files[d] = files[d] " " $$1; \
+ else { print "f", $$3 "/" $$4, $$1; } } \
+ END { for (d in files) print "f", d, files[d] }' | \
+ while read type dir files; do \
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+ test -z "$$files" || { \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+ } \
+ ; done
+
+uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+ files=`for p in $$list; do echo "$$p"; done | \
+ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+ -e 's/$$/$(EXEEXT)/' \
+ `; \
+ test -n "$$list" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(bindir)" && rm -f $$files
+
+clean-binPROGRAMS:
+ @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
+ echo " rm -f" $$list; \
+ rm -f $$list || exit $$?; \
+ test -n "$(EXEEXT)" || exit 0; \
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f" $$list; \
+ rm -f $$list
+
+bibtex8$(EXEEXT): $(bibtex8_OBJECTS) $(bibtex8_DEPENDENCIES) $(EXTRA_bibtex8_DEPENDENCIES)
+ @rm -f bibtex8$(EXEEXT)
+ $(AM_V_CCLD)$(LINK) $(bibtex8_OBJECTS) $(bibtex8_LDADD) $(LIBS)
+
+bibtexu$(EXEEXT): $(bibtexu_OBJECTS) $(bibtexu_DEPENDENCIES) $(EXTRA_bibtexu_DEPENDENCIES)
+ @rm -f bibtexu$(EXEEXT)
+ $(AM_V_CXXLD)$(CXXLINK) $(bibtexu_OBJECTS) $(bibtexu_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtex8-bibtex-1.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtex8-bibtex-2.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtex8-bibtex-3.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtex8-bibtex-4.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtex8-bibtex.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtex8-utils.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtexu-bibtex-1.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtexu-bibtex-2.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtexu-bibtex-3.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtexu-bibtex-4.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtexu-bibtex.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtexu-dummy.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bibtexu-utils.Po@am__quote@ # am--include-marker
+
+$(am__depfiles_remade):
+ @$(MKDIR_P) $(@D)
+ @echo '# dummy' >$@-t && $(am__mv) $@-t $@
+
+am--depfiles: $(am__depfiles_remade)
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
+
+bibtex8-bibtex-1.o: bibtex-1.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-1.o -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-1.Tpo -c -o bibtex8-bibtex-1.o `test -f 'bibtex-1.c' || echo '$(srcdir)/'`bibtex-1.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-1.Tpo $(DEPDIR)/bibtex8-bibtex-1.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-1.c' object='bibtex8-bibtex-1.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-1.o `test -f 'bibtex-1.c' || echo '$(srcdir)/'`bibtex-1.c
+
+bibtex8-bibtex-1.obj: bibtex-1.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-1.obj -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-1.Tpo -c -o bibtex8-bibtex-1.obj `if test -f 'bibtex-1.c'; then $(CYGPATH_W) 'bibtex-1.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-1.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-1.Tpo $(DEPDIR)/bibtex8-bibtex-1.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-1.c' object='bibtex8-bibtex-1.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-1.obj `if test -f 'bibtex-1.c'; then $(CYGPATH_W) 'bibtex-1.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-1.c'; fi`
+
+bibtex8-bibtex-2.o: bibtex-2.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-2.o -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-2.Tpo -c -o bibtex8-bibtex-2.o `test -f 'bibtex-2.c' || echo '$(srcdir)/'`bibtex-2.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-2.Tpo $(DEPDIR)/bibtex8-bibtex-2.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-2.c' object='bibtex8-bibtex-2.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-2.o `test -f 'bibtex-2.c' || echo '$(srcdir)/'`bibtex-2.c
+
+bibtex8-bibtex-2.obj: bibtex-2.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-2.obj -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-2.Tpo -c -o bibtex8-bibtex-2.obj `if test -f 'bibtex-2.c'; then $(CYGPATH_W) 'bibtex-2.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-2.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-2.Tpo $(DEPDIR)/bibtex8-bibtex-2.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-2.c' object='bibtex8-bibtex-2.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-2.obj `if test -f 'bibtex-2.c'; then $(CYGPATH_W) 'bibtex-2.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-2.c'; fi`
+
+bibtex8-bibtex-3.o: bibtex-3.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-3.o -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-3.Tpo -c -o bibtex8-bibtex-3.o `test -f 'bibtex-3.c' || echo '$(srcdir)/'`bibtex-3.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-3.Tpo $(DEPDIR)/bibtex8-bibtex-3.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-3.c' object='bibtex8-bibtex-3.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-3.o `test -f 'bibtex-3.c' || echo '$(srcdir)/'`bibtex-3.c
+
+bibtex8-bibtex-3.obj: bibtex-3.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-3.obj -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-3.Tpo -c -o bibtex8-bibtex-3.obj `if test -f 'bibtex-3.c'; then $(CYGPATH_W) 'bibtex-3.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-3.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-3.Tpo $(DEPDIR)/bibtex8-bibtex-3.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-3.c' object='bibtex8-bibtex-3.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-3.obj `if test -f 'bibtex-3.c'; then $(CYGPATH_W) 'bibtex-3.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-3.c'; fi`
+
+bibtex8-bibtex-4.o: bibtex-4.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-4.o -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-4.Tpo -c -o bibtex8-bibtex-4.o `test -f 'bibtex-4.c' || echo '$(srcdir)/'`bibtex-4.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-4.Tpo $(DEPDIR)/bibtex8-bibtex-4.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-4.c' object='bibtex8-bibtex-4.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-4.o `test -f 'bibtex-4.c' || echo '$(srcdir)/'`bibtex-4.c
+
+bibtex8-bibtex-4.obj: bibtex-4.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex-4.obj -MD -MP -MF $(DEPDIR)/bibtex8-bibtex-4.Tpo -c -o bibtex8-bibtex-4.obj `if test -f 'bibtex-4.c'; then $(CYGPATH_W) 'bibtex-4.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-4.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex-4.Tpo $(DEPDIR)/bibtex8-bibtex-4.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-4.c' object='bibtex8-bibtex-4.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex-4.obj `if test -f 'bibtex-4.c'; then $(CYGPATH_W) 'bibtex-4.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-4.c'; fi`
+
+bibtex8-bibtex.o: bibtex.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex.o -MD -MP -MF $(DEPDIR)/bibtex8-bibtex.Tpo -c -o bibtex8-bibtex.o `test -f 'bibtex.c' || echo '$(srcdir)/'`bibtex.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex.Tpo $(DEPDIR)/bibtex8-bibtex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex.c' object='bibtex8-bibtex.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex.o `test -f 'bibtex.c' || echo '$(srcdir)/'`bibtex.c
+
+bibtex8-bibtex.obj: bibtex.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-bibtex.obj -MD -MP -MF $(DEPDIR)/bibtex8-bibtex.Tpo -c -o bibtex8-bibtex.obj `if test -f 'bibtex.c'; then $(CYGPATH_W) 'bibtex.c'; else $(CYGPATH_W) '$(srcdir)/bibtex.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-bibtex.Tpo $(DEPDIR)/bibtex8-bibtex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex.c' object='bibtex8-bibtex.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-bibtex.obj `if test -f 'bibtex.c'; then $(CYGPATH_W) 'bibtex.c'; else $(CYGPATH_W) '$(srcdir)/bibtex.c'; fi`
+
+bibtex8-utils.o: utils.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-utils.o -MD -MP -MF $(DEPDIR)/bibtex8-utils.Tpo -c -o bibtex8-utils.o `test -f 'utils.c' || echo '$(srcdir)/'`utils.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-utils.Tpo $(DEPDIR)/bibtex8-utils.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils.c' object='bibtex8-utils.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-utils.o `test -f 'utils.c' || echo '$(srcdir)/'`utils.c
+
+bibtex8-utils.obj: utils.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtex8-utils.obj -MD -MP -MF $(DEPDIR)/bibtex8-utils.Tpo -c -o bibtex8-utils.obj `if test -f 'utils.c'; then $(CYGPATH_W) 'utils.c'; else $(CYGPATH_W) '$(srcdir)/utils.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtex8-utils.Tpo $(DEPDIR)/bibtex8-utils.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils.c' object='bibtex8-utils.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtex8_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtex8-utils.obj `if test -f 'utils.c'; then $(CYGPATH_W) 'utils.c'; else $(CYGPATH_W) '$(srcdir)/utils.c'; fi`
+
+bibtexu-bibtex-1.o: bibtex-1.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-1.o -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-1.Tpo -c -o bibtexu-bibtex-1.o `test -f 'bibtex-1.c' || echo '$(srcdir)/'`bibtex-1.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-1.Tpo $(DEPDIR)/bibtexu-bibtex-1.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-1.c' object='bibtexu-bibtex-1.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-1.o `test -f 'bibtex-1.c' || echo '$(srcdir)/'`bibtex-1.c
+
+bibtexu-bibtex-1.obj: bibtex-1.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-1.obj -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-1.Tpo -c -o bibtexu-bibtex-1.obj `if test -f 'bibtex-1.c'; then $(CYGPATH_W) 'bibtex-1.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-1.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-1.Tpo $(DEPDIR)/bibtexu-bibtex-1.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-1.c' object='bibtexu-bibtex-1.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-1.obj `if test -f 'bibtex-1.c'; then $(CYGPATH_W) 'bibtex-1.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-1.c'; fi`
+
+bibtexu-bibtex-2.o: bibtex-2.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-2.o -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-2.Tpo -c -o bibtexu-bibtex-2.o `test -f 'bibtex-2.c' || echo '$(srcdir)/'`bibtex-2.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-2.Tpo $(DEPDIR)/bibtexu-bibtex-2.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-2.c' object='bibtexu-bibtex-2.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-2.o `test -f 'bibtex-2.c' || echo '$(srcdir)/'`bibtex-2.c
+
+bibtexu-bibtex-2.obj: bibtex-2.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-2.obj -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-2.Tpo -c -o bibtexu-bibtex-2.obj `if test -f 'bibtex-2.c'; then $(CYGPATH_W) 'bibtex-2.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-2.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-2.Tpo $(DEPDIR)/bibtexu-bibtex-2.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-2.c' object='bibtexu-bibtex-2.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-2.obj `if test -f 'bibtex-2.c'; then $(CYGPATH_W) 'bibtex-2.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-2.c'; fi`
+
+bibtexu-bibtex-3.o: bibtex-3.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-3.o -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-3.Tpo -c -o bibtexu-bibtex-3.o `test -f 'bibtex-3.c' || echo '$(srcdir)/'`bibtex-3.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-3.Tpo $(DEPDIR)/bibtexu-bibtex-3.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-3.c' object='bibtexu-bibtex-3.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-3.o `test -f 'bibtex-3.c' || echo '$(srcdir)/'`bibtex-3.c
+
+bibtexu-bibtex-3.obj: bibtex-3.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-3.obj -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-3.Tpo -c -o bibtexu-bibtex-3.obj `if test -f 'bibtex-3.c'; then $(CYGPATH_W) 'bibtex-3.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-3.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-3.Tpo $(DEPDIR)/bibtexu-bibtex-3.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-3.c' object='bibtexu-bibtex-3.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-3.obj `if test -f 'bibtex-3.c'; then $(CYGPATH_W) 'bibtex-3.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-3.c'; fi`
+
+bibtexu-bibtex-4.o: bibtex-4.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-4.o -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-4.Tpo -c -o bibtexu-bibtex-4.o `test -f 'bibtex-4.c' || echo '$(srcdir)/'`bibtex-4.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-4.Tpo $(DEPDIR)/bibtexu-bibtex-4.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-4.c' object='bibtexu-bibtex-4.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-4.o `test -f 'bibtex-4.c' || echo '$(srcdir)/'`bibtex-4.c
+
+bibtexu-bibtex-4.obj: bibtex-4.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex-4.obj -MD -MP -MF $(DEPDIR)/bibtexu-bibtex-4.Tpo -c -o bibtexu-bibtex-4.obj `if test -f 'bibtex-4.c'; then $(CYGPATH_W) 'bibtex-4.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-4.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex-4.Tpo $(DEPDIR)/bibtexu-bibtex-4.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex-4.c' object='bibtexu-bibtex-4.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex-4.obj `if test -f 'bibtex-4.c'; then $(CYGPATH_W) 'bibtex-4.c'; else $(CYGPATH_W) '$(srcdir)/bibtex-4.c'; fi`
+
+bibtexu-bibtex.o: bibtex.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex.o -MD -MP -MF $(DEPDIR)/bibtexu-bibtex.Tpo -c -o bibtexu-bibtex.o `test -f 'bibtex.c' || echo '$(srcdir)/'`bibtex.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex.Tpo $(DEPDIR)/bibtexu-bibtex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex.c' object='bibtexu-bibtex.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex.o `test -f 'bibtex.c' || echo '$(srcdir)/'`bibtex.c
+
+bibtexu-bibtex.obj: bibtex.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-bibtex.obj -MD -MP -MF $(DEPDIR)/bibtexu-bibtex.Tpo -c -o bibtexu-bibtex.obj `if test -f 'bibtex.c'; then $(CYGPATH_W) 'bibtex.c'; else $(CYGPATH_W) '$(srcdir)/bibtex.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-bibtex.Tpo $(DEPDIR)/bibtexu-bibtex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bibtex.c' object='bibtexu-bibtex.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-bibtex.obj `if test -f 'bibtex.c'; then $(CYGPATH_W) 'bibtex.c'; else $(CYGPATH_W) '$(srcdir)/bibtex.c'; fi`
+
+bibtexu-utils.o: utils.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-utils.o -MD -MP -MF $(DEPDIR)/bibtexu-utils.Tpo -c -o bibtexu-utils.o `test -f 'utils.c' || echo '$(srcdir)/'`utils.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-utils.Tpo $(DEPDIR)/bibtexu-utils.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils.c' object='bibtexu-utils.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-utils.o `test -f 'utils.c' || echo '$(srcdir)/'`utils.c
+
+bibtexu-utils.obj: utils.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bibtexu-utils.obj -MD -MP -MF $(DEPDIR)/bibtexu-utils.Tpo -c -o bibtexu-utils.obj `if test -f 'utils.c'; then $(CYGPATH_W) 'utils.c'; else $(CYGPATH_W) '$(srcdir)/utils.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-utils.Tpo $(DEPDIR)/bibtexu-utils.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils.c' object='bibtexu-utils.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bibtexu-utils.obj `if test -f 'utils.c'; then $(CYGPATH_W) 'utils.c'; else $(CYGPATH_W) '$(srcdir)/utils.c'; fi`
+
+.cxx.o:
+@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
+@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
+
+.cxx.obj:
+@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
+@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
+@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cxx.lo:
+@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
+@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
+
+bibtexu-dummy.o: dummy.cxx
+@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT bibtexu-dummy.o -MD -MP -MF $(DEPDIR)/bibtexu-dummy.Tpo -c -o bibtexu-dummy.o `test -f 'dummy.cxx' || echo '$(srcdir)/'`dummy.cxx
+@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-dummy.Tpo $(DEPDIR)/bibtexu-dummy.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dummy.cxx' object='bibtexu-dummy.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o bibtexu-dummy.o `test -f 'dummy.cxx' || echo '$(srcdir)/'`dummy.cxx
+
+bibtexu-dummy.obj: dummy.cxx
+@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT bibtexu-dummy.obj -MD -MP -MF $(DEPDIR)/bibtexu-dummy.Tpo -c -o bibtexu-dummy.obj `if test -f 'dummy.cxx'; then $(CYGPATH_W) 'dummy.cxx'; else $(CYGPATH_W) '$(srcdir)/dummy.cxx'; fi`
+@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bibtexu-dummy.Tpo $(DEPDIR)/bibtexu-dummy.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dummy.cxx' object='bibtexu-dummy.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bibtexu_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o bibtexu-dummy.obj `if test -f 'dummy.cxx'; then $(CYGPATH_W) 'dummy.cxx'; else $(CYGPATH_W) '$(srcdir)/dummy.cxx'; fi`
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool config.lt
+install-man1: $(dist_man1_MANS)
+ @$(NORMAL_INSTALL)
+ @list1='$(dist_man1_MANS)'; \
+ list2=''; \
+ test -n "$(man1dir)" \
+ && test -n "`echo $$list1$$list2`" \
+ || exit 0; \
+ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
+ { for i in $$list1; do echo "$$i"; done; \
+ if test -n "$$list2"; then \
+ for i in $$list2; do echo "$$i"; done \
+ | sed -n '/\.1[a-z]*$$/p'; \
+ fi; \
+ } | while read p; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; echo "$$p"; \
+ done | \
+ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
+ sed 'N;N;s,\n, ,g' | { \
+ list=; while read file base inst; do \
+ if test "$$base" = "$$inst"; then list="$$list $$file"; else \
+ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
+ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
+ fi; \
+ done; \
+ for i in $$list; do echo "$$i"; done | $(am__base_list) | \
+ while read files; do \
+ test -z "$$files" || { \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
+ done; }
+
+uninstall-man1:
+ @$(NORMAL_UNINSTALL)
+ @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \
+ files=`{ for i in $$list; do echo "$$i"; done; \
+ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
+ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
+install-dist_btdocDATA: $(dist_btdoc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(dist_btdoc_DATA)'; test -n "$(btdocdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(btdocdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(btdocdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(btdocdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(btdocdir)" || exit $$?; \
+ done
+
+uninstall-dist_btdocDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(dist_btdoc_DATA)'; test -n "$(btdocdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(btdocdir)'; $(am__uninstall_files_from_dir)
+install-dist_btudocDATA: $(dist_btudoc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(dist_btudoc_DATA)'; test -n "$(btudocdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(btudocdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(btudocdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(btudocdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(btudocdir)" || exit $$?; \
+ done
+
+uninstall-dist_btudocDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(dist_btudoc_DATA)'; test -n "$(btudocdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(btudocdir)'; $(am__uninstall_files_from_dir)
+install-dist_btuexDATA: $(dist_btuex_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(dist_btuex_DATA)'; test -n "$(btuexdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(btuexdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(btuexdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(btuexdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(btuexdir)" || exit $$?; \
+ done
+
+uninstall-dist_btuexDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(dist_btuex_DATA)'; test -n "$(btuexdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(btuexdir)'; $(am__uninstall_files_from_dir)
+install-dist_csfDATA: $(dist_csf_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(dist_csf_DATA)'; test -n "$(csfdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(csfdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(csfdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(csfdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(csfdir)" || exit $$?; \
+ done
+
+uninstall-dist_csfDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(dist_csf_DATA)'; test -n "$(csfdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(csfdir)'; $(am__uninstall_files_from_dir)
+
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ set x; \
+ here=`pwd`; \
+ $(am__define_uniq_tagged_files); \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+cscope: cscope.files
+ test ! -s cscope.files \
+ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
+clean-cscope:
+ -rm -f cscope.files
+cscope.files: clean-cscope cscopelist
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+ -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
+
+# Recover from deleted '.trs' file; this should ensure that
+# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
+# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
+# to avoid problems with "make -n".
+.log.trs:
+ rm -f $< $@
+ $(MAKE) $(AM_MAKEFLAGS) $<
+
+# Leading 'am--fnord' is there to ensure the list of targets does not
+# expand to empty, as could happen e.g. with make check TESTS=''.
+am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
+am--force-recheck:
+ @:
+
+$(TEST_SUITE_LOG): $(TEST_LOGS)
+ @$(am__set_TESTS_bases); \
+ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
+ redo_bases=`for i in $$bases; do \
+ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
+ done`; \
+ if test -n "$$redo_bases"; then \
+ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
+ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
+ if $(am__make_dryrun); then :; else \
+ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
+ fi; \
+ fi; \
+ if test -n "$$am__remaking_logs"; then \
+ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
+ "recursion detected" >&2; \
+ elif test -n "$$redo_logs"; then \
+ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
+ fi; \
+ if $(am__make_dryrun); then :; else \
+ st=0; \
+ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
+ for i in $$redo_bases; do \
+ test -f $$i.trs && test -r $$i.trs \
+ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
+ test -f $$i.log && test -r $$i.log \
+ || { echo "$$errmsg $$i.log" >&2; st=1; }; \
+ done; \
+ test $$st -eq 0 || exit 1; \
+ fi
+ @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
+ ws='[ ]'; \
+ results=`for b in $$bases; do echo $$b.trs; done`; \
+ test -n "$$results" || results=/dev/null; \
+ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
+ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
+ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
+ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
+ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
+ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
+ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
+ if test `expr $$fail + $$xpass + $$error` -eq 0; then \
+ success=true; \
+ else \
+ success=false; \
+ fi; \
+ br='==================='; br=$$br$$br$$br$$br; \
+ result_count () \
+ { \
+ if test x"$$1" = x"--maybe-color"; then \
+ maybe_colorize=yes; \
+ elif test x"$$1" = x"--no-color"; then \
+ maybe_colorize=no; \
+ else \
+ echo "$@: invalid 'result_count' usage" >&2; exit 4; \
+ fi; \
+ shift; \
+ desc=$$1 count=$$2; \
+ if test $$maybe_colorize = yes && test $$count -gt 0; then \
+ color_start=$$3 color_end=$$std; \
+ else \
+ color_start= color_end=; \
+ fi; \
+ echo "$${color_start}# $$desc $$count$${color_end}"; \
+ }; \
+ create_testsuite_report () \
+ { \
+ result_count $$1 "TOTAL:" $$all "$$brg"; \
+ result_count $$1 "PASS: " $$pass "$$grn"; \
+ result_count $$1 "SKIP: " $$skip "$$blu"; \
+ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
+ result_count $$1 "FAIL: " $$fail "$$red"; \
+ result_count $$1 "XPASS:" $$xpass "$$red"; \
+ result_count $$1 "ERROR:" $$error "$$mgn"; \
+ }; \
+ { \
+ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
+ $(am__rst_title); \
+ create_testsuite_report --no-color; \
+ echo; \
+ echo ".. contents:: :depth: 2"; \
+ echo; \
+ for b in $$bases; do echo $$b; done \
+ | $(am__create_global_log); \
+ } >$(TEST_SUITE_LOG).tmp || exit 1; \
+ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
+ if $$success; then \
+ col="$$grn"; \
+ else \
+ col="$$red"; \
+ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
+ fi; \
+ echo "$${col}$$br$${std}"; \
+ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
+ echo "$${col}$$br$${std}"; \
+ create_testsuite_report --maybe-color; \
+ echo "$$col$$br$$std"; \
+ if $$success; then :; else \
+ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
+ if test -n "$(PACKAGE_BUGREPORT)"; then \
+ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
+ fi; \
+ echo "$$col$$br$$std"; \
+ fi; \
+ $$success || exit 1
+
+check-TESTS:
+ @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
+ @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
+ @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+ @set +e; $(am__set_TESTS_bases); \
+ log_list=`for i in $$bases; do echo $$i.log; done`; \
+ trs_list=`for i in $$bases; do echo $$i.trs; done`; \
+ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
+ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
+ exit $$?;
+recheck: all
+ @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+ @set +e; $(am__set_TESTS_bases); \
+ bases=`for i in $$bases; do echo $$i; done \
+ | $(am__list_recheck_tests)` || exit 1; \
+ log_list=`for i in $$bases; do echo $$i.log; done`; \
+ log_list=`echo $$log_list`; \
+ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
+ am__force_recheck=am--force-recheck \
+ TEST_LOGS="$$log_list"; \
+ exit $$?
+.test.log:
+ @p='$<'; \
+ $(am__set_b); \
+ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+ --log-file $$b.log --trs-file $$b.trs \
+ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
+@am__EXEEXT_TRUE@.test$(EXEEXT).log:
+@am__EXEEXT_TRUE@ @p='$<'; \
+@am__EXEEXT_TRUE@ $(am__set_b); \
+@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
+@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
+distdir: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
+
+distdir-am: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d "$(distdir)" || mkdir "$(distdir)"
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ -test -n "$(am__skip_mode_fix)" \
+ || find "$(distdir)" -type d ! -perm -755 \
+ -exec chmod u+rwx,go+rx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r "$(distdir)"
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
+ $(am__post_remove_distdir)
+
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
+ $(am__post_remove_distdir)
+
+dist-lzip: distdir
+ tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
+ $(am__post_remove_distdir)
+
+dist-xz: distdir
+ tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
+ $(am__post_remove_distdir)
+
+dist-zstd: distdir
+ tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
+ $(am__post_remove_distdir)
+
+dist-tarZ: distdir
+ @echo WARNING: "Support for distribution archives compressed with" \
+ "legacy program 'compress' is deprecated." >&2
+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__post_remove_distdir)
+
+dist-shar: distdir
+ @echo WARNING: "Support for shar distribution archives is" \
+ "deprecated." >&2
+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
+ shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
+ $(am__post_remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__post_remove_distdir)
+
+dist dist-all:
+ $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
+ $(am__post_remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.lz*) \
+ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
+ *.tar.xz*) \
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ *.tar.zst*) \
+ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
+ esac
+ chmod -R a-w $(distdir)
+ chmod u+w $(distdir)
+ mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
+ chmod a-w $(distdir)
+ test -d $(distdir)/_build || exit 0; \
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && am__cwd=`pwd` \
+ && $(am__cd) $(distdir)/_build/sub \
+ && ../../configure \
+ $(AM_DISTCHECK_CONFIGURE_FLAGS) \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ --srcdir=../.. --prefix="$$dc_install_base" \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+ && cd "$$am__cwd" \
+ || exit 1
+ $(am__post_remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+ @test -n '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: trying to run $@ with an empty' \
+ '$$(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ $(am__cd) '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) config.h
+installdirs:
+ for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(btdocdir)" "$(DESTDIR)$(btudocdir)" "$(DESTDIR)$(btuexdir)" "$(DESTDIR)$(csfdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+ -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
+ -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
+ -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+ -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-1.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-2.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-3.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-4.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex.Po
+ -rm -f ./$(DEPDIR)/bibtex8-utils.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-1.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-2.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-3.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-4.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex.Po
+ -rm -f ./$(DEPDIR)/bibtexu-dummy.Po
+ -rm -f ./$(DEPDIR)/bibtexu-utils.Po
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-hdr distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-dist_btdocDATA install-dist_btudocDATA \
+ install-dist_btuexDATA install-dist_csfDATA install-man
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man: install-man1
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-1.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-2.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-3.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex-4.Po
+ -rm -f ./$(DEPDIR)/bibtex8-bibtex.Po
+ -rm -f ./$(DEPDIR)/bibtex8-utils.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-1.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-2.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-3.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex-4.Po
+ -rm -f ./$(DEPDIR)/bibtexu-bibtex.Po
+ -rm -f ./$(DEPDIR)/bibtexu-dummy.Po
+ -rm -f ./$(DEPDIR)/bibtexu-utils.Po
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-binPROGRAMS uninstall-dist_btdocDATA \
+ uninstall-dist_btudocDATA uninstall-dist_btuexDATA \
+ uninstall-dist_csfDATA uninstall-man
+
+uninstall-man: uninstall-man1
+
+.MAKE: all check-am install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
+ check-TESTS check-am clean clean-binPROGRAMS clean-cscope \
+ clean-generic clean-libtool cscope cscopelist-am ctags \
+ ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \
+ dist-shar dist-tarZ dist-xz dist-zip dist-zstd distcheck \
+ distclean distclean-compile distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags distcleancheck distdir \
+ distuninstallcheck dvi dvi-am html html-am info info-am \
+ install install-am install-binPROGRAMS install-data \
+ install-data-am install-dist_btdocDATA install-dist_btudocDATA \
+ install-dist_btuexDATA install-dist_csfDATA install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-man1 install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am recheck tags tags-am \
+ uninstall uninstall-am uninstall-binPROGRAMS \
+ uninstall-dist_btdocDATA uninstall-dist_btudocDATA \
+ uninstall-dist_btuexDATA uninstall-dist_csfDATA uninstall-man \
+ uninstall-man1
+
+.PRECIOUS: Makefile
+
+$(bibtex8_OBJECTS): $(KPATHSEA_DEPEND)
+$(bibtexu_OBJECTS): $(KPATHSEA_DEPEND) $(ICU_DEPEND)
+
+@KPATHSEA_RULE@
+@ICU_RULE@
+tests/bibtex8.log tests/bibtex8-mem.log tests/sort.log: bibtex8$(EXEEXT)
+tests/bibtexu.log tests/bibtexu-basic.log tests/bibtexu-range.log \
+ tests/bibtexu-yannis.log: bibtexu$(EXEEXT)
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/biblio/bibtex/bibtex-x/README b/biblio/bibtex/bibtex-x/README
new file mode 100644
index 0000000000..82c9276f0e
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/README
@@ -0,0 +1,48 @@
+$Id: README 64370 2022-09-13 01:04:05Z karl $
+Originally written by Karl Berry, 2022. Public domain.
+
+This directory, Build/source/texk/bibtex-x, contains the sources for
+bibtex8 (supporting 8-bit character sets) and bibtexu (supporting
+Unicode).
+
+See the 00* and 01* files, and the man pages, for what documentation
+there is about the programs. (Not much.)
+
+History: bibtex8 was written first, by Niel Kempson and Alejandro
+Aguilar-Sierra, ca.1996. bibtexu was derived from bibtex8 by Yannis
+Haralambous and his students, ca.2009. Peter Breitenlohner integrated
+bibtexu into TeX Live, and the Japanese TeX Development Community
+(notably TANAKA Takuji) has brought it up to date in the years since.
+
+Both are now maintained as part of TeX Live.
+Please report bugs to tex-k@tug.org (https://lists.tug.org/tex-k).
+For general discussion, use biblio@tug.org (https://lists.tug.org/biblio).
+
+
+======================================================================
+
+
+CTAN SOURCE TREE INFORMATION
+
+
+This CTAN source tree has been automatically extracted from the texk
+Subversion repository at svn://tug.org/texlive/trunk/Build/source/texk/.
+
+It is not possible to use the supplied configure script.
+In fact, if you call it; you will be told as such.
+
+This source can only be compiled in a texk build environment.
+You will need to download the whole environment, please refer to
+http://www.tug.org/texlive/svn/.
+
+It all boils down to a Subversion checkout of
+svn://tug.org/texlive/trunk/Build/source
+This will be the source tree that you can use for compilation. The
+CTAN directory is there for archival and informational purpose.
+
+For your convenience, the original configure script from the texk
+source tree is available in this directory as configure.texk.
+
+For the CTAN team,
+
+ Joachim Schrod <jschrod@acm.org>
diff --git a/biblio/bibtex/bibtex-x/ac/bibtex-x.ac b/biblio/bibtex/bibtex-x/ac/bibtex-x.ac
new file mode 100644
index 0000000000..528b7b0ec2
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/ac/bibtex-x.ac
@@ -0,0 +1,18 @@
+## texk/bibtex-x/ac/bibtex-x.ac: configure.ac fragment for the TeX Live subdirectory texk/bibtex-x/
+dnl
+dnl Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
+dnl You may freely use, modify and/or distribute this file.
+dnl
+## configure options for bibtex-x
+m4_define_default([kpse_indent_26], [26])[]dnl
+m4_define([kpse_bibtex_x_progs], [bibtex8 bibtexu])[]dnl
+AC_FOREACH([Kpse_Prog], kpse_bibtex_x_progs, [dnl
+AC_ARG_ENABLE(Kpse_Prog,
+ AS_HELP_STRING([--disable-]Kpse_Prog,
+ [do not build the ]Kpse_Prog[ program],
+ kpse_indent_26))
+AS_CASE([$enable_]Kpse_Prog,
+ [yes | no], ,
+ [enable_]Kpse_Prog[=yes])
+])
+test "x$enable_bibtex_x:$enable_bibtexu" = xyes:yes && need_icu=yes
diff --git a/biblio/bibtex/bibtex-x/ac/withenable.ac b/biblio/bibtex/bibtex-x/ac/withenable.ac
new file mode 100644
index 0000000000..930c37eb9c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/ac/withenable.ac
@@ -0,0 +1,8 @@
+## texk/bibtex-x/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/bibtex-x/
+dnl
+dnl Copyright (C) 2009-2013 Peter Breitenlohner <tex-live@tug.org>
+dnl You may freely use, modify and/or distribute this file.
+dnl
+## configure options and TL libraries required for bibtex-x
+KPSE_ENABLE_PROG([bibtex-x], [kpathsea])
+m4_include(kpse_TL[texk/bibtex-x/ac/bibtex-x.ac])
diff --git a/biblio/bibtex/bibtex-x/aclocal.m4 b/biblio/bibtex/bibtex-x/aclocal.m4
new file mode 100644
index 0000000000..8d45a4e2bc
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/aclocal.m4
@@ -0,0 +1,1197 @@
+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
+
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
+
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
+[m4_warning([this file was generated for autoconf 2.71.
+You have another version of autoconf. It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically 'autoreconf'.])])
+
+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.16'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.16.5], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.16.5])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
+
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
+# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory. The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run. This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+# fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+# fails if $ac_aux_dir is absolute,
+# fails when called from a subdirectory in a VPATH build with
+# a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir. In an in-source build this is usually
+# harmless because $srcdir is '.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+# MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH. The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
+# Expand $ac_aux_dir to an absolute path.
+am_aux_dir=`cd "$ac_aux_dir" && pwd`
+])
+
+# AM_CONDITIONAL -*- Autoconf -*-
+
+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ([2.52])dnl
+ m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+m4_define([_AM_COND_VALUE_$1], [$2])dnl
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+ AC_MSG_ERROR([[conditional "$1" was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+
+# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery. Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
+ [$1], [CXX], [depcc="$CXX" am_compiler_list=],
+ [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+ [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
+ [$1], [UPC], [depcc="$UPC" am_compiler_list=],
+ [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
+ [depcc="$$1" am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+ [am_cv_$1_dependencies_compiler_type],
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named 'D' -- because '-MD' means "put the output
+ # in D".
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_$1_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+ fi
+ am__universal=false
+ m4_case([$1], [CC],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac],
+ [CXX],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac])
+
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+ # Solaris 10 /bin/sh.
+ echo '/* dummy */' > sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle '-M -o', and we need to detect this. Also, some Intel
+ # versions had trouble with output in subdirs.
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ nosideeffect)
+ # After this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested.
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+ # This compiler won't grok '-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_$1_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE([dependency-tracking], [dnl
+AS_HELP_STRING(
+ [--enable-dependency-tracking],
+ [do not reject slow dependency extractors])
+AS_HELP_STRING(
+ [--disable-dependency-tracking],
+ [speeds up one-time build])])
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+ am__nodep='_no'
+fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+AC_SUBST([AMDEPBACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+AC_SUBST([am__nodep])dnl
+_AM_SUBST_NOTMAKE([am__nodep])dnl
+])
+
+# Generate code to set up dependency tracking. -*- Autoconf -*-
+
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[{
+ # Older Autoconf quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ # TODO: see whether this extra hack can be removed once we start
+ # requiring Autoconf 2.70 or later.
+ AS_CASE([$CONFIG_FILES],
+ [*\'*], [eval set x "$CONFIG_FILES"],
+ [*], [set x $CONFIG_FILES])
+ shift
+ # Used to flag and report bootstrapping failures.
+ am_rc=0
+ for am_mf
+ do
+ # Strip MF so we end up with the name of the file.
+ am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile which includes
+ # dependency-tracking related rules and includes.
+ # Grep'ing the whole file directly is not great: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
+ || continue
+ am_dirpart=`AS_DIRNAME(["$am_mf"])`
+ am_filepart=`AS_BASENAME(["$am_mf"])`
+ AM_RUN_LOG([cd "$am_dirpart" \
+ && sed -e '/# am--include-marker/d' "$am_filepart" \
+ | $MAKE -f - am--depfiles]) || am_rc=$?
+ done
+ if test $am_rc -ne 0; then
+ AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
+ for automatic dependency tracking. If GNU make was not used, consider
+ re-running the configure script with MAKE="gmake" (or whatever is
+ necessary). You can also try re-running configure with the
+ '--disable-dependency-tracking' option to at least be able to build
+ the package (albeit without support for automatic dependency tracking).])
+ fi
+ AS_UNSET([am_dirpart])
+ AS_UNSET([am_filepart])
+ AS_UNSET([am_mf])
+ AS_UNSET([am_rc])
+ rm -f conftest-deps.mk
+}
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking is enabled.
+# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
+# order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+ [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
+
+# Do all the work for Automake. -*- Autoconf -*-
+
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This macro actually does too much. Some checks are only needed if
+# your package does certain things. But this isn't really a big deal.
+
+dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
+m4_define([AC_PROG_CC],
+m4_defn([AC_PROG_CC])
+[_AM_PROG_CC_C_O
+])
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out. PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition. After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.65])dnl
+m4_ifdef([_$0_ALREADY_INIT],
+ [m4_fatal([$0 expanded multiple times
+]m4_defn([_$0_ALREADY_INIT]))],
+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[AC_DIAGNOSE([obsolete],
+ [$0: two- and three-arguments forms are deprecated.])
+m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(
+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
+ [ok:ok],,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
+AM_MISSING_PROG([AUTOCONF], [autoconf])
+AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
+AM_MISSING_PROG([AUTOHEADER], [autoheader])
+AM_MISSING_PROG([MAKEINFO], [makeinfo])
+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+# For better backward compatibility. To be removed once Automake 1.9.x
+# dies out for good. For more background, see:
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
+AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
+# We need awk for the "check" target (and possibly the TAP driver). The
+# system "awk" is bad on some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+ [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+ [_AM_DEPENDENCIES([CC])],
+ [m4_define([AC_PROG_CC],
+ m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [_AM_DEPENDENCIES([CXX])],
+ [m4_define([AC_PROG_CXX],
+ m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES([OBJC])],
+ [m4_define([AC_PROG_OBJC],
+ m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
+ [_AM_DEPENDENCIES([OBJCXX])],
+ [m4_define([AC_PROG_OBJCXX],
+ m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
+])
+# Variables for tags utilities; see am/tags.am
+if test -z "$CTAGS"; then
+ CTAGS=ctags
+fi
+AC_SUBST([CTAGS])
+if test -z "$ETAGS"; then
+ ETAGS=etags
+fi
+AC_SUBST([ETAGS])
+if test -z "$CSCOPE"; then
+ CSCOPE=cscope
+fi
+AC_SUBST([CSCOPE])
+
+AC_REQUIRE([AM_SILENT_RULES])dnl
+dnl The testsuite driver may need to know about EXEEXT, so add the
+dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
+dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
+AC_CONFIG_COMMANDS_PRE(dnl
+[m4_provide_if([_AM_COMPILER_EXEEXT],
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
+
+# POSIX will say in a future version that running "rm -f" with no argument
+# is OK; and we want to be able to make that assumption in our Makefile
+# recipes. So use an aggressive probe to check that the usage we want is
+# actually supported "in the wild" to an acceptable degree.
+# See automake bug#10828.
+# To make any issue more visible, cause the running configure to be aborted
+# by default if the 'rm' program in use doesn't match our expectations; the
+# user can still override this though.
+if rm -f && rm -fr && rm -rf; then : OK; else
+ cat >&2 <<'END'
+Oops!
+
+Your 'rm' program seems unable to run without file operands specified
+on the command line, even when the '-f' option is present. This is contrary
+to the behaviour of most rm programs out there, and not conforming with
+the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
+
+Please tell bug-automake@gnu.org about your system, including the value
+of your $PATH and any error possibly output before this message. This
+can help us improve future automake versions.
+
+END
+ if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
+ echo 'Configuration will proceed anyway, since you have set the' >&2
+ echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
+ echo >&2
+ else
+ cat >&2 <<'END'
+Aborting the configuration process, to ensure you take notice of the issue.
+
+You can download and install GNU coreutils to get an 'rm' implementation
+that behaves properly: <https://www.gnu.org/software/coreutils/>.
+
+If you want to complete the configuration process using your problematic
+'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
+to "yes", and re-run configure.
+
+END
+ AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
+ fi
+fi
+dnl The trailing newline in this macro's definition is deliberate, for
+dnl backward compatibility and to allow trailing 'dnl'-style comments
+dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
+])
+
+dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
+dnl mangled by Autoconf and run in a shell conditional statement.
+m4_define([_AC_COMPILER_EXEEXT],
+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated. The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+if test x"${install_sh+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+AC_SUBST([install_sh])])
+
+# Copyright (C) 2003-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot. For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
+# From Jim Meyering
+
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_MAINTAINER_MODE([DEFAULT-MODE])
+# ----------------------------------
+# Control maintainer-specific portions of Makefiles.
+# Default is to disable them, unless 'enable' is passed literally.
+# For symmetry, 'disable' may be passed as well. Anyway, the user
+# can override the default with the --enable/--disable switch.
+AC_DEFUN([AM_MAINTAINER_MODE],
+[m4_case(m4_default([$1], [disable]),
+ [enable], [m4_define([am_maintainer_other], [disable])],
+ [disable], [m4_define([am_maintainer_other], [enable])],
+ [m4_define([am_maintainer_other], [enable])
+ m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
+AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+ dnl maintainer-mode's default is 'disable' unless 'enable' is passed
+ AC_ARG_ENABLE([maintainer-mode],
+ [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
+ am_maintainer_other[ make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer])],
+ [USE_MAINTAINER_MODE=$enableval],
+ [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
+ AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
+ MAINT=$MAINTAINER_MODE_TRUE
+ AC_SUBST([MAINT])dnl
+]
+)
+
+# Check to see how 'make' treats includes. -*- Autoconf -*-
+
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check whether make has an 'include' directive that can support all
+# the idioms we need for our automatic dependency tracking code.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
+cat > confinc.mk << 'END'
+am__doit:
+ @echo this is the am__doit target >confinc.out
+.PHONY: am__doit
+END
+am__include="#"
+am__quote=
+# BSD make does it like this.
+echo '.include "confinc.mk" # ignored' > confmf.BSD
+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
+echo 'include confinc.mk # ignored' > confmf.GNU
+_am_result=no
+for s in GNU BSD; do
+ AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
+ AS_CASE([$?:`cat confinc.out 2>/dev/null`],
+ ['0:this is the am__doit target'],
+ [AS_CASE([$s],
+ [BSD], [am__include='.include' am__quote='"'],
+ [am__include='include' am__quote=''])])
+ if test "$am__include" != "#"; then
+ _am_result="yes ($s style)"
+ break
+ fi
+done
+rm -f confinc.* confmf.*
+AC_MSG_RESULT([${_am_result}])
+AC_SUBST([am__include])])
+AC_SUBST([am__quote])])
+
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+
+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it is modern enough.
+# If it is, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+if test x"${MISSING+set}" != xset; then
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --is-lightweight"; then
+ am_missing_run="$MISSING "
+else
+ am_missing_run=
+ AC_MSG_WARN(['missing' script is too old or missing])
+fi
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# --------------------
+# Set option NAME. Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_PROG_CC_C_O
+# ---------------
+# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
+# to automatically call this.
+AC_DEFUN([_AM_PROG_CC_C_O],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([compile])dnl
+AC_LANG_PUSH([C])dnl
+AC_CACHE_CHECK(
+ [whether $CC understands -c and -o together],
+ [am_cv_prog_cc_c_o],
+ [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
+ # Make sure it works both with $CC and with simple cc.
+ # Following AC_PROG_CC_C_O, we do the test twice because some
+ # compilers refuse to overwrite an existing .o file with -o,
+ # though they will create one.
+ am_cv_prog_cc_c_o=yes
+ for am_i in 1 2; do
+ if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
+ && test -f conftest2.$ac_objext; then
+ : OK
+ else
+ am_cv_prog_cc_c_o=no
+ break
+ fi
+ done
+ rm -f core conftest*
+ unset am_i])
+if test "$am_cv_prog_cc_c_o" != yes; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+fi
+AC_LANG_POP([C])])
+
+# For backward compatibility.
+AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
+
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_RUN_LOG(COMMAND)
+# -------------------
+# Run COMMAND, save the exit status in ac_status, and log it.
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
+AC_DEFUN([AM_RUN_LOG],
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ (exit $ac_status); }])
+
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
+esac
+case $srcdir in
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
+ AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
+esac
+
+# Do 'set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ am_has_slept=no
+ for am_try in 1 2; do
+ echo "timestamp, slept: $am_has_slept" > conftest.file
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$[*]" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+ alias in your environment])
+ fi
+ if test "$[2]" = conftest.file || test $am_try -eq 2; then
+ break
+ fi
+ # Just in case.
+ sleep 1
+ am_has_slept=yes
+ done
+ test "$[2]" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT([yes])
+# If we didn't sleep, we still need to ensure time stamps of config.status and
+# generated files are strictly newer.
+am_sleep_pid=
+if grep 'slept: no' conftest.file >/dev/null 2>&1; then
+ ( sleep 1 ) &
+ am_sleep_pid=$!
+fi
+AC_CONFIG_COMMANDS_PRE(
+ [AC_MSG_CHECKING([that generated files are newer than configure])
+ if test -n "$am_sleep_pid"; then
+ # Hide warnings about reused PIDs.
+ wait $am_sleep_pid 2>/dev/null
+ fi
+ AC_MSG_RESULT([done])])
+rm -f conftest.file
+])
+
+# Copyright (C) 2009-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_SILENT_RULES([DEFAULT])
+# --------------------------
+# Enable less verbose build rules; with the default set to DEFAULT
+# ("yes" being less verbose, "no" or empty being verbose).
+AC_DEFUN([AM_SILENT_RULES],
+[AC_ARG_ENABLE([silent-rules], [dnl
+AS_HELP_STRING(
+ [--enable-silent-rules],
+ [less verbose build output (undo: "make V=1")])
+AS_HELP_STRING(
+ [--disable-silent-rules],
+ [verbose build output (undo: "make V=0")])dnl
+])
+case $enable_silent_rules in @%:@ (((
+ yes) AM_DEFAULT_VERBOSITY=0;;
+ no) AM_DEFAULT_VERBOSITY=1;;
+ *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
+esac
+dnl
+dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
+dnl do not support nested variable expansions.
+dnl See automake bug#9928 and bug#10237.
+am_make=${MAKE-make}
+AC_CACHE_CHECK([whether $am_make supports nested variables],
+ [am_cv_make_support_nested_variables],
+ [if AS_ECHO([['TRUE=$(BAR$(V))
+BAR0=false
+BAR1=true
+V=1
+am__doit:
+ @$(TRUE)
+.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
+ am_cv_make_support_nested_variables=yes
+else
+ am_cv_make_support_nested_variables=no
+fi])
+if test $am_cv_make_support_nested_variables = yes; then
+ dnl Using '$V' instead of '$(V)' breaks IRIX make.
+ AM_V='$(V)'
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
+else
+ AM_V=$AM_DEFAULT_VERBOSITY
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
+fi
+AC_SUBST([AM_V])dnl
+AM_SUBST_NOTMAKE([AM_V])dnl
+AC_SUBST([AM_DEFAULT_V])dnl
+AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
+AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
+AM_BACKSLASH='\'
+AC_SUBST([AM_BACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
+])
+
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor 'install' (even GNU) is that you can't
+# specify the program used to strip binaries. This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in "make install-strip", and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using 'strip' when the user
+# run "make install-strip". However 'strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the 'STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
+if test "$cross_compiling" != no; then
+ AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# AM_SUBST_NOTMAKE(VARIABLE)
+# --------------------------
+# Public sister of _AM_SUBST_NOTMAKE.
+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
+
+# Check how to create a tarball. -*- Autoconf -*-
+
+# Copyright (C) 2004-2021 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of 'v7', 'ustar', or 'pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+# tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+# $(am__untar) < result.tar
+#
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AC_SUBST([AMTAR], ['$${TAR-tar}'])
+
+# We'll loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+
+m4_if([$1], [v7],
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
+
+ [m4_case([$1],
+ [ustar],
+ [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
+ # There is notably a 21 bits limit for the UID and the GID. In fact,
+ # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
+ # and bug#13588).
+ am_max_uid=2097151 # 2^21 - 1
+ am_max_gid=$am_max_uid
+ # The $UID and $GID variables are not portable, so we need to resort
+ # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
+ # below are definitely unexpected, so allow the users to see them
+ # (that is, avoid stderr redirection).
+ am_uid=`id -u || echo unknown`
+ am_gid=`id -g || echo unknown`
+ AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
+ if test $am_uid -le $am_max_uid; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ _am_tools=none
+ fi
+ AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
+ if test $am_gid -le $am_max_gid; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ _am_tools=none
+ fi],
+
+ [pax],
+ [],
+
+ [m4_fatal([Unknown tar format])])
+
+ AC_MSG_CHECKING([how to create a $1 tar archive])
+
+ # Go ahead even if we have the value already cached. We do so because we
+ # need to set the values for the 'am__tar' and 'am__untar' variables.
+ _am_tools=${am_cv_prog_tar_$1-$_am_tools}
+
+ for _am_tool in $_am_tools; do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar; do
+ AM_RUN_LOG([$_am_tar --version]) && break
+ done
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x $1 -w "$$tardir"'
+ am__tar_='pax -L -x $1 -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+ am__untar='cpio -i -H $1 -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_$1}" && break
+
+ # tar/untar a dummy directory, and stop if the command works.
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ AM_RUN_LOG([cat conftest.dir/file])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+ done
+ rm -rf conftest.dir
+
+ AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+ AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+m4_include([../../m4/kpse-common.m4])
+m4_include([../../m4/kpse-cxx-hack.m4])
+m4_include([../../m4/kpse-icu-flags.m4])
+m4_include([../../m4/kpse-kpathsea-flags.m4])
+m4_include([../../m4/kpse-search-libs.m4])
+m4_include([../../m4/kpse-warnings.m4])
+m4_include([../../m4/libtool.m4])
+m4_include([../../m4/ltoptions.m4])
+m4_include([../../m4/ltsugar.m4])
+m4_include([../../m4/ltversion.m4])
+m4_include([../../m4/lt~obsolete.m4])
diff --git a/biblio/bibtex/bibtex-x/bibtex-1.c b/biblio/bibtex/bibtex-x/bibtex-1.c
new file mode 100644
index 0000000000..29ca1c4654
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtex-1.c
@@ -0,0 +1,3048 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: bibtex-1.c
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This is the first of 4 source modules for BibTeX. The source has
+** been split into 4 parts so that some of the more primitive editors
+** can cope. This code mimics the BibTeX WEB source as closely as
+** possible and there should be NO system dependent code in any of the
+** bibtex-#.c modules.
+**
+** The functions defined in this module are:
+**
+** aux_err_stuff_after_right_brace
+** aux_err_white_space_in_argument
+** aux_input_command
+** bad_argument_token
+** bad_cross_reference_print
+** bib_cmd_confusion
+** bib_equals_sign_print
+** bib_err_print
+** bib_field_too_long_print
+** bib_id_print
+** bib_ln_num_print
+** bib_one_of_two_print
+** bib_unbalanced_braces_print
+** bib_warn_print
+** brace_lvl_one_letters_complaint
+** braces_unbalanced_complaint
+** bst_1print_string_size_exceeded
+** bst_2print_string_size_exceeded
+** bst_cant_mess_with_entries_prin
+** bst_entry_command
+** bst_err_print_and_look_for_blan
+** bst_execute_command
+** bst_ex_warn_print
+** bst_function_command
+** bst_id_print
+** bst_integers_command
+** build_in
+** case_conversion_confusion
+** check_brace_level
+** check_cite_overflow
+** check_command_execution
+** check_field_overflow
+** cite_key_disappeared_confusion
+** compress_bib_white
+** decr_brace_level
+** eat_bib_print
+** eat_bib_white_space
+** eat_bst_print
+** eat_bst_white_space
+** enough_text_chars
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: bibtex-1.c,v $
+** Revision 3.71 1996/08/18 20:47:30 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:38 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "sysdep.h"
+#include "bibtex.h"
+#include "datatype.h"
+#include "gblprocs.h"
+#include "gblvars.h"
+#include "utils.h"
+#include "version.h"
+
+
+
+/***************************************************************************
+ * WEB section number: 61
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure copies the default logical area name |area| into the
+ * array |name_of_file| starting at position 1, after shifting up the rest
+ * of the filename. It also sets the global variable |name_length| to the
+ * appropriate value.
+ *
+ * REMOVED: |add_area|.
+ ***************************************************************************/
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 61 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 320
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure adds to the execution buffer the given string in
+ * |str_pool| if it will fit. It assumes the global variable
+ * |ex_buf_length| gives the length of the current string in |ex_buf|, and
+ * thus also gives the location of the next character.
+ ***************************************************************************/
+void add_buf_pool (StrNumber_T p_str)
+BEGIN
+ p_ptr1 = str_start[p_str];
+ p_ptr2 = str_start[p_str + 1];
+ if ((ex_buf_length + (p_ptr2 - p_ptr1)) > Buf_Size)
+ BEGIN
+ buffer_overflow ();
+ END
+ ex_buf_ptr = ex_buf_length;
+ while (p_ptr1 < p_ptr2)
+ BEGIN
+ APPEND_EX_BUF_CHAR(str_pool[p_ptr1]);
+ INCR (p_ptr1);
+ END
+ ex_buf_length = ex_buf_ptr;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 320 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 265
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure adds (or restores) to |cite_list| a cite key; it is
+ * called only when |all_entries| is |true| or when adding
+ * cross references, and it assumes that |cite_loc| and |lc_cite_loc| are
+ * set. It also INCRs its argument.
+ ***************************************************************************/
+void add_database_cite (CiteNumber_T *new_cite)
+BEGIN
+ check_cite_overflow (*new_cite);
+ check_field_overflow (num_fields * (*new_cite + 1));
+ cite_list[*new_cite] = hash_text[cite_loc];
+ ilk_info[cite_loc] = *new_cite;
+ ilk_info[lc_cite_loc] = cite_loc;
+ INCR (*new_cite);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 265 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 60
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure copies file extension |ext| into the array
+ * |name_of_file| starting at position |name_length+1|. It also sets the
+ * global variable |name_length| to the appropriate value.
+ *
+ * NOTE: because C arrays start at index 0, not 1, the subscripts of array
+ * |name_of_file| are generally 1 less than those in the WEB source.
+ ***************************************************************************/
+void add_extension (StrNumber_T ext)
+BEGIN
+ PoolPointer_T p_ptr;
+
+ name_ptr = name_length;
+ p_ptr = str_start[ext];
+ while (p_ptr < str_start[ext + 1])
+ BEGIN
+ name_of_file[name_ptr] = CHR (str_pool[p_ptr]);
+ INCR (name_ptr);
+ INCR (p_ptr);
+ END
+ name_length = name_length + LENGTH (ext);
+ name_of_file[name_length] = 0;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 60 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 322
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure adds to the output buffer the given string in
+ * |str_pool|. It assumes the global variable |out_buf_length| gives the
+ * length of the current string in |out_buf|, and thus also gives the
+ * location for the next character. If there are enough characters
+ * present in the output buffer, it writes one or more lines out to the
+ * .bbl file. It breaks a line only at a |white_space| character,
+ * and when it does, it adds two |space|s to the next output line.
+ ***************************************************************************/
+void add_out_pool (StrNumber_T p_str)
+BEGIN
+ BufPointer_T break_ptr;
+ BufPointer_T end_ptr;
+ Boolean_T break_pt_found;
+ Boolean_T unbreakable_tail;
+
+ p_ptr1 = str_start[p_str];
+ p_ptr2 = str_start[p_str + 1];
+ if ((out_buf_length + (p_ptr2 - p_ptr1)) > Buf_Size)
+ BEGIN
+ buffer_overflow ();
+ END
+ out_buf_ptr = out_buf_length;
+ while (p_ptr1 < p_ptr2)
+ BEGIN
+ out_buf[out_buf_ptr] = str_pool[p_ptr1];
+ INCR (p_ptr1);
+ INCR (out_buf_ptr);
+ END
+ out_buf_length = out_buf_ptr;
+ unbreakable_tail = FALSE;
+ while ((out_buf_length > MAX_PRINT_LINE) && ! unbreakable_tail)
+
+/***************************************************************************
+ * WEB section number: 323
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we break the line by looking for a |white_space| character,
+ * backwards from |out_buf[max_print_line]| until
+ * |out_buf[min_print_line]|; we break at the |white_space| and indent
+ * the next line two |space|s. The next module handles things when
+ * there's no |white_space| character to break at. (It seems that the
+ * annoyances to the average user of a warning message when there's an
+ * output line longer than |max_print_line| outweigh the benefits, so we
+ * don't issue such warnings in the current code.)
+ ***************************************************************************/
+ BEGIN
+ end_ptr = out_buf_length;
+ out_buf_ptr = MAX_PRINT_LINE;
+ break_pt_found = FALSE;
+ while ((lex_class[out_buf[out_buf_ptr]] != WHITE_SPACE)
+ && (out_buf_ptr >= MIN_PRINT_LINE))
+ BEGIN
+ DECR (out_buf_ptr);
+ END
+ if (out_buf_ptr == (MIN_PRINT_LINE - 1))
+
+/***************************************************************************
+ * WEB section number: 324
+ * ~~~~~~~~~~~~~~~~~~~
+ * If there's no |white_space| character up through
+ * |out_buf[max_print_line]|, we instead break the line at the first
+ * following |white_space| character, if one exists. And if, starting
+ * with that |white_space| character, there are multiple consecutive
+ * |white_space| characters, |out_buf_ptr| points to the last of them.
+ * If no |white_space| character exists, we haven't found a viable break
+ * point, so we don't break the line (yet).
+ ***************************************************************************/
+ BEGIN
+ out_buf_ptr = MAX_PRINT_LINE + 1;
+ while (out_buf_ptr < end_ptr)
+ BEGIN
+#ifdef UTF_8
+ if (lex_class[out_buf[out_buf_ptr]] == WHITE_SPACE)
+ BEGIN
+ UChar32 ch;
+ U8_GET_OR_FFFD(out_buf, out_buf_ptr-4, out_buf_ptr-1, -1, ch);
+ switch ( ublock_getCode(ch) )
+ BEGIN
+ case UBLOCK_BASIC_LATIN:
+ case UBLOCK_LATIN_1_SUPPLEMENT:
+ case UBLOCK_LATIN_EXTENDED_A:
+ case UBLOCK_LATIN_EXTENDED_B:
+ case UBLOCK_LATIN_EXTENDED_C:
+ case UBLOCK_LATIN_EXTENDED_D:
+ case UBLOCK_LATIN_EXTENDED_E:
+ case UBLOCK_LATIN_EXTENDED_F:
+ case UBLOCK_LATIN_EXTENDED_G:
+ case UBLOCK_LATIN_EXTENDED_ADDITIONAL:
+ case UBLOCK_GREEK:
+ case UBLOCK_GREEK_EXTENDED:
+ case UBLOCK_CYRILLIC:
+ case UBLOCK_CYRILLIC_SUPPLEMENT:
+ case UBLOCK_CYRILLIC_EXTENDED_A:
+ case UBLOCK_CYRILLIC_EXTENDED_B:
+ case UBLOCK_CYRILLIC_EXTENDED_C:
+ case UBLOCK_HANGUL_SYLLABLES:
+ goto Loop1_Exit; /* break line */
+ break;
+ END
+ END
+ INCR (out_buf_ptr); /* do not break line */
+#else
+ if (lex_class[out_buf[out_buf_ptr]] != WHITE_SPACE)
+ BEGIN
+ INCR (out_buf_ptr);
+ END
+ else
+ BEGIN
+ goto Loop1_Exit;
+ END
+#endif
+ END
+Loop1_Exit:
+ if (out_buf_ptr == end_ptr)
+ BEGIN
+ unbreakable_tail = TRUE;
+ END
+ else
+ BEGIN
+ break_pt_found = TRUE;
+ while (out_buf_ptr + 1 < end_ptr)
+ BEGIN
+ if (lex_class[out_buf[out_buf_ptr + 1]] == WHITE_SPACE)
+ BEGIN
+ INCR (out_buf_ptr);
+ END
+ else
+ BEGIN
+ goto Loop2_Exit;
+ END
+ END
+Loop2_Exit: DO_NOTHING;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 324 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else
+ BEGIN
+ break_pt_found = TRUE;
+ END
+ if (break_pt_found)
+ BEGIN
+ out_buf_length = out_buf_ptr;
+ break_ptr = out_buf_length + 1;
+ output_bbl_line ();
+ out_buf[0] = SPACE;
+ out_buf[1] = SPACE;
+ out_buf_ptr = 2;
+ tmp_ptr = break_ptr;
+ while (tmp_ptr < end_ptr)
+ BEGIN
+ out_buf[out_buf_ptr] = out_buf[tmp_ptr];
+ INCR (out_buf_ptr);
+ INCR (tmp_ptr);
+ END
+ out_buf_length = end_ptr - break_ptr + 2;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 323 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 322 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 318
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure adds to |str_pool| the string from |ex_buf[0]| through
+ * |ex_buf[ex_buf_length-1]| if it will fit. It assumes the global
+ * variable |ex_buf_length| gives the length of the current string in
+ * |ex_buf|. It then pushes this string onto the literal stack.
+ ***************************************************************************/
+void add_pool_buf_and_push (void)
+BEGIN
+ STR_ROOM (ex_buf_length);
+ ex_buf_ptr = 0;
+ while (ex_buf_ptr < ex_buf_length)
+ BEGIN
+ APPEND_CHAR (ex_buf[ex_buf_ptr]);
+ INCR (ex_buf_ptr);
+ END
+ push_lit_stk (make_string (), STK_STR);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 318 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 169
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro complains if we've already encountered a function to be
+ * inserted into the hash table.
+ ***************************************************************************/
+void already_seen_function_print (HashLoc_T seen_fn_loc)
+BEGIN
+ PRINT_POOL_STR (hash_text[seen_fn_loc]);
+ PRINT (" is already a type \"");
+ print_fn_class (seen_fn_loc);
+ PRINT_LN ("\" function name");
+ BST_ERR_PRINT_AND_LOOK_FOR_BLAN;
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 169 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 120
+ * ~~~~~~~~~~~~~~~~~~~
+ * A \bibdata command will have its arguments between braces and
+ * separated by commas. There must be exactly one such command in the
+ * .aux file(s). All upper-case letters are converted to lower case.
+ ***************************************************************************/
+void aux_bib_data_command (void)
+BEGIN
+ if (bib_seen)
+ BEGIN
+ AUX_ERR_ILLEGAL_ANOTHER (N_AUX_BIBDATA);
+ END
+ bib_seen = TRUE;
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+ INCR (buf_ptr2);
+ if ( ! scan2_white (RIGHT_BRACE, COMMA))
+ BEGIN
+ AUX_ERR_NO_RIGHT_BRACE;
+ END
+ if (lex_class[SCAN_CHAR] == WHITE_SPACE)
+ BEGIN
+ AUX_ERR_WHITE_SPACE_IN_ARGUMENT;
+ END
+ if ((last > (buf_ptr2 + 1)) && (SCAN_CHAR == RIGHT_BRACE))
+ BEGIN
+ AUX_ERR_STUFF_AFTER_RIGHT_BRACE;
+ END
+
+/***************************************************************************
+ * WEB section number: 123
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we add the just-found argument to |bib_list| if it hasn't already
+ * been encountered as a \bibdata argument and if, after appending
+ * the |s_bib_extension| string, the resulting file name can be opened.
+ ***************************************************************************/
+ BEGIN
+ if (bib_ptr == Max_Bib_Files)
+ BEGIN
+ BIB_XRETALLOC_NOSET ("bib_file", bib_file, AlphaFile_T,
+ Max_Bib_Files, Max_Bib_Files + MAX_BIB_FILES);
+ BIB_XRETALLOC_NOSET ("bib_list", bib_list, StrNumber_T,
+ Max_Bib_Files, Max_Bib_Files + MAX_BIB_FILES);
+ BIB_XRETALLOC ("s_preamble", s_preamble, StrNumber_T,
+ Max_Bib_Files, Max_Bib_Files + MAX_BIB_FILES);
+ END
+ CUR_BIB_STR = hash_text[str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BIB_FILE_ILK, DO_INSERT)];
+ if (hash_found)
+ BEGIN
+ OPEN_BIBDATA_AUX_ERR ("This database file appears more than once: ");
+ END
+ start_name (CUR_BIB_STR);
+ add_extension (s_bib_extension);
+ if ( ! a_open_in (&CUR_BIB_FILE, BIB_FILE_SEARCH_PATH))
+ BEGIN
+ BEGIN
+ OPEN_BIBDATA_AUX_ERR ("I couldn't open database file ");
+ perror ("\nReason");
+ END
+ END
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_POOL_STR (CUR_BIB_STR);
+ TRACE_PR_POOL_STR (s_bib_extension);
+ TRACE_PR_LN (" is a bibdata file");
+ }
+#endif /* TRACE */
+
+ INCR (bib_ptr);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 123 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 120 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 126
+ * ~~~~~~~~~~~~~~~~~~~
+ * A \bibstyle command will have exactly one argument, and it will be
+ * between braces. There must be exactly one such command in the .aux
+ * file(s). All upper-case letters are converted to lower case.
+ ***************************************************************************/
+void aux_bib_style_command (void)
+BEGIN
+ if (bst_seen)
+ BEGIN
+ AUX_ERR_ILLEGAL_ANOTHER (N_AUX_BIBSTYLE);
+ END
+ bst_seen = TRUE;
+ INCR (buf_ptr2);
+ if ( ! scan1_white (RIGHT_BRACE))
+ BEGIN
+ AUX_ERR_NO_RIGHT_BRACE;
+ END
+ if (lex_class[SCAN_CHAR] == WHITE_SPACE)
+ BEGIN
+ AUX_ERR_WHITE_SPACE_IN_ARGUMENT;
+ END
+ if (last > (buf_ptr2 + 1))
+ BEGIN
+ AUX_ERR_STUFF_AFTER_RIGHT_BRACE;
+ END
+
+/***************************************************************************
+ * WEB section number: 127
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we open the file whose name is the just-found argument appended
+ * with the |s_bst_extension| string, if possible.
+ ***************************************************************************/
+ BEGIN
+ bst_str = hash_text[str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BST_FILE_ILK, DO_INSERT)];
+ if (hash_found)
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ print_bst_name ();
+#endif /* TRACE */
+
+ CONFUSION ("Already encountered style file");
+ END
+ start_name (bst_str);
+ add_extension (s_bst_extension);
+ if ( ! a_open_in (&bst_file, BST_FILE_SEARCH_PATH))
+ BEGIN
+ BEGIN
+ PRINT ("I couldn't open style file ");
+ print_bst_name ();
+ perror ("\nReason");
+ bst_str = 0;
+ AUX_ERR_RETURN;
+ END
+ END
+ PRINT ("The style file: ");
+ print_bst_name ();
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 127 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 126 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+
+/***************************************************************************
+ * WEB section number: 132
+ * ~~~~~~~~~~~~~~~~~~~
+ * A \citation command will have its arguments between braces and
+ * separated by commas. Upper/lower cases are considered to be different
+ * for \citation arguments, which is the same as the rest of \LaTeX\
+ * but different from the rest of \BibTeX. A cite key needn't exactly
+ * case-match its corresponding database key to work, although two cite
+ * keys that are case-mismatched will produce an error message. (A BEGIN\sl
+ * case mismatch\/END is a mismatch, but only because of a case difference.)
+ *
+ * A \citation command having * as an argument indicates that the
+ * entire database will be included (almost as if a \nocite command
+ * that listed every cite key in the database, in order, had been given at
+ * the corresponding spot in the .tex file).
+ ***************************************************************************/
+void aux_citation_command (void)
+BEGIN
+ citation_seen = TRUE;
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+ INCR (buf_ptr2);
+ if ( ! scan2_white (RIGHT_BRACE, COMMA))
+ BEGIN
+ AUX_ERR_NO_RIGHT_BRACE;
+ END
+ if (lex_class[SCAN_CHAR] == WHITE_SPACE)
+ BEGIN
+ AUX_ERR_WHITE_SPACE_IN_ARGUMENT;
+ END
+ if ((last > (buf_ptr2 + 1)) && (SCAN_CHAR == RIGHT_BRACE))
+ BEGIN
+ AUX_ERR_STUFF_AFTER_RIGHT_BRACE;
+ END
+
+/***************************************************************************
+ * WEB section number: 133
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must check if (the lower-case version of) this cite key has been
+ * previously encountered, and proceed accordingly. The alias kludge
+ * helps make the stack space not overflow on some machines.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR (" cite key encountered");
+ }
+#endif /* TRACE */
+
+/***************************************************************************
+ * WEB section number: 134
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we check for a \citation command having * as an
+ * argument, indicating that the entire database will be included.
+ ***************************************************************************/
+ BEGIN
+ if (TOKEN_LEN == 1)
+ BEGIN
+ if (buffer[buf_ptr1] == STAR)
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("---entire database to be included");
+#endif /* TRACE */
+
+ if (all_entries)
+ BEGIN
+ PRINT_LN ("Multiple inclusions of entire database");
+ AUX_ERR_RETURN;
+ END
+ else
+ BEGIN
+ all_entries = TRUE;
+ all_marker = cite_ptr;
+ goto Next_Cite_Label;
+ END
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 134 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ tmp_ptr = buf_ptr1;
+ while (tmp_ptr < buf_ptr2)
+ BEGIN
+ ex_buf[tmp_ptr] = buffer[tmp_ptr];
+ INCR (tmp_ptr);
+ END
+ lower_case (ex_buf, buf_ptr1, TOKEN_LEN);
+ lc_cite_loc = str_lookup (ex_buf, buf_ptr1, TOKEN_LEN, LC_CITE_ILK,
+ DO_INSERT);
+ if (hash_found)
+
+/***************************************************************************
+ * WEB section number: 135
+ * ~~~~~~~~~~~~~~~~~~~
+ * We've previously encountered the lower-case version, so we check that
+ * the actual version exactly matches the actual version of the
+ * previously-encountered cite key(s).
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN (" previously");
+#endif /* TRACE */
+
+ dummy_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, CITE_ILK,
+ DONT_INSERT);
+ if ( ! hash_found)
+ BEGIN
+ PRINT ("Case mismatch error between cite keys ");
+ PRINT_TOKEN;
+ PRINT (" and ");
+ PRINT_POOL_STR (cite_list[ilk_info[ilk_info[lc_cite_loc]]]);
+ PRINT_NEWLINE;
+ AUX_ERR_RETURN;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 135 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else
+
+/***************************************************************************
+ * WEB section number: 136
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we add the just-found argument to |cite_list| if there isn't
+ * anything funny happening.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_NEWLINE;
+#endif /* TRACE */
+
+ cite_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, CITE_ILK,
+ DO_INSERT);
+ if (hash_found)
+ BEGIN
+ hash_cite_confusion ();
+ END
+ check_cite_overflow (cite_ptr);
+ CUR_CITE_STR = hash_text[cite_loc];
+ ilk_info[cite_loc] = cite_ptr;
+ ilk_info[lc_cite_loc] = cite_loc;
+ INCR (cite_ptr);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 136 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 133 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+Next_Cite_Label: DO_NOTHING
+ END
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 132 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 144
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must complain if anything's amiss.
+ ***************************************************************************/
+void aux_end1_err_print (void)
+BEGIN
+ PRINT ("I found no ");
+END
+
+
+void aux_end2_err_print (void)
+BEGIN
+ PRINT ("---while reading file ");
+ print_aux_name ();
+ mark_error ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 144 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 112
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here are a bunch of macros whose print statements are used at least
+ * twice. Thus we save space by making the statements procedures. This
+ * macro complains when there's a repeated command that's to be used just
+ * once.
+ ***************************************************************************/
+void aux_err_illegal_another_print (Integer_T cmd_num)
+BEGIN
+ PRINT ("Illegal, another \\bib");
+ switch (cmd_num)
+ BEGIN
+ case N_AUX_BIBDATA:
+ PRINT ("data");
+ break;
+ case N_AUX_BIBSTYLE:
+ PRINT ("style");
+ break;
+ default:
+ CONFUSION ("Illegal auxiliary-file command");
+ END
+ PRINT (" command");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 112 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 113
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one complains when a command is missing its |right_brace|.
+ ***************************************************************************/
+void aux_err_no_right_brace_print (void)
+BEGIN
+ PRINT2 ("No \"%c\"", xchr[RIGHT_BRACE]);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 113 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 111
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we find a bug, we print a message and flush the rest of the line.
+ * This macro must be called from within a procedure that has an |exit|
+ * label.
+ ***************************************************************************/
+void aux_err_print (void)
+BEGIN
+ PRINT2 ("---line %ld of file ", (long) CUR_AUX_LINE);
+ print_aux_name ();
+ print_bad_input_line ();
+ print_skipping_whatever_remains ();
+ PRINT_LN ("command");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 111 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 114
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one complains when a command has stuff after its |right_brace|.
+ ***************************************************************************/
+void aux_err_stuff_after_right_brace (void)
+BEGIN
+ PRINT2 ("Stuff after \"%c\"", xchr[RIGHT_BRACE]);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 114 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 115
+ * ~~~~~~~~~~~~~~~~~~~
+ * And this one complains when a command has |white_space| in its
+ * argument.
+ ***************************************************************************/
+void aux_err_white_space_in_argument (void)
+BEGIN
+ PRINT ("White space in argument");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 115 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 139
+ * ~~~~~~~~~~~~~~~~~~~
+ * An \@input command will have exactly one argument, it will be
+ * between braces, and it must have the |s_aux_extension|. All upper-case
+ * letters are converted to lower case.
+ ***************************************************************************/
+void aux_input_command (void)
+BEGIN
+ Boolean_T aux_extension_ok;
+
+ INCR (buf_ptr2);
+ if ( ! scan1_white (RIGHT_BRACE))
+ BEGIN
+ AUX_ERR_NO_RIGHT_BRACE;
+ END
+ if (lex_class[SCAN_CHAR] == WHITE_SPACE)
+ BEGIN
+ AUX_ERR_WHITE_SPACE_IN_ARGUMENT;
+ END
+ if (last > (buf_ptr2 + 1))
+ BEGIN
+ AUX_ERR_STUFF_AFTER_RIGHT_BRACE;
+ END
+
+/***************************************************************************
+ * WEB section number: 140
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must check that this potential .aux file won't overflow the
+ * stack, that it has the correct extension, that we haven't encountered
+ * it before (to prevent, among other things, an infinite loop).
+ ***************************************************************************/
+ BEGIN
+ INCR (aux_ptr);
+ if (aux_ptr == AUX_STACK_SIZE)
+ BEGIN
+ PRINT_TOKEN;
+ PRINT (": ");
+ BIBTEX_OVERFLOW ("auxiliary file depth ", AUX_STACK_SIZE);
+ END
+ aux_extension_ok = TRUE;
+ if (TOKEN_LEN < LENGTH (s_aux_extension))
+ BEGIN
+ aux_extension_ok = FALSE;
+ END
+ else if ( ! str_eq_buf (s_aux_extension, buffer,
+ (buf_ptr2 - LENGTH (s_aux_extension)),
+ LENGTH (s_aux_extension)))
+ BEGIN
+ aux_extension_ok = FALSE;
+ END
+ if ( ! aux_extension_ok)
+ BEGIN
+ PRINT_TOKEN;
+ PRINT (" has a wrong extension");
+ DECR (aux_ptr);
+ AUX_ERR_RETURN;
+ END
+ CUR_AUX_STR = hash_text[str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ AUX_FILE_ILK, DO_INSERT)];
+ if (hash_found)
+ BEGIN
+ PRINT ("Already encountered file ");
+ print_aux_name ();
+ DECR (aux_ptr);
+ AUX_ERR_RETURN;
+ END
+
+/***************************************************************************
+ * WEB section number: 141
+ * ~~~~~~~~~~~~~~~~~~~
+ * We check that this .aux file can actually be opened, and then open it.
+ *
+ * NOTE: because C arrays start at index 0, not 1, the subscripts of array
+ * |name_of_file| are generally 1 less than those in the WEB source.
+ ***************************************************************************/
+ BEGIN
+ start_name (CUR_AUX_STR);
+ name_of_file[name_length] = 0;
+ if ( ! a_open_in (&CUR_AUX_FILE, AUX_FILE_SEARCH_PATH))
+ BEGIN
+ PRINT ("I couldn't open auxiliary file ");
+ print_aux_name ();
+ perror ("\nReason");
+ DECR (aux_ptr);
+ AUX_ERR_RETURN;
+ END
+ PRINT2 ("A level-%ld auxilliary file: ", (long) aux_ptr);
+ print_aux_name ();
+ CUR_AUX_LINE = 0;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 141 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 140 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 139 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 177
+ * ~~~~~~~~~~~~~~~~~~~
+ * A legal argument for an execute, iterate, or reverse
+ * command must exist and be |built_in| or |wiz_defined|. Here's where we
+ * check, returning |true| if the argument is illegal.
+ ***************************************************************************/
+Boolean_T bad_argument_token (void)
+BEGIN
+ Boolean_T bad_argument_token;
+
+ bad_argument_token= TRUE;
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, BST_FN_ILK, DONT_INSERT);
+ if ( ! hash_found)
+ BEGIN
+ PRINT_TOKEN;
+ BST_ERR (" is an unknown function");
+ END
+ else if ((fn_type[fn_loc] != BUILT_IN) && (fn_type[fn_loc] != WIZ_DEFINED))
+ BEGIN
+ PRINT_TOKEN;
+ PRINT (" has bad function type ");
+ print_fn_class (fn_loc);
+ BST_ERR_PRINT_AND_LOOK_FOR_BLAN;
+ END
+ bad_argument_token= FALSE;
+
+Exit_Label:
+ return (bad_argument_token);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 177 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 280
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure exists to save space, since it's used twice---once for
+ * each of the two succeeding modules.
+ ***************************************************************************/
+void bad_cross_reference_print (StrNumber_T s)
+BEGIN
+ PRINT ("--entry \"");
+ PRINT_POOL_STR (CUR_CITE_STR);
+ PRINT_LN ("\"");
+ PRINT ("refers to entry \"");
+ PRINT_POOL_STR (s);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 280 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 240
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's another bug.
+ ***************************************************************************/
+void bib_cmd_confusion (void)
+BEGIN
+ CONFUSION ("Unknown database-file command");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 240 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 231
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one's for an expected |equals_sign|.
+ ***************************************************************************/
+void bib_equals_sign_print (void)
+BEGIN
+ BIB_ERR2 ("I was expecting an \"%c\"", xchr[EQUALS_SIGN]);
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 231 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 221
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a serious error parsing a .bib file, we flush
+ * everything up to the beginning of the next entry.
+ ***************************************************************************/
+void bib_err_print (void)
+BEGIN
+ PRINT ("-");
+ bib_ln_num_print ();
+ print_bad_input_line ();
+ print_skipping_whatever_remains ();
+ if (at_bib_command)
+ BEGIN
+ PRINT_LN ("command");
+ END
+ else
+ BEGIN
+ PRINT_LN ("entry");
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 221 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 233
+ * ~~~~~~~~~~~~~~~~~~~
+ * And this one about an overly exuberant field.
+ ***************************************************************************/
+void bib_field_too_long_print (void)
+BEGIN
+ BIB_ERR2 ("Your field is more than %ld characters", (long) Buf_Size);
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 233 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 235
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro is used to scan all .bib identifiers. The argument
+ * tells what was happening at the time. The associated procedure simply
+ * prints an error message.
+ ***************************************************************************/
+void bib_id_print (void)
+BEGIN
+ if (scan_result == ID_NULL)
+ BEGIN
+ PRINT ("You're missing ");
+ END
+ else if (scan_result == OTHER_CHAR_ADJACENT)
+ BEGIN
+ PRINT2 ("\"%c\" immediately follows ", xchr[SCAN_CHAR]);
+ END
+ else
+ BEGIN
+ id_scanning_confusion ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 235 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 220
+ * ~~~~~~~~~~~~~~~~~~~
+ * This little procedure exists because it's used by at least two other
+ * procedures and thus saves some space.
+ ***************************************************************************/
+void bib_ln_num_print (void)
+BEGIN
+ PRINT2 ("--line %ld of file ", (long) bib_line_num);
+ print_bib_name ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 220 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 230
+ * ~~~~~~~~~~~~~~~~~~~
+ * And here are a bunch of error-message macros, each called more than
+ * once, that thus save space as implemented. This one is for when one of
+ * two possible characters is expected while scanning.
+ ***************************************************************************/
+void bib_one_of_two_print (ASCIICode_T char1, ASCIICode_T char2)
+BEGIN
+ BIB_ERR3 ("I was expecting a `%c' or a `%c'", xchr[char1], xchr[char2]);
+Exit_Label: DO_NOTHING
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 230 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 232
+ * ~~~~~~~~~~~~~~~~~~~
+ * This complains about unbalanced braces.
+ ***************************************************************************/
+void bib_unbalanced_braces_print (void)
+BEGIN
+ BIB_ERR ("Unbalanced braces");
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 232 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 222
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a harmless error parsing a .bib file, we just give a
+ * warning message. This is always called after other stuff has been
+ * printed out.
+ ***************************************************************************/
+void bib_warn_print (void)
+BEGIN
+ bib_ln_num_print ();
+ mark_warning ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 222 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 406
+ * ~~~~~~~~~~~~~~~~~~~
+ * At most one of the important letters, perhaps doubled, may appear at
+ * |sp_brace_level = 1|.
+ ***************************************************************************/
+void brace_lvl_one_letters_complaint (void)
+BEGIN
+ PRINT ("The format string \"");
+ PRINT_POOL_STR (pop_lit1);
+ BST_EX_WARN ("\" has an illegal brace-level-1 letter");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 406 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 368
+ * ~~~~~~~~~~~~~~~~~~~
+ * This complaint often arises because the style designer has to type lots
+ * of braces.
+ ***************************************************************************/
+void braces_unbalanced_complaint (StrNumber_T pop_lit_var)
+BEGIN
+ PRINT ("Warning--\"");
+ PRINT_POOL_STR (pop_lit_var);
+ BST_MILD_EX_WARN ("\" isn't a brace-balanced string");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 368 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 356
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's time for a complaint if either of the two (entry or global) string
+ * lengths is exceeded.
+ ***************************************************************************/
+void bst_1print_string_size_exceeded (void)
+BEGIN
+ PRINT ("Warning--you've exceeded ");
+END
+
+void bst_2print_string_size_exceeded (void)
+BEGIN
+ PRINT ("-string-size,");
+ bst_mild_ex_warn_print ();
+ PRINT_LN ("*Please notify the bibstyle designer*");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 356 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 295
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's illegal to mess with the entry information at certain times;
+ * here's a complaint for these times.
+ ***************************************************************************/
+void bst_cant_mess_with_entries_prin (void)
+BEGIN
+ BST_EX_WARN ("You can't mess with entries here");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 295 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 170
+ * ~~~~~~~~~~~~~~~~~~~
+ * An entry command has three arguments, each a (possibly empty) list
+ * of function names between braces (the names are separated by one or
+ * more |white_space| characters). All function names in this and other
+ * commands must be legal .bst identifiers. Upper/lower cases are
+ * considered to be the same for function names in these lists---all
+ * upper-case letters are converted to lower case. These arguments give
+ * lists of |field|s, |int_entry_var|s, and |str_entry_var|s.
+ ***************************************************************************/
+void bst_entry_command (void)
+BEGIN
+ if (entry_seen)
+ BEGIN
+ BST_ERR ("Illegal, another entry command");
+ END
+ entry_seen = TRUE;
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+
+/***************************************************************************
+ * WEB section number: 171
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a |left_brace|, the list of |field|s, and a
+ * |right_brace|. The |field|s are those like `author' and `title.'
+ ***************************************************************************/
+ BEGIN
+ BST_GET_AND_CHECK_LEFT_BRACE ("entry");
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+ BST_IDENTIFIER_SCAN ("entry");
+
+/***************************************************************************
+ * WEB section number: 172
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we insert the just found field name into the hash table, record
+ * it as a |field|, and assign it a number to be used in indexing into
+ * the |field_info| array.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a field");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BST_FN_ILK, DO_INSERT);
+ CHECK_FOR_ALREADY_SEEN_FUNCTION (fn_loc);
+ fn_type[fn_loc] = FIELD;
+ ilk_info[fn_loc] = num_fields;
+ INCR (num_fields);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 172 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+ END
+ INCR (buf_ptr2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 171 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+ if (num_fields == num_pre_defined_fields)
+ BEGIN
+ BST_WARN ("Warning--I didn't find any fields");
+ END
+
+/***************************************************************************
+ * WEB section number: 173
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a |left_brace|, the list of |int_entry_var|s,
+ * and a |right_brace|.
+ ***************************************************************************/
+ BEGIN
+ BST_GET_AND_CHECK_LEFT_BRACE ("entry");
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+ BST_IDENTIFIER_SCAN ("entry");
+
+/***************************************************************************
+ * WEB section number: 174
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we insert the just found |int_entry_var| name into the hash table
+ * and record it as an |int_entry_var|. An |int_entry_var| is one that
+ * the style designer wants a separate copy of for each entry.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is an integer entry-variable");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BST_FN_ILK, DO_INSERT);
+ CHECK_FOR_ALREADY_SEEN_FUNCTION (fn_loc);
+ fn_type[fn_loc] = INT_ENTRY_VAR;
+ FN_INFO[fn_loc] = num_ent_ints;
+ INCR (num_ent_ints);
+ END
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 174 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+ END
+ INCR (buf_ptr2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 173 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+
+/***************************************************************************
+ * WEB section number: 175
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a |left_brace|, the list of |str_entry_var|s, and a
+ * |right_brace|. A |str_entry_var| is one that the style designer wants
+ * a separate copy of for each entry.
+ ***************************************************************************/
+ BEGIN
+ BST_GET_AND_CHECK_LEFT_BRACE ("entry");
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+ BST_IDENTIFIER_SCAN ("entry");
+
+/***************************************************************************
+ * WEB section number: 176
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we insert the just found |str_entry_var| name into the hash
+ * table, record it as a |str_entry_var|, and set its pointer into
+ * |entry_strs|.
+ ***************************************************************************/
+ BEGIN
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a string entry-variable");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BST_FN_ILK, DO_INSERT);
+ CHECK_FOR_ALREADY_SEEN_FUNCTION (fn_loc);
+ fn_type[fn_loc] = STR_ENTRY_VAR;
+ FN_INFO[fn_loc] = num_ent_strs;
+ INCR (num_ent_strs);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 176 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("entry");
+ END
+ INCR (buf_ptr2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 175 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 170 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 149
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a serious error parsing the .bst file, we flush the
+ * rest of the current command; a blank line is assumed to mark the end of
+ * a command (but for the purposes of error recovery only). Thus, error
+ * recovery will be better if style designers leave blank lines between
+ * .bst commands. This macro must be called from within a procedure
+ * that has an |exit| label.
+ ***************************************************************************/
+void bst_err_print_and_look_for_blan (void)
+BEGIN
+ PRINT ("-");
+ bst_ln_num_print ();
+ print_bad_input_line ();
+ while (last != 0)
+ if ( ! input_ln (bst_file))
+ BEGIN
+ longjmp (Bst_Done_Flag, 1);
+ END
+ else
+ BEGIN
+ INCR (bst_line_num);
+ END
+ buf_ptr2 = last;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 149 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 178
+ * ~~~~~~~~~~~~~~~~~~~
+ * An execute command has one argument, a single |built_in| or
+ * |wiz_defined| function name between braces. Upper/lower cases are
+ * considered to be the same---all upper-case letters are converted to
+ * lower case. Also, we must make sure we've already seen a read
+ * command.
+ *
+ * This module reads a |left_brace|, a single function to be executed, and
+ * a |right_brace|.
+ ***************************************************************************/
+void bst_execute_command (void)
+BEGIN
+ if ( ! read_seen)
+ BEGIN
+ BST_ERR ("Illegal, execute command before read command");
+ END
+ EAT_BST_WHITE_AND_EOF_CHECK ("execute");
+ BST_GET_AND_CHECK_LEFT_BRACE ("execute");
+ EAT_BST_WHITE_AND_EOF_CHECK ("execute");
+ BST_IDENTIFIER_SCAN ("execute");
+
+
+/***************************************************************************
+ * WEB section number: 179
+ * ~~~~~~~~~~~~~~~~~~~
+ * Before executing the function, we must make sure it's a legal one. It
+ * must exist and be |built_in| or |wiz_defined|.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a to be executed function");
+ }
+#endif /* TRACE */
+
+ if (bad_argument_token ())
+ BEGIN
+ goto Exit_Label;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 179 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("execute");
+ BST_GET_AND_CHECK_RIGHT_BRACE ("execute");
+
+/***************************************************************************
+ * WEB section number: 296
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module executes a single specified function once. It can't do
+ * anything with the entries.
+ ***************************************************************************/
+ BEGIN
+ init_command_execution ();
+ mess_with_entries = FALSE;
+ execute_fn (fn_loc);
+ check_command_execution ();
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 296 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 178 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 293
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's an error while executing .bst functions, what we do
+ * depends on whether the function is messing with the entries.
+ * Furthermore this error is serious enough to classify as an
+ * |error_message| instead of a |warning_message|. These messages (that
+ * is, from |bst_ex_warn|) are meant both for the user and for the style
+ * designer while debugging.
+ ***************************************************************************/
+void bst_ex_warn_print (void)
+BEGIN
+ if (mess_with_entries)
+ BEGIN
+ PRINT (" for entry ");
+ PRINT_POOL_STR (CUR_CITE_STR);
+ END
+ PRINT_NEWLINE;
+ PRINT ("while executing-");
+ bst_ln_num_print ();
+ mark_error ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 293 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 180
+ * ~~~~~~~~~~~~~~~~~~~
+ * A function command has two arguments; the first is a |wiz_defined|
+ * function name between braces. Upper/lower cases are considered to be
+ * the same---all upper-case letters are converted to lower case. The
+ * second argument defines this function. It consists of a sequence of
+ * functions, between braces, separated by |white_space| characters.
+ * Upper/lower cases are considered to be the same for function names but
+ * not for |str_literal|s.
+ ***************************************************************************/
+void bst_function_command (void)
+BEGIN
+ EAT_BST_WHITE_AND_EOF_CHECK ("function");
+
+/***************************************************************************
+ * WEB section number: 181
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a |left_brace|, a |wiz_defined| function name, and
+ * a |right_brace|.
+ ***************************************************************************/
+ BEGIN
+ BST_GET_AND_CHECK_LEFT_BRACE ("function");
+ EAT_BST_WHITE_AND_EOF_CHECK ("function");
+ BST_IDENTIFIER_SCAN ("function");
+
+/***************************************************************************
+ * WEB section number: 182
+ * ~~~~~~~~~~~~~~~~~~~
+ * The function name must exist and be a new one; we mark it as
+ * |wiz_defined|. Also, see if it's the default entry-type function.
+ ***************************************************************************/
+ BEGIN
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a wizard-defined function");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ wiz_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, BST_FN_ILK,
+ DO_INSERT);
+ CHECK_FOR_ALREADY_SEEN_FUNCTION (wiz_loc);
+ fn_type[wiz_loc] = WIZ_DEFINED;
+ if (hash_text[wiz_loc] == s_default)
+ BEGIN
+ b_default = wiz_loc;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 182 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("function");
+ BST_GET_AND_CHECK_RIGHT_BRACE ("function");
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 181 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("function");
+ BST_GET_AND_CHECK_LEFT_BRACE ("function");
+ scan_fn_def (wiz_loc);
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 180 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 166
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro is used to scan all .bst identifiers. The argument
+ * supplies the .bst command name. The associated procedure simply
+ * prints an error message.
+ ***************************************************************************/
+void bst_id_print (void)
+BEGIN
+ if (scan_result == ID_NULL)
+ BEGIN
+ PRINT2 ("\"%c\" begins identifier, command: ", xchr[SCAN_CHAR]);
+ END
+ else if (scan_result == OTHER_CHAR_ADJACENT)
+ BEGIN
+ PRINT2 ("\"%c\" immediately follows identifier, command: ",
+ xchr[SCAN_CHAR]);
+ END
+ else
+ BEGIN
+ id_scanning_confusion ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 166 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 201
+ * ~~~~~~~~~~~~~~~~~~~
+ * An integers command has one argument, a list of function names
+ * between braces (the names are separated by one or more |white_space|
+ * characters). Upper/lower cases are considered to be the same for
+ * function names in these lists---all upper-case letters are converted to
+ * lower case. Each name in this list specifies an |int_global_var|.
+ * There may be several integers commands in the .bst file.
+ *
+ * This module reads a |left_brace|, a list of |int_global_var|s, and a
+ * |right_brace|.
+ ***************************************************************************/
+void bst_integers_command (void)
+BEGIN
+ EAT_BST_WHITE_AND_EOF_CHECK ("integers");
+ BST_GET_AND_CHECK_LEFT_BRACE ("integers");
+ EAT_BST_WHITE_AND_EOF_CHECK ("integers");
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+ BST_IDENTIFIER_SCAN ("integers");
+
+/***************************************************************************
+ * WEB section number: 202
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we insert the just found |int_global_var| name into the hash
+ * table and record it as an |int_global_var|. Also, we initialize it by
+ * setting |FN_INFO[fn_loc]| to 0.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is an integer global-variable");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BST_FN_ILK, DO_INSERT);
+ CHECK_FOR_ALREADY_SEEN_FUNCTION (fn_loc);
+ fn_type[fn_loc] = INT_GLOBAL_VAR;
+ FN_INFO[fn_loc] = 0;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 202 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("integers");
+ END
+ INCR (buf_ptr2);
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 201 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 203
+ * ~~~~~~~~~~~~~~~~~~~
+ * An iterate command has one argument, a single |built_in| or
+ * |wiz_defined| function name between braces. Upper/lower cases are
+ * considered to be the same---all upper-case letters are converted to
+ * lower case. Also, we must make sure we've already seen a read
+ * command.
+ *
+ * This module reads a |left_brace|, a single function to be iterated, and
+ * a |right_brace|.
+ ***************************************************************************/
+void bst_iterate_command (void)
+BEGIN
+ if ( ! read_seen)
+ BEGIN
+ BST_ERR ("Illegal, iterate command before read command");
+ END
+ EAT_BST_WHITE_AND_EOF_CHECK ("iterate");
+ BST_GET_AND_CHECK_LEFT_BRACE ("iterate");
+ EAT_BST_WHITE_AND_EOF_CHECK ("iterate");
+ BST_IDENTIFIER_SCAN ("iterate");
+
+/***************************************************************************
+ * WEB section number: 204
+ * ~~~~~~~~~~~~~~~~~~~
+ * Before iterating the function, we must make sure it's a legal one. It
+ * must exist and be |built_in| or |wiz_defined|.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a to be iterated function");
+ }
+#endif /* TRACE */
+
+ if (bad_argument_token ())
+ BEGIN
+ goto Exit_Label;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 204 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("iterate");
+ BST_GET_AND_CHECK_RIGHT_BRACE ("iterate");
+
+/***************************************************************************
+ * WEB section number: 297
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module iterates a single specified function for all entries
+ * specified by |cite_list|.
+ ***************************************************************************/
+ BEGIN
+ init_command_execution ();
+ mess_with_entries = TRUE;
+ sort_cite_ptr = 0;
+ while (sort_cite_ptr < num_cites)
+ BEGIN
+ cite_ptr = SORTED_CITES[sort_cite_ptr];
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_POOL_STR (hash_text[fn_loc]);
+ TRACE_PR (" to be iterated on ");
+ TRACE_PR_POOL_STR (CUR_CITE_STR);
+ TRACE_PR_NEWLINE;
+ }
+#endif /* TRACE */
+
+ execute_fn (fn_loc);
+ check_command_execution ();
+ INCR (sort_cite_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 297 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 203 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 167
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro just makes sure we're at a |left_brace|.
+ ***************************************************************************/
+void bst_left_brace_print (void)
+BEGIN
+ PRINT2 ("\"%c\" is missing in command: ", xchr[LEFT_BRACE]);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 167 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 148
+ * ~~~~~~~~~~~~~~~~~~~
+ * This little procedure exists because it's used by at least two other
+ * procedures and thus saves some space.
+ ***************************************************************************/
+void bst_ln_num_print (void)
+BEGIN
+ PRINT2 ("--line %ld of file ", (long) bst_line_num);
+ print_bst_name ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 148 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 205
+ * ~~~~~~~~~~~~~~~~~~~
+ * A macro command, like a function command, has two arguments;
+ * the first is a macro name between braces. The name must be a legal
+ * .bst identifier. Upper/lower cases are considered to be the
+ * same---all upper-case letters are converted to lower case. The second
+ * argument defines this macro. It consists of a |double_quote|-delimited
+ * string (which must be on a single line) between braces, with optional
+ * |white_space| characters between the braces and the |double_quote|s.
+ * This |double_quote|-delimited string is parsed exactly as a
+ * |str_literal| is for the function command.
+ ***************************************************************************/
+void bst_macro_command (void)
+BEGIN
+ if (read_seen)
+ BEGIN
+ BST_ERR ("Illegal, macro command after read command");
+ END
+ EAT_BST_WHITE_AND_EOF_CHECK ("macro");
+
+/***************************************************************************
+ * WEB section number: 206
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a |left_brace|, a macro name, and a |right_brace|.
+ ***************************************************************************/
+ BEGIN
+ BST_GET_AND_CHECK_LEFT_BRACE ("macro");
+ EAT_BST_WHITE_AND_EOF_CHECK ("macro");
+ BST_IDENTIFIER_SCAN ("macro");
+
+/***************************************************************************
+ * WEB section number: 207
+ * ~~~~~~~~~~~~~~~~~~~
+ * The macro name must be a new one; we mark it as |macro_ilk|.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a macro");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ macro_name_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, MACRO_ILK,
+ DO_INSERT);
+ if (hash_found)
+ BEGIN
+ PRINT_TOKEN;
+ BST_ERR (" is already defined as a macro");
+ END
+ ilk_info[macro_name_loc] = hash_text[macro_name_loc];
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 207 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("macro");
+ BST_GET_AND_CHECK_RIGHT_BRACE ("macro");
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 206 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("macro");
+
+/***************************************************************************
+ * WEB section number: 208
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a |left_brace|, the |double_quote|-delimited string
+ * that defines this macro, and a |right_brace|.
+ ***************************************************************************/
+ BEGIN
+ BST_GET_AND_CHECK_LEFT_BRACE ("macro");
+ EAT_BST_WHITE_AND_EOF_CHECK ("macro");
+ if (SCAN_CHAR != DOUBLE_QUOTE)
+ BEGIN
+ BST_ERR2 ("A macro definition must be %c-delimited",
+ xchr[DOUBLE_QUOTE]);
+ END
+
+/***************************************************************************
+ * WEB section number: 209
+ * ~~~~~~~~~~~~~~~~~~~
+ * A macro definition-string is preceded by a |double_quote| and consists
+ * of all characters on this line up to the next |double_quote|. The
+ * array |ilk_info| contains a pointer to this string for the macro name.
+ ***************************************************************************/
+ BEGIN
+ INCR (buf_ptr2);
+ if ( ! scan1 (DOUBLE_QUOTE))
+ BEGIN
+ BST_ERR2 ("There's no `%c' to end macro definition",
+ xchr[DOUBLE_QUOTE]);
+ END
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("\"");
+ TRACE_PR_TOKEN;
+ TRACE_PR ("\"");
+ TRACE_PR_LN (" is a macro string");
+ }
+#endif /* TRACE */
+
+ macro_def_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, TEXT_ILK,
+ DO_INSERT);
+ fn_type[macro_def_loc] = STR_LITERAL;
+ ilk_info[macro_name_loc] = hash_text[macro_def_loc];
+ INCR (buf_ptr2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 209 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("macro");
+ BST_GET_AND_CHECK_RIGHT_BRACE ("macro");
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 208 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 205 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 294
+ * ~~~~~~~~~~~~~~~~~~~
+ * When an error is so harmless, we print a |warning_message| instead of
+ * an |error_message|.
+ ***************************************************************************/
+void bst_mild_ex_warn_print (void)
+BEGIN
+ if (mess_with_entries)
+ BEGIN
+ PRINT (" for entry ");
+ PRINT_POOL_STR (CUR_CITE_STR);
+ END
+ PRINT_NEWLINE;
+ BST_WARN ("while executing");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 294 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 211
+ * ~~~~~~~~~~~~~~~~~~~
+ * The read command has no arguments so there's no more parsing to do.
+ * We must make sure we haven't seen a read command before and we've
+ * already seen an entry command.
+ ***************************************************************************/
+void bst_read_command (void)
+BEGIN
+ if (read_seen)
+ BEGIN
+ BST_ERR ("Illegal, another read command");
+ END
+ read_seen = TRUE;
+ if ( ! entry_seen)
+ BEGIN
+ BST_ERR ("Illegal, read command before entry command");
+ END
+ sv_ptr1 = buf_ptr2;
+ sv_ptr2 = last;
+ tmp_ptr = sv_ptr1;
+ while (tmp_ptr < sv_ptr2)
+ BEGIN
+ sv_buffer[tmp_ptr] = buffer[tmp_ptr];
+ INCR (tmp_ptr);
+ END
+
+/***************************************************************************
+ * WEB section number: 223
+ * ~~~~~~~~~~~~~~~~~~~
+ * For all |num_bib_files| database files, we keep reading and processing
+ * .bib entries until none left.
+ ***************************************************************************/
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 224
+ * ~~~~~~~~~~~~~~~~~~~
+ * We need to initialize the |field_info| array, and also various things
+ * associated with the |cite_list| array (but not |cite_list| itself).
+ ***************************************************************************/
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 225
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module initializes all fields of all entries to |missing|, the
+ * value to which all fields are initialized.
+ ***************************************************************************/
+ BEGIN
+ check_field_overflow (num_fields * num_cites);
+ field_ptr = 0;
+ while (field_ptr < Max_Fields)
+ BEGIN
+ field_info[field_ptr] = MISSING;
+ INCR (field_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 225 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 227
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must initialize the |type_list| array so that we can detect
+ * duplicate (or missing) entries for cite keys on |cite_list|. Also,
+ * when we're to include the entire database, we use the array
+ * |entry_exists| to detect those missing entries whose |cite_list| info
+ * will (or to be more precise, might) be overwritten; and we use the
+ * array |cite_info| to save the part of |cite_list| that will (might) be
+ * overwritten. We also use |cite_info| for counting cross~references
+ * when it's appropriate---when an entry isn't otherwise to be included
+ * on |cite_list| (that is, the entry isn't \cited or
+ * \nocited). Such an entry is included on the final |cite_list| if
+ * it's cross~referenced at least |min_crossrefs| times.
+ ***************************************************************************/
+ BEGIN
+ cite_ptr = 0;
+ while (cite_ptr < Max_Cites)
+ BEGIN
+ type_list[cite_ptr] = EMPTY;
+ cite_info[cite_ptr] = ANY_VALUE;
+ INCR (cite_ptr);
+ END
+ old_num_cites = num_cites;
+ if (all_entries)
+ BEGIN
+ cite_ptr = all_marker;
+ while (cite_ptr < old_num_cites)
+ BEGIN
+ cite_info[cite_ptr] = cite_list[cite_ptr];
+ entry_exists[cite_ptr] = FALSE;
+ INCR (cite_ptr);
+ END
+ cite_ptr = all_marker;
+ END
+ else
+ BEGIN
+ cite_ptr = num_cites;
+ all_marker = ANY_VALUE;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 227 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 224 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ read_performed = TRUE;
+ bib_ptr = 0;
+ while (bib_ptr < num_bib_files)
+ BEGIN
+ PRINT2 ("Database file #%ld: ", (long) bib_ptr + 1);
+ print_bib_name ();
+ bib_line_num = 0;
+ buf_ptr2 = last;
+ while ( ! feof (CUR_BIB_FILE))
+ BEGIN
+ get_bib_command_or_entry_and_pr ();
+ END
+ a_close (CUR_BIB_FILE);
+ INCR (bib_ptr);
+ END
+ reading_completed = TRUE;
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Finished reading the database file(s)");
+#endif /* TRACE */
+
+/***************************************************************************
+ * WEB section number: 276
+ * ~~~~~~~~~~~~~~~~~~~
+ * This gets things ready for further .bst processing.
+ ***************************************************************************/
+ BEGIN
+ num_cites = cite_ptr;
+ num_preamble_strings = preamble_ptr;
+
+/***************************************************************************
+ * WEB section number: 277
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we update any entry (here called a child entry) that
+ * cross referenced another (here called a parent entry); this
+ * cross referencing occurs when the child's crossref field (value)
+ * consists of the parent's database key. To do the update, we replace
+ * the child's |missing| fields by the corresponding fields of the
+ * parent. Also, we make sure the crossref field contains the
+ * case-correct version. Finally, although it is technically illegal to
+ * nest cross references, and although we give a warning (a few modules
+ * hence) when someone tries, we do what we can to accommodate the
+ * attempt.
+ ***************************************************************************/
+ BEGIN
+ cite_ptr = 0;
+ while (cite_ptr < num_cites)
+ BEGIN
+ field_ptr = (cite_ptr * num_fields) + crossref_num;
+ if (field_info[field_ptr] != MISSING)
+ BEGIN
+ if (find_cite_locs_for_this_cite_ke (field_info[field_ptr]))
+ BEGIN
+ cite_loc = ilk_info[lc_cite_loc];
+ field_info[field_ptr] = hash_text[cite_loc];
+ cite_parent_ptr = ilk_info[cite_loc];
+ field_ptr = (cite_ptr * num_fields) + num_pre_defined_fields;
+ field_end_ptr = field_ptr - num_pre_defined_fields + num_fields;
+ field_parent_ptr = (cite_parent_ptr * num_fields)
+ + num_pre_defined_fields;
+ while (field_ptr < field_end_ptr)
+ BEGIN
+ if (field_info[field_ptr] == MISSING)
+ BEGIN
+ field_info[field_ptr] = field_info[field_parent_ptr];
+ END
+ INCR (field_ptr);
+ INCR (field_parent_ptr);
+ END
+ END
+ END
+ INCR (cite_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 277 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 279
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we remove the crossref field value for each child whose
+ * parent was cross referenced too few times. We also issue any
+ * necessary warnings arising from a bad cross reference.
+ ***************************************************************************/
+ BEGIN
+ cite_ptr = 0;
+ while (cite_ptr < num_cites)
+ BEGIN
+ field_ptr = (cite_ptr * num_fields) + crossref_num;
+ if (field_info[field_ptr] != MISSING)
+ BEGIN
+ if ( ! find_cite_locs_for_this_cite_ke (field_info[field_ptr]))
+ BEGIN
+ if (cite_hash_found)
+ BEGIN
+ hash_cite_confusion ();
+ END
+ non_existent_cross_reference_er ();
+ field_info[field_ptr] = MISSING;
+ END
+ else
+ BEGIN
+ if (cite_loc != ilk_info[lc_cite_loc])
+ BEGIN
+ hash_cite_confusion ();
+ END
+ cite_parent_ptr = ilk_info[cite_loc];
+ if (type_list[cite_parent_ptr] == EMPTY)
+ BEGIN
+ non_existent_cross_reference_er ();
+ field_info[field_ptr] = MISSING;
+ END
+ else
+ BEGIN
+ field_parent_ptr = (cite_parent_ptr * num_fields)
+ + crossref_num;
+ if (field_info[field_parent_ptr] != MISSING)
+
+/***************************************************************************
+ * WEB section number: 282
+ * ~~~~~~~~~~~~~~~~~~~
+ * We also complain when an entry being cross referenced has a
+ * non|missing| crossref field itself, but this one is just a
+ * warning, not a full-blown error.
+ ***************************************************************************/
+ BEGIN
+ PRINT ("Warning--you've nested cross references");
+ bad_cross_reference_print (cite_list[cite_parent_ptr]);
+ PRINT_LN ("\", which also refers to something");
+ mark_warning ();
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 282 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ if (( ! all_entries) && (cite_parent_ptr >= old_num_cites)
+ && (cite_info[cite_parent_ptr] < Min_Crossrefs))
+ BEGIN
+ field_info[field_ptr] = MISSING;
+ END
+ END
+ END
+ END
+ INCR (cite_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 279 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 283
+ * ~~~~~~~~~~~~~~~~~~~
+ * We remove (and give a warning for) each cite key on the original
+ * |cite_list| without a corresponding database entry. And we remove any
+ * entry that was included on |cite_list| only because it was
+ * cross~referenced, yet was cross~referenced fewer than |min_crossrefs|
+ * times. Throughout this module, |cite_ptr| points to the next cite key
+ * to be checked and |cite_xptr| points to the next permanent spot on
+ * |cite_list|.
+ ***************************************************************************/
+ BEGIN
+ cite_ptr = 0;
+ while (cite_ptr < num_cites)
+ BEGIN
+ if (type_list[cite_ptr] == EMPTY)
+ BEGIN
+ print_missing_entry (CUR_CITE_STR);
+ END
+ else if ((all_entries) || (cite_ptr < old_num_cites)
+ || (cite_info[cite_ptr] >= Min_Crossrefs))
+ BEGIN
+ if (cite_ptr > cite_xptr)
+
+/***************************************************************************
+ * WEB section number: 285
+ * ~~~~~~~~~~~~~~~~~~~
+ * We have to move to its final resting place all the entry information
+ * associated with the exact location in |cite_list| of this cite key.
+ ***************************************************************************/
+ BEGIN
+ cite_list[cite_xptr] = cite_list[cite_ptr];
+ type_list[cite_xptr] = type_list[cite_ptr];
+ if ( ! find_cite_locs_for_this_cite_ke (cite_list[cite_ptr]))
+ BEGIN
+ cite_key_disappeared_confusion ();
+ END
+ if (( ! cite_hash_found) || (cite_loc != ilk_info[lc_cite_loc]))
+ BEGIN
+ hash_cite_confusion ();
+ END
+ ilk_info[cite_loc] = cite_xptr;
+ field_ptr = cite_xptr * num_fields;
+ field_end_ptr = field_ptr + num_fields;
+ tmp_ptr = cite_ptr * num_fields;
+ while (field_ptr < field_end_ptr)
+ BEGIN
+ field_info[field_ptr] = field_info[tmp_ptr];
+ INCR (field_ptr);
+ INCR (tmp_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 285 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ INCR (cite_xptr);
+ END
+ INCR (cite_ptr);
+ END
+ num_cites = cite_xptr;
+ if (all_entries)
+
+/***************************************************************************
+ * WEB section number: 286
+ * ~~~~~~~~~~~~~~~~~~~
+ * We need this module only when we're including the whole database.
+ * It's for missing entries whose cite key originally resided in
+ * |cite_list| at a spot that another cite key (might have) claimed.
+ ***************************************************************************/
+ BEGIN
+ cite_ptr = all_marker;
+ while (cite_ptr < old_num_cites)
+ BEGIN
+ if ( ! entry_exists[cite_ptr])
+ BEGIN
+ print_missing_entry (cite_info[cite_ptr]);
+ END
+ INCR (cite_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 286 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 283 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 287
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module initializes all |int_entry_var|s of all entries to 0, the
+ * value to which all integers are initialized.
+ ***************************************************************************/
+ BEGIN
+ int_ent_ptr = (num_ent_ints + 1) * (num_cites + 1);
+ entry_ints = (Integer_T *) mymalloc ((unsigned long) sizeof (Integer_T)
+ * (unsigned long) int_ent_ptr, "entry_ints");
+ while (int_ent_ptr > 0)
+ BEGIN
+ DECR (int_ent_ptr);
+ entry_ints[int_ent_ptr] = 0;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 287 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 288
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module initializes all |str_entry_var|s of all entries to the
+ * null string, the value to which all strings are initialized.
+ ***************************************************************************/
+ BEGIN
+ str_ent_ptr = (num_ent_strs + 1) * (num_cites + 1);
+ entry_strs = (ASCIICode_T *) mymalloc ((unsigned long) sizeof (ASCIICode_T)
+ * (unsigned long) (Ent_Str_Size + 1)
+ * (unsigned long) str_ent_ptr, "entry_strs");
+ while (str_ent_ptr > 0)
+ BEGIN
+ DECR (str_ent_ptr);
+ ENTRY_STRS(str_ent_ptr,0) = END_OF_STRING;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 288 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 289
+ * ~~~~~~~~~~~~~~~~~~~
+ * The array |sorted_cites| initially specifies that the entries are to
+ * be processed in order of cite-key occurrence. The sort command
+ * may change this to whatever it likes (which, we hope, is whatever the
+ * style-designer instructs it to like). We make |sorted_cites| an alias
+ * to save space; this works fine because we're done with |cite_info|.
+ ***************************************************************************/
+ BEGIN
+ cite_ptr = 0;
+ while (cite_ptr < num_cites)
+ BEGIN
+ SORTED_CITES[cite_ptr] = cite_ptr;
+ INCR (cite_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 289 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 276 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ read_completed = TRUE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 223 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ buf_ptr2 = sv_ptr1;
+ last = sv_ptr2;
+ tmp_ptr = buf_ptr2;
+ while (tmp_ptr < last)
+ BEGIN
+ buffer[tmp_ptr] = sv_buffer[tmp_ptr];
+ INCR (tmp_ptr);
+ END
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 211 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 212
+ * ~~~~~~~~~~~~~~~~~~~
+ * A reverse command has one argument, a single |built_in| or
+ * |wiz_defined| function name between braces. Upper/lower cases are
+ * considered to be the same---all upper-case letters are converted to
+ * lower case. Also, we must make sure we've already seen a read
+ * command.
+ *
+ * This module reads a |left_brace|, a single function to be iterated in
+ * reverse, and a |right_brace|.
+ ***************************************************************************/
+void bst_reverse_command (void)
+BEGIN
+ if ( ! read_seen)
+ BEGIN
+ BST_ERR ("Illegal, reverse command before read command");
+ END
+ EAT_BST_WHITE_AND_EOF_CHECK ("reverse");
+ BST_GET_AND_CHECK_LEFT_BRACE ("reverse");
+ EAT_BST_WHITE_AND_EOF_CHECK ("reverse");
+ BST_IDENTIFIER_SCAN ("reverse");
+
+/***************************************************************************
+ * WEB section number: 213
+ * ~~~~~~~~~~~~~~~~~~~
+ * Before iterating the function, we must make sure it's a legal one. It
+ * must exist and be |built_in| or |wiz_defined|.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a to be iterated in reverse function");
+ }
+#endif /* TRACE */
+
+ if (bad_argument_token ())
+ BEGIN
+ goto Exit_Label;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 213 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("reverse");
+ BST_GET_AND_CHECK_RIGHT_BRACE ("reverse");
+
+/***************************************************************************
+ * WEB section number: 298
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module iterates a single specified function for all entries
+ * specified by |cite_list|, but does it in reverse order.
+ ***************************************************************************/
+ BEGIN
+ init_command_execution ();
+ mess_with_entries = TRUE;
+ if (num_cites > 0)
+ BEGIN
+ sort_cite_ptr = num_cites;
+ REPEAT
+ BEGIN
+ DECR (sort_cite_ptr);
+ cite_ptr = SORTED_CITES[sort_cite_ptr];
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_POOL_STR (hash_text[fn_loc]);
+ TRACE_PR (" to be iterated in reverse on ");
+ TRACE_PR_POOL_STR (CUR_CITE_STR);
+ TRACE_PR_NEWLINE;
+ }
+#endif /* TRACE */
+
+ execute_fn (fn_loc);
+ check_command_execution ();
+ END UNTIL (sort_cite_ptr == 0);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 298 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 212 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 168
+ * ~~~~~~~~~~~~~~~~~~~
+ * And this one, a |right_brace|.
+ ***************************************************************************/
+void bst_right_brace_print (void)
+BEGIN
+ PRINT2 ("\"%c\" is missing in command: ", xchr[RIGHT_BRACE]);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 168 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 214
+ * ~~~~~~~~~~~~~~~~~~~
+ * The sort command has no arguments so there's no more parsing to do,
+ * but we must make sure we've already seen a read command.
+ ***************************************************************************/
+void bst_sort_command (void)
+BEGIN
+ if ( ! read_seen)
+ BEGIN
+ BST_ERR ("Illegal, sort command before read command");
+ END
+
+/***************************************************************************
+ * WEB section number: 299
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module sorts the entries based on sort.key$; it is a stable
+ * sort.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Sorting the entries");
+#endif /* TRACE */
+
+ if (num_cites > 1)
+ BEGIN
+ quick_sort (0, num_cites - 1);
+ END
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Done sorting");
+#endif /* TRACE */
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 299 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 214 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 215
+ * ~~~~~~~~~~~~~~~~~~~
+ * A strings command has one argument, a list of function names
+ * between braces (the names are separated by one or more |white_space|
+ * characters). Upper/lower cases are considered to be the same for
+ * function names in these lists---all upper-case letters are converted to
+ * lower case. Each name in this list specifies a |str_global_var|.
+ * There may be several strings commands in the .bst file.
+ *
+ * This module reads a |left_brace|, a list of |str_global_var|s, and a
+ * |right_brace|.
+ ***************************************************************************/
+void bst_strings_command (void)
+BEGIN
+ EAT_BST_WHITE_AND_EOF_CHECK ("strings");
+ BST_GET_AND_CHECK_LEFT_BRACE ("strings");
+ EAT_BST_WHITE_AND_EOF_CHECK ("strings");
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+ BST_IDENTIFIER_SCAN ("strings");
+
+/***************************************************************************
+ * WEB section number: 216
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we insert the just found |str_global_var| name into the hash
+ * table, record it as a |str_global_var|, set its pointer into
+ * |global_strs|, and initialize its value there to the null string.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a string global-variable");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, BST_FN_ILK,
+ DO_INSERT);
+ CHECK_FOR_ALREADY_SEEN_FUNCTION (fn_loc);
+ fn_type[fn_loc] = STR_GLOBAL_VAR;
+ FN_INFO[fn_loc] = num_glb_strs;
+ if (num_glb_strs == Max_Glob_Strs)
+ BEGIN
+ BIB_XRETALLOC_NOSET ("glb_str_ptr", glb_str_ptr, StrNumber_T,
+ Max_Glob_Strs, Max_Glob_Strs + MAX_GLOB_STRS);
+ BIB_XRETALLOC_STRING ("global_strs", global_strs, Glob_Str_Size,
+ Max_Glob_Strs, Max_Glob_Strs + MAX_GLOB_STRS);
+ BIB_XRETALLOC ("glb_str_end", glb_str_end, Integer_T,
+ Max_Glob_Strs, Max_Glob_Strs + MAX_GLOB_STRS);
+ str_glb_ptr = num_glb_strs;
+ while (str_glb_ptr < Max_Glob_Strs)
+ BEGIN
+ glb_str_ptr[str_glb_ptr] = 0;
+ glb_str_end[str_glb_ptr] = 0;
+ INCR (str_glb_ptr);
+ END
+ END
+ INCR (num_glb_strs);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 216 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BST_WHITE_AND_EOF_CHECK ("strings");
+
+ END
+ INCR (buf_ptr2);
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 215 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 150
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a harmless error parsing the .bst file (harmless
+ * syntactically, at least) we give just a |warning_message|.
+ ***************************************************************************/
+void bst_warn_print (void)
+BEGIN
+ bst_ln_num_print ();
+ mark_warning ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 150 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 46
+ * ~~~~~~~~~~~~~~~~~~~
+ * When a buffer overflows, it's time to complain (and then quit).
+ ***************************************************************************/
+void buffer_overflow (void)
+BEGIN
+ BIB_XRETALLOC_NOSET ("buffer", buffer, ASCIICode_T,
+ Buf_Size, Buf_Size + BUF_SIZE);
+ BIB_XRETALLOC_NOSET ("ex_buf", ex_buf, ASCIICode_T,
+ Buf_Size, Buf_Size + BUF_SIZE);
+ BIB_XRETALLOC_NOSET ("name_sep_char", name_sep_char, ASCIICode_T,
+ Buf_Size, Buf_Size + BUF_SIZE);
+ BIB_XRETALLOC_NOSET ("name_tok", name_tok, BufPointer_T,
+ Buf_Size, Buf_Size + BUF_SIZE);
+ BIB_XRETALLOC_NOSET ("out_buf", out_buf, ASCIICode_T,
+ Buf_Size, Buf_Size + BUF_SIZE);
+ BIB_XRETALLOC ("sv_buffer", sv_buffer, ASCIICode_T,
+ Buf_Size, Buf_Size + BUF_SIZE);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 46 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 335
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure inserts a |built_in| function into the hash table and
+ * initializes the corresponding pre-defined string (of length at most
+ * |longest_pds|). The array |FN_INFO| contains a number from 0 through
+ * the number of |built_in| functions minus 1 (i.e., |num_blt_in_fns - 1|
+ * if we're keeping statistics); this number is used by a |case| statement
+ * to execute this function and is used for keeping execution counts when
+ * keeping statistics.
+ ***************************************************************************/
+void build_in (PdsType_T pds, PdsLen_T len,
+ HashLoc_T *fn_hash_loc, BltInRange_T blt_in_num)
+BEGIN
+ pre_define (pds, len, BST_FN_ILK);
+ *fn_hash_loc = pre_def_loc;
+ fn_type[*fn_hash_loc] = BUILT_IN;
+ FN_INFO[*fn_hash_loc] = blt_in_num;
+
+#ifdef STAT
+ if (Flag_stats) {
+ blt_in_loc[blt_in_num] = *fn_hash_loc;
+ execution_count[blt_in_num] = 0;
+ }
+#endif /* STAT */
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 335 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 373
+ * ~~~~~~~~~~~~~~~~~~~
+ * Another bug complaint.
+ ***************************************************************************/
+void case_conversion_confusion (void)
+BEGIN
+ CONFUSION ("Unknown type of case conversion");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 373 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 369
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one makes sure that |brace_level=0| (it's called at a point in a
+ * string where braces must be balanced).
+ ***************************************************************************/
+void check_brace_level (StrNumber_T pop_lit_var)
+BEGIN
+ if (brace_level > 0)
+ BEGIN
+ braces_unbalanced_complaint (pop_lit_var);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 369 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 138
+ * ~~~~~~~~~~~~~~~~~~~
+ * Complain if somebody's got a cite fetish. This procedure is called
+ * when were about to add another cite key to |cite_list|. It assumes
+ * that |cite_loc| gives the potential cite key's hash table location.
+ ***************************************************************************/
+void check_cite_overflow (CiteNumber_T last_cite)
+BEGIN
+ if (last_cite == Max_Cites)
+ BEGIN
+ BIB_XRETALLOC_NOSET ("cite_info", cite_info, StrNumber_T,
+ Max_Cites, Max_Cites + MAX_CITES);
+ BIB_XRETALLOC_NOSET ("cite_list", cite_list, StrNumber_T,
+ Max_Cites, Max_Cites + MAX_CITES);
+ BIB_XRETALLOC_NOSET ("entry_exists", entry_exists, Boolean_T,
+ Max_Cites, Max_Cites + MAX_CITES);
+ BIB_XRETALLOC ("type_list", type_list, HashPtr2_T,
+ Max_Cites, Max_Cites + MAX_CITES);
+ while (last_cite < Max_Cites)
+ BEGIN
+ type_list[last_cite] = EMPTY;
+ cite_info[last_cite] = ANY_VALUE;
+ INCR (last_cite);
+ END
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 138 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 317
+ * ~~~~~~~~~~~~~~~~~~~
+ * At the end of a .bst command-execution we check that the stack and
+ * |str_pool| are still in good shape.
+ ***************************************************************************/
+void check_command_execution (void)
+BEGIN
+ if (lit_stk_ptr != 0)
+ BEGIN
+ PRINT_LN2 ("ptr=%ld, stack=", (long) lit_stk_ptr);
+ pop_whole_stack ();
+ PRINT ("---the literal stack isn't empty");
+ bst_ex_warn_print ();
+ END
+ if (cmd_str_ptr != str_ptr)
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN3 ("Pointer is %ld but should be %ld", (long) str_ptr,
+ (long) cmd_str_ptr);
+#endif /* TRACE */
+
+ CONFUSION ("Nonempty empty string stack");
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 317 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 226
+ * ~~~~~~~~~~~~~~~~~~~
+ * Complain if somebody's got a field fetish.
+ ***************************************************************************/
+void check_field_overflow (Integer_T total_fields)
+BEGIN
+ if (total_fields > Max_Fields)
+ BEGIN
+ field_ptr = Max_Fields;
+ BIB_XRETALLOC ("field_info", field_info, StrNumber_T,
+ Max_Fields, total_fields + MAX_FIELDS);
+ /* Initialize to |missing|. */
+ while (field_ptr < Max_Fields)
+ BEGIN
+ field_info[field_ptr] = MISSING;
+ INCR (field_ptr);
+ END
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 226 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 271
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's another bug complaint.
+ ***************************************************************************/
+void cite_key_disappeared_confusion (void)
+BEGIN
+ CONFUSION ("A cite key disappeared");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 271 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 252
+ * ~~~~~~~~~~~~~~~~~~~
+ * The .bib-specific scanning function |compress_bib_white| skips over
+ * |white_space| characters within a string until hitting a nonwhite
+ * character; in fact, it does everything |eat_bib_white_space| does, but
+ * it also adds a |space| to |field_vl_str|. This function is never
+ * called if there are no |white_space| characters (or ends-of-line) to be
+ * scanned (though the associated macro might be). The function returns
+ * |false| if there is a serious syntax error.
+ ***************************************************************************/
+Boolean_T compress_bib_white (void)
+BEGIN
+ Boolean_T compress_bib_white;
+
+ compress_bib_white = FALSE;
+ COPY_CHAR (SPACE);
+ while ( ! scan_white_space ())
+ BEGIN
+ if ( ! input_ln (CUR_BIB_FILE))
+ BEGIN
+ eat_bib_print ();
+ goto Exit_Label;
+ END
+ INCR (bib_line_num);
+ buf_ptr2 = 0;
+ END
+ compress_bib_white = TRUE;
+Exit_Label: DO_NOTHING;
+ return (compress_bib_white);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 252 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 367
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure complains if the just-encountered |right_brace| would
+ * make |brace_level| negative.
+ ***************************************************************************/
+void decr_brace_level (StrNumber_T pop_lit_var)
+BEGIN
+ if (brace_level == 0)
+ BEGIN
+ braces_unbalanced_complaint (pop_lit_var);
+ END
+ else
+ BEGIN
+ DECR (brace_level);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 367 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 229
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's often illegal to end a .bib command in certain places, and
+ * this is where we come to check.
+ ***************************************************************************/
+void eat_bib_print (void)
+BEGIN
+ BIB_ERR (" Illegal end of database file");
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 229 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 228
+ * ~~~~~~~~~~~~~~~~~~~
+ * Before we actually start the code for reading a database file, we must
+ * define this .bib-specific scanning function. It skips over
+ * |white_space| characters until hitting a nonwhite character or the end
+ * of the file, respectively returning |true| or |false|. It also updates
+ * |bib_line_num|, the line counter.
+ ***************************************************************************/
+Boolean_T eat_bib_white_space (void)
+BEGIN
+ Boolean_T eat_bib_white_space;
+
+ while ( ! scan_white_space ())
+ BEGIN
+ if ( ! input_ln (CUR_BIB_FILE))
+ BEGIN
+ eat_bib_white_space = FALSE;
+ goto Exit_Label;
+ END
+ INCR (bib_line_num);
+ buf_ptr2 = 0;
+ END
+ eat_bib_white_space = TRUE;
+Exit_Label:
+ return (eat_bib_white_space);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 228 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 153
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's often illegal to end a .bst command in certain places, and
+ * this is where we come to check.
+ ***************************************************************************/
+void eat_bst_print (void)
+BEGIN
+ PRINT ("Illegal end of style file in command: ");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 153 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 152
+ * ~~~~~~~~~~~~~~~~~~~
+ * This .bst-specific scanning function skips over |white_space|
+ * characters (and comments) until hitting a nonwhite character or the end
+ * of the file, respectively returning |true| or |false|. It also updates
+ * |bst_line_num|, the line counter.
+ ***************************************************************************/
+Boolean_T eat_bst_white_space (void)
+BEGIN
+ Boolean_T eat_bst_white_space;
+
+ LOOP
+ BEGIN
+ if (scan_white_space ())
+ BEGIN
+ if (SCAN_CHAR != COMMENT)
+ BEGIN
+ eat_bst_white_space = TRUE;
+ goto Exit_Label;
+ END
+ END
+ if ( ! input_ln (bst_file))
+ BEGIN
+ eat_bst_white_space = FALSE;
+ goto Exit_Label;
+ END
+ INCR (bst_line_num);
+ buf_ptr2 = 0;
+ END
+Exit_Label:
+ return (eat_bst_white_space);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 152 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 418
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function looks at the string in |ex_buf|, starting at
+ * |ex_buf_xptr| and ending just before |ex_buf_ptr|, and it returns
+ * |true| if there are |enough_chars|, where a special character (even if
+ * it's missing its matching |right_brace|) counts as a single charcter.
+ * This procedure is called only for strings that don't have too many
+ * |right_brace|s.
+ ***************************************************************************/
+Boolean_T enough_text_chars (BufPointer_T enough_chars)
+BEGIN
+ Boolean_T enough_text_chars;
+ num_text_chars = 0;
+ ex_buf_yptr = ex_buf_xptr;
+ while ((ex_buf_yptr < ex_buf_ptr) && (num_text_chars < enough_chars))
+ BEGIN
+ INCR (ex_buf_yptr);
+ if (ex_buf[ex_buf_yptr - 1] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ if ((brace_level == 1) && (ex_buf_yptr < ex_buf_ptr))
+ BEGIN
+ if (ex_buf[ex_buf_yptr] == BACKSLASH)
+ BEGIN
+ INCR (ex_buf_yptr);
+ while ((ex_buf_yptr < ex_buf_ptr) && (brace_level > 0))
+ BEGIN
+ if (ex_buf[ex_buf_yptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (brace_level);
+ END
+ else if (ex_buf[ex_buf_yptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ END
+ INCR (ex_buf_yptr);
+ END
+ END
+ END
+ END
+ else if (ex_buf[ex_buf_yptr - 1] == RIGHT_BRACE)
+ BEGIN
+ DECR (brace_level);
+ END
+ INCR (num_text_chars);
+ END
+ if (num_text_chars < enough_chars)
+ BEGIN
+ enough_text_chars = FALSE;
+ END
+ else
+ BEGIN
+ enough_text_chars = TRUE;
+ END
+ return (enough_text_chars);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 418 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
diff --git a/biblio/bibtex/bibtex-x/bibtex-2.c b/biblio/bibtex/bibtex-x/bibtex-2.c
new file mode 100644
index 0000000000..0bf69400ee
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtex-2.c
@@ -0,0 +1,3986 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: bibtex-2.c
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This is the second of 4 source modules for BibTeX. The source has
+** been split into 4 parts so that some of the more primitive editors
+** can cope. This code mimics the BibTeX WEB source as closely as
+** possible and there should be NO system dependent code in any of the
+** bibtex-#.c modules.
+**
+** The functions defined in this module are:
+**
+** execute_fn
+** figure_out_the_formatted_name
+** find_cite_locs_for_this_cite_ke
+** get_aux_command_and_process
+** get_bib_command_or_entry_and_pr
+** get_bst_command_and_process
+** get_the_top_level_aux_file_name
+** hash_cite_confusion
+** id_scanning_confusion
+** illegl_literal_confusion
+** init_command_execution
+** initialize
+** input_ln
+** int_to_ASCII
+** last_check_for_aux_errors
+** less_than
+** lower_case
+** macro_warn_print
+** make_string
+** mark_error
+** mark_fatal
+** mark_warning
+** name_scan_for_and
+** non_existent_cross_reference_er
+** out_pool_str
+** output_bbl_line
+** out_token
+** pool_overflow
+** pop_lit_stk
+** pop_the_aux_stack
+** pop_top_and_print
+** pop_whole_stack
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: bibtex-2.c,v $
+** Revision 3.71 1996/08/18 20:47:30 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.6 1995/10/21 22:19:33 kempson
+** Removed previous WEB-imposed limit on the maximum value of Hash_Prime.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:39 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "sysdep.h"
+#include "bibtex.h"
+#include "datatype.h"
+#include "gblprocs.h"
+#include "gblvars.h"
+#include "utils.h"
+#include "version.h"
+
+
+/***************************************************************************
+ * WEB section number: 325
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure executes a single specified function; it is the single
+ * execution-primitive that does everything (except windows, and it takes
+ * Tuesdays off).
+ ***************************************************************************/
+void execute_fn (HashLoc_T ex_fn_loc)
+BEGIN
+
+/***************************************************************************
+ * WEB section number: 343
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now it's time to declare some things for executing |built_in|
+ * functions only. These (and only these) variables are used
+ * recursively, so they can't be global.
+ ***************************************************************************/
+ Integer_T r_pop_lt1,
+ r_pop_lt2;
+ StkType_T r_pop_tp1,
+ r_pop_tp2;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 343 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ WizFnLoc_T wiz_ptr;
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("execute_fn `");
+ TRACE_PR_POOL_STR (hash_text[ex_fn_loc]);
+ TRACE_PR_LN ("'");
+ }
+#endif /* TRACE */
+
+ switch (fn_type[ex_fn_loc])
+ BEGIN
+ case BUILT_IN:
+/***************************************************************************
+ * WEB section number: 341
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module branches to the code for the appropriate |built_in|
+ * function. Only three---call.type$, if$, and while$---do a recursive call.
+ ***************************************************************************/
+ BEGIN
+
+#ifdef STAT
+ if (Flag_stats)
+ INCR (execution_count[FN_INFO[ex_fn_loc]]);
+#endif /* STAT */
+
+ switch (FN_INFO[ex_fn_loc])
+ BEGIN
+ case N_EQUALS:
+ x_equals ();
+ break;
+ case N_GREATER_THAN:
+ x_greater_than ();
+ break;
+ case N_LESS_THAN:
+ x_less_than ();
+ break;
+ case N_PLUS:
+ x_plus ();
+ break;
+ case N_MINUS:
+ x_minus ();
+ break;
+ case N_BIT_AND:
+ x_bit_and ();
+ break;
+ case N_BIT_OR:
+ x_bit_or ();
+ break;
+ case N_CONCATENATE:
+ x_concatenate ();
+ break;
+ case N_GETS:
+ x_gets ();
+ break;
+ case N_ADD_PERIOD:
+ x_add_period ();
+ break;
+ case N_CALL_TYPE:
+
+/***************************************************************************
+ * WEB section number: 363
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function call.type$ executes the function
+ * specified in |type_list| for this entry unless it's |undefined|, in
+ * which case it executes the default function default.type defined
+ * in the .bst file, or unless it's |empty|, in which case it does
+ * nothing.
+ ***************************************************************************/
+ BEGIN
+ if ( ! mess_with_entries)
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else if (type_list[cite_ptr] == UNDEFINED)
+ BEGIN
+ execute_fn (b_default);
+ END
+ else if (type_list[cite_ptr] == EMPTY)
+ BEGIN
+ DO_NOTHING;
+ END
+ else
+ BEGIN
+ execute_fn (type_list[cite_ptr]);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 363 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_CHANGE_CASE:
+ x_change_case ();
+ break;
+ case N_CHR_TO_INT:
+ x_chr_to_int ();
+ break;
+ case N_CITE:
+ x_cite ();
+ break;
+ case N_DUPLICATE:
+ x_duplicate ();
+ break;
+ case N_EMPTY:
+ x_empty ();
+ break;
+ case N_FORMAT_NAME:
+ x_format_name ();
+ break;
+ case N_IF:
+
+/***************************************************************************
+ * WEB section number: 421
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function if$ pops the top three literals (they
+ * are two function literals and an integer literal, in that order); if
+ * the integer is greater than 0, it executes the second literal, else it
+ * executes the first. If any of the types is incorrect, it complains
+ * but does nothing else.
+ ***************************************************************************/
+ BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ pop_lit_stk (&pop_lit3, &pop_typ3);
+ if (pop_typ1 != STK_FN)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_FN);
+ END
+ else if (pop_typ2 != STK_FN)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_FN);
+ END
+ else if (pop_typ3 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit3, pop_typ3, STK_INT);
+ END
+ else if (pop_lit3 > 0)
+ BEGIN
+ execute_fn (pop_lit2);
+ END
+ else
+ BEGIN
+ execute_fn (pop_lit1);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 421 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_INT_TO_CHR:
+ x_int_to_chr ();
+ break;
+ case N_INT_TO_STR:
+ x_int_to_str ();
+ break;
+ case N_MISSING:
+ x_missing ();
+ break;
+ case N_NEWLINE:
+
+/***************************************************************************
+ * WEB section number: 425
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function newline$ writes whatever has
+ * accumulated in the output buffer |out_buf| onto the .bbl file.
+ ***************************************************************************/
+ BEGIN
+ output_bbl_line ();
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 425 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_NUM_NAMES:
+ x_num_names ();
+ break;
+ case N_POP:
+
+/***************************************************************************
+ * WEB section number: 428
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function pop$ pops the top of the stack but
+ * doesn't print it.
+ ***************************************************************************/
+ BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 428 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_PREAMBLE:
+ x_preamble ();
+ break;
+ case N_PURIFY:
+ x_purify ();
+ break;
+ case N_QUOTE:
+ x_quote ();
+ break;
+ case N_SKIP:
+
+/***************************************************************************
+ * WEB section number: 435
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function skip$ is a no-op.
+ ***************************************************************************/
+ BEGIN
+ DO_NOTHING;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 435 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_STACK:
+
+/***************************************************************************
+ * WEB section number: 436
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function stack$ pops and prints the whole stack; it's
+ * meant to be used for style designers while debugging.
+ ***************************************************************************/
+ BEGIN
+ pop_whole_stack ();
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 436 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_SUBSTRING:
+ x_substring ();
+ break;
+ case N_SWAP:
+ x_swap ();
+ break;
+ case N_TEXT_LENGTH:
+ x_text_length ();
+ break;
+ case N_TEXT_PREFIX:
+ x_text_prefix ();
+ break;
+ case N_TOP_STACK:
+
+/***************************************************************************
+ * WEB section number: 446
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function top$ pops and prints the top of the
+ * stack.
+ ***************************************************************************/
+ BEGIN
+ pop_top_and_print ();
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 446 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_TYPE:
+ x_type ();
+ break;
+ case N_WARNING:
+ x_warning ();
+ break;
+ case N_WHILE:
+
+/***************************************************************************
+ * WEB section number: 449
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function while$ pops the top two (function)
+ * literals, and keeps executing the second as long as the (integer)
+ * value left on the stack by executing the first is greater than 0. If
+ * either type is incorrect, it complains but does nothing else.
+ ***************************************************************************/
+ BEGIN
+ pop_lit_stk (&r_pop_lt1, &r_pop_tp1);
+ pop_lit_stk (&r_pop_lt2, &r_pop_tp2);
+ if (r_pop_tp1 != STK_FN)
+ BEGIN
+ print_wrong_stk_lit (r_pop_lt1, r_pop_tp1, STK_FN);
+ END
+ else if (r_pop_tp2 != STK_FN)
+ BEGIN
+ print_wrong_stk_lit (r_pop_lt2, r_pop_tp2, STK_FN);
+ END
+ else
+ BEGIN
+ LOOP
+ BEGIN
+ execute_fn (r_pop_lt2);
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ goto End_While_Label;
+ END
+ else if (pop_lit1 > 0)
+ BEGIN
+ execute_fn (r_pop_lt1);
+ END
+ else
+ BEGIN
+ goto End_While_Label;
+ END
+ END
+ END
+End_While_Label: DO_NOTHING;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 449 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case N_WIDTH:
+ x_width ();
+ break;
+ case N_WRITE:
+ x_write ();
+ break;
+#ifdef UTF_8
+ case N_IS_CJK_STRING:
+ x_is_cjk_string ();
+ break;
+#endif
+ default:
+ CONFUSION ("Unknown built-in function");
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 341 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case WIZ_DEFINED:
+
+/***************************************************************************
+ * WEB section number: 326
+ * ~~~~~~~~~~~~~~~~~~~
+ * To execute a |wiz_defined| function, we just execute all those
+ * functions in its definition, except that the special marker
+ * |quote_next_fn| means we push the next function onto the stack.
+ ***************************************************************************/
+ BEGIN
+ wiz_ptr = FN_INFO[ex_fn_loc];
+ while (wiz_functions[wiz_ptr] != END_OF_DEF)
+ BEGIN
+ if (wiz_functions[wiz_ptr] != QUOTE_NEXT_FN)
+ BEGIN
+ execute_fn (wiz_functions[wiz_ptr]);
+ END
+ else
+ BEGIN
+ INCR (wiz_ptr);
+ push_lit_stk (wiz_functions[wiz_ptr], STK_FN);
+ END
+ INCR (wiz_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 326 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case INT_LITERAL:
+ push_lit_stk (FN_INFO[ex_fn_loc], STK_INT);
+ break;
+ case STR_LITERAL:
+ push_lit_stk (hash_text[ex_fn_loc], STK_STR);
+ break;
+ case FIELD:
+
+/***************************************************************************
+ * WEB section number: 327
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module pushes the string given by the field onto the literal
+ * stack unless it's |missing|, in which case it pushes a special value
+ * onto the stack.
+ ***************************************************************************/
+ BEGIN
+ if ( ! mess_with_entries)
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else
+ BEGIN
+ field_ptr = (cite_ptr * num_fields) + FN_INFO[ex_fn_loc];
+ if (field_info[field_ptr] == MISSING)
+ BEGIN
+ push_lit_stk (hash_text[ex_fn_loc], STK_FIELD_MISSING);
+ END
+ else
+ BEGIN
+ push_lit_stk (field_info[field_ptr], STK_STR);
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 327 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case INT_ENTRY_VAR:
+
+/***************************************************************************
+ * WEB section number: 328
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module pushes the integer given by an |int_entry_var| onto the
+ * literal stack.
+ ***************************************************************************/
+ BEGIN
+ if ( ! mess_with_entries)
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else
+ BEGIN
+ push_lit_stk (entry_ints[(cite_ptr * num_ent_ints)
+ + FN_INFO[ex_fn_loc]], STK_INT);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 328 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case STR_ENTRY_VAR:
+
+/***************************************************************************
+ * WEB section number: 329
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module adds the string given by a |str_entry_var| to |str_pool|
+ * via the execution buffer and pushes it onto the literal stack.
+ ***************************************************************************/
+ BEGIN
+ if ( ! mess_with_entries)
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else
+ BEGIN
+ str_ent_ptr = (cite_ptr * num_ent_strs) + FN_INFO[ex_fn_loc];
+ ex_buf_ptr = 0;
+ while (ENTRY_STRS(str_ent_ptr, ex_buf_ptr) != END_OF_STRING)
+ BEGIN
+ APPEND_EX_BUF_CHAR (ENTRY_STRS(str_ent_ptr, ex_buf_ptr));
+ END
+ ex_buf_length = ex_buf_ptr;
+ add_pool_buf_and_push ();
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 329 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case INT_GLOBAL_VAR:
+ push_lit_stk (FN_INFO[ex_fn_loc], STK_INT);
+ break;
+ case STR_GLOBAL_VAR:
+
+/***************************************************************************
+ * WEB section number: 330
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module pushes the string given by a |str_global_var| onto the
+ * literal stack, but it copies the string to |str_pool| (character by
+ * character) only if it has to---it BEGIN\it doesn't\/END have to if the
+ * string is static (that is, if the string isn't at the top, temporary
+ * part of the string pool).
+ ***************************************************************************/
+ BEGIN
+ str_glb_ptr = FN_INFO[ex_fn_loc];
+ if (glb_str_ptr[str_glb_ptr] > 0)
+ BEGIN
+ push_lit_stk (glb_str_ptr[str_glb_ptr], STK_STR);
+ END
+ else
+ BEGIN
+ STR_ROOM (glb_str_end[str_glb_ptr]);
+ glob_chr_ptr = 0;
+ while (glob_chr_ptr < glb_str_end[str_glb_ptr])
+ BEGIN
+ APPEND_CHAR (GLOBAL_STRS(str_glb_ptr, glob_chr_ptr));
+ INCR (glob_chr_ptr);
+ END
+ push_lit_stk (make_string (), STK_STR);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 330 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+ unknwn_function_class_confusion ();
+ break;
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 325 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 420
+ * ~~~~~~~~~~~~~~~~~~~
+ * This is a procedure so that |x_format_name| is smaller.
+ ***************************************************************************/
+void figure_out_the_formatted_name (void)
+BEGIN
+
+/***************************************************************************
+ * WEB section number: 402
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module uses the information in |pop_lit1| to format the name.
+ * Everything at |sp_brace_level = 0| is copied verbatim to the formatted
+ * string; the rest is described in the succeeding modules.
+ ***************************************************************************/
+ BEGIN
+ ex_buf_ptr = 0;
+ sp_brace_level = 0;
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ if (str_pool[sp_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ INCR (sp_ptr);
+
+/***************************************************************************
+ * WEB section number: 403
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we arrive here we're at |sp_brace_level = 1|, just past the
+ * |left_brace|. Letters at this |sp_brace_level| other than those
+ * denoting the parts of the name (i.e., the first letters of `first,'
+ * `last,' `von,' and `jr,' ignoring case) are illegal. We do two passes
+ * over this group; the first determines whether we're to output
+ * anything, and, if we are, the second actually outputs it.
+ ***************************************************************************/
+ BEGIN
+ sp_xptr1 = sp_ptr;
+ alpha_found = FALSE;
+ double_letter = FALSE;
+ end_of_group = FALSE;
+ to_be_written = TRUE;
+ while (( ! end_of_group) && (sp_ptr < sp_end))
+ BEGIN
+ if (lex_class[str_pool[sp_ptr]] == ALPHA)
+ BEGIN
+ INCR (sp_ptr);
+
+/***************************************************************************
+ * WEB section number: 405
+ * ~~~~~~~~~~~~~~~~~~~
+ * We won't output anything for this part of the name if this is a second
+ * occurrence of an |sp_brace_level = 1| letter, if it's an illegal
+ * letter, or if there are no tokens corresponding to this part. We also
+ * determine if we're we to output complete tokens (indicated by a double
+ * letter).
+ ***************************************************************************/
+ BEGIN
+ if (alpha_found)
+ BEGIN
+ brace_lvl_one_letters_complaint ();
+ to_be_written = FALSE;
+ END
+ else
+ BEGIN
+ switch (str_pool[sp_ptr - 1])
+ BEGIN
+ case 'f':
+ case 'F':
+
+/***************************************************************************
+ * WEB section number: 407
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we set pointers into |name_tok| and note whether we'll be dealing
+ * with a full first-name tokens (|double_letter = true|) or
+ * abbreviations (|double_letter = false|).
+ ***************************************************************************/
+ BEGIN
+ cur_token = first_start;
+ last_token = first_end;
+ if (cur_token == last_token)
+ BEGIN
+ to_be_written = FALSE;
+ END
+ if ((str_pool[sp_ptr] == 'f')
+ || (str_pool[sp_ptr] == 'F'))
+ BEGIN
+ double_letter = TRUE;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 407 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case 'v':
+ case 'V':
+
+/***************************************************************************
+ * WEB section number: 408
+ * ~~~~~~~~~~~~~~~~~~~
+ * The same as above but for von-name tokens.
+ ***************************************************************************/
+ BEGIN
+ cur_token = von_start;
+ last_token = von_end;
+ if (cur_token == last_token)
+ BEGIN
+ to_be_written = FALSE;
+ END
+ if ((str_pool[sp_ptr] == 'v')
+ || (str_pool[sp_ptr] == 'V'))
+ BEGIN
+ double_letter = TRUE;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 408 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case 'l':
+ case 'L':
+
+/***************************************************************************
+ * WEB section number: 409
+ * ~~~~~~~~~~~~~~~~~~~
+ * The same as above but for last-name tokens.
+ ***************************************************************************/
+ BEGIN
+ cur_token = von_end;
+ last_token = last_end;
+ if (cur_token == last_token)
+ BEGIN
+ to_be_written = FALSE;
+ END
+ if ((str_pool[sp_ptr] == 'l')
+ || (str_pool[sp_ptr] == 'L'))
+ BEGIN
+ double_letter = TRUE;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 409 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case 'j':
+ case 'J':
+
+/***************************************************************************
+ * WEB section number: 410
+ * ~~~~~~~~~~~~~~~~~~~
+ * The same as above but for jr-name tokens.
+ ***************************************************************************/
+ BEGIN
+ cur_token = last_end;
+ last_token = jr_end;
+ if (cur_token == last_token)
+ BEGIN
+ to_be_written = FALSE;
+ END
+ if ((str_pool[sp_ptr] == 'j')
+ || (str_pool[sp_ptr] == 'J'))
+ BEGIN
+ double_letter = TRUE;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 410 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+ brace_lvl_one_letters_complaint ();
+ to_be_written = FALSE;
+ break;
+ END
+ if (double_letter)
+ BEGIN
+ INCR (sp_ptr);
+ END
+ END
+ alpha_found = TRUE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 405 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else if (str_pool[sp_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (sp_brace_level);
+ INCR (sp_ptr);
+ end_of_group = TRUE;
+ END
+ else if (str_pool[sp_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ INCR (sp_ptr);
+ skip_stuff_at_sp_brace_level_gr ();
+ END
+ else
+ BEGIN
+ INCR (sp_ptr);
+ END
+ END
+ if ((end_of_group) && (to_be_written))
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 411
+ * ~~~~~~~~~~~~~~~~~~~
+ * This is the second pass over this part of the name; here we actually
+ * write stuff out to |ex_buf|.
+ ***************************************************************************/
+ ex_buf_xptr = ex_buf_ptr;
+ sp_ptr = sp_xptr1;
+ sp_brace_level = 1;
+ while (sp_brace_level > 0)
+ BEGIN
+ if ((lex_class[str_pool[sp_ptr]] == ALPHA)
+ && (sp_brace_level == 1))
+ BEGIN
+ INCR (sp_ptr);
+
+/***************************************************************************
+ * WEB section number: 412
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we come here, |sp_ptr| is just past the letter indicating the
+ * part of the name for which we're about to output tokens. When we
+ * leave, it's at the first character of the rest of the group.
+ ***************************************************************************/
+ BEGIN
+ if (double_letter)
+ BEGIN
+ INCR (sp_ptr);
+ END
+ use_default = TRUE;
+ sp_xptr2 = sp_ptr;
+ if (str_pool[sp_ptr] == LEFT_BRACE)
+ BEGIN
+ use_default = FALSE;
+ INCR (sp_brace_level);
+ INCR (sp_ptr);
+ sp_xptr1 = sp_ptr;
+ skip_stuff_at_sp_brace_level_gr ();
+ sp_xptr2 = sp_ptr - 1;
+ END
+
+/***************************************************************************
+ * WEB section number: 413
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here, for each token in this part, we output either a full or an
+ * abbreviated token and the inter-token string for all but the last
+ * token of this part.
+ ***************************************************************************/
+ BEGIN
+ while (cur_token < last_token)
+ BEGIN
+ if (double_letter)
+
+/***************************************************************************
+ * WEB section number: 414
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we output all the characters in the token, verbatim.
+ ***************************************************************************/
+ BEGIN
+ name_bf_ptr = name_tok[cur_token];
+ name_bf_xptr = name_tok[cur_token + 1];
+ if (ex_buf_length + (name_bf_xptr - name_bf_ptr)
+ > Buf_Size)
+ BEGIN
+ buffer_overflow ();
+ END
+ while (name_bf_ptr < name_bf_xptr)
+ BEGIN
+ APPEND_EX_BUF_CHAR (NAME_BUF[name_bf_ptr]);
+ INCR (name_bf_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 414 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else
+
+/***************************************************************************
+ * WEB section number: 415
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we output the first alphabetic or special character of the token;
+ * brace level is irrelevant for an alphabetic (but not a special)
+ * character.
+ ***************************************************************************/
+ BEGIN
+ name_bf_ptr = name_tok[cur_token];
+ name_bf_xptr = name_tok[cur_token + 1];
+ while (name_bf_ptr < name_bf_xptr)
+ BEGIN
+#ifdef UTF_8
+/*
+For output the first character which is encodage UTF-8, we sould discuter different length of character. 23/sep/2009
+*/
+ if((lex_class[NAME_BUF[name_bf_ptr]] != WHITE_SPACE) && (NAME_BUF[name_bf_ptr] != LEFT_BRACE))
+ BEGIN
+ DO_UTF8(NAME_BUF[name_bf_ptr],
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr]),
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr]);
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr+1]),
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr]);
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr+1]);
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr+2]),
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr]);
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr+1]);
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr+2]);
+ APPEND_EX_BUF_CHAR_AND_CHECK (NAME_BUF[name_bf_ptr+3]));
+#else
+ if (lex_class[NAME_BUF[name_bf_ptr]] == ALPHA)
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (
+ NAME_BUF[name_bf_ptr]);
+#endif
+ goto Loop_Exit_Label;
+ END
+ else if ((NAME_BUF[name_bf_ptr] == LEFT_BRACE)
+ && ((name_bf_ptr + 1) < name_bf_xptr))
+ BEGIN
+ if (NAME_BUF[name_bf_ptr + 1] == BACKSLASH)
+
+/***************************************************************************
+ * WEB section number: 416
+ * ~~~~~~~~~~~~~~~~~~~
+ * We output a special character here even if the user has been silly
+ * enough to make it nonalphabetic (and even if the user has been sillier
+ * still by not having a matching |right_brace|).
+ ***************************************************************************/
+ BEGIN
+ if ((ex_buf_ptr + 2) > Buf_Size)
+ BEGIN
+ buffer_overflow ();
+ END
+ APPEND_EX_BUF_CHAR (LEFT_BRACE);
+ APPEND_EX_BUF_CHAR (BACKSLASH);
+ name_bf_ptr = name_bf_ptr + 2;
+ nm_brace_level = 1;
+ while ((name_bf_ptr < name_bf_xptr)
+ && (nm_brace_level > 0))
+ BEGIN
+ if (NAME_BUF[name_bf_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (nm_brace_level);
+ END
+ else if (NAME_BUF[name_bf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (nm_brace_level);
+ END
+ APPEND_EX_BUF_CHAR_AND_CHECK (
+ NAME_BUF[name_bf_ptr]);
+ INCR (name_bf_ptr);
+ END
+ goto Loop_Exit_Label;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 416 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ INCR (name_bf_ptr);
+ END
+Loop_Exit_Label: DO_NOTHING;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ INCR (cur_token);
+ if (cur_token < last_token)
+
+/***************************************************************************
+ * WEB section number: 417
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we output either the .bst given string if it exists, or else
+ * the .bib |sep_char| if it exists, or else the default string. A
+ * |tie| is the default space character between the last two tokens of
+ * the name part, and between the first two tokens if the first token is
+ * short enough; otherwise, a |space| is the default.
+ ***************************************************************************/
+ BEGIN
+ if (use_default)
+ BEGIN
+ if ( ! double_letter)
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (PERIOD);
+ END
+ if (lex_class[name_sep_char[cur_token]]
+ == SEP_CHAR)
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (
+ name_sep_char[cur_token]);
+ END
+ else if ((cur_token == (last_token - 1))
+ || ( ! enough_text_chars (LONG_TOKEN)))
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (TIE);
+ END
+ else
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (SPACE);
+ END
+ END
+ else
+ BEGIN
+ if ((ex_buf_length + (sp_xptr2 - sp_xptr1))
+ > Buf_Size)
+ BEGIN
+ buffer_overflow ();
+ END
+ sp_ptr = sp_xptr1;
+ while (sp_ptr < sp_xptr2)
+ BEGIN
+ APPEND_EX_BUF_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 417 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 413 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ if ( ! use_default)
+ BEGIN
+ sp_ptr = sp_xptr2 + 1;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 412 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else if (str_pool[sp_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (sp_brace_level);
+ INCR (sp_ptr);
+ if (sp_brace_level > 0)
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (RIGHT_BRACE);
+ END
+ END
+ else if (str_pool[sp_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ INCR (sp_ptr);
+ APPEND_EX_BUF_CHAR_AND_CHECK (LEFT_BRACE);
+ END
+ else
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ END
+ if (ex_buf_ptr > 0)
+ BEGIN
+ if (ex_buf[ex_buf_ptr - 1] == TIE)
+
+/***************************************************************************
+ * WEB section number: 419
+ * ~~~~~~~~~~~~~~~~~~~
+ * If the last character output for this name part is a |tie| but the
+ * previous character it isn't, we're dealing with a discretionary |tie|;
+ * thus we replace it by a |space| if there are enough characters in the
+ * rest of the name part.
+ ***************************************************************************/
+ BEGIN
+ DECR (ex_buf_ptr);
+ if (ex_buf[ex_buf_ptr - 1] == TIE)
+ BEGIN
+ DO_NOTHING;
+ END
+ else if ( ! enough_text_chars (LONG_NAME))
+ BEGIN
+ INCR (ex_buf_ptr);
+ END
+ else
+ BEGIN
+ APPEND_EX_BUF_CHAR (SPACE);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 419 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 411 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 403 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else if (str_pool[sp_ptr] == RIGHT_BRACE)
+ BEGIN
+ braces_unbalanced_complaint (pop_lit1);
+ INCR (sp_ptr);
+ END
+ else
+ BEGIN
+ APPEND_EX_BUF_CHAR_AND_CHECK (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ END
+ if (sp_brace_level > 0)
+ BEGIN
+ braces_unbalanced_complaint (pop_lit1);
+ END
+ ex_buf_length = ex_buf_ptr;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 420 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 59
+ * ~~~~~~~~~~~~~~~~~~~
+ * Yet another complaint-before-quiting.
+ *
+ * REMOVED: |file_nm_size_overflow|.
+ ***************************************************************************/
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 59 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 278
+ * ~~~~~~~~~~~~~~~~~~~
+ * Occasionally we need to figure out the hash-table location of a given
+ * cite-key string and its lower-case equivalent. This function does
+ * that. To perform the task it needs to borrow a buffer, a need that
+ * gives rise to the alias kludge---it helps make the stack space not
+ * overflow on some machines (and while it's at it, it'll borrow a
+ * pointer, too). Finally, the function returns |true| if the cite key
+ * exists on |cite_list|, and its sets |cite_hash_found| according to
+ * whether or not it found the actual version (before |lower_case|ing) of
+ * the cite key; however, its raison d'etre
+ * (literally, ``to eat a raisin'') is to compute |cite_loc| and
+ * |lc_cite_loc|.
+ ***************************************************************************/
+Boolean_T find_cite_locs_for_this_cite_ke (StrNumber_T cite_str)
+BEGIN
+ Boolean_T find_cite_locs_for_this_cite_ke;
+
+ EX_BUF5_PTR = 0;
+ tmp_ptr = str_start[cite_str];
+ tmp_end_ptr = str_start[cite_str + 1];
+ while (tmp_ptr < tmp_end_ptr)
+ BEGIN
+ EX_BUF5[EX_BUF5_PTR] = str_pool[tmp_ptr];
+ INCR (EX_BUF5_PTR);
+ INCR (tmp_ptr);
+ END
+ cite_loc = str_lookup (ex_buf, 0, LENGTH (cite_str), CITE_ILK, DONT_INSERT);
+ cite_hash_found = hash_found;
+ lower_case (EX_BUF5, 0, LENGTH (cite_str));
+ lc_cite_loc = str_lookup (EX_BUF5, 0, LENGTH (cite_str), LC_CITE_ILK,
+ DONT_INSERT);
+ if (hash_found)
+ BEGIN
+ find_cite_locs_for_this_cite_ke = TRUE;
+ END
+ else
+ BEGIN
+ find_cite_locs_for_this_cite_ke = FALSE;
+ END
+ return (find_cite_locs_for_this_cite_ke);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 278 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 116
+ * ~~~~~~~~~~~~~~~~~~~
+ * We're not at the end of an .aux file, so we see if the current line
+ * might be a command of interest. A command of interest will be a line
+ * without blanks, consisting of a command name, a |left_brace|, one or
+ * more arguments separated by commas, and a |right_brace|.
+ ***************************************************************************/
+void get_aux_command_and_process (void)
+BEGIN
+ buf_ptr2 = 0;
+ if ( ! scan1 (LEFT_BRACE))
+ BEGIN
+ goto Exit_Label;
+ END
+ command_num = ilk_info[str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ AUX_COMMAND_ILK, DONT_INSERT)];
+ if (hash_found)
+ BEGIN
+ switch (command_num)
+ BEGIN
+ case N_AUX_BIBDATA:
+ aux_bib_data_command ();
+ break;
+ case N_AUX_BIBSTYLE:
+ aux_bib_style_command ();
+ break;
+ case N_AUX_CITATION:
+ aux_citation_command ();
+ break;
+ case N_AUX_INPUT:
+ aux_input_command ();
+ break;
+ default:
+ CONFUSION ("Unknown auxiliary-file command");
+ break;
+ END
+ END
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 116 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 236
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module either reads a database entry, whose three main components
+ * are an entry type, a database key, and a list of fields, or it reads a
+ * .bib command, whose structure is command dependent and explained
+ * later.
+ ***************************************************************************/
+void get_bib_command_or_entry_and_pr (void)
+BEGIN
+ at_bib_command = FALSE;
+
+/***************************************************************************
+ * WEB section number: 237
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module skips over everything until hitting an |at_sign| or the
+ * end of the file. It also updates |bib_line_num|, the line counter.
+ ***************************************************************************/
+ while ( ! scan1 (AT_SIGN))
+ BEGIN
+ if ( ! input_ln (CUR_BIB_FILE))
+ BEGIN
+ goto Exit_Label;
+ END
+ INCR (bib_line_num);
+ buf_ptr2 = 0;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 237 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 238
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads an |at_sign| and an entry type (like `book' or
+ * `article') or a .bib command. If it's an entry type, it must be
+ * defined in the .bst file if this entry is to be included in the
+ * reference list.
+ ***************************************************************************/
+ BEGIN
+ if (SCAN_CHAR != AT_SIGN)
+ BEGIN
+ CONFUSION2 ("An \"%c\" disappeared", xchr[AT_SIGN]);
+ END
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ scan_identifier (LEFT_BRACE, LEFT_PAREN, LEFT_PAREN);
+ BIB_IDENTIFIER_SCAN_CHECK ("an entry type");
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is an entry type or a database-file command");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ command_num = ilk_info[str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BIB_COMMAND_ILK, DONT_INSERT)];
+ if (hash_found)
+
+/***************************************************************************
+ * WEB section number: 239
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we determine which .bib command we're about to process, then
+ * go to it.
+ ***************************************************************************/
+ BEGIN
+ at_bib_command = TRUE;
+ switch (command_num)
+ BEGIN
+ case N_BIB_COMMENT:
+
+/***************************************************************************
+ * WEB section number: 241
+ * ~~~~~~~~~~~~~~~~~~~
+ * The comment command is implemented for SCRIBE compatibility. It's
+ * not really needed because \BibTeX\ treats (flushes) everything not
+ * within an entry as a comment anyway.
+ ***************************************************************************/
+ BEGIN
+ goto Exit_Label;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 239 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ case N_BIB_PREAMBLE:
+
+/***************************************************************************
+ * WEB section number: 242
+ * ~~~~~~~~~~~~~~~~~~~
+ * The preamble command lets a user have \TeX\ stuff inserted (by the
+ * standard styles, at least) directly into the .bbl file. It is
+ * intended primarily for allowing \TeX\ macro definitions used within
+ * the bibliography entries (for better sorting, for example). One
+ * preamble command per .bib file should suffice.
+ *
+ * A preamble command has either braces or parentheses as outer
+ * delimiters. Inside is the preamble string, which has the same syntax
+ * as a field value: a nonempty list of field tokens separated by
+ * |concat_char|s. There are three types of field tokens---nonnegative
+ * numbers, macro names, and delimited strings.
+ *
+ * This module does all the scanning (that's not subcontracted), but the
+ * .bib-specific scanning function
+ * |scan_and_store_the_field_value_and_eat_white| actually stores the
+ * value.
+ ***************************************************************************/
+ BEGIN
+ if (preamble_ptr == Max_Bib_Files)
+ BEGIN
+ BIB_XRETALLOC_NOSET ("bib_file", bib_file, AlphaFile_T,
+ Max_Bib_Files, Max_Bib_Files + MAX_BIB_FILES);
+ BIB_XRETALLOC_NOSET ("bib_list", bib_list, StrNumber_T,
+ Max_Bib_Files, Max_Bib_Files + MAX_BIB_FILES);
+ BIB_XRETALLOC ("s_preamble", s_preamble, StrNumber_T,
+ Max_Bib_Files, Max_Bib_Files + MAX_BIB_FILES);
+ END
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ if (SCAN_CHAR == LEFT_BRACE)
+ BEGIN
+ right_outer_delim = RIGHT_BRACE;
+ END
+ else if (SCAN_CHAR == LEFT_PAREN)
+ BEGIN
+ right_outer_delim = RIGHT_PAREN;
+ END
+ else
+ BEGIN
+ BIB_ONE_OF_TWO_EXPECTED_ERR (LEFT_BRACE, LEFT_PAREN);
+ END
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ store_field = TRUE;
+ if ( ! scan_and_store_the_field_value ())
+ BEGIN
+ goto Exit_Label;
+ END
+ if (SCAN_CHAR != right_outer_delim)
+ BEGIN
+ BIB_ERR2 ("Missing \"%c\" in preamble command",
+ xchr[right_outer_delim]);
+ END
+ INCR (buf_ptr2);
+ goto Exit_Label;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 242 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+ break;
+ case N_BIB_STRING:
+
+/***************************************************************************
+ * WEB section number: 243
+ * ~~~~~~~~~~~~~~~~~~~
+ * The string command is implemented both for SCRIBE compatibility
+ * and for allowing a user: to override a .bst-file macro
+ * command, to define one that the .bst file doesn't, or to engage in
+ * good, wholesome, typing laziness.
+ *
+ * The string command does mostly the same thing as the
+ * .bst-file's macro command (but the syntax is different and the
+ * string command compresses |white_space|). In fact, later in this
+ * program, the term ``macro'' refers to either a .bst ``macro'' or a
+ * .bib ``string'' (when it's clear from the context that it's not
+ * a WEB macro).
+ *
+ * A string command has either braces or parentheses as outer
+ * delimiters. Inside is the string's name (it must be a legal
+ * identifier, and case differences are ignored---all upper-case letters
+ * are converted to lower case), then an |equals_sign|, and the string's
+ * definition, which has the same syntax as a field value: a nonempty
+ * list of field tokens separated by |concat_char|s. There are three
+ * types of field tokens---nonnegative numbers, macro names, and
+ * delimited strings.
+ ***************************************************************************/
+ BEGIN
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+
+/***************************************************************************
+ * WEB section number: 244
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a left outer-delimiter and a string name.
+ ***************************************************************************/
+ BEGIN
+ if (SCAN_CHAR == LEFT_BRACE)
+ BEGIN
+ right_outer_delim = RIGHT_BRACE;
+ END
+ else if (SCAN_CHAR == LEFT_PAREN)
+ BEGIN
+ right_outer_delim = RIGHT_PAREN;
+ END
+ else
+ BEGIN
+ BIB_ONE_OF_TWO_EXPECTED_ERR (LEFT_BRACE, LEFT_PAREN);
+ END
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ scan_identifier (EQUALS_SIGN, EQUALS_SIGN, EQUALS_SIGN);
+ BIB_IDENTIFIER_SCAN_CHECK ("a string name");
+
+/***************************************************************************
+ * WEB section number: 245
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module marks this string as |macro_ilk|; the commented-out code
+ * will give a warning message when overwriting a previously defined
+ * macro.
+ ***************************************************************************/
+ BEGIN
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a database-defined macro");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ cur_macro_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ MACRO_ILK, DO_INSERT);
+ ilk_info[cur_macro_loc] = hash_text[cur_macro_loc];
+ /*-------------------------------------------------------------------
+ * if (hash_found)
+ * BEGIN
+ * MACRO_NAME_WARNING ("having its definition overwritten");
+ * END
+ *------------------------------------------------------------------*/
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 245 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 244 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+
+/***************************************************************************
+ * WEB section number: 246
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module skips over the |equals_sign|, reads and stores the list of
+ * field tokens that defines this macro (compressing |white_space|), and
+ * reads a |right_outer_delim|.
+ ***************************************************************************/
+ BEGIN
+ if (SCAN_CHAR != EQUALS_SIGN)
+ BEGIN
+ BIB_EQUALS_SIGN_EXPECTED_ERR;
+ END
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ store_field = TRUE;
+ if ( ! scan_and_store_the_field_value ())
+ BEGIN
+ goto Exit_Label;
+ END
+ if (SCAN_CHAR != right_outer_delim)
+ BEGIN
+ BIB_ERR2 ("Missing \"%c\" in string command",
+ xchr[right_outer_delim]);
+ END
+ INCR (buf_ptr2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 246 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ goto Exit_Label;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 243 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+ bib_cmd_confusion ();
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 239 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else
+ BEGIN
+ entry_type_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, BST_FN_ILK,
+ DONT_INSERT);
+ if (( ! hash_found) || (fn_type[entry_type_loc] != WIZ_DEFINED))
+ BEGIN
+ type_exists = FALSE;
+ END
+ else
+ BEGIN
+ type_exists = TRUE;
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 238 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+
+/***************************************************************************
+ * WEB section number: 266
+ * ~~~~~~~~~~~~~~~~~~~
+ * And now, back to processing an entry (rather than a command). This
+ * module reads a left outer-delimiter and a database key.
+ ***************************************************************************/
+ BEGIN
+ if (SCAN_CHAR == LEFT_BRACE)
+ BEGIN
+ right_outer_delim = RIGHT_BRACE;
+ END
+ else if (SCAN_CHAR == LEFT_PAREN)
+ BEGIN
+ right_outer_delim = RIGHT_PAREN;
+ END
+ else
+ BEGIN
+ BIB_ONE_OF_TWO_EXPECTED_ERR (LEFT_BRACE, LEFT_PAREN);
+ END
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ if (right_outer_delim == RIGHT_PAREN)
+ BEGIN
+ if (scan1_white (COMMA))
+ BEGIN
+ DO_NOTHING;
+ END
+ END
+ else if (scan2_white (COMMA, RIGHT_BRACE))
+ BEGIN
+ DO_NOTHING;
+ END
+
+/***************************************************************************
+ * WEB section number: 267
+ * ~~~~~~~~~~~~~~~~~~~
+ * The lower-case version of this database key must correspond to one in
+ * |cite_list|, or else |all_entries| must be |true|, if this entry is to
+ * be included in the reference list. Accordingly, this module sets
+ * |store_entry|, which determines whether the relevant information for
+ * this entry is stored. The alias kludge helps make the stack space not
+ * overflow on some machines.
+ ***************************************************************************/
+ BEGIN
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a database key");
+ }
+#endif /* TRACE */
+
+ tmp_ptr = buf_ptr1;
+ while (tmp_ptr < buf_ptr2)
+ BEGIN
+ EX_BUF3[tmp_ptr] = buffer[tmp_ptr];
+ INCR (tmp_ptr);
+ END
+ lower_case (EX_BUF3, buf_ptr1, TOKEN_LEN);
+ if (all_entries)
+ BEGIN
+ lc_cite_loc = str_lookup (EX_BUF3, buf_ptr1, TOKEN_LEN, LC_CITE_ILK,
+ DO_INSERT);
+ END
+ else
+ BEGIN
+ lc_cite_loc = str_lookup (EX_BUF3, buf_ptr1, TOKEN_LEN, LC_CITE_ILK,
+ DONT_INSERT);
+ END
+ if (hash_found)
+ BEGIN
+ entry_cite_ptr = ilk_info[ilk_info[lc_cite_loc]];
+
+/***************************************************************************
+ * WEB section number: 268
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's illegal to have two (or more) entries with the same database key
+ * (even if there are case differrences), and we skip the rest of the
+ * entry for such a repeat occurrence. Also, we make this entry's
+ * database key the official |cite_list| key if it's on |cite_list| only
+ * because of cross references.
+ ***************************************************************************/
+ BEGIN
+ if (( ! all_entries) || (entry_cite_ptr < all_marker)
+ || (entry_cite_ptr >= old_num_cites))
+ BEGIN
+ if (type_list[entry_cite_ptr] == EMPTY)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 269
+ * ~~~~~~~~~~~~~~~~~~~
+ * An entry that's on |cite_list| only because of cross referencing must
+ * have its database key (rather than one of the crossref keys) as
+ * the official |cite_list| string. Here's where we assure that. The
+ * variable |hash_found| is |true| upon entrance to and exit from this
+ * module.
+ ***************************************************************************/
+ BEGIN
+ if (( ! all_entries) && (entry_cite_ptr >= old_num_cites))
+ BEGIN
+ cite_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ CITE_ILK, DO_INSERT);
+ if ( ! hash_found)
+ BEGIN
+ ilk_info[lc_cite_loc] = cite_loc;
+ ilk_info[cite_loc] = entry_cite_ptr;
+ cite_list[entry_cite_ptr] = hash_text[cite_loc];
+ hash_found = TRUE;
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 269 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ goto First_Time_Entry_Label;
+ END
+ END
+ else if ( ! entry_exists[entry_cite_ptr])
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 270
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module, a simpler version of the
+ * |find_cite_locs_for_this_cite_key| function, exists primarily to
+ * compute |lc_xcite_loc|. When this code is executed we have
+ * |(all_entries) and (entry_cite_ptr >= all_marker) and (not
+ * entry_exists[entry_cite_ptr])|. The alias kludge helps make the stack
+ * space not overflow on some machines.
+ ***************************************************************************/
+ BEGIN
+ EX_BUF4_PTR = 0;
+ tmp_ptr = str_start[cite_info[entry_cite_ptr]];
+ tmp_end_ptr = str_start[cite_info[entry_cite_ptr] + 1];
+ while (tmp_ptr < tmp_end_ptr)
+ BEGIN
+ EX_BUF4[EX_BUF4_PTR] = str_pool[tmp_ptr];
+ INCR (EX_BUF4_PTR);
+ INCR (tmp_ptr);
+ END
+ lower_case (EX_BUF4, 0, LENGTH (cite_info[entry_cite_ptr]));
+ lc_xcite_loc = str_lookup (EX_BUF4, 0,
+ LENGTH (cite_info[entry_cite_ptr]),
+ LC_CITE_ILK, DONT_INSERT);
+ if ( ! hash_found)
+ BEGIN
+ cite_key_disappeared_confusion ();
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 270 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ if (lc_xcite_loc == lc_cite_loc)
+ BEGIN
+ goto First_Time_Entry_Label;
+ END
+ END
+ if (type_list[entry_cite_ptr] == EMPTY)
+ BEGIN
+ CONFUSION ("The cite list is messed up");
+ END
+ BIB_ERR ("Repeated entry");
+First_Time_Entry_Label: DO_NOTHING;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 268 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ store_entry = TRUE;
+ if (all_entries)
+
+/***************************************************************************
+ * WEB section number: 272
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module, which gets executed only when |all_entries| is |true|,
+ * does one of three things, depending on whether or not, and where, the
+ * cite key appears on |cite_list|: If it's on |cite_list| before
+ * |all_marker|, there's nothing to be done; if it's after |all_marker|,
+ * it must be reinserted (at the current place) and we must note that its
+ * corresponding entry exists; and if it's not on |cite_list| at all, it
+ * must be inserted for the first time. The |goto| construct must stay
+ * as is, partly because some \PASCAL\ compilers might complain if
+ * ``|and|'' were to connect the two boolean expressions (since
+ * |entry_cite_ptr| could be uninitialized when |hash_found| is |false|).
+ ***************************************************************************/
+ BEGIN
+ if (hash_found)
+ BEGIN
+ if (entry_cite_ptr < all_marker)
+ BEGIN
+ goto Cite_Already_Set_Label;
+ END
+ else
+ BEGIN
+ entry_exists[entry_cite_ptr] = TRUE;
+ cite_loc = ilk_info[lc_cite_loc];
+ END
+ END
+ else
+ BEGIN
+ cite_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, CITE_ILK,
+ DO_INSERT);
+ if (hash_found)
+ BEGIN
+ hash_cite_confusion ();
+ END
+ END
+ entry_cite_ptr = cite_ptr;
+ add_database_cite (&cite_ptr);
+Cite_Already_Set_Label: DO_NOTHING;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 272 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else if ( ! hash_found)
+ BEGIN
+ store_entry = FALSE;
+ END
+ if (store_entry)
+
+/***************************************************************************
+ * WEB section number: 273
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must give a warning if this entry type doesn't exist. Also, we
+ * point the appropriate entry of |type_list| to the entry type just read
+ * above.
+ *
+ * For SCRIBE compatibility, the code to give a warning for a case
+ * mismatch between a cite key and a database key has been commented out.
+ * In fact, SCRIBE is the reason that it doesn't produce an error message
+ * outright. (Note: Case mismatches between two cite keys produce
+ * full-blown errors.)
+ ***************************************************************************/
+ BEGIN
+ /*----------------------------------------------------------------------
+ * dummy_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, CITE_ILK,
+ * DONT_INSERT);
+ * if ( ! hash_found)
+ * BEGIN
+ * PRINT ("Warning--case mismatch, database key \"");
+ * PRINT_TOKEN;
+ * PRINT ("\", cite key \"");
+ * PRINT_POOL_STR (cite_list[entry_cite_ptr]);
+ * BIB_WARN_NEWLINE ("\"");
+ * END
+ *---------------------------------------------------------------------*/
+ if (type_exists)
+ BEGIN
+ type_list[entry_cite_ptr] = entry_type_loc;
+ END
+ else
+ BEGIN
+ type_list[entry_cite_ptr] = UNDEFINED;
+ PRINT ("Warning--entry type for \"");
+ PRINT_TOKEN;
+ BIB_WARN_NEWLINE ("\" isn't style-file defined");
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 273 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 267 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 266 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+
+/***************************************************************************
+ * WEB section number: 274
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a |comma| and a field as many times as it can, and
+ * then reads a |right_outer_delim|, ending the current entry.
+ ***************************************************************************/
+ BEGIN
+ while (SCAN_CHAR != right_outer_delim)
+ BEGIN
+ if (SCAN_CHAR != COMMA)
+ BEGIN
+ BIB_ONE_OF_TWO_EXPECTED_ERR (COMMA, right_outer_delim);
+ END
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ if (SCAN_CHAR == right_outer_delim)
+ BEGIN
+ goto Loop_Exit_Label;
+ END
+
+/***************************************************************************
+ * WEB section number: 275
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module reads a field name; its contents won't be stored unless it
+ * was declared in the .bst file and |store_entry = true|.
+ ***************************************************************************/
+ BEGIN
+ scan_identifier (EQUALS_SIGN, EQUALS_SIGN, EQUALS_SIGN);
+ BIB_IDENTIFIER_SCAN_CHECK ("a field name");
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN (" is a field name");
+ }
+#endif /* TRACE */
+
+ store_field = FALSE;
+ if (store_entry)
+ BEGIN
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ field_name_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BST_FN_ILK, DONT_INSERT);
+ if (hash_found)
+ BEGIN
+ if (fn_type[field_name_loc] == FIELD)
+ BEGIN
+ store_field = TRUE;
+ END
+ END
+ END
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ if (SCAN_CHAR != EQUALS_SIGN)
+ BEGIN
+ BIB_EQUALS_SIGN_EXPECTED_ERR;
+ END
+ INCR (buf_ptr2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 275 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ if ( ! scan_and_store_the_field_value ())
+ BEGIN
+ goto Exit_Label;
+ END
+ END
+Loop_Exit_Label: DO_NOTHING;
+ INCR (buf_ptr2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 274 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 236 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 154
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must attend to a few details before getting to work on this .bst
+ * command.
+ ***************************************************************************/
+void get_bst_command_and_process (void)
+BEGIN
+ if ( ! scan_alpha ())
+ BEGIN
+ BST_ERR2 ("\"%c\"can't start a style-file command", xchr[SCAN_CHAR]);
+ END
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ command_num = ilk_info[str_lookup (buffer, buf_ptr1, TOKEN_LEN,
+ BST_COMMAND_ILK, DONT_INSERT)];
+ if ( ! hash_found)
+ BEGIN
+ PRINT_TOKEN;
+ BST_ERR (" is an illegal style-file command");
+ END
+
+/***************************************************************************
+ * WEB section number: 155
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we determine which .bst command we're about to process, and
+ * then go to it.
+ ***************************************************************************/
+ switch (command_num)
+ BEGIN
+ case N_BST_ENTRY:
+ bst_entry_command ();
+ break;
+ case N_BST_EXECUTE:
+ bst_execute_command ();
+ break;
+ case N_BST_FUNCTION:
+ bst_function_command ();
+ break;
+ case N_BST_INTEGERS:
+ bst_integers_command ();
+ break;
+ case N_BST_ITERATE:
+ bst_iterate_command ();
+ break;
+ case N_BST_MACRO:
+ bst_macro_command ();
+ break;
+ case N_BST_READ:
+ bst_read_command ();
+ break;
+ case N_BST_REVERSE:
+ bst_reverse_command ();
+ break;
+ case N_BST_SORT:
+ bst_sort_command ();
+ break;
+ case N_BST_STRINGS:
+ bst_strings_command ();
+ break;
+ default:
+ CONFUSION ("Unknown style-file command");
+ break;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 155 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 154 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 100
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure consists of a loop that reads and processes a (nonnull)
+ * .aux file name. It's this module and the next two that must be
+ * changed on those systems using command-line arguments. Note: The
+ * |TERM_OUT| and |term_in| files are system dependent.
+ *
+ * This procedure now does almost nothing because the command line has
+ * already been parsed and checked for us.
+ ***************************************************************************/
+void get_the_top_level_aux_file_name (void)
+BEGIN
+
+/***************************************************************************
+ * WEB section number: 101
+ * ~~~~~~~~~~~~~~~~~~~
+ * The switch |check_cmnd_line| tells us whether we're to check for a
+ * possible command-line argument.
+ *
+ * This procedure now does nothing because the command line has already
+ * been parsed and checked for us.
+ ***************************************************************************/
+ Boolean_T check_cmnd_line;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 101 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ check_cmnd_line = TRUE;
+ LOOP
+ BEGIN
+ if (check_cmnd_line)
+
+/***************************************************************************
+ * WEB section number: 102
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's where we do the real command line work. Actually, the command
+ * line has already been parsed for us and the .aux file name stored in
+ * Str_Auxfile. If an .aux file was not specified, BibTeX will have
+ * already stopped after issuing a "Usage" error.
+ ***************************************************************************/
+ BEGIN
+ /*
+ ** Leave room for the extension and the null byte at the end.
+ */
+ aux_name_length = strlen (Str_auxfile);
+ name_of_file = (unsigned char *) mymalloc (aux_name_length + 5, "name_of_file");
+ strncpy ((char *) name_of_file, Str_auxfile, aux_name_length);
+
+ /*
+ ** If the auxilliary file was specified with the ".aux" part already
+ ** appended, we strip it off here.
+ */
+ if (aux_name_length > 4) {
+ if ((Str_auxfile[aux_name_length-4] == '.')
+ && ((Str_auxfile[aux_name_length-3] == 'a') || (Str_auxfile[aux_name_length-3] == 'A'))
+ && ((Str_auxfile[aux_name_length-2] == 'u') || (Str_auxfile[aux_name_length-2] == 'U'))
+ && ((Str_auxfile[aux_name_length-1] == 'x') || (Str_auxfile[aux_name_length-1] == 'X')))
+ aux_name_length -= 4;
+ }
+
+ name_of_file[aux_name_length] = 0;
+ END
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 102 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 103
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we orchestrate this .aux name's handling: we add the various
+ * extensions, try to open the files with the resulting name, and
+ * store the name strings we'll need later.
+ ***************************************************************************/
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 106
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must make sure the (top-level) .aux, .blg, and .bbl
+ * files can be opened.
+ ***************************************************************************/
+ BEGIN
+ name_length = aux_name_length;
+ add_extension (s_aux_extension);
+ aux_ptr = 0;
+ if ( ! a_open_in (&CUR_AUX_FILE, AUX_FILE_SEARCH_PATH))
+ BEGIN
+ SAM_YOU_MADE_THE_FILE_NAME_WRON;
+ END
+
+ name_length = aux_name_length;
+ add_extension (s_log_extension);
+ if ( ! a_open_out (&log_file))
+ BEGIN
+ SAM_YOU_MADE_THE_FILE_NAME_WRON;
+ END
+
+ name_length = aux_name_length;
+ add_extension (s_bbl_extension);
+ if ( ! a_open_out (&bbl_file))
+ BEGIN
+ SAM_YOU_MADE_THE_FILE_NAME_WRON;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 106 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 107
+ * ~~~~~~~~~~~~~~~~~~~
+ * This code puts the .aux file name, both with and without the
+ * extension, into the hash table, and it initializes |aux_list|. Note
+ * that all previous top-level .aux-file stuff must have been
+ * successful.
+ ***************************************************************************/
+ BEGIN
+ name_length = aux_name_length;
+ add_extension (s_aux_extension);
+ name_ptr = 1;
+ while (name_ptr <= name_length)
+ BEGIN
+ buffer[name_ptr] = xord[name_of_file[name_ptr - 1]];
+ INCR (name_ptr);
+ END
+ top_lev_str = hash_text[str_lookup (buffer, 1, aux_name_length,
+ TEXT_ILK, DO_INSERT)];
+ CUR_AUX_STR = hash_text[str_lookup (buffer, 1, name_length,
+ AUX_FILE_ILK, DO_INSERT)];
+ if (hash_found)
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ print_aux_name ();
+#endif /* TRACE */
+
+ CONFUSION ("Already encountered auxiliary file");
+ END
+ CUR_AUX_LINE = 0;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 107 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ goto Aux_Found_Label;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 103 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Aux_Not_Found_Label: check_cmnd_line = FALSE;
+ mark_fatal ();
+ debug_msg (DBG_MISC,
+ "calling longjmp (Close_Up_Shop_Flag) ... ");
+ longjmp (Close_Up_Shop_Flag, 1);
+
+ END
+Aux_Found_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 100 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 137
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's a serious complaint (that is, a bug) concerning hash problems.
+ * This is the first of several similar bug-procedures that exist only
+ * because they save space.
+ ***************************************************************************/
+void hash_cite_confusion (void)
+BEGIN
+ CONFUSION ("Cite hash error");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 137 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 165
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's another bug.
+ ***************************************************************************/
+void id_scanning_confusion (void)
+BEGIN
+ CONFUSION ("Identifier scanning error");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 165 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 310
+ * ~~~~~~~~~~~~~~~~~~~
+ * More bug complaints, this time about bad literals.
+ ***************************************************************************/
+void illegl_literal_confusion (void)
+BEGIN
+ CONFUSION ("Illegal literal type");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 310 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 316
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module executes a single specified function once. It can't do
+ * anything with the entries.
+ ***************************************************************************/
+void init_command_execution (void)
+BEGIN
+ lit_stk_ptr = 0;
+ cmd_str_ptr = str_ptr;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 316 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 13
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure gets things started properly.
+ ***************************************************************************/
+void initialize (void)
+BEGIN
+/***************************************************************************
+ * WEB section number: 23
+ * ~~~~~~~~~~~~~~~~~~~
+ ***************************************************************************/
+ short i;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 66
+ * ~~~~~~~~~~~~~~~~~~~
+ ***************************************************************************/
+ HashLoc_T k;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 66 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 17
+ * ~~~~~~~~~~~~~~~~~~~
+ * Each digit-value of |bad| has a specific meaning.
+ ***************************************************************************/
+ bad = 0;
+
+ if (MIN_PRINT_LINE < 3)
+ bad = 1;
+
+ if (MAX_PRINT_LINE <= MIN_PRINT_LINE)
+ bad = 10 * bad + 2;
+
+ if (MAX_PRINT_LINE >= Buf_Size)
+ bad = 10 * bad + 3;
+
+ if (Hash_Prime < 128)
+ bad = 10 * bad + 4;
+
+ if (Hash_Prime > Hash_Size)
+ bad = 10 * bad + 5;
+
+ /*
+ ** The original WEB version of BibTeX imposed a maximum value of
+ ** 16320 on Hash_Prime. A WEB constant was defined:
+ **
+ ** MAX_HASH_VALUE = (Hash_Prime + Hash_Prime - 2 + 127)
+ **
+ ** but, because WEB constants are limited to 32767, Hash_Prime was
+ ** consequently limited to a maximum of (32767 + 2 - 127) / 2 = 16321.
+ **
+ ** We're using C #defines, so that limit doesn't apply. The
+ ** following original sanity check is therefore commented out.
+ **
+ ** if (Hash_Prime >= (16384 - 64))
+ ** bad = 10 * bad + 6;
+ */
+
+ if (Max_Strings > Hash_Size)
+ bad = 10 * bad + 7;
+
+ if (Max_Cites > Max_Strings)
+ bad = 10 * bad + 8;
+
+ /*
+ ** The following checks have been removed because
+ ** Buf_Size can be dynamically changed, whereas
+ ** Ent_Str_Size and Glob_Str_Size are maximum values
+ ** which are constants.
+ **
+ ** if (Ent_Str_Size > Buf_Size)
+ ** bad = 10 * bad + 9;
+ **
+ ** if (Glob_Str_Size > Buf_Size)
+ ** bad = 100 * bad + 11;
+ */
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 302
+ * ~~~~~~~~~~~~~~~~~~~
+ ***************************************************************************/
+#if (SHORT_LIST < ((2 * END_OFFSET) + 2))
+ bad = 100 * bad + 22;
+#endif /* (SHORT_LIST < ((2 * END_OFFSET) + 2)) */
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 302 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+ if (bad > 0)
+ BEGIN
+ FPRINTF (TERM_OUT, "%ld is a bad bad\n", (long) bad);
+ debug_msg (DBG_MISC, "calling longjmp (Exit_Program_Flag) ... ");
+ longjmp (Exit_Program_Flag, 1);
+ END
+
+/***************************************************************************
+ * WEB section number: 20
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |err_count| gets set or reset when |history| first changes to
+ * |warning_message| or |error_message|, so we don't need to initialize
+ * it.
+ ***************************************************************************/
+ history = SPOTLESS;
+
+/***************************************************************************
+ * WEB section number: 25
+ * ~~~~~~~~~~~~~~~~~~~
+ * Since we are assuming that our \PASCAL\ system is able to read and write the
+ * visible characters of standard ASCII (although not necessarily using the
+ * ASCII codes to represent them), the following assignment statements
+ * initialize
+ * most of the |xchr| array properly, without needing any system-dependent
+ * changes. On the other hand, it is possible to implement \TeX\ with
+ * less complete character sets, and in such cases it will be necessary to
+ * change something here.
+ ***************************************************************************/
+ xchr[0040] = ' ';
+ xchr[0041] = '!';
+ xchr[0042] = '"';
+ xchr[0043] = '#';
+ xchr[0044] = '$';
+ xchr[0045] = '%';
+ xchr[0046] = '&';
+ xchr[0047] = '\'';
+ xchr[0050] = '(';
+ xchr[0051] = ')';
+ xchr[0052] = '*';
+ xchr[0053] = '+';
+ xchr[0054] = ',';
+ xchr[0055] = '-';
+ xchr[0056] = '.';
+ xchr[0057] = '/';
+ xchr[0060] = '0';
+ xchr[0061] = '1';
+ xchr[0062] = '2';
+ xchr[0063] = '3';
+ xchr[0064] = '4';
+ xchr[0065] = '5';
+ xchr[0066] = '6';
+ xchr[0067] = '7';
+ xchr[0070] = '8';
+ xchr[0071] = '9';
+ xchr[0072] = ':';
+ xchr[0073] = ';';
+ xchr[0074] = '<';
+ xchr[0075] = '=';
+ xchr[0076] = '>';
+ xchr[0077] = '?';
+ xchr[0100] = '@';
+ xchr[0101] = 'A';
+ xchr[0102] = 'B';
+ xchr[0103] = 'C';
+ xchr[0104] = 'D';
+ xchr[0105] = 'E';
+ xchr[0106] = 'F';
+ xchr[0107] = 'G';
+ xchr[0110] = 'H';
+ xchr[0111] = 'I';
+ xchr[0112] = 'J';
+ xchr[0113] = 'K';
+ xchr[0114] = 'L';
+ xchr[0115] = 'M';
+ xchr[0116] = 'N';
+ xchr[0117] = 'O';
+ xchr[0120] = 'P';
+ xchr[0121] = 'Q';
+ xchr[0122] = 'R';
+ xchr[0123] = 'S';
+ xchr[0124] = 'T';
+ xchr[0125] = 'U';
+ xchr[0126] = 'V';
+ xchr[0127] = 'W';
+ xchr[0130] = 'X';
+ xchr[0131] = 'Y';
+ xchr[0132] = 'Z';
+ xchr[0133] = '[';
+ xchr[0134] = '\\';
+ xchr[0135] = ']';
+ xchr[0136] = '^';
+ xchr[0137] = '_';
+ xchr[0140] = '`';
+ xchr[0141] = 'a';
+ xchr[0142] = 'b';
+ xchr[0143] = 'c';
+ xchr[0144] = 'd';
+ xchr[0145] = 'e';
+ xchr[0146] = 'f';
+ xchr[0147] = 'g';
+ xchr[0150] = 'h';
+ xchr[0151] = 'i';
+ xchr[0152] = 'j';
+ xchr[0153] = 'k';
+ xchr[0154] = 'l';
+ xchr[0155] = 'm';
+ xchr[0156] = 'n';
+ xchr[0157] = 'o';
+ xchr[0160] = 'p';
+ xchr[0161] = 'q';
+ xchr[0162] = 'r';
+ xchr[0163] = 's';
+ xchr[0164] = 't';
+ xchr[0165] = 'u';
+ xchr[0166] = 'v';
+ xchr[0167] = 'w';
+ xchr[0170] = 'x';
+ xchr[0171] = 'y';
+ xchr[0172] = 'z';
+ xchr[0173] = '{';
+ xchr[0174] = '|';
+ xchr[0175] = '}';
+ xchr[0176] = '~';
+ xchr[0000] = ' ';
+ xchr[0177] = ' ';
+
+
+#ifdef SUPPORT_8BIT
+/*
+** Full 8Bit Support Note [ASIERRA95]:
+** BibTeX just must recognize characters greater than 127.
+** for (i=128; i<=255; i++)
+** xchr [i] = (unsigned char) i;
+*/
+#endif /* SUPPORT_8BIT */
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 27
+ * ~~~~~~~~~~~~~~~~~~~
+ * The ASCII code is ``standard'' only to a certain extent, since many
+ * computer installations have found it advantageous to have ready access
+ * to more than 94 printing characters. Appendix C of The \TeX book
+ * gives a complete specification of the intended correspondence between
+ * characters and \TeX's internal representation.
+ *
+ * If \TeX\ is being used
+ * on a garden-variety \PASCAL\ for which only standard ASCII
+ * codes will appear in the input and output files, it doesn't really matter
+ * what codes are specified in |xchr[1..@'37]|, but the safest policy is to
+ * blank everything out by using the code shown below.
+ *
+ * However, other settings of |xchr| will make \TeX\ more friendly on
+ * computers that have an extended character set, so that users can type things
+ * like `\.^^Z' instead of `\ne'. At MIT, for example, it would be more
+ * appropriate to substitute the code
+ *
+ * for i:=1 to '37 do xchr[i]:=chr(i);
+ *
+ * \TeX's character set is essentially the same as MIT's, even with respect to
+ * characters less than~@'40. People with extended character sets can
+ * assign codes arbitrarily, giving an |xchr| equivalent to whatever
+ * characters the users of \TeX\ are allowed to have in their input files.
+ * It is best to make the codes correspond to the intended interpretations as
+ * shown in Appendix~C whenever possible; but this is not necessary. For
+ * example, in countries with an alphabet of more than 26 letters, it is
+ * usually best to map the additional letters into codes less than~@'40.
+ ***************************************************************************/
+ for (i=1; i<=0037; i++)
+ BEGIN
+ xchr[i] = ' ';
+ END
+ xchr[TAB] = CHR (TAB);
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 28
+ * ~~~~~~~~~~~~~~~~~~~
+ * This system-independent code makes the |xord| array contain a suitable
+ * inverse to the information in |xchr|. Note that if |xchr[i]=xchr[j]|
+ * where |i<j<@'177|, the value of |xord[xchr[i]]| will turn out to be
+ * |j| or more; hence, standard ASCII code numbers will be used instead
+ * of codes below @'40 in case there is a coincidence.
+ ***************************************************************************/
+ for (i=FIRST_TEXT_CHAR; i<=LAST_TEXT_CHAR; i++)
+ BEGIN
+ xord[CHR (i)] = INVALID_CODE;
+ END
+
+ for (i=1; i<=0176; i++)
+ BEGIN
+ xord[xchr[i]] = i;
+ END
+
+#ifdef SUPPORT_8BIT
+/*
+** if (!Flag_7bit)
+** for (i=128; i<=LAST_ASCII_CHAR; i++)
+** BEGIN
+** xord[xchr[i]] = i;
+** END
+*/
+#endif /* SUPPORT_8BIT */
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 32
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we initialize the system-dependent |lex_class| array. The |tab|
+ * character may be system dependent. Note that the order of these
+ * assignments is important here.
+ ***************************************************************************/
+ for (i=0; i<=0177; i++)
+ BEGIN
+ lex_class[i] = OTHER_LEX;
+ END
+
+ for (i=0; i<=0037; i++)
+ BEGIN
+ lex_class[i] = ILLEGAL;
+ END
+
+ lex_class[INVALID_CODE] = ILLEGAL;
+ lex_class[TAB] = WHITE_SPACE;
+ lex_class[SPACE] = WHITE_SPACE;
+ lex_class[TIE] = SEP_CHAR;
+ lex_class[HYPHEN] = SEP_CHAR;
+
+ for (i=0060; i<=0071; i++)
+ BEGIN
+ lex_class[i] = NUMERIC;
+ END
+
+ for (i=0101; i<=0132; i++)
+ BEGIN
+ lex_class[i] = ALPHA;
+ END
+
+ for (i=0141; i<=0172; i++)
+ BEGIN
+ lex_class[i] = ALPHA;
+ END
+
+#ifdef SUPPORT_8BIT
+/*
+** Full 8Bit Support Note [ASIERRA95]:
+**
+** All character that can be case-changed are supposed to be ALPHA.
+** for (i=128; i<=255; i++)
+** if ((c8lowcase[i] != c8upcase[i]) || (Flag_8bit))
+** lex_class[i] = ALPHA;
+*/
+#endif /* SUPPORT_8BIT */
+
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 33
+ * ~~~~~~~~~~~~~~~~~~~
+ * And now the |id_class| array.
+ ***************************************************************************/
+ for (i=0; i<=0177; i++)
+ BEGIN
+ id_class[i] = LEGAL_ID_CHAR;
+ END
+
+ for (i=0; i<=0037; i++)
+ BEGIN
+ id_class[i] = ILLEGAL_ID_CHAR;
+ END
+
+ id_class[SPACE] = ILLEGAL_ID_CHAR;
+ id_class[TAB] = ILLEGAL_ID_CHAR;
+ id_class[DOUBLE_QUOTE] = ILLEGAL_ID_CHAR;
+ id_class[NUMBER_SIGN] = ILLEGAL_ID_CHAR;
+ id_class[COMMENT] = ILLEGAL_ID_CHAR;
+ id_class[SINGLE_QUOTE] = ILLEGAL_ID_CHAR;
+ id_class[LEFT_PAREN] = ILLEGAL_ID_CHAR;
+ id_class[RIGHT_PAREN] = ILLEGAL_ID_CHAR;
+ id_class[COMMA] = ILLEGAL_ID_CHAR;
+ id_class[EQUALS_SIGN] = ILLEGAL_ID_CHAR;
+ id_class[LEFT_BRACE] = ILLEGAL_ID_CHAR;
+ id_class[RIGHT_BRACE] = ILLEGAL_ID_CHAR;
+#ifdef SUPPORT_8BIT
+#ifdef UTF_8
+ for (i=0x80; i<=0xBF; i++)
+ BEGIN
+ id_class[i] = LEGAL_ID_CHAR;
+ END
+ for (i=0xC2; i<=0xF4; i++)
+ BEGIN
+ id_class[i] = LEGAL_ID_CHAR;
+ END
+#else
+ for (i=0xC0; i<=0xD6; i++)
+ BEGIN
+ id_class[i] = LEGAL_ID_CHAR;
+ END
+ for (i=0xD8; i<=0xF6; i++)
+ BEGIN
+ id_class[i] = LEGAL_ID_CHAR;
+ END
+ for (i=0xF8; i<=0xFF; i++)
+ BEGIN
+ id_class[i] = LEGAL_ID_CHAR;
+ END
+#endif
+#endif
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 35
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we initialize the system-dependent |char_width| array, for which
+ * |space| is the only |white_space| character given a nonzero printing
+ * width. The widths here are taken from Stanford's June~'87
+ * $cmr10$~font and represent hundredths of a point (rounded), but since
+ * they're used only for relative comparisons, the units have no meaning.
+ ***************************************************************************/
+ for (i=0; i<=LAST_LATIN_CHAR; i++)
+ BEGIN
+ char_width[i] = 0;
+ END
+
+ char_width[0040] = 278;
+ char_width[0041] = 278;
+ char_width[0042] = 500;
+ char_width[0043] = 833;
+ char_width[0044] = 500;
+ char_width[0045] = 833;
+ char_width[0046] = 778;
+ char_width[0047] = 278;
+ char_width[0050] = 389;
+ char_width[0051] = 389;
+ char_width[0052] = 500;
+ char_width[0053] = 778;
+ char_width[0054] = 278;
+ char_width[0055] = 333;
+ char_width[0056] = 278;
+ char_width[0057] = 500;
+ char_width[0060] = 500;
+ char_width[0061] = 500;
+ char_width[0062] = 500;
+ char_width[0063] = 500;
+ char_width[0064] = 500;
+ char_width[0065] = 500;
+ char_width[0066] = 500;
+ char_width[0067] = 500;
+ char_width[0070] = 500;
+ char_width[0071] = 500;
+ char_width[0072] = 278; /* :, refer 0x3A in T1 ecrm1000.tfm */
+ char_width[0073] = 278; /* ;, refer 0x3B in T1 ecrm1000.tfm */
+#ifdef SUPPORT_8BIT
+ char_width[0074] = 472; /* <, refer 0x3C in T1 ecrm1000.tfm */
+#else
+ char_width[0074] = 278; /* ¡, refer 0x3C in OT1 cmr10.tfm */
+#endif
+ char_width[0075] = 778; /* =, refer 0x3D in T1 ecrm1000.tfm */
+#ifdef SUPPORT_8BIT
+ char_width[0076] = 472; /* >, refer 0x3E in T1 ecrm1000.tfm */
+#else
+ char_width[0076] = 472; /* ¿, refer 0x3E in OT1 cmr10.tfm */
+#endif
+ char_width[0077] = 472; /* ?, refer 0x3F in T1 ecrm1000.tfm */
+ char_width[0100] = 778;
+ char_width[0101] = 750;
+ char_width[0102] = 708;
+ char_width[0103] = 722;
+ char_width[0104] = 764;
+ char_width[0105] = 681;
+ char_width[0106] = 653;
+ char_width[0107] = 785;
+ char_width[0110] = 750;
+ char_width[0111] = 361;
+ char_width[0112] = 514;
+ char_width[0113] = 778;
+ char_width[0114] = 625;
+ char_width[0115] = 917;
+ char_width[0116] = 750;
+ char_width[0117] = 778;
+ char_width[0120] = 681;
+ char_width[0121] = 778;
+ char_width[0122] = 736;
+ char_width[0123] = 556;
+ char_width[0124] = 722;
+ char_width[0125] = 750;
+ char_width[0126] = 750;
+ char_width[0127] = 1028;
+ char_width[0130] = 750;
+ char_width[0131] = 750;
+ char_width[0132] = 611;
+ char_width[0133] = 278; /* [, refer 0x5B in T1 ecrm1000.tfm */
+ char_width[0134] = 500; /* \, refer 0x5C in T1 ecrm1000.tfm */
+ char_width[0135] = 278; /* ], refer 0x5D in T1 ecrm1000.tfm */
+#ifdef SUPPORT_8BIT
+ char_width[0136] = 611; /* wide ^, refer 0x5E in T1 ecrm1000.tfm */
+ char_width[0137] = 778; /* wide _, refer 0x5F in T1 ecrm1000.tfm */
+#else
+ char_width[0136] = 500; /* ^, refer 0x5E in OT1 cmr10.tfm */
+ char_width[0137] = 278; /* dot above, refer 0x5F in OT1 cmr10.tfm */
+#endif
+ char_width[0140] = 278; /* `, refer 0x60 in T1 ecrm1000.tfm */
+ char_width[0141] = 500;
+ char_width[0142] = 556;
+ char_width[0143] = 444;
+ char_width[0144] = 556;
+ char_width[0145] = 444;
+ char_width[0146] = 306;
+ char_width[0147] = 500;
+ char_width[0150] = 556;
+ char_width[0151] = 278;
+ char_width[0152] = 306;
+ char_width[0153] = 528;
+ char_width[0154] = 278;
+ char_width[0155] = 833;
+ char_width[0156] = 556;
+ char_width[0157] = 500;
+ char_width[0160] = 556;
+ char_width[0161] = 528;
+ char_width[0162] = 392;
+ char_width[0163] = 394;
+ char_width[0164] = 389;
+ char_width[0165] = 556;
+ char_width[0166] = 528;
+ char_width[0167] = 722;
+ char_width[0170] = 528;
+ char_width[0171] = 528;
+ char_width[0172] = 444;
+ char_width[0173] = 500; /* {, refer 0x7B in T1 ecrm1000.tfm */
+#ifdef SUPPORT_8BIT
+ char_width[0174] = 278; /* |, refer 0x7C in T1 ecrm1000.tfm */
+#else
+ char_width[0174] = 1000; /* em-dash, refer 0x7C in OT1 cmr10.tfm */
+#endif
+ char_width[0175] = 500; /* }, refer 0x7D in T1 ecrm1000.tfm */
+#ifdef SUPPORT_8BIT
+ char_width[0176] = 611; /* ~, refer 0x7E in T1 ecrm1000.tfm */
+#else
+ char_width[0176] = 500; /* ??? */
+#endif
+#ifdef SUPPORT_8BIT
+ char_width[0xA1] = 278; /* ¡, refer 0xBD in T1 ecrm1000.tfm */
+ char_width[0xA3] = 639; /* £, refer 0xBF in T1 ecrm1000.tfm */
+ char_width[0xA7] = 444; /* §, refer 0x9F in T1 ecrm1000.tfm */
+ char_width[0xAB] = 556; /* «, refer 0x13 in T1 ecrm1000.tfm */
+ char_width[0xBB] = 556; /* », refer 0x14 in T1 ecrm1000.tfm */
+ char_width[0xBF] = 472; /* ¿, refer 0xBE in T1 ecrm1000.tfm */
+ char_width[0xC0] = 750;
+ char_width[0xC1] = 750;
+ char_width[0xC2] = 750;
+ char_width[0xC3] = 750;
+ char_width[0xC4] = 750;
+ char_width[0xC5] = 750;
+ char_width[0xC6] = 903;
+ char_width[0xC7] = 722;
+ char_width[0xC8] = 681;
+ char_width[0xC9] = 681;
+ char_width[0xCA] = 681;
+ char_width[0xCB] = 681;
+ char_width[0xCC] = 361;
+ char_width[0xCD] = 361;
+ char_width[0xCE] = 361;
+ char_width[0xCF] = 361;
+ char_width[0xD0] = 764;
+ char_width[0xD1] = 750;
+ char_width[0xD2] = 778;
+ char_width[0xD3] = 778;
+ char_width[0xD4] = 778;
+ char_width[0xD5] = 778;
+ char_width[0xD6] = 778;
+ char_width[0xD7] = 778; /* expect "×" */
+ char_width[0xD8] = 778;
+ char_width[0xD9] = 750;
+ char_width[0xDA] = 750;
+ char_width[0xDB] = 750;
+ char_width[0xDC] = 750;
+ char_width[0xDD] = 750;
+ char_width[0xDE] = 625;
+ char_width[0xDF] = 500; /* ß, refer 0xFF in T1 ecrm1000.tfm */
+ char_width[0xE0] = 500;
+ char_width[0xE1] = 500;
+ char_width[0xE2] = 500;
+ char_width[0xE3] = 500;
+ char_width[0xE4] = 500;
+ char_width[0xE5] = 500;
+ char_width[0xE6] = 722;
+ char_width[0xE7] = 444;
+ char_width[0xE8] = 444;
+ char_width[0xE9] = 444;
+ char_width[0xEA] = 444;
+ char_width[0xEB] = 444;
+ char_width[0xEC] = 278;
+ char_width[0xED] = 278;
+ char_width[0xEE] = 278;
+ char_width[0xEF] = 333;
+ char_width[0xF0] = 500;
+ char_width[0xF1] = 556;
+ char_width[0xF2] = 500;
+ char_width[0xF3] = 500;
+ char_width[0xF4] = 500;
+ char_width[0xF5] = 500;
+ char_width[0xF6] = 500;
+ char_width[0xF7] = 778; /* expect "÷" */
+ char_width[0xF8] = 500;
+ char_width[0xF9] = 556;
+ char_width[0xFA] = 556;
+ char_width[0xFB] = 556;
+ char_width[0xFC] = 556;
+ char_width[0xFD] = 528;
+ char_width[0xFE] = 556;
+ char_width[0xFF] = 528; /* ÿ, refer 0xB8 in T1 ecrm1000.tfm */
+#endif
+#ifdef UTF_8
+ char_width[0x100] = 750;
+ char_width[0x101] = 500;
+ char_width[0x102] = 750;
+ char_width[0x103] = 500;
+ char_width[0x104] = 750;
+ char_width[0x105] = 500;
+ char_width[0x106] = 722;
+ char_width[0x107] = 444;
+ char_width[0x108] = 722;
+ char_width[0x109] = 444;
+ char_width[0x10A] = 722;
+ char_width[0x10B] = 444;
+ char_width[0x10C] = 722;
+ char_width[0x10D] = 444;
+ char_width[0x10E] = 764;
+ char_width[0x10F] = 556;
+ char_width[0x110] = 764;
+ char_width[0x111] = 556;
+ char_width[0x112] = 681;
+ char_width[0x113] = 444;
+ char_width[0x114] = 681;
+ char_width[0x115] = 444;
+ char_width[0x116] = 681;
+ char_width[0x117] = 444;
+ char_width[0x118] = 681;
+ char_width[0x119] = 444;
+ char_width[0x11A] = 681;
+ char_width[0x11B] = 444;
+ char_width[0x11C] = 785;
+ char_width[0x11D] = 500;
+ char_width[0x11E] = 785;
+ char_width[0x11F] = 500;
+ char_width[0x120] = 785;
+ char_width[0x121] = 500;
+ char_width[0x122] = 785;
+ char_width[0x123] = 500;
+ char_width[0x124] = 750;
+ char_width[0x125] = 556;
+ char_width[0x126] = 750;
+ char_width[0x127] = 556;
+ char_width[0x128] = 361;
+ char_width[0x129] = 278;
+ char_width[0x12A] = 361;
+ char_width[0x12B] = 278;
+ char_width[0x12C] = 361;
+ char_width[0x12D] = 278;
+ char_width[0x12E] = 361;
+ char_width[0x12F] = 278;
+ char_width[0x130] = 361;
+ char_width[0x131] = 278;
+ char_width[0x132] = 861; /* IJ, refer 0x9C in T1 ecrm1000.tfm */
+ char_width[0x133] = 583; /* ij, refer 0xBC in T1 ecrm1000.tfm */
+ char_width[0x134] = 541;
+ char_width[0x135] = 306;
+ char_width[0x136] = 778;
+ char_width[0x137] = 528;
+ char_width[0x138] = 556; /* ĸ, not found in T1 ecrm1000.tfm */
+ char_width[0x139] = 625;
+ char_width[0x13A] = 278;
+ char_width[0x13B] = 625;
+ char_width[0x13C] = 278;
+ char_width[0x13D] = 625;
+ char_width[0x13E] = 278;
+ char_width[0x13F] = 625;
+ char_width[0x140] = 278;
+ char_width[0x141] = 625;
+ char_width[0x142] = 278;
+ char_width[0x143] = 750;
+ char_width[0x144] = 556;
+ char_width[0x145] = 750;
+ char_width[0x146] = 556;
+ char_width[0x147] = 750;
+ char_width[0x148] = 556;
+ char_width[0x149] = 556;
+ char_width[0x14A] = 792; /* ÅŠ, refer 0x8D in T1 ecrm1000.tfm */
+ char_width[0x14B] = 556; /* Å‹, refer 0xAD in T1 ecrm1000.tfm */
+ char_width[0x14C] = 778;
+ char_width[0x14D] = 500;
+ char_width[0x14E] = 778;
+ char_width[0x14F] = 500;
+ char_width[0x150] = 778;
+ char_width[0x151] = 500;
+ char_width[0x152] = 1014; /* Å’, refer 0xD7 in T1 ecrm1000.tfm */
+ char_width[0x153] = 778; /* Å“, refer 0xF7 in T1 ecrm1000.tfm */
+ char_width[0x154] = 736;
+ char_width[0x155] = 392;
+ char_width[0x156] = 736;
+ char_width[0x157] = 392;
+ char_width[0x158] = 736;
+ char_width[0x159] = 392;
+ char_width[0x15A] = 556;
+ char_width[0x15B] = 394;
+ char_width[0x15C] = 556;
+ char_width[0x15D] = 394;
+ char_width[0x15E] = 556;
+ char_width[0x15F] = 394;
+ char_width[0x160] = 556;
+ char_width[0x161] = 394;
+ char_width[0x162] = 722;
+ char_width[0x163] = 389;
+ char_width[0x164] = 722;
+ char_width[0x165] = 389;
+ char_width[0x166] = 722;
+ char_width[0x167] = 389;
+ char_width[0x168] = 750;
+ char_width[0x169] = 556;
+ char_width[0x16A] = 750;
+ char_width[0x16B] = 556;
+ char_width[0x16C] = 750;
+ char_width[0x16D] = 556;
+ char_width[0x16E] = 750;
+ char_width[0x16F] = 556;
+ char_width[0x170] = 750;
+ char_width[0x171] = 556;
+ char_width[0x172] = 750;
+ char_width[0x173] = 556;
+ char_width[0x174] = 1028;
+ char_width[0x175] = 722;
+ char_width[0x176] = 750;
+ char_width[0x177] = 528;
+ char_width[0x178] = 750;
+ char_width[0x179] = 611;
+ char_width[0x17A] = 444;
+ char_width[0x17B] = 611;
+ char_width[0x17C] = 444;
+ char_width[0x17D] = 611;
+ char_width[0x17E] = 444;
+ char_width[0x17F] = 392; /* Å¿, not found in T1 ecrm1000.tfm */
+#endif
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 67
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now it's time to initialize the hash table; note that |str_start[0]|
+ * must be unused if |hash_text[k] := 0| is to have the desired effect.
+ ***************************************************************************/
+ for (k=HASH_BASE; k<=HASH_MAX; k++)
+ BEGIN
+ hash_next[k] = EMPTY;
+ hash_text[k] = 0;
+ END
+ hash_used = HASH_MAX + 1;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 67 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 72
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now that we've defined the hash-table workings we can initialize the
+ * string pool. Unlike \TeX, \BibTeX\ does not use a |pool_file| for
+ * string storage; instead it inserts its pre-defined strings into
+ * |str_pool|---this makes one file fewer for the \BibTeX\ implementor
+ * to deal with. This section initializes |str_pool|; the pre-defined
+ * strings will be inserted into it shortly; and other strings are
+ * inserted while processing the input files.
+ ***************************************************************************/
+ pool_ptr = 0;
+ str_ptr = 1;
+ str_start[str_ptr] = pool_ptr;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 72 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 119
+ * ~~~~~~~~~~~~~~~~~~~
+ *
+ ***************************************************************************/
+ bib_ptr = 0;
+ bib_seen = FALSE;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 119 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 125
+ * ~~~~~~~~~~~~~~~~~~~
+ * And we initialize.
+ ***************************************************************************/
+ bst_str = 0;
+ bst_seen = FALSE;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 125 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 131
+ * ~~~~~~~~~~~~~~~~~~~
+ *
+ ***************************************************************************/
+ cite_ptr = 0;
+ citation_seen = FALSE;
+ all_entries = FALSE;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 131 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 162
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we initialize storage for the |wiz_defined| functions and we
+ * initialize variables so that the first |str_entry_var|,
+ * |int_entry_var|, |str_global_var|, and |field| name will be assigned
+ * the number~0. Note: The variables |num_ent_strs| and |num_fields|
+ * will also be set when pre-defining strings.
+ ***************************************************************************/
+ wiz_def_ptr = 0;
+ num_ent_ints = 0;
+ num_ent_strs = 0;
+ num_fields = 0;
+ str_glb_ptr = 0;
+ while (str_glb_ptr < Max_Glob_Strs)
+ BEGIN
+ glb_str_ptr[str_glb_ptr] = 0;
+ glb_str_end[str_glb_ptr] = 0;
+ INCR (str_glb_ptr);
+ END
+ num_glb_strs = 0;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 162 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 164
+ * ~~~~~~~~~~~~~~~~~~~
+ * And we initialize them.
+ ***************************************************************************/
+ entry_seen = FALSE;
+ read_seen = FALSE;
+ read_performed = FALSE;
+ reading_completed = FALSE;
+ read_completed = FALSE;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 164 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 196
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we initialize it.
+ ***************************************************************************/
+ impl_fn_num = 0;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 196 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 292
+ * ~~~~~~~~~~~~~~~~~~~
+ * And the first output line requires this initialization.
+ ***************************************************************************/
+ out_buf_length = 0;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 292 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ pre_def_certain_strings ();
+ get_the_top_level_aux_file_name ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 47
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |input_ln| function brings the next line of input from the
+ * specified file into available positions of the buffer array and
+ * returns the value |true|, unless the file has already been entirely
+ * read, in which case it returns |false| and sets |last:=0|. In
+ * general, the |ASCII_code| numbers that represent the next line of the
+ * file are input into |buffer[0]|, |buffer[1]|, \dots, |buffer[last-1]|;
+ * and the global variable |last| is set equal to the length of the line.
+ * Trailing |white_space| characters are removed from the line
+ * (|white_space| characters are explained in the character-set section%
+ * ---most likely they're blanks); thus, either |last=0| (in which case
+ * the line was entirely blank) or |lex_class[buffer[last-1]]<>white_space|.
+ * An overflow error is given if the normal actions of |input_ln| would
+ * make |last>buf_size|.
+ ***************************************************************************/
+Boolean_T input_ln (AlphaFile_T f)
+BEGIN
+ Boolean_T input_ln;
+
+ last = 0;
+
+ if (feof (f))
+ BEGIN
+ input_ln = FALSE;
+ END
+ else
+ BEGIN
+ while ( ! eoln (f))
+ BEGIN
+ if (last >= Buf_Size)
+ BEGIN
+ buffer_overflow ();
+ END
+
+ buffer[last] = xord[getc(f)];
+ INCR (last);
+ END
+ (void) getc (f);
+
+ while (last > 0)
+ BEGIN
+ if (lex_class[buffer[last - 1]] == WHITE_SPACE)
+ BEGIN
+ DECR (last);
+ END
+ else
+ BEGIN
+ goto Loop_Exit_Label;
+ END
+ END
+Loop_Exit_Label: input_ln = TRUE;
+ END
+ return (input_ln);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 198
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure takes the integer |int|, copies the appropriate
+ * |ASCII_code| string into |int_buf| starting at |int_begin|, and sets
+ * the |var| parameter |int_end| to the first unused |int_buf| location.
+ * The ASCII string will consist of decimal digits, the first of which
+ * will be not be a~0 if the integer is nonzero, with a prepended minus
+ * sign if the integer is negative.
+ ***************************************************************************/
+void int_to_ASCII (Integer_T integer, BufType_T int_buf,
+ BufPointer_T int_begin, BufPointer_T *int_end)
+BEGIN
+ BufPointer_T int_ptr,
+ int_xptr;
+ ASCIICode_T int_tmp_val;
+
+ int_ptr = int_begin;
+ if (integer < 0)
+ BEGIN
+ APPEND_INT_CHAR (MINUS_SIGN);
+ integer = -integer;
+ END
+ int_xptr = int_ptr;
+ REPEAT
+ BEGIN
+ APPEND_INT_CHAR ('0' + (integer MOD 10));
+ integer = integer DIV 10;
+ END UNTIL (integer == 0);
+ *int_end = int_ptr;
+ DECR (int_ptr);
+ while (int_xptr < int_ptr)
+ BEGIN
+ int_tmp_val = int_buf[int_xptr];
+ int_buf[int_xptr] = int_buf[int_ptr];
+ int_buf[int_ptr] = int_tmp_val;
+ DECR (int_ptr);
+ INCR (int_xptr);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 198 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 145
+ * ~~~~~~~~~~~~~~~~~~~
+ * Before proceeding, we see if we have any complaints.
+ ***************************************************************************/
+void last_check_for_aux_errors (void)
+BEGIN
+ num_cites = cite_ptr;
+ num_bib_files = bib_ptr;
+ if ( ! citation_seen)
+ BEGIN
+ AUX_END_ERR ("\\citation commands");
+ END
+ else if ((num_cites == 0) && ( ! all_entries))
+ BEGIN
+ AUX_END_ERR ("cite keys");
+ END
+ if ( ! bib_seen)
+ BEGIN
+ AUX_END_ERR ("\\bibdata command");
+ END
+ else if (num_bib_files == 0)
+ BEGIN
+ AUX_END_ERR ("database files");
+ END
+ if ( ! bst_seen)
+ BEGIN
+ AUX_END_ERR ("\\bibstyle command");
+ END
+ else if (bst_str == 0)
+ BEGIN
+ AUX_END_ERR ("style file");
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 145 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 301
+ * ~~~~~~~~~~~~~~~~~~~
+ * The function |less_than| compares the two sort.key$s indirectly
+ * pointed to by its arguments and returns |true| if the first argument's
+ * sort.key$ is lexicographically less than the second's (that is,
+ * alphabetically earlier). In case of ties the function compares the
+ * indices |arg1| and |arg2|, which are assumed to be different, and
+ * returns |true| if the first is smaller. This function uses
+ * |ASCII_code|s to compare, so it might give ``interesting'' results
+ * when handling nonletters.
+ ***************************************************************************/
+Boolean_T less_than (CiteNumber_T arg1, CiteNumber_T arg2)
+BEGIN
+ StrEntLoc_T ptr1,
+ ptr2;
+ Boolean_T less_than;
+#ifdef UTF_8
+/*
+We use ICU Collator ucol_strcollUTF8() to compare the Unicode in UTF-8.
+There is a command line option "-o", "--location" to set the rule of collation.
+*/
+ Integer_T lenk1, lenk2;
+ UBool u_cmp;
+ UErrorCode err1 = U_ZERO_ERROR;
+ char *eos1, *eos2;
+ const char *ustr1, *ustr2;
+#else
+ Integer_T char_ptr;
+ ASCIICode_T char1,
+ char2;
+#endif
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN3 ("Comparing entry %ld and %ld ...", arg1, arg2);
+#endif /* TRACE */
+ ptr1 = (arg1 * num_ent_strs) + sort_key_num;
+ ptr2 = (arg2 * num_ent_strs) + sort_key_num;
+#ifdef UTF_8
+ ustr1 = (const char *)&ENTRY_STRS(ptr1, 0);
+ ustr2 = (const char *)&ENTRY_STRS(ptr2, 0);
+ eos1 = strchr(ustr1, END_OF_STRING);
+ eos2 = strchr(ustr2, END_OF_STRING);
+ lenk1 = eos1 ? eos1-ustr1 : strlen(ustr1);
+ lenk2 = eos2 ? eos2-ustr2 : strlen(ustr2);
+
+ u_cmp = ucol_strcollUTF8(u_coll, ustr1, lenk1, ustr2, lenk2, &err1);
+ if (!U_SUCCESS(err1))
+ BEGIN
+ printf("Error in ucol_strcollUTF8.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in ucol_strcollUTF8");
+#endif /* TRACE */
+ END
+
+ if (u_cmp==UCOL_EQUAL)
+ BEGIN
+ if (arg1 < arg2)
+ BEGIN
+ COMPARE_RETURN (TRUE);
+ END
+ else if (arg1 > arg2)
+ BEGIN
+ COMPARE_RETURN (FALSE);
+ END
+ else
+ BEGIN
+ CONFUSION ("Duplicate sort key");
+ END
+ END
+ less_than = u_cmp==UCOL_LESS;
+#else
+ char_ptr = 0;
+ LOOP
+ BEGIN
+ char1 = ENTRY_STRS(ptr1, char_ptr);
+ char2 = ENTRY_STRS(ptr2, char_ptr);
+ if (char1 == END_OF_STRING)
+ BEGIN
+ if (char2 == END_OF_STRING)
+ BEGIN
+ if (arg1 < arg2)
+ BEGIN
+ COMPARE_RETURN (TRUE);
+ END
+ else if (arg1 > arg2)
+ BEGIN
+ COMPARE_RETURN (FALSE);
+ END
+ else
+ BEGIN
+ CONFUSION ("Duplicate sort key");
+ END
+ END
+ else
+ BEGIN
+ COMPARE_RETURN (TRUE);
+ END
+ END
+ else if (char2 == END_OF_STRING)
+ BEGIN
+ COMPARE_RETURN (FALSE);
+ END
+ else if char_less_than(char1, char2)
+ BEGIN
+ COMPARE_RETURN (TRUE);
+ END
+ else if char_greater_than(char1, char2)
+ BEGIN
+ COMPARE_RETURN (FALSE);
+ END
+ INCR (char_ptr);
+ END
+#endif
+Exit_Label:
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN2 ("... first is smaller than second? -- %s", (less_than?"T":"F"));
+#endif /* TRACE */
+ return (less_than);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 301 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 62
+ * ~~~~~~~~~~~~~~~~~~~
+ * This system-independent procedure converts upper-case characters to
+ * lower case for the specified part of |buf|. It is system independent
+ * because it uses only the internal representation for characters.
+ ***************************************************************************/
+void lower_case (BufType_T buf, BufPointer_T bf_ptr,
+ BufPointer_T len)
+BEGIN
+ BufPointer_T i;
+
+ if (len > 0)
+ BEGIN
+ for (i = bf_ptr; i <= (bf_ptr + len - 1); i++)
+ BEGIN
+
+#ifdef SUPPORT_8BIT
+ if (IsUpper (buf[i]))
+ BEGIN
+ buf[i] = ToLower (buf[i]);
+ END
+#else /* NOT SUPPORT_8BIT */
+ if ((buf[i] >= 'A') && (buf[i] <= 'Z'))
+ BEGIN
+ buf[i] = buf[i] + CASE_DIFFERENCE;
+ END
+#endif /* SUPPORT_8BIT */
+
+ END
+ END
+END
+
+#ifdef UTF_8
+/*
+"lower_case_uni" is the function for processing the characters, actually the UTF-8.
+We transform UTF-8 to Unicode, then to low case, then back to UTF-8 for output.
+When we transform the character, the length have been changed. So we have do
+some job for the length. And the output of this function we should be careful
+to the length. 23/sep/2009
+*/
+BufPointer_T lower_case_uni (BufType_T buf, BufPointer_T bf_ptr,
+ BufPointer_T len)
+BEGIN
+
+ UChar target[BUF_SIZE+1];
+ int32_t tarcap=BUF_SIZE+1;
+ int32_t tarlen = icu_toUChars(buf, bf_ptr, len, target, tarcap);
+
+ UChar tarlow[BUF_SIZE+1];
+ int32_t tlcap=BUF_SIZE+1;
+ int32_t tllen=icu_strToLower(tarlow, tlcap,target, tarlen);
+
+ unsigned char dest[BUF_SIZE+1];
+ int32_t destcap= BUF_SIZE-bf_ptr;
+
+ int32_t tblen=icu_fromUChars(dest, destcap, (const UChar *) tarlow, tllen);
+
+ BufPointer_T i;
+ if (tblen > 0)
+ BEGIN
+ if (len!=tblen)
+ BEGIN
+ unsigned char tmp[BUF_SIZE+1];
+ BufPointer_T tmppr=0;
+ for (i=bf_ptr+len;i<=(BUF_SIZE-tblen+len);i++)
+ BEGIN
+ tmp[tmppr]=buf[i];
+ tmppr++;
+ END
+ i=bf_ptr+tblen;
+ tmppr=0;
+ for (tmppr=0;tmppr<=(BUF_SIZE-bf_ptr-tblen);tmppr++)
+ BEGIN
+ buf[i]=tmp[tmppr];
+ i++;
+ END
+ END
+ for (i = 0; i <= (tblen - 1); i++)
+ BEGIN
+
+ buf[i+bf_ptr]=dest[i];
+
+ END
+ END
+
+ return tblen;
+END
+
+
+/*
+This function is for transform UTF-8 to Unicode with ICU libs. 23/sep/2009
+*/
+int32_t icu_toUChars(BufType_T buf, BufPointer_T bf_ptr,BufPointer_T len,UChar * target, int32_t tarcap)
+BEGIN
+ UErrorCode err1 = U_ZERO_ERROR;
+ int32_t tulen;
+
+ u_strFromUTF8WithSub(target, tarcap, &tulen, (char *)&buf[bf_ptr], len, 0xfffd, NULL, &err1);
+ if (!U_SUCCESS(err1))
+ BEGIN
+ printf("Error in icu_toUChars.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_toUChars");
+#endif /* TRACE */
+ END
+
+ return tulen;
+END
+
+/*
+This function is for transform Unicode string to low case. 23/sep/2009
+*/
+int32_t icu_strToLower(UChar * tarlow, int32_t tlcap, UChar * target, int32_t tarlen)
+BEGIN
+ int32_t tllen;
+ UErrorCode err1 = U_ZERO_ERROR;
+ if (Flag_language)
+ {
+ tllen=u_strToLower(tarlow,tlcap, target,tarlen,Str_language,&err1);
+ }
+ else
+ {
+ tllen=u_strToLower(tarlow,tlcap, target,tarlen,NULL,&err1);
+ }
+ if (!U_SUCCESS(err1))
+ BEGIN
+ int16_t i=0;
+ printf("Error in icu_strToLower.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_strToLower");
+#endif /* TRACE */
+ for (i=0;i<tarlen;i++)
+ BEGIN
+ printf("%X", target[i]);
+ END
+ printf("\n");
+ for (i=0;i<tllen;i++)
+ BEGIN
+ printf("%X", tarlow[i]);
+ END
+ printf("\n");
+ END
+
+ return tllen;
+END
+
+
+/*
+This function is for transform Unicode to UTF-8. 23/sep/2009
+*/
+int32_t icu_fromUChars(unsigned char * dest, int32_t destcap, const UChar * src, int32_t srclen)
+BEGIN
+ UErrorCode err2 = U_ZERO_ERROR;
+ int32_t tblen;
+
+ u_strToUTF8WithSub((char *)dest, destcap, &tblen, src, srclen, 0xfffd, NULL, &err2);
+ if (!U_SUCCESS(err2))
+ BEGIN
+ printf("Error in icu_fromUChars.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_fromUChars");
+#endif /* TRACE */
+ END
+
+ return tblen;
+END
+
+int32_t icu_toUChar32s(BufType_T buf, BufPointer_T bf_ptr,BufPointer_T len,UChar32 * target, int32_t tarcap, UChar * buf16)
+BEGIN
+ UErrorCode err1 = U_ZERO_ERROR;
+ int32_t tulen;
+
+ u_strFromUTF8WithSub(buf16, tarcap, &tulen, (char *)&buf[bf_ptr], len, 0xfffd, NULL, &err1);
+ if (!U_SUCCESS(err1))
+ BEGIN
+ printf("Error in icu_toUChar32s.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_toUChar32s");
+#endif /* TRACE */
+ END
+ err1 = U_ZERO_ERROR;
+ u_strToUTF32WithSub(target, tarcap, &tulen, buf16, -1, 0xfffd, NULL, &err1);
+ if (!U_SUCCESS(err1))
+ BEGIN
+ printf("Error in icu_toUChar32s.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_toUChar32s");
+#endif /* TRACE */
+ END
+ return tulen;
+END
+
+int32_t icu_fromUChar32s(unsigned char * dest, int32_t destcap, const UChar32 * src, int32_t srclen, UChar * buf16)
+BEGIN
+ UErrorCode err2 = U_ZERO_ERROR;
+ int32_t tblen;
+
+ u_strFromUTF32WithSub(buf16, destcap, &tblen, src, srclen, 0xfffd, NULL, &err2);
+ if (!U_SUCCESS(err2))
+ BEGIN
+ printf("Error in icu_fromUChar32s.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_fromUChar32s");
+#endif /* TRACE */
+ END
+ err2 = U_ZERO_ERROR;
+ u_strToUTF8WithSub((char *)dest, destcap, &tblen, buf16, -1, 0xfffd, NULL, &err2);
+ if (!U_SUCCESS(err2))
+ BEGIN
+ printf("Error in icu_fromUChar32s.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_fromUChar32s");
+#endif /* TRACE */
+ END
+ return tblen;
+END
+#endif
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 62 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 234
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one is just a warning, not an error. It's for when something
+ * isn't (or might not be) quite right with a macro name.
+ ***************************************************************************/
+void macro_warn_print (void)
+BEGIN
+ PRINT ("Warning--string name \"");
+ PRINT_TOKEN;
+ PRINT ("\" is ");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 234 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 54
+ * ~~~~~~~~~~~~~~~~~~~
+ * Once a sequence of characters has been appended to |str_pool|, it
+ * officially becomes a string when the function |make_string| is called.
+ * It returns the string number of the string it just made.
+ ***************************************************************************/
+StrNumber_T make_string (void)
+BEGIN
+ if (str_ptr == Max_Strings)
+ BEGIN
+ BIBTEX_OVERFLOW ("number of strings ", Max_Strings);
+ END
+ INCR (str_ptr);
+ str_start[str_ptr] = pool_ptr;
+ return (str_ptr - 1);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 18
+ * ~~~~~~~~~~~~~~~~~~~
+ *
+ ***************************************************************************/
+void mark_error (void)
+BEGIN
+ if (history < ERROR_MESSAGE)
+ BEGIN
+ history = ERROR_MESSAGE;
+ err_count = 1;
+ END
+ else
+ BEGIN
+ INCR (err_count);
+ END
+END
+
+
+void mark_fatal (void)
+BEGIN
+ history = FATAL_MESSAGE;
+END
+
+
+void mark_warning (void)
+BEGIN
+ if (history == WARNING_MESSAGE)
+ BEGIN
+ INCR (err_count);
+ END
+ else if (history == SPOTLESS)
+ BEGIN
+ history = WARNING_MESSAGE;
+ err_count = 1;
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 384
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module, starting at |ex_buf_ptr|, looks in |ex_buf| for an
+ * ``and'' surrounded by nonnull |white_space|. It stops either at
+ * |ex_buf_length| or just past the ``and'', whichever comes first,
+ * setting |ex_buf_ptr| accordingly. Its parameter |pop_lit_var| is
+ * either |pop_lit3| or |pop_lit1|, depending on whether
+ * format.name$ or num.names$ calls it.
+ ***************************************************************************/
+void name_scan_for_and (StrNumber_T pop_lit_var)
+BEGIN
+ brace_level = 0;
+ preceding_white = FALSE;
+ and_found = FALSE;
+ while (( ! and_found) && (ex_buf_ptr < ex_buf_length))
+ BEGIN
+#ifdef UTF_8
+ UChar32 ch;
+ U8_GET(&ex_buf[ex_buf_ptr], 0, 0, -1, ch);
+ if (ch<0)
+ BEGIN
+ INCR (ex_buf_ptr);
+ preceding_white = FALSE;
+ continue;
+ END
+ switch (ch)
+#else
+ switch (ex_buf[ex_buf_ptr])
+#endif
+ BEGIN
+ case 'a':
+ case 'A':
+ INCR (ex_buf_ptr);
+ if (preceding_white)
+
+/***************************************************************************
+ * WEB section number: 386
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we come here |ex_buf_ptr| is just past the ``a'' or ``A'', and when
+ * we leave it's either at the same place or, if we found an ``and'', at
+ * the following |white_space| character.
+ ***************************************************************************/
+ BEGIN
+ if (ex_buf_ptr <= (ex_buf_length - 3))
+ BEGIN
+ if ((ex_buf[ex_buf_ptr] == 'n') || (ex_buf[ex_buf_ptr] == 'N'))
+ BEGIN
+ if ((ex_buf[ex_buf_ptr + 1] == 'd')
+ || (ex_buf[ex_buf_ptr + 1] == 'D'))
+ BEGIN
+ if (lex_class[ex_buf[ex_buf_ptr + 2]] == WHITE_SPACE)
+ BEGIN
+ ex_buf_ptr = ex_buf_ptr + 2;
+ and_found = TRUE;
+ END
+ END
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 386 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ preceding_white = FALSE;
+ break;
+#ifdef UTF_8
+ case 0x3001: /* "ã€" Ideographic Comma */
+ case 0xFF0C: /* "," Fullwidth Comma */
+ ex_buf_ptr = ex_buf_ptr + 3;
+ preceding_white = FALSE;
+ and_found = TRUE;
+ break;
+ case 0x3000: /* " " Ideographic Space */
+ ex_buf[ex_buf_ptr ] = SPACE;
+ ex_buf[ex_buf_ptr+1] = SPACE;
+ ex_buf[ex_buf_ptr+2] = SPACE;
+ ex_buf_ptr = ex_buf_ptr + 3;
+ preceding_white = TRUE;
+ break;
+#endif
+ case LEFT_BRACE:
+ INCR (brace_level);
+ INCR (ex_buf_ptr);
+
+/***************************************************************************
+ * WEB section number: 385
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we come here |ex_buf_ptr| is just past the |left_brace|, and when
+ * we leave it's either at |ex_buf_length| or just past the matching
+ * |right_brace|.
+ ***************************************************************************/
+ BEGIN
+ while ((brace_level > 0) && (ex_buf_ptr < ex_buf_length))
+ BEGIN
+ if (ex_buf[ex_buf_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (brace_level);
+ END
+ else if (ex_buf[ex_buf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ END
+ INCR (ex_buf_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 385 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ preceding_white = FALSE;
+ break;
+ case RIGHT_BRACE:
+ decr_brace_level (pop_lit_var);
+ INCR (ex_buf_ptr);
+ preceding_white = FALSE;
+ break;
+ default:
+ if (lex_class[ex_buf[ex_buf_ptr]] == WHITE_SPACE)
+ BEGIN
+ INCR (ex_buf_ptr);
+ preceding_white = TRUE;
+ END
+ else
+ BEGIN
+#ifdef UTF_8
+ if (utf8len(ex_buf[ex_buf_ptr])>0)
+ ex_buf_ptr = ex_buf_ptr + utf8len(ex_buf[ex_buf_ptr]);
+ else
+#endif
+ INCR (ex_buf_ptr);
+ preceding_white = FALSE;
+ END
+ break;
+ END
+ END
+ check_brace_level (pop_lit_var);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 384 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 281
+ * ~~~~~~~~~~~~~~~~~~~
+ * When an entry being cross referenced doesn't exist on |cite_list|, we
+ * complain.
+ ***************************************************************************/
+void non_existent_cross_reference_er (void)
+BEGIN
+ PRINT ("A bad cross reference-");
+ bad_cross_reference_print (field_info[field_ptr]);
+ PRINT_LN ("\", which doesn't exist");
+ mark_error ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 281 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 51
+ * ~~~~~~~~~~~~~~~~~~~
+ * And here are the associated procedures. Note: The |TERM_OUT| file is
+ * system dependent.
+ ***************************************************************************/
+void out_pool_str (AlphaFile_T f, StrNumber_T s)
+BEGIN
+ PoolPointer_T i;
+
+ if ((s < 0) || (s >= (str_ptr + MAX_POP)) || (s >= Max_Strings))
+ BEGIN
+ CONFUSION2 ("Illegal string number:%ld", (long) s);
+ END
+
+ if (f != NULL)
+ BEGIN
+ for (i=str_start[s]; i<=(str_start[s+1] - 1); i++)
+ BEGIN
+ FPUTC (xchr[str_pool[i]], f);
+ END
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 321
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure actually writes onto the .bbl file a line of output
+ * (the characters from |out_buf[0]| to |out_buf[out_buf_length-1]|,
+ * after removing trailing |white_space| characters). It also updates
+ * |bbl_line_num|, the line counter. It writes a blank line if and only
+ * if |out_buf| is empty. The program uses this procedure in such a way
+ * that |out_buf| will be nonempty if there have been characters put in
+ * it since the most recent newline$.
+ ***************************************************************************/
+void output_bbl_line (void)
+BEGIN
+ if (out_buf_length != 0)
+ BEGIN
+ while (out_buf_length > 0)
+ BEGIN
+ if (lex_class[out_buf[out_buf_length - 1]] == WHITE_SPACE)
+ BEGIN
+ DECR (out_buf_length);
+ END
+ else
+ BEGIN
+ goto Loop_Exit_Label;
+ END
+ END
+Loop_Exit_Label: if (out_buf_length == 0)
+ BEGIN
+ goto Exit_Label;
+ END
+ out_buf_ptr = 0;
+ while (out_buf_ptr < out_buf_length)
+ BEGIN
+ FPUTC (xchr[out_buf[out_buf_ptr]], bbl_file);
+ INCR (out_buf_ptr);
+ END
+ END
+ FPUTC ('\n', bbl_file);
+ INCR (bbl_line_num);
+ out_buf_length = 0;
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 321 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 82
+ * ~~~~~~~~~~~~~~~~~~~
+ * And here are the associated procedures. Note: The |term_out| file is
+ * system dependent.
+ ***************************************************************************/
+void out_token (AlphaFile_T f)
+BEGIN
+ BufPointer_T i;
+
+ if (f != NULL)
+ BEGIN
+ i = buf_ptr1;
+ while (i < buf_ptr2)
+ BEGIN
+ FPUTC (xchr[buffer[i]], f);
+ INCR (i);
+ END
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 82 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 53
+ * ~~~~~~~~~~~~~~~~~~~
+ * To test if there is room to append |l| more characters to |str_pool|,
+ * we shall write |str_room(l)|, which aborts \BibTeX\ and gives an
+ * error message if there isn't enough room.
+ ***************************************************************************/
+void pool_overflow (void)
+BEGIN
+ BIB_XRETALLOC ("str_pool", str_pool, ASCIICode_T,
+ Pool_Size, Pool_Size + POOL_SIZE);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 309
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure pops the stack, checking for, and trying to recover
+ * from, stack underflow. (Actually, this procedure is really a
+ * function, since it returns the two values through its |var|
+ * parameters.) Also, if the literal being popped is a |stk_str| that's
+ * been created during the execution of the current .bst command, pop
+ * it from |str_pool| as well (it will be the string corresponding to
+ * |str_ptr-1|). Note that when this happens, the string is no longer
+ * `officially' available so that it must be used before anything else is
+ * added to |str_pool|.
+ ***************************************************************************/
+void pop_lit_stk (Integer_T *poplit, StkType_T *poptype)
+BEGIN
+ if (lit_stk_ptr == 0)
+ BEGIN
+ BST_EX_WARN ("You can't pop an empty literal stack");
+ *poptype = STK_EMPTY;
+ END
+ else
+ BEGIN
+ DECR (lit_stk_ptr);
+ *poplit = lit_stack[lit_stk_ptr];
+ *poptype = lit_stk_type[lit_stk_ptr];
+ if (*poptype == STK_STR)
+ BEGIN
+ if (*poplit >= cmd_str_ptr)
+ BEGIN
+ if (*poplit != (str_ptr - 1))
+ BEGIN
+ CONFUSION ("Nontop top of string stack");
+ END
+ FLUSH_STRING;
+ END
+ END
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 309 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 142
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we close the current-level .aux file and go back up a level,
+ * if possible, by DECRing |aux_ptr|.
+ ***************************************************************************/
+void pop_the_aux_stack (void)
+BEGIN
+ a_close (CUR_AUX_FILE);
+ if (aux_ptr == 0)
+ BEGIN
+ debug_msg (DBG_MISC, "calling longjmp (Aux_Done_Flag) ... ");
+ longjmp (Aux_Done_Flag, 1);
+ return;
+ END
+ else
+ BEGIN
+ DECR (aux_ptr);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 142 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 314
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure pops and prints the top of the stack; when the stack is
+ * empty the procedure |pop_lit_stk| complains.
+ ***************************************************************************/
+void pop_top_and_print (void)
+BEGIN
+ Integer_T stk_lt;
+ StkType_T stk_tp;
+
+ pop_lit_stk (&stk_lt, &stk_tp);
+ if (stk_tp == STK_EMPTY)
+ BEGIN
+ PRINT_LN ("Empty literal");
+ END
+ else
+ BEGIN
+ print_lit (stk_lt, stk_tp);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 314 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 315
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure pops and prints the whole stack.
+ ***************************************************************************/
+void pop_whole_stack (void)
+BEGIN
+ while (lit_stk_ptr > 0)
+ BEGIN
+ pop_top_and_print ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 315 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
diff --git a/biblio/bibtex/bibtex-x/bibtex-3.c b/biblio/bibtex/bibtex-x/bibtex-3.c
new file mode 100644
index 0000000000..aa178d1ca9
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtex-3.c
@@ -0,0 +1,3482 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: bibtex-3.c
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This is the third of 4 source modules for BibTeX. The source has
+** been split into 4 parts so that some of the more primitive editors
+** can cope. This code mimics the BibTeX WEB source as closely as
+** possible and there should be NO system dependent code in any of the
+** bibtex-#.c modules.
+**
+** The functions defined in this module are:
+**
+** pre_def_certain_strings
+** pre_define
+** print_lit
+** print_missing_entry
+** print_overflow
+** print_recursion_illegal
+** print_skipping_whatever_remains
+** print_stk_lit
+** print_wrong_stk_lit
+** push_lit_stk
+** quick_sort
+** sam_too_long_file_name_print
+** sam_wrong_file_name_print
+** scan1
+** scan1_white
+** scan2
+** scan2_white
+** scan3
+** scan_a_field_token_and_eat_whit
+** scan_alpha
+** scan_and_store_the_field_value
+** scan_balanced_braces
+** str_eq_buf
+** str_eq_str
+** str_lookup
+** swap
+** trace_and_stat_printing
+** trace_pr_fn_class
+** unknwn_function_class_confusion
+** unknwn_literal_confusion
+** upper_case
+** von_name_ends_and_last_name_sta
+** von_token_found
+** x_add_period
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: bibtex-3.c,v $
+** Revision 3.71 1996/08/18 20:37:06 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.6 1995/10/21 22:19:33 kempson
+** Removed previous WEB-imposed limit on the maximum value of Hash_Prime.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:40 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "sysdep.h"
+#include "bibtex.h"
+#include "datatype.h"
+#include "gblprocs.h"
+#include "gblvars.h"
+#include "utils.h"
+#include "version.h"
+
+
+/***************************************************************************
+ * WEB section number: 336
+ * ~~~~~~~~~~~~~~~~~~~
+ * This is a procedure so that |initialize| is smaller.
+ ***************************************************************************/
+void pre_def_certain_strings (void)
+BEGIN
+
+/***************************************************************************
+ * WEB section number: 75
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's time to insert some of the pre-defined strings into |str_pool|
+ * (and thus the hash table). These system-dependent strings should
+ * contain no upper-case letters, and they must all be exactly
+ * |longest_pds| characters long (even if fewer characters are actually
+ * stored). The |pre_define| routine appears shortly.
+ *
+ * Important notes: These pre-definitions must not have any glitches or
+ * the program may bomb because the |log_file| hasn't been opened yet,
+ * and |text_ilk|s should be pre-defined later, for
+ * .bst-function-execution purposes.
+ ***************************************************************************/
+ pre_define (".aux ", 4, FILE_EXT_ILK);
+ s_aux_extension = hash_text[pre_def_loc];
+ pre_define (".bbl ", 4, FILE_EXT_ILK);
+ s_bbl_extension = hash_text[pre_def_loc];
+ pre_define (".blg ", 4, FILE_EXT_ILK);
+ s_log_extension = hash_text[pre_def_loc];
+ pre_define (".bst ", 4, FILE_EXT_ILK);
+ s_bst_extension = hash_text[pre_def_loc];
+ pre_define (".bib ", 4, FILE_EXT_ILK);
+ s_bib_extension = hash_text[pre_def_loc];
+
+/***************************************************************************
+ * WEB section number: 79
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we pre-define the command strings; they must all be exactly
+ * |longest_pds| characters long.
+ *
+ * Important note: These pre-definitions must not have any glitches or
+ * the program may bomb because the |log_file| hasn't been opened yet.
+ ***************************************************************************/
+ pre_define ("\\citation ", 9, AUX_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_AUX_CITATION;
+ pre_define ("\\bibdata ", 8, AUX_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_AUX_BIBDATA;
+ pre_define ("\\bibstyle ", 9, AUX_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_AUX_BIBSTYLE;
+ pre_define ("\\@input ", 7, AUX_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_AUX_INPUT;
+ pre_define ("entry ", 5, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_ENTRY;
+ pre_define ("execute ", 7, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_EXECUTE;
+ pre_define ("function ", 8, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_FUNCTION;
+ pre_define ("integers ", 8, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_INTEGERS;
+ pre_define ("iterate ", 7, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_ITERATE;
+ pre_define ("macro ", 5, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_MACRO;
+ pre_define ("read ", 4, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_READ;
+ pre_define ("reverse ", 7, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_REVERSE;
+ pre_define ("sort ", 4, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_SORT;
+ pre_define ("strings ", 7, BST_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BST_STRINGS;
+ pre_define ("comment ", 7, BIB_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BIB_COMMENT;
+ pre_define ("preamble ", 8, BIB_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BIB_PREAMBLE;
+ pre_define ("string ", 6, BIB_COMMAND_ILK);
+ ilk_info[pre_def_loc] = N_BIB_STRING;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 79 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 334
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's time for us to insert more pre-defined strings into |str_pool|
+ * (and thus the hash table) and to insert the |built_in| functions into
+ * the hash table. The strings corresponding to these functions should
+ * contain no upper-case letters, and they must all be exactly
+ * |longest_pds| characters long. The |build_in| routine (to appear
+ * shortly) does the work.
+ *
+ * Important note: These pre-definitions must not have any glitches or the
+ * program may bomb because the |log_file| hasn't been opened yet.
+ ***************************************************************************/
+ build_in ("= ", 1, &b_equals, N_EQUALS);
+ build_in ("> ", 1, &b_greater_than, N_GREATER_THAN);
+ build_in ("< ", 1, &b_less_than, N_LESS_THAN);
+ build_in ("+ ", 1, &b_plus, N_PLUS);
+ build_in ("- ", 1, &b_minus, N_MINUS);
+ build_in ("& ", 1, &b_bit_and, N_BIT_AND);
+ build_in ("| ", 1, &b_bit_or, N_BIT_OR);
+ build_in ("* ", 1, &b_concatenate, N_CONCATENATE);
+ build_in (":= ", 2, &b_gets, N_GETS);
+ build_in ("add.period$ ", 11, &b_add_period, N_ADD_PERIOD);
+ build_in ("call.type$ ", 10, &b_call_type, N_CALL_TYPE);
+ build_in ("change.case$", 12, &b_change_case, N_CHANGE_CASE);
+ build_in ("chr.to.int$ ", 11, &b_chr_to_int, N_CHR_TO_INT);
+ build_in ("cite$ ", 5, &b_cite, N_CITE);
+ build_in ("duplicate$ ", 10, &b_duplicate, N_DUPLICATE);
+ build_in ("empty$ ", 6, &b_empty, N_EMPTY);
+ build_in ("format.name$", 12, &b_format_name, N_FORMAT_NAME);
+ build_in ("if$ ", 3, &b_if, N_IF);
+ build_in ("int.to.chr$ ", 11, &b_int_to_chr, N_INT_TO_CHR);
+ build_in ("int.to.str$ ", 11, &b_int_to_str, N_INT_TO_STR);
+ build_in ("missing$ ", 8, &b_missing, N_MISSING);
+ build_in ("newline$ ", 8, &b_newline, N_NEWLINE);
+ build_in ("num.names$ ", 10, &b_num_names, N_NUM_NAMES);
+ build_in ("pop$ ", 4, &b_pop, N_POP);
+ build_in ("preamble$ ", 9, &b_preamble, N_PREAMBLE);
+ build_in ("purify$ ", 7, &b_purify, N_PURIFY);
+ build_in ("quote$ ", 6, &b_quote, N_QUOTE);
+ build_in ("skip$ ", 5, &b_skip, N_SKIP);
+ build_in ("stack$ ", 6, &b_stack, N_STACK);
+ build_in ("substring$ ", 10, &b_substring, N_SUBSTRING);
+ build_in ("swap$ ", 5, &b_swap, N_SWAP);
+ build_in ("text.length$", 12, &b_text_length, N_TEXT_LENGTH);
+ build_in ("text.prefix$", 12, &b_text_prefix, N_TEXT_PREFIX);
+ build_in ("top$ ", 4, &b_top_stack, N_TOP_STACK);
+ build_in ("type$ ", 5, &b_type, N_TYPE);
+ build_in ("warning$ ", 8, &b_warning, N_WARNING);
+ build_in ("width$ ", 6, &b_width, N_WIDTH);
+ build_in ("while$ ", 6, &b_while, N_WHILE);
+ build_in ("write$ ", 6, &b_write, N_WRITE);
+#ifdef UTF_8
+ build_in ("is.cjk.str$ ", 11, &b_cjk_string, N_IS_CJK_STRING);
+ build_in ("is.kanji.str$", 13, &b_cjk_string, N_IS_CJK_STRING);
+#endif
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 334 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 339
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we pre-define a few strings used in executing the .bst file:
+ * the null string, which is sometimes pushed onto the stack; a string
+ * used for default entry types; and some control sequences used to spot
+ * foreign characters. We also initialize the |s_preamble| array to
+ * empty. These pre-defined strings must all be exactly |longest_pds|
+ * characters long.
+ *
+ * Important note: These pre-definitions must not have any glitches or
+ * the program may bomb because the |log_file| hasn't been opened yet,
+ * and |text_ilk|s should be pre-defined here, not earlier, for
+ * .bst-function-execution purposes.
+ ***************************************************************************/
+ pre_define (" ", 0, TEXT_ILK);
+ s_null = hash_text[pre_def_loc];
+ fn_type[pre_def_loc] = STR_LITERAL;
+ pre_define ("default.type", 12, TEXT_ILK);
+ s_default = hash_text[pre_def_loc];
+ fn_type[pre_def_loc] = STR_LITERAL;
+ b_default = b_skip;
+ preamble_ptr = 0;
+ pre_define ("i ", 1, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_I;
+ pre_define ("j ", 1, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_J;
+ pre_define ("oe ", 2, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_OE;
+ pre_define ("OE ", 2, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_OE_UPPER;
+ pre_define ("ae ", 2, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_AE;
+ pre_define ("AE ", 2, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_AE_UPPER;
+ pre_define ("aa ", 2, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_AA;
+ pre_define ("AA ", 2, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_AA_UPPER;
+ pre_define ("o ", 1, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_O;
+ pre_define ("O ", 1, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_O_UPPER;
+ pre_define ("l ", 1, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_L;
+ pre_define ("L ", 1, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_L_UPPER;
+ pre_define ("ss ", 2, CONTROL_SEQ_ILK);
+ ilk_info[pre_def_loc] = N_SS;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 339 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 340
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we pre-define any built-in |field|s, |str_entry_var|s, and
+ * |int_global_var|s; these strings must all be exactly |longest_pds|
+ * characters long. Note that although these are built-in functions, we
+ * classify them (in the |fn_type| array) otherwise.
+ *
+ * Important note: These pre-definitions must not have any glitches or
+ * the program may bomb because the |log_file| hasn't been opened yet.
+ ***************************************************************************/
+ pre_define ("crossref ", 8, BST_FN_ILK);
+ fn_type[pre_def_loc] = FIELD;
+ FN_INFO[pre_def_loc] = num_fields;
+ crossref_num = num_fields;
+ INCR (num_fields);
+ num_pre_defined_fields = num_fields;
+ pre_define ("sort.key$ ", 9, BST_FN_ILK);
+ fn_type[pre_def_loc] = STR_ENTRY_VAR;
+ FN_INFO[pre_def_loc] = num_ent_strs;
+ sort_key_num = num_ent_strs;
+ INCR (num_ent_strs);
+ pre_define ("entry.max$ ", 10, BST_FN_ILK);
+ fn_type[pre_def_loc] = INT_GLOBAL_VAR;
+ FN_INFO[pre_def_loc] = Ent_Str_Size;
+ pre_define ("global.max$ ", 11, BST_FN_ILK);
+ fn_type[pre_def_loc] = INT_GLOBAL_VAR;
+ FN_INFO[pre_def_loc] = Glob_Str_Size;
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 340 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 336 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 77
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure initializes a pre-defined string of length at most
+ * |longest_pds|.
+ ***************************************************************************/
+void pre_define (PdsType_T pds, PdsLen_T len, StrIlk_T ilk)
+BEGIN
+ PdsLen_T i;
+
+ for (i=1; i<=len; i++)
+ BEGIN
+
+ /*----------------------------------------------------------------------
+ * Unlike the WEB, the string in `pds' will occupy the positions
+ * pds[0] ... pds[len-1], rather than pds[1] ... pds[len].
+ *----------------------------------------------------------------------*/
+ buffer[i] = xord[(UChar_T)pds[i-1]];
+ END
+ pre_def_loc = str_lookup (buffer, 1, len, ilk, DO_INSERT);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 77 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 3
+ * ~~~~~~~~~~~~~~~~~~~
+ ***************************************************************************/
+void print_a_newline (void)
+BEGIN
+ if (log_file != NULL)
+ FPUTC ('\n', log_file);
+ FPUTC ('\n', TERM_OUT);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 51
+ * ~~~~~~~~~~~~~~~~~~~
+ * And here are the associated procedures. Note the |term_out| file is
+ * system dependent.
+ ***************************************************************************/
+void print_a_pool_str (StrNumber_T s)
+BEGIN
+ out_pool_str (TERM_OUT, s);
+ out_pool_str (log_file, s);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 82
+ * ~~~~~~~~~~~~~~~~~~~
+ * And here are the associated procedures. Note the |term_out| file is
+ * system dependent.
+ ***************************************************************************/
+void print_a_token (void)
+BEGIN
+ out_token (TERM_OUT);
+ out_token (log_file);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 82 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 108
+ * ~~~~~~~~~~~~~~~~~~~
+ * Print the name of the current .aux file, followed by a |newline|.
+ ***************************************************************************/
+void print_aux_name (void)
+BEGIN
+ PRINT_POOL_STR (CUR_AUX_STR);
+ PRINT_NEWLINE;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 108 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 95
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |print_bad_input_line| procedure prints the current input line,
+ * splitting it at the character being scanned: It prints |buffer[0]|,
+ * |buffer[1]|, \dots, |buffer[buf_ptr2-1]| on one line and
+ * |SCAN_CHAR|, \dots, |buffer[last-1]| on the next (and both
+ * lines start with a colon between two |space|s). Each |white_space|
+ * character is printed as a |space|.
+ ***************************************************************************/
+void print_bad_input_line (void)
+BEGIN
+ BufPointer_T bf_ptr;
+
+ PRINT (" : ");
+ bf_ptr = 0;
+ while (bf_ptr < buf_ptr2)
+ BEGIN
+ if (lex_class[buffer[bf_ptr]] == WHITE_SPACE)
+ BEGIN
+ PRINT2 ("%c", xchr[SPACE]);
+ END
+ else
+ BEGIN
+ PRINT2 ("%c", xchr[buffer[bf_ptr]]);
+ END
+ INCR (bf_ptr);
+ END
+ PRINT_NEWLINE;
+ PRINT (" : ");
+ bf_ptr = 0;
+ while (bf_ptr < buf_ptr2)
+ BEGIN
+ PRINT2 ("%c", xchr[SPACE]);
+ INCR (bf_ptr);
+ END
+ bf_ptr = buf_ptr2;
+ while (bf_ptr < last)
+ BEGIN
+ if (lex_class[buffer[bf_ptr]] == WHITE_SPACE)
+ BEGIN
+ PRINT2 ("%c", xchr[SPACE]);
+ END
+ else
+ BEGIN
+ PRINT2 ("%c", xchr[buffer[bf_ptr]]);
+ END
+ INCR (bf_ptr);
+ END
+ PRINT_NEWLINE;
+ bf_ptr = 0;
+ while ((bf_ptr < buf_ptr2) && (lex_class[buffer[bf_ptr]] == WHITE_SPACE))
+ BEGIN
+ INCR (bf_ptr);
+ END
+ if (bf_ptr == buf_ptr2)
+ BEGIN
+ PRINT_LN ("(Error may have been on previous line)");
+ END
+ mark_error ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 95 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 121
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's a procedure we'll need shortly. It prints the name of the
+ * current .bib file, followed by a |newline|.
+ ***************************************************************************/
+void print_bib_name (void)
+BEGIN
+ PRINT_POOL_STR (CUR_BIB_STR);
+ PRINT_POOL_STR (s_bib_extension);
+ PRINT_NEWLINE;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 121 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 128
+ * ~~~~~~~~~~~~~~~~~~~
+ * Print the name of the .bst file, followed by a |newline|.
+ ***************************************************************************/
+void print_bst_name (void)
+BEGIN
+ PRINT_POOL_STR (bst_str);
+ PRINT_POOL_STR (s_bst_extension);
+ PRINT_NEWLINE;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 128 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 45
+ * ~~~~~~~~~~~~~~~~~~~
+ * When something happens that the program thinks is impossible,
+ * call the maintainer.
+ ***************************************************************************/
+void print_confusion (void)
+BEGIN
+ PRINT_LN ("---this can't happen");
+ PRINT_LN ("*Please notify the BibTeX maintainer*");
+ mark_fatal ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 158
+ * ~~~~~~~~~~~~~~~~~~~
+ * Occasionally we'll want to |print| the name of one of these function
+ * classes.
+ ***************************************************************************/
+void print_fn_class (HashLoc_T fn_loc)
+BEGIN
+ switch (fn_type[fn_loc])
+ BEGIN
+ case BUILT_IN:
+ PRINT ("built-in");
+ break;
+ case WIZ_DEFINED:
+ PRINT ("wizard-defined");
+ break;
+ case INT_LITERAL:
+ PRINT ("integer-literal");
+ break;
+ case STR_LITERAL:
+ PRINT ("string-literal");
+ break;
+ case FIELD:
+ PRINT ("field");
+ break;
+ case INT_ENTRY_VAR:
+ PRINT ("integer-entry-variable");
+ break;
+ case STR_ENTRY_VAR:
+ PRINT ("string-entry-variable");
+ break;
+ case INT_GLOBAL_VAR:
+ PRINT ("integer-global-variable");
+ break;
+ case STR_GLOBAL_VAR:
+ PRINT ("string-global-variable");
+ break;
+ default:
+ unknwn_function_class_confusion ();
+ break;
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 158 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 313
+ * ~~~~~~~~~~~~~~~~~~~
+ * This is similar to |print_stk_lit|, but here we don't give the
+ * literal's type, and here we end with a new line. This procedure
+ * should never be called after popping an empty stack.
+ ***************************************************************************/
+void print_lit (Integer_T stk_lt, StkType_T stk_tp)
+BEGIN
+ switch (stk_tp)
+ BEGIN
+ case STK_INT:
+ PRINT_LN2 ("%ld", (long) stk_lt);
+ break;
+ case STK_STR:
+ PRINT_POOL_STR (stk_lt);
+ PRINT_NEWLINE;
+ break;
+ case STK_FN:
+ PRINT_POOL_STR (hash_text[stk_lt]);
+ PRINT_NEWLINE;
+ break;
+ case STK_FIELD_MISSING:
+ PRINT_POOL_STR (stk_lt);
+ PRINT_NEWLINE;
+ break;
+ case STK_EMPTY:
+ illegl_literal_confusion ();
+ break;
+ default:
+ unknwn_literal_confusion ();
+ break;
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 313 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/**************************************************************************
+ * WEB section number: 284
+ * ~~~~~~~~~~~~~~~~~~~
+ * When a cite key on the original |cite_list| (or added to |cite_list|
+ * because of cross~referencing) didn't appear in the database, complain.
+ ***************************************************************************/
+void print_missing_entry (StrNumber_T s)
+BEGIN
+ PRINT ("Warning--I didn't find a database entry for \"");
+ PRINT_POOL_STR (s);
+ PRINT_LN ("\"");
+ mark_warning ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 284 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 44
+ * ~~~~~~~~~~~~~~~~~~~
+ * When something in the program wants to be bigger or something out
+ * there wants to be smaller, it's time to call it a run. Here's the
+ * first of several macros that have associated procedures so that they
+ * produce less inline code.
+ ***************************************************************************/
+void print_overflow (void)
+BEGIN
+ PRINT ("Sorry---you've exceeded BibTeX's ");
+ mark_fatal ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 184
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro is similar to the last one but is specifically for
+ * recursion in a |wiz_defined| function, which is illegal; it helps save
+ * space.
+ ***************************************************************************/
+void print_recursion_illegal (void)
+BEGIN
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_NEWLINE;
+#endif /* TRACE */
+
+ PRINT_LN ("Curse you, wizard, before you recurse me:");
+ PRINT ("function ");
+ PRINT_TOKEN;
+ PRINT_LN (" is illegal in its own definition");
+
+ /*------------------------------------------------------------------------
+ * print_recursion_illegal();
+ *----------------------------------------------------------------------*/
+ skip_token_print ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 184 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 96
+ * ~~~~~~~~~~~~~~~~~~~
+ * This little procedure exists because it's used by at least two other
+ * procedures and thus saves some space.
+ ***************************************************************************/
+void print_skipping_whatever_remains (void)
+BEGIN
+ PRINT ("I'm skipping whatever remains of this ");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 96 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 311
+ * ~~~~~~~~~~~~~~~~~~~
+ * Occasionally we'll want to know what's on the literal stack. Here we
+ * print out a stack literal, giving its type. This procedure should
+ * never be called after popping an empty stack.
+ ***************************************************************************/
+void print_stk_lit (Integer_T stk_lt, StkType_T stk_tp)
+BEGIN
+ switch (stk_tp)
+ BEGIN
+ case STK_INT:
+ PRINT2 ("%ld is an integer literal", (long) stk_lt);
+ break;
+ case STK_STR:
+ PRINT ("\"");
+ PRINT_POOL_STR (stk_lt);
+ PRINT ("\" is a string literal");
+ break;
+ case STK_FN:
+ PRINT ("`");
+ PRINT_POOL_STR (hash_text[stk_lt]);
+ PRINT ("' is a function literal");
+ break;
+ case STK_FIELD_MISSING:
+ PRINT ("`");
+ PRINT_POOL_STR (stk_lt);
+ PRINT ("' is a missing field");
+ break;
+ case STK_EMPTY:
+ illegl_literal_confusion ();
+ break;
+ default:
+ unknwn_literal_confusion ();
+ break;
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 311 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 312
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure appropriately chastises the style designer; however, if
+ * the wrong literal came from popping an empty stack, the procedure
+ * |pop_lit_stack| will have already done the chastising (because this
+ * procedure is called only after popping the stack) so there's no need
+ * for more.
+ ***************************************************************************/
+void print_wrong_stk_lit (Integer_T stk_lt, StkType_T stk_tp1,
+ StkType_T stk_tp2)
+BEGIN
+ if (stk_tp1 != STK_EMPTY)
+ BEGIN
+ print_stk_lit (stk_lt, stk_tp1);
+ switch (stk_tp2)
+ BEGIN
+ case STK_INT:
+ PRINT (", not an integer,");
+ break;
+ case STK_STR:
+ PRINT (", not a string,");
+ break;
+ case STK_FN:
+ PRINT (", not a function,");
+ break;
+ case STK_FIELD_MISSING:
+ case STK_EMPTY:
+ illegl_literal_confusion ();
+ break;
+ default:
+ unknwn_literal_confusion ();
+ break;
+ END
+ bst_ex_warn_print ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 312 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 307
+ * ~~~~~~~~~~~~~~~~~~~
+ * Ok, that's it for sorting; now we'll play with the literal stack.
+ * This procedure pushes a literal onto the stack, checking for stack
+ * overflow.
+ ***************************************************************************/
+void push_lit_stk (Integer_T push_lt, StkType_T push_type)
+BEGIN
+
+#ifdef TRACE
+ LitStkLoc_T dum_ptr;
+#endif /* TRACE */
+
+ lit_stack[lit_stk_ptr] = push_lt;
+ lit_stk_type[lit_stk_ptr] = push_type;
+
+#ifdef TRACE
+ if (Flag_trace) {
+ for (dum_ptr=0; dum_ptr <= lit_stk_ptr; dum_ptr++)
+ BEGIN
+ TRACE_PR (" ");
+ END
+ TRACE_PR ("Pushing ");
+
+ switch (lit_stk_type[lit_stk_ptr])
+ BEGIN
+ case STK_INT:
+ TRACE_PR_LN2 ("%ld", (long) lit_stack[lit_stk_ptr]);
+ break;
+ case STK_STR:
+ TRACE_PR ("\"");
+ TRACE_PR_POOL_STR (lit_stack[lit_stk_ptr]);
+ TRACE_PR_LN ("\"");
+ break;
+ case STK_FN:
+ TRACE_PR ("`");
+ TRACE_PR_POOL_STR (hash_text[lit_stack[lit_stk_ptr]]);
+ TRACE_PR_LN ("'");
+ break;
+ case STK_FIELD_MISSING:
+ TRACE_PR ("missing field `");
+ out_pool_str (log_file, lit_stack[lit_stk_ptr]);
+ TRACE_PR_LN ("'");
+ break;
+ case STK_EMPTY:
+ TRACE_PR_LN ("a bad literal--popped from an empty stack");
+ break;
+ default:
+ unknwn_literal_confusion ();
+ break;
+ END
+ } /* end if (Flag_trace) */
+#endif /* TRACE */
+
+ if (lit_stk_ptr == Lit_Stk_Size)
+ BEGIN
+ BIB_XRETALLOC_NOSET ("lit_stack", lit_stack, Integer_T,
+ Lit_Stk_Size, Lit_Stk_Size + LIT_STK_SIZE);
+ BIB_XRETALLOC ("lit_stk_type", lit_stk_type, StkType_T,
+ Lit_Stk_Size, Lit_Stk_Size + LIT_STK_SIZE);
+ END
+ INCR (lit_stk_ptr);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 307 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 303
+ * ~~~~~~~~~~~~~~~~~~~
+ * These next two procedures (actually, one procedures and one function,
+ * but who's counting) are subroutines for |quick_sort|, which follows.
+ * The |swap| procedure exchanges the two elements its arguments point
+ * to.
+ ***************************************************************************/
+void quick_sort (CiteNumber_T left_end, CiteNumber_T right_end)
+BEGIN
+ CiteNumber_T left,
+ right;
+ CiteNumber_T insert_ptr;
+ CiteNumber_T middle;
+ CiteNumber_T partition;
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN3 ("Sorting %ld through %ld", (long) left_end,
+ (long) right_end);
+#endif /* TRACE */
+
+ if ((right_end - left_end) < SHORT_LIST)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 304
+ * ~~~~~~~~~~~~~~~~~~~
+ * This code sorts the entries between |left_end| and |right_end| when
+ * the difference is less than |short_list|. Each iteration of the outer
+ * loop inserts the element indicated by |insert_ptr| into its proper
+ * place among the (sorted) elements from |left_end| through
+ * |insert_ptr-1|.
+ ***************************************************************************/
+ for (insert_ptr=(left_end+1); insert_ptr<=right_end; insert_ptr++)
+ BEGIN
+ for (right=insert_ptr; right >= (left_end+1); right--)
+ BEGIN
+ if (less_than (SORTED_CITES[right-1], SORTED_CITES[right]))
+ BEGIN
+ goto Next_Insert_Label;
+ END
+ swap (right - 1, right);
+ END
+Next_Insert_Label: DO_NOTHING;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 304 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 305
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we find the median of the three sort.key$s to which the three
+ * elements |sorted_cites[left_end+end_offset]|,
+ * |sorted_cites[right_end]-end_offset|, and
+ * |sorted_cites[(left_end+right_end) div 2]| point (a nonzero
+ * |end_offset| avoids using as the leftmost of the three elements the
+ * one that was swapped there when the old partition element was swapped
+ * into its final spot; this turns out to avoid $n^2$ behavior when the
+ * list is nearly sorted to start with). This code determines which of
+ * the six possible permutations we're dealing with and moves the median
+ * element to |left_end|. The comments next to the |swap| actions give
+ * the known orderings of the corresponding elements of |sorted_cites|
+ * before the action.
+ ***************************************************************************/
+ left = left_end + END_OFFSET;
+ middle = (left_end + right_end) / 2;
+ right = right_end - END_OFFSET;
+ if (less_than (SORTED_CITES[left], SORTED_CITES[middle]))
+ BEGIN
+ if (less_than (SORTED_CITES[middle], SORTED_CITES[right]))
+ BEGIN
+ swap (left_end, middle);
+ END
+ else if (less_than (SORTED_CITES[left], SORTED_CITES[right]))
+ BEGIN
+ swap (left_end, right);
+ END
+ else
+ BEGIN
+ swap (left_end, left);
+ END
+ END
+ else if (less_than (SORTED_CITES[right], SORTED_CITES[middle]))
+ BEGIN
+ swap (left_end, middle);
+ END
+ else if (less_than (SORTED_CITES[right], SORTED_CITES[left]))
+ BEGIN
+ swap (left_end, right);
+ END
+ else
+ BEGIN
+ swap (left_end, left);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 305 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 306
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module uses the median-of-three computed above to partition the
+ * elements into those less than and those greater than the median.
+ * Equal sort.key$s are sorted by order of occurrence (in
+ * |cite_list|).
+ ***************************************************************************/
+ partition = SORTED_CITES[left_end];
+ left = left_end + 1;
+ right = right_end;
+ do
+ BEGIN
+ while (less_than (SORTED_CITES[left], partition))
+ BEGIN
+ INCR (left);
+ END
+ while (less_than (partition, SORTED_CITES[right]))
+ BEGIN
+ DECR (right);
+ END
+ if (left < right)
+ BEGIN
+ swap (left, right);
+ INCR (left);
+ DECR (right);
+ END
+ END while ( ! (left == (right + 1)));
+ swap (left_end, right);
+ quick_sort (left_end, right - 1);
+ quick_sort (left, right_end);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 306 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 303 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 98
+ * ~~~~~~~~~~~~~~~~~~~
+ * I mean, this is truly disgraceful. A user has to type something in to
+ * the terminal just once during the entire run. And it's not some
+ * complicated string where you have to get every last punctuation mark
+ * just right, and it's not some fancy list where you get nervous because
+ * if you forget one item you have to type the whole thing again; it's
+ * just a simple, ordinary, file name. Now you'd think a five-year-old
+ * could do it; you'd think it's so simple a user should be able to do it
+ * in his sleep. But noooooooooo. He had to sit there droning on and on
+ * about who knows what until he exceeded the bounds of common sense, and
+ * he probably didn't even realize it. Just pitiful. What's this world
+ * coming to? We should probably just delete all his files and be done
+ * with him. Note: The |TERM_OUT| file is system dependent.
+ *
+ * NOTE: because C arrays start at index 0, not 1, the subscripts of array
+ * |name_of_file| are generally 1 less than those in the WEB source.
+ ***************************************************************************/
+void sam_too_long_file_name_print (void)
+BEGIN
+ FPRINTF (TERM_OUT, "File name `");
+ name_ptr = 0;
+ while (name_ptr < aux_name_length)
+ BEGIN
+ FPUTC (name_of_file[name_ptr], TERM_OUT);
+ INCR (name_ptr);
+ END
+ FPRINTF (TERM_OUT, "' is too long\n");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 98 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 99
+ * ~~~~~~~~~~~~~~~~~~~
+ * We've abused the user enough for one section; suffice it to
+ * say here that most of what we said last module still applies.
+ * Note: The |TERM_OUT| file is system dependent.
+ *
+ * NOTE: because C arrays start at index 0, not 1, the subscripts of array
+ * |name_of_file| are generally 1 less than those in the WEB source.
+ ***************************************************************************/
+void sam_wrong_file_name_print (void)
+BEGIN
+ FPRINTF (TERM_OUT, "I couldn't open file name `");
+ name_ptr = 0;
+ while (name_ptr < name_length)
+ BEGIN
+ FPUTC (name_of_file[name_ptr], TERM_OUT);
+ INCR (name_ptr);
+ END
+ FPRINTF (TERM_OUT, "'\n");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 99 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 83
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function scans the |buffer| for the next token, starting at the
+ * global variable |buf_ptr2| and ending just before either the single
+ * specified stop-character or the end of the current line, whichever
+ * comes first, respectively returning |true| or |false|; afterward,
+ * |scan_char| is the first character following this token.
+ ***************************************************************************/
+Boolean_T scan1 (ASCIICode_T char1)
+BEGIN
+ Boolean_T scan1;
+
+ buf_ptr1 = buf_ptr2;
+ while ((SCAN_CHAR != char1) && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ if (buf_ptr2 < last)
+ BEGIN
+ scan1 = TRUE;
+ END
+ else
+ BEGIN
+ scan1 = FALSE;
+ END
+ return (scan1);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 83 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 84
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function is the same but stops at |white_space| characters as well.
+ ***************************************************************************/
+Boolean_T scan1_white (ASCIICode_T char1)
+BEGIN
+ Boolean_T scan1_white;
+
+ buf_ptr1 = buf_ptr2;
+ while ((lex_class[SCAN_CHAR] != WHITE_SPACE)
+ && (SCAN_CHAR != char1) && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ if (buf_ptr2 < last)
+ BEGIN
+ scan1_white = TRUE;
+ END
+ else
+ BEGIN
+ scan1_white = FALSE;
+ END
+ return (scan1_white);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 84 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 85
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function is similar to |scan1|, but stops at either of two
+ * stop-characters as well as the end of the current line.
+ ***************************************************************************/
+Boolean_T scan2 (ASCIICode_T char1, ASCIICode_T char2)
+BEGIN
+ Boolean_T scan2;
+
+ buf_ptr1 = buf_ptr2;
+ while ((SCAN_CHAR != char1) && (SCAN_CHAR != char2)
+ && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ if (buf_ptr2 < last)
+ BEGIN
+ scan2 = TRUE;
+ END
+ else
+ BEGIN
+ scan2 = FALSE;
+ END
+ return (scan2);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 85 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 86
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function is the same but stops at |white_space| characters as well.
+ ***************************************************************************/
+Boolean_T scan2_white (ASCIICode_T char1, ASCIICode_T char2)
+BEGIN
+ Boolean_T scan2_white;
+
+ buf_ptr1 = buf_ptr2;
+ while ((SCAN_CHAR != char1) && (SCAN_CHAR != char2)
+ && (lex_class[SCAN_CHAR] != WHITE_SPACE) && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ if (buf_ptr2 < last)
+ BEGIN
+ scan2_white = TRUE;
+ END
+ else
+ BEGIN
+ scan2_white = FALSE;
+ END
+ return (scan2_white);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 86 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 87
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function is similar to |scan2|, but stops at either of three
+ * stop-characters as well as the end of the current line.
+ ***************************************************************************/
+Boolean_T scan3 (ASCIICode_T char1, ASCIICode_T char2,
+ ASCIICode_T char3)
+BEGIN
+ Boolean_T scan3;
+
+ buf_ptr1 = buf_ptr2;
+ while ((SCAN_CHAR != char1) && (SCAN_CHAR != char2)
+ && (SCAN_CHAR != char3) && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ if (buf_ptr2 < last)
+ BEGIN
+ scan3 = TRUE;
+ END
+ else
+ BEGIN
+ scan3 = FALSE;
+ END
+ return (scan3);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 87 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 250
+ * ~~~~~~~~~~~~~~~~~~~
+ * Each field token is either a nonnegative number, a macro name (like
+ * `jan'), or a brace-balanced string delimited by either |double_quote|s
+ * or braces. Thus there are four possibilities for the first character
+ * of the field token: If it's a |left_brace| or a |double_quote|, the
+ * token (with balanced braces, up to the matching |right_str_delim|) is
+ * a string; if it's |numeric|, the token is a number; if it's anything
+ * else, the token is a macro name (and should thus have been defined by
+ * either the .bst-file's macro command or the .bib-file's
+ * string command). This function returns |false| if there was a
+ * serious syntax error.
+ ***************************************************************************/
+Boolean_T scan_a_field_token_and_eat_whit (void)
+BEGIN
+ Boolean_T scan_a_field_token_And_eat_whit;
+
+ scan_a_field_token_And_eat_whit = FALSE;
+ switch (SCAN_CHAR)
+ BEGIN
+ case LEFT_BRACE:
+ right_str_delim = RIGHT_BRACE;
+ if ( ! scan_balanced_braces ())
+ goto Exit_Label;
+ break;
+ case DOUBLE_QUOTE:
+ right_str_delim = DOUBLE_QUOTE;
+ if ( ! scan_balanced_braces ())
+ goto Exit_Label;
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+
+/***************************************************************************
+ * WEB section number: 258
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module scans a nonnegative number and copies it to |field_vl_str|
+ * if it's to store the field.
+ ***************************************************************************/
+ if ( ! scan_nonneg_integer ())
+ BEGIN
+ CONFUSION ("A digit disappeared");
+ END
+ if (store_field)
+ BEGIN
+ tmp_ptr = buf_ptr1;
+ while (tmp_ptr < buf_ptr2)
+ BEGIN
+ COPY_CHAR (buffer[tmp_ptr]);
+ INCR (tmp_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 258 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+
+/***************************************************************************
+ * WEB section number: 259
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module scans a macro name and copies its string to |field_vl_str|
+ * if it's to store the field, complaining if the macro is recursive or
+ * undefined.
+ ***************************************************************************/
+ scan_identifier (COMMA, right_outer_delim, CONCAT_CHAR);
+ BIB_IDENTIFIER_SCAN_CHECK ("a field part");
+ if (store_field)
+ BEGIN
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ macro_name_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, MACRO_ILK,
+ DONT_INSERT);
+ store_token = TRUE;
+ if (at_bib_command)
+ BEGIN
+ if (command_num == N_BIB_STRING)
+ BEGIN
+ if (macro_name_loc == cur_macro_loc)
+ BEGIN
+ store_token = FALSE;
+ MACRO_NAME_WARNING ("used in its own definition");
+ END
+ END
+ END
+ if ( ! hash_found)
+ BEGIN
+ store_token = FALSE;
+ MACRO_NAME_WARNING ("undefined");
+ END
+ if (store_token)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 260
+ * ~~~~~~~~~~~~~~~~~~~
+ * The macro definition may have |white_space| that needs compressing,
+ * because it may have been defined in the .bst file.
+ ***************************************************************************/
+ tmp_ptr = str_start[ilk_info[macro_name_loc]];
+ tmp_end_ptr = str_start[ilk_info[macro_name_loc] + 1];
+ if (FIELD_END == 0)
+ BEGIN
+ if ((lex_class[str_pool[tmp_ptr]] == WHITE_SPACE)
+ && (tmp_ptr < tmp_end_ptr))
+ BEGIN
+ COPY_CHAR (SPACE);
+ INCR (tmp_ptr);
+ while ((lex_class[str_pool[tmp_ptr]] == WHITE_SPACE)
+ && (tmp_ptr < tmp_end_ptr))
+ BEGIN
+ INCR (tmp_ptr);
+ END
+ END
+ END
+ while (tmp_ptr < tmp_end_ptr)
+ BEGIN
+ if (lex_class[str_pool[tmp_ptr]] != WHITE_SPACE)
+ BEGIN
+ COPY_CHAR (str_pool[tmp_ptr]);
+ END
+ else if (FIELD_VL_STR[FIELD_END - 1] != SPACE)
+ BEGIN
+ COPY_CHAR (SPACE);
+ END
+ INCR (tmp_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 260 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 259 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ END
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ scan_a_field_token_And_eat_whit = TRUE;
+Exit_Label: DO_NOTHING;
+ return (scan_a_field_token_And_eat_whit);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 250 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 88
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function scans for letters, stopping at the first nonletter; it
+ * returns |true| if there is at least one letter.
+ ***************************************************************************/
+Boolean_T scan_alpha (void)
+BEGIN
+ Boolean_T scan_alpha;
+
+ buf_ptr1 = buf_ptr2;
+ while ((lex_class[SCAN_CHAR] == ALPHA) && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ if (TOKEN_LEN == 0)
+ BEGIN
+ scan_alpha = FALSE;
+ END
+ else
+ BEGIN
+ scan_alpha = TRUE;
+ END
+ return (scan_alpha);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 88 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 249
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function scans the list of field tokens that define the field
+ * value string. If |store_field| is |true| it accumulates (indirectly)
+ * in |field_vl_str| the concatenation of all the field tokens,
+ * compressing nonnull |white_space| to a single |space| and, if the
+ * field value is for a field (rather than a string definition), removing
+ * any leading or trailing |white_space|; when it's finished it puts the
+ * string into the hash table. It returns |false| if there was a serious
+ * syntax error.
+ ***************************************************************************/
+Boolean_T scan_and_store_the_field_value (void)
+BEGIN
+ Boolean_T scan_and_store_the_field_value;
+
+ scan_and_store_the_field_value = FALSE;
+ FIELD_END = 0;
+ if ( ! scan_a_field_token_and_eat_whit ())
+ BEGIN
+ goto Exit_Label;
+ END
+ while (SCAN_CHAR == CONCAT_CHAR)
+ BEGIN
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ if ( ! scan_a_field_token_and_eat_whit ())
+ BEGIN
+ goto Exit_Label;
+ END
+ END
+ if (store_field)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 261
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now it's time to store the field value in the hash table, and store an
+ * appropriate pointer to it (depending on whether it's for a database
+ * entry or command). But first, if necessary, we remove a trailing
+ * |space| and a leading |space| if these exist. (Hey, if we had some
+ * ham we could make ham-and-eggs if we had some eggs.)
+ ***************************************************************************/
+ if ( ! at_bib_command)
+ BEGIN
+ if (FIELD_END > 0)
+ BEGIN
+ if (FIELD_VL_STR[FIELD_END - 1] == SPACE)
+ BEGIN
+ DECR (FIELD_END);
+ END
+ END
+ END
+ if (( ! at_bib_command) && (FIELD_VL_STR[0] == SPACE) && (FIELD_END > 0))
+ BEGIN
+ FIELD_START = 1;
+ END
+ else
+ BEGIN
+ FIELD_START = 0;
+ END
+ field_val_loc = str_lookup (FIELD_VL_STR, FIELD_START,
+ FIELD_END - FIELD_START, TEXT_ILK,
+ DO_INSERT);
+ fn_type[field_val_loc] = STR_LITERAL;
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("\"");
+ TRACE_PR_POOL_STR (hash_text[field_val_loc]);
+ TRACE_PR_LN ("\" is a field value");
+ }
+#endif /* TRACE */
+
+ if (at_bib_command)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 262
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's where we store the goods when we're dealing with a command
+ * rather than an entry.
+ ***************************************************************************/
+ switch (command_num)
+ BEGIN
+ case N_BIB_PREAMBLE:
+ s_preamble[preamble_ptr] = hash_text[field_val_loc];
+ INCR (preamble_ptr);
+ break;
+ case N_BIB_STRING:
+ ilk_info[cur_macro_loc] = hash_text[field_val_loc];
+ break;
+ default:
+ bib_cmd_confusion ();
+ break;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 262 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 263
+ * ~~~~~~~~~~~~~~~~~~~
+ * And here, an entry.
+ ***************************************************************************/
+ field_ptr = (entry_cite_ptr * num_fields) + FN_INFO[field_name_loc];
+ if (field_info[field_ptr] != MISSING)
+ BEGIN
+ PRINT ("Warning--I'm ignoring ");
+ PRINT_POOL_STR (cite_list[entry_cite_ptr]);
+ PRINT ("'s extra \"");
+ PRINT_POOL_STR (hash_text[field_name_loc]);
+ BIB_WARN_NEWLINE ("\" field");
+ END
+ else
+ BEGIN
+ field_info[field_ptr] = hash_text[field_val_loc];
+ if ((ilk_info[field_name_loc] == crossref_num)
+ && ( ! all_entries))
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 264
+ * ~~~~~~~~~~~~~~~~~~~
+ * If the cross-referenced entry isn't already on |cite_list| we add it
+ * (at least temporarily); if it is already on |cite_list| we update the
+ * cross-reference count, if necessary. Note that |all_entries| is
+ * |false| here. The alias kludge helps make the stack space not
+ * overflow on some machines.
+ ***************************************************************************/
+ tmp_ptr = FIELD_START;
+ while (tmp_ptr < FIELD_END)
+ BEGIN
+ EXTRA_BUF[tmp_ptr] = FIELD_VL_STR[tmp_ptr];
+ INCR (tmp_ptr);
+ END
+ lower_case (EXTRA_BUF, FIELD_START, FIELD_END - FIELD_START);
+ lc_cite_loc = str_lookup (EXTRA_BUF, FIELD_START,
+ FIELD_END - FIELD_START, LC_CITE_ILK,
+ DO_INSERT);
+ if (hash_found)
+ BEGIN
+ cite_loc = ilk_info[lc_cite_loc];
+ if (ilk_info[cite_loc] >= old_num_cites)
+ BEGIN
+ INCR (cite_info[ilk_info[cite_loc]]);
+ END
+ END
+ else
+ BEGIN
+ cite_loc = str_lookup (FIELD_VL_STR, FIELD_START,
+ FIELD_END - FIELD_START, CITE_ILK,
+ DO_INSERT);
+ if (hash_found)
+ BEGIN
+ hash_cite_confusion ();
+ END
+ add_database_cite (&cite_ptr);
+ cite_info[ilk_info[cite_loc]] = 1;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 264 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 263 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 261 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ scan_and_store_the_field_value = TRUE;
+Exit_Label: DO_NOTHING;
+ return (scan_and_store_the_field_value);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 249 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 253
+ * ~~~~~~~~~~~~~~~~~~~
+ * This .bib-specific function scans a string with balanced braces,
+ * stopping just past the matching |right_str_delim|. How much work it
+ * does depends on whether |store_field = true|. It returns |false| if
+ * there was a serious syntax error.
+ ***************************************************************************/
+Boolean_T scan_balanced_braces (void)
+BEGIN
+ Boolean_T scan_balanced_braces;
+
+ scan_balanced_braces = FALSE;
+ INCR (buf_ptr2);
+ CHECK_FOR_AND_COMPRESS_BIB_WHIT;
+ if (FIELD_END > 1)
+ BEGIN
+ if (FIELD_VL_STR[FIELD_END- 1] == SPACE)
+ BEGIN
+ if (ex_buf[FIELD_END- 2] == SPACE)
+ BEGIN
+ DECR (FIELD_END);
+ END
+ END
+ END
+ bib_brace_level = 0;
+ if (store_field)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 256
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module scans over a brace-balanced string, compressing multiple
+ * |white_space| characters into a single |space|. It starts with
+ * |bib_brace_level = 0| and starts at a non|white_space| character.
+ ***************************************************************************/
+ while (SCAN_CHAR != right_str_delim)
+ BEGIN
+ switch (SCAN_CHAR)
+ BEGIN
+ case LEFT_BRACE:
+ INCR (bib_brace_level);
+ COPY_CHAR (LEFT_BRACE);
+ INCR (buf_ptr2);
+ CHECK_FOR_AND_COMPRESS_BIB_WHIT;
+
+/***************************************************************************
+ * WEB section number: 257
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module is similar to the last but starts with |bib_brace_level > 0|
+ * (and, like the last, it starts at a non|white_space| character).
+ ***************************************************************************/
+ LOOP
+ BEGIN
+ switch (SCAN_CHAR)
+ BEGIN
+ case RIGHT_BRACE:
+ DECR (bib_brace_level);
+ COPY_CHAR (RIGHT_BRACE);
+ INCR (buf_ptr2);
+ CHECK_FOR_AND_COMPRESS_BIB_WHIT;
+ if (bib_brace_level == 0)
+ BEGIN
+ goto Loop_Exit_Label;
+ END
+ break;
+ case LEFT_BRACE:
+ INCR (bib_brace_level);
+ COPY_CHAR (LEFT_BRACE);
+ INCR (buf_ptr2);
+ CHECK_FOR_AND_COMPRESS_BIB_WHIT;
+ break;
+ default:
+ COPY_CHAR (SCAN_CHAR);
+ INCR (buf_ptr2);
+ CHECK_FOR_AND_COMPRESS_BIB_WHIT;
+ break;
+ END
+ END
+ Loop_Exit_Label: DO_NOTHING
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 257 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case RIGHT_BRACE:
+ BIB_UNBALANCED_BRACES_ERR;
+ default:
+ COPY_CHAR (SCAN_CHAR);
+ INCR (buf_ptr2);
+ CHECK_FOR_AND_COMPRESS_BIB_WHIT;
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 256 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 254
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module scans over a brace-balanced string without keeping track
+ * of anything but the brace level. It starts with |bib_brace_level = 0|
+ * and at a non|white_space| character.
+ ***************************************************************************/
+ while (SCAN_CHAR != right_str_delim)
+ BEGIN
+ if (SCAN_CHAR == LEFT_BRACE)
+ BEGIN
+ INCR (bib_brace_level);
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ while (bib_brace_level > 0)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 255
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module does the same as above but, because |bib_brace_level > 0|, it
+ * doesn't have to look for a |right_str_delim|.
+ ***************************************************************************/
+ if (SCAN_CHAR == RIGHT_BRACE)
+ BEGIN
+ DECR (bib_brace_level);
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ END
+ else if (SCAN_CHAR == LEFT_BRACE)
+ BEGIN
+ INCR (bib_brace_level);
+ INCR (buf_ptr2);
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ END
+ else
+ BEGIN
+ INCR (buf_ptr2);
+ if ( ! scan2 (RIGHT_BRACE, LEFT_BRACE))
+ BEGIN
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 255 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ END
+ else if (SCAN_CHAR == RIGHT_BRACE)
+ BEGIN
+ BIB_UNBALANCED_BRACES_ERR;
+ END
+ else
+ BEGIN
+ INCR (buf_ptr2);
+ if ( ! scan3 (right_str_delim, LEFT_BRACE, RIGHT_BRACE))
+ BEGIN
+ EAT_BIB_WHITE_AND_EOF_CHECK;
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 254 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ INCR (buf_ptr2);
+ scan_balanced_braces = TRUE;
+Exit_Label: DO_NOTHING;
+ return (scan_balanced_braces);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 253 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 188
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro inserts a hash-table location (or one of the two
+ * special markers |quote_next_fn| and |end_of_def|) into the
+ * |singl_function| array, which will later be copied into the
+ * |wiz_functions| array.
+ ***************************************************************************/
+#define INSERT_FN_LOC(X) {\
+ singl_function[single_ptr] = (X);\
+ if (single_ptr == Single_Fn_Space)\
+ {BIB_XRETALLOC ("singl_function", singl_function, HashPtr2_T,\
+ Single_Fn_Space, Single_Fn_Space + Single_Fn_Space);}\
+ INCR (single_ptr);}
+
+
+/***************************************************************************
+ * WEB section number: 187
+ * ~~~~~~~~~~~~~~~~~~~
+ * This recursive function reads and stores the list of functions
+ * (separated by |white_space| characters or ends-of-line) that define
+ * this new function, and reads a |right_brace|.
+ ***************************************************************************/
+void scan_fn_def (HashLoc_T fn_hash_loc)
+BEGIN
+ typedef Integer_T FnDefLoc_T;
+ HashPtr2_T *singl_function;
+ FnDefLoc_T single_ptr;
+ FnDefLoc_T copy_ptr;
+ BufPointer_T end_of_num;
+ HashLoc_T impl_fn_loc;
+ Integer_T Single_Fn_Space;
+
+ Single_Fn_Space = SINGLE_FN_SPACE;
+ singl_function = (HashPtr2_T *) mymalloc ((Single_Fn_Space + 1)
+ * (unsigned long) sizeof (HashPtr2_T), "singl_function");
+ EAT_BST_WHITE_AND_EOF_CHECK ("function");
+ single_ptr = 0;
+ while (SCAN_CHAR != RIGHT_BRACE)
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 189
+ * ~~~~~~~~~~~~~~~~~~~
+ * There are five possibilities for the first character of the token
+ * representing the next function of the definition: If it's a
+ * |number_sign|, the token is an |int_literal|; if it's a
+ * |double_quote|, the token is a |str_literal|; if it's a
+ * |single_quote|, the token is a quoted function; if it's a
+ * |left_brace|, the token isn't really a token, but rather the start of
+ * another function definition (which will result in a recursive call to
+ * |scan_fn_def|); if it's anything else, the token is the name of an
+ * already-defined function. Note: To prevent the wizard from using
+ * recursion, we have to check that neither a quoted function nor an
+ * already-defined-function is actually the currently-being-defined
+ * function (which is stored at |wiz_loc|).
+ ***************************************************************************/
+ switch (SCAN_CHAR)
+ BEGIN
+ case NUMBER_SIGN:
+
+/***************************************************************************
+ * WEB section number: 190
+ * ~~~~~~~~~~~~~~~~~~~
+ * An |int_literal| is preceded by a |number_sign|, consists of an
+ * integer (i.e., an optional |minus_sign| followed by one or more
+ * |numeric| characters), and is followed either by a |white_space|
+ * character, an end-of-line, or a |right_brace|. The array |fn_info|
+ * contains the value of the integer for |int_literal|s.
+ ***************************************************************************/
+ BEGIN
+ INCR (buf_ptr2);
+ if ( ! scan_integer ())
+ BEGIN
+ SKIP_TOKEN ("Illegal integer in integer literal");
+ END
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("#");
+ TRACE_PR_TOKEN;
+ TRACE_PR_LN2 (" is an integer literal with value %ld",
+ (long) token_value);
+ }
+#endif /* TRACE */
+
+ literal_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, INTEGER_ILK,
+ DO_INSERT);
+ if ( ! hash_found)
+ BEGIN
+ fn_type[literal_loc] = INT_LITERAL;
+ FN_INFO[literal_loc] = token_value;
+ END
+ if ((lex_class[SCAN_CHAR] != WHITE_SPACE) && (buf_ptr2 < last)
+ && (SCAN_CHAR != RIGHT_BRACE) && (SCAN_CHAR != COMMENT))
+ BEGIN
+ SKIP_TOKEN_ILLEGAL_STUFF_AFTER;
+ END
+ INSERT_FN_LOC (literal_loc);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 190 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case DOUBLE_QUOTE:
+
+/***************************************************************************
+ * WEB section number: 191
+ * ~~~~~~~~~~~~~~~~~~~
+ * A |str_literal| is preceded by a |double_quote| and consists of all
+ * characters on this line up to the next |double_quote|. Also, there
+ * must be either a |white_space| character, an end-of-line, a
+ * |right_brace|, or a |comment| following (since functions in the
+ * definition must be separated by |white_space|). The array |fn_info|
+ * contains nothing for |str_literal|s.
+ ***************************************************************************/
+ BEGIN
+ INCR (buf_ptr2);
+ if ( ! scan1 (DOUBLE_QUOTE))
+ BEGIN
+ SKIP_TOKEN2 ("No `%c' to end string literal", xchr[DOUBLE_QUOTE]);
+ END
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("\"");
+ TRACE_PR_TOKEN;
+ TRACE_PR ("\"");
+ TRACE_PR_LN (" is a string literal");
+ }
+#endif /* TRACE */
+
+ literal_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, TEXT_ILK,
+ DO_INSERT);
+ fn_type[literal_loc] = STR_LITERAL;
+ INCR (buf_ptr2);
+ if ((lex_class[SCAN_CHAR] != WHITE_SPACE) && (buf_ptr2 < last)
+ && (SCAN_CHAR != RIGHT_BRACE) && (SCAN_CHAR != COMMENT))
+ BEGIN
+ SKIP_TOKEN_ILLEGAL_STUFF_AFTER;
+ END
+ INSERT_FN_LOC (literal_loc);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 191 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case SINGLE_QUOTE:
+
+/***************************************************************************
+ * WEB section number: 192
+ * ~~~~~~~~~~~~~~~~~~~
+ * A quoted function is preceded by a |single_quote| and consists of all
+ * characters up to the next |white_space| character, end-of-line,
+ * |right_brace|, or |comment|.
+ ***************************************************************************/
+ BEGIN
+ INCR (buf_ptr2);
+ if (scan2_white (RIGHT_BRACE, COMMENT))
+ BEGIN
+ DO_NOTHING;
+ END
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("'");
+ TRACE_PR_TOKEN;
+ TRACE_PR (" is a quoted function ");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, BST_FN_ILK,
+ DONT_INSERT);
+ if ( ! hash_found)
+ BEGIN
+ SKIP_TOKEN_UNKNOWN_FUNCTION;
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 193
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we check that this quoted function is a legal one---the function
+ * name must already exist, but it mustn't be the currently-being-defined
+ * function (which is stored at |wiz_loc|).
+ ***************************************************************************/
+ BEGIN
+ if (fn_loc == wiz_loc)
+ BEGIN
+ SKIP_RECURSIVE_TOKEN;
+ END
+ else
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("of type ");
+ trace_pr_fn_class (fn_loc);
+ TRACE_PR_NEWLINE;
+ }
+#endif /* TRACE */
+
+ INSERT_FN_LOC (QUOTE_NEXT_FN);
+ INSERT_FN_LOC (fn_loc);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 193 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 192 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case LEFT_BRACE:
+
+/***************************************************************************
+ * WEB section number: 194
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module marks the implicit function as being quoted, generates a
+ * name, and stores it in the hash table. This name is strictly internal
+ * to this program, starts with a |single_quote| (since that will make
+ * this function name unique), and ends with the variable |impl_fn_num|
+ * converted to ASCII. The alias kludge helps make the stack space not
+ * overflow on some machines.
+ ***************************************************************************/
+ BEGIN
+ EX_BUF2[0] = SINGLE_QUOTE;
+ int_to_ASCII (impl_fn_num, EX_BUF2, 1, &end_of_num);
+ impl_fn_loc = str_lookup (EX_BUF2, 0, end_of_num, BST_FN_ILK,
+ DO_INSERT);
+ if (hash_found)
+ BEGIN
+ CONFUSION ("Already encountered implicit function");
+ END
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_POOL_STR (hash_text[impl_fn_loc]);
+ TRACE_PR_LN (" is an implicit function");
+ }
+#endif /* TRACE */
+
+ INCR (impl_fn_num);
+ fn_type[impl_fn_loc] = WIZ_DEFINED;
+ INSERT_FN_LOC (QUOTE_NEXT_FN);
+ INSERT_FN_LOC (impl_fn_loc);
+ INCR (buf_ptr2);
+ scan_fn_def (impl_fn_loc);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 194 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+
+/***************************************************************************
+ * WEB section number: 199
+ * ~~~~~~~~~~~~~~~~~~~
+ * An already-defined function consists of all characters up to the next
+ * |white_space| character, end-of-line, |right_brace|, or |comment|.
+ * This function name must already exist, but it mustn't be the
+ * currently-being-defined function (which is stored at |wiz_loc|).
+ ***************************************************************************/
+ BEGIN
+ if (scan2_white (RIGHT_BRACE, COMMENT))
+ BEGIN
+ DO_NOTHING;
+ END
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR_TOKEN;
+ TRACE_PR (" is a function ");
+ }
+#endif /* TRACE */
+
+ lower_case (buffer, buf_ptr1, TOKEN_LEN);
+ fn_loc = str_lookup (buffer, buf_ptr1, TOKEN_LEN, BST_FN_ILK,
+ DONT_INSERT);
+ if ( ! hash_found)
+ BEGIN
+ SKIP_TOKEN_UNKNOWN_FUNCTION;
+ END
+ else if (fn_loc == wiz_loc)
+ BEGIN
+ SKIP_RECURSIVE_TOKEN;
+ END
+ else
+ BEGIN
+
+#ifdef TRACE
+ if (Flag_trace) {
+ TRACE_PR ("of type ");
+ trace_pr_fn_class (fn_loc);
+ TRACE_PR_NEWLINE;
+ }
+#endif /* TRACE */
+
+ INSERT_FN_LOC (fn_loc);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 199 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 189 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Next_Token_Label:
+ EAT_BST_WHITE_AND_EOF_CHECK ("function");
+ END
+
+/***************************************************************************
+ * WEB section number: 200
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we add the |end_of_def| special marker, make sure this function will
+ * fit into |wiz_functions|, and put it there.
+ ***************************************************************************/
+ BEGIN
+ INSERT_FN_LOC (END_OF_DEF);
+ while ((single_ptr + wiz_def_ptr) > Wiz_Fn_Space)
+ BEGIN
+ BIB_XRETALLOC ("wiz_functions", wiz_functions, HashPtr2_T,
+ Wiz_Fn_Space, Wiz_Fn_Space + WIZ_FN_SPACE);
+ END
+ FN_INFO[fn_hash_loc] = wiz_def_ptr;
+ copy_ptr = 0;
+ while (copy_ptr < single_ptr)
+ BEGIN
+ wiz_functions[wiz_def_ptr] = singl_function[copy_ptr];
+ INCR (copy_ptr);
+ INCR (wiz_def_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 200 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ INCR (buf_ptr2);
+Exit_Label: free (singl_function);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 187 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 90
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure scans for an identifier, stopping at the first
+ * |illegal_id_char|, or stopping at the first character if it's
+ * |numeric|. It sets the global variable |scan_result| to |id_null| if
+ * the identifier is null, else to |white_adjacent| if it ended at a
+ * |white_space| character or an end-of-line, else to
+ * |specified_char_adjacent| if it ended at one of |char1| or |char2| or
+ * |char3|, else to |other_char_adjacent| if it ended at a nonspecified,
+ * non|white_space| |illegal_id_char|. By convention, when some calling
+ * code really wants just one or two ``specified'' characters, it merely
+ * repeats one of the characters.
+ ***************************************************************************/
+void scan_identifier (ASCIICode_T char1, ASCIICode_T char2,
+ ASCIICode_T char3)
+BEGIN
+ buf_ptr1 = buf_ptr2;
+ if (lex_class[SCAN_CHAR] != NUMERIC)
+ BEGIN
+ while ((id_class[SCAN_CHAR] == LEGAL_ID_CHAR) && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ END
+ if (TOKEN_LEN == 0)
+ BEGIN
+ scan_result = ID_NULL;
+ END
+ else if ((lex_class[SCAN_CHAR] == WHITE_SPACE) || (buf_ptr2 == last))
+ BEGIN
+ scan_result = SPECIFIED_CHAR_ADJACENT;
+ END
+ else if ((SCAN_CHAR == char1) || (SCAN_CHAR == char2)
+ || (SCAN_CHAR == char3))
+ BEGIN
+ scan_result = SPECIFIED_CHAR_ADJACENT;
+ END
+ else
+ BEGIN
+ scan_result = OTHER_CHAR_ADJACENT;
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 90 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 93
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure scans for an integer, stopping at the first nondigit;
+ * it sets the value of |token_value| accordingly. It returns |true| if
+ * the token was a legal integer (i.e., consisted of an optional
+ * |minus_sign| followed by one or more digits).
+ ***************************************************************************/
+Boolean_T scan_integer (void)
+BEGIN
+ Integer8_T sign_length;
+ Boolean_T scan_integer;
+
+ buf_ptr1 = buf_ptr2;
+ if (SCAN_CHAR == MINUS_SIGN)
+ BEGIN
+ sign_length = 1;
+ INCR (buf_ptr2);
+ END
+ else
+ BEGIN
+ sign_length = 0;
+ END
+ token_value = 0;
+ while ((lex_class[SCAN_CHAR] == NUMERIC) && (buf_ptr2 < last))
+ BEGIN
+ token_value = (token_value * 10) + CHAR_VALUE;
+ INCR (buf_ptr2);
+ END
+ if (NEGATIVE)
+ BEGIN
+ token_value = -token_value;
+ END
+ if (TOKEN_LEN == sign_length)
+ BEGIN
+ scan_integer = FALSE;
+ END
+ else
+ BEGIN
+ scan_integer = TRUE;
+ END
+ return(scan_integer);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 93 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 92
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function scans for a nonnegative integer, stopping at the first
+ * nondigit; it sets the value of |token_value| accordingly. It returns
+ * |true| if the token was a legal nonnegative integer (i.e., consisted
+ * of one or more digits).
+ ***************************************************************************/
+Boolean_T scan_nonneg_integer (void)
+BEGIN
+ Boolean_T scan_nonneg_integer;
+
+ buf_ptr1 = buf_ptr2;
+ token_value = 0;
+ while ((lex_class[SCAN_CHAR] == NUMERIC) && (buf_ptr2 < last))
+ BEGIN
+ token_value = (token_value * 10) + CHAR_VALUE;
+ INCR (buf_ptr2);
+ END
+ if (TOKEN_LEN == 0)
+ BEGIN
+ scan_nonneg_integer = FALSE;
+ END
+ else
+ BEGIN
+ scan_nonneg_integer = TRUE;
+ END
+ return (scan_nonneg_integer);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 92 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 94
+ * ~~~~~~~~~~~~~~~~~~~
+ * This function scans over |white_space| characters, stopping either at
+ * the first nonwhite character or the end of the line, respectively
+ * returning |true| or |false|.
+ ***************************************************************************/
+Boolean_T scan_white_space (void)
+BEGIN
+ Boolean_T scan_white_space;
+
+ while ((lex_class[SCAN_CHAR] == WHITE_SPACE) && (buf_ptr2 < last))
+ BEGIN
+ INCR (buf_ptr2);
+ END
+ if (buf_ptr2 < last)
+ BEGIN
+ scan_white_space = TRUE;
+ END
+ else
+ BEGIN
+ scan_white_space = FALSE;
+ END
+ return (scan_white_space);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 94 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 186
+ * ~~~~~~~~~~~~~~~~~~~
+ * And another.
+ ***************************************************************************/
+void skip_illegal_stuff_after_token (void)
+BEGIN
+ PRINT2 ("\"%c\" can't follow a literal", xchr[SCAN_CHAR]);
+ skip_token_print ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 186 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 404
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we come here |sp_ptr| is just past the |left_brace|, and when we
+ * leave it's either at |sp_end| or just past the matching |right_brace|.
+ ***************************************************************************/
+void skip_stuff_at_sp_brace_level_gr (void)
+BEGIN
+ while ((sp_brace_level > 1) && (sp_ptr < sp_end))
+ BEGIN
+ if (str_pool[sp_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (sp_brace_level);
+ END
+ else if (str_pool[sp_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ END
+ INCR (sp_ptr);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 404 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 183
+ * ~~~~~~~~~~~~~~~~~~~
+ * We're about to start scanning tokens in a function definition. When a
+ * function token is illegal, we skip until it ends; a |white_space|
+ * character, an end-of-line, a |right_brace|, or a |comment| marks the
+ * end of the current token.
+ ***************************************************************************/
+void skip_token_print (void)
+BEGIN
+ PRINT ("-");
+ bst_ln_num_print ();
+ mark_error ();
+ if (scan2_white (RIGHT_BRACE, COMMENT))
+ BEGIN
+ DO_NOTHING;
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 183 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 185
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's another macro for saving some space when there's a problem with
+ * a token.
+ ***************************************************************************/
+void skp_token_unknown_function_prin (void)
+BEGIN
+ PRINT_TOKEN;
+ PRINT (" is an unknown function");
+ skip_token_print ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 185 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 58
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure copies file name |file_name| into the beginning of
+ * |name_of_file|, if it will fit. It also sets the global variable
+ * |name_length| to the appropriate value.
+ *
+ * NOTE: because C arrays start at index 0, not 1, the subscripts of array
+ * |name_of_file| are generally 1 less than those in the WEB source.
+ ***************************************************************************/
+void start_name (StrNumber_T file_name)
+BEGIN
+ PoolPointer_T p_ptr;
+
+ free (name_of_file);
+ name_of_file = (unsigned char *) mymalloc (LENGTH (file_name) + 5, "name_of_file");
+ name_ptr = 0;
+ p_ptr = str_start[file_name];
+ while (p_ptr < str_start[file_name + 1])
+ BEGIN
+ name_of_file[name_ptr] = CHR (str_pool[p_ptr]);
+ INCR (name_ptr);
+ INCR (p_ptr);
+ END
+ name_length = LENGTH (file_name);
+ name_of_file[name_length] = 0;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 56
+ * ~~~~~~~~~~~~~~~~~~~
+ * This subroutine compares string |s| with another string that appears
+ * in the buffer |buf| between positions |bf_ptr| and |bf_ptr+len-1|; the
+ * result is |true| if and only if the strings are equal.
+ ***************************************************************************/
+Boolean_T str_eq_buf (StrNumber_T s, BufType_T buf,
+ BufPointer_T bf_ptr, BufPointer_T len)
+BEGIN
+ BufPointer_T i;
+ PoolPointer_T j;
+ Boolean_T str_eq_buf;
+
+ if (LENGTH (s) != len)
+ BEGIN
+ str_eq_buf = FALSE;
+ goto Exit_Label;
+ END
+ i = bf_ptr;
+ j = str_start[s];
+ while (j < str_start[s + 1])
+ BEGIN
+ if (str_pool[j] != buf[i])
+ BEGIN
+ str_eq_buf = FALSE;
+ goto Exit_Label;
+ END
+ INCR (i);
+ INCR (j);
+ END
+ str_eq_buf = TRUE;
+Exit_Label:
+ return (str_eq_buf);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 57
+ * ~~~~~~~~~~~~~~~~~~~
+ * This subroutine compares two |str_pool| strings and returns true
+ * |true| if and only if the strings are equal.
+ ***************************************************************************/
+Boolean_T str_eq_str (StrNumber_T s1, StrNumber_T s2)
+BEGIN
+ Boolean_T str_eq_str;
+
+ if (LENGTH (s1) != LENGTH (s2))
+ BEGIN
+ str_eq_str = FALSE;
+ goto Exit_Label;
+ END
+ p_ptr1 = str_start[s1];
+ p_ptr2 = str_start[s2];
+ while (p_ptr1 < str_start[s1 + 1])
+ BEGIN
+ if (str_pool[p_ptr1] != str_pool[p_ptr2])
+ BEGIN
+ str_eq_str = FALSE;
+ goto Exit_Label;
+ END
+ INCR (p_ptr1);
+ INCR (p_ptr2);
+ END
+ str_eq_str = TRUE;
+Exit_Label:
+ return (str_eq_str);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 68
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here is the subroutine that searches the hash table for a
+ * (string,~|str_ilk|) pair, where the string is of length |l>=0| and
+ * appears in |buffer[j..(j+l-1)]|. If it finds the pair, it returns the
+ * corresponding hash-table location and sets the global variable
+ * |hash_found| to |true|. Otherwise it sets |hash_found| to |false|,
+ * and if the parameter |insert_it| is |true|, it inserts the pair into
+ * the hash table, inserts the string into |str_pool| if not previously
+ * encountered, and returns its location. Note that two different pairs
+ * can have the same string but different |str_ilk|s, in which case the
+ * second pair encountered, if |insert_it| were |true|, would be inserted
+ * into the hash table though its string wouldn't be inserted into
+ * |str_pool| because it would already be there.
+ ***************************************************************************/
+HashLoc_T str_lookup (BufType_T buf, BufPointer_T j, BufPointer_T l,
+ StrIlk_T ilk, Boolean_T insert_it)
+BEGIN
+ HashLoc_T str_lookup;
+ long h;
+ HashLoc_T p;
+ BufPointer_T k;
+ Boolean_T old_string;
+ StrNumber_T str_num;
+
+/***************************************************************************
+ * WEB section number: 69
+ * ~~~~~~~~~~~~~~~~~~~
+ * The value of |Hash_Prime| should be roughly 85\% of |Hash_Size|, and
+ * it should be a prime number
+ * (it should also be less than $2^14 + 2^6 = 16320$ because of
+ * WEB's simple-macro bound). The theory of hashing tells us to expect
+ * fewer than two table probes, on the average, when the search is
+ * successful.
+ *
+ * NOTE: the limit imposed on the value of Hash_Prime no longer applies
+ * because we are using C #defines.
+ ***************************************************************************/
+ BEGIN
+ h = 0;
+ k = j;
+ while (k < (j + l))
+ BEGIN
+ h = h + h + buf[k];
+ while (h >= Hash_Prime)
+ h = h - Hash_Prime;
+ INCR (k);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 69 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ p = h + HASH_BASE;
+ hash_found = FALSE;
+ old_string = FALSE;
+ str_num = 0; /* avoid uninitialized warning */
+ LOOP
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 70
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we handle the case in which we've already encountered this
+ * string; note that even if we have, we'll still have to insert the pair
+ * into the hash table if |str_ilk| doesn't match.
+ ***************************************************************************/
+ BEGIN
+ if (hash_text[p] > 0)
+ BEGIN
+ if (str_eq_buf (hash_text[p], buf, j, l))
+ BEGIN
+ if (hash_ilk[p] == ilk)
+ BEGIN
+ hash_found = TRUE;
+ goto Str_Found_Label;
+ END
+ else
+ BEGIN
+ old_string = TRUE;
+ str_num = hash_text[p];
+ END
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 70 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ if (hash_next[p] == EMPTY)
+ BEGIN
+ if ( ! insert_it)
+ BEGIN
+ goto Str_Not_Found_Label;
+ END
+
+/***************************************************************************
+ * WEB section number: 71
+ * ~~~~~~~~~~~~~~~~~~~
+ * This code inserts the pair in the appropriate unused location.
+ ***************************************************************************/
+ BEGIN
+ if (hash_text[p] > 0)
+ BEGIN
+ REPEAT
+ BEGIN
+ if (HASH_IS_FULL)
+ BEGIN
+ BIBTEX_OVERFLOW ("hash size ", Hash_Size);
+ END
+ DECR (hash_used);
+ END UNTIL (hash_text[hash_used] == 0);
+ hash_next[p] = hash_used;
+ p = hash_used;
+ END
+ if (old_string)
+ BEGIN
+ hash_text[p] = str_num;
+ END
+ else
+ BEGIN
+ STR_ROOM (l);
+ k = j;
+ while (k < (j + l))
+ BEGIN
+ APPEND_CHAR (buf[k]);
+ INCR (k);
+ END
+ hash_text[p] = make_string ();
+ END
+ hash_ilk[p] = ilk;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 71 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ goto Str_Found_Label;
+ END
+ p = hash_next[p];
+ END
+Str_Not_Found_Label: DO_NOTHING;
+Str_Found_Label: str_lookup = p;
+ return (str_lookup);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 68 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 300
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |swap| procedure exchanges the two elements its arguments point
+ * to.
+ ***************************************************************************/
+void swap (CiteNumber_T swap1, CiteNumber_T swap2)
+BEGIN
+ CiteNumber_T innocent_bystander;
+
+ innocent_bystander = SORTED_CITES[swap2];
+ SORTED_CITES[swap2] = SORTED_CITES[swap1];
+ SORTED_CITES[swap1] = innocent_bystander;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 300 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 456
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we print |trace| and/or |stat| information, if desired.
+ ***************************************************************************/
+void trace_and_stat_printing (void)
+BEGIN
+
+#ifdef TRACE
+
+ if (Flag_trace) {
+
+/***************************************************************************
+ * WEB section number: 457
+ * ~~~~~~~~~~~~~~~~~~~
+ * This prints information obtained from the .aux file about the
+ * other files.
+ ***************************************************************************/
+ BEGIN
+ if (num_bib_files == 1)
+ BEGIN
+ TRACE_PR_LN ("The 1 database file is");
+ END
+ else
+ BEGIN
+ TRACE_PR_LN2 ("The %ld database files are", (long) num_bib_files);
+ END
+ if (num_bib_files == 0)
+ BEGIN
+ TRACE_PR_LN (" undefined");
+ END
+ else
+ BEGIN
+ bib_ptr = 0;
+ while (bib_ptr < num_bib_files)
+ BEGIN
+ TRACE_PR (" ");
+ TRACE_PR_POOL_STR (CUR_BIB_STR);
+ TRACE_PR_POOL_STR (s_bib_extension);
+ TRACE_PR_NEWLINE;
+ INCR (bib_ptr);
+ END
+ END
+ TRACE_PR ("The style file is ");
+ if (bst_str == 0)
+ BEGIN
+ TRACE_PR_LN ("undefined");
+ END
+ else
+ BEGIN
+ TRACE_PR_POOL_STR (bst_str);
+ TRACE_PR_POOL_STR (s_bst_extension);
+ TRACE_PR_NEWLINE;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 457 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 458
+ * ~~~~~~~~~~~~~~~~~~~
+ * In entry-sorted order, this prints an entry's |cite_list| string and,
+ * indirectly, its entry type and entry variables.
+ ***************************************************************************/
+ BEGIN
+ if (all_entries)
+ BEGIN
+ TRACE_PR2 ("all_marker=%ld, ", (long) all_marker);
+ END
+ if (read_performed)
+ BEGIN
+ TRACE_PR_LN2 ("old_num_cites=%ld", (long) old_num_cites);
+ END
+ else
+ BEGIN
+ TRACE_PR_NEWLINE;
+ END
+ TRACE_PR2 ("The %ld", (long) num_cites);
+ if (num_cites == 1)
+ BEGIN
+ TRACE_PR_LN (" entry:");
+ END
+ else
+ BEGIN
+ TRACE_PR_LN (" entries:");
+ END
+ if (num_cites == 0)
+ BEGIN
+ TRACE_PR_LN (" undefined");
+ END
+ else
+ BEGIN
+ sort_cite_ptr = 0;
+ while (sort_cite_ptr < num_cites)
+ BEGIN
+ if ( ! read_completed)
+ BEGIN
+ cite_ptr = sort_cite_ptr;
+ END
+ else
+ BEGIN
+ cite_ptr = SORTED_CITES[sort_cite_ptr];
+ END
+ TRACE_PR_POOL_STR (CUR_CITE_STR);
+ if (read_performed)
+
+/***************************************************************************
+ * WEB section number: 458
+ * ~~~~~~~~~~~~~~~~~~~
+ * This prints information gathered while reading the .bst and
+ * .bib files.
+ ***************************************************************************/
+ BEGIN
+ TRACE_PR (", entry-type ");
+ if (type_list[cite_ptr] == UNDEFINED)
+ BEGIN
+ TRACE_PR ("unknown");
+ END
+ else if (type_list[cite_ptr] == EMPTY)
+ BEGIN
+ TRACE_PR ("--- no type found");
+ END
+ else
+ BEGIN
+ TRACE_PR_POOL_STR (hash_text[type_list[cite_ptr]]);
+ END
+ TRACE_PR_LN (", has entry strings");
+
+/***************************************************************************
+ * WEB section number: 460
+ * ~~~~~~~~~~~~~~~~~~~
+ * This prints, for the current entry, the strings declared by the
+ * entry command.
+ ***************************************************************************/
+ BEGIN
+ if (num_ent_strs == 0)
+ BEGIN
+ TRACE_PR_LN (" undefined");
+ END
+ else if ( ! read_completed)
+ BEGIN
+ TRACE_PR_LN (" uninitialized");
+ END
+ else
+ BEGIN
+ str_ent_ptr = cite_ptr * num_ent_strs;
+ while (str_ent_ptr < ((cite_ptr + 1) * num_ent_strs))
+ BEGIN
+ ent_chr_ptr = 0;
+ TRACE_PR (" \"");
+
+ while (ENTRY_STRS(str_ent_ptr, ent_chr_ptr) != END_OF_STRING)
+ BEGIN
+ TRACE_PR2 ("%c",
+ xchr[ENTRY_STRS(str_ent_ptr, ent_chr_ptr)]);
+ INCR (ent_chr_ptr);
+ END
+ TRACE_PR_LN ("\"");
+ INCR (str_ent_ptr);
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 460 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ TRACE_PR (" has entry integers");
+
+/***************************************************************************
+ * WEB section number: 461
+ * ~~~~~~~~~~~~~~~~~~~
+ * This prints, for the current entry, the integers declared by the
+ * entry command.
+ ***************************************************************************/
+ BEGIN
+ if (num_ent_ints == 0)
+ BEGIN
+ TRACE_PR (" undefined");
+ END
+ else if ( ! read_completed)
+ BEGIN
+ TRACE_PR (" uninitialized");
+ END
+ else
+ BEGIN
+ int_ent_ptr = cite_ptr * num_ent_ints;
+ while (int_ent_ptr < ((cite_ptr + 1) * num_ent_ints))
+ BEGIN
+ TRACE_PR2 (" %ld", (long) entry_ints[int_ent_ptr]);
+ INCR (int_ent_ptr);
+ END
+ END
+ TRACE_PR_NEWLINE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 461 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ TRACE_PR_LN (" and has fields");
+
+/***************************************************************************
+ * WEB section number: 462
+ * ~~~~~~~~~~~~~~~~~~~
+ * This prints the fields stored for the current entry.
+ ***************************************************************************/
+ BEGIN
+ if ( ! read_performed)
+ BEGIN
+ TRACE_PR_LN (" uninitialized");
+ END
+ else
+ BEGIN
+ field_ptr = cite_ptr * num_fields;
+ field_end_ptr = field_ptr + num_fields;
+ no_fields = TRUE;
+ while (field_ptr < field_end_ptr)
+ BEGIN
+ if (field_info[field_ptr] != MISSING)
+ BEGIN
+ TRACE_PR (" \"");
+ TRACE_PR_POOL_STR (field_info[field_ptr]);
+ TRACE_PR_LN ("\"");
+ no_fields = FALSE;
+ END
+ INCR (field_ptr);
+ END
+ if (no_fields)
+ BEGIN
+ TRACE_PR_LN (" missing");
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 462 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 459 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else
+ BEGIN
+ TRACE_PR_NEWLINE;
+ END
+ INCR (sort_cite_ptr);
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 458 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 463
+ * ~~~~~~~~~~~~~~~~~~~
+ * This gives all the |wiz_defined| functions that appeared in the
+ * .bst file.
+ ***************************************************************************/
+ BEGIN
+ TRACE_PR_LN ("The wiz-defined functions are");
+ if (wiz_def_ptr == 0)
+ BEGIN
+ TRACE_PR_LN (" nonexistent");
+ END
+ else
+ BEGIN
+ wiz_fn_ptr = 0;
+
+ while (wiz_fn_ptr < wiz_def_ptr)
+ BEGIN
+ if (wiz_functions[wiz_fn_ptr] == END_OF_DEF)
+ BEGIN
+ TRACE_PR_LN2 ("%ld--end-of-def--", (long) wiz_fn_ptr);
+ END
+ else if (wiz_functions[wiz_fn_ptr] == QUOTE_NEXT_FN)
+ BEGIN
+ TRACE_PR2 ("%ld quote_next_function ", (long) wiz_fn_ptr);
+ END
+ else
+ BEGIN
+ TRACE_PR2 ("%ld `", (long) wiz_fn_ptr);
+ TRACE_PR_POOL_STR (hash_text[wiz_functions[wiz_fn_ptr]]);
+ TRACE_PR_LN ("'");
+ END
+ INCR (wiz_fn_ptr);
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 463 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 464
+ * ~~~~~~~~~~~~~~~~~~~
+ * This includes all the `static' strings (that is, those that are also
+ * in the hash table), but none of the dynamic strings (that is, those
+ * put on the stack while executing .bst commands).
+ ***************************************************************************/
+ BEGIN
+ TRACE_PR_LN ("The string pool is");
+ str_num = 1;
+
+ while (str_num < str_ptr)
+ BEGIN
+ TRACE_PR3 ("%4ld%6ld \"", (long) str_num, (long) str_start[str_num]);
+ TRACE_PR_POOL_STR (str_num);
+ TRACE_PR_LN ("\"");
+ INCR (str_num);
+ END
+ END
+ } /* end if (Flag_trace) */
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 464 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+#endif /* TRACE */
+
+
+#ifdef STAT
+
+/***************************************************************************
+ * WEB section number: 465
+ * ~~~~~~~~~~~~~~~~~~~
+ * These statistics can help determine how large some of the constants
+ * should be and can tell how useful certain |built_in| functions are.
+ * They are written to the same files as tracing information.
+ ***************************************************************************/
+ if (Flag_stats) {
+ BEGIN
+ STAT_PR2 ("You've used %ld", (long) num_cites);
+ if (num_cites == 1)
+ BEGIN
+ STAT_PR_LN (" entry,");
+ END
+ else
+ BEGIN
+ STAT_PR_LN (" entries,");
+ END
+ STAT_PR_LN2 (" %ld wiz_defined-function locations,",
+ (long) wiz_def_ptr);
+ STAT_PR_LN3 (" %ld strings with %ld characters,",
+ (long) str_ptr, (long) str_start[str_ptr]);
+ blt_in_ptr = 0;
+ total_ex_count = 0;
+ while (blt_in_ptr < NUM_BLT_IN_FNS)
+ BEGIN
+ total_ex_count = total_ex_count + execution_count[blt_in_ptr];
+ INCR (blt_in_ptr);
+ END
+ STAT_PR_LN2 ("and the built_in function-call counts, %ld in all, are:",
+ (long) total_ex_count);
+ blt_in_ptr = 0;
+ while (blt_in_ptr < NUM_BLT_IN_FNS)
+ BEGIN
+ STAT_PR_POOL_STR (hash_text[blt_in_loc[blt_in_ptr]]);
+ STAT_PR_LN2 (" -- %ld", (long) execution_count[blt_in_ptr]);
+ INCR (blt_in_ptr);
+ END
+ END
+ } /* end if (Flag_stats) */
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 465 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+#endif /* STAT */
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 456 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 159
+ * ~~~~~~~~~~~~~~~~~~~
+ * This version is for printing when in |trace| mode.
+ ***************************************************************************/
+#ifdef TRACE
+void trace_pr_fn_class (HashLoc_T fn_loc)
+BEGIN
+
+ if (!Flag_trace)
+ return;
+
+ switch (fn_type[fn_loc])
+ BEGIN
+ case BUILT_IN:
+ TRACE_PR ("built-in");
+ break;
+ case WIZ_DEFINED:
+ TRACE_PR ("wizard-defined");
+ break;
+ case INT_LITERAL:
+ TRACE_PR ("integer-literal");
+ break;
+ case STR_LITERAL:
+ TRACE_PR ("string-literal");
+ break;
+ case FIELD:
+ TRACE_PR ("field");
+ break;
+ case INT_ENTRY_VAR:
+ TRACE_PR ("integer-entry-variable");
+ break;
+ case STR_ENTRY_VAR:
+ TRACE_PR ("string-entry-variable");
+ break;
+ case INT_GLOBAL_VAR:
+ TRACE_PR ("integer-global-variable");
+ break;
+ case STR_GLOBAL_VAR:
+ TRACE_PR ("string-global-variable");
+ break;
+ default:
+ unknwn_function_class_confusion ();
+ break;
+ END
+END
+#endif /* TRACE */
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 159 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+
+/***************************************************************************
+ * WEB section number: 157
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's another bug report.
+ ***************************************************************************/
+void unknwn_function_class_confusion (void)
+BEGIN
+ CONFUSION ("Unknown function class");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 157 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 310
+ * ~~~~~~~~~~~~~~~~~~~
+ * More bug complaints, this time about bad literals.
+ ***************************************************************************/
+void unknwn_literal_confusion (void)
+BEGIN
+ CONFUSION ("Unknown literal type");
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 310 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 63
+ * ~~~~~~~~~~~~~~~~~~~
+ * This system-independent procedure is the same as the previous except
+ * that it converts lower- to upper-case letters.
+ ***************************************************************************/
+#ifndef UTF_8
+void upper_case (BufType_T buf, BufPointer_T bf_ptr,
+ BufPointer_T len)
+BEGIN
+ BufPointer_T i;
+
+ if (len > 0)
+ BEGIN
+ for (i = bf_ptr; i <= (bf_ptr+len-1); i++)
+ BEGIN
+
+#ifdef SUPPORT_8BIT
+ if (IsLower (buf[i]))
+ BEGIN
+ buf[i] = ToUpper(buf[i]);
+ END
+#else /* NOT SUPPORT_8BIT */
+ if ((buf[i] >= 'a') && (buf[i] <= 'z'))
+ BEGIN
+ buf[i] = buf[i] - CASE_DIFFERENCE;
+ END
+#endif /* SUPPORT_8BIT */
+
+ END
+ END
+END
+#else
+/*
+This foction "upper_case_uni" is for prcessing the character UTF-8.
+It's like lower_case_uni. 23/sep/2009
+*/
+
+BufPointer_T upper_case_uni (BufType_T buf, BufPointer_T bf_ptr,
+ BufPointer_T len)
+BEGIN
+// printf("O~ lala~~");
+ UChar target[BUF_SIZE+1];
+ int32_t tarcap=BUF_SIZE+1;
+ int32_t tarlen = icu_toUChars(buf, bf_ptr, len, target, tarcap);
+
+ UChar tarup[BUF_SIZE+1];
+ int32_t tucap=BUF_SIZE+1;
+ int32_t tulen=icu_strToUpper(tarup, tucap,target, tarlen);
+
+ unsigned char dest[BUF_SIZE+1];
+ int32_t destcap= BUF_SIZE-bf_ptr;
+
+ int32_t tblen=icu_fromUChars(dest, destcap, (const UChar *) tarup, tulen);
+
+ BufPointer_T i;
+ if (tblen > 0)
+ BEGIN
+ if (len!=tblen)
+ BEGIN
+ unsigned char tmp[BUF_SIZE+1];
+ BufPointer_T tmppr=0;
+ for (i=bf_ptr+len;i<=(BUF_SIZE-tblen+len);i++)
+ BEGIN
+ tmp[tmppr]=buf[i];
+ tmppr++;
+ END
+ i=bf_ptr+tblen;
+ tmppr=0;
+ for (tmppr=0;tmppr<=(BUF_SIZE-bf_ptr-tblen);tmppr++)
+ BEGIN
+ buf[i]=tmp[tmppr];
+ i++;
+ END
+ END
+ for (i = 0; i <= (tblen - 1); i++)
+ BEGIN
+
+ buf[i+bf_ptr]=dest[i];
+ END
+ END
+ return tblen;
+END
+
+/*
+This function is for transform Unicode string to up case. 23/sep/2009
+*/
+
+int32_t icu_strToUpper(UChar * tarup, int32_t tucap, UChar * target, int32_t tarlen)
+BEGIN
+ int32_t tulen;
+ UErrorCode err1 = U_ZERO_ERROR;
+ if (!U_SUCCESS(err1))
+ BEGIN
+ printf("Error in icu_strToUpper?\n");
+ END
+ if (Flag_language)
+ {
+ tulen=u_strToUpper(tarup,tucap, target,tarlen,Str_language,&err1);
+ }
+ else
+ {
+ tulen=u_strToUpper(tarup,tucap, target,tarlen,NULL,&err1);
+ }
+ if (!U_SUCCESS(err1))
+ BEGIN
+ printf("Error in icu_strToUpper.\n");
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Error in icu_strToUpper");
+#endif /* TRACE */
+ END
+
+ return tulen;
+END
+#endif
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 63 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 401
+ * ~~~~~~~~~~~~~~~~~~~
+ * The last name starts just past the last token, before the first
+ * |comma| (if there is no |comma|, there is deemed to be one at the end
+ * of the string), for which there exists a first brace-level-0 letter
+ * (or brace-level-1 special character), and it's in lower case, unless
+ * this last token is also the last token before the |comma|, in which
+ * case the last name starts with this token (unless this last token is
+ * connected by a |sep_char| other than a |tie| to the previous token, in
+ * which case the last name starts with as many tokens earlier as are
+ * connected by non|tie|s to this last one (except on Tuesdays
+ * $\ldots\,$), although this module never sees such a case). Note that
+ * if there are any tokens in either the von or last names, then the last
+ * name has at least one, even if it starts with a lower-case letter.
+ ***************************************************************************/
+void von_name_ends_and_last_name_sta (void)
+BEGIN
+ von_end = last_end - 1;
+ while (von_end > von_start)
+ BEGIN
+ name_bf_ptr = name_tok[von_end - 1];
+ name_bf_xptr = name_tok[von_end];
+ if (von_token_found ())
+ BEGIN
+ goto Exit_Label;
+ END
+ DECR (von_end);
+ END
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 397
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's a von token if there exists a first brace-level-0 letter (or
+ * brace-level-1 special character), and it's in lower case; in this case
+ * we return |true|. The token is in |name_buf|, starting at
+ * |name_bf_ptr| and ending just before |name_bf_xptr|.
+ ***************************************************************************/
+Boolean_T von_token_found (void)
+BEGIN
+ Boolean_T von_token_found;
+
+ nm_brace_level = 0;
+ von_token_found = FALSE;
+ while (name_bf_ptr < name_bf_xptr)
+ BEGIN
+
+#ifdef SUPPORT_8BIT
+ if IsUpper(NAME_BUF[name_bf_ptr])
+ BEGIN
+ goto Exit_Label;
+ END
+ else if IsLower(NAME_BUF[name_bf_ptr])
+ BEGIN
+ RETURN_VON_FOUND;
+ END
+#else /* NOT SUPPORT_8BIT */
+ if ((NAME_BUF[name_bf_ptr] >= 'A') && (NAME_BUF[name_bf_ptr] <= 'Z'))
+ BEGIN
+ goto Exit_Label;
+ END
+ else if ((NAME_BUF[name_bf_ptr] >= 'a') && (NAME_BUF[name_bf_ptr] <= 'z'))
+ BEGIN
+ RETURN_VON_FOUND;
+ END
+#endif /* SUPPORT_8BIT */
+
+ else if (NAME_BUF[name_bf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (nm_brace_level);
+ INCR (name_bf_ptr);
+ if (((name_bf_ptr + 2) < name_bf_xptr)
+ && (NAME_BUF[name_bf_ptr] == BACKSLASH))
+
+/***************************************************************************
+ * WEB section number: 398
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we come here |name_bf_ptr| is just past the |left_brace|,
+ * but we always leave by |return|ing.
+ ***************************************************************************/
+ BEGIN
+ INCR (name_bf_ptr);
+ name_bf_yptr = name_bf_ptr;
+ while ((name_bf_ptr < name_bf_xptr)
+ && (lex_class[NAME_BUF[name_bf_ptr]] == ALPHA))
+ BEGIN
+ INCR (name_bf_ptr);
+ END
+ control_seq_loc = str_lookup (NAME_BUF, name_bf_yptr,
+ name_bf_ptr - name_bf_yptr,
+ CONTROL_SEQ_ILK, DONT_INSERT);
+ if (hash_found)
+
+/***************************************************************************
+ * WEB section number: 399
+ * ~~~~~~~~~~~~~~~~~~~
+ * The accented or foreign character is either `\i' or `\j' or
+ * one of the eleven alphabetic foreign characters in Table~3.2 of the
+ * \LaTeX\ manual.
+ ***************************************************************************/
+ BEGIN
+ switch (ilk_info[control_seq_loc])
+ BEGIN
+ case N_OE_UPPER:
+ case N_AE_UPPER:
+ case N_AA_UPPER:
+ case N_O_UPPER:
+ case N_L_UPPER:
+ goto Exit_Label;
+ case N_I:
+ case N_J:
+ case N_OE:
+ case N_AE:
+ case N_AA:
+ case N_O:
+ case N_L:
+ case N_SS:
+ RETURN_VON_FOUND;
+ default:
+ CONFUSION ("Control-sequence hash error");
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 399 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ while ((name_bf_ptr < name_bf_xptr) && (nm_brace_level > 0))
+ BEGIN
+
+#ifdef SUPPORT_8BIT
+ if IsUpper(NAME_BUF[name_bf_ptr])
+ BEGIN
+ goto Exit_Label;
+ END
+ else if IsLower(NAME_BUF[name_bf_ptr])
+ BEGIN
+ RETURN_VON_FOUND;
+ END
+#else /* NOT SUPPORT_8BIT */
+ if ((NAME_BUF[name_bf_ptr] >= 'A') && (NAME_BUF[name_bf_ptr] <= 'Z'))
+ BEGIN
+ goto Exit_Label;
+ END
+ else if ((NAME_BUF[name_bf_ptr] >= 'a')
+ && (NAME_BUF[name_bf_ptr] <= 'z'))
+ BEGIN
+ RETURN_VON_FOUND;
+ END
+#endif /* SUPPORT_8BIT */
+
+ else if (NAME_BUF[name_bf_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (nm_brace_level);
+ END
+ else if (NAME_BUF[name_bf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (nm_brace_level);
+ END
+ INCR (name_bf_ptr);
+ END
+ goto Exit_Label;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 398 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else
+
+/***************************************************************************
+ * WEB section number: 400
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we come here |name_bf_ptr| is just past the |left_brace|; when we
+ * leave it's either at |name_bf_xptr| or just past the matching
+ * |right_brace|.
+ ***************************************************************************/
+ BEGIN
+ while ((nm_brace_level > 0) && (name_bf_ptr < name_bf_xptr))
+ BEGIN
+ if (NAME_BUF[name_bf_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (nm_brace_level);
+ END
+ else if (NAME_BUF[name_bf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (nm_brace_level);
+ END
+ INCR (name_bf_ptr);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 400 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else
+ BEGIN
+ INCR (name_bf_ptr);
+ END
+ END
+Exit_Label: DO_NOTHING;
+ return (von_token_found);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 397 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 360
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function add.period$ pops the top (string)
+ * literal, adds a |period| to a nonnull string if its last
+ * non|right_brace| character isn't a |period|, |question_mark|, or
+ * |exclamation_mark|, and pushes this resulting string back onto the
+ * stack. If the literal isn't a string, it complains and pushes the
+ * null string.
+ ***************************************************************************/
+void x_add_period (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (LENGTH (pop_lit1) == 0)
+ BEGIN
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 361
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we scan backwards from the end of the string, skipping
+ * non|right_brace| characters, to see if we have to add the |period|.
+ ***************************************************************************/
+ BEGIN
+#ifdef UTF_8
+ UChar ch;
+#endif
+ sp_ptr = str_start[pop_lit1 + 1];
+ sp_end = str_start[pop_lit1];
+ while (sp_ptr > sp_end)
+ BEGIN
+ DECR (sp_ptr);
+ if (str_pool[sp_ptr] != RIGHT_BRACE)
+ BEGIN
+ goto Loop_Exit_Label;
+ END
+ END
+Loop_Exit_Label:
+#ifdef UTF_8
+ ch = str_pool[sp_ptr];
+ if (utf8len(str_pool[sp_ptr]) != 1 && utf8len(str_pool[sp_ptr-1]) != 2 && utf8len(str_pool[sp_ptr-2]) == 3)
+ ch = ((str_pool[sp_ptr-2]&0x0f) <<12) | ((str_pool[sp_ptr-1]&0x3f) << 6) | (str_pool[sp_ptr]&0x3f);
+ switch (ch)
+#else
+ switch (str_pool[sp_ptr])
+#endif
+ BEGIN
+ case PERIOD:
+ case QUESTION_MARK:
+ case EXCLAMATION_MARK:
+#ifdef UTF_8
+ case 0x203C: case 0x203D: case 0x2047: /* ‼ ‽ ⇠*/
+ case 0x2048: case 0x2049: case 0x3002: /* ∠≠。 */
+ case 0xFF01: case 0xFF0E: case 0xFF1F: /* ï¼ ï¼Ž ? */
+#endif
+ REPUSH_STRING;
+ break;
+ default:
+
+/***************************************************************************
+ * WEB section number: 362
+ * ~~~~~~~~~~~~~~~~~~~
+ * Ok guys, we really have to do it.
+ ***************************************************************************/
+ BEGIN
+ if (pop_lit1 < cmd_str_ptr)
+ BEGIN
+ STR_ROOM (LENGTH (pop_lit1) + 1);
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ END
+ else
+ BEGIN
+ pool_ptr = str_start[pop_lit1 + 1];
+ STR_ROOM (1);
+ END
+ APPEND_CHAR (PERIOD);
+ push_lit_stk (make_string (), STK_STR);
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 362 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 361 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 360 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
diff --git a/biblio/bibtex/bibtex-x/bibtex-4.c b/biblio/bibtex/bibtex-x/bibtex-4.c
new file mode 100644
index 0000000000..9663f5a6b8
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtex-4.c
@@ -0,0 +1,2871 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: bibtex-4.c
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This is the fourth of 4 source modules for BibTeX. The source has
+** been split into 4 parts so that some of the more primitive editors
+** can cope. This code mimics the BibTeX WEB source as closely as
+** possible and there should be NO system dependent code in any of the
+** bibtex-#.c modules.
+**
+** The functions defined in this module are:
+**
+** x_change_case
+** x_chr_to_int
+** x_cite
+** x_concatenate
+** x_duplicate
+** x_empty
+** x_equals
+** x_format_name
+** x_gets
+** x_greater_than
+** x_int_to_chr
+** x_int_to_str
+** x_less_than
+** x_minus
+** x_missing
+** x_num_names
+** x_plus
+** x_preamble
+** x_purify
+** x_quote
+** x_substring
+** x_swap
+** x_text_length
+** x_text_prefix
+** x_type
+** x_warning
+** x_width
+** x_write
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: bibtex-4.c,v $
+** Revision 3.71 1996/08/18 20:47:30 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:41 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "sysdep.h"
+#include "bibtex.h"
+#include "datatype.h"
+#include "gblprocs.h"
+#include "gblvars.h"
+#include "utils.h"
+#include "version.h"
+
+
+/***************************************************************************
+ * WEB section number: 364
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function change.case$ pops the top two (string)
+ * literals; it changes the case of the second according to the
+ * specifications of the first, as follows. (Note: The word `letters' in
+ * the next sentence refers only to those at brace-level~0, the top-most
+ * brace level; no other characters are changed, except perhaps for
+ * special characters, described shortly.) If the first literal is the
+ * string t, it converts to lower case all letters except the very
+ * first character in the string, which it leaves alone, and except the
+ * first character following any |colon| and then nonnull |white_space|,
+ * which it also leaves alone; if it's the string l, it converts all
+ * letters to lower case; if it's the string u, it converts all
+ * letters to upper case; and if it's anything else, it complains and
+ * does no conversion. It then pushes this resulting string. If either
+ * type is incorrect, it complains and pushes the null string; however,
+ * if both types are correct but the specification string (i.e., the
+ * first string) isn't one of the legal ones, it merely pushes the second
+ * back onto the stack, after complaining. (Another note: It ignores
+ * case differences in the specification string; for example, the strings
+ * t and T are equivalent for the purposes of this |built_in|
+ * function.)
+ ***************************************************************************/
+void x_change_case (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_typ2 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+
+/***************************************************************************
+ * WEB section number: 366
+ * ~~~~~~~~~~~~~~~~~~~
+ * First we define a few variables for case conversion. The constant
+ * definitions, to be used in |case| statements, are in order of probable
+ * frequency.
+ ***************************************************************************/
+ BEGIN
+ switch (str_pool[str_start[pop_lit1]])
+ BEGIN
+ case 't':
+ case 'T':
+ conversion_type = TITLE_LOWERS;
+ break;
+ case 'l':
+ case 'L':
+ conversion_type = ALL_LOWERS;
+ break;
+ case 'u':
+ case 'U':
+ conversion_type = ALL_UPPERS;
+ break;
+ default:
+ conversion_type = BAD_CONVERSION;
+ break;
+ END
+ if ((LENGTH (pop_lit1) != 1) || (conversion_type == BAD_CONVERSION))
+ BEGIN
+ conversion_type = BAD_CONVERSION;
+ PRINT_POOL_STR (pop_lit1);
+ BST_EX_WARN (" is an illegal case-conversion string");
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 366 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit2);
+
+/***************************************************************************
+ * WEB section number: 370
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's where we actually go through the string and do the case
+ * conversion.
+ ***************************************************************************/
+ BEGIN
+ brace_level = 0;
+ ex_buf_ptr = 0;
+ while (ex_buf_ptr < ex_buf_length)
+ BEGIN
+ if (ex_buf[ex_buf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ if (brace_level != 1)
+ BEGIN
+ goto OK_Pascal_I_Give_Up_Label;
+ END
+ if ((ex_buf_ptr + 4) > ex_buf_length)
+ BEGIN
+ goto OK_Pascal_I_Give_Up_Label;
+ END
+ else if (ex_buf[ex_buf_ptr + 1] != BACKSLASH)
+ BEGIN
+ goto OK_Pascal_I_Give_Up_Label;
+ END
+ if (conversion_type == TITLE_LOWERS)
+ BEGIN
+ if (ex_buf_ptr == 0)
+ BEGIN
+ goto OK_Pascal_I_Give_Up_Label;
+ END
+ else if ((prev_colon)
+ && (lex_class[ex_buf[ex_buf_ptr - 1]] == WHITE_SPACE))
+ BEGIN
+ goto OK_Pascal_I_Give_Up_Label;
+ END
+ END
+
+/***************************************************************************
+ * WEB section number: 371
+ * ~~~~~~~~~~~~~~~~~~~
+ * We're dealing with a special character (usually either an undotted
+ * `\i' or `\j', or an accent like one in Table~3.1 of the \LaTeX\
+ * manual, or a foreign character like one in Table~3.2) if the first
+ * character after the |left_brace| is a |backslash|; the special
+ * character ends with the matching |right_brace|. How we handle what's
+ * in between depends on the special character. In general, this code
+ * will do reasonably well if there is other stuff, too, between braces,
+ * but it doesn't try to do anything special with |colon|s.
+ ***************************************************************************/
+ BEGIN
+ INCR (ex_buf_ptr);
+ while ((ex_buf_ptr < ex_buf_length) && (brace_level > 0))
+ BEGIN
+ INCR (ex_buf_ptr);
+ ex_buf_xptr = ex_buf_ptr;
+ while ((ex_buf_ptr < ex_buf_length)
+ && (lex_class[ex_buf[ex_buf_ptr]] == ALPHA))
+ BEGIN
+ INCR (ex_buf_ptr);
+ END
+ control_seq_loc = str_lookup (ex_buf, ex_buf_xptr,
+ ex_buf_ptr - ex_buf_xptr,
+ CONTROL_SEQ_ILK, DONT_INSERT);
+ if (hash_found)
+
+/***************************************************************************
+ * WEB section number: 372
+ * ~~~~~~~~~~~~~~~~~~~
+ * A control sequence, for the purposes of this program, consists just of
+ * the consecutive alphabetic characters following the |backslash|; it
+ * might be empty (although ones in this section aren't).
+ ***************************************************************************/
+ BEGIN
+ switch (conversion_type)
+ BEGIN
+ case TITLE_LOWERS:
+ case ALL_LOWERS:
+ switch (ilk_info[control_seq_loc])
+ BEGIN
+ case N_L_UPPER:
+ case N_O_UPPER:
+ case N_OE_UPPER:
+ case N_AE_UPPER:
+ case N_AA_UPPER:
+ Lower_case (ex_buf, ex_buf_xptr,
+ ex_buf_ptr - ex_buf_xptr);
+ break;
+ default:
+ DO_NOTHING;
+ break;
+ END
+ break;
+ case ALL_UPPERS:
+ switch (ilk_info[control_seq_loc])
+ BEGIN
+ case N_L:
+ case N_O:
+ case N_OE:
+ case N_AE:
+ case N_AA:
+ upper_case (ex_buf, ex_buf_xptr,
+ ex_buf_ptr - ex_buf_xptr);
+ break;
+ case N_I:
+ case N_J:
+ case N_SS:
+
+/***************************************************************************
+ * WEB section number: 374
+ * ~~~~~~~~~~~~~~~~~~~
+ * After converting the control sequence, we need to remove the preceding
+ * |backslash| and any following |white_space|.
+ ***************************************************************************/
+ BEGIN
+ upper_case (ex_buf, ex_buf_xptr,
+ ex_buf_ptr - ex_buf_xptr);
+ while (ex_buf_xptr < ex_buf_ptr)
+ BEGIN
+ ex_buf[ex_buf_xptr - 1] = ex_buf[ex_buf_xptr];
+ INCR (ex_buf_xptr);
+ END
+ DECR (ex_buf_xptr);
+ while ((ex_buf_ptr < ex_buf_length)
+ && (lex_class[ex_buf[ex_buf_ptr]] == WHITE_SPACE))
+ BEGIN
+ INCR (ex_buf_ptr);
+ END
+ tmp_ptr = ex_buf_ptr;
+ while (tmp_ptr < ex_buf_length)
+ BEGIN
+ ex_buf[tmp_ptr - (ex_buf_ptr - ex_buf_xptr)]
+ = ex_buf[tmp_ptr];
+ INCR (tmp_ptr);
+ END
+ ex_buf_length = tmp_ptr - (ex_buf_ptr - ex_buf_xptr);
+ ex_buf_ptr = ex_buf_xptr;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 374 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+ DO_NOTHING;
+ break;
+ END
+ break;
+ case BAD_CONVERSION:
+ DO_NOTHING;
+ break;
+ default:
+ case_conversion_confusion ();
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 372 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ ex_buf_xptr = ex_buf_ptr;
+ while ((ex_buf_ptr < ex_buf_length) && (brace_level > 0)
+ && (ex_buf[ex_buf_ptr] != BACKSLASH))
+ BEGIN
+ if (ex_buf[ex_buf_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (brace_level);
+ END
+ else if (ex_buf[ex_buf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ END
+ INCR (ex_buf_ptr);
+ END
+
+/***************************************************************************
+ * WEB section number: 375
+ * ~~~~~~~~~~~~~~~~~~~
+ * There are no control sequences in what we're about to convert,
+ * so a straight conversion suffices.
+ ***************************************************************************/
+ switch (conversion_type)
+ BEGIN
+ case TITLE_LOWERS:
+ case ALL_LOWERS:
+ Lower_case (ex_buf, ex_buf_xptr, ex_buf_ptr - ex_buf_xptr);
+ break;
+ case ALL_UPPERS:
+ upper_case (ex_buf, ex_buf_xptr, ex_buf_ptr - ex_buf_xptr);
+ break;
+ case BAD_CONVERSION:
+ DO_NOTHING;
+ break;
+ default:
+ case_conversion_confusion ();
+ break;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 375 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ DECR (ex_buf_ptr);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 371 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+OK_Pascal_I_Give_Up_Label: prev_colon = FALSE;
+ END
+ else if (ex_buf[ex_buf_ptr] == RIGHT_BRACE)
+ BEGIN
+ decr_brace_level (pop_lit2);
+ prev_colon = FALSE;
+ END
+ else if (brace_level == 0)
+
+/***************************************************************************
+ * WEB section number: 376
+ * ~~~~~~~~~~~~~~~~~~~
+ * This code does any needed conversion for an ordinary character; it
+ * won't touch nonletters.
+ ***************************************************************************/
+ BEGIN
+ switch (conversion_type)
+ BEGIN
+ case TITLE_LOWERS:
+ if (ex_buf_ptr == 0)
+ BEGIN
+#ifdef UTF_8
+/*
+For the case of TITLE_LOWERS, we transform the characters to low case except the first
+character. When it's UTF-8, we should care about the length of charater. 23/sep/2009
+*/
+ DO_UTF8(ex_buf[ex_buf_ptr], , ex_buf_ptr = 1, ex_buf_ptr = 2, ex_buf_ptr = 3);
+#else
+ DO_NOTHING;
+#endif
+ END
+ else if ((prev_colon)
+ && (lex_class[ex_buf[ex_buf_ptr - 1]] == WHITE_SPACE))
+ BEGIN
+ DO_NOTHING;
+ END
+ else
+ BEGIN
+#ifdef UTF_8
+/*
+When we do lower_case_uni, the length of string have been changed. So we should do some job
+for the precessing after lower case. Here there may be some potential bug. 23/sep/2009
+*/
+ int16_t llen;
+
+ llen=utf8len(ex_buf[ex_buf_ptr]);
+ ex_buf_ptr=ex_buf_ptr+lower_case_uni (ex_buf, ex_buf_ptr, llen)-1;
+#else
+ lower_case (ex_buf, ex_buf_ptr, 1);
+#endif
+ END
+ if (ex_buf[ex_buf_ptr] == COLON)
+ BEGIN
+ prev_colon = TRUE;
+ END
+ else if (lex_class[ex_buf[ex_buf_ptr]] != WHITE_SPACE)
+ BEGIN
+ prev_colon = FALSE;
+ END
+ break;
+ case ALL_LOWERS:
+#ifdef UTF_8
+/*
+Here the same for processing the length of string after change case. 23/sep/2009
+*/
+ BEGIN
+ int16_t llen;
+
+ llen=utf8len(ex_buf[ex_buf_ptr]);
+ ex_buf_ptr=ex_buf_ptr+lower_case_uni (ex_buf, ex_buf_ptr, llen)-1;
+ END
+#else
+ lower_case (ex_buf, ex_buf_ptr, 1);
+#endif
+ break;
+ case ALL_UPPERS:
+#ifdef UTF_8
+/*
+Here the same for processing the length of string after change case. 23/sep/2009
+*/
+ BEGIN
+ int16_t ulen;
+
+ ulen=utf8len(ex_buf[ex_buf_ptr]);
+ ex_buf_ptr=ex_buf_ptr+upper_case_uni (ex_buf, ex_buf_ptr, ulen)-1;
+ END
+#else
+ upper_case (ex_buf, ex_buf_ptr, 1);
+#endif
+ break;
+ case BAD_CONVERSION:
+ DO_NOTHING;
+ break;
+ default:
+ case_conversion_confusion ();
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 376 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ INCR (ex_buf_ptr);
+ END
+ check_brace_level (pop_lit2);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 370 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ add_pool_buf_and_push ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 364 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 377
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function chr.to.int$ pops the top (string)
+ * literal, makes sure it's a single character, converts it to the
+ * corresponding |ASCII_code| integer, and pushes this integer. If the
+ * literal isn't an appropriate string, it complains and pushes the
+ * integer~0.
+ ***************************************************************************/
+void x_chr_to_int (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (0, STK_INT);
+ END
+#ifdef UTF_8
+ else if (LENGTH (pop_lit1) != utf8len(str_pool[str_start[pop_lit1]]))
+#else
+ else if (LENGTH (pop_lit1) != 1)
+#endif
+ BEGIN
+ PRINT ("\"");
+ PRINT_POOL_STR (pop_lit1);
+ BST_EX_WARN ("\" isn't a single character");
+ push_lit_stk (0, STK_INT);
+ END
+ else
+ BEGIN
+#ifdef UTF_8
+ UChar32 ch;
+ U8_GET_OR_FFFD(&str_pool[str_start[pop_lit1]], 0, 0, -1, ch);
+ push_lit_stk (ch, STK_INT);
+#else
+ push_lit_stk (str_pool[str_start[pop_lit1]], STK_INT);
+#endif
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 377 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 378
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function cite pushes the appropriate string
+ * from |cite_list| onto the stack.
+ ***************************************************************************/
+void x_cite (void)
+BEGIN
+ if ( ! mess_with_entries)
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else
+ BEGIN
+ push_lit_stk (CUR_CITE_STR, STK_STR);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 378 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 350
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function * pops the top two (string) literals,
+ * concatenates them (in reverse order, that is, the order in which
+ * pushed), and pushes the resulting string back onto the stack. If
+ * either isn't a string literal, it complains and pushes the null
+ * string.
+ ***************************************************************************/
+void x_concatenate (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_typ2 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 351
+ * ~~~~~~~~~~~~~~~~~~~
+ * Often both strings will be at the top of the string pool, in which
+ * case we just move some pointers. Furthermore, it's worth doing some
+ * special stuff in case either string is null, since empirically this
+ * seems to happen about $20\%$ of the time. In any case, we don't need
+ * the execution buffer---we simple move the strings around in the string
+ * pool when necessary.
+ ***************************************************************************/
+ BEGIN
+ if (pop_lit2 >= cmd_str_ptr)
+ BEGIN
+ if (pop_lit1 >= cmd_str_ptr)
+ BEGIN
+ str_start[pop_lit1] = str_start[pop_lit1 + 1];
+ UNFLUSH_STRING;
+ INCR (lit_stk_ptr);
+ END
+ else if (LENGTH (pop_lit2) == 0)
+ BEGIN
+ push_lit_stk (pop_lit1, STK_STR);
+ END
+ else
+ BEGIN
+ pool_ptr = str_start[pop_lit2 + 1];
+ STR_ROOM (LENGTH (pop_lit1));
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ push_lit_stk (make_string (), STK_STR);
+ END
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 352
+ * ~~~~~~~~~~~~~~~~~~~
+ * We simply continue the previous module.
+ ***************************************************************************/
+ BEGIN
+ if (pop_lit1 >= cmd_str_ptr)
+ BEGIN
+ if (LENGTH (pop_lit2) == 0)
+ BEGIN
+ UNFLUSH_STRING;
+ lit_stack[lit_stk_ptr] = pop_lit1;
+ INCR (lit_stk_ptr);
+ END
+ else if (LENGTH (pop_lit1) == 0)
+ BEGIN
+ INCR (lit_stk_ptr);
+ END
+ else
+ BEGIN
+ sp_length = LENGTH (pop_lit1);
+ sp2_length = LENGTH (pop_lit2);
+ STR_ROOM (sp_length + sp2_length);
+ sp_ptr = str_start[pop_lit1 + 1];
+ sp_end = str_start[pop_lit1];
+ sp_xptr1 = sp_ptr + sp2_length;
+ while (sp_ptr > sp_end)
+ BEGIN
+ DECR (sp_ptr);
+ DECR (sp_xptr1);
+ str_pool[sp_xptr1] = str_pool[sp_ptr];
+ END
+ sp_ptr = str_start[pop_lit2];
+ sp_end = str_start[pop_lit2 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ pool_ptr = pool_ptr + sp_length;
+ push_lit_stk (make_string (), STK_STR);
+ END
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 353
+ * ~~~~~~~~~~~~~~~~~~~
+ * Again, we simply continue the previous module.
+ ***************************************************************************/
+ BEGIN
+ if (LENGTH (pop_lit1) == 0)
+ BEGIN
+ INCR (lit_stk_ptr);
+ END
+ else if (LENGTH (pop_lit2) == 0)
+ BEGIN
+ push_lit_stk (pop_lit1, STK_STR);
+ END
+ else
+ BEGIN
+ STR_ROOM (LENGTH (pop_lit1) + LENGTH (pop_lit2));
+ sp_ptr = str_start[pop_lit2];
+ sp_end = str_start[pop_lit2 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ push_lit_stk (make_string (), STK_STR);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 353 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 352 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 351 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 350 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 379
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function duplicate$ pops the top literal from
+ * the stack and pushes two copies of it.
+ ***************************************************************************/
+void x_duplicate (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ push_lit_stk (pop_lit1, pop_typ1);
+ push_lit_stk (pop_lit1, pop_typ1);
+ END
+ else
+ BEGIN
+ REPUSH_STRING;
+ if (pop_lit1 < cmd_str_ptr)
+ BEGIN
+ push_lit_stk (pop_lit1, pop_typ1);
+ END
+ else
+ BEGIN
+ STR_ROOM (LENGTH (pop_lit1));
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ push_lit_stk (make_string (), STK_STR);
+ END
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 379 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 380
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function empty$ pops the top literal and pushes
+ * the integer 1 if it's a missing field or a string having no
+ * non|white_space| characters, 0 otherwise. If the literal isn't a
+ * missing field or a string, it complains and pushes 0.
+ ***************************************************************************/
+void x_empty (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ switch (pop_typ1)
+ BEGIN
+ case STK_STR:
+
+/***************************************************************************
+ * WEB section number: 381
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we arrive here we're dealing with a legitimate string. If it has
+ * no characters, or has nothing but |white_space| characters, we push~1,
+ * otherwise we push~0.
+ ***************************************************************************/
+ BEGIN
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ if (lex_class[str_pool[sp_ptr]] != WHITE_SPACE)
+ BEGIN
+ push_lit_stk (0, STK_INT);
+ goto Exit_Label;
+ END
+ INCR (sp_ptr);
+ END
+ push_lit_stk (1, STK_INT);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 381 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case STK_FIELD_MISSING:
+ push_lit_stk (1, STK_INT);
+ break;
+ case STK_EMPTY:
+ push_lit_stk (0, STK_INT);
+ break;
+ default:
+ print_stk_lit (pop_lit1, pop_typ1);
+ BST_EX_WARN (", not a string or missing field,");
+ push_lit_stk (0, STK_INT);
+ break;
+ END
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 380 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 345
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function = pops the top two (integer or string)
+ * literals, compares them, and pushes the integer 1 if they're equal, 0
+ * otherwise. If they're not either both string or both integer, it
+ * complains and pushes the integer 0.
+ ***************************************************************************/
+void x_equals (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != pop_typ2)
+ BEGIN
+ if ((pop_typ1 != STK_EMPTY) && (pop_typ2 != STK_EMPTY))
+ BEGIN
+ print_stk_lit (pop_lit1, pop_typ1);
+ PRINT (", ");
+ print_stk_lit (pop_lit2, pop_typ2);
+ PRINT_NEWLINE;
+ BST_EX_WARN ("---they aren't the same literal types");
+ END
+ push_lit_stk (0, STK_INT);
+ END
+ else if ((pop_typ1 != STK_INT) && (pop_typ1 != STK_STR))
+ BEGIN
+ if (pop_typ1 != STK_EMPTY)
+ BEGIN
+ print_stk_lit (pop_lit1, pop_typ1);
+ BST_EX_WARN (", not an integer or a string,");
+ END
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ1 == STK_INT)
+ BEGIN
+ if (pop_lit2 == pop_lit1)
+ BEGIN
+ push_lit_stk (1, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (0, STK_INT);
+ END
+ END
+ else if (str_eq_str (pop_lit2, pop_lit1))
+ BEGIN
+ push_lit_stk (1, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (0, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 345 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 382
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function format.name$ pops the top three
+ * literals (they are a string, an integer, and a string literal, in that
+ * order). The last string literal represents a name list (each name
+ * corresponding to a person), the integer literal specifies which name
+ * to pick from this list, and the first string literal specifies how to
+ * format this name, as described in the \BibTeX\ documentation.
+ * Finally, this function pushes the formatted name. If any of the types
+ * is incorrect, it complains and pushes the null string.
+ ***************************************************************************/
+void x_format_name (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ pop_lit_stk (&pop_lit3, &pop_typ3);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_typ3 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit3, pop_typ3, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit3);
+
+/***************************************************************************
+ * WEB section number: 383
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module skips over undesired names in |pop_lit3| and it throws
+ * away the ``and'' from the end of the name if it exists. When it's
+ * done, |ex_buf_xptr| points to its first character and |ex_buf_ptr|
+ * points just past its last.
+ ***************************************************************************/
+ BEGIN
+ ex_buf_ptr = 0;
+ num_names = 0;
+ while ((num_names < pop_lit2) && (ex_buf_ptr < ex_buf_length))
+ BEGIN
+ INCR (num_names);
+ ex_buf_xptr = ex_buf_ptr;
+ name_scan_for_and (pop_lit3);
+ END
+ if (ex_buf_ptr < ex_buf_length)
+ BEGIN
+#ifdef UTF_8
+ if (ex_buf[ex_buf_ptr-3]==0xE3 || ex_buf[ex_buf_ptr-3]==0xEF)
+ /* expect U+3001 "ã€" or U+FF0C "," :: Ideographic/Fulwidth Comma */
+ ex_buf_ptr = ex_buf_ptr - 3;
+ else
+ /* expect "and " or "AND " */
+#endif
+ ex_buf_ptr = ex_buf_ptr - 4;
+ END
+ if (num_names < pop_lit2)
+ BEGIN
+ if (pop_lit2 == 1)
+ BEGIN
+ PRINT ("There is no name in \"");
+ END
+ else
+ BEGIN
+ PRINT2 ("There aren't %ld names in \"", (long) pop_lit2);
+ END
+ PRINT_POOL_STR (pop_lit3);
+ BST_EX_WARN ("\"");
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 383 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 387
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we arrive here, the desired name is in |ex_buf[ex_buf_xptr]|
+ * through |ex_buf[ex_buf_ptr-1]|. This module does its thing for
+ * characters only at |brace_level = 0|; the rest get processed verbatim.
+ * It removes leading |white_space| (and |sep_char|s), and trailing
+ * |white_space| (and |sep_char|s) and |comma|s, complaining for each
+ * trailing |comma|. It then copies the name into |name_buf|, removing
+ * all |white_space|, |sep_char|s and |comma|s, counting |comma|s, and
+ * constructing a list of name tokens, which are sequences of characters
+ * separated (at |brace_level=0|) by |white_space|, |sep_char|s or
+ * |comma|s. Each name token but the first has an associated
+ * |name_sep_char|, the character that separates it from the preceding
+ * token. If there are too many (more than two) |comma|s, a complaint is
+ * in order.
+ ***************************************************************************/
+ BEGIN
+/***************************************************************************
+ * WEB section number: 388
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module removes all leading |white_space| (and |sep_char|s), and
+ * trailing |white_space| (and |sep_char|s) and |comma|s. It complains
+ * for each trailing |comma|.
+ ***************************************************************************/
+ BEGIN
+ while ((ex_buf_xptr < ex_buf_ptr)
+ && (lex_class[ex_buf[ex_buf_ptr]] == WHITE_SPACE)
+ && (lex_class[ex_buf[ex_buf_ptr]] == SEP_CHAR))
+ BEGIN
+ INCR (ex_buf_xptr);
+ END
+ while (ex_buf_ptr > ex_buf_xptr)
+ BEGIN
+ switch (lex_class[ex_buf[ex_buf_ptr - 1]])
+ BEGIN
+ case WHITE_SPACE:
+ case SEP_CHAR:
+ DECR (ex_buf_ptr);
+ break;
+ default:
+ if (ex_buf[ex_buf_ptr - 1] == COMMA)
+ BEGIN
+ PRINT2 ("Name %ld in \"", (long) pop_lit2);
+ PRINT_POOL_STR (pop_lit3);
+ PRINT ("\" has a comma at the end");
+ bst_ex_warn_print ();
+ DECR (ex_buf_ptr);
+ END
+ else
+ BEGIN
+ goto Loop1_Exit_Label;
+ END
+ break;
+ END
+ END
+Loop1_Exit_Label: DO_NOTHING;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 388 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ name_bf_ptr = 0;
+ num_commas = 0;
+ num_tokens = 0;
+ token_starting = TRUE;
+ while (ex_buf_xptr < ex_buf_ptr)
+ BEGIN
+ switch (ex_buf[ex_buf_xptr])
+ BEGIN
+ case COMMA:
+
+/***************************************************************************
+ * WEB section number: 389
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we mark the token number at which this comma has occurred.
+ ***************************************************************************/
+ BEGIN
+ if (num_commas == 2)
+ BEGIN
+ PRINT2 ("Too many commas in name %ld of \"", (long) pop_lit2);
+ PRINT_POOL_STR (pop_lit3);
+ PRINT ("\"");
+ bst_ex_warn_print ();
+ END
+ else
+ BEGIN
+ INCR (num_commas);
+ if (num_commas == 1)
+ BEGIN
+ comma1 = num_tokens;
+ END
+ else
+ BEGIN
+ comma2 = num_tokens;
+ END
+ name_sep_char[num_tokens] = COMMA;
+ END
+ INCR (ex_buf_xptr);
+ token_starting = TRUE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 389 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case LEFT_BRACE:
+
+/***************************************************************************
+ * WEB section number: 390
+ * ~~~~~~~~~~~~~~~~~~~
+ * We copy the stuff up through the matching |right_brace| verbatim.
+ ***************************************************************************/
+ BEGIN
+ INCR (brace_level);
+ if (token_starting)
+ BEGIN
+ name_tok[num_tokens] = name_bf_ptr;
+ INCR (num_tokens);
+ END
+ NAME_BUF[name_bf_ptr] = ex_buf[ex_buf_xptr];
+ INCR (name_bf_ptr);
+ INCR (ex_buf_xptr);
+ while ((brace_level > 0) && (ex_buf_xptr < ex_buf_ptr))
+ BEGIN
+ if (ex_buf[ex_buf_xptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (brace_level);
+ END
+ else if (ex_buf[ex_buf_xptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ END
+ NAME_BUF[name_bf_ptr] = ex_buf[ex_buf_xptr];
+ INCR (name_bf_ptr);
+ INCR (ex_buf_xptr);
+ END
+ token_starting = FALSE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 390 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case RIGHT_BRACE:
+
+/***************************************************************************
+ * WEB section number: 391
+ * ~~~~~~~~~~~~~~~~~~~
+ * We don't copy an extra |right_brace|; this code will almost never be
+ * executed.
+ ***************************************************************************/
+ BEGIN
+ if (token_starting)
+ BEGIN
+ name_tok[num_tokens] = name_bf_ptr;
+ INCR (num_tokens);
+ END
+ PRINT2 ("Name %ld of \"", (long) pop_lit2);
+ PRINT_POOL_STR (pop_lit3);
+ BST_EX_WARN ("\" isn't brace balanced");
+ INCR (ex_buf_xptr);
+ token_starting = FALSE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 391 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+ switch (lex_class[ex_buf[ex_buf_xptr]])
+ BEGIN
+ case WHITE_SPACE:
+
+/***************************************************************************
+ * WEB section number: 392
+ * ~~~~~~~~~~~~~~~~~~~
+ * A token will be starting soon in a buffer near you, one way$\ldots$
+ ***************************************************************************/
+ BEGIN
+ if ( ! token_starting)
+ BEGIN
+ name_sep_char[num_tokens] = SPACE;
+ END
+ INCR (ex_buf_xptr);
+ token_starting = TRUE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 392 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case SEP_CHAR:
+
+/***************************************************************************
+ * WEB section number: 393
+ * ~~~~~~~~~~~~~~~~~~~
+ * or another. If one of the valid |sep_char|s appears between tokens,
+ * we usually use it instead of a |space|. If the user has been silly
+ * enough to have multiple |sep_char|s, or to have both |white_space| and
+ * a |sep_char|, we use the first such character.
+ ***************************************************************************/
+ BEGIN
+ if ( ! token_starting)
+ BEGIN
+ name_sep_char[num_tokens] = ex_buf[ex_buf_xptr];
+ END
+ INCR (ex_buf_xptr);
+ token_starting = TRUE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 393 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+
+/***************************************************************************
+ * WEB section number: 394
+ * ~~~~~~~~~~~~~~~~~~~
+ * For ordinary characters, we just copy the character.
+ ***************************************************************************/
+ BEGIN
+ if (token_starting)
+ BEGIN
+ name_tok[num_tokens] = name_bf_ptr;
+ INCR (num_tokens);
+ END
+ NAME_BUF[name_bf_ptr] = ex_buf[ex_buf_xptr];
+ INCR (name_bf_ptr);
+ INCR (ex_buf_xptr);
+ token_starting = FALSE;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 394 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ END
+ break;
+ END
+ END
+ name_tok[num_tokens] = name_bf_ptr;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 387 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 395
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we set all the pointers for the various parts of the name,
+ * depending on which of the three possible syntaxes this name uses.
+ ***************************************************************************/
+ BEGIN
+ if (num_commas == 0)
+ BEGIN
+ first_start = 0;
+ last_end = num_tokens;
+ jr_end = last_end;
+
+ /***************************************************************************
+ * WEB section number: 396
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there are no brace-level-0 |comma|s in the name, the von name
+ * starts with the first nonlast token whose first brace-level-0 letter
+ * is in lower case (for the purposes of this determination, an accented
+ * or foreign character at brace-level-1 that's in lower case will do, as
+ * well). A module following this one determines where the von name ends
+ * and the last starts.
+ ***************************************************************************/
+ BEGIN
+ von_start = 0;
+ while (von_start < (last_end - 1))
+ BEGIN
+ name_bf_ptr = name_tok[von_start];
+ name_bf_xptr = name_tok[von_start + 1];
+ if (von_token_found ())
+ BEGIN
+ von_name_ends_and_last_name_sta ();
+ goto Von_Found_Label;
+ END
+ INCR (von_start);
+ END
+ while (von_start > 0)
+ BEGIN
+ if ((lex_class[name_sep_char[von_start]] != SEP_CHAR)
+ || (name_sep_char[von_start] == TIE))
+ BEGIN
+ goto Loop2_Exit_Label;
+ END
+ DECR (von_start);
+ END
+ Loop2_Exit_Label: von_end = von_start;
+ Von_Found_Label: first_end = von_start;
+ END
+ /*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 396 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ else if (num_commas == 1)
+ BEGIN
+ von_start = 0;
+ last_end = comma1;
+ jr_end = last_end;
+ first_start = jr_end;
+ first_end = num_tokens;
+ von_name_ends_and_last_name_sta ();
+ END
+ else if (num_commas == 2)
+ BEGIN
+ von_start = 0;
+ last_end = comma1;
+ jr_end = comma2;
+ first_start = jr_end;
+ first_end = num_tokens;
+ von_name_ends_and_last_name_sta ();
+ END
+ else
+ BEGIN
+ CONFUSION ("Illegal number of comma,s");
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 395 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit1);
+ figure_out_the_formatted_name ();
+ add_pool_buf_and_push ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 382 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 354
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function := pops the top two literals and assigns
+ * to the first (which must be an |int_entry_var|, a |str_entry_var|, an
+ * |int_global_var|, or a |str_global_var|) the value of the second;
+ * it complains if the value isn't of the appropriate type.
+ ***************************************************************************/
+void x_gets (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_FN)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_FN);
+ END
+ else if (( ! mess_with_entries)
+ && ((fn_type[pop_lit1] == STR_ENTRY_VAR)
+ || (fn_type[pop_lit1] == INT_ENTRY_VAR)))
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else
+ BEGIN
+ switch (fn_type[pop_lit1])
+ BEGIN
+ case INT_ENTRY_VAR:
+
+/***************************************************************************
+ * WEB section number: 355
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module checks that what we're about to assign is really an
+ * integer, and then assigns.
+ ***************************************************************************/
+ if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ END
+ else
+ BEGIN
+ entry_ints[(cite_ptr * num_ent_ints) + FN_INFO[pop_lit1]] = pop_lit2;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 355 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case STR_ENTRY_VAR:
+
+/***************************************************************************
+ * WEB section number: 357
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module checks that what we're about to assign is really a
+ * string, and then assigns.
+ ***************************************************************************/
+ BEGIN
+ if (pop_typ2 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_STR);
+ END
+ else
+ BEGIN
+ str_ent_ptr = (cite_ptr * num_ent_strs) + FN_INFO[pop_lit1];
+ ent_chr_ptr = 0;
+ sp_ptr = str_start[pop_lit2];
+ sp_xptr1 = str_start[pop_lit2 + 1];
+ if ((sp_xptr1 - sp_ptr) > Ent_Str_Size)
+ BEGIN
+ BST_STRING_SIZE_EXCEEDED (Ent_Str_Size, ", the entry");
+ sp_xptr1 = sp_ptr + Ent_Str_Size;
+ END
+ while (sp_ptr < sp_xptr1)
+ BEGIN
+ ENTRY_STRS(str_ent_ptr, ent_chr_ptr) = str_pool[sp_ptr];
+ INCR (ent_chr_ptr);
+ INCR (sp_ptr);
+ END
+ ENTRY_STRS(str_ent_ptr, ent_chr_ptr) = END_OF_STRING;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 357 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case INT_GLOBAL_VAR:
+
+/***************************************************************************
+ * WEB section number: 358
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module checks that what we're about to assign is really an
+ * integer, and then assigns.
+ ***************************************************************************/
+ if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ END
+ else
+ BEGIN
+ FN_INFO[pop_lit1] = pop_lit2;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 358 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ case STR_GLOBAL_VAR:
+
+/***************************************************************************
+ * WEB section number: 359
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module checks that what we're about to assign is really a
+ * string, and then assigns.
+ ***************************************************************************/
+ BEGIN
+ if (pop_typ2 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_STR);
+ END
+ else
+ BEGIN
+ str_glb_ptr = FN_INFO[pop_lit1];
+ if (pop_lit2 < cmd_str_ptr)
+ BEGIN
+ glb_str_ptr[str_glb_ptr] = pop_lit2;
+ END
+ else
+ BEGIN
+ glb_str_ptr[str_glb_ptr] = 0;
+ glob_chr_ptr = 0;
+ sp_ptr = str_start[pop_lit2];
+ sp_end = str_start[pop_lit2 + 1];
+ if ((sp_end - sp_ptr) > Glob_Str_Size)
+ BEGIN
+ BST_STRING_SIZE_EXCEEDED (Glob_Str_Size, ", the global");
+ sp_end = sp_ptr + Glob_Str_Size;
+ END
+ while (sp_ptr < sp_end)
+ BEGIN
+ GLOBAL_STRS(str_glb_ptr, glob_chr_ptr) = str_pool[sp_ptr];
+ INCR (glob_chr_ptr);
+ INCR (sp_ptr);
+ END
+ glb_str_end[str_glb_ptr] = glob_chr_ptr;
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 359 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ break;
+ default:
+ PRINT ("You can't assign to type ");
+ print_fn_class (pop_lit1);
+ BST_EX_WARN (", a nonvariable function class");
+ break;
+ END
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 354 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 346
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function > pops the top two (integer) literals,
+ * compares them, and pushes the integer 1 if the second is greater than
+ * the first, 0 otherwise. If either isn't an integer literal, it
+ * complains and pushes the integer 0.
+ ***************************************************************************/
+void x_greater_than (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_lit2 > pop_lit1)
+ BEGIN
+ push_lit_stk (1, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (0, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 346 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 422
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function int.to.chr$ pops the top (integer)
+ * literal, interpreted as the |ASCII_code| of a single character,
+ * converts it to the corresponding single-character string, and pushes
+ * this string. If the literal isn't an appropriate integer, it
+ * complains and pushes the null string.
+ ***************************************************************************/
+void x_int_to_chr (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (s_null, STK_STR);
+ END
+#if UTF_8
+ else if ((pop_lit1 < 0) || (pop_lit1 > LAST_UCS_CHAR))
+#else
+ else if ((pop_lit1 < 0) || (pop_lit1 > LAST_ASCII_CHAR))
+#endif
+ BEGIN
+ BST_EX_WARN2 ("%ld isn't valid character code", (long) pop_lit1);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+ STR_ROOM (1);
+#if UTF_8
+ BEGIN
+ UChar ch0[3] = {0};
+ unsigned char ch1[5] = {0}, *ch;
+ if (pop_lit1> 0xFFFF)
+ BEGIN
+ ch0[0] = U16_LEAD(pop_lit1);
+ ch0[1] = U16_TRAIL(pop_lit1);
+ END
+ else
+ ch0[0] = pop_lit1;
+ icu_fromUChars(ch1, 5, ch0, 3);
+ ch=ch1;
+ while(*ch)
+ BEGIN
+ APPEND_CHAR (*ch);
+ INCR (ch);
+ END
+ END
+#else
+ APPEND_CHAR (pop_lit1);
+#endif
+ push_lit_stk (make_string (), STK_STR);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 422 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 423
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function int.to.str$ pops the top (integer)
+ * literal, converts it to its (unique) string equivalent, and pushes
+ * this string. If the literal isn't an integer, it complains and pushes
+ * the null string.
+ ***************************************************************************/
+void x_int_to_str (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+ int_to_ASCII (pop_lit1, ex_buf, 0, &ex_buf_length);
+ add_pool_buf_and_push ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 423 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 347
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function < pops the top two (integer) literals,
+ * compares them, and pushes the integer 1 if the second is less than the
+ * first, 0 otherwise. If either isn't an integer literal, it complains
+ * and pushes the integer 0.
+ ***************************************************************************/
+void x_less_than (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_lit2 < pop_lit1)
+ BEGIN
+ push_lit_stk (1, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (0, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 347 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 349
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function - pops the top two (integer) literals
+ * and pushes their difference (the first subtracted from the second).
+ * If either isn't an integer literal, it complains and pushes the
+ * integer 0.
+ ***************************************************************************/
+void x_minus (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (pop_lit2 - pop_lit1, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 349 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 424
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function missing$ pops the top literal and
+ * pushes the integer 1 if it's a missing field, 0 otherwise. If the
+ * literal isn't a missing field or a string, it complains and pushes 0.
+ * Unlike empty$ , this function should be called only when
+ * |mess_with_entries| is true.
+ ***************************************************************************/
+void x_missing (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if ( ! mess_with_entries)
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else if ((pop_typ1 != STK_STR) && (pop_typ1 != STK_FIELD_MISSING))
+ BEGIN
+ if (pop_typ1 != STK_EMPTY)
+ BEGIN
+ print_stk_lit (pop_lit1, pop_typ1);
+ BST_EX_WARN (", not a string or missing field,");
+ END
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ1 == STK_FIELD_MISSING)
+ BEGIN
+ push_lit_stk (1, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (0, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 424 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 426
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function num.names$ pops the top (string)
+ * literal; it pushes the number of names the string represents---one
+ * plus the number of occurrences of the substring ``and'' (ignoring case
+ * differences) surrounded by nonnull |white_space| at the top brace
+ * level. If the literal isn't a string, it complains and pushes the
+ * value 0.
+ ***************************************************************************/
+void x_num_names (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (0, STK_INT);
+ END
+ else
+ BEGIN
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit1);
+
+/***************************************************************************
+ * WEB section number: 427
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module, while scanning the list of names, counts the occurrences
+ * of ``and'' (ignoring case differences) surrounded by nonnull
+ * |white_space|, and adds 1.
+ ***************************************************************************/
+ BEGIN
+ ex_buf_ptr = 0;
+ num_names = 0;
+ while (ex_buf_ptr < ex_buf_length)
+ BEGIN
+ name_scan_for_and (pop_lit1);
+ INCR (num_names);
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 427 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ push_lit_stk (num_names, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 426 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 348
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function + pops the top two (integer) literals
+ * and pushes their sum. If either isn't an integer literal, it
+ * complains and pushes the integer 0.
+ ***************************************************************************/
+void x_plus (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (pop_lit2 + pop_lit1, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 348 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 429
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function preamble$ pushes onto the stack the
+ * concatenation of all the preamble strings read from the database
+ * files.
+ ***************************************************************************/
+void x_preamble (void)
+BEGIN
+ ex_buf_length = 0;
+ preamble_ptr = 0;
+ while (preamble_ptr < num_preamble_strings)
+ BEGIN
+ add_buf_pool (s_preamble[preamble_ptr]);
+ INCR (preamble_ptr);
+ END
+ add_pool_buf_and_push ();
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 429 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 430
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function purify$ pops the top (string) literal,
+ * removes nonalphanumeric characters except for |white_space| and
+ * |sep_char| characters (these get converted to a |space|) and removes
+ * certain alphabetic characters contained in the control sequences
+ * associated with a special character, and pushes the resulting string.
+ * If the literal isn't a string, it complains and pushes the null
+ * string.
+ ***************************************************************************/
+void x_purify (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit1);
+
+/***************************************************************************
+ * WEB section number: 431
+ * ~~~~~~~~~~~~~~~~~~~
+ * The resulting string has nonalphanumeric characters removed, and each
+ * |white_space| or |sep_char| character converted to a |space|. The next
+ * module handles special characters. This code doesn't complain if the
+ * string isn't brace balanced.
+ ***************************************************************************/
+ BEGIN
+ brace_level = 0;
+ ex_buf_xptr = 0;
+ ex_buf_ptr = 0;
+ while (ex_buf_ptr < ex_buf_length)
+ BEGIN
+ switch (lex_class[ex_buf[ex_buf_ptr]])
+ BEGIN
+ case WHITE_SPACE:
+ case SEP_CHAR:
+ BEGIN
+ ex_buf[ex_buf_xptr] = SPACE;
+ INCR (ex_buf_xptr);
+ END
+ break;
+ case ALPHA:
+ case NUMERIC:
+ BEGIN
+#ifdef UTF_8
+/*
+When we processe the character UTF-8, the length has been changed. This focntion is used in
+quick_sort. 23/sep/2009
+*/
+ DO_UTF8(ex_buf[ex_buf_ptr],
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_ptr];
+ ex_buf_xptr += 1,
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_ptr];
+ ex_buf[ex_buf_xptr+1] = ex_buf[ex_buf_ptr+1];
+ ex_buf_xptr += 2; ex_buf_ptr += 1,
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_ptr];
+ ex_buf[ex_buf_xptr+1] = ex_buf[ex_buf_ptr+1];
+ ex_buf[ex_buf_xptr+2] = ex_buf[ex_buf_ptr+2];
+ ex_buf_xptr += 3; ex_buf_ptr += 2,
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_ptr];
+ ex_buf[ex_buf_xptr+1] = ex_buf[ex_buf_ptr+1];
+ ex_buf[ex_buf_xptr+2] = ex_buf[ex_buf_ptr+2];
+ ex_buf[ex_buf_xptr+3] = ex_buf[ex_buf_ptr+3];
+ ex_buf_xptr += 4; ex_buf_ptr += 3);
+#else
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_ptr];
+ INCR (ex_buf_xptr);
+#endif
+ END
+ break;
+ default:
+ if (ex_buf[ex_buf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ if ((brace_level == 1) && ((ex_buf_ptr + 1) < ex_buf_length))
+ BEGIN
+ if (ex_buf[ex_buf_ptr + 1] == BACKSLASH)
+
+/***************************************************************************
+ * WEB section number: 432
+ * ~~~~~~~~~~~~~~~~~~~
+ * Special characters (even without a matching |right_brace|) are
+ * purified by removing the control sequences (but restoring the correct
+ * thing for `\i' and `\j' as well as the eleven alphabetic
+ * foreign characters in Table~3.2 of the \LaTeX\ manual) and removing
+ * all nonalphanumeric characters (including |white_space| and
+ * |sep_char|s).
+ ***************************************************************************/
+ BEGIN
+ INCR (ex_buf_ptr);
+ while ((ex_buf_ptr < ex_buf_length) && (brace_level > 0))
+ BEGIN
+ INCR (ex_buf_ptr);
+ ex_buf_yptr = ex_buf_ptr;
+ while ((ex_buf_ptr < ex_buf_length)
+ && (lex_class[ex_buf[ex_buf_ptr]] == ALPHA))
+ BEGIN
+ INCR (ex_buf_ptr);
+ END
+ control_seq_loc = str_lookup (ex_buf, ex_buf_yptr,
+ ex_buf_ptr - ex_buf_yptr,
+ CONTROL_SEQ_ILK,
+ DONT_INSERT);
+ if (hash_found)
+
+/***************************************************************************
+ * WEB section number: 433
+ * ~~~~~~~~~~~~~~~~~~~
+ * We consider the purified character to be either the first alphabetic
+ * character of its control sequence, or perhaps both alphabetic
+ * characters.
+ ***************************************************************************/
+ BEGIN
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_yptr];
+ INCR (ex_buf_xptr);
+ switch (ilk_info[control_seq_loc])
+ BEGIN
+ case N_OE:
+ case N_OE_UPPER:
+ case N_AE:
+ case N_AE_UPPER:
+ case N_SS:
+ BEGIN
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_yptr + 1];
+ INCR (ex_buf_xptr);
+ END
+ break;
+ default:
+ DO_NOTHING;
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 433 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ while ((ex_buf_ptr < ex_buf_length) && (brace_level > 0)
+ && (ex_buf[ex_buf_ptr] != BACKSLASH))
+ BEGIN
+ switch (lex_class[ex_buf[ex_buf_ptr]])
+ BEGIN
+ case ALPHA:
+ case NUMERIC:
+ BEGIN
+ ex_buf[ex_buf_xptr] = ex_buf[ex_buf_ptr];
+ INCR (ex_buf_xptr);
+ END
+ break;
+ default:
+ if (ex_buf[ex_buf_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (brace_level);
+ END
+ else if (ex_buf[ex_buf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ END
+ break;
+ END
+ INCR (ex_buf_ptr);
+ END
+ END
+ DECR (ex_buf_ptr);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 432 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ END
+ else if (ex_buf[ex_buf_ptr] == RIGHT_BRACE)
+ BEGIN
+ if (brace_level > 0)
+ BEGIN
+ DECR (brace_level);
+ END
+ END
+ break;
+ END
+ INCR (ex_buf_ptr);
+ END
+ ex_buf_length = ex_buf_xptr;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 431 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ add_pool_buf_and_push ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 430 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 434
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function quote$ pushes the string consisting of
+ * the |double_quote| character.
+ ***************************************************************************/
+void x_quote (void)
+BEGIN
+ STR_ROOM (1);
+ APPEND_CHAR (DOUBLE_QUOTE);
+ push_lit_stk (make_string (), STK_STR);
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 434 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 437
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function substring$ pops the top three literals
+ * (they are the two integers literals |pop_lit1| and |pop_lit2| and a
+ * string literal, in that order). It pushes the substring of the (at
+ * most) |pop_lit1| consecutive characters starting at the |pop_lit2|th
+ * character (assuming 1-based indexing) if |pop_lit2| is positive, and
+ * ending at the |-pop_lit2|th character from the end if |pop_lit2| is
+ * negative (where the first character from the end is the last
+ * character). If any of the types is incorrect, it complain and pushes
+ * the null string.
+ *
+ * Note: If |sp_length| is compared with a signed quantity (e.g. pop_lit2),
+ * must be first cast to |Integer_T| because it is an UNSIGNED variable.
+ ***************************************************************************/
+void x_substring (void)
+BEGIN
+
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ pop_lit_stk (&pop_lit3, &pop_typ3);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_typ3 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit3, pop_typ3, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+#ifdef UTF_8
+/*
+This is a new code of x_substring for processing the character UTF-8.
+We transform the character to Unicode and then get the substring, then
+back to UTF-8. 23/sep/2009
+*/
+ Integer_T str_length = LENGTH (pop_lit3);
+ UChar32 uchs[BUF_SIZE+1];
+ UChar uch16[BUF_SIZE+1];
+ int32_t utcap = BUF_SIZE+1;
+ int32_t ulen;
+ unsigned char frUch1[BUF_SIZE+1];
+ unsigned char frUch2[BUF_SIZE+1];
+ int32_t frUchCap = BUF_SIZE + 1;
+ int32_t lenfrUch;
+ int32_t ptrfrUch;
+
+ ulen = icu_toUChar32s(str_pool,str_start[pop_lit3],str_length,uchs,utcap,uch16);
+ sp_length = ulen;
+#else
+ sp_length = LENGTH (pop_lit3);
+#endif
+ if (pop_lit1 >= (Integer_T) sp_length)
+ BEGIN
+ if ((pop_lit2 == 1) || (pop_lit2 == -1))
+ BEGIN
+ REPUSH_STRING;
+ goto Exit_Label;
+ END
+ END
+
+ if ((pop_lit1 <= 0) || (pop_lit2 == 0)
+ || (pop_lit2 > (Integer_T) sp_length)
+ || (pop_lit2 < -(Integer_T) sp_length))
+ BEGIN
+ push_lit_stk (s_null, STK_STR);
+ goto Exit_Label;
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 438
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module finds the substring as described in the last section,
+ * and slides it into place in the string pool, if necessary.
+ ***************************************************************************/
+ BEGIN
+ if (pop_lit2 > 0)
+ BEGIN
+ if (pop_lit1 > (sp_length - (pop_lit2 - 1)))
+ BEGIN
+ pop_lit1 = sp_length - (pop_lit2 - 1);
+ END
+#ifdef UTF_8
+ lenfrUch = icu_fromUChar32s(frUch1, frUchCap, &uchs[pop_lit2-1], pop_lit1, uch16);
+ ptrfrUch = icu_fromUChar32s(frUch2, frUchCap, uchs, pop_lit2-1, uch16);
+ sp_ptr = str_start[pop_lit3] + ptrfrUch;
+ sp_end = sp_ptr + lenfrUch;
+#else
+ sp_ptr = str_start[pop_lit3] + (pop_lit2 - 1);
+ sp_end = sp_ptr + pop_lit1;
+#endif
+ if (pop_lit2 == 1)
+ BEGIN
+ if (pop_lit3 >= cmd_str_ptr)
+ BEGIN
+ str_start[pop_lit3 + 1] = sp_end;
+ UNFLUSH_STRING;
+ INCR (lit_stk_ptr);
+ goto Exit_Label;
+ END
+ END
+ END
+ else
+ BEGIN
+ pop_lit2 = -pop_lit2;
+ if (pop_lit1 > (Integer_T) (sp_length - (pop_lit2 - 1)))
+ BEGIN
+ pop_lit1 = sp_length - (pop_lit2 - 1);
+ END
+#ifdef UTF_8
+ lenfrUch = icu_fromUChar32s(frUch1, frUchCap, &uchs[ulen - (pop_lit2-1) - pop_lit1], pop_lit1, uch16);
+ ptrfrUch = icu_fromUChar32s(frUch2, frUchCap, uchs, ulen - (pop_lit2-1) - pop_lit1, uch16);
+ sp_ptr = str_start[pop_lit3] + ptrfrUch;
+ sp_end = sp_ptr + lenfrUch;
+#else
+ sp_end = str_start[pop_lit3 + 1] - (pop_lit2 - 1);
+ sp_ptr = sp_end - pop_lit1;
+#endif
+ END
+ STR_ROOM (sp_end - sp_ptr);
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ push_lit_stk (make_string (), STK_STR);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 438 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 437 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 439
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function swap$ pops the top two literals from
+ * the stack and pushes them back swapped.
+ ***************************************************************************/
+void x_swap (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if ((pop_typ1 != STK_STR) || (pop_lit1 < cmd_str_ptr))
+ BEGIN
+ push_lit_stk (pop_lit1, pop_typ1);
+ if ((pop_typ2 == STK_STR) && (pop_lit2 >= cmd_str_ptr))
+ BEGIN
+ UNFLUSH_STRING;
+ END
+ push_lit_stk (pop_lit2, pop_typ2);
+ END
+ else if ((pop_typ2 != STK_STR) || (pop_lit2 < cmd_str_ptr))
+ BEGIN
+ UNFLUSH_STRING;
+ push_lit_stk (pop_lit1, STK_STR);
+ push_lit_stk (pop_lit2, pop_typ2);
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 440
+ * ~~~~~~~~~~~~~~~~~~~
+ * We have to swap both (a)~the strings at the end of the string pool,
+ * and (b)~their pointers on the literal stack.
+ ***************************************************************************/
+ BEGIN
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit2);
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ push_lit_stk (make_string (), STK_STR);
+ add_pool_buf_and_push ();
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 440 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 439 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 441
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function text.length$ pops the top (string)
+ * literal, and pushes the number of text characters it contains, where
+ * an accented character (more precisely, a ``special character''$\!$,
+ * defined earlier) counts as a single text character, even if it's
+ * missing its matching |right_brace|, and where braces don't count as
+ * text characters. If the literal isn't a string, it complains and
+ * pushes the null string.
+ ***************************************************************************/
+void x_text_length (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+ num_text_chars = 0;
+
+/***************************************************************************
+ * WEB section number: 442
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we determine the number of text characters in the string, where
+ * an entire special character counts as a single text character (even if
+ * it's missing its matching |right_brace|), and where braces don't count
+ * as text characters.
+ ***************************************************************************/
+ BEGIN
+ sp_ptr = str_start[pop_lit1];
+ sp_end = str_start[pop_lit1 + 1];
+ sp_brace_level = 0;
+ while (sp_ptr < sp_end)
+ BEGIN
+ INCR (sp_ptr);
+ if (str_pool[sp_ptr - 1] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ if ((sp_brace_level == 1) && (sp_ptr < sp_end))
+ BEGIN
+ if (str_pool[sp_ptr] == BACKSLASH)
+ BEGIN
+ INCR (sp_ptr);
+ while ((sp_ptr < sp_end) && (sp_brace_level > 0))
+ BEGIN
+ if (str_pool[sp_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (sp_brace_level);
+ END
+ else if (str_pool[sp_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ END
+ INCR (sp_ptr);
+ END
+#ifdef UTF_8
+/*
+The length of character of UTF-8 is different. 23/sep/2009
+*/
+ DO_UTF8(str_pool[sp_ptr-1], , sp_ptr++, sp_ptr += 2, sp_ptr += 3);
+#endif
+ INCR (num_text_chars);
+ END
+ END
+ END
+ else if (str_pool[sp_ptr - 1] == RIGHT_BRACE)
+ BEGIN
+ if (sp_brace_level > 0)
+ BEGIN
+ DECR (sp_brace_level);
+ END
+ END
+ else
+ BEGIN
+#ifdef UTF_8
+/*
+The same for the length of character. 23/sep/2009
+*/
+ DO_UTF8(str_pool[sp_ptr-1], , sp_ptr++, sp_ptr += 2, sp_ptr += 3);
+#endif
+ INCR (num_text_chars);
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 442 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ push_lit_stk (num_text_chars, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 441 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 443
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function text.prefix$ pops the top two literals
+ * (the integer literal |pop_lit1| and a string literal, in that order).
+ * It pushes the substring of the (at most) |pop_lit1| consecutive text
+ * characters starting from the beginning of the string. This function
+ * is similar to substring$ , but this one considers an accented
+ * character (or more precisely, a ``special character''$\!$, even if
+ * it's missing its matching |right_brace|) to be a single text character
+ * (rather than however many |ASCII_code| characters it actually
+ * comprises), and this function doesn't consider braces to be text
+ * characters; furthermore, this function appends any needed matching
+ * |right_brace|s. If any of the types is incorrect, it complains and
+ * pushes the null string.
+ ***************************************************************************/
+void x_text_prefix (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_typ2 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_STR);
+ push_lit_stk (s_null, STK_STR);
+ END
+ else if (pop_lit1 <= 0)
+ BEGIN
+ push_lit_stk (s_null, STK_STR);
+ goto Exit_Label;
+ END
+ else
+
+/***************************************************************************
+ * WEB section number: 444
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module finds the prefix as described in the last section, and
+ * appends any needed matching |right_brace|s.
+ ***************************************************************************/
+ BEGIN
+ sp_ptr = str_start[pop_lit2];
+ sp_end = str_start[pop_lit2 + 1];
+
+/***************************************************************************
+ * WEB section number: 445
+ * ~~~~~~~~~~~~~~~~~~~
+ * This section scans |pop_lit1| text characters, where an entire special
+ * character counts as a single text character (even if it's missing its
+ * matching |right_brace|), and where braces don't count as text
+ * characters.
+ ***************************************************************************/
+ BEGIN
+ num_text_chars = 0;
+ sp_brace_level = 0;
+ sp_xptr1 = sp_ptr;
+ while ((sp_xptr1 < sp_end) && (num_text_chars < pop_lit1))
+ BEGIN
+ INCR (sp_xptr1);
+ if (str_pool[sp_xptr1 - 1] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ if ((sp_brace_level == 1) && (sp_xptr1 < sp_end))
+ BEGIN
+ if (str_pool[sp_xptr1] == BACKSLASH)
+ BEGIN
+ INCR (sp_xptr1);
+ while ((sp_xptr1 < sp_end) && (sp_brace_level > 0))
+ BEGIN
+ if (str_pool[sp_xptr1] == RIGHT_BRACE)
+ BEGIN
+ DECR (sp_brace_level);
+ END
+ else if (str_pool[sp_xptr1] == LEFT_BRACE)
+ BEGIN
+ INCR (sp_brace_level);
+ END
+ INCR (sp_xptr1);
+ END
+#ifdef UTF_8
+/*
+The same for the length of character UTF-8. 23/sep/2009
+*/
+ DO_UTF8(str_pool[sp_xptr1-1], , sp_xptr1++, sp_xptr1 += 2, sp_xptr1 += 3);
+#endif
+ INCR (num_text_chars);
+ END
+ END
+ END
+ else if (str_pool[sp_xptr1 - 1] == RIGHT_BRACE)
+ BEGIN
+ if (sp_brace_level > 0)
+ BEGIN
+ DECR (sp_brace_level);
+ END
+ END
+ else
+ BEGIN
+#ifdef UTF_8
+/*
+The same for the length of character UTF-8. 23/sep/2009
+*/
+ DO_UTF8(str_pool[sp_xptr1-1], , sp_xptr1++, sp_xptr1 += 2, sp_xptr1 += 3);
+#endif
+ INCR (num_text_chars);
+ END
+ END
+ sp_end = sp_xptr1;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 445 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ STR_ROOM (sp_brace_level + sp_end - sp_ptr);
+ if (pop_lit2 >= cmd_str_ptr)
+ BEGIN
+ pool_ptr = sp_end;
+ END
+ else
+ BEGIN
+ while (sp_ptr < sp_end)
+ BEGIN
+ APPEND_CHAR (str_pool[sp_ptr]);
+ INCR (sp_ptr);
+ END
+ END
+ while (sp_brace_level > 0)
+ BEGIN
+ APPEND_CHAR (RIGHT_BRACE);
+ DECR (sp_brace_level);
+ END
+ push_lit_stk (make_string (), STK_STR);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 444 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Label: DO_NOTHING;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 443 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 447
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function type$ pushes the appropriate string
+ * from |type_list| onto the stack (unless either it's |undefined| or
+ * |empty|, in which case it pushes the null string).
+ ***************************************************************************/
+void x_type (void)
+BEGIN
+ if ( ! mess_with_entries)
+ BEGIN
+ bst_cant_mess_with_entries_prin ();
+ END
+ else if ((type_list[cite_ptr] == UNDEFINED)
+ || (type_list[cite_ptr] == EMPTY))
+ BEGIN
+ push_lit_stk (s_null, STK_STR);
+ END
+ else
+ BEGIN
+ push_lit_stk (hash_text[type_list[cite_ptr]], STK_STR);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 447 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 448
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function warning$ pops the top (string) literal
+ * and prints it following a warning message. This is implemented as a
+ * special |built_in| function rather than using the top$ function
+ * so that it can |mark_warning|.
+ ***************************************************************************/
+void x_warning (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ END
+ else
+ BEGIN
+ PRINT ("Warning--");
+ print_lit (pop_lit1, pop_typ1);
+ mark_warning ();
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 448 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+#ifdef UTF_8
+Integer_T char_width_uni (ASCIICode_T * str)
+BEGIN
+ UChar32 ch;
+ U8_GET_OR_FFFD(str, 0, 0, -1, ch);
+ if (ch<=LAST_LATIN_CHAR)
+ return ( char_width[ch] );
+ else
+ BEGIN
+ switch ( u_getIntPropertyValue(ch, UCHAR_EAST_ASIAN_WIDTH) )
+ BEGIN
+ case U_EA_WIDE:
+ case U_EA_FULLWIDTH:
+ return ( 1000 );
+ case U_EA_HALFWIDTH:
+ return ( 500 );
+ case U_EA_NARROW:
+ case U_EA_NEUTRAL:
+ case U_EA_AMBIGUOUS:
+ default:
+ return ( 700 );
+ END
+ END
+END
+#endif
+
+/***************************************************************************
+ * WEB section number: 450
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function width$ pops the top (string) literal
+ * and pushes the integer that represents its width in units specified by
+ * the |char_width| array. This function takes the literal literally;
+ * that is, it assumes each character in the string is to be printed as
+ * is, regardless of whether the character has a special meaning to \TeX,
+ * except that special characters (even without their |right_brace|s) are
+ * handled specially. If the literal isn't a string, it complains and
+ * pushes~0.
+ ***************************************************************************/
+void x_width (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (0, STK_INT);
+ END
+ else
+ BEGIN
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit1);
+ string_width = 0;
+
+/***************************************************************************
+ * WEB section number: 451
+ * ~~~~~~~~~~~~~~~~~~~
+ * We use the natural width for all but special characters, and we
+ * complain if the string isn't brace-balanced.
+ ***************************************************************************/
+ BEGIN
+ brace_level = 0;
+ ex_buf_ptr = 0;
+ while (ex_buf_ptr < ex_buf_length)
+ BEGIN
+ if (ex_buf[ex_buf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ if ((brace_level == 1) && ((ex_buf_ptr + 1) < ex_buf_length))
+ BEGIN
+ if (ex_buf[ex_buf_ptr + 1] == BACKSLASH)
+
+/***************************************************************************
+ * WEB section number: 452
+ * ~~~~~~~~~~~~~~~~~~~
+ * We use the natural widths of all characters except that some
+ * characters have no width: braces, control sequences (except for the
+ * usual 13 accented and foreign characters, whose widths are given in
+ * the next module), and |white_space| following control sequences (even
+ * a null control sequence).
+ ***************************************************************************/
+ BEGIN
+ INCR (ex_buf_ptr);
+ while ((ex_buf_ptr < ex_buf_length) && (brace_level > 0))
+ BEGIN
+ INCR (ex_buf_ptr);
+ ex_buf_xptr = ex_buf_ptr;
+ while ((ex_buf_ptr < ex_buf_length)
+ && (lex_class[ex_buf[ex_buf_ptr]] == ALPHA))
+ BEGIN
+ INCR (ex_buf_ptr);
+ END
+ if ((ex_buf_ptr < ex_buf_length)
+ && (ex_buf_ptr == ex_buf_xptr))
+ BEGIN
+ INCR (ex_buf_ptr);
+ END
+ else
+ BEGIN
+ control_seq_loc = str_lookup (ex_buf, ex_buf_xptr,
+ ex_buf_ptr - ex_buf_xptr,
+ CONTROL_SEQ_ILK, DONT_INSERT);
+ if (hash_found)
+
+/***************************************************************************
+ * WEB section number: 453
+ * ~~~~~~~~~~~~~~~~~~~
+ * Five of the 13 possibilities resort to special information not present
+ * in the |char_width| array; the other eight simply use |char_width|'s
+ * information for the first letter of the control sequence.
+ ***************************************************************************/
+ BEGIN
+ switch (ilk_info[control_seq_loc])
+ BEGIN
+ case N_SS:
+ string_width = string_width + SS_WIDTH;
+ break;
+ case N_AE:
+ string_width = string_width + AE_WIDTH;
+ break;
+ case N_OE:
+ string_width = string_width + OE_WIDTH;
+ break;
+ case N_AE_UPPER:
+ string_width = string_width + UPPER_AE_WIDTH;
+ break;
+ case N_OE_UPPER:
+ string_width = string_width + UPPER_OE_WIDTH;
+ break;
+ default:
+ string_width = string_width
+ + char_width[ex_buf[ex_buf_xptr]];
+ break;
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 453 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ END
+ while ((ex_buf_ptr < ex_buf_length)
+ && (lex_class[ex_buf[ex_buf_ptr]] == WHITE_SPACE))
+ BEGIN
+ INCR (ex_buf_ptr);
+ END
+ while ((ex_buf_ptr < ex_buf_length) && (brace_level > 0)
+ && (ex_buf[ex_buf_ptr] != BACKSLASH))
+ BEGIN
+ if (ex_buf[ex_buf_ptr] == RIGHT_BRACE)
+ BEGIN
+ DECR (brace_level);
+ END
+ else if (ex_buf[ex_buf_ptr] == LEFT_BRACE)
+ BEGIN
+ INCR (brace_level);
+ END
+ else
+ BEGIN
+#if UTF_8
+ string_width = string_width
+ + char_width_uni(&ex_buf[ex_buf_ptr]);
+#else
+ string_width = string_width
+ + char_width[ex_buf[ex_buf_ptr]];
+#endif
+ END
+#if UTF_8
+ if (utf8len(ex_buf[ex_buf_ptr])>0)
+ ex_buf_ptr = ex_buf_ptr + utf8len(ex_buf[ex_buf_ptr]);
+ else
+ INCR (ex_buf_ptr);
+#else
+ INCR (ex_buf_ptr);
+#endif
+ END
+ END
+ DECR (ex_buf_ptr);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ else
+ BEGIN
+ string_width = string_width + char_width[LEFT_BRACE];
+ END
+ END
+ else
+ BEGIN
+ string_width = string_width + char_width[LEFT_BRACE];
+ END
+ END
+ else if (ex_buf[ex_buf_ptr] == RIGHT_BRACE)
+ BEGIN
+ decr_brace_level (pop_lit1);
+ string_width = string_width + char_width[RIGHT_BRACE];
+ END
+ else
+ BEGIN
+#if UTF_8
+ string_width = string_width + char_width_uni(&ex_buf[ex_buf_ptr]);
+#else
+ string_width = string_width + char_width[ex_buf[ex_buf_ptr]];
+#endif
+ END
+#if UTF_8
+ if (utf8len(ex_buf[ex_buf_ptr])>0)
+ ex_buf_ptr = ex_buf_ptr + utf8len(ex_buf[ex_buf_ptr]);
+ else
+ INCR (ex_buf_ptr);
+#else
+ INCR (ex_buf_ptr);
+#endif
+ END
+ check_brace_level (pop_lit1);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 451 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ push_lit_stk (string_width, STK_INT);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 450 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+
+/***************************************************************************
+ * WEB section number: 454
+ * ~~~~~~~~~~~~~~~~~~~
+ * The |built_in| function write$ pops the top (string) literal
+ * and writes it onto the output buffer |out_buf| (which will result in
+ * stuff being written onto the .bbl file if the buffer fills up). If
+ * the literal isn't a string, it complains but does nothing else.
+ ***************************************************************************/
+void x_write (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ END
+ else
+ BEGIN
+ add_out_pool (pop_lit1);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 454 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+void x_bit_and (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (pop_lit1 & pop_lit2, STK_INT);
+ END
+END
+void x_bit_or (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ pop_lit_stk (&pop_lit2, &pop_typ2);
+ if (pop_typ1 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else if (pop_typ2 != STK_INT)
+ BEGIN
+ print_wrong_stk_lit (pop_lit2, pop_typ2, STK_INT);
+ push_lit_stk (0, STK_INT);
+ END
+ else
+ BEGIN
+ push_lit_stk (pop_lit1 | pop_lit2, STK_INT);
+ END
+END
+#ifdef UTF_8
+
+#define FULLWIDTH_DIGIT_0 0xFF10
+#define FULLWIDTH_DIGIT_9 0xFF19
+#define FULLWIDTH_CAPITAL_A 0xFF21
+#define FULLWIDTH_CAPITAL_Z 0xFF3A
+#define FULLWIDTH_SMALL_A 0xFF41
+#define FULLWIDTH_SMALL_Z 0xFF5A
+#define HALFWIDTH_KATAKANA_WO 0xFF66
+#define HALFWIDTH_KATAKANA_SMALL_TSU 0xFF6F
+#define HALFWIDTH_KATAKANA_A 0xFF71
+#define HALFWIDTH_KATAKANA_N 0xFF9D
+
+void x_is_cjk_string (void)
+BEGIN
+ pop_lit_stk (&pop_lit1, &pop_typ1);
+ if (pop_typ1 != STK_STR)
+ BEGIN
+ print_wrong_stk_lit (pop_lit1, pop_typ1, STK_STR);
+ push_lit_stk (-1, STK_INT);
+ END
+ else
+ BEGIN
+ ex_buf_length = 0;
+ add_buf_pool (pop_lit1);
+ string_width = 0;
+ BEGIN
+ ex_buf_ptr = 0;
+ while (ex_buf_ptr < ex_buf_length)
+ BEGIN
+ UChar32 ch;
+ U8_NEXT_OR_FFFD(ex_buf, ex_buf_ptr, -1, ch);
+ switch ( ublock_getCode(ch) )
+ BEGIN
+ /* hanzi */
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS:
+ case UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS:
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A:
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B:
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C:
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D:
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E:
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F:
+ case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G:
+ string_width |= 0x001;
+ break;
+ /* kana */
+ case UBLOCK_HIRAGANA:
+ case UBLOCK_KATAKANA:
+ case UBLOCK_KATAKANA_PHONETIC_EXTENSIONS:
+ case UBLOCK_KANA_EXTENDED_A:
+ case UBLOCK_KANA_EXTENDED_B:
+ case UBLOCK_SMALL_KANA_EXTENSION:
+ string_width |= 0x002;
+ break;
+ /* hangul */
+ case UBLOCK_HANGUL_SYLLABLES:
+ case UBLOCK_HANGUL_JAMO:
+ case UBLOCK_HANGUL_JAMO_EXTENDED_A:
+ case UBLOCK_HANGUL_JAMO_EXTENDED_B:
+ case UBLOCK_HANGUL_COMPATIBILITY_JAMO:
+ string_width |= 0x004;
+ break;
+ /* bopomofo */
+ case UBLOCK_BOPOMOFO:
+ case UBLOCK_BOPOMOFO_EXTENDED:
+ string_width |= 0x008;
+ break;
+ case UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS:
+ /* Fullwidth ASCII variants except for U+FF01..FF0F, U+FF1A..FF20, U+FF3B..FF40, U+FF5B..FF5E */
+ if ( (FULLWIDTH_DIGIT_0 <=ch && ch<=FULLWIDTH_DIGIT_9 )
+ || (FULLWIDTH_CAPITAL_A<=ch && ch<=FULLWIDTH_CAPITAL_Z)
+ || (FULLWIDTH_SMALL_A <=ch && ch<=FULLWIDTH_SMALL_Z ) )
+ string_width |= 0x800;
+ /* Halfwidth Katakana variants except for U+FF65, U+FF70, U+FF9E..FF9F */
+ if ( (HALFWIDTH_KATAKANA_WO <=ch && ch<=HALFWIDTH_KATAKANA_SMALL_TSU )
+ || (HALFWIDTH_KATAKANA_A <=ch && ch<=HALFWIDTH_KATAKANA_N ) )
+ string_width |= 0x002;
+ break;
+ /* miscellaneous */
+ case UBLOCK_KANBUN:
+ case UBLOCK_KANGXI_RADICALS:
+ case UBLOCK_CJK_RADICALS_SUPPLEMENT:
+ string_width |= 0x800;
+ break;
+ END
+ END
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 451 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ push_lit_stk (string_width, STK_INT);
+ END
+END
+#endif
diff --git a/biblio/bibtex/bibtex-x/bibtex.c b/biblio/bibtex/bibtex-x/bibtex.c
new file mode 100644
index 0000000000..8df3f88c9d
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtex.c
@@ -0,0 +1,517 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: bibtex.c
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module contains the system-dependent C code for BibTeX.
+** There should NOT be any such code code in any of the bibtex-#.c
+** modules. Functions defined in this module are:
+**
+** a_close
+** a_open_in
+** a_open_out
+** eoln
+** main
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: bibtex.c,v $
+** Revision 3.71 1996/08/18 20:37:06 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:42 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+
+#define __BIBTEX_C__
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef KPATHSEA
+#include <kpathsea/config.h>
+#include <kpathsea/progname.h>
+#include <kpathsea/variable.h>
+#endif
+
+#include "sysdep.h"
+#include "bibtex.h"
+#include "datatype.h"
+#include "gblprocs.h"
+#include "gblvars.h"
+#include "utils.h"
+#include "version.h"
+
+
+/***************************************************************************
+ * WEB section number: 39
+ * ~~~~~~~~~~~~~~~~~~~
+ * Close the text file.
+ ***************************************************************************/
+void a_close (const AlphaFile_T file_pointer)
+BEGIN
+
+ close_file (file_pointer);
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+/***************************************************************************
+ * WEB section number: 38
+ * ~~~~~~~~~~~~~~~~~~~
+ * Open a text (ASCII) file in the current working directory for input.
+ ***************************************************************************/
+Boolean_T a_open_in (AlphaFile_T *file_pointer,
+ Integer_T search_path)
+BEGIN
+ *file_pointer = open_ip_file (search_path);
+
+ if (*file_pointer != NULL)
+ return TRUE;
+ else
+ return FALSE;
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 38
+ * ~~~~~~~~~~~~~~~~~~~
+ * Open a text (ASCII) file for output in the current directory.
+ ***************************************************************************/
+Boolean_T a_open_out (AlphaFile_T *file_pointer)
+BEGIN
+
+ *file_pointer = open_op_file ();
+
+ if (*file_pointer != (AlphaFile_T) NULL)
+ return TRUE;
+ else
+ return FALSE;
+
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+/***************************************************************************
+ * WEB section number: 47
+ * ~~~~~~~~~~~~~~~~~~~
+ * Standard \PASCAL\ says that a file should have |eoln| immediately
+ * before |eof|, but \BibTeX\ needs only a weaker restriction: If |eof|
+ * occurs in the middle of a line, the system function |eoln| should
+ * return a |true| result (even though |f^| will be undefined).
+ ***************************************************************************/
+Boolean_T eoln (const AlphaFile_T file_pointer)
+BEGIN
+ int c;
+
+ if (feof (file_pointer))
+ BEGIN
+ return (TRUE);
+ END
+ c = getc (file_pointer);
+ if (c != EOF)
+ BEGIN
+ (void) ungetc (c, file_pointer);
+ END
+ if (c == '\n' || c == '\r' || c == EOF)
+ BEGIN
+ return (TRUE);
+ END
+ else
+ BEGIN
+ return (FALSE);
+ END
+END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+
+
+
+/***************************************************************************
+ * WEB section number: 10
+ * ~~~~~~~~~~~~~~~~~~~
+ * This program first reads the .aux file that \LaTeX\ produces,
+ *
+ * 1. determining which .bib file(s) and .bst file to read and
+ * 2. constructing a list of cite keys in order of occurrence.
+ *
+ * The .aux file may have other .aux files nested
+ * within. Second, it reads and executes the .bst file,
+ *
+ * 1. determining how and in which order to process the
+ * database entries in the .bib file(s) corresponding to those cite
+ * keys in the list (or in some cases, to all the entries in the .bib
+ * file(s)),
+ * 2. determining what text to be output for each
+ * entry and determining any additional text to be output, and
+ * 3. outputting this text to the .bbl file.
+ *
+ * In addition, the program sends error messages and other remarks to the
+ * |log_file| and terminal.
+ ***************************************************************************/
+int main (int argc, char **argv)
+BEGIN
+ extern Integer8_T history;
+ int exit_status;
+#ifdef KPATHSEA
+ char *mpl;
+#endif
+
+ /*-
+ **------------------------------------------------------------------------
+ ** Set |log_file| initially to point to NULL. All writes to the log
+ ** check to see that |log_file| isn't NULL before writing.
+ **-----------------------------------------------------------------
+ */
+ log_file = NULL;
+
+ /*-----------------------------------------------------------------
+ * Set up a global label PROGRAM_EXIT which can be used if an
+ * error requiring an emergency stop is encountered.
+ *-----------------------------------------------------------------*/
+ if (setjmp (Exit_Program_Flag) == 1)
+ BEGIN
+ debug_msg (DBG_MISC, "arrived at setjmp (Exit_Program_Flag)");
+ goto Exit_Program_Label;
+ END
+
+ /*-----------------------------------------------------------------
+ * Set up a global label CLOSE_UP_SHOP which may be used when a
+ * fatal error is detected. Used by BIBTEX_OVERFLOW & CONFUSION.
+ *-----------------------------------------------------------------*/
+ if (setjmp (Close_Up_Shop_Flag) == 1)
+ BEGIN
+ debug_msg (DBG_MISC, "arrived at setjmp (Close_Up_Shop_Flag)");
+ goto Close_Up_Shop_Label;
+ END
+
+ number_of_command_line_args = argc;
+ command_line_arg_strings = (char **) argv;
+
+ history = SPOTLESS;
+ parse_cmd_line (argc, argv);
+
+#ifdef KPATHSEA
+ kpse_set_program_name(argv[0], PROGNAME);
+ mpl = kpse_var_value("max_print_line");
+ if (mpl)
+ BEGIN
+ max_print_line = atoi(mpl);
+ free(mpl);
+ END
+ else
+ max_print_line = 79; /* default */
+#endif
+
+ set_array_sizes ();
+ report_search_paths ();
+
+ initialize ();
+
+ if (log_file != NULL) {
+ FPRINTF (log_file, "%s-x%s (%s)\n", BANNER, EXT_VERSION, TL_VERSION);
+ FPRINTF (log_file, "Implementation: %s\n", IMPLEMENTATION);
+ FPRINTF (log_file, "Release version: %s\n", VERSION);
+#ifdef UTF_8
+ {
+ UVersionInfo icuVersion;
+ char icu_version[U_MAX_VERSION_STRING_LENGTH] = "";
+ UErrorCode err1 = U_ZERO_ERROR;
+ u_getVersion(icuVersion);
+ u_versionToString(icuVersion, icu_version);
+ FPRINTF (log_file, "Compiled with: ICU version %s\n", icu_version);
+
+ if (Flag_location)
+ u_coll = ucol_open(Str_location, &err1);
+ else
+ u_coll = ucol_open(NULL, &err1);
+ if (!U_SUCCESS(err1)) {
+ FPRINTF (log_file, "Error in opening ICU collator.\n");
+ exit(FATAL_EXIT_STATUS);
+ }
+ }
+#endif
+ FPRINTF (log_file, "\n");
+ }
+
+#ifdef SUPPORT_8BIT
+ /*
+ ** Read the CS file and setup the 8-bit character set handling.
+ ** Similar initialisation is done in the original initialise(), but
+ ** we do it in a separate function to simplify the code.
+ */
+ c8initialise ();
+#endif /* SUPPORT_8BIT */
+
+ if (Flag_stats)
+ report_bibtex_capacity ();
+
+
+
+/***************************************************************************
+ * WEB section number: 110
+ * ~~~~~~~~~~~~~~~~~~~
+ * We keep reading and processing input lines until none left. This is part
+ * of the main program; hence, because of the |aux_done| label, there's no
+ * BEGIN - END pair surrounding the entire module.
+ ***************************************************************************/
+ PRINT ("The top-level auxiliary file: ");
+ print_aux_name ();
+
+ /*-----------------------------------------------------------------
+ * Set up a global label AUX_DONE which can be used if an error is
+ * encountered while the .AUX file is being processed.
+ *-----------------------------------------------------------------*/
+ if (setjmp (Aux_Done_Flag) == 1)
+ BEGIN
+ debug_msg (DBG_MISC, "arrived at setjmp (Aux_Done_Flag)");
+ goto Aux_Done_Label;
+ END
+ LOOP
+ BEGIN
+ INCR (CUR_AUX_LINE);
+ if ( ! input_ln (CUR_AUX_FILE))
+ BEGIN
+ pop_the_aux_stack ();
+ END
+ else
+ BEGIN
+ get_aux_command_and_process ();
+ END
+ END
+
+Aux_Done_Label:
+
+#ifdef TRACE
+ if (Flag_trace)
+ TRACE_PR_LN ("Finished reading the auxiliary file(s)");
+#endif /* TRACE */
+
+ last_check_for_aux_errors ();
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 110 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+/***************************************************************************
+ * WEB section number: 151
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's the outer loop for reading the .bst file - it keeps reading and
+ * processing .bst commands until none left. This is part of the main
+ * program; hence, because of the |bst_done| label, there's no conventional
+ * BEGIN - END pair surrounding the entire module.
+ ***************************************************************************/
+ if (bst_str == 0)
+ BEGIN
+ goto No_Bst_File_Label;
+ END
+ bst_line_num = 0;
+ bbl_line_num = 1;
+ buf_ptr2 = last;
+
+ /*-----------------------------------------------------------------
+ * Set up a global label BST_DONE which can be used if an error is
+ * encountered while the .BST file is being processed.
+ *-----------------------------------------------------------------*/
+ if (setjmp (Bst_Done_Flag) == 1)
+ BEGIN
+ debug_msg (DBG_MISC, "arrived at setjmp (Bst_Done_Flag)");
+ goto Bst_Done_Label;
+ END
+ LOOP
+ BEGIN
+ if (!eat_bst_white_space ())
+ BEGIN
+ goto Bst_Done_Label;
+ END
+ get_bst_command_and_process ();
+ END
+#ifdef UTF_8
+ ucol_close(u_coll);
+#endif
+Bst_Done_Label:
+ a_close (bst_file);
+No_Bst_File_Label:
+ a_close (bbl_file);
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 151 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Close_Up_Shop_Label:
+
+/***************************************************************************
+ * WEB section number: 455
+ * ~~~~~~~~~~~~~~~~~~~
+ * This section does any last-minute printing and ends the program.
+ ***************************************************************************/
+ BEGIN
+ if ((read_performed) && ( ! reading_completed))
+ BEGIN
+ PRINT2 ("Aborted at line %ld of file ", (long) bib_line_num);
+ print_bib_name ();
+ END
+
+ trace_and_stat_printing ();
+
+ /*-
+ ** Report on BibTeX memory usage to log file.
+ */
+ TRACE_PR_NEWLINE;
+ TRACE_PR_LN ("Here's how much of BibTeX's memory you used:");
+ TRACE_PR_LN3 (" Cites: %6ld out of %ld",
+ (long) num_cites, (long) Max_Cites);
+ TRACE_PR_LN3 (" Fields: %6ld out of %ld",
+ (long) field_ptr, (long) Max_Fields);
+ TRACE_PR_LN3 (" Hash table: %6ld out of %ld",
+ (long) hash_used, (long) Hash_Size);
+ TRACE_PR_LN3 (" Strings: %6ld out of %ld",
+ (long) str_ptr, (long) Max_Strings);
+ TRACE_PR_LN3 (" Free string pool: %6ld out of %ld",
+ (long) pool_ptr, (long) Pool_Size);
+ TRACE_PR_LN3 (" Wizard functions: %6ld out of %ld",
+ (long) wiz_def_ptr, (long) Wiz_Fn_Space);
+
+
+/***************************************************************************
+ * WEB section number: 466
+ * ~~~~~~~~~~~~~~~~~~~
+ * Some implementations may wish to pass the |history| value to the
+ * operating system so that it can be used to govern whether or not other
+ * programs are started. Here we simply report the history to the user.
+ * The appropriate exit status will be passed to the operating system just
+ * before exiting.
+ ***************************************************************************/
+ switch (history)
+ BEGIN
+ case SPOTLESS:
+ DO_NOTHING;
+ break;
+ case WARNING_MESSAGE:
+ if (err_count == 1)
+ BEGIN
+ PRINT_LN ("(There was 1 warning)");
+ END
+ else
+ BEGIN
+ PRINT_LN2 ("(There were %ld warnings)", (long) err_count);
+ END
+ break;
+ case ERROR_MESSAGE:
+ if (err_count == 1)
+ BEGIN
+ PRINT_LN ("(There was 1 error message)");
+ END
+ else
+ BEGIN
+ PRINT_LN2 ("(There were %ld error messages)", (long) err_count);
+ END
+ break;
+ case FATAL_MESSAGE:
+ PRINT_LN ("(That was a fatal error)");
+ break;
+ default:
+ PRINT ("History is bunk");
+ print_confusion ();
+ break;
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 466 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+ a_close (log_file);
+ END
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 455 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
+
+Exit_Program_Label:
+
+ switch (history)
+ BEGIN
+ case SPOTLESS:
+ exit_status = NORMAL_EXIT_STATUS;
+ break;
+ case WARNING_MESSAGE:
+ exit_status = WARNING_EXIT_STATUS;
+ break;
+ case ERROR_MESSAGE:
+ exit_status = ERROR_EXIT_STATUS;
+ break;
+ case FATAL_MESSAGE:
+ default:
+ exit_status = FATAL_EXIT_STATUS;
+ break;
+ END
+
+ exit (exit_status);
+ return (exit_status);
+END
+
+/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
diff --git a/biblio/bibtex/bibtex-x/bibtex.h b/biblio/bibtex/bibtex-x/bibtex.h
new file mode 100644
index 0000000000..8f1e6ddf39
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtex.h
@@ -0,0 +1,1521 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: bibtex.h
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module defines the macros used in the BibTeX WEB source.
+** This file also contains the definitions that determine BibTeX's
+** processing capacity.
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: bibtex.h,v $
+** Revision 3.71 1996/08/18 20:47:30 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:43 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifndef __BIBTEX_H__
+#define __BIBTEX_H__ 1
+
+
+/***************************************************************************
+ * WEB section number: 1
+ * ~~~~~~~~~~~~~~~~~~~
+ * The BANNER string is defined here and should be changed whenever BibTeX
+ * is modified.
+ ***************************************************************************/
+#ifdef UTF_8
+# define BANNER "This is BibTeXu: a UTF-8 Big BibTeX version 0.99d"
+# define PROGNAME "bibtexu"
+# define SUPPORT_8BIT
+#else
+# ifdef SUPPORT_8BIT
+# define BANNER "This is 8-bit Big BibTeX version 0.99d"
+# else
+# define BANNER "This is Big BibTeX version 0.99d"
+# endif
+# define PROGNAME "bibtex8"
+#endif
+
+
+/***************************************************************************
+ * WEB section number: 2
+ * ~~~~~~~~~~~~~~~~~~~
+ * Terminal output goes to the file |TERM_OUT|, while terminal input comes
+ * from |TERM_IN|. On our system, these (system-dependent) files are
+ * already opened at the beginning of the program.
+ ***************************************************************************/
+#define TERM_OUT stdout
+#define TERM_IN stdin
+
+/***************************************************************************
+ * WEB section number: 3
+ * ~~~~~~~~~~~~~~~~~~~
+ * This program uses the term |print| instead of |write| when writing on
+ * both the |log_file| and (system-dependent) |term_out| file, and it
+ * uses |trace_pr| when in |trace| mode, for which it writes on just the
+ * |log_file|. If you want to change where either set of macros writes
+ * to, you should also change the other macros in this program for that
+ * set; each such macro begins with |print_| or |trace_pr_|.
+ ***************************************************************************/
+#define PRINT_NEWLINE print_a_newline ()
+
+#define PRINT(X) \
+ {\
+ if (log_file != NULL)\
+ FPRINTF (log_file, X);\
+ FPRINTF (TERM_OUT, X);\
+ }
+
+#define PRINT2(X, Y) \
+ {\
+ if (log_file != NULL)\
+ FPRINTF (log_file, X, Y);\
+ FPRINTF (TERM_OUT, X, Y);\
+ }
+
+#define PRINT3(X, Y, Z) \
+ {\
+ if (log_file != NULL)\
+ FPRINTF (log_file, X, Y, Z);\
+ FPRINTF (TERM_OUT, X, Y, Z);\
+ }
+
+#define PRINT4(W, X, Y, Z) \
+ {\
+ if (log_file != NULL)\
+ FPRINTF (log_file, W, X, Y, Z);\
+ FPRINTF (TERM_OUT, W, X, Y, Z);\
+ }
+
+#define PRINT_LN(X) \
+ {\
+ if (log_file != NULL) {\
+ FPRINTF (log_file, X); FPUTC ('\n', log_file);\
+ }\
+ FPRINTF (TERM_OUT, X); FPUTC('\n', TERM_OUT);\
+ }
+
+#define PRINT_LN2(X, Y) \
+ {\
+ if (log_file != NULL) {\
+ FPRINTF (log_file, X, Y); FPUTC ('\n', log_file);\
+ }\
+ FPRINTF (TERM_OUT, X, Y); FPUTC('\n', TERM_OUT);\
+ }
+
+#define PRINT_LN3(X, Y, Z) \
+ {\
+ if (log_file != NULL) {\
+ FPRINTF (log_file, X, Y, Z); FPUTC ('\n', log_file);\
+ }\
+ FPRINTF (TERM_OUT, X, Y, Z); FPUTC('\n', TERM_OUT);\
+ }
+
+#define PRINT_LN4(W, X, Y, Z) \
+ {\
+ if (log_file != NULL) {\
+ FPRINTF (log_file, W, X, Y, Z); FPUTC ('\n', log_file);\
+ }\
+ FPRINTF (TERM_OUT, W, X, Y, Z); FPUTC('\n', TERM_OUT);\
+ }
+
+#define TRACE_PR(X) \
+ if (log_file != NULL) FPRINTF (log_file, X);
+
+#define TRACE_PR2(X, Y) \
+ if (log_file != NULL) FPRINTF (log_file, X, Y);
+
+#define TRACE_PR3(X, Y, Z) \
+ if (log_file != NULL) FPRINTF (log_file, X, Y, Z);
+
+#define TRACE_PR_LN(X) \
+ {\
+ if (log_file != NULL) {\
+ FPRINTF (log_file, X); FPUTC ('\n', log_file);\
+ }\
+ }
+
+#define TRACE_PR_LN2(X, Y) \
+ {\
+ if (log_file != NULL) {\
+ FPRINTF (log_file, X, Y); FPUTC ('\n', log_file);\
+ }\
+ }
+
+#define TRACE_PR_LN3(X, Y, Z) \
+ {\
+ if (log_file != NULL) {\
+ FPRINTF (log_file, X, Y, Z); FPUTC ('\n', log_file);\
+ }\
+ }
+
+#define TRACE_PR_NEWLINE \
+ {\
+ if (log_file != NULL)\
+ FPUTC ('\n', log_file);\
+ }
+
+
+/***************************************************************************
+ * WEB section number: 4
+ * ~~~~~~~~~~~~~~~~~~~
+ * Some of the code is intended to be used only when diagnosing the strange
+ * behaviour that sometimes occurs when BibTeX is being installed or when
+ * system wizards are fooling around with BibTeX without quite knowing what
+ * they are doing. Such code will not normally be compiled; it is delimited
+ * by the preprocessor conditionals `#ifdef DEBUG ... #endif'. Similarly,
+ * there is some conditional code delimited by `#ifdef STAT ... #endif'
+ * that is intended only for use when statistics are to be kept about
+ * BibTeX's memory/CPU usage, and there is conditional code delimited by
+ * `#ifdef TRACE ... #endif' that is intended to be a trace facility for
+ * use mainly when debugging .BST files.
+ ***************************************************************************/
+#define DEBUG 1
+#define STAT 1
+#define TRACE 1
+
+/***************************************************************************
+ * WEB section number: 9
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here are some macros for common programming idioms.
+ ***************************************************************************/
+#define INCR(X) ++(X)
+#define DECR(X) --(X)
+#define LOOP while (TRUE)
+#define DO_NOTHING ;
+#define EMPTY 0
+#define ANY_VALUE 0
+
+/***************************************************************************
+ * WEB section number: 14
+ * ~~~~~~~~~~~~~~~~~~~
+ * These parameters may be changed at compile time to extend or reduce
+ * BiBTeX's capacity. They are set to accommodate a maximum of about 750
+ * cites when used with the standard styles.
+ ***************************************************************************/
+#define MIN_PRINT_LINE 3
+#ifdef KPATHSEA
+#define MAX_PRINT_LINE max_print_line
+#else
+#define MAX_PRINT_LINE 79
+#endif
+#define AUX_STACK_SIZE 20
+#define MAX_BIB_FILES 20
+
+#define BUF_SIZE 20000
+#define MAX_CITES 750
+#define MAX_FIELDS 5000
+#define MAX_STRINGS 4000
+#define POOL_SIZE 65000L
+
+#define MIN_CROSSREFS 2
+#define WIZ_FN_SPACE 3000
+#define SINGLE_FN_SPACE 50
+#define ENT_STR_SIZE 100
+#define GLOB_STR_SIZE 1000
+#define LIT_STK_SIZE 50
+
+
+/***************************************************************************
+ * WEB section number: 15
+ * ~~~~~~~~~~~~~~~~~~~
+ * These parameters can also be changed at compile time, but they're
+ * needed to define some WEB numeric macros so they must be defined
+ * themselves.
+ ***************************************************************************/
+#define HASH_SIZE 5000
+
+#ifdef MSDOS
+# define FILE_NAME_SIZE 64
+#else /* NOT MSDOS */
+# define FILE_NAME_SIZE 255
+#endif /* MSDOS */
+
+#define MAX_GLOB_STRS 10
+
+/***************************************************************************
+ * WEB section number: 18
+ * ~~~~~~~~~~~~~~~~~~~
+ * A global variable called |history| will contain one of four values at
+ * the end of every run: |spotless| means that no unusual messages were
+ * printed; |warning_message| means that a message of possible interest
+ * was printed but no serious errors were detected; |error_message| means
+ * that at least one error was found; |fatal_message| means that the
+ * program terminated abnormally. The value of |history| does not
+ * influence the behavior of the program; it is simply computed for the
+ * convenience of systems that might want to use such information.
+ ***************************************************************************/
+#define SPOTLESS 0
+#define WARNING_MESSAGE 1
+#define ERROR_MESSAGE 2
+#define FATAL_MESSAGE 3
+
+/***************************************************************************
+ * WEB section number: 23
+ * ~~~~~~~~~~~~~~~~~~~
+ * We shall use the |text_char| to stand for the data type of the
+ * characters that are converted to and from |ASCIICode_T| when they are
+ * input and output. We shall also assume that |text_char| consists of the
+ * elements |chr[FIRST_TEXT_CHAR]| through |chr[LAST_TEXT_CHAR]| inclusive.
+ * The following definitions should be adjusted if necessary.
+ ***************************************************************************/
+#define FIRST_TEXT_CHAR 0
+#define LAST_TEXT_CHAR 255
+
+#ifdef SUPPORT_8BIT
+#define LAST_ASCII_CHAR 255
+#else
+#define LAST_ASCII_CHAR 127
+#endif /* SUPPORT_8BIT */
+#ifdef UTF_8
+#define LAST_LATIN_CHAR 0x17F
+#define LAST_UCS_CHAR 0x10FFFF
+#else
+#define LAST_LATIN_CHAR LAST_ASCII_CHAR
+#endif
+
+
+/***************************************************************************
+ * WEB section number: 26
+ * ~~~~~~~~~~~~~~~~~~~
+ * Some of the ASCII codes without visible characters have been given
+ * symbolic names in this program because they are used with a special
+ * meaning. The |tab| character may be system dependent.
+ ***************************************************************************/
+#define NULL_CODE 0
+#define TAB 9
+#define SPACE 32
+#define INVALID_CODE 127
+
+/***************************************************************************
+ * WEB section number: 29
+ * ~~~~~~~~~~~~~~~~~~~
+ * Also, various characters are given symbolic names; all the ones this
+ * program uses are collected here. We use the sharp sign as the
+ * |concat_char|, rather than something more natural (like an ampersand),
+ * for uniformity of database syntax (ampersand is a valid character in
+ * identifiers).
+ ***************************************************************************/
+#define DOUBLE_QUOTE '"'
+#define NUMBER_SIGN '#'
+#define COMMENT '%'
+#define SINGLE_QUOTE '\''
+#define LEFT_PAREN '('
+#define RIGHT_PAREN ')'
+#define COMMA ','
+#define MINUS_SIGN '-'
+#define EQUALS_SIGN '='
+#define AT_SIGN '@'
+#define LEFT_BRACE '{'
+#define RIGHT_BRACE '}'
+#define PERIOD '.'
+#define QUESTION_MARK '?'
+#define EXCLAMATION_MARK '!'
+#define TIE '~'
+#define HYPHEN '-'
+#define STAR '*'
+#define CONCAT_CHAR '#'
+#define COLON ':'
+#define BACKSLASH '\\'
+
+/***************************************************************************
+ * WEB section number: 31
+ * ~~~~~~~~~~~~~~~~~~~~
+ * Every character has two types of the lexical classifications. The
+ * first type is general, and the second type tells whether the character
+ * is legal in identifiers.
+ ***************************************************************************/
+#define ILLEGAL 0
+#define WHITE_SPACE 1
+#define ALPHA 2
+#define NUMERIC 3
+#define SEP_CHAR 4
+#define OTHER_LEX 5
+#define LAST_LEX 5
+#define ILLEGAL_ID_CHAR 0
+#define LEGAL_ID_CHAR 1
+
+/***************************************************************************
+ * WEB section number: 35
+ * ~~~~~~~~~~~~~~~~~~~~
+ * Now we initialize the system-dependent |char_width| array, for which
+ * |space| is the only |white_space| character given a nonzero printing
+ * width. The widths here are taken from Stanford's June '87 cmr10 font
+ * and represent hundredths of a point (rounded), but since they're used
+ * only for relative comparisons, the units have no meaning.
+ ***************************************************************************/
+#define SS_WIDTH 500
+#define AE_WIDTH 722
+#define OE_WIDTH 778
+#define UPPER_AE_WIDTH 903
+#define UPPER_OE_WIDTH 1014
+
+/***************************************************************************
+ * WEB section number: 44
+ * ~~~~~~~~~~~~~~~~~~~~
+ * When something in the program wants to be bigger or something out
+ * there wants to be smaller, it's time to call it a run. Here's the
+ * first of several macros that have associated procedures so that they
+ * produce less inline code.
+ ***************************************************************************/
+#define BIBTEX_OVERFLOW(X, Y) {\
+ print_overflow ();\
+ PRINT_LN3 ("%s%ld\n", (X), (long) (Y));\
+ longjmp (Close_Up_Shop_Flag, 1);}
+
+/***************************************************************************
+ * WEB section number: 45
+ * ~~~~~~~~~~~~~~~~~~~~
+ * When something happens that the program thinks is impossible, call the
+ * maintainer.
+ ***************************************************************************/
+#define CONFUSION(X) {\
+ PRINT (X); print_confusion();\
+ longjmp (Close_Up_Shop_Flag, 1);}
+#define CONFUSION2(X, Y) {\
+ PRINT2 (X, Y); print_confusion();\
+ longjmp (Close_Up_Shop_Flag, 1);}
+
+/***************************************************************************
+ * WEB section number: 50
+ * ~~~~~~~~~~~~~~~~~~~~
+ * These macros send a string in |str_pool| to an output file.
+ ***************************************************************************/
+#define MAX_POP 3
+#define PRINT_POOL_STR(X) print_a_pool_str(X)
+#define TRACE_PR_POOL_STR(X) { out_pool_str(log_file, X);}
+
+/***************************************************************************
+ * WEB section number: 52
+ * ~~~~~~~~~~~~~~~~~~~
+ * Several of the elementary string operations are performed using WEB
+ * macros instead of using PASCAL procedures, because many of the operations
+ * are done quite frequently and we want to avoid the overhead of procedure
+ * calls. For example, here's a simple macro that computes the length of a
+ * string.
+ ***************************************************************************/
+#define LENGTH(s) (str_start[(s)+1] - str_start[s])
+
+/***************************************************************************
+ * WEB section number: 53
+ * ~~~~~~~~~~~~~~~~~~~
+ * Strings are created by appending character codes to |str_pool|. The macro
+ * called |append_char|, defined here, does not check to see if the value
+ * of |pool_ptr| is too high; this test is supposed to be made before
+ * |append_char| is used.
+ ***************************************************************************/
+#define APPEND_CHAR(X) {str_pool[pool_ptr] = (X);\
+ INCR(pool_ptr);}
+#define STR_ROOM(X) {while((pool_ptr+(X))>Pool_Size)\
+ pool_overflow();}
+
+/***************************************************************************
+ * WEB section number: 55
+ * ~~~~~~~~~~~~~~~~~~~
+ * These macros destroy an recreate the string at the end of the pool.
+ ***************************************************************************/
+#define FLUSH_STRING {DECR(str_ptr);\
+ pool_ptr=str_start[str_ptr];}
+#define UNFLUSH_STRING {INCR(str_ptr);\
+ pool_ptr=str_start[str_ptr];}
+
+/***************************************************************************
+ * WEB section number: 62
+ * ~~~~~~~~~~~~~~~~~~~
+ * This system-independent procedure converts upper-case characters to
+ * lower case for the specified part of |buf|. It is system independent
+ * because it uses only the internal representation for characters.
+ ***************************************************************************/
+#define CASE_DIFFERENCE ('a' - 'A')
+
+/***************************************************************************
+ * WEB section number: 64
+ * ~~~~~~~~~~~~~~~~~~~
+ * All static strings that BibTeX might have to search for, generally
+ * identifiers, are stored and retrieved by means of a fairly standard
+ * hash-table algorithm (but slightly altered here) called the method of
+ * ``coalescing lists'' (cf.\ Algorithm 6.4C in The Art of Computer
+ * Programming). Once a string enters the table, it is never removed.
+ * The actual sequence of characters forming a string is stored in the
+ * |str_pool| array.
+ ***************************************************************************/
+#define HASH_BASE (EMPTY + 1)
+#define HASH_MAX (HASH_BASE + Hash_Size - 1)
+#define HASH_IS_FULL ((hash_used) == (HASH_BASE))
+#define TEXT_ILK 0
+#define INTEGER_ILK 1
+#define AUX_COMMAND_ILK 2
+#define AUX_FILE_ILK 3
+#define BST_COMMAND_ILK 4
+#define BST_FILE_ILK 5
+#define BIB_FILE_ILK 6
+#define FILE_EXT_ILK 7
+#define FILE_AREA_ILK 8
+#define CITE_ILK 9
+#define LC_CITE_ILK 10
+#define BST_FN_ILK 11
+#define BIB_COMMAND_ILK 12
+#define MACRO_ILK 13
+#define CONTROL_SEQ_ILK 14
+#define LAST_ILK 14
+
+/***************************************************************************
+ * WEB section number: 68
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here is the subroutine that searches the the hash table for a (string,
+ * str_ilk) pair, where the string is of length l >= 0 and appears in
+ * |buffer[j..(j+l-1)]|. If it finds the pair, it returns the corresponding
+ * hash table location and sets the global variable |hash_found| to |TRUE|.
+ * Otherwise is sets |hash_found| to |FALSE|, and if the parameter
+ * |insert_it| is |TRUE|, it inserts the pair into the hash table, inserts
+ * the string into |str_pool| if not previously encountered, and returns its
+ * location. Note that two different pairs can have the same string but
+ * different |str_ilks|, in which case the second pair encountered, if
+ * |insert_it| were |TRUE|, would be inserted into the hash table though its
+ * string wouldn't be inserted into |str_pool| because it would already be
+ * there.
+ ***************************************************************************/
+#define MAX_HASH_VALUE (Hash_Prime + Hash_Prime - 2 + 127)
+#define DO_INSERT TRUE
+#define DONT_INSERT FALSE
+
+/***************************************************************************
+ * WEB section number: 73
+ * ~~~~~~~~~~~~~~~~~~~
+ * The longest pre-defined string determines type definitions used to
+ * insert the pre-defined strings into |str_pool|.
+ * Set to accommodate the longest translations of the environment variables.
+ ***************************************************************************/
+#define LONGEST_PDS MAX_FILE_NAME
+
+/***************************************************************************
+ * WEB section number: 78
+ * ~~~~~~~~~~~~~~~~~~~
+ * These constants all begin with |n_| and are used for the |case|
+ * statement that determines which command to execute. The variable
+ * |command_num| is set to one of these and is used to do the branching,
+ * but it must have the full |integer| range because at times it can
+ * assume an arbitrary |ilk_info| value (though it will be one of the
+ * values here when we actually use it).
+ ***************************************************************************/
+#define N_AUX_BIBDATA 0
+#define N_AUX_BIBSTYLE 1
+#define N_AUX_CITATION 2
+#define N_AUX_INPUT 3
+
+#define N_BST_ENTRY 0
+#define N_BST_EXECUTE 1
+#define N_BST_FUNCTION 2
+#define N_BST_INTEGERS 3
+#define N_BST_ITERATE 4
+#define N_BST_MACRO 5
+#define N_BST_READ 6
+#define N_BST_REVERSE 7
+#define N_BST_SORT 8
+#define N_BST_STRINGS 9
+
+#define N_BIB_COMMENT 0
+#define N_BIB_PREAMBLE 1
+#define N_BIB_STRING 2
+
+/***************************************************************************
+ * WEB section number: 80
+ * ~~~~~~~~~~~~~~~~~~~
+ * This section describes the various |buffer| scanning routines. The
+ * two global variables |buf_ptr1| and |buf_ptr2| are used in scanning an
+ * input line. Between scans, |buf_ptr1| points to the first character
+ * of the current token and |buf_ptr2| points to that of the next. The
+ * global variable |last|, set by the function |input_ln|, marks the end
+ * of the current line; it equals 0 at the end of the current file. All
+ * the procedures and functions in this section will indicate an
+ * end-of-line when it's the end of the file.
+ ***************************************************************************/
+#define TOKEN_LEN (buf_ptr2 - buf_ptr1)
+#define SCAN_CHAR buffer[buf_ptr2]
+
+/***************************************************************************
+ * WEB section number: 81
+ * ~~~~~~~~~~~~~~~~~~~
+ * These macros send the current token, in |buffer[buf_ptr1]| to
+ * |buffer[buf_ptr2-1]|, to an output file.
+ ***************************************************************************/
+#define PRINT_TOKEN print_a_token ();
+#define TRACE_PR_TOKEN out_token (log_file);
+
+/***************************************************************************
+ * WEB section number: 89
+ * ~~~~~~~~~~~~~~~~~~~
+ * These are the possible values for |scan_result|; they're set by the
+ * |scan_identifier| procedure and are described in the next section.
+ ***************************************************************************/
+#define ID_NULL 0
+#define SPECIFIED_CHAR_ADJACENT 1
+#define OTHER_CHAR_ADJACENT 2
+#define WHITE_ADJACENT 3
+
+/***************************************************************************
+ * WEB section number: 91
+ * ~~~~~~~~~~~~~~~~~~~
+ * The next two procedures scan for an integer, setting the global
+ * variable |token_value| to the corresponding integer.
+ ***************************************************************************/
+#define CHAR_VALUE (SCAN_CHAR - '0')
+
+/***************************************************************************
+ * WEB section number: 93
+ * ~~~~~~~~~~~~~~~~~~~
+ * This procedure scans for an integer, stopping at the first nondigit;
+ * it sets the value of |token_value| accordingly. It returns |true| if
+ * the token was a legal integer (i.e., consisted of an optional
+ * |minus_sign| followed by one or more digits).
+ ***************************************************************************/
+#define NEGATIVE (sign_length == 1)
+
+/***************************************************************************
+ * WEB section number: 98
+ * ~~~~~~~~~~~~~~~~~~~
+ * I mean, this is truly disgraceful ...
+ *
+ * Note: The |term_out| file is system dependent.
+ ***************************************************************************/
+#define SAM_YOU_MADE_THE_FILE_NAME_TOO {\
+ sam_too_long_file_name_print ();\
+ goto Aux_Not_Found_Label;}
+
+/***************************************************************************
+ * WEB section number: 99
+ * ~~~~~~~~~~~~~~~~~~~
+ * We've abused the user enough for one section; suffice it to
+ * say here that most of what we said last module still applies.
+ * Note: The |term_out| file is system dependent.
+ ***************************************************************************/
+#define SAM_YOU_MADE_THE_FILE_NAME_WRON {\
+ sam_wrong_file_name_print ();\
+ goto Aux_Not_Found_Label;}
+
+/***************************************************************************
+ * WEB section number: 104
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we set up definitions and declarations for files opened in this
+ * section. Each element in |aux_list| (except for
+ * |aux_list[aux_stack_size]|, which is always unused) is a pointer to
+ * the appropriate |str_pool| string representing the \.{.aux} file name.
+ * The array |aux_file| contains the corresponding \PASCAL\ |file|
+ * variables.
+ ***************************************************************************/
+#define CUR_AUX_STR aux_list[aux_ptr]
+#define CUR_AUX_FILE aux_file[aux_ptr]
+#define CUR_AUX_LINE aux_ln_stack[aux_ptr]
+
+/***************************************************************************
+ * WEB section number: 111
+ * ~~~~~~~~~~~~~~~~~~~
+ * When we find a bug, we print a message and flush the rest of the line.
+ * This macro must be called from within a procedure that has an |exit|
+ * label.
+ ***************************************************************************/
+#define AUX_ERR_RETURN {aux_err_print(); goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 112
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here are a bunch of macros whose print statements are used at least
+ * twice. Thus we save space by making the statements procedures. This
+ * macro complains when there's a repeated command that's to be used just
+ * once.
+ ***************************************************************************/
+#define AUX_ERR_ILLEGAL_ANOTHER(X) {aux_err_illegal_another_print (X);\
+ AUX_ERR_RETURN;}
+
+/***************************************************************************
+ * WEB section number: 113
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one complains when a command is missing its |right_brace|.
+ ***************************************************************************/
+#define AUX_ERR_NO_RIGHT_BRACE {\
+ PRINT2 ("No \"%c\"", xchr[RIGHT_BRACE]);\
+ AUX_ERR_RETURN;}
+
+/***************************************************************************
+ * WEB section number: 114
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one complains when a command has stuff after its |right_brace|.
+ ***************************************************************************/
+#define AUX_ERR_STUFF_AFTER_RIGHT_BRACE {\
+ PRINT2 ("Stuff after \"%c\"", xchr[RIGHT_BRACE]);\
+ AUX_ERR_RETURN;}
+
+/***************************************************************************
+ * WEB section number: 115
+ * ~~~~~~~~~~~~~~~~~~~
+ * And this one complains when a command has white space in its argument.
+ ***************************************************************************/
+#define AUX_ERR_WHITE_SPACE_IN_ARGUMENT {\
+ PRINT ("White space in argument");\
+ AUX_ERR_RETURN;}
+
+/***************************************************************************
+ * WEB section number: 117
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we introduce some variables for processing a \.{\\bibdata}
+ * command. Each element in |bib_list| (except for
+ * |bib_list[max_bib_files]|, which is always unused) is a pointer to the
+ * appropriate |str_pool| string representing the \.{.bib} file name.
+ * The array |bib_file| contains the corresponding \PASCAL\ |file|
+ * variables.
+ ***************************************************************************/
+#define CUR_BIB_STR bib_list[bib_ptr]
+#define CUR_BIB_FILE bib_file[bib_ptr]
+
+/***************************************************************************
+ * WEB section number: 122
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro is very similar to aux_err but it complains specifically about
+ * opening a file for a \bibdata command.
+ ***************************************************************************/
+#define OPEN_BIBDATA_AUX_ERR(X) {\
+ PRINT (X);\
+ print_bib_name();\
+ AUX_ERR_RETURN;}
+
+/***************************************************************************
+ * WEB section number: 129
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we introduce some variables for processing a \.{\\citation}
+ * command. Each element in |cite_list| (except for
+ * |cite_list[Max_Cites]|, which is always unused) is a pointer to the
+ * appropriate |str_pool| string. The cite-key list is kept in order of
+ * occurrence with duplicates removed.
+ ***************************************************************************/
+#define CUR_CITE_STR cite_list[cite_ptr]
+
+/***************************************************************************
+ * WEB section number: 133
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must check if (the lower-case version of) this cite key has been
+ * previously encountered, and proceed accordingly. The alias kludge
+ * helps make the stack space not overflow on some machines.
+ ***************************************************************************/
+#define EX_BUF1 ex_buf
+
+/***************************************************************************
+ * WEB section number: 144
+ * ~~~~~~~~~~~~~~~~~~~
+ * We must complain if anything's amiss.
+ ***************************************************************************/
+#define AUX_END_ERR(X) {\
+ aux_end1_err_print();\
+ PRINT (X);\
+ aux_end2_err_print();}
+
+/***************************************************************************
+ * WEB section number: 149
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a serious error parsing the .bst file, we flush the rest of
+ * the current command; a blank line is assumed to mark the end of a command
+ * (but for the purposes of error recovery only). Thus, error recovery will
+ * be better if style designers leave blank lines between .bst commands.
+ * This macro must be called from within a procedure that has an 'exit'
+ * label.
+ ***************************************************************************/
+#define BST_ERR_PRINT_AND_LOOK_FOR_BLAN {\
+ bst_err_print_and_look_for_blan();\
+ goto Exit_Label;}
+
+#define BST_ERR(X) {\
+ PRINT (X);\
+ bst_err_print_and_look_for_blan ();\
+ goto Exit_Label;}
+
+#define BST_ERR2(X, Y) {\
+ PRINT2 (X, Y);\
+ bst_err_print_and_look_for_blan ();\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 150
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a harmless error parsing the .bst file (harmless
+ * syntactically, at least) we give just a warning message.
+ ***************************************************************************/
+#define BST_WARN(X) {\
+ PRINT (X); bst_warn_print();}
+
+/***************************************************************************
+ * WEB section number: 153
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's often illegal to end a .bst command in certain places, and this is
+ * where we come to check.
+ ***************************************************************************/
+#define EAT_BST_WHITE_AND_EOF_CHECK(X) {\
+ if (! eat_bst_white_space()) {\
+ PRINT (X); BST_ERR(X);}}
+
+/***************************************************************************
+ * WEB section number: 156
+ * ~~~~~~~~~~~~~~~~~~~
+ * We need data structures for the function definitions, the entry
+ * variables, the global variables, and the actual entries corresponding
+ * to the cite-key list. First we define the classes of `function's used.
+ * Functions in all classes are of |bst_fn_ilk| except for |int_literal|s,
+ * which are of |integer_ilk|; and |str_literal|s, which are of
+ * |text_ilk|.
+ ***************************************************************************/
+#define BUILT_IN 0
+#define WIZ_DEFINED 1
+#define INT_LITERAL 2
+#define STR_LITERAL 3
+#define FIELD 4
+#define INT_ENTRY_VAR 5
+#define STR_ENTRY_VAR 6
+#define INT_GLOBAL_VAR 7
+#define STR_GLOBAL_VAR 8
+#define LAST_FN_CLASS 8
+
+/***************************************************************************
+ * WEB section number: 160
+ * ~~~~~~~~~~~~~~~~~~~
+ * Besides the function classes, we have types based on \BibTeX's
+ * capacity limitations and one based on what can go into the array
+ * |wiz_functions| explained below.
+ ***************************************************************************/
+#define QUOTE_NEXT_FN (HASH_BASE - 1)
+#define END_OF_DEF (HASH_MAX + 1)
+
+/***************************************************************************
+ * WEB section number: 161
+ * ~~~~~~~~~~~~~~~~~~~
+ * We store information about the \.{.bst} functions in arrays the same
+ * size as the hash-table arrays and in locations corresponding to their
+ * hash-table locations. The two arrays |fn_info| (an alias of
+ * |ilk_info| described earlier) and |fn_type| accomplish this: |fn_type|
+ * specifies one of the above classes, and |fn_info| gives information
+ * dependent on the class.
+ ***************************************************************************/
+#define FN_INFO ilk_info
+#define MISSING EMPTY
+
+/***************************************************************************
+ * WEB section number: 166
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro is used to scan all .bst identifiers. The argument supplies
+ * .bst command name. The associated procedure simply prints an error
+ * message.
+ ***************************************************************************/
+#define BST_IDENTIFIER_SCAN(X) {\
+ scan_identifier (RIGHT_BRACE, COMMENT, COMMENT);\
+ if ((scan_result == WHITE_ADJACENT) \
+ || (scan_result == SPECIFIED_CHAR_ADJACENT)) {DO_NOTHING;}\
+ else {bst_id_print(); BST_ERR(X)}}
+
+/***************************************************************************
+ * WEB section number: 167
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro just makes sure we're at a |left_brace|.
+ ***************************************************************************/
+#define BST_GET_AND_CHECK_LEFT_BRACE(X) {\
+ if (SCAN_CHAR != LEFT_BRACE) \
+ {bst_left_brace_print(); BST_ERR(X);}\
+ INCR (buf_ptr2);}
+
+/***************************************************************************
+ * WEB section number: 168
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro just makes sure we're at a |right_brace|.
+ ***************************************************************************/
+#define BST_GET_AND_CHECK_RIGHT_BRACE(X) {\
+ if (SCAN_CHAR != RIGHT_BRACE) \
+ {bst_right_brace_print(); BST_ERR(X);}\
+ INCR (buf_ptr2);}
+
+/***************************************************************************
+ * WEB section number: 169
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro complains if we've already encountered a function to be
+ * inserted into the hash table.
+ ***************************************************************************/
+#define CHECK_FOR_ALREADY_SEEN_FUNCTION(X) {\
+ if (hash_found) {\
+ already_seen_function_print(X);\
+ goto Exit_Label;}}
+
+/***************************************************************************
+ * WEB section number: 183
+ * ~~~~~~~~~~~~~~~~~~~
+ * We're about to start scanning tokens in a function definition. When a
+ * function token is illegal, we skip until it ends; a |white_space|
+ * character, an end-of-line, a |right_brace|, or a |comment| marks the
+ * end of the current token.
+ ***************************************************************************/
+#define SKIP_TOKEN(X) {\
+ PRINT (X);\
+ skip_token_print ();\
+ goto Next_Token_Label;}
+#define SKIP_TOKEN2(X, Y) {\
+ PRINT2 (X, Y);\
+ skip_token_print ();\
+ goto Next_Token_Label;}
+
+/***************************************************************************
+ * WEB section number: 184
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro is similar to the last one but is specifically for
+ * recursion in a |wiz_defined| function, which is illegal; it helps save
+ * space.
+ ***************************************************************************/
+#define SKIP_RECURSIVE_TOKEN { print_recursion_illegal (); \
+ goto Next_Token_Label;}
+
+/***************************************************************************
+ * WEB section number: 185
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here's another macro for saving some space when there's a problem with
+ * a token.
+ ***************************************************************************/
+#define SKIP_TOKEN_UNKNOWN_FUNCTION {skp_token_unknown_function_prin ();\
+ goto Next_Token_Label;}
+
+/***************************************************************************
+ * WEB section number: 186
+ * ~~~~~~~~~~~~~~~~~~~
+ * And another.
+ ***************************************************************************/
+#define SKIP_TOKEN_ILLEGAL_STUFF_AFTER {\
+ skip_illegal_stuff_after_token ();\
+ goto Next_Token_Label;}
+
+/***************************************************************************
+ * WEB section number: 194
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module marks the implicit function as being quoted, generates a
+ * name, and stores it in the hash table. This name is strictly internal
+ * to this program, starts with a |single_quote| (since that will make
+ * this function name unique), and ends with the variable |impl_fn_num|
+ * converted to ASCII. The alias kludge helps make the stack space not
+ * overflow on some machines.
+ ***************************************************************************/
+#define EX_BUF2 ex_buf
+
+/***************************************************************************
+ * WEB section number: 197
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module appends a character to |int_buf| after checking to make
+ * sure it will fit; for use in |int_to_ASCII|.
+ ***************************************************************************/
+#define APPEND_INT_CHAR(X) {\
+ if (int_ptr == Buf_Size)\
+ { buffer_overflow ();}\
+ int_buf[int_ptr] = (X);\
+ INCR (int_ptr); }
+
+/***************************************************************************
+ * WEB section number: 216
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we insert the just found |int_global_var| name into the hash
+ * table and record it as an |int_global_var|. Also, we initialize it by
+ * setting |fn_info[fn_loc]| to 0.
+ ***************************************************************************/
+#define END_OF_STRING INVALID_CODE
+
+/***************************************************************************
+ * WEB section number: 219
+ * ~~~~~~~~~~~~~~~~~~~
+ * These global variables are used ...
+ ***************************************************************************/
+#define UNDEFINED (HASH_MAX + 1)
+
+/***************************************************************************
+ * WEB section number: 221
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a serious error parsing a \.{.bib} file, we flush
+ * everything up to the beginning of the next entry.
+ ***************************************************************************/
+#define BIB_ERR(X) {\
+ PRINT (X);\
+ bib_err_print ();\
+ goto Exit_Label;}
+#define BIB_ERR2(X, Y) {\
+ PRINT2 (X, Y);\
+ bib_err_print ();\
+ goto Exit_Label;}
+#define BIB_ERR3(X, Y, Z) {\
+ PRINT3 (X, Y, Z);\
+ bib_err_print ();\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 222
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's a harmless error parsing a \.{.bib} file, we just give a
+ * warning message. This is always called after other stuff has been
+ * printed out.
+ ***************************************************************************/
+#define BIB_WARN(X) {\
+ PRINT (X);\
+ bib_warn_print ();}
+#define BIB_WARN_NEWLINE(X) {\
+ PRINT_LN (X);\
+ bib_warn_print ();}
+
+/***************************************************************************
+ * WEB section number: 229
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's often illegal to end a \.{.bib} command in certain places, and
+ * this is where we come to check.
+ ***************************************************************************/
+#define EAT_BIB_WHITE_AND_EOF_CHECK {\
+ if (! eat_bib_white_space())\
+ {eat_bib_print();\
+ goto Exit_Label;}}
+
+/***************************************************************************
+ * WEB section number: 230
+ * ~~~~~~~~~~~~~~~~~~~
+ * And here are a bunch of error-message macros, each called more than
+ * once, that thus save space as implemented. This one is for when one
+ * of two possible characters is expected while scanning.
+ ***************************************************************************/
+#define BIB_ONE_OF_TWO_EXPECTED_ERR(X, Y) {\
+ bib_one_of_two_print (X, Y);\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 231
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one's for an unexpected equals sign.
+ ***************************************************************************/
+#define BIB_EQUALS_SIGN_EXPECTED_ERR {\
+ bib_equals_sign_print ();\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 232
+ * ~~~~~~~~~~~~~~~~~~~
+ * This complains about unbalanced braces.
+ ***************************************************************************/
+#define BIB_UNBALANCED_BRACES_ERR {\
+ bib_unbalanced_braces_print ();\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 233
+ * ~~~~~~~~~~~~~~~~~~~
+ * And this one about an overly exuberant field.
+ ***************************************************************************/
+#define BIB_FIELD_TOO_LONG_ERR {\
+ bib_field_too_long_print ();\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 234
+ * ~~~~~~~~~~~~~~~~~~~
+ * This one is just a warning, not an error. It's for when something
+ * isn't (or might not be) quite right with a macro name.
+ ***************************************************************************/
+#define MACRO_NAME_WARNING(X) {\
+ macro_warn_print ();\
+ BIB_WARN_NEWLINE (X);}
+
+/***************************************************************************
+ * WEB section number: 235
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro is used to scan all \.{.bib} identifiers. The argument
+ * tells what was happening at the time. The associated procedure simply
+ * prints an error message.
+ ***************************************************************************/
+#define BIB_IDENTIFIER_SCAN_CHECK(X) {\
+ if ((scan_result == WHITE_ADJACENT) \
+ || (scan_result == SPECIFIED_CHAR_ADJACENT)) {DO_NOTHING;}\
+ else {bib_id_print(); BIB_ERR (X);}}
+
+/***************************************************************************
+ * WEB section number: 247
+ * ~~~~~~~~~~~~~~~~~~~
+ * The variables for the function
+ * |scan_and_store_the_field_value_and_eat_white| must be global since
+ * the functions it calls use them too. The alias kludge helps make the
+ * stack space not overflow on some machines.
+ ***************************************************************************/
+#define FIELD_VL_STR ex_buf
+#define FIELD_END ex_buf_ptr
+#define FIELD_START ex_buf_xptr
+
+/***************************************************************************
+ * WEB section number: 251
+ * ~~~~~~~~~~~~~~~~~~~
+ * Now we come to the stuff that actually accumulates the field value to
+ * be stored. This module copies a character into |field_vl_str| if it
+ * will fit; since it's so low level, it's implemented as a macro.
+ ***************************************************************************/
+#define COPY_CHAR(X) {\
+ if (FIELD_END == Buf_Size)\
+ { BIB_FIELD_TOO_LONG_ERR; }\
+ else\
+ { FIELD_VL_STR[FIELD_END] = (X);\
+ INCR (FIELD_END);}}
+
+/***************************************************************************
+ * WEB section number: 252
+ * ~~~~~~~~~~~~~~~~~~~
+ * The \.{.bib}-specific scanning function |compress_bib_white| skips
+ * over |white_space| characters within a string until hitting a nonwhite
+ * character; in fact, it does everything |eat_bib_white_space| does, but
+ * it also adds a |space| to |field_vl_str|. This function is never
+ * called if there are no |white_space| characters (or ends-of-line) to
+ * be scanned (though the associated macro might be). The function
+ * returns |false| if there is a serious syntax error.
+ ***************************************************************************/
+#define CHECK_FOR_AND_COMPRESS_BIB_WHIT {\
+ if ((lex_class[SCAN_CHAR] == WHITE_SPACE) || (buf_ptr2 == last)){\
+ if (! compress_bib_white ()) { goto Exit_Label;}}}
+
+/***************************************************************************
+ * WEB section number: 264
+ * ~~~~~~~~~~~~~~~~~~~
+ * If the cross-referenced entry isn't already on |cite_list| we add it
+ * (at least temporarily); if it is already on |cite_list| we update the
+ * cross-reference count, if necessary. Note that |all_entries| is
+ * |false| here. The alias kludge helps make the stack space not
+ * overflow on some machines.
+ ***************************************************************************/
+#define EXTRA_BUF out_buf
+
+/***************************************************************************
+ * WEB section number: 267
+ * ~~~~~~~~~~~~~~~~~~~
+ * The lower-case version of this database key must correspond to one in
+ * |cite_list|, or else |all_entries| must be |true|, if this entry is to
+ * be included in the reference list. Accordingly, this module sets
+ * |store_entry|, which determines whether the relevant information for
+ * this entry is stored. The alias kludge helps make the stack space not
+ * overflow on some machines.
+ ***************************************************************************/
+#define EX_BUF3 ex_buf
+
+/***************************************************************************
+ * WEB section number: 270
+ * ~~~~~~~~~~~~~~~~~~~
+ * This module, a simpler version of the
+ * |find_cite_locs_for_this_cite_key| function, exists primarily to
+ * compute |lc_xcite_loc|. When this code is executed we have
+ * |(all_entries) and (entry_cite_ptr >= all_marker) and (not
+ * entry_exists[entry_cite_ptr])|. The alias kludge helps make the stack
+ * space not overflow on some machines.
+ ***************************************************************************/
+#define EX_BUF4 ex_buf
+#define EX_BUF4_PTR ex_buf_ptr
+
+/***************************************************************************
+ * WEB section number: 277
+ * ~~~~~~~~~~~~~~~~~~~
+ * Occasionally we need to figure out the hash-table location of a given
+ * cite-key string and its lower-case equivalent. This function does
+ * that. To perform the task it needs to borrow a buffer, a need that
+ * gives rise to the alias kludge---it helps make the stack space not
+ * overflow on some machines (and while it's at it, it'll borrow a
+ * pointer, too). Finally, the function returns |true| if the cite key
+ * exists on |cite_list|, and its sets |cite_hash_found| according to
+ * whether or not it found the actual version (before |lower_case|ing) of
+ * the cite key; however, its {\sl raison d'\^$\mkern-8mu$etre\/}
+ * (literally, ``to eat a raisin'') is to compute |cite_loc| and
+ * |lc_cite_loc|.
+ ***************************************************************************/
+#define EX_BUF5 ex_buf
+#define EX_BUF5_PTR ex_buf_ptr
+
+/***************************************************************************
+ * WEB section number: 289
+ * ~~~~~~~~~~~~~~~~~~~
+ * The array |sorted_cites| initially specifies that the entries are to
+ * be processed in order of cite-key occurrence. The \.{sort} command
+ * may change this to whatever it likes (which, we hope, is whatever the
+ * style-designer instructs it to like). We make |sorted_cites| an alias
+ * to save space; this works fine because we're done with |cite_info|.
+ ***************************************************************************/
+#define SORTED_CITES cite_info
+
+/***************************************************************************
+ * WEB section number: 291
+ * ~~~~~~~~~~~~~~~~~~~
+ * Where |lit_stk_loc| is a stack location, and where |stk_type| gives
+ * one of the three types of literals (an integer, a string, or a
+ * function) or a special marker. If a |lit_stk_type| element is a
+ * |stk_int| then the corresponding |lit_stack| element is an integer; if
+ * a |stk_str|, then a pointer to a |str_pool| string; and if a |stk_fn|,
+ * then a pointer to the function's hash-table location. However, if the
+ * literal should have been a |stk_str| that was the value of a field
+ * that happened to be |missing|, then the special value
+ * |stk_field_missing| goes on the stack instead; its corresponding
+ * |lit_stack| element is a pointer to the field-name's string. Finally,
+ * |stk_empty| is the type of a literal popped from an empty stack.
+ ***************************************************************************/
+#define STK_INT 0
+#define STK_STR 1
+#define STK_FN 2
+#define STK_FIELD_MISSING 3
+#define STK_EMPTY 4
+#define LAST_LIT_TYPE 4
+
+/***************************************************************************
+ * WEB section number: 293
+ * ~~~~~~~~~~~~~~~~~~~
+ * When there's an error while executing \.{.bst} functions, what we do
+ * depends on whether the function is messing with the entries.
+ * Furthermore this error is serious enough to classify as an
+ * |error_message| instead of a |warning_message|. These messages (that
+ * is, from |bst_ex_warn|) are meant both for the user and for the style
+ * designer while debugging.
+ ***************************************************************************/
+#define BST_EX_WARN(X) {\
+ PRINT (X); bst_ex_warn_print ();}
+#define BST_EX_WARN2(X, Y) {\
+ PRINT2 (X, Y); bst_ex_warn_print ();}
+
+/***************************************************************************
+ * WEB section number: 294
+ * ~~~~~~~~~~~~~~~~~~~
+ * When an error is so harmless, we print a warning message instead of an
+ * error message.
+ ***************************************************************************/
+#define BST_MILD_EX_WARN(X) {\
+ PRINT (X); bst_mild_ex_warn_print ();}
+
+/***************************************************************************
+ * WEB section number: 301
+ * ~~~~~~~~~~~~~~~~~~~
+ * The function |less_than| compares the two \.{sort.key\$}s indirectly
+ * pointed to by its arguments and returns |true| if the first argument's
+ * \.{sort.key\$} is lexicographically less than the second's (that is,
+ * alphabetically earlier). In case of ties the function compares the
+ * indices |arg1| and |arg2|, which are assumed to be different, and
+ * returns |true| if the first is smaller. This function uses
+ * |ASCII_code|s to compare, so it might give ``interesting'' results
+ * when handling nonletters.
+ ***************************************************************************/
+#define COMPARE_RETURN(X) {\
+ less_than = (X);\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 302
+ * ~~~~~~~~~~~~~~~~~~~
+ * The recursive procedure |quick_sort| sorts ...
+ ***************************************************************************/
+#define SHORT_LIST 10
+#define END_OFFSET 4
+
+/***************************************************************************
+ * WEB section number: 308
+ * ~~~~~~~~~~~~~~~~~~~
+ * This macro pushes the last thing, necessarily a string, that was
+ * popped. And this module, along with others that push the literal
+ * stack without explicitly calling |push_lit_stack|, have an index entry
+ * under ``push the literal stack''; these implicit pushes collectively
+ * speed up the program by about ten percent.
+ ***************************************************************************/
+#define REPUSH_STRING {\
+ if (lit_stack[lit_stk_ptr] >= cmd_str_ptr)\
+ { UNFLUSH_STRING; }\
+ INCR (lit_stk_ptr);}
+
+/***************************************************************************
+ * WEB section number: 319
+ * ~~~~~~~~~~~~~~~~~~~
+ * These macros append a character to |ex_buf|. Which is called depends
+ * on whether the character is known to fit.
+ ***************************************************************************/
+#define APPEND_EX_BUF_CHAR(X) {\
+ ex_buf[ex_buf_ptr] = (X);\
+ INCR(ex_buf_ptr);}
+#define APPEND_EX_BUF_CHAR_AND_CHECK(X) {\
+ if (ex_buf_ptr == Buf_Size) {buffer_overflow ();}; \
+ APPEND_EX_BUF_CHAR(X)}
+
+/***************************************************************************
+ * WEB section number: 333
+ * ~~~~~~~~~~~~~~~~~~~
+ * These constants all begin with |n_| and are used for the |case|
+ * statement that determines which |built_in| function to execute.
+ ***************************************************************************/
+#define N_EQUALS 0
+#define N_GREATER_THAN 1
+#define N_LESS_THAN 2
+#define N_PLUS 3
+#define N_MINUS 4
+#define N_CONCATENATE 5
+#define N_GETS 6
+#define N_ADD_PERIOD 7
+#define N_CALL_TYPE 8
+#define N_CHANGE_CASE 9
+#define N_CHR_TO_INT 10
+#define N_CITE 11
+#define N_DUPLICATE 12
+#define N_EMPTY 13
+#define N_FORMAT_NAME 14
+#define N_IF 15
+#define N_INT_TO_CHR 16
+#define N_INT_TO_STR 17
+#define N_MISSING 18
+#define N_NEWLINE 19
+#define N_NUM_NAMES 20
+#define N_POP 21
+#define N_PREAMBLE 22
+#define N_PURIFY 23
+#define N_QUOTE 24
+#define N_SKIP 25
+#define N_STACK 26
+#define N_SUBSTRING 27
+#define N_SWAP 28
+#define N_TEXT_LENGTH 29
+#define N_TEXT_PREFIX 30
+#define N_TOP_STACK 31
+#define N_TYPE 32
+#define N_WARNING 33
+#define N_WHILE 34
+#define N_WIDTH 35
+#define N_WRITE 36
+#define N_BIT_AND 37
+#define N_BIT_OR 38
+#ifdef UTF_8
+#define N_IS_CJK_STRING 39
+#define NUM_BLT_IN_FNS 40
+#else
+#define NUM_BLT_IN_FNS 39
+#endif
+
+/***************************************************************************
+ * WEB section number: 338
+ * ~~~~~~~~~~~~~~~~~~~
+ * These constants all begin with |n_| and are used for the |case|
+ * statement that determines which, if any, control sequence we're
+ * dealing with; a control sequence of interest will be either one of the
+ * undotted characters `\.{\\i}' or `\.{\\j}' or one of the foreign
+ * characters in Table~3.2 of the \LaTeX\ manual.
+ ***************************************************************************/
+#define N_I 0
+#define N_J 1
+#define N_OE 2
+#define N_OE_UPPER 3
+#define N_AE 4
+#define N_AE_UPPER 5
+#define N_AA 6
+#define N_AA_UPPER 7
+#define N_O 8
+#define N_O_UPPER 9
+#define N_L 10
+#define N_L_UPPER 11
+#define N_SS 12
+
+/***************************************************************************
+ * WEB section number: 344
+ * ~~~~~~~~~~~~~~~~~~~
+ * These are nonrecursive variables that |execute_fn| uses. Declaring
+ * them here (instead of in the previous module) saves execution time and
+ * stack space on most machines.
+ ***************************************************************************/
+#define NAME_BUF sv_buffer
+
+/***************************************************************************
+ * WEB section number: 356
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's time for a complaint if either of the two (entry or global) string
+ * lengths is exceeded.
+ ***************************************************************************/
+#define BST_STRING_SIZE_EXCEEDED(X, Y) {\
+ bst_1print_string_size_exceeded ();\
+ PRINT3 ("%ld%s", (long) (X), Y);\
+ bst_2print_string_size_exceeded ();}
+
+/***************************************************************************
+ * WEB section number: 365
+ * ~~~~~~~~~~~~~~~~~~~
+ * First we define a few variables for case conversion. The constant
+ * definitions, to be used in |case| statements, are in order of probable
+ * frequency.
+ ***************************************************************************/
+#define TITLE_LOWERS 0
+#define ALL_LOWERS 1
+#define ALL_UPPERS 2
+#define BAD_CONVERSION 3
+
+/***************************************************************************
+ * WEB section number: 397
+ * ~~~~~~~~~~~~~~~~~~~
+ * It's a von token if there exists a first brace-level-0 letter (or
+ * brace-level-1 special character), and it's in lower case; in this case
+ * we return |true|. The token is in |name_buf|, starting at
+ * |name_bf_ptr| and ending just before |name_bf_xptr|.
+ ***************************************************************************/
+#define RETURN_VON_FOUND {\
+ von_token_found = TRUE;\
+ goto Exit_Label;}
+
+/***************************************************************************
+ * WEB section number: 417
+ * ~~~~~~~~~~~~~~~~~~~
+ * Here we output either the \.{.bst} given string if it exists, or else
+ * the \.{.bib} |sep_char| if it exists, or else the default string. A
+ * |tie| is the default space character between the last two tokens of
+ * the name part, and between the first two tokens if the first token is
+ * short enough; otherwise, a |space| is the default.
+ ***************************************************************************/
+#define LONG_TOKEN 3
+
+/***************************************************************************
+ * WEB section number: 419
+ * ~~~~~~~~~~~~~~~~~~~
+ * If the last character output for this name part is a |tie| but the
+ * previous character it isn't, we're dealing with a discretionary |tie|;
+ * thus we replace it by a |space| if there are enough characters in the
+ * rest of the name part.
+ ***************************************************************************/
+#define LONG_NAME 3
+
+/***************************************************************************
+ * WEB section number: 465
+ * ~~~~~~~~~~~~~~~~~~~
+ * These statistics can help determine how large some of the constants
+ * should be and can tell how useful certain |built_in| functions are.
+ * They are written to the same files as tracing information.
+ ***************************************************************************/
+#define STAT_PR TRACE_PR
+#define STAT_PR2 TRACE_PR2
+#define STAT_PR3 TRACE_PR3
+
+#define STAT_PR_LN TRACE_PR_LN
+#define STAT_PR_LN2 TRACE_PR_LN2
+#define STAT_PR_LN3 TRACE_PR_LN3
+
+#define STAT_PR_POOL_STR TRACE_PR_POOL_STR
+
+
+/***************************************************************************
+ * WEB section number: N/A
+ * ~~~~~~~~~~~~~~~~~~~
+ * C isn't very good at declaring two dimensional arrays whose sizes are
+ * determined at run time. Here we create a useful macro to simulate
+ * accessing a 2D array by converting the row/col into an offset from the
+ * beginning of a 1D array.
+ ***************************************************************************/
+#define ENTRY_STRS(_r,_c) entry_strs[(_r * (Ent_Str_Size+1)) + _c]
+#define GLOBAL_STRS(_r,_c) global_strs[(_r * (Glob_Str_Size+1)) + _c]
+
+
+/***************************************************************************
+ * WEB section number: N/A
+ * ~~~~~~~~~~~~~~~~~~~
+ * Define a macro to handle 1-, 2-, 3-, and 4-byte UTF-8 codes.
+ ***************************************************************************/
+#define DO_UTF8(ch, do_1, do_2, do_3, do_4) \
+ if (ch <= 0x7F) { do_1; } \
+ else if ((ch >= 0xC2) && (ch <= 0xDF)) { do_2; } \
+ else if ((ch >= 0xE0) && (ch <= 0xEF)) { do_3; } \
+ else if ((ch >= 0xF0) && (ch <= 0xF4)) { do_4; } \
+ else printf("this (%x) isn't a right UTF-8 char!\n", ch)
+
+
+/***************************************************************************
+ * WEB section number: N/A
+ * ~~~~~~~~~~~~~~~~~~~
+ * Macros adapted from Kpathsea (lib.h) and Web2C (cpascal.h) to dynamically
+ * resize arrays.
+ ***************************************************************************/
+/* Reallocate N items of type T for ARRAY using myrealloc. */
+#define MYRETALLOC(array, addr, n, t) ((addr) = (t *) myrealloc(addr, (n) * sizeof(t), array))
+/* BibTeX needs this to dynamically reallocate arrays. Too bad we can't
+ rely on stringification, or we could avoid the ARRAY_NAME arg.
+ Actually allocate one more than requests, so we can index the last
+ entry, as Pascal wants to do. */
+#define BIB_XRETALLOC_NOSET(array_name, array_var, type, size_var, new_size) \
+ if (log_file != NULL)\
+ fprintf (log_file, "Reallocated %s (elt_size=%d) to %ld items from %ld.\n", \
+ array_name, (int) sizeof (type), new_size, size_var); \
+ MYRETALLOC (array_name, array_var, new_size + 1, type)
+/* Same as above, but also increase SIZE_VAR for the last (or only) array. */
+#define BIB_XRETALLOC(array_name, array_var, type, size_var, new_size) do { \
+ BIB_XRETALLOC_NOSET(array_name, array_var, type, size_var, new_size); \
+ size_var = new_size; \
+} while (0)
+/* Same as above, but for the pseudo-TYPE ASCIICode_T[LENGTH+1]. */
+#define BIB_XRETALLOC_STRING(array_name, array_var, length, size_var, new_size) \
+ if (log_file != NULL)\
+ fprintf (log_file, "Reallocated %s (elt_size=%d) to %ld items from %ld.\n", \
+ array_name, (int) (length + 1), new_size, size_var); \
+ MYRETALLOC (array_name, array_var, (new_size) * (length + 1), ASCIICode_T)
+
+#endif /* __BIBTEX_H__ */
+
diff --git a/biblio/bibtex/bibtex-x/bibtex8.1 b/biblio/bibtex/bibtex-x/bibtex8.1
new file mode 100644
index 0000000000..304b02f688
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtex8.1
@@ -0,0 +1,119 @@
+.TH BIBTEX8 "1" "12 September 2022" "bibtex8 4.00" "User Commands"
+.SH NAME
+bibtex8 \- 8-bit Big BibTeX
+.SH SYNOPSIS
+.B bibtex8
+[\fIoptions\fR] \fIaux-file\fR
+.SH DESCRIPTION
+.PP
+.B BibTeX8
+is an 8-bit implementation of BibTeX written in C.
+It has been enhanced by adding the following features:
+.PP
+- "big" (32-bit) and customisable capacity
+.PP
+- flexible support for non-English languages using 8-bit character sets
+.PP
+.B BibTeX8
+accepts 8-bit characters in its input files, and writes 8-bit
+characters to its output files. The character set is defined by an
+external configuration file --- the Codepage and Sort order ("CS") file.
+By default, it reads a specific CS file "88591lat.csf", which defines
+ISO 8859-1 character set and its alphabetical sorting order including
+accented characters.
+.SH OPTIONS
+.TP
+\fB\-?\fR \fB\-\-help\fR
+display some brief help text.
+.TP
+\fB\-7\fR \fB\-\-traditional\fR
+operate in the original 7\-bit mode, no CS file used.
+Only 7\-bit ASCII characters are supported, and they are
+sorted by ASCII code value.
+.TP
+\fB\-8\fR \fB\-\-8bit\fR
+force 8\-bit mode, no CS file used.
+All 8\-bit characters (code > 127) are treated as letters,
+and they are sorted by their code value.
+.TP
+\fB\-c\fR \fB\-\-csfile\fR FILE
+read FILE as the BibTeX character set
+and sort definition file.
+Note that options \fB\-7\fR, \fB\-8\fR and \fB\-c\fR are exclusive.
+.TP
+\fB\-d\fR \fB\-\-debug\fR TYPE
+report debugging information. TYPE is one
+or more of all, csf, io, mem, misc, search.
+.TP
+\fB\-s\fR \fB\-\-statistics\fR
+report internal statistics.
+.TP
+\fB\-t\fR \fB\-\-trace\fR
+report execution tracing.
+.TP
+\fB\-v\fR \fB\-\-version\fR
+report BibTeX version.
+.TP
+\fB\-B\fR \fB\-\-big\fR
+set large BibTeX capacity.
+.TP
+\fB\-H\fR \fB\-\-huge\fR
+set huge BibTeX capacity.
+.TP
+\fB\-W\fR \fB\-\-wolfgang\fR
+set really huge BibTeX capacity for Wolfgang.
+.TP
+\fB\-M\fR \fB\-\-min_crossrefs\fR ##
+set min_crossrefs to ##.
+.TP
+\fB\-\-mcites\fR ##
+allow ## \ecites in the .aux files (deprecated).
+.TP
+\fB\-\-mentints\fR ##
+allow ## integer entries in the .bib databases (deprecated).
+.TP
+\fB\-\-mentstrs\fR ##
+allow ## string entries in the .bib databases (deprecated).
+.TP
+\fB\-\-mfields\fR ##
+allow ## fields in the .bib databases (deprecated).
+.TP
+\fB\-\-mpool\fR ##
+set the string pool to ## bytes (deprecated).
+.TP
+\fB\-\-mstrings\fR ##
+allow ## unique strings.
+.TP
+\fB\-\-mwizfuns\fR ##
+allow ## wizard functions (deprecated).
+
+.SH 8BIT LATIN LETTERS SUPPORT
+.PP
+.B BibTeX8
+supports extended features to handle 8bit latin letters.
+Several built-in functions in bibliography styles are enhanced as follows.
+.TP
+\fB&\fR
+Pops the top two (integer) literals and pushes their bitwise AND.
+.TP
+\fB|\fR
+Pops the top two (integer) literals and pushes their bitwise OR.
+.TP
+\fBchr.to.int$\fR, \fBint.to.chr$\fR
+The function is the same as original BibTeX but 8bit characters are accepted.
+.TP
+\fBwidth$\fR
+The function is the same as original BibTeX but letters of Latin-1 are supported.
+.SH SEE ALSO
+More detailed description of
+.B BibTeX8
+is available at $TEXMFDIST/doc/bibtex8/00readme.txt.
+The syntax of Codepage and Sort order (CS) File can be found at
+$TEXMFDIST/doc/bibtex8/csfile.txt.
+.SH AUTHORS
+.B BibTeX8
+was written by Niel Kempson and Alejandro Aguilar-Sierra. It is currently
+maintained as part of TeX Live.
+.PP
+This manpage was written for TeX Live, based on the work
+by Norbert Preining for Debian GNU/Linux.
diff --git a/biblio/bibtex/bibtex-x/bibtexu.1 b/biblio/bibtex/bibtex-x/bibtexu.1
new file mode 100644
index 0000000000..889e4c1489
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/bibtexu.1
@@ -0,0 +1,117 @@
+.TH BIBTEXU "1" "30 August 2022" "bibtexu 4.00" "User Commands"
+.SH NAME
+bibtexu \- UTF-8 Big BibTeX
+.SH SYNOPSIS
+.B bibtexu
+[\fIoptions\fR] \fIaux-file\fR
+.SH DESCRIPTION
+.PP
+.B BibTeXu
+is the Unicode-compliant version of BibTeX.
+It is largely based on Niel Kempson's BibTeX8, and it provides
+a better support for UTF-8 by integrating ICU library. Therefore,
+.B BibTeXu
+no longer requires the Codepage and Sort order ("CS") file; instead,
+the method of sorting and case-changing can be controlled via
+command-line options.
+.SH OPTIONS
+.TP
+\fB\-?\fR \fB\-\-help\fR
+display some brief help text.
+.TP
+\fB\-d\fR \fB\-\-debug\fR TYPE
+report debugging information. TYPE is one
+or more of all, csf, io, mem, misc, search.
+.TP
+\fB\-s\fR \fB\-\-statistics\fR
+report internal statistics.
+.TP
+\fB\-t\fR \fB\-\-trace\fR
+report execution tracing.
+.TP
+\fB\-v\fR \fB\-\-version\fR
+report BibTeX version.
+.TP
+\fB\-l\fR \fB\-\-language\fR LANG
+use language LANG to convert strings to low case.
+This argument is passed to ICU library.
+.TP
+\fB\-o\fR \fB\-\-location\fR LANG
+use language LANG for sorting.
+This argument is passed to ICU library.
+.TP
+\fB\-B\fR \fB\-\-big\fR
+set large BibTeX capacity.
+.TP
+\fB\-H\fR \fB\-\-huge\fR
+set huge BibTeX capacity.
+.TP
+\fB\-W\fR \fB\-\-wolfgang\fR
+set really huge BibTeX capacity for Wolfgang.
+.TP
+\fB\-M\fR \fB\-\-min_crossrefs\fR ##
+set min_crossrefs to ##.
+.TP
+\fB\-\-mstrings\fR ##
+allow ## unique strings.
+.SH UNICODE SUPPORT
+.PP
+.B BibTeXu
+supports extended features to handle Unicode characters.
+Several built-in functions in bibliography styles are enhanced as follows.
+.TP
+\fB&\fR
+Pops the top two (integer) literals and pushes their bitwise AND.
+.TP
+\fB|\fR
+Pops the top two (integer) literals and pushes their bitwise OR.
+.TP
+\fBadd.period$\fR
+Pops the top (string) literal, adds a `.' to it if the last non`}'
+character isn't a `.', `?', `!' or a Unicode punctuation mark and pushes this resulting string.
+The mark may be U+203C, U+203D, U+2047, U+2048, U+2049, U+3002, U+FF01, U+FF0E or U+FF1F.
+.TP
+\fBchr.to.int$\fR
+Pops the top (string) literal, makes sure it's a multibyte string of a single Unicode code point,
+converts it to the corresponding Unicode scalar value (integer), and pushes this integer.
+.TP
+\fBint.to.chr$\fR
+Pops the top (integer) literal, interpreted as the Unicode scalar value of a single code point,
+converts it to the corresponding single character multibyte string, and pushes this string.
+.TP
+\fBnum.names$\fR, \fBformat.name$\fR
+The function is the same as original BibTeX but
+an Ideographic/Fullwidth Comma (U+3001, U+FF0C) in addition to an " and " string is
+accepted as a sepalator between persons and
+Ideographic Space (U+3000) in addition to a space " " is accepted as a sepalator between a family name and a given name.
+.TP
+\fBsubstring$\fR, \fBtext.length$\fR, \fBtext.prefix$\fR
+The function is the same as original BibTeX but the unit of operand numbers is Unicode code point.
+.TP
+\fBchange.case$\fR
+The function is the same as original BibTeX but letters of
+non-english Latin, Greek and Cyrillic are supported.
+.TP
+\fBwidth$\fR
+The function is the same as original BibTeX but letters of Latin-1 and Latin Extended-A
+and CJK characters are supported.
+.TP
+\fBis.cjk.str$\fR
+Pops the top (string) literal, set flag bits to an integer if CJK characters are found in the string,
+and pushes the resulting integer, otherwise pushes 0.
+Flags 0x001, 0x002, 0x004, 0x008 and 0x800 are corresponding to Hanzi (Kanji, Hanja), Kana, Hangul,
+Bopomofo and other CJK characters, respectively.
+For example, an integer 0x003 will be pushed if Hanzi and Kana characters are found in a poped string literal.
+.TP
+\fBis.kanji.str$\fR
+Same as \fBis.cjk.str$\fR for compatibility with (u)pBibTeX.
+.SH SEE ALSO
+More detailed description of
+.B BibTeXu
+is available at $TEXMFDIST/doc/bibtexu/README.
+.SH AUTHORS
+.B BibTeXu
+was written by Yannis Haralambous and his students.
+It is maintained as part of TeX Live.
+.PP
+This manpage was written for TeX Live.
diff --git a/biblio/bibtex/bibtex-x/config.h.in b/biblio/bibtex/bibtex-x/config.h.in
new file mode 100644
index 0000000000..f8b360fd26
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/config.h.in
@@ -0,0 +1,167 @@
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if the `closedir' function returns void instead of int. */
+#undef CLOSEDIR_VOID
+
+/* Define to 1 if you have the <assert.h> header file. */
+#undef HAVE_ASSERT_H
+
+/* Define to 1 if you have the declaration of `isascii', and to 0 if you
+ don't. */
+#undef HAVE_DECL_ISASCII
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_DIRENT_H
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <float.h> header file. */
+#undef HAVE_FLOAT_H
+
+/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
+#undef HAVE_FSEEKO
+
+/* Define to 1 if you have the `getcwd' function. */
+#undef HAVE_GETCWD
+
+/* Define to 1 if you have the `getwd' function. */
+#undef HAVE_GETWD
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <iostream> header file. */
+#undef HAVE_IOSTREAM
+
+/* Define to 1 if you have the <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if you have the `memcmp' function. */
+#undef HAVE_MEMCMP
+
+/* Define to 1 if you have the `memcpy' function. */
+#undef HAVE_MEMCPY
+
+/* Define to 1 if you have the `mkstemp' function. */
+#undef HAVE_MKSTEMP
+
+/* Define to 1 if you have the `mktemp' function. */
+#undef HAVE_MKTEMP
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+#undef HAVE_NDIR_H
+
+/* Define to 1 if you have the `putenv' function. */
+#undef HAVE_PUTENV
+
+/* Define to 1 if you have the <pwd.h> header file. */
+#undef HAVE_PWD_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#undef HAVE_STDIO_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strchr' function. */
+#undef HAVE_STRCHR
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strrchr' function. */
+#undef HAVE_STRRCHR
+
+/* Define to 1 if `st_mtim' is a member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_MTIM
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_SYS_DIR_H
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_SYS_NDIR_H
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#undef HAVE_SYS_PARAM_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to the sub-directory where libtool stores uninstalled libraries. */
+#undef LT_OBJDIR
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if all of the C90 standard headers exist (not just the ones
+ required in a freestanding environment). This macro is provided for
+ backward compatibility; new code need not use it. */
+#undef STDC_HEADERS
+
+/* Define to the current TeX Live version string. */
+#undef TL_VERSION
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+#undef _FILE_OFFSET_BITS
+
+/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
+#undef _LARGEFILE_SOURCE
+
+/* Define for large files, on AIX-style hosts. */
+#undef _LARGE_FILES
+
+/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
+ <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
+ #define below would cause a syntax error. */
+#undef _UINT64_T
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+#undef inline
+#endif
+
+/* Define to the type of a signed integer type of width exactly 64 bits if
+ such a type exists and the standard includes do not define it. */
+#undef int64_t
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef size_t
+
+/* Define to the type of an unsigned integer type of width exactly 64 bits if
+ such a type exists and the standard includes do not define it. */
+#undef uint64_t
diff --git a/biblio/bibtex/bibtex-x/configure b/biblio/bibtex/bibtex-x/configure
new file mode 100755
index 0000000000..c071336652
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/configure
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# Pseudo configure for CTAN releases of DVI drivers from the texk
+# source tree.
+
+cat <<'_EOT_'
+
+Sorry, but this configure script won't be of much use for you.
+
+This source directory from CTAN can only be compiled in a texk build
+environment. You will need to download the whole environment, please
+refer to http://www.tug.org/texlive/svn/.
+
+It all boils down to a Subversion checkout of
+svn://tug.org/texlive/trunk/Build/source
+This will be the source tree that you can use for compilation. The
+CTAN tree is there for archival and informational purpose.
+
+For your convenience, the original configure script from the texk
+source tree is available in this directory as configure.texk.
+
+_EOT_
+
+exit 1
diff --git a/biblio/bibtex/bibtex-x/configure.ac b/biblio/bibtex/bibtex-x/configure.ac
new file mode 100644
index 0000000000..c8271a6caa
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/configure.ac
@@ -0,0 +1,46 @@
+dnl $Id: configure.ac 63173 2022-04-29 03:14:26Z takuji $
+dnl Process this file with autoconf to produce a configure script.
+dnl
+dnl Copyright 2015-2022 Karl Berry <tex-live@tug.org>
+dnl Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org>
+dnl
+dnl This file is free software; the copyright holder
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+dnl
+AC_INIT([extended BibTeX (TeX Live)], [4.00], [tex-k@tug.org])
+AC_PREREQ([2.65])
+AC_CONFIG_SRCDIR([bibtex-1.c])
+AC_CONFIG_AUX_DIR([../../build-aux])
+AC_CONFIG_MACRO_DIR([../../m4])
+
+dnl Common code for all programs using libkpathsea.
+KPSE_COMMON([bibtex-x], [no-define])
+
+m4_include([ac/bibtex-x.ac])
+
+AC_CONFIG_HEADERS([config.h])
+
+m4_include([../../version.ac])[] dnl define tex_live_version
+AC_DEFINE([TL_VERSION], ["TeX Live tex_live_version()"],
+ [Define to the current TeX Live version string.])
+
+AC_PROG_CXX
+KPSE_CXX_HACK
+
+AC_SEARCH_LIBS([pow], [m])
+
+if test "x$enable_bibtexu" != xno; then
+ dnl As of ICU 65.1, ICU requires -lpthread on x86_64-linux and, most
+ dnl likely, on other platforms. See upmendex/configure.ac for more info.
+KPSE_KPATHSEA_FLAGS
+KPSE_SEARCH_LIBS([PTHREAD_LIB], [pthread_create], [pthread])
+KPSE_ICU_FLAGS([icuio icui18n], [--ldflags-icuio])
+fi
+
+AM_CONDITIONAL([BIBTEX8], [test "x$enable_bibtex8" != xno])
+AM_CONDITIONAL([BIBTEXU], [test "x$enable_bibtexu" != xno])
+
+AC_CONFIG_FILES([Makefile])
+
+AC_OUTPUT
diff --git a/biblio/bibtex/bibtex-x/configure.texk b/biblio/bibtex/bibtex-x/configure.texk
new file mode 100755
index 0000000000..0d8d462e13
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/configure.texk
@@ -0,0 +1,23239 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.71 for extended BibTeX (TeX Live) 4.00.
+#
+# Report bugs to <tex-k@tug.org>.
+#
+#
+# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
+# Inc.
+#
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+as_nop=:
+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
+then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else $as_nop
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+
+# Reset variables that may have inherited troublesome values from
+# the environment.
+
+# IFS needs to be set, to space, tab, and newline, in precisely that order.
+# (If _AS_PATH_WALK were called with IFS unset, it would have the
+# side effect of setting IFS to empty, thus disabling word splitting.)
+# Quoting is to prevent editors from complaining about space-tab.
+as_nl='
+'
+export as_nl
+IFS=" "" $as_nl"
+
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# Ensure predictable behavior from utilities with locale-dependent output.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# We cannot yet rely on "unset" to work, but we need these variables
+# to be unset--not just set to an empty or harmless value--now, to
+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
+# also avoids known problems related to "unset" and subshell syntax
+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
+do eval test \${$as_var+y} \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+
+# Ensure that fds 0, 1, and 2 are open.
+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
+
+# The user is always right.
+if ${PATH_SEPARATOR+false} :; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+
+# Use a proper internal environment variable to ensure we don't fall
+ # into an infinite loop, continuously re-executing ourselves.
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
+ _as_can_reexec=no; export _as_can_reexec;
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+ fi
+ # We don't want this to propagate to other subprocesses.
+ { _as_can_reexec=; unset _as_can_reexec;}
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="as_nop=:
+if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
+then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else \$as_nop
+ case \`(set -o) 2>/dev/null\` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" )
+then :
+
+else \$as_nop
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1
+blah=\$(echo \$(echo blah))
+test x\"\$blah\" = xblah || exit 1
+test -x / || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+
+ test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+ PATH=/empty FPATH=/empty; export PATH FPATH
+ test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
+ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+ if (eval "$as_required") 2>/dev/null
+then :
+ as_have_required=yes
+else $as_nop
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
+then :
+
+else $as_nop
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
+then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
+then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+IFS=$as_save_IFS
+if $as_found
+then :
+
+else $as_nop
+ if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
+then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi
+fi
+
+
+ if test "x$CONFIG_SHELL" != x
+then :
+ export CONFIG_SHELL
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+fi
+
+ if test x$as_have_required = xno
+then :
+ printf "%s\n" "$0: This script requires a shell more modern than all"
+ printf "%s\n" "$0: the shells that I found on your system."
+ if test ${ZSH_VERSION+y} ; then
+ printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
+ else
+ printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
+$0: about your system, including any error possibly output
+$0: before this message. Then install a modern shell, or
+$0: manually run the script under such a shell if you do
+$0: have one."
+ fi
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+# as_fn_nop
+# ---------
+# Do nothing but, unlike ":", preserve the value of $?.
+as_fn_nop ()
+{
+ return $?
+}
+as_nop=as_fn_nop
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
+then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else $as_nop
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
+then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else $as_nop
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+# as_fn_nop
+# ---------
+# Do nothing but, unlike ":", preserve the value of $?.
+as_fn_nop ()
+{
+ return $?
+}
+as_nop=as_fn_nop
+# as_fn_nop
+# ---------
+# Do nothing but, unlike ":", preserve the value of $?.
+as_fn_nop ()
+{
+ return $?
+}
+as_nop=as_fn_nop
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ printf "%s\n" "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
+ # already done that, so ensure we don't try to do so again and fall
+ # in an infinite loop. This has already happened in practice.
+ _as_can_reexec=no; export _as_can_reexec
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+# Determine whether it's possible to make 'echo' print without a newline.
+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
+# for compatibility with existing Makefiles.
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+# For backward compatibility with old third-party macros, we provide
+# the shell variables $as_echo and $as_echo_n. New code should use
+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
+as_echo='printf %s\n'
+as_echo_n='printf %s'
+
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+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="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME='extended BibTeX (TeX Live)'
+PACKAGE_TARNAME='extended-bibtex--tex-live-'
+PACKAGE_VERSION='4.00'
+PACKAGE_STRING='extended BibTeX (TeX Live) 4.00'
+PACKAGE_BUGREPORT='tex-k@tug.org'
+PACKAGE_URL=''
+
+ac_unique_file="bibtex-1.c"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stddef.h>
+#ifdef HAVE_STDIO_H
+# include <stdio.h>
+#endif
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_header_c_list=
+ac_subst_vars='am__EXEEXT_FALSE
+am__EXEEXT_TRUE
+LTLIBOBJS
+LIBOBJS
+BIBTEXU_FALSE
+BIBTEXU_TRUE
+BIBTEX8_FALSE
+BIBTEX8_TRUE
+ICU_RULE
+ICU_DEPEND
+ICU_LIBS
+ICU_INCLUDES
+ICU_CONFIG
+PTHREAD_LIB
+KPATHSEA_RULE
+KPATHSEA_DEPEND
+KPATHSEA_LIBS
+KPATHSEA_INCLUDES
+PKG_CONFIG
+CXXLD
+CXXCPP
+WARNING_CXXFLAGS
+am__fastdepCXX_FALSE
+am__fastdepCXX_TRUE
+CXXDEPMODE
+ac_ct_CXX
+CXXFLAGS
+CXX
+LT_SYS_LIBRARY_PATH
+OTOOL64
+OTOOL
+LIPO
+NMEDIT
+DSYMUTIL
+MANIFEST_TOOL
+RANLIB
+ac_ct_AR
+AR
+LN_S
+NM
+ac_ct_DUMPBIN
+DUMPBIN
+LD
+FGREP
+EGREP
+GREP
+SED
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+LIBTOOL
+OBJDUMP
+DLLTOOL
+AS
+WARNING_CFLAGS
+am__fastdepCC_FALSE
+am__fastdepCC_TRUE
+CCDEPMODE
+am__nodep
+AMDEPBACKSLASH
+AMDEP_FALSE
+AMDEP_TRUE
+am__include
+DEPDIR
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+MAINT
+MAINTAINER_MODE_FALSE
+MAINTAINER_MODE_TRUE
+AM_BACKSLASH
+AM_DEFAULT_VERBOSITY
+AM_DEFAULT_V
+AM_V
+CSCOPE
+ETAGS
+CTAGS
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+runstatedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL
+am__quote'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_silent_rules
+enable_maintainer_mode
+enable_dependency_tracking
+enable_compiler_warnings
+enable_shared
+enable_static
+with_pic
+enable_fast_install
+with_aix_soname
+with_gnu_ld
+with_sysroot
+enable_libtool_lock
+enable_largefile
+enable_bibtex8
+enable_bibtexu
+enable_cxx_runtime_hack
+with_system_kpathsea
+with_system_icu
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+LT_SYS_LIBRARY_PATH
+CXX
+CXXFLAGS
+CCC
+CXXCPP'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *=) ac_optarg= ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -runstatedir | --runstatedir | --runstatedi | --runstated \
+ | --runstate | --runstat | --runsta | --runst | --runs \
+ | --run | --ru | --r)
+ ac_prev=runstatedir ;;
+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+ | --run=* | --ru=* | --r=*)
+ runstatedir=$ac_optarg ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ as_fn_error $? "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+ *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir runstatedir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error $? "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures extended BibTeX (TeX Live) 4.00 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking ...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root
+ [DATAROOTDIR/doc/extended-bibtex--tex-live-]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+Program names:
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of extended BibTeX (TeX Live) 4.00:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --enable-silent-rules less verbose build output (undo: "make V=1")
+ --disable-silent-rules verbose build output (undo: "make V=0")
+ --enable-maintainer-mode
+ enable make rules and dependencies not useful (and
+ sometimes confusing) to the casual installer
+ --enable-dependency-tracking
+ do not reject slow dependency extractors
+ --disable-dependency-tracking
+ speeds up one-time build
+ --enable-compiler-warnings=[no|min|yes|max|all]
+ Turn on compiler warnings [default: yes if
+ maintainer-mode, min otherwise]
+ --enable-shared[=PKGS] build shared libraries [default=yes]
+ --enable-static[=PKGS] build static libraries [default=yes]
+ --enable-fast-install[=PKGS]
+ optimize for fast installation [default=yes]
+ --disable-libtool-lock avoid locking (might break parallel builds)
+ --disable-largefile omit support for large files
+ --disable-bibtex8 do not build the bibtex8 program
+ --disable-bibtexu do not build the bibtexu program
+ --enable-cxx-runtime-hack link C++ runtime statically
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
+ both]
+ --with-aix-soname=aix|svr4|both
+ shared library versioning (aka "SONAME") variant to
+ provide on AIX, [default=aix].
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
+ compiler's sysroot if not specified).
+ --with-system-kpathsea use installed kpathsea headers and library (requires
+ pkg-config)
+ --with-system-icu use installed ICU headers and libraries (requires
+ pkg-config or icu-config)
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ LT_SYS_LIBRARY_PATH
+ User-defined run-time library search path.
+ CXX C++ compiler command
+ CXXFLAGS C++ compiler flags
+ CXXCPP C++ preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <tex-k@tug.org>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for configure.gnu first; this name is used for a wrapper for
+ # Metaconfig's "Configure" on case-insensitive file systems.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+extended BibTeX (TeX Live) configure 4.00
+generated by GNU Autoconf 2.71
+
+Copyright (C) 2021 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest.beam
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_compile
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ test -x conftest$ac_exeext
+ }
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+printf %s "checking for $2... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ eval "$3=yes"
+else $as_nop
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+printf %s "checking for $2... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $2 innocuous_$2
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $2 (); below. */
+
+#include <limits.h>
+#undef $2
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $2 ();
+/* 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_$2 || defined __stub___$2
+choke me
+#endif
+
+int
+main (void)
+{
+return $2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ eval "$3=yes"
+else $as_nop
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_func
+
+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
+# -------------------------------------------
+# Tests whether TYPE exists after having included INCLUDES, setting cache
+# variable VAR accordingly.
+ac_fn_c_check_type ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+printf %s "checking for $2... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ eval "$3=no"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+if (sizeof ($2))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+if (sizeof (($2)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+else $as_nop
+ eval "$3=yes"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_type
+
+# ac_fn_c_find_intX_t LINENO BITS VAR
+# -----------------------------------
+# Finds a signed integer type with width BITS, setting cache variable VAR
+# accordingly.
+ac_fn_c_find_intX_t ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
+printf %s "checking for int$2_t... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ eval "$3=no"
+ # Order is important - never check a type that is potentially smaller
+ # than half of the expected target width.
+ for ac_type in int$2_t 'int' 'long int' \
+ 'long long int' 'short int' 'signed char'; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+ enum { N = $2 / 2 - 1 };
+int
+main (void)
+{
+static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+ enum { N = $2 / 2 - 1 };
+int
+main (void)
+{
+static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
+ < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+else $as_nop
+ case $ac_type in #(
+ int$2_t) :
+ eval "$3=yes" ;; #(
+ *) :
+ eval "$3=\$ac_type" ;;
+esac
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ if eval test \"x\$"$3"\" = x"no"
+then :
+
+else $as_nop
+ break
+fi
+ done
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_find_intX_t
+
+# ac_fn_c_find_uintX_t LINENO BITS VAR
+# ------------------------------------
+# Finds an unsigned integer type with width BITS, setting cache variable VAR
+# accordingly.
+ac_fn_c_find_uintX_t ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
+printf %s "checking for uint$2_t... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ eval "$3=no"
+ # Order is important - never check a type that is potentially smaller
+ # than half of the expected target width.
+ for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
+ 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+int
+main (void)
+{
+static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ case $ac_type in #(
+ uint$2_t) :
+ eval "$3=yes" ;; #(
+ *) :
+ eval "$3=\$ac_type" ;;
+esac
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ if eval test \"x\$"$3"\" = x"no"
+then :
+
+else $as_nop
+ break
+fi
+ done
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_find_uintX_t
+
+# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
+# ------------------------------------------------------------------
+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
+# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
+ac_fn_check_decl ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ as_decl_name=`echo $2|sed 's/ *(.*//'`
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
+printf %s "checking whether $as_decl_name is declared... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
+ eval ac_save_FLAGS=\$$6
+ as_fn_append $6 " $5"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+#ifndef $as_decl_name
+#ifdef __cplusplus
+ (void) $as_decl_use;
+#else
+ (void) $as_decl_name;
+#endif
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ eval "$3=yes"
+else $as_nop
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ eval $6=\$ac_save_FLAGS
+
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_check_decl
+
+# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
+# ----------------------------------------------------
+# Tries to find if the field MEMBER exists in type AGGR, after including
+# INCLUDES, setting cache variable VAR accordingly.
+ac_fn_c_check_member ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
+printf %s "checking for $2.$3... " >&6; }
+if eval test \${$4+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$5
+int
+main (void)
+{
+static $2 ac_aggr;
+if (ac_aggr.$3)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ eval "$4=yes"
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$5
+int
+main (void)
+{
+static $2 ac_aggr;
+if (sizeof ac_aggr.$3)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ eval "$4=yes"
+else $as_nop
+ eval "$4=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$4
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_member
+
+# ac_fn_cxx_try_compile LINENO
+# ----------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest.beam
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_compile
+
+# ac_fn_cxx_try_cpp LINENO
+# ------------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_cpp ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } > conftest.i && {
+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ }
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_cpp
+
+# ac_fn_cxx_try_link LINENO
+# -------------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ test -x conftest$ac_exeext
+ }
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_link
+
+# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
+# ---------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_cxx_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+printf %s "checking for $2... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ eval "$3=yes"
+else $as_nop
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_cxx_check_header_compile
+ac_configure_args_raw=
+for ac_arg
+do
+ case $ac_arg in
+ *\'*)
+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append ac_configure_args_raw " '$ac_arg'"
+done
+
+case $ac_configure_args_raw in
+ *$as_nl*)
+ ac_safe_unquote= ;;
+ *)
+ ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
+ ac_unsafe_a="$ac_unsafe_z#~"
+ ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
+ ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
+esac
+
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by extended BibTeX (TeX Live) $as_me 4.00, which was
+generated by GNU Autoconf 2.71. Invocation command line was
+
+ $ $0$ac_configure_args_raw
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ printf "%s\n" "PATH: $as_dir"
+ done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append ac_configure_args1 " '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ 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
+ fi
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Sanitize IFS.
+ IFS=" "" $as_nl"
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ printf "%s\n" "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ printf "%s\n" "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ printf "%s\n" "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ printf "%s\n" "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ printf "%s\n" "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ printf "%s\n" "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ printf "%s\n" "$as_me: caught signal $ac_signal"
+ printf "%s\n" "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+printf "%s\n" "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+if test -n "$CONFIG_SITE"; then
+ ac_site_files="$CONFIG_SITE"
+elif test "x$prefix" != xNONE; then
+ ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
+else
+ ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+fi
+
+for ac_site_file in $ac_site_files
+do
+ case $ac_site_file in #(
+ */*) :
+ ;; #(
+ *) :
+ ac_site_file=./$ac_site_file ;;
+esac
+ if test -f "$ac_site_file" && test -r "$ac_site_file"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file" \
+ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Test code for whether the C compiler supports C89 (global declarations)
+ac_c_conftest_c89_globals='
+/* Does the compiler advertise C89 conformance?
+ Do not test the value of __STDC__, because some compilers set it to 0
+ while being otherwise adequately conformant. */
+#if !defined __STDC__
+# error "Compiler does not advertise C89 conformance"
+#endif
+
+#include <stddef.h>
+#include <stdarg.h>
+struct stat;
+/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
+struct buf { int x; };
+struct buf * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ 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 do not provoke an error unfortunately, instead are silently treated
+ as an "x". The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously \x00 != x always comes out true, for an
+ array size at least. It is necessary to write \x00 == 0 to get something
+ that is true only with -std. */
+int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) '\''x'\''
+int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
+ int, int);'
+
+# Test code for whether the C compiler supports C89 (body of main).
+ac_c_conftest_c89_main='
+ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
+'
+
+# Test code for whether the C compiler supports C99 (global declarations)
+ac_c_conftest_c99_globals='
+// Does the compiler advertise C99 conformance?
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
+# error "Compiler does not advertise C99 conformance"
+#endif
+
+#include <stdbool.h>
+extern int puts (const char *);
+extern int printf (const char *, ...);
+extern int dprintf (int, const char *, ...);
+extern void *malloc (size_t);
+
+// Check varargs macros. These examples are taken from C99 6.10.3.5.
+// dprintf is used instead of fprintf to avoid needing to declare
+// FILE and stderr.
+#define debug(...) dprintf (2, __VA_ARGS__)
+#define showlist(...) puts (#__VA_ARGS__)
+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+static void
+test_varargs_macros (void)
+{
+ int x = 1234;
+ int y = 5678;
+ debug ("Flag");
+ debug ("X = %d\n", x);
+ showlist (The first, second, and third items.);
+ report (x>y, "x is %d but y is %d", x, y);
+}
+
+// Check long long types.
+#define BIG64 18446744073709551615ull
+#define BIG32 4294967295ul
+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+#if !BIG_OK
+ #error "your preprocessor is broken"
+#endif
+#if BIG_OK
+#else
+ #error "your preprocessor is broken"
+#endif
+static long long int bignum = -9223372036854775807LL;
+static unsigned long long int ubignum = BIG64;
+
+struct incomplete_array
+{
+ int datasize;
+ double data[];
+};
+
+struct named_init {
+ int number;
+ const wchar_t *name;
+ double average;
+};
+
+typedef const char *ccp;
+
+static inline int
+test_restrict (ccp restrict text)
+{
+ // See if C++-style comments work.
+ // Iterate through items via the restricted pointer.
+ // Also check for declarations in for loops.
+ for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
+ continue;
+ return 0;
+}
+
+// Check varargs and va_copy.
+static bool
+test_varargs (const char *format, ...)
+{
+ va_list args;
+ va_start (args, format);
+ va_list args_copy;
+ va_copy (args_copy, args);
+
+ const char *str = "";
+ int number = 0;
+ float fnumber = 0;
+
+ while (*format)
+ {
+ switch (*format++)
+ {
+ case '\''s'\'': // string
+ str = va_arg (args_copy, const char *);
+ break;
+ case '\''d'\'': // int
+ number = va_arg (args_copy, int);
+ break;
+ case '\''f'\'': // float
+ fnumber = va_arg (args_copy, double);
+ break;
+ default:
+ break;
+ }
+ }
+ va_end (args_copy);
+ va_end (args);
+
+ return *str && number && fnumber;
+}
+'
+
+# Test code for whether the C compiler supports C99 (body of main).
+ac_c_conftest_c99_main='
+ // Check bool.
+ _Bool success = false;
+ success |= (argc != 0);
+
+ // Check restrict.
+ if (test_restrict ("String literal") == 0)
+ success = true;
+ char *restrict newvar = "Another string";
+
+ // Check varargs.
+ success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
+ test_varargs_macros ();
+
+ // Check flexible array members.
+ struct incomplete_array *ia =
+ malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+ ia->datasize = 10;
+ for (int i = 0; i < ia->datasize; ++i)
+ ia->data[i] = i * 1.234;
+
+ // Check named initializers.
+ struct named_init ni = {
+ .number = 34,
+ .name = L"Test wide string",
+ .average = 543.34343,
+ };
+
+ ni.number = 58;
+
+ int dynamic_array[ni.number];
+ dynamic_array[0] = argv[0][0];
+ dynamic_array[ni.number - 1] = 543;
+
+ // work around unused variable warnings
+ ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
+ || dynamic_array[ni.number - 1] != 543);
+'
+
+# Test code for whether the C compiler supports C11 (global declarations)
+ac_c_conftest_c11_globals='
+// Does the compiler advertise C11 conformance?
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
+# error "Compiler does not advertise C11 conformance"
+#endif
+
+// Check _Alignas.
+char _Alignas (double) aligned_as_double;
+char _Alignas (0) no_special_alignment;
+extern char aligned_as_int;
+char _Alignas (0) _Alignas (int) aligned_as_int;
+
+// Check _Alignof.
+enum
+{
+ int_alignment = _Alignof (int),
+ int_array_alignment = _Alignof (int[100]),
+ char_alignment = _Alignof (char)
+};
+_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
+
+// Check _Noreturn.
+int _Noreturn does_not_return (void) { for (;;) continue; }
+
+// Check _Static_assert.
+struct test_static_assert
+{
+ int x;
+ _Static_assert (sizeof (int) <= sizeof (long int),
+ "_Static_assert does not work in struct");
+ long int y;
+};
+
+// Check UTF-8 literals.
+#define u8 syntax error!
+char const utf8_literal[] = u8"happens to be ASCII" "another string";
+
+// Check duplicate typedefs.
+typedef long *long_ptr;
+typedef long int *long_ptr;
+typedef long_ptr long_ptr;
+
+// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
+struct anonymous
+{
+ union {
+ struct { int i; int j; };
+ struct { int k; long int l; } w;
+ };
+ int m;
+} v1;
+'
+
+# Test code for whether the C compiler supports C11 (body of main).
+ac_c_conftest_c11_main='
+ _Static_assert ((offsetof (struct anonymous, i)
+ == offsetof (struct anonymous, w.k)),
+ "Anonymous union alignment botch");
+ v1.i = 2;
+ v1.w.k = 5;
+ ok |= v1.i != 5;
+'
+
+# Test code for whether the C compiler supports C11 (complete).
+ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
+${ac_c_conftest_c99_globals}
+${ac_c_conftest_c11_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_c_conftest_c89_main}
+ ${ac_c_conftest_c99_main}
+ ${ac_c_conftest_c11_main}
+ return ok;
+}
+"
+
+# Test code for whether the C compiler supports C99 (complete).
+ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
+${ac_c_conftest_c99_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_c_conftest_c89_main}
+ ${ac_c_conftest_c99_main}
+ return ok;
+}
+"
+
+# Test code for whether the C compiler supports C89 (complete).
+ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_c_conftest_c89_main}
+ return ok;
+}
+"
+
+as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
+as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
+as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
+as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
+as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
+as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
+as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
+as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
+as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
+# Test code for whether the C++ compiler supports C++98 (global declarations)
+ac_cxx_conftest_cxx98_globals='
+// Does the compiler advertise C++98 conformance?
+#if !defined __cplusplus || __cplusplus < 199711L
+# error "Compiler does not advertise C++98 conformance"
+#endif
+
+// These inclusions are to reject old compilers that
+// lack the unsuffixed header files.
+#include <cstdlib>
+#include <exception>
+
+// <cassert> and <cstring> are *not* freestanding headers in C++98.
+extern void assert (int);
+namespace std {
+ extern int strcmp (const char *, const char *);
+}
+
+// Namespaces, exceptions, and templates were all added after "C++ 2.0".
+using std::exception;
+using std::strcmp;
+
+namespace {
+
+void test_exception_syntax()
+{
+ try {
+ throw "test";
+ } catch (const char *s) {
+ // Extra parentheses suppress a warning when building autoconf itself,
+ // due to lint rules shared with more typical C programs.
+ assert (!(strcmp) (s, "test"));
+ }
+}
+
+template <typename T> struct test_template
+{
+ T const val;
+ explicit test_template(T t) : val(t) {}
+ template <typename U> T add(U u) { return static_cast<T>(u) + val; }
+};
+
+} // anonymous namespace
+'
+
+# Test code for whether the C++ compiler supports C++98 (body of main)
+ac_cxx_conftest_cxx98_main='
+ assert (argc);
+ assert (! argv[0]);
+{
+ test_exception_syntax ();
+ test_template<double> tt (2.0);
+ assert (tt.add (4) == 6.0);
+ assert (true && !false);
+}
+'
+
+# Test code for whether the C++ compiler supports C++11 (global declarations)
+ac_cxx_conftest_cxx11_globals='
+// Does the compiler advertise C++ 2011 conformance?
+#if !defined __cplusplus || __cplusplus < 201103L
+# error "Compiler does not advertise C++11 conformance"
+#endif
+
+namespace cxx11test
+{
+ constexpr int get_val() { return 20; }
+
+ struct testinit
+ {
+ int i;
+ double d;
+ };
+
+ class delegate
+ {
+ public:
+ delegate(int n) : n(n) {}
+ delegate(): delegate(2354) {}
+
+ virtual int getval() { return this->n; };
+ protected:
+ int n;
+ };
+
+ class overridden : public delegate
+ {
+ public:
+ overridden(int n): delegate(n) {}
+ virtual int getval() override final { return this->n * 2; }
+ };
+
+ class nocopy
+ {
+ public:
+ nocopy(int i): i(i) {}
+ nocopy() = default;
+ nocopy(const nocopy&) = delete;
+ nocopy & operator=(const nocopy&) = delete;
+ private:
+ int i;
+ };
+
+ // for testing lambda expressions
+ template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
+ {
+ return f(v);
+ }
+
+ // for testing variadic templates and trailing return types
+ template <typename V> auto sum(V first) -> V
+ {
+ return first;
+ }
+ template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
+ {
+ return first + sum(rest...);
+ }
+}
+'
+
+# Test code for whether the C++ compiler supports C++11 (body of main)
+ac_cxx_conftest_cxx11_main='
+{
+ // Test auto and decltype
+ auto a1 = 6538;
+ auto a2 = 48573953.4;
+ auto a3 = "String literal";
+
+ int total = 0;
+ for (auto i = a3; *i; ++i) { total += *i; }
+
+ decltype(a2) a4 = 34895.034;
+}
+{
+ // Test constexpr
+ short sa[cxx11test::get_val()] = { 0 };
+}
+{
+ // Test initializer lists
+ cxx11test::testinit il = { 4323, 435234.23544 };
+}
+{
+ // Test range-based for
+ int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
+ 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
+ for (auto &x : array) { x += 23; }
+}
+{
+ // Test lambda expressions
+ using cxx11test::eval;
+ assert (eval ([](int x) { return x*2; }, 21) == 42);
+ double d = 2.0;
+ assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
+ assert (d == 5.0);
+ assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
+ assert (d == 5.0);
+}
+{
+ // Test use of variadic templates
+ using cxx11test::sum;
+ auto a = sum(1);
+ auto b = sum(1, 2);
+ auto c = sum(1.0, 2.0, 3.0);
+}
+{
+ // Test constructor delegation
+ cxx11test::delegate d1;
+ cxx11test::delegate d2();
+ cxx11test::delegate d3(45);
+}
+{
+ // Test override and final
+ cxx11test::overridden o1(55464);
+}
+{
+ // Test nullptr
+ char *c = nullptr;
+}
+{
+ // Test template brackets
+ test_template<::test_template<int>> v(test_template<int>(12));
+}
+{
+ // Unicode literals
+ char const *utf8 = u8"UTF-8 string \u2500";
+ char16_t const *utf16 = u"UTF-8 string \u2500";
+ char32_t const *utf32 = U"UTF-32 string \u2500";
+}
+'
+
+# Test code for whether the C compiler supports C++11 (complete).
+ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
+${ac_cxx_conftest_cxx11_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_cxx_conftest_cxx98_main}
+ ${ac_cxx_conftest_cxx11_main}
+ return ok;
+}
+"
+
+# Test code for whether the C compiler supports C++98 (complete).
+ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_cxx_conftest_cxx98_main}
+ return ok;
+}
+"
+
+
+# Auxiliary files required by this configure script.
+ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
+
+# Locations in which to look for auxiliary files.
+ac_aux_dir_candidates="${srcdir}/../../build-aux"
+
+# Search for a directory containing all of the required auxiliary files,
+# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
+# If we don't find one directory that contains all the files we need,
+# we report the set of missing files from the *first* directory in
+# $ac_aux_dir_candidates and give up.
+ac_missing_aux_files=""
+ac_first_candidate=:
+printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in $ac_aux_dir_candidates
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ as_found=:
+
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
+ ac_aux_dir_found=yes
+ ac_install_sh=
+ for ac_aux in $ac_aux_files
+ do
+ # As a special case, if "install-sh" is required, that requirement
+ # can be satisfied by any of "install-sh", "install.sh", or "shtool",
+ # and $ac_install_sh is set appropriately for whichever one is found.
+ if test x"$ac_aux" = x"install-sh"
+ then
+ if test -f "${as_dir}install-sh"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
+ ac_install_sh="${as_dir}install-sh -c"
+ elif test -f "${as_dir}install.sh"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
+ ac_install_sh="${as_dir}install.sh -c"
+ elif test -f "${as_dir}shtool"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
+ ac_install_sh="${as_dir}shtool install -c"
+ else
+ ac_aux_dir_found=no
+ if $ac_first_candidate; then
+ ac_missing_aux_files="${ac_missing_aux_files} install-sh"
+ else
+ break
+ fi
+ fi
+ else
+ if test -f "${as_dir}${ac_aux}"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
+ else
+ ac_aux_dir_found=no
+ if $ac_first_candidate; then
+ ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
+ else
+ break
+ fi
+ fi
+ fi
+ done
+ if test "$ac_aux_dir_found" = yes; then
+ ac_aux_dir="$as_dir"
+ break
+ fi
+ ac_first_candidate=false
+
+ as_found=false
+done
+IFS=$as_save_IFS
+if $as_found
+then :
+
+else $as_nop
+ as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
+fi
+
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+if test -f "${ac_aux_dir}config.guess"; then
+ ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
+fi
+if test -f "${ac_aux_dir}config.sub"; then
+ ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
+fi
+if test -f "$ac_aux_dir/configure"; then
+ ac_configure="$SHELL ${ac_aux_dir}configure"
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; 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
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
+ and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+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
+
+
+
+
+
+
+
+am__api_version='1.16'
+
+
+
+ # Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# 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.
+# Reject install programs that cannot install multiple files.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+printf %s "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test ${ac_cv_path_install+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ # Account for fact that we put trailing slashes in our PATH walk.
+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.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_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
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test ${ac_cv_path_install+y}; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+printf "%s\n" "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
+printf %s "checking whether build environment is sane... " >&6; }
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[\\\"\#\$\&\'\`$am_lf]*)
+ as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
+esac
+case $srcdir in
+ *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
+ as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
+esac
+
+# Do 'set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ am_has_slept=no
+ for am_try in 1 2; do
+ echo "timestamp, slept: $am_has_slept" > conftest.file
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$*" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ if test "$*" != "X $srcdir/configure conftest.file" \
+ && test "$*" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
+ alias in your environment" "$LINENO" 5
+ fi
+ if test "$2" = conftest.file || test $am_try -eq 2; then
+ break
+ fi
+ # Just in case.
+ sleep 1
+ am_has_slept=yes
+ done
+ test "$2" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ as_fn_error $? "newly created file is older than distributed files!
+Check your system clock" "$LINENO" 5
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+# If we didn't sleep, we still need to ensure time stamps of config.status and
+# generated files are strictly newer.
+am_sleep_pid=
+if grep 'slept: no' conftest.file >/dev/null 2>&1; then
+ ( sleep 1 ) &
+ am_sleep_pid=$!
+fi
+
+rm -f conftest.file
+
+test "$program_prefix" != NONE &&
+ program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
+
+
+# Expand $ac_aux_dir to an absolute path.
+am_aux_dir=`cd "$ac_aux_dir" && pwd`
+
+
+ if test x"${MISSING+set}" != xset; then
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --is-lightweight"; then
+ am_missing_run="$MISSING "
+else
+ am_missing_run=
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
+printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
+fi
+
+if test x"${install_sh+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+
+# Installed binaries are usually stripped using 'strip' when the user
+# run "make install-strip". However 'strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the 'STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_STRIP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+printf "%s\n" "$STRIP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_STRIP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+printf "%s\n" "$ac_ct_STRIP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
+printf %s "checking for a race-free mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if test ${ac_cv_path_mkdir+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
+ case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir ('*'coreutils) '* | \
+ 'BusyBox '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+ done
+IFS=$as_save_IFS
+
+fi
+
+ test -d ./--version && rmdir ./--version
+ if test ${ac_cv_path_mkdir+y}; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+printf "%s\n" "$MKDIR_P" >&6; }
+
+for ac_prog in gawk mawk nawk awk
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_AWK+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AWK="$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+printf "%s\n" "$AWK" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval test \${ac_cv_prog_make_${ac_make}_set+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+ SET_MAKE=
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+# Check whether --enable-silent-rules was given.
+if test ${enable_silent_rules+y}
+then :
+ enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in # (((
+ yes) AM_DEFAULT_VERBOSITY=0;;
+ no) AM_DEFAULT_VERBOSITY=1;;
+ *) AM_DEFAULT_VERBOSITY=1;;
+esac
+am_make=${MAKE-make}
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
+printf %s "checking whether $am_make supports nested variables... " >&6; }
+if test ${am_cv_make_support_nested_variables+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if printf "%s\n" 'TRUE=$(BAR$(V))
+BAR0=false
+BAR1=true
+V=1
+am__doit:
+ @$(TRUE)
+.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
+ am_cv_make_support_nested_variables=yes
+else
+ am_cv_make_support_nested_variables=no
+fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
+printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
+if test $am_cv_make_support_nested_variables = yes; then
+ AM_V='$(V)'
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
+else
+ AM_V=$AM_DEFAULT_VERBOSITY
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
+fi
+AM_BACKSLASH='\'
+
+
+
+
+
+
+
+
+
+
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
+printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
+cat > confinc.mk << 'END'
+am__doit:
+ @echo this is the am__doit target >confinc.out
+.PHONY: am__doit
+END
+am__include="#"
+am__quote=
+# BSD make does it like this.
+echo '.include "confinc.mk" # ignored' > confmf.BSD
+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
+echo 'include confinc.mk # ignored' > confmf.GNU
+_am_result=no
+for s in GNU BSD; do
+ { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
+ (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ case $?:`cat confinc.out 2>/dev/null` in #(
+ '0:this is the am__doit target') :
+ case $s in #(
+ BSD) :
+ am__include='.include' am__quote='"' ;; #(
+ *) :
+ am__include='include' am__quote='' ;;
+esac ;; #(
+ *) :
+ ;;
+esac
+ if test "$am__include" != "#"; then
+ _am_result="yes ($s style)"
+ break
+ fi
+done
+rm -f confinc.* confmf.*
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
+printf "%s\n" "${_am_result}" >&6; }
+
+# Check whether --enable-dependency-tracking was given.
+if test ${enable_dependency_tracking+y}
+then :
+ enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+ am__nodep='_no'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+ AMDEP_TRUE=
+ AMDEP_FALSE='#'
+else
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
+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
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+printf "%s\n" "$ac_ct_CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+printf "%s\n" "$ac_ct_CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
+set dummy ${ac_tool_prefix}clang; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}clang"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "clang", so it can be a program name with args.
+set dummy clang; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="clang"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+printf "%s\n" "$ac_ct_CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+fi
+
+
+test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5; }
+
+# Provide some information about the compiler.
+printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion -version; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM 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.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+printf %s "checking whether the C compiler works... " >&6; }
+ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+then :
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else $as_nop
+ ac_file=''
+fi
+if test -z "$ac_file"
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+printf %s "checking for C compiler default output file name... " >&6; }
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+printf "%s\n" "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+printf %s "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+then :
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else $as_nop
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest conftest$ac_cv_exeext
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+printf "%s\n" "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main (void)
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+printf %s "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+ { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if { ac_try='./conftest$ac_cv_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+printf "%s\n" "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+printf %s "checking for suffix of object files... " >&6; }
+if test ${ac_cv_objext+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+then :
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+printf "%s\n" "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
+printf %s "checking whether the compiler supports GNU C... " >&6; }
+if test ${ac_cv_c_compiler_gnu+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_compiler_gnu=yes
+else $as_nop
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+y}
+ac_save_CFLAGS=$CFLAGS
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+printf %s "checking whether $CC accepts -g... " >&6; }
+if test ${ac_cv_prog_cc_g+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_g=yes
+else $as_nop
+ CFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+else $as_nop
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
+if test $ac_test_CFLAGS; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+ac_prog_cc_stdc=no
+if test x$ac_prog_cc_stdc = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
+printf %s "checking for $CC option to enable C11 features... " >&6; }
+if test ${ac_cv_prog_cc_c11+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cc_c11=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_c_conftest_c11_program
+_ACEOF
+for ac_arg in '' -std=gnu11
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_c11=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cc_c11" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+fi
+
+if test "x$ac_cv_prog_cc_c11" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cc_c11" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
+printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
+ CC="$CC $ac_cv_prog_cc_c11"
+fi
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
+ ac_prog_cc_stdc=c11
+fi
+fi
+if test x$ac_prog_cc_stdc = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
+printf %s "checking for $CC option to enable C99 features... " >&6; }
+if test ${ac_cv_prog_cc_c99+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cc_c99=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_c_conftest_c99_program
+_ACEOF
+for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_c99=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cc_c99" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+fi
+
+if test "x$ac_cv_prog_cc_c99" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cc_c99" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
+ CC="$CC $ac_cv_prog_cc_c99"
+fi
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
+ ac_prog_cc_stdc=c99
+fi
+fi
+if test x$ac_prog_cc_stdc = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
+printf %s "checking for $CC option to enable C89 features... " >&6; }
+if test ${ac_cv_prog_cc_c89+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_c_conftest_c89_program
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+fi
+
+if test "x$ac_cv_prog_cc_c89" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cc_c89" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
+ CC="$CC $ac_cv_prog_cc_c89"
+fi
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
+ ac_prog_cc_stdc=c89
+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
+
+
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
+printf %s "checking whether $CC understands -c and -o together... " >&6; }
+if test ${am_cv_prog_cc_c_o+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ # Make sure it works both with $CC and with simple cc.
+ # Following AC_PROG_CC_C_O, we do the test twice because some
+ # compilers refuse to overwrite an existing .o file with -o,
+ # though they will create one.
+ am_cv_prog_cc_c_o=yes
+ for am_i in 1 2; do
+ if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
+ ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } \
+ && test -f conftest2.$ac_objext; then
+ : OK
+ else
+ am_cv_prog_cc_c_o=no
+ break
+ fi
+ done
+ rm -f core conftest*
+ unset am_i
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
+printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
+if test "$am_cv_prog_cc_c_o" != yes; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+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
+
+
+depcc="$CC" am_compiler_list=
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+printf %s "checking dependency style of $depcc... " >&6; }
+if test ${am_cv_CC_dependencies_compiler_type+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named 'D' -- because '-MD' means "put the output
+ # in D".
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ am__universal=false
+ case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac
+
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+ # Solaris 10 /bin/sh.
+ echo '/* dummy */' > sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle '-M -o', and we need to detect this. Also, some Intel
+ # versions had trouble with output in subdirs.
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ nosideeffect)
+ # After this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested.
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+ # This compiler won't grok '-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CC_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
+printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+ am__fastdepCC_TRUE=
+ am__fastdepCC_FALSE='#'
+else
+ am__fastdepCC_TRUE='#'
+ am__fastdepCC_FALSE=
+fi
+
+
+
+# Check whether --enable-compiler-warnings was given.
+if test ${enable_compiler_warnings+y}
+then :
+ enableval=$enable_compiler_warnings;
+fi
+case $enable_compiler_warnings in #(
+ no | min | yes | max | all) :
+ ;; #(
+ *) :
+ if test "x$enable_maintainer_mode" = xyes
+then :
+ enable_compiler_warnings=yes
+else $as_nop
+ enable_compiler_warnings=min
+fi ;;
+esac
+
+case `pwd` in
+ *\ * | *\ *)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
+printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
+esac
+
+
+
+macro_version='2.4.6'
+macro_revision='2.4.6'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ltmain=$ac_aux_dir/ltmain.sh
+
+
+
+ # Make sure we can run config.sub.
+$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
+ as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+printf %s "checking build system type... " >&6; }
+if test ${ac_cv_build+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
+test "x$ac_build_alias" = x &&
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
+ as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+printf "%s\n" "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+printf %s "checking host system type... " >&6; }
+if test ${ac_cv_host+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
+ as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+printf "%s\n" "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+# Backslashify metacharacters that are still active within
+# double-quoted strings.
+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 delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
+printf %s "checking how to print strings... " >&6; }
+# Test print first, because it will be a builtin if present.
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='print -r --'
+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='printf %s\n'
+else
+ # Use this function as a fallback that always works.
+ func_fallback_echo ()
+ {
+ eval 'cat <<_LTECHO_EOF
+$1
+_LTECHO_EOF'
+ }
+ ECHO='func_fallback_echo'
+fi
+
+# func_echo_all arg...
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+ $ECHO ""
+}
+
+case $ECHO in
+ printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
+printf "%s\n" "printf" >&6; } ;;
+ print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
+printf "%s\n" "print -r" >&6; } ;;
+ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
+printf "%s\n" "cat" >&6; } ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
+printf %s "checking for a sed that does not truncate output... " >&6; }
+if test ${ac_cv_path_SED+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
+ for ac_i in 1 2 3 4 5 6 7; do
+ ac_script="$ac_script$as_nl$ac_script"
+ done
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
+ { ac_script=; unset ac_script;}
+ if test -z "$SED"; then
+ ac_path_SED_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in sed gsed
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_SED" || continue
+# Check for GNU ac_path_SED and select it if it is found.
+ # Check for GNU $ac_path_SED
+case `"$ac_path_SED" --version 2>&1` in
+*GNU*)
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
+*)
+ ac_count=0
+ printf %s 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ printf "%s\n" '' >> "conftest.nl"
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_SED_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_SED="$ac_path_SED"
+ ac_path_SED_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_SED_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_SED"; then
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
+ fi
+else
+ ac_cv_path_SED=$SED
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
+printf "%s\n" "$ac_cv_path_SED" >&6; }
+ SED="$ac_cv_path_SED"
+ rm -f conftest.sed
+
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+
+
+
+
+
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+printf %s "checking for grep that handles long lines and -e... " >&6; }
+if test ${ac_cv_path_GREP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in grep ggrep
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_GREP" || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ printf %s 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ printf "%s\n" 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+printf "%s\n" "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+printf %s "checking for egrep... " >&6; }
+if test ${ac_cv_path_EGREP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in egrep
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_EGREP" || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ printf %s 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ printf "%s\n" 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+printf "%s\n" "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
+printf %s "checking for fgrep... " >&6; }
+if test ${ac_cv_path_FGREP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
+ then ac_cv_path_FGREP="$GREP -F"
+ else
+ if test -z "$FGREP"; then
+ ac_path_FGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in fgrep
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_FGREP" || continue
+# Check for GNU ac_path_FGREP and select it if it is found.
+ # Check for GNU $ac_path_FGREP
+case `"$ac_path_FGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
+*)
+ ac_count=0
+ printf %s 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ printf "%s\n" 'FGREP' >> "conftest.nl"
+ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_FGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_FGREP="$ac_path_FGREP"
+ ac_path_FGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_FGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_FGREP"; then
+ as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_FGREP=$FGREP
+fi
+
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
+printf "%s\n" "$ac_cv_path_FGREP" >&6; }
+ FGREP="$ac_cv_path_FGREP"
+
+
+test -z "$GREP" && GREP=grep
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-gnu-ld was given.
+if test ${with_gnu_ld+y}
+then :
+ withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
+else $as_nop
+ with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test yes = "$GCC"; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
+printf %s "checking for ld used by $CC... " >&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 yes = "$with_gnu_ld"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
+printf %s "checking for GNU ld... " >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
+printf %s "checking for non-GNU ld... " >&6; }
+fi
+if test ${lt_cv_path_LD+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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 variants of GNU ld 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 no != "$with_gnu_ld" && break
+ ;;
+ *)
+ test yes != "$with_gnu_ld" && 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
+
+LD=$lt_cv_path_LD
+if test -n "$LD"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+printf "%s\n" "$LD" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
+printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
+if test ${lt_cv_prog_gnu_ld+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ # I'd rather use --version here, but apparently some GNU lds 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
+printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
+printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
+if test ${lt_cv_path_NM+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM=$NM
+else
+ lt_nm_to_check=${ac_tool_prefix}nm
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS=$lt_save_ifs
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm=$ac_dir/$lt_tmp_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
+ # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
+ case $build_os in
+ mingw*) lt_bad_file=conftest.nm/nofile ;;
+ *) lt_bad_file=/dev/null ;;
+ esac
+ case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
+ *$lt_bad_file* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break 2
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break 2
+ ;;
+ *)
+ 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=$lt_save_ifs
+ done
+ : ${lt_cv_path_NM=no}
+fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
+printf "%s\n" "$lt_cv_path_NM" >&6; }
+if test no != "$lt_cv_path_NM"; then
+ NM=$lt_cv_path_NM
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ if test -n "$DUMPBIN"; then :
+ # Let the user override the test.
+ else
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in dumpbin "link -dump"
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_DUMPBIN+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$DUMPBIN"; then
+ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DUMPBIN=$ac_cv_prog_DUMPBIN
+if test -n "$DUMPBIN"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
+printf "%s\n" "$DUMPBIN" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$DUMPBIN" && break
+ done
+fi
+if test -z "$DUMPBIN"; then
+ ac_ct_DUMPBIN=$DUMPBIN
+ for ac_prog in dumpbin "link -dump"
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_DUMPBIN"; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
+if test -n "$ac_ct_DUMPBIN"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
+printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_DUMPBIN" && break
+done
+
+ if test "x$ac_ct_DUMPBIN" = x; then
+ DUMPBIN=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DUMPBIN=$ac_ct_DUMPBIN
+ fi
+fi
+
+ case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
+ *COFF*)
+ DUMPBIN="$DUMPBIN -symbols -headers"
+ ;;
+ *)
+ DUMPBIN=:
+ ;;
+ esac
+ fi
+
+ if test : != "$DUMPBIN"; then
+ NM=$DUMPBIN
+ fi
+fi
+test -z "$NM" && NM=nm
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
+printf %s "checking the name lister ($NM) interface... " >&6; }
+if test ${lt_cv_nm_interface+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:$LINENO: output\"" >&5)
+ cat conftest.out >&5
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
+printf "%s\n" "$lt_cv_nm_interface" >&6; }
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
+printf %s "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
+printf "%s\n" "no, using $LN_S" >&6; }
+fi
+
+# find the maximum length of command line arguments
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
+printf %s "checking the maximum length of command line arguments... " >&6; }
+if test ${lt_cv_sys_max_cmd_len+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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* | cegcc*)
+ # 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;
+ ;;
+
+ mint*)
+ # On MiNT this can take a long time and run out of memory.
+ 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;
+ ;;
+
+ bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
+ # 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 all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ os2*)
+ # The test takes a long time on OS/2.
+ lt_cv_sys_max_cmd_len=8192
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len" && \
+ test undefined != "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # 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.
+ while { test X`env echo "$teststring$teststring" 2>/dev/null` \
+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
+ test 17 != "$i" # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ 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`
+ fi
+ ;;
+ esac
+
+fi
+
+if test -n "$lt_cv_sys_max_cmd_len"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
+printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
+printf "%s\n" "none" >&6; }
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+
+
+
+
+
+: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+
+
+
+
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
+printf %s "checking how to convert $build file names to $host format... " >&6; }
+if test ${lt_cv_to_host_file_cmd+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ case $host in
+ *-*-mingw* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
+ ;;
+ *-*-cygwin* )
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
+ ;;
+ * ) # otherwise, assume *nix
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
+ ;;
+ esac
+ ;;
+ *-*-cygwin* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
+ ;;
+ *-*-cygwin* )
+ lt_cv_to_host_file_cmd=func_convert_file_noop
+ ;;
+ * ) # otherwise, assume *nix
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
+ ;;
+ esac
+ ;;
+ * ) # unhandled hosts (and "normal" native builds)
+ lt_cv_to_host_file_cmd=func_convert_file_noop
+ ;;
+esac
+
+fi
+
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
+printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
+printf %s "checking how to convert $build file names to toolchain format... " >&6; }
+if test ${lt_cv_to_tool_file_cmd+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ #assume ordinary cross tools, or native build.
+lt_cv_to_tool_file_cmd=func_convert_file_noop
+case $host in
+ *-*-mingw* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
+ ;;
+ esac
+ ;;
+esac
+
+fi
+
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
+printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
+printf %s "checking for $LD option to reload object files... " >&6; }
+if test ${lt_cv_ld_reload_flag+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_ld_reload_flag='-r'
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
+printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ if test yes != "$GCC"; then
+ reload_cmds=false
+ fi
+ ;;
+ darwin*)
+ if test yes = "$GCC"; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_OBJDUMP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
+printf "%s\n" "$OBJDUMP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
+printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_OBJDUMP" = x; then
+ OBJDUMP="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OBJDUMP=$ac_ct_OBJDUMP
+ fi
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
+printf %s "checking how to recognize dependent libraries... " >&6; }
+if test ${lt_cv_deplibs_check_method+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# '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
+# that 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.
+
+case $host_os in
+aix[4-9]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+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*)
+ # 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',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ # Keep this pattern in sync with the one in func_win32_libid.
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc*)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+haiku*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ 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])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ 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
+ ;;
+
+interix[3-9]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
+ ;;
+
+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 glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+ 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]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd* | bitrig*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; 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*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ 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
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+os2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
+printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
+
+file_magic_glob=
+want_nocaseglob=no
+if test "$build" = "$host"; then
+ case $host_os in
+ mingw* | pw32*)
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
+ want_nocaseglob=yes
+ else
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
+ fi
+ ;;
+ esac
+fi
+
+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 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_DLLTOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DLLTOOL=$ac_cv_prog_DLLTOOL
+if test -n "$DLLTOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
+printf "%s\n" "$DLLTOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
+if test -n "$ac_ct_DLLTOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
+printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_DLLTOOL" = x; then
+ DLLTOOL="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DLLTOOL=$ac_ct_DLLTOOL
+ fi
+else
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
+fi
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
+printf %s "checking how to associate runtime and link libraries... " >&6; }
+if test ${lt_cv_sharedlib_from_linklib_cmd+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
+
+case $host_os in
+cygwin* | mingw* | pw32* | cegcc*)
+ # two different shell functions defined in ltmain.sh;
+ # decide which one to use based on capabilities of $DLLTOOL
+ case `$DLLTOOL --help 2>&1` in
+ *--identify-strict*)
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
+ ;;
+ *)
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
+ ;;
+ esac
+ ;;
+*)
+ # fallback: assume linklib IS sharedlib
+ lt_cv_sharedlib_from_linklib_cmd=$ECHO
+ ;;
+esac
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
+printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ for ac_prog in ar
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_AR+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+printf "%s\n" "$AR" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$AR" && break
+ done
+fi
+if test -z "$AR"; then
+ ac_ct_AR=$AR
+ for ac_prog in ar
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_AR+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AR="$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+printf "%s\n" "$ac_ct_AR" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_AR" && break
+done
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+fi
+
+: ${AR=ar}
+: ${AR_FLAGS=cru}
+
+
+
+
+
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
+printf %s "checking for archiver @FILE support... " >&6; }
+if test ${lt_cv_ar_at_file+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_ar_at_file=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ echo conftest.$ac_objext > conftest.lst
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
+ (eval $lt_ar_try) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if test 0 -eq "$ac_status"; then
+ # Ensure the archiver fails upon bogus file names.
+ rm -f conftest.$ac_objext libconftest.a
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
+ (eval $lt_ar_try) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if test 0 -ne "$ac_status"; then
+ lt_cv_ar_at_file=@
+ fi
+ fi
+ rm -f conftest.* libconftest.a
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
+printf "%s\n" "$lt_cv_ar_at_file" >&6; }
+
+if test no = "$lt_cv_ar_at_file"; then
+ archiver_list_spec=
+else
+ archiver_list_spec=$lt_cv_ar_at_file
+fi
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_STRIP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+printf "%s\n" "$STRIP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_STRIP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+printf "%s\n" "$ac_ct_STRIP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+test -z "$STRIP" && STRIP=:
+
+
+
+
+
+
+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.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_RANLIB+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+printf "%s\n" "$RANLIB" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_RANLIB+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+printf "%s\n" "$ac_ct_RANLIB" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+test -z "$RANLIB" && RANLIB=:
+
+
+
+
+
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ bitrig* | openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
+fi
+
+case $host_os in
+ darwin*)
+ lock_old_archive_extraction=yes ;;
+ *)
+ lock_old_archive_extraction=no ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
+printf %s "checking command to parse $NM output from $compiler object... " >&6; }
+if test ${lt_cv_sys_global_symbol_pipe+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+
+# 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]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[BCDT]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[ABCDGISTW]'
+ ;;
+hpux*)
+ if test ia64 = "$host_cpu"; then
+ symcode='[ABCDEGRST]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[BCDEGRST]'
+ ;;
+osf*)
+ symcode='[BCDEGQRST]'
+ ;;
+solaris*)
+ symcode='[BDRT]'
+ ;;
+sco3.2v5*)
+ symcode='[DT]'
+ ;;
+sysv4.2uw2*)
+ symcode='[DT]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[ABDT]'
+ ;;
+sysv4)
+ symcode='[DFNSTU]'
+ ;;
+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
+
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Gets list of data symbols to import.
+ lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
+ # Adjust the below global symbol transforms to fixup imported variables.
+ lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
+ lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
+ lt_c_name_lib_hook="\
+ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
+ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
+else
+ # Disable hooks by default.
+ lt_cv_sys_global_symbol_to_import=
+ lt_cdecl_hook=
+ lt_c_name_hook=
+ lt_c_name_lib_hook=
+fi
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n"\
+$lt_cdecl_hook\
+" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
+$lt_c_name_hook\
+" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
+
+# Transform an extracted symbol line into symbol name with lib prefix and
+# symbol address.
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
+$lt_c_name_lib_hook\
+" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
+" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
+
+# 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
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function,
+ # D for any global variable and I for any imported variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK '"\
+" {last_section=section; section=\$ 3};"\
+" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
+" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
+" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
+" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
+" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if { { eval echo "\"\$as_me\":${as_lineno-$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=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && 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
+
+ # 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 <<_LT_EOF > conftest.$ac_ext
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
+#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
+/* DATA imports from DLLs on WIN32 can't be const, because runtime
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
+# define LT_DLSYM_CONST
+#elif defined __osf__
+/* This system does not cope well with relocations in const data. */
+# define LT_DLSYM_CONST
+#else
+# define LT_DLSYM_CONST const
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+LT_DLSYM_CONST struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_globsym_save_LIBS=$LIBS
+ lt_globsym_save_CFLAGS=$CFLAGS
+ LIBS=conftstm.$ac_objext
+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest$ac_exeext; then
+ pipe_works=yes
+ fi
+ LIBS=$lt_globsym_save_LIBS
+ CFLAGS=$lt_globsym_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
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test yes = "$pipe_works"; 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
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
+printf "%s\n" "failed" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+printf "%s\n" "ok" >&6; }
+fi
+
+# Response file support.
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ nm_file_list_spec='@'
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
+ nm_file_list_spec='@'
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
+printf %s "checking for sysroot... " >&6; }
+
+# Check whether --with-sysroot was given.
+if test ${with_sysroot+y}
+then :
+ withval=$with_sysroot;
+else $as_nop
+ with_sysroot=no
+fi
+
+
+lt_sysroot=
+case $with_sysroot in #(
+ yes)
+ if test yes = "$GCC"; then
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
+ fi
+ ;; #(
+ /*)
+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
+ ;; #(
+ no|'')
+ ;; #(
+ *)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
+printf "%s\n" "$with_sysroot" >&6; }
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
+ ;;
+esac
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
+printf "%s\n" "${lt_sysroot:-no}" >&6; }
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
+printf %s "checking for a working dd... " >&6; }
+if test ${ac_cv_path_lt_DD+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ printf 0123456789abcdef0123456789abcdef >conftest.i
+cat conftest.i conftest.i >conftest2.i
+: ${lt_DD:=$DD}
+if test -z "$lt_DD"; then
+ ac_path_lt_DD_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in dd
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_lt_DD" || continue
+if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
+ cmp -s conftest.i conftest.out \
+ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
+fi
+ $ac_path_lt_DD_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_lt_DD"; then
+ :
+ fi
+else
+ ac_cv_path_lt_DD=$lt_DD
+fi
+
+rm -f conftest.i conftest2.i conftest.out
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
+printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
+printf %s "checking how to truncate binary pipes... " >&6; }
+if test ${lt_cv_truncate_bin+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ printf 0123456789abcdef0123456789abcdef >conftest.i
+cat conftest.i conftest.i >conftest2.i
+lt_cv_truncate_bin=
+if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
+ cmp -s conftest.i conftest.out \
+ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
+fi
+rm -f conftest.i conftest2.i conftest.out
+test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
+printf "%s\n" "$lt_cv_truncate_bin" >&6; }
+
+
+
+
+
+
+
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+func_cc_basename ()
+{
+ for cc_temp in $*""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+ done
+ func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+}
+
+# Check whether --enable-libtool-lock was given.
+if test ${enable_libtool_lock+y}
+then :
+ enableval=$enable_libtool_lock;
+fi
+
+test no = "$enable_libtool_lock" || enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out what ABI is being produced by ac_compile, and set mode
+ # options accordingly.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; 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*
+ ;;
+*-*-irix6*)
+ # Find out what ABI is being produced by ac_compile, and set linker
+ # options accordingly.
+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ if test yes = "$lt_cv_prog_gnu_ld"; 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*
+ ;;
+
+mips64*-*linux*)
+ # Find out what ABI is being produced by ac_compile, and set linker
+ # options accordingly.
+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ emul=elf
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ emul="${emul}32"
+ ;;
+ *64-bit*)
+ emul="${emul}64"
+ ;;
+ esac
+ case `/usr/bin/file conftest.$ac_objext` in
+ *MSB*)
+ emul="${emul}btsmip"
+ ;;
+ *LSB*)
+ emul="${emul}ltsmip"
+ ;;
+ esac
+ case `/usr/bin/file conftest.$ac_objext` in
+ *N32*)
+ emul="${emul}n32"
+ ;;
+ esac
+ LD="${LD-ld} -m $emul"
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out what ABI is being produced by ac_compile, and set linker
+ # options accordingly. Note that the listed cases only cover the
+ # situations where additional linker options are needed (such as when
+ # doing 32-bit compilation for a host where ld defaults to 64-bit, or
+ # vice versa); the common cases where no linker options are needed do
+ # not appear in the list.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ case `/usr/bin/file conftest.o` in
+ *x86-64*)
+ LD="${LD-ld} -m elf32_x86_64"
+ ;;
+ *)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ esac
+ ;;
+ powerpc64le-*linux*)
+ LD="${LD-ld} -m elf32lppclinux"
+ ;;
+ 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-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ powerpcle-*linux*)
+ LD="${LD-ld} -m elf64lppc"
+ ;;
+ powerpc-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -belf"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
+printf %s "checking whether the C compiler needs -belf... " >&6; }
+if test ${lt_cv_cc_needs_belf+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ lt_cv_cc_needs_belf=yes
+else $as_nop
+ lt_cv_cc_needs_belf=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ 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
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
+printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
+ if test yes != "$lt_cv_cc_needs_belf"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS=$SAVE_CFLAGS
+ fi
+ ;;
+*-*solaris*)
+ # Find out what ABI is being produced by ac_compile, and set linker
+ # options accordingly.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*)
+ case $host in
+ i?86-*-solaris*|x86_64-*-solaris*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ sparc*-*-solaris*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
+ LD=${LD-ld}_sol2
+ fi
+ ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks=$enable_libtool_lock
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
+set dummy ${ac_tool_prefix}mt; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_MANIFEST_TOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$MANIFEST_TOOL"; then
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
+if test -n "$MANIFEST_TOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
+printf "%s\n" "$MANIFEST_TOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
+ # Extract the first word of "mt", so it can be a program name with args.
+set dummy mt; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
+if test -n "$ac_ct_MANIFEST_TOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
+printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
+ MANIFEST_TOOL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
+ fi
+else
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
+fi
+
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
+printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
+if test ${lt_cv_path_mainfest_tool+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_path_mainfest_tool=no
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
+ cat conftest.err >&5
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
+ lt_cv_path_mainfest_tool=yes
+ fi
+ rm -f conftest*
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
+printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
+if test yes != "$lt_cv_path_mainfest_tool"; then
+ MANIFEST_TOOL=:
+fi
+
+
+
+
+
+
+ case $host_os in
+ rhapsody* | darwin*)
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_DSYMUTIL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$DSYMUTIL"; then
+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DSYMUTIL=$ac_cv_prog_DSYMUTIL
+if test -n "$DSYMUTIL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
+printf "%s\n" "$DSYMUTIL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DSYMUTIL"; then
+ ac_ct_DSYMUTIL=$DSYMUTIL
+ # Extract the first word of "dsymutil", so it can be a program name with args.
+set dummy dsymutil; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_DSYMUTIL"; then
+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
+if test -n "$ac_ct_DSYMUTIL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
+printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_DSYMUTIL" = x; then
+ DSYMUTIL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DSYMUTIL=$ac_ct_DSYMUTIL
+ fi
+else
+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_NMEDIT+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$NMEDIT"; then
+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+NMEDIT=$ac_cv_prog_NMEDIT
+if test -n "$NMEDIT"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
+printf "%s\n" "$NMEDIT" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NMEDIT"; then
+ ac_ct_NMEDIT=$NMEDIT
+ # Extract the first word of "nmedit", so it can be a program name with args.
+set dummy nmedit; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_NMEDIT+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_NMEDIT"; then
+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_NMEDIT="nmedit"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
+if test -n "$ac_ct_NMEDIT"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
+printf "%s\n" "$ac_ct_NMEDIT" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_NMEDIT" = x; then
+ NMEDIT=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ NMEDIT=$ac_ct_NMEDIT
+ fi
+else
+ NMEDIT="$ac_cv_prog_NMEDIT"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
+set dummy ${ac_tool_prefix}lipo; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_LIPO+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$LIPO"; then
+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+LIPO=$ac_cv_prog_LIPO
+if test -n "$LIPO"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
+printf "%s\n" "$LIPO" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_LIPO"; then
+ ac_ct_LIPO=$LIPO
+ # Extract the first word of "lipo", so it can be a program name with args.
+set dummy lipo; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_LIPO+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_LIPO"; then
+ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_LIPO="lipo"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
+if test -n "$ac_ct_LIPO"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
+printf "%s\n" "$ac_ct_LIPO" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_LIPO" = x; then
+ LIPO=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ LIPO=$ac_ct_LIPO
+ fi
+else
+ LIPO="$ac_cv_prog_LIPO"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_OTOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$OTOOL"; then
+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL=$ac_cv_prog_OTOOL
+if test -n "$OTOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
+printf "%s\n" "$OTOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL"; then
+ ac_ct_OTOOL=$OTOOL
+ # Extract the first word of "otool", so it can be a program name with args.
+set dummy otool; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_OTOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_OTOOL"; then
+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OTOOL="otool"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
+if test -n "$ac_ct_OTOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
+printf "%s\n" "$ac_ct_OTOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL" = x; then
+ OTOOL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL=$ac_ct_OTOOL
+ fi
+else
+ OTOOL="$ac_cv_prog_OTOOL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool64; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_OTOOL64+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$OTOOL64"; then
+ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL64=$ac_cv_prog_OTOOL64
+if test -n "$OTOOL64"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
+printf "%s\n" "$OTOOL64" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL64"; then
+ ac_ct_OTOOL64=$OTOOL64
+ # Extract the first word of "otool64", so it can be a program name with args.
+set dummy otool64; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_OTOOL64+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_OTOOL64"; then
+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OTOOL64="otool64"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
+if test -n "$ac_ct_OTOOL64"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
+printf "%s\n" "$ac_ct_OTOOL64" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL64" = x; then
+ OTOOL64=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL64=$ac_ct_OTOOL64
+ fi
+else
+ OTOOL64="$ac_cv_prog_OTOOL64"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
+printf %s "checking for -single_module linker flag... " >&6; }
+if test ${lt_cv_apple_cc_single_mod+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_apple_cc_single_mod=no
+ if test -z "$LT_MULTI_MODULE"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&5
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ # If there is a non-empty error log, and "single_module"
+ # appears in it, assume the flag caused a linker warning
+ if test -s conftest.err && $GREP single_module conftest.err; then
+ cat conftest.err >&5
+ # Otherwise, if the output was created with a 0 exit code from
+ # the compiler, it worked.
+ elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&5
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
+printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
+printf %s "checking for -exported_symbols_list linker flag... " >&6; }
+if test ${lt_cv_ld_exported_symbols_list+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ lt_cv_ld_exported_symbols_list=yes
+else $as_nop
+ lt_cv_ld_exported_symbols_list=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$save_LDFLAGS
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
+printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
+printf %s "checking for -force_load linker flag... " >&6; }
+if test ${lt_cv_ld_force_load+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_ld_force_load=no
+ cat > conftest.c << _LT_EOF
+int forced_loaded() { return 2;}
+_LT_EOF
+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
+ echo "$AR cru libconftest.a conftest.o" >&5
+ $AR cru libconftest.a conftest.o 2>&5
+ echo "$RANLIB libconftest.a" >&5
+ $RANLIB libconftest.a 2>&5
+ cat > conftest.c << _LT_EOF
+int main() { return 0;}
+_LT_EOF
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
+ _lt_result=$?
+ if test -s conftest.err && $GREP force_load conftest.err; then
+ cat conftest.err >&5
+ elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
+ lt_cv_ld_force_load=yes
+ else
+ cat conftest.err >&5
+ fi
+ rm -f conftest.err libconftest.a conftest conftest.c
+ rm -rf conftest.dSYM
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
+printf "%s\n" "$lt_cv_ld_force_load" >&6; }
+ case $host_os in
+ rhapsody* | darwin1.[012])
+ _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+ _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+ 10.[012][,.]*)
+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test yes = "$lt_cv_apple_cc_single_mod"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test yes = "$lt_cv_ld_exported_symbols_list"; then
+ _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
+ fi
+ if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+
+# func_munge_path_list VARIABLE PATH
+# -----------------------------------
+# VARIABLE is name of variable containing _space_ separated list of
+# directories to be munged by the contents of PATH, which is string
+# having a format:
+# "DIR[:DIR]:"
+# string "DIR[ DIR]" will be prepended to VARIABLE
+# ":DIR[:DIR]"
+# string "DIR[ DIR]" will be appended to VARIABLE
+# "DIRP[:DIRP]::[DIRA:]DIRA"
+# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
+# "DIRA[ DIRA]" will be appended to VARIABLE
+# "DIR[:DIR]"
+# VARIABLE will be replaced by "DIR[ DIR]"
+func_munge_path_list ()
+{
+ case x$2 in
+ x)
+ ;;
+ *:)
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
+ ;;
+ x:*)
+ eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
+ ;;
+ *::*)
+ eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
+ eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
+ ;;
+ *)
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
+ ;;
+ esac
+}
+
+ac_header= ac_cache=
+for ac_item in $ac_header_c_list
+do
+ if test $ac_cache; then
+ ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
+ if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
+ printf "%s\n" "#define $ac_item 1" >> confdefs.h
+ fi
+ ac_header= ac_cache=
+ elif test $ac_header; then
+ ac_cache=$ac_item
+ else
+ ac_header=$ac_item
+ fi
+done
+
+
+
+
+
+
+
+
+if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
+then :
+
+printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
+"
+if test "x$ac_cv_header_dlfcn_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
+printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
+if test ${ac_cv_c_undeclared_builtin_options+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_save_CFLAGS=$CFLAGS
+ ac_cv_c_undeclared_builtin_options='cannot detect'
+ for ac_arg in '' -fno-builtin; do
+ CFLAGS="$ac_save_CFLAGS $ac_arg"
+ # This test program should *not* compile successfully.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+(void) strchr;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+else $as_nop
+ # This test program should compile successfully.
+ # No library function is consistently available on
+ # freestanding implementations, so test against a dummy
+ # declaration. Include always-available headers on the
+ # off chance that they somehow elicit warnings.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <float.h>
+#include <limits.h>
+#include <stdarg.h>
+#include <stddef.h>
+extern void ac_decl (int, char *);
+
+int
+main (void)
+{
+(void) ac_decl (0, (char *) 0);
+ (void) ac_decl;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ if test x"$ac_arg" = x
+then :
+ ac_cv_c_undeclared_builtin_options='none needed'
+else $as_nop
+ ac_cv_c_undeclared_builtin_options=$ac_arg
+fi
+ break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ done
+ CFLAGS=$ac_save_CFLAGS
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
+printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
+ case $ac_cv_c_undeclared_builtin_options in #(
+ 'cannot detect') :
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot make $CC report undeclared builtins
+See \`config.log' for more details" "$LINENO" 5; } ;; #(
+ 'none needed') :
+ ac_c_undeclared_builtin_options='' ;; #(
+ *) :
+ ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
+esac
+
+##tldbg KPSE_COMMON: bibtex-x (no-define).
+##tldbg KPSE_BASIC: Remember bibtex-x (no-define) as Kpse_Package (for future messages).
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE='extended-bibtex--tex-live-'
+ VERSION='4.00'
+
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+# For better backward compatibility. To be removed once Automake 1.9.x
+# dies out for good. For more background, see:
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
+mkdir_p='$(MKDIR_P)'
+
+# We need awk for the "check" target (and possibly the TAP driver). The
+# system "awk" is bad on some platforms.
+# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AMTAR='$${TAR-tar}'
+
+
+# We'll loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar pax cpio none'
+
+am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
+
+
+
+
+
+# Variables for tags utilities; see am/tags.am
+if test -z "$CTAGS"; then
+ CTAGS=ctags
+fi
+
+if test -z "$ETAGS"; then
+ ETAGS=etags
+fi
+
+if test -z "$CSCOPE"; then
+ CSCOPE=cscope
+fi
+
+
+
+# POSIX will say in a future version that running "rm -f" with no argument
+# is OK; and we want to be able to make that assumption in our Makefile
+# recipes. So use an aggressive probe to check that the usage we want is
+# actually supported "in the wild" to an acceptable degree.
+# See automake bug#10828.
+# To make any issue more visible, cause the running configure to be aborted
+# by default if the 'rm' program in use doesn't match our expectations; the
+# user can still override this though.
+if rm -f && rm -fr && rm -rf; then : OK; else
+ cat >&2 <<'END'
+Oops!
+
+Your 'rm' program seems unable to run without file operands specified
+on the command line, even when the '-f' option is present. This is contrary
+to the behaviour of most rm programs out there, and not conforming with
+the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
+
+Please tell bug-automake@gnu.org about your system, including the value
+of your $PATH and any error possibly output before this message. This
+can help us improve future automake versions.
+
+END
+ if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
+ echo 'Configuration will proceed anyway, since you have set the' >&2
+ echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
+ echo >&2
+ else
+ cat >&2 <<'END'
+Aborting the configuration process, to ensure you take notice of the issue.
+
+You can download and install GNU coreutils to get an 'rm' implementation
+that behaves properly: <https://www.gnu.org/software/coreutils/>.
+
+If you want to complete the configuration process using your problematic
+'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
+to "yes", and re-run configure.
+
+END
+ as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
+ fi
+fi
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
+printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
+ # Check whether --enable-maintainer-mode was given.
+if test ${enable_maintainer_mode+y}
+then :
+ enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
+else $as_nop
+ USE_MAINTAINER_MODE=no
+fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
+printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
+ if test $USE_MAINTAINER_MODE = yes; then
+ MAINTAINER_MODE_TRUE=
+ MAINTAINER_MODE_FALSE='#'
+else
+ MAINTAINER_MODE_TRUE='#'
+ MAINTAINER_MODE_FALSE=
+fi
+
+ MAINT=$MAINTAINER_MODE_TRUE
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
+printf %s "checking whether the compiler accepts prototypes... " >&6; }
+if test ${kb_cv_c_prototypes+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+int
+main (void)
+{
+extern void foo(int i,...);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ kb_cv_c_prototypes=yes
+else $as_nop
+ kb_cv_c_prototypes=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
+printf "%s\n" "$kb_cv_c_prototypes" >&6; }
+if test "x$kb_cv_c_prototypes" = xno; then
+ as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
+printf %s "checking what warning flags to pass to the C compiler... " >&6; }
+if test ${kpse_cv_warning_cflags+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test "x$GCC" = xyes; then
+ kpse_cv_warning_cflags=
+if test "x$enable_compiler_warnings" != xno; then
+ kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
+ case `$CC -dumpversion` in #(
+ 3.4.* | 4.* | 5.*) :
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
+ *) :
+ ;;
+esac
+ case `$CC -dumpversion` in #(
+ 3.[234].* | 4.* | 5.*) :
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
+ *) :
+ ;;
+esac
+ if test "x$enable_compiler_warnings" != xmin; then
+ kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
+ if test "x$enable_compiler_warnings" != xyes; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
+ case `$CC -dumpversion` in #(
+ 3.4.* | 4.* | 5.*) :
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
+ *) :
+ ;;
+esac
+ if test "x$enable_compiler_warnings" != xmax; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
+ fi
+ fi
+ fi
+fi
+elif test "x$enable_compiler_warnings" = xno; then
+ kpse_cv_warning_cflags=
+else
+ kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
+fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
+printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
+WARNING_CFLAGS=$kpse_cv_warning_cflags
+
+
+
+
+
+
+
+
+
+
+
+
+# Set options
+enable_win32_dll=yes
+
+case $host in
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_AS+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AS="${ac_tool_prefix}as"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AS=$ac_cv_prog_AS
+if test -n "$AS"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
+printf "%s\n" "$AS" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_AS+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AS="as"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AS=$ac_cv_prog_ac_ct_AS
+if test -n "$ac_ct_AS"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
+printf "%s\n" "$ac_ct_AS" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_AS" = x; then
+ AS="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AS=$ac_ct_AS
+ fi
+else
+ AS="$ac_cv_prog_AS"
+fi
+
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_DLLTOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DLLTOOL=$ac_cv_prog_DLLTOOL
+if test -n "$DLLTOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
+printf "%s\n" "$DLLTOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
+if test -n "$ac_ct_DLLTOOL"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
+printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_DLLTOOL" = x; then
+ DLLTOOL="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DLLTOOL=$ac_ct_DLLTOOL
+ fi
+else
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
+fi
+
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_OBJDUMP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
+printf "%s\n" "$OBJDUMP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
+printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_OBJDUMP" = x; then
+ OBJDUMP="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OBJDUMP=$ac_ct_OBJDUMP
+ fi
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+ ;;
+esac
+
+test -z "$AS" && AS=as
+
+
+
+
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+
+
+
+
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+
+
+
+
+
+
+
+ enable_dlopen=no
+
+
+
+ # Check whether --enable-shared was given.
+if test ${enable_shared+y}
+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.
+ 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 $as_nop
+ enable_shared=yes
+fi
+
+
+
+
+
+
+
+
+
+ # Check whether --enable-static was given.
+if test ${enable_static+y}
+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.
+ 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 $as_nop
+ enable_static=yes
+fi
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-pic was given.
+if test ${with_pic+y}
+then :
+ withval=$with_pic; lt_p=${PACKAGE-default}
+ case $withval in
+ yes|no) pic_mode=$withval ;;
+ *)
+ pic_mode=default
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+ for lt_pkg in $withval; do
+ IFS=$lt_save_ifs
+ if test "X$lt_pkg" = "X$lt_p"; then
+ pic_mode=yes
+ fi
+ done
+ IFS=$lt_save_ifs
+ ;;
+ esac
+else $as_nop
+ pic_mode=default
+fi
+
+
+
+
+
+
+
+
+ # Check whether --enable-fast-install was given.
+if test ${enable_fast_install+y}
+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.
+ 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 $as_nop
+ enable_fast_install=yes
+fi
+
+
+
+
+
+
+
+
+ shared_archive_member_spec=
+case $host,$enable_shared in
+power*-*-aix[5-9]*,yes)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
+printf %s "checking which variant of shared library versioning to provide... " >&6; }
+
+# Check whether --with-aix-soname was given.
+if test ${with_aix_soname+y}
+then :
+ withval=$with_aix_soname; case $withval in
+ aix|svr4|both)
+ ;;
+ *)
+ as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
+ ;;
+ esac
+ lt_cv_with_aix_soname=$with_aix_soname
+else $as_nop
+ if test ${lt_cv_with_aix_soname+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_with_aix_soname=aix
+fi
+
+ with_aix_soname=$lt_cv_with_aix_soname
+fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
+printf "%s\n" "$with_aix_soname" >&6; }
+ if test aix != "$with_aix_soname"; then
+ # For the AIX way of multilib, we name the shared archive member
+ # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
+ # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
+ # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
+ # the AIX toolchain works better with OBJECT_MODE set (default 32).
+ if test 64 = "${OBJECT_MODE-32}"; then
+ shared_archive_member_spec=shr_64
+ else
+ shared_archive_member_spec=shr
+ fi
+ fi
+ ;;
+*)
+ with_aix_soname=aix
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS=$ltmain
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+test -z "$LN_S" && LN_S="ln -s"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "${ZSH_VERSION+set}"; then
+ setopt NO_GLOB_SUBST
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
+printf %s "checking for objdir... " >&6; }
+if test ${lt_cv_objdir+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
+printf "%s\n" "$lt_cv_objdir" >&6; }
+objdir=$lt_cv_objdir
+
+
+
+
+
+printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
+
+
+
+
+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 set != "${COLLECT_NAMES+set}"; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a '.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+old_CC=$CC
+old_CFLAGS=$CFLAGS
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+func_cc_basename $compiler
+cc_basename=$func_cc_basename_result
+
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
+printf %s "checking for ${ac_tool_prefix}file... " >&6; }
+if test ${lt_cv_path_MAGIC_CMD+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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 <<_LT_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
+
+_LT_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
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+printf "%s\n" "$MAGIC_CMD" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+
+
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
+printf %s "checking for file... " >&6; }
+if test ${lt_cv_path_MAGIC_CMD+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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 <<_LT_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
+
+_LT_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
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+printf "%s\n" "$MAGIC_CMD" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ else
+ MAGIC_CMD=:
+ fi
+fi
+
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+
+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
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+
+
+## 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...
+if test -n "$compiler"; then
+
+lt_prog_compiler_no_builtin_flag=
+
+if test yes = "$GCC"; then
+ case $cc_basename in
+ nvcc*)
+ lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
+ *)
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
+ esac
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
+if test ${lt_cv_prog_compiler_rtti_exceptions+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_rtti_exceptions=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
+ # 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}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $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 other than the usual output.
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_rtti_exceptions=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
+else
+ :
+fi
+
+fi
+
+
+
+
+
+
+ lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
+
+
+ if test yes = "$GCC"; then
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_static='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test ia64 = "$host_cpu"; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ m68k)
+ # 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='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ case $host_os in
+ os2*)
+ lt_prog_compiler_static='$wl-static'
+ ;;
+ esac
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic='-fno-common'
+ ;;
+
+ haiku*)
+ # PIC is the default for Haiku.
+ # The "-static" flag exists, but is broken.
+ lt_prog_compiler_static=
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[3-9]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ 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
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+
+ case $cc_basename in
+ nvcc*) # Cuda Compiler Driver 2.2
+ lt_prog_compiler_wl='-Xlinker '
+ if test -n "$lt_prog_compiler_pic"; then
+ lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
+ fi
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ lt_prog_compiler_wl='-Wl,'
+ if test ia64 = "$host_cpu"; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ else
+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic='-fno-common'
+ case $cc_basename in
+ nagfor*)
+ # NAG Fortran compiler
+ lt_prog_compiler_wl='-Wl,-Wl,,'
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ esac
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # 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'
+ case $host_os in
+ os2*)
+ lt_prog_compiler_static='$wl-static'
+ ;;
+ esac
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ 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* | nonstopux*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC (with -KPIC) is the default.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+ case $cc_basename in
+ # old Intel for x86_64, which still supported -KPIC.
+ ecc*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='--shared'
+ lt_prog_compiler_static='--static'
+ ;;
+ nagfor*)
+ # NAG Fortran compiler
+ lt_prog_compiler_wl='-Wl,-Wl,,'
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ tcc*)
+ # Fabrice Bellard et al's Tiny C Compiler
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fpic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+ xl* | bgxl* | bgf* | mpixl*)
+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-qpic'
+ lt_prog_compiler_static='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl=''
+ ;;
+ *Sun\ F* | *Sun*Fortran*)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Qoption ld '
+ ;;
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ *Intel*\ [CF]*Compiler*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ *Portland\ Group*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fpic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ rdos*)
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ solaris*)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
+ lt_prog_compiler_wl='-Qoption ld ';;
+ *)
+ lt_prog_compiler_wl='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ lt_prog_compiler_wl='-Qoption ld '
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic='-Kconform_pic'
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ unicos*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_can_build_shared=no
+ ;;
+
+ uts4*)
+ lt_prog_compiler_pic='-pic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *)
+ lt_prog_compiler_can_build_shared=no
+ ;;
+ esac
+ fi
+
+case $host_os in
+ # For platforms that do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic=
+ ;;
+ *)
+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
+ ;;
+esac
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
+printf %s "checking for $compiler option to produce PIC... " >&6; }
+if test ${lt_cv_prog_compiler_pic+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
+printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
+printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
+if test ${lt_cv_prog_compiler_pic_works+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_pic_works=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
+ # 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}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $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 other than the usual output.
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_pic_works=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
+printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_pic_works"; 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
+
+
+
+
+
+
+
+
+
+
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if test ${lt_cv_prog_compiler_static_works+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_static_works=no
+ save_LDFLAGS=$LDFLAGS
+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker 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
+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ else
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS=$save_LDFLAGS
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
+printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_static_works"; then
+ :
+else
+ lt_prog_compiler_static=
+fi
+
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test ${lt_cv_prog_compiler_c_o+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$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}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $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
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $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 ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test ${lt_cv_prog_compiler_c_o+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$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}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $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
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $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 ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+hard_links=nottested
+if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
+ # do not overwrite the value of need_locks provided by the user
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
+printf %s "checking if we can lock with hard links... " >&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
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
+printf "%s\n" "$hard_links" >&6; }
+ if test no = "$hard_links"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
+printf "%s\n" "$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
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+ runpath_var=
+ allow_undefined_flag=
+ always_export_symbols=no
+ archive_cmds=
+ archive_expsym_cmds=
+ compiler_needs_object=no
+ enable_shared_with_static_runtimes=no
+ export_dynamic_flag_spec=
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ hardcode_automatic=no
+ hardcode_direct=no
+ hardcode_direct_absolute=no
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_separator=
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=unsupported
+ inherit_rpath=no
+ link_all_deplibs=unknown
+ module_cmds=
+ module_expsym_cmds=
+ old_archive_from_new_cmds=
+ old_archive_from_expsyms_cmds=
+ thread_safe_flag_spec=
+ whole_archive_flag_spec=
+ # 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_|_GLOBAL__F[ID]_.*'
+ # 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.
+ # Exclude shared library initialization/finalization symbols.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # 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 yes != "$GCC"; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd* | bitrig*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ ld_shlibs=yes
+
+ # On some targets, GNU ld is compatible enough with the native linker
+ # that we're better off using the native interface for both.
+ lt_use_gnu_ld_interface=no
+ if test yes = "$with_gnu_ld"; then
+ case $host_os in
+ aix*)
+ # The AIX port of GNU ld has always aspired to compatibility
+ # with the native linker. However, as the warning in the GNU ld
+ # block says, versions before 2.19.5* couldn't really create working
+ # shared libraries, regardless of the interface used.
+ case `$LD -v 2>&1` in
+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
+ *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
+ *\ \(GNU\ Binutils\)\ [3-9]*) ;;
+ *)
+ lt_use_gnu_ld_interface=yes
+ ;;
+ esac
+ ;;
+ *)
+ lt_use_gnu_ld_interface=yes
+ ;;
+ esac
+ fi
+
+ if test yes = "$lt_use_gnu_ld_interface"; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='$wl'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ 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
+ supports_anon_versioning=no
+ case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
+ *GNU\ gold*) supports_anon_versioning=yes ;;
+ *\ [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
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[3-9]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test ia64 != "$host_cpu"; then
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.19, 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 install binutils
+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
+*** You will then need to restart the configuration process.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ 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
+ ;;
+ esac
+ ;;
+
+ 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* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec='-L$libdir'
+ export_dynamic_flag_spec='$wl--export-all-symbols'
+ 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 '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file, use it as
+ # is; otherwise, prepend EXPORTS...
+ archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; 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--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ haiku*)
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ link_all_deplibs=yes
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ allow_undefined_flag=unsupported
+ shrext_cmds=.dll
+ archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
+ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
+ emximp -o $lib $output_objdir/$libname.def'
+ archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
+ prefix_cmds="$SED"~
+ if test EXPORTS = "`$SED 1q $export_symbols`"; then
+ prefix_cmds="$prefix_cmds -e 1d";
+ fi~
+ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
+ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
+ emximp -o $lib $output_objdir/$libname.def'
+ old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
+ enable_shared_with_static_runtimes=yes
+ ;;
+
+ interix[3-9]*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'
+ export_dynamic_flag_spec='$wl-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
+ tmp_diet=no
+ if test linux-dietlibc = "$host_os"; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test no = "$tmp_diet"
+ then
+ tmp_addflag=' $pic_flag'
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95* | pgfortran*)
+ # Portland Group f77 and f90 compilers
+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ whole_archive_flag_spec=
+ tmp_sharedflag='--shared' ;;
+ nagfor*) # NAGFOR 5.3
+ tmp_sharedflag='-Wl,-shared' ;;
+ xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ nvcc*) # Cuda Compiler Driver 2.2
+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+ compiler_needs_object=yes
+ ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+ compiler_needs_object=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+
+ if test yes = "$supports_anon_versioning"; 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 '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ tcc*)
+ export_dynamic_flag_spec='-rdynamic'
+ ;;
+ xlf* | bgf* | bgxlf* | mpixlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
+ if test yes = "$supports_anon_versioning"; 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~
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ 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 $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ ld_shlibs=no
+ cat <<_LT_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.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+ 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
+ ;;
+
+ sunos4*)
+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $pic_flag $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 no = "$ld_shlibs"; then
+ runpath_var=
+ hardcode_libdir_flag_spec=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
+ 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 yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct=unsupported
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test ia64 = "$host_cpu"; 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 GNU nm, but means don't demangle to AIX nm.
+ # Without the "-l" option, or with the "-B" option, AIX nm treats
+ # weak defined symbols like other global defined symbols, whereas
+ # GNU nm marks them as "W".
+ # While the 'weak' keyword is ignored in the Export File, we need
+ # it in the Import File for the 'aix-soname' feature, so we have
+ # to replace the "-B" option with "-P" for AIX 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") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | 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
+ # have runtime linking enabled, and use it for executables.
+ # For shared libraries, we enable/disable runtime linking
+ # depending on the kind of the shared library created -
+ # when "with_aix_soname,aix_use_runtimelinking" is:
+ # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
+ # "aix,yes" lib.so shared, rtl:yes, for executables
+ # lib.a static archive
+ # "both,no" lib.so.V(shr.o) shared, rtl:yes
+ # lib.a(lib.so.V) shared, rtl:no, for executables
+ # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
+ # lib.a(lib.so.V) shared, rtl:no
+ # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
+ # lib.a static archive
+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+ for ld_flag in $LDFLAGS; do
+ if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
+ # With aix-soname=svr4, we create the lib.so.V shared archives only,
+ # so we don't have lib.a shared libs to link our executables.
+ # We have to force runtime linking in this case.
+ aix_use_runtimelinking=yes
+ LDFLAGS="$LDFLAGS -Wl,-brtl"
+ fi
+ ;;
+ 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_direct_absolute=yes
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ file_list_spec='$wl-f,'
+ case $with_aix_soname,$aix_use_runtimelinking in
+ aix,*) ;; # traditional, no import file
+ svr4,* | *,yes) # use import file
+ # The Import File defines what to hardcode.
+ hardcode_direct=no
+ hardcode_direct_absolute=no
+ ;;
+ esac
+
+ if test yes = "$GCC"; 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
+ :
+ 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'
+ if test yes = "$aix_use_runtimelinking"; then
+ shared_flag="$shared_flag "'$wl-G'
+ fi
+ # Need to ensure runtime linking is disabled for the traditional
+ # shared library, or the linker may eventually find shared libraries
+ # /with/ Import File - we do not want to mix them.
+ shared_flag_aix='-shared'
+ shared_flag_svr4='-shared $wl-G'
+ else
+ # not using gcc
+ if test ia64 = "$host_cpu"; 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 yes = "$aix_use_runtimelinking"; then
+ shared_flag='$wl-G'
+ else
+ shared_flag='$wl-bM:SRE'
+ fi
+ shared_flag_aix='$wl-bM:SRE'
+ shared_flag_svr4='$wl-G'
+ fi
+ fi
+
+ export_dynamic_flag_spec='$wl-bexpall'
+ # 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,yes = "$with_aix_soname,$aix_use_runtimelinking"; 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.
+ if test set = "${lt_cv_aix_libpath+set}"; then
+ aix_libpath=$lt_cv_aix_libpath
+else
+ if test ${lt_cv_aix_libpath_+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+
+ lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\([^ ]*\) *$/\1/
+ p
+ }
+ }'
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ # Check for a 64-bit object if we didn't find anything.
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_=/usr/lib:/lib
+ fi
+
+fi
+
+ aix_libpath=$lt_cv_aix_libpath_
+fi
+
+ hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
+ else
+ if test ia64 = "$host_cpu"; 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 '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ if test set = "${lt_cv_aix_libpath+set}"; then
+ aix_libpath=$lt_cv_aix_libpath
+else
+ if test ${lt_cv_aix_libpath_+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+
+ lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\([^ ]*\) *$/\1/
+ p
+ }
+ }'
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ # Check for a 64-bit object if we didn't find anything.
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_=/usr/lib:/lib
+ fi
+
+fi
+
+ aix_libpath=$lt_cv_aix_libpath_
+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'
+ if test yes = "$with_gnu_ld"; then
+ # We only use this code for GNU lds that support --whole-archive.
+ whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
+ else
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec='$convenience'
+ fi
+ archive_cmds_need_lc=yes
+ archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
+ # -brtl affects multiple linker settings, -berok does not and is overridden later
+ compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
+ if test svr4 != "$with_aix_soname"; then
+ # This is similar to how AIX traditionally builds its shared libraries.
+ archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
+ fi
+ if test aix != "$with_aix_soname"; then
+ archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
+ else
+ # used by -dlpreopen to get the symbols
+ archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
+ fi
+ archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ 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
+ ;;
+ esac
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # 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.
+ case $cc_basename in
+ cl*)
+ # Native MSVC
+ hardcode_libdir_flag_spec=' '
+ allow_undefined_flag=unsupported
+ always_export_symbols=yes
+ file_list_spec='@'
+ # 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 $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
+ archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
+ cp "$export_symbols" "$output_objdir/$soname.def";
+ echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+ else
+ $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+ fi~
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+ linknames='
+ # The linker will not automatically build a static lib if we build a DLL.
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
+ enable_shared_with_static_runtimes=yes
+ exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
+ # Don't use ranlib
+ old_postinstall_cmds='chmod 644 $oldlib'
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
+ case $lt_outputfile in
+ *.exe|*.EXE) ;;
+ *)
+ lt_outputfile=$lt_outputfile.exe
+ lt_tool_outputfile=$lt_tool_outputfile.exe
+ ;;
+ esac~
+ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+ $RM "$lt_outputfile.manifest";
+ fi'
+ ;;
+ *)
+ # Assume MSVC wrapper
+ 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 `func_echo_all "$deplibs" | $SED '\''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'
+ enable_shared_with_static_runtimes=yes
+ ;;
+ esac
+ ;;
+
+ darwin* | rhapsody*)
+
+
+ archive_cmds_need_lc=no
+ hardcode_direct=no
+ hardcode_automatic=yes
+ hardcode_shlibpath_var=unsupported
+ if test yes = "$lt_cv_ld_force_load"; then
+ whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+
+ else
+ whole_archive_flag_spec=''
+ fi
+ link_all_deplibs=yes
+ allow_undefined_flag=$_lt_dar_allow_undefined
+ case $cc_basename in
+ ifort*|nagfor*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test yes = "$_lt_dar_can_shared"; then
+ output_verbose_link_cmd=func_echo_all
+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
+ archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
+ module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
+
+ else
+ ld_shlibs=no
+ fi
+
+ ;;
+
+ dgux*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=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* | dragonfly*)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ hpux9*)
+ if test yes = "$GCC"; then
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$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 "x$output_objdir/$soname" = "x$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*)
+ if test yes,no = "$GCC,$with_gnu_ld"; then
+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test no = "$with_gnu_ld"; then
+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+ hardcode_direct_absolute=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
+ fi
+ ;;
+
+ hpux11*)
+ if test yes,no = "$GCC,$with_gnu_ld"; then
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+
+ # Older versions of the 11.00 compiler do not understand -b yet
+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
+printf %s "checking if $CC understands -b... " >&6; }
+if test ${lt_cv_prog_compiler__b+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler__b=no
+ save_LDFLAGS=$LDFLAGS
+ LDFLAGS="$LDFLAGS -b"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker 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
+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler__b=yes
+ fi
+ else
+ lt_cv_prog_compiler__b=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS=$save_LDFLAGS
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
+printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
+
+if test yes = "$lt_cv_prog_compiler__b"; then
+ archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+else
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+fi
+
+ ;;
+ esac
+ fi
+ if test no = "$with_gnu_ld"; then
+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'
+ hardcode_libdir_separator=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ ;;
+ *)
+ hardcode_direct=yes
+ hardcode_direct_absolute=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 yes = "$GCC"; then
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ # This should be the same for all languages, so no per-tag cache variable.
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
+printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
+if test ${lt_cv_irix_exported_symbol+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ save_LDFLAGS=$LDFLAGS
+ LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int foo (void) { return 0; }
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ lt_cv_irix_exported_symbol=yes
+else $as_nop
+ lt_cv_irix_exported_symbol=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$save_LDFLAGS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
+printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
+ if test yes = "$lt_cv_irix_exported_symbol"; then
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
+ fi
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+ hardcode_libdir_separator=:
+ inherit_rpath=yes
+ link_all_deplibs=yes
+ ;;
+
+ linux*)
+ case $cc_basename in
+ tcc*)
+ # Fabrice Bellard et al's Tiny C Compiler
+ ld_shlibs=yes
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ 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
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd* | bitrig*)
+ if test -f /usr/libexec/ld.so; then
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ hardcode_direct_absolute=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; 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
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'
+ fi
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ allow_undefined_flag=unsupported
+ shrext_cmds=.dll
+ archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
+ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
+ emximp -o $lib $output_objdir/$libname.def'
+ archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
+ prefix_cmds="$SED"~
+ if test EXPORTS = "`$SED 1q $export_symbols`"; then
+ prefix_cmds="$prefix_cmds -e 1d";
+ fi~
+ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
+ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
+ emximp -o $lib $output_objdir/$libname.def'
+ old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
+ enable_shared_with_static_runtimes=yes
+ ;;
+
+ osf3*)
+ if test yes = "$GCC"; 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" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+ hardcode_libdir_separator=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test yes = "$GCC"; then
+ allow_undefined_flag=' $wl-expect_unresolved $wl\*'
+ archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$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='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-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; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec='-rpath $libdir'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_separator=:
+ ;;
+
+ solaris*)
+ no_undefined_flag=' -z defs'
+ if test yes = "$GCC"; then
+ wlarc='$wl'
+ archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $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 $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ 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'
+ ;;
+ *)
+ wlarc='$wl'
+ archive_cmds='$CC -G$allow_undefined_flag -h $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 -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_shlibpath_var=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands '-z linker_flag'. GCC discards it without '$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test yes = "$GCC"; then
+ whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ link_all_deplibs=yes
+ ;;
+
+ sunos4*)
+ if test sequent = "$host_vendor"; 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???
+ ;;
+ 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
+ ;;
+
+ 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*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+ no_undefined_flag='$wl-z,text'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ runpath_var='LD_RUN_PATH'
+
+ if test yes = "$GCC"; then
+ archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We CANNOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ no_undefined_flag='$wl-z,text'
+ allow_undefined_flag='$wl-z,nodefs'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='$wl-R,$libdir'
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ export_dynamic_flag_spec='$wl-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test yes = "$GCC"; then
+ archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ 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
+
+ if test sni = "$host_vendor"; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ export_dynamic_flag_spec='$wl-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
+printf "%s\n" "$ld_shlibs" >&6; }
+test no = "$ld_shlibs" && can_build_shared=no
+
+with_gnu_ld=$with_gnu_ld
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# 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 yes,yes = "$GCC,$enable_shared"; 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.
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
+printf %s "checking whether -lc should be explicitly linked in... " >&6; }
+if test ${lt_cv_archive_cmds_need_lc+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl
+ pic_flag=$lt_prog_compiler_pic
+ 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\":${as_lineno-$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=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ then
+ lt_cv_archive_cmds_need_lc=no
+ else
+ lt_cv_archive_cmds_need_lc=yes
+ fi
+ allow_undefined_flag=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
+printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
+ archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
+printf %s "checking dynamic linker characteristics... " >&6; }
+
+if test yes = "$GCC"; then
+ case $host_os in
+ darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
+ *) lt_awk_arg='/^libraries:/' ;;
+ esac
+ case $host_os in
+ mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
+ *) lt_sed_strip_eq='s|=/|/|g' ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
+ case $lt_search_path_spec in
+ *\;*)
+ # 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.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
+ ;;
+ *)
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
+ ;;
+ esac
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary...
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ # ...but if some path component already ends with the multilib dir we assume
+ # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
+ case "$lt_multi_os_dir; $lt_search_path_spec " in
+ "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
+ lt_multi_os_dir=
+ ;;
+ esac
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
+ elif test -n "$lt_multi_os_dir"; then
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
+BEGIN {RS = " "; FS = "/|\n";} {
+ lt_foo = "";
+ lt_count = 0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo = "/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[lt_foo]++; }
+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
+}'`
+ # AWK program above erroneously prepends '/' to C:/dos/paths
+ # for these hosts.
+ case $host_os in
+ mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
+ $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
+ esac
+ sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+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"
+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 # correct to gnu/linux during the next big refactor
+ 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'
+ ;;
+
+aix[4-9]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test ia64 = "$host_cpu"; 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
+ # Using Import Files as archive members, it is possible to support
+ # filename-based versioning of shared library archives on AIX. While
+ # this would work for both with and without runtime linking, it will
+ # prevent static linking of such archives. So we do filename-based
+ # shared library versioning with .so extension only, which is used
+ # when both runtime linking and shared linking is enabled.
+ # Unfortunately, runtime linking may impact performance, so we do
+ # not want this to be the default eventually. Also, we use the
+ # versioned .so libs for executables only if there is the -brtl
+ # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
+ # To allow for filename-based versioning support, we need to create
+ # libNAME.so.V as an archive file, containing:
+ # *) an Import File, referring to the versioned filename of the
+ # archive as well as the shared archive member, telling the
+ # bitwidth (32 or 64) of that shared object, and providing the
+ # list of exported symbols of that shared object, eventually
+ # decorated with the 'weak' keyword
+ # *) the shared object with the F_LOADONLY flag set, to really avoid
+ # it being seen by the linker.
+ # At run time we better use the real file rather than another symlink,
+ # but for link time we create the symlink libNAME.so -> libNAME.so.V
+
+ case $with_aix_soname,$aix_use_runtimelinking in
+ # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ aix,yes) # traditional libtool
+ dynamic_linker='AIX unversionable lib.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'
+ ;;
+ aix,no) # traditional AIX only
+ dynamic_linker='AIX lib.a(lib.so.V)'
+ # 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'
+ ;;
+ svr4,*) # full svr4 only
+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
+ # We do not specify a path in Import Files, so LIBPATH fires.
+ shlibpath_overrides_runpath=yes
+ ;;
+ *,yes) # both, prefer svr4
+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
+ # unpreferred sharedlib libNAME.a needs extra handling
+ postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
+ postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
+ # We do not specify a path in Import Files, so LIBPATH fires.
+ shlibpath_overrides_runpath=yes
+ ;;
+ *,no) # both, prefer aix
+ dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
+ library_names_spec='$libname$release.a $libname.a'
+ soname_spec='$libname$release$shared_ext$major'
+ # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
+ postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
+ postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
+ ;;
+ esac
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ ;;
+ m68k)
+ 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=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='$libname$shared_ext'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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* | cegcc*)
+ version_type=windows
+ shrext_cmds=.dll
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$cc_basename in
+ yes,*)
+ # gcc
+ 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~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ 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="$sys_lib_search_path_spec /usr/lib/w32api"
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+ ;;
+ 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
+ dynamic_linker='Win32 ld.exe'
+ ;;
+
+ *,cl*)
+ # Native MSVC
+ libname_spec='$name'
+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+ library_names_spec='$libname.dll.lib'
+
+ case $build_os in
+ mingw*)
+ sys_lib_search_path_spec=
+ lt_save_ifs=$IFS
+ IFS=';'
+ for lt_path in $LIB
+ do
+ IFS=$lt_save_ifs
+ # Let DOS variable expansion print the short 8.3 style file name.
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
+ done
+ IFS=$lt_save_ifs
+ # Convert to MSYS style.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
+ ;;
+ cygwin*)
+ # Convert to unix form, then to dos form, then back to unix form
+ # but this time dos style (no spaces!) so that the unix form looks
+ # like /cygdrive/c/PROGRA~1:/cygdr...
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ ;;
+ *)
+ sys_lib_search_path_spec=$LIB
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH.
+ 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
+ # FIXME: find the short name or the path components, as spaces are
+ # common. (e.g. "Program Files" -> "PROGRA~1")
+ ;;
+ esac
+
+ # 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
+ dynamic_linker='Win32 link.exe'
+ ;;
+
+ *)
+ # Assume MSVC wrapper
+ library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
+ dynamic_linker='Win32 ld.exe'
+ ;;
+ esac
+ # 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$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`'
+
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[23].*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
+ 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
+ ;;
+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+haiku*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ dynamic_linker="$host_os runtime_loader"
+ 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=LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
+ 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 32 = "$HPUX_IA64_MODE"; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ sys_lib_dlsearch_path_spec=/usr/lib/hpux32
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ sys_lib_dlsearch_path_spec=/usr/lib/hpux64
+ fi
+ ;;
+ 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'
+ # or fails outright, so override atomically:
+ install_override_mode=555
+ ;;
+
+interix[3-9]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test yes = "$lt_cv_prog_gnu_ld"; then
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+ ;;
+
+linux*android*)
+ version_type=none # Android doesn't support versioned libraries.
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='$libname$release$shared_ext'
+ soname_spec='$libname$release$shared_ext'
+ finish_cmds=
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+
+ # 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
+
+ dynamic_linker='Android linker'
+ # Don't embed -rpath directories since the linker doesn't support them.
+ hardcode_libdir_flag_spec='-L$libdir'
+ ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+
+ # Some binutils ld are patched to set DT_RUNPATH
+ if test ${lt_cv_shlibpath_overrides_runpath+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_shlibpath_overrides_runpath=no
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
+then :
+ lt_cv_shlibpath_overrides_runpath=yes
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+fi
+
+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
+
+ # 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
+
+ # Ideally, we could use ldconfig to report *all* directores which are
+ # searched for libraries, however this is still not possible. Aside from not
+ # being certain /sbin/ldconfig is available, command
+ # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
+ # even though it is searched at run-time. Try to do the best guess by
+ # appending ld.so.conf contents (and includes) to the search path.
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | 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'
+ ;;
+
+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 # correct to gnu/linux during the next big refactor
+ 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=qnx
+ 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='ldqnx.so'
+ ;;
+
+openbsd* | bitrig*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec=/usr/lib
+ need_lib_prefix=no
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+ need_version=no
+ else
+ need_version=yes
+ fi
+ 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
+ shlibpath_overrides_runpath=yes
+ ;;
+
+os2*)
+ libname_spec='$name'
+ version_type=windows
+ shrext_cmds=.dll
+ need_version=no
+ need_lib_prefix=no
+ # OS/2 can only load a DLL with a base name of 8 characters or less.
+ soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
+ v=$($ECHO $release$versuffix | tr -d .-);
+ n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
+ $ECHO $n$v`$shared_ext'
+ library_names_spec='${libname}_dll.$libext'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=BEGINLIBPATH
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ 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~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ ;;
+
+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
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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 yes = "$with_gnu_ld"; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+ 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 # correct to gnu/linux during the next big refactor
+ 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
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=sco
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test yes = "$with_gnu_ld"; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
+printf "%s\n" "$dynamic_linker" >&6; }
+test no = "$dynamic_linker" && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test yes = "$GCC"; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
+ sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
+fi
+
+if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
+ sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
+fi
+
+# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
+configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
+
+# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
+func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
+
+# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
+configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
+printf %s "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" ||
+ test -n "$runpath_var" ||
+ test yes = "$hardcode_automatic"; then
+
+ # We can hardcode non-existent directories.
+ if test no != "$hardcode_direct" &&
+ # 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 no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
+ test no != "$hardcode_minus_L"; 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
+printf "%s\n" "$hardcode_action" >&6; }
+
+if test relink = "$hardcode_action" ||
+ test yes = "$inherit_rpath"; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test yes = "$shlibpath_overrides_runpath" ||
+ test no = "$enable_shared"; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+
+
+
+
+
+ if test yes != "$enable_dlopen"; 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* | cegcc*)
+ 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
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+printf %s "checking for dlopen in -ldl... " >&6; }
+if test ${ac_cv_lib_dl_dlopen+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main (void)
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_dl_dlopen=yes
+else $as_nop
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes
+then :
+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
+else $as_nop
+
+ lt_cv_dlopen=dyld
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ tpf*)
+ # Don't try to run any link tests for TPF. We know it's impossible
+ # because TPF is a cross-compiler, and we know how we open DSOs.
+ lt_cv_dlopen=dlopen
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=no
+ ;;
+
+ *)
+ ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
+if test "x$ac_cv_func_shl_load" = xyes
+then :
+ lt_cv_dlopen=shl_load
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
+printf %s "checking for shl_load in -ldld... " >&6; }
+if test ${ac_cv_lib_dld_shl_load+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char shl_load ();
+int
+main (void)
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_dld_shl_load=yes
+else $as_nop
+ ac_cv_lib_dld_shl_load=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
+printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
+if test "x$ac_cv_lib_dld_shl_load" = xyes
+then :
+ lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
+else $as_nop
+ ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
+if test "x$ac_cv_func_dlopen" = xyes
+then :
+ lt_cv_dlopen=dlopen
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+printf %s "checking for dlopen in -ldl... " >&6; }
+if test ${ac_cv_lib_dl_dlopen+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main (void)
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_dl_dlopen=yes
+else $as_nop
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes
+then :
+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
+printf %s "checking for dlopen in -lsvld... " >&6; }
+if test ${ac_cv_lib_svld_dlopen+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main (void)
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_svld_dlopen=yes
+else $as_nop
+ ac_cv_lib_svld_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
+printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
+if test "x$ac_cv_lib_svld_dlopen" = xyes
+then :
+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
+printf %s "checking for dld_link in -ldld... " >&6; }
+if test ${ac_cv_lib_dld_dld_link+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char dld_link ();
+int
+main (void)
+{
+return dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_dld_dld_link=yes
+else $as_nop
+ ac_cv_lib_dld_dld_link=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
+printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
+if test "x$ac_cv_lib_dld_dld_link" = xyes
+then :
+ lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+ ;;
+ esac
+
+ if test no = "$lt_cv_dlopen"; then
+ enable_dlopen=no
+ else
+ enable_dlopen=yes
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS=$CPPFLAGS
+ test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS=$LDFLAGS
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS=$LIBS
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
+printf %s "checking whether a program can dlopen itself... " >&6; }
+if test ${lt_cv_dlopen_self+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test yes = "$cross_compiling"; 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 <<_LT_EOF
+#line $LINENO "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
+
+/* When -fvisibility=hidden is used, assume the code has been annotated
+ correspondingly for the symbols needed. */
+#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 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;
+ else puts (dlerror ());
+ }
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
+ (./conftest; exit; ) >&5 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_dlunknown|x*) lt_cv_dlopen_self=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
+printf "%s\n" "$lt_cv_dlopen_self" >&6; }
+
+ if test yes = "$lt_cv_dlopen_self"; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
+printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
+if test ${lt_cv_dlopen_self_static+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test yes = "$cross_compiling"; 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 <<_LT_EOF
+#line $LINENO "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
+
+/* When -fvisibility=hidden is used, assume the code has been annotated
+ correspondingly for the symbols needed. */
+#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 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;
+ else puts (dlerror ());
+ }
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
+ (./conftest; exit; ) >&5 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_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self_static=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
+printf "%s\n" "$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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+striplib=
+old_striplib=
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
+printf %s "checking whether stripping libraries is possible... " >&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"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "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"
+ old_striplib="$STRIP -S"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ fi
+ ;;
+ *)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ ;;
+ esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+ # Report what library types will actually be built
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
+printf %s "checking if libtool supports shared libraries... " >&6; }
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
+printf "%s\n" "$can_build_shared" >&6; }
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
+printf %s "checking whether to build shared libraries... " >&6; }
+ test no = "$can_build_shared" && 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 yes = "$enable_shared" && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test ia64 != "$host_cpu"; then
+ case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
+ yes,aix,yes) ;; # shared object as lib.so file only
+ yes,svr4,*) ;; # shared object as lib.so archive member only
+ yes,*) enable_static=no ;; # shared object in lib.a archive as well
+ esac
+ fi
+ ;;
+ esac
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
+printf "%s\n" "$enable_shared" >&6; }
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
+printf %s "checking whether to build static libraries... " >&6; }
+ # Make sure either enable_shared or enable_static is yes.
+ test yes = "$enable_shared" || enable_static=yes
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
+printf "%s\n" "$enable_static" >&6; }
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ac_config_commands="$ac_config_commands libtool"
+
+
+
+
+# Only expand once:
+
+
+# Check whether --enable-largefile was given.
+if test ${enable_largefile+y}
+then :
+ enableval=$enable_largefile;
+fi
+
+if test "$enable_largefile" != no; then
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
+printf %s "checking for special C compiler options needed for large files... " >&6; }
+if test ${ac_cv_sys_largefile_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_sys_largefile_CC=no
+ if test "$GCC" != yes; then
+ ac_save_CC=$CC
+ while :; do
+ # IRIX 6.2 and later do not support large files by default,
+ # so use the C compiler's -n32 option if that helps.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ CC="$CC -n32"
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_sys_largefile_CC=' -n32'; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ break
+ done
+ CC=$ac_save_CC
+ rm -f conftest.$ac_ext
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
+printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
+ if test "$ac_cv_sys_largefile_CC" != no; then
+ CC=$CC$ac_cv_sys_largefile_CC
+ fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
+printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
+if test ${ac_cv_sys_file_offset_bits+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_sys_file_offset_bits=no; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#define _FILE_OFFSET_BITS 64
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_sys_file_offset_bits=64; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ac_cv_sys_file_offset_bits=unknown
+ break
+done
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
+printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
+case $ac_cv_sys_file_offset_bits in #(
+ no | unknown) ;;
+ *)
+printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
+;;
+esac
+rm -rf conftest*
+ if test $ac_cv_sys_file_offset_bits = unknown; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
+printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
+if test ${ac_cv_sys_large_files+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_sys_large_files=no; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#define _LARGE_FILES 1
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_sys_large_files=1; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ac_cv_sys_large_files=unknown
+ break
+done
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
+printf "%s\n" "$ac_cv_sys_large_files" >&6; }
+case $ac_cv_sys_large_files in #(
+ no | unknown) ;;
+ *)
+printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
+;;
+esac
+rm -rf conftest*
+ fi
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
+printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
+if test ${ac_cv_sys_largefile_source+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h> /* for off_t */
+ #include <stdio.h>
+int
+main (void)
+{
+int (*fp) (FILE *, off_t, int) = fseeko;
+ return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_sys_largefile_source=no; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#define _LARGEFILE_SOURCE 1
+#include <sys/types.h> /* for off_t */
+ #include <stdio.h>
+int
+main (void)
+{
+int (*fp) (FILE *, off_t, int) = fseeko;
+ return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_sys_largefile_source=1; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_cv_sys_largefile_source=unknown
+ break
+done
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
+printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
+case $ac_cv_sys_largefile_source in #(
+ no | unknown) ;;
+ *)
+printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
+;;
+esac
+rm -rf conftest*
+
+# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
+# in glibc 2.1.3, but that breaks too many other things.
+# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
+if test $ac_cv_sys_largefile_source != unknown; then
+
+printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
+
+fi
+
+ac_header_dirent=no
+for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
+ as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
+printf %s "checking for $ac_hdr that defines DIR... " >&6; }
+if eval test \${$as_ac_Header+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <$ac_hdr>
+
+int
+main (void)
+{
+if ((DIR *) 0)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ eval "$as_ac_Header=yes"
+else $as_nop
+ eval "$as_ac_Header=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$as_ac_Header
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+if eval test \"x\$"$as_ac_Header"\" = x"yes"
+then :
+ cat >>confdefs.h <<_ACEOF
+#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
+_ACEOF
+
+ac_header_dirent=$ac_hdr; break
+fi
+
+done
+# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
+if test $ac_header_dirent = dirent.h; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
+printf %s "checking for library containing opendir... " >&6; }
+if test ${ac_cv_search_opendir+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char opendir ();
+int
+main (void)
+{
+return opendir ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' dir
+do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_search_opendir=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext
+ if test ${ac_cv_search_opendir+y}
+then :
+ break
+fi
+done
+if test ${ac_cv_search_opendir+y}
+then :
+
+else $as_nop
+ ac_cv_search_opendir=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
+printf "%s\n" "$ac_cv_search_opendir" >&6; }
+ac_res=$ac_cv_search_opendir
+if test "$ac_res" != no
+then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
+printf %s "checking for library containing opendir... " >&6; }
+if test ${ac_cv_search_opendir+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char opendir ();
+int
+main (void)
+{
+return opendir ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' x
+do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_search_opendir=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext
+ if test ${ac_cv_search_opendir+y}
+then :
+ break
+fi
+done
+if test ${ac_cv_search_opendir+y}
+then :
+
+else $as_nop
+ ac_cv_search_opendir=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
+printf "%s\n" "$ac_cv_search_opendir" >&6; }
+ac_res=$ac_cv_search_opendir
+if test "$ac_res" != no
+then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+fi
+
+# Autoupdate added the next two lines to ensure that your configure
+# script's behavior did not change. They are probably safe to remove.
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+printf %s "checking for egrep... " >&6; }
+if test ${ac_cv_path_EGREP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in egrep
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_EGREP" || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ printf %s 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ printf "%s\n" 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+printf "%s\n" "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
+printf %s "checking whether closedir returns void... " >&6; }
+if test ${ac_cv_func_closedir_void+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <$ac_header_dirent>
+
+int
+main (void)
+{
+
+ return closedir(0);
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_func_closedir_void=no
+else $as_nop
+ ac_cv_func_closedir_void=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
+printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
+if test $ac_cv_func_closedir_void = yes; then
+
+printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
+
+fi
+
+ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
+if test "x$ac_cv_header_assert_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
+
+fi
+ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
+if test "x$ac_cv_header_float_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
+
+fi
+ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
+if test "x$ac_cv_header_limits_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
+
+fi
+ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
+if test "x$ac_cv_header_pwd_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
+
+fi
+ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
+if test "x$ac_cv_header_stdlib_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
+
+fi
+ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_param_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
+
+fi
+
+ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
+if test "x$ac_cv_func_putenv" = xyes
+then :
+ printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
+
+fi
+
+ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
+if test "x$ac_cv_func_getcwd" = xyes
+then :
+ printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
+if test "x$ac_cv_func_getwd" = xyes
+then :
+ printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
+if test "x$ac_cv_func_memcmp" = xyes
+then :
+ printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
+if test "x$ac_cv_func_memcpy" = xyes
+then :
+ printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
+if test "x$ac_cv_func_mkstemp" = xyes
+then :
+ printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
+if test "x$ac_cv_func_mktemp" = xyes
+then :
+ printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
+if test "x$ac_cv_func_strchr" = xyes
+then :
+ printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
+if test "x$ac_cv_func_strrchr" = xyes
+then :
+ printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
+printf %s "checking for an ANSI C-conforming const... " >&6; }
+if test ${ac_cv_c_const+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+#ifndef __cplusplus
+ /* Ultrix mips cc rejects this sort of thing. */
+ typedef int charset[2];
+ const charset cs = { 0, 0 };
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *pcpcc;
+ char **ppc;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* IBM XL C 1.02.0.0 rejects this.
+ It does not let you subtract one const X* pointer from another in
+ an arm of an if-expression whose if-part is not a constant
+ expression */
+ const char *g = "string";
+ pcpcc = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
+ { /* SCO 3.2v4 cc rejects this sort of thing. */
+ char tx;
+ char *t = &tx;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+ if (s) return 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ struct s { int j; const int *ap[3]; } bx;
+ struct s *b = &bx; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ if (!foo) return 0;
+ }
+ return !cs[0] && !zero.x;
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_c_const=yes
+else $as_nop
+ ac_cv_c_const=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
+printf "%s\n" "$ac_cv_c_const" >&6; }
+if test $ac_cv_c_const = no; then
+
+printf "%s\n" "#define const /**/" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
+printf %s "checking for inline... " >&6; }
+if test ${ac_cv_c_inline+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo (void) {return 0; }
+$ac_kw foo_t foo (void) {return 0; }
+#endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_c_inline=$ac_kw
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ test "$ac_cv_c_inline" != no && break
+done
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
+printf "%s\n" "$ac_cv_c_inline" >&6; }
+
+case $ac_cv_c_inline in
+ inline | yes) ;;
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
+ ;;
+esac
+
+ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
+if test "x$ac_cv_type_size_t" = xyes
+then :
+
+else $as_nop
+
+printf "%s\n" "#define size_t unsigned int" >>confdefs.h
+
+fi
+
+ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
+case $ac_cv_c_int64_t in #(
+ no|yes) ;; #(
+ *)
+
+printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
+;;
+esac
+
+ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
+case $ac_cv_c_uint64_t in #(
+ no|yes) ;; #(
+ *)
+
+printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
+
+
+printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
+;;
+ esac
+
+case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
+ *':no:'*) :
+ as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
+ *) :
+ ;;
+esac
+ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
+" "$ac_c_undeclared_builtin_options" "CFLAGS"
+if test "x$ac_cv_have_decl_isascii" = xyes
+then :
+ ac_have_decl=1
+else $as_nop
+ ac_have_decl=0
+fi
+printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
+
+ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
+if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
+then :
+
+printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
+
+
+fi
+
+
+
+## texk/bibtex-x/ac/bibtex-x.ac: configure.ac fragment for the TeX Live subdirectory texk/bibtex-x/
+## configure options for bibtex-x
+# Check whether --enable-bibtex8 was given.
+if test ${enable_bibtex8+y}
+then :
+ enableval=$enable_bibtex8;
+fi
+
+case $enable_bibtex8 in #(
+ yes | no) :
+ ;; #(
+ *) :
+ enable_bibtex8=yes ;;
+esac
+# Check whether --enable-bibtexu was given.
+if test ${enable_bibtexu+y}
+then :
+ enableval=$enable_bibtexu;
+fi
+
+case $enable_bibtexu in #(
+ yes | no) :
+ ;; #(
+ *) :
+ enable_bibtexu=yes ;;
+esac
+
+test "x$enable_bibtex_x:$enable_bibtexu" = xyes:yes && need_icu=yes
+
+
+ac_config_headers="$ac_config_headers config.h"
+
+
+
+
+printf "%s\n" "#define TL_VERSION \"TeX Live 2023/dev\"" >>confdefs.h
+
+
+
+
+
+
+
+
+ac_ext=cpp
+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 -z "$CXX"; then
+ if test -n "$CCC"; then
+ CXX=$CCC
+ else
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n "$CXX"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
+printf "%s\n" "$CXX" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$CXX" && break
+ done
+fi
+if test -z "$CXX"; then
+ ac_ct_CXX=$CXX
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CXX="$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n "$ac_ct_CXX"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
+printf "%s\n" "$ac_ct_CXX" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CXX" && break
+done
+
+ if test "x$ac_ct_CXX" = x; then
+ CXX="g++"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CXX=$ac_ct_CXX
+ fi
+fi
+
+ fi
+fi
+# Provide some information about the compiler.
+printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
+printf %s "checking whether the compiler supports GNU C++... " >&6; }
+if test ${ac_cv_cxx_compiler_gnu+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_compiler_gnu=yes
+else $as_nop
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
+printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+if test $ac_compiler_gnu = yes; then
+ GXX=yes
+else
+ GXX=
+fi
+ac_test_CXXFLAGS=${CXXFLAGS+y}
+ac_save_CXXFLAGS=$CXXFLAGS
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
+printf %s "checking whether $CXX accepts -g... " >&6; }
+if test ${ac_cv_prog_cxx_g+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag
+ ac_cxx_werror_flag=yes
+ ac_cv_prog_cxx_g=no
+ CXXFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_g=yes
+else $as_nop
+ CXXFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+
+else $as_nop
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+ CXXFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
+printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
+if test $ac_test_CXXFLAGS; 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
+ac_prog_cxx_stdcxx=no
+if test x$ac_prog_cxx_stdcxx = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
+printf %s "checking for $CXX option to enable C++11 features... " >&6; }
+if test ${ac_cv_prog_cxx_11+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cxx_11=no
+ac_save_CXX=$CXX
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_cxx_conftest_cxx11_program
+_ACEOF
+for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
+do
+ CXX="$ac_save_CXX $ac_arg"
+ if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_cxx11=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CXX=$ac_save_CXX
+fi
+
+if test "x$ac_cv_prog_cxx_cxx11" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cxx_cxx11" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
+printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
+ CXX="$CXX $ac_cv_prog_cxx_cxx11"
+fi
+ ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
+ ac_prog_cxx_stdcxx=cxx11
+fi
+fi
+if test x$ac_prog_cxx_stdcxx = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
+printf %s "checking for $CXX option to enable C++98 features... " >&6; }
+if test ${ac_cv_prog_cxx_98+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cxx_98=no
+ac_save_CXX=$CXX
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_cxx_conftest_cxx98_program
+_ACEOF
+for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
+do
+ CXX="$ac_save_CXX $ac_arg"
+ if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_cxx98=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CXX=$ac_save_CXX
+fi
+
+if test "x$ac_cv_prog_cxx_cxx98" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cxx_cxx98" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
+printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
+ CXX="$CXX $ac_cv_prog_cxx_cxx98"
+fi
+ ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
+ ac_prog_cxx_stdcxx=cxx98
+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
+
+depcc="$CXX" am_compiler_list=
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+printf %s "checking dependency style of $depcc... " >&6; }
+if test ${am_cv_CXX_dependencies_compiler_type+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named 'D' -- because '-MD' means "put the output
+ # in D".
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CXX_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ am__universal=false
+ case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac
+
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+ # Solaris 10 /bin/sh.
+ echo '/* dummy */' > sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle '-M -o', and we need to detect this. Also, some Intel
+ # versions had trouble with output in subdirs.
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ nosideeffect)
+ # After this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested.
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+ # This compiler won't grok '-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CXX_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CXX_dependencies_compiler_type=none
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
+printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
+CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
+ am__fastdepCXX_TRUE=
+ am__fastdepCXX_FALSE='#'
+else
+ am__fastdepCXX_TRUE='#'
+ am__fastdepCXX_FALSE=
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
+printf %s "checking what warning flags to pass to the C++ compiler... " >&6; }
+if test ${kpse_cv_warning_cxxflags+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test "x$GXX" = xyes; then
+ kpse_cv_warning_cxxflags=
+kpse_warn_strings="-Wno-write-strings"
+if test "x$enable_compiler_warnings" != xno; then
+ kpse_cv_warning_cxxflags="-Wreturn-type"
+ case `$CXX -dumpversion` in #(
+ 3.* | 4.[012345].*) :
+ kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
+ *) :
+ ;;
+esac
+ case `$CXX -dumpversion` in #(
+ 3.[234].* | 4.* | 5.*) :
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
+ *) :
+ ;;
+esac
+ if test "x$enable_compiler_warnings" != xmin; then
+ kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
+ if test "x$enable_compiler_warnings" != xyes; then
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
+ kpse_warn_strings="-Wwrite-strings"
+ if test "x$enable_compiler_warnings" != xmax; then
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
+ fi
+ fi
+ fi
+fi
+kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
+elif test "x$enable_compiler_warnings" = xno; then
+ kpse_cv_warning_cxxflags=
+else
+ kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
+fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
+printf "%s\n" "$kpse_cv_warning_cxxflags" >&6; }
+WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
+
+
+
+
+
+func_stripname_cnf ()
+{
+ case $2 in
+ .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
+ *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
+ esac
+} # func_stripname_cnf
+
+ if test -n "$CXX" && ( test no != "$CXX" &&
+ ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
+ (test g++ != "$CXX"))); then
+ ac_ext=cpp
+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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
+printf %s "checking how to run the C++ preprocessor... " >&6; }
+if test -z "$CXXCPP"; then
+ if test ${ac_cv_prog_CXXCPP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ # Double quotes because $CXX needs to be expanded
+ for CXXCPP in "$CXX -E" cpp /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.
+ # 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+ Syntax error
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"
+then :
+
+else $as_nop
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"
+then :
+ # Broken: success on invalid input.
+continue
+else $as_nop
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
+printf "%s\n" "$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.
+ # 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+ Syntax error
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"
+then :
+
+else $as_nop
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"
+then :
+ # Broken: success on invalid input.
+continue
+else $as_nop
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok
+then :
+
+else $as_nop
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
+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
+
+else
+ _lt_caught_CXX_error=yes
+fi
+
+ac_ext=cpp
+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=
+compiler_needs_object_CXX=no
+export_dynamic_flag_spec_CXX=
+hardcode_direct_CXX=no
+hardcode_direct_absolute_CXX=no
+hardcode_libdir_flag_spec_CXX=
+hardcode_libdir_separator_CXX=
+hardcode_minus_L_CXX=no
+hardcode_shlibpath_var_CXX=unsupported
+hardcode_automatic_CXX=no
+inherit_rpath_CXX=no
+module_cmds_CXX=
+module_expsym_cmds_CXX=
+link_all_deplibs_CXX=unknown
+old_archive_cmds_CXX=$old_archive_cmds
+reload_flag_CXX=$reload_flag
+reload_cmds_CXX=$reload_cmds
+no_undefined_flag_CXX=
+whole_archive_flag_spec_CXX=
+enable_shared_with_static_runtimes_CXX=no
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+objext_CXX=$objext
+
+# No sense in running all these tests if we already determined that
+# the CXX compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test yes != "$_lt_caught_CXX_error"; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="int some_variable = 0;"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+ # save warnings/boilerplate of simple test code
+ ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+
+ ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC=$CC
+ lt_save_CFLAGS=$CFLAGS
+ 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
+ $as_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
+ $as_unset lt_cv_path_LD
+ fi
+ test -z "${LDCXX+set}" || LD=$LDCXX
+ CC=${CXX-"c++"}
+ CFLAGS=$CXXFLAGS
+ compiler=$CC
+ compiler_CXX=$CC
+ func_cc_basename $compiler
+cc_basename=$func_cc_basename_result
+
+
+ if test -n "$compiler"; then
+ # We don't want -fno-exception when compiling C++ code, so set the
+ # no_builtin_flag separately
+ if test yes = "$GXX"; then
+ lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
+ else
+ lt_prog_compiler_no_builtin_flag_CXX=
+ fi
+
+ if test yes = "$GXX"; then
+ # Set up default GNU C++ configuration
+
+
+
+# Check whether --with-gnu-ld was given.
+if test ${with_gnu_ld+y}
+then :
+ withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
+else $as_nop
+ with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test yes = "$GCC"; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
+printf %s "checking for ld used by $CC... " >&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 yes = "$with_gnu_ld"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
+printf %s "checking for GNU ld... " >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
+printf %s "checking for non-GNU ld... " >&6; }
+fi
+if test ${lt_cv_path_LD+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ 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 variants of GNU ld 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 no != "$with_gnu_ld" && break
+ ;;
+ *)
+ test yes != "$with_gnu_ld" && 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
+
+LD=$lt_cv_path_LD
+if test -n "$LD"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+printf "%s\n" "$LD" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
+printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
+if test ${lt_cv_prog_gnu_ld+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ # I'd rather use --version here, but apparently some GNU lds 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
+printf "%s\n" "$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 yes = "$with_gnu_ld"; then
+ archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC $pic_flag -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 -v "^Configured with:" | $GREP "\-L"'
+
+ else
+ GXX=no
+ with_gnu_ld=no
+ wlarc=
+ fi
+
+ # PORTME: fill in a description of your system's C++ link characteristics
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+ ld_shlibs_CXX=yes
+ case $host_os in
+ aix3*)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ aix[4-9]*)
+ if test ia64 = "$host_cpu"; 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
+ # have runtime linking enabled, and use it for executables.
+ # For shared libraries, we enable/disable runtime linking
+ # depending on the kind of the shared library created -
+ # when "with_aix_soname,aix_use_runtimelinking" is:
+ # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
+ # "aix,yes" lib.so shared, rtl:yes, for executables
+ # lib.a static archive
+ # "both,no" lib.so.V(shr.o) shared, rtl:yes
+ # lib.a(lib.so.V) shared, rtl:no, for executables
+ # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
+ # lib.a(lib.so.V) shared, rtl:no
+ # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
+ # lib.a static archive
+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+ for ld_flag in $LDFLAGS; do
+ case $ld_flag in
+ *-brtl*)
+ aix_use_runtimelinking=yes
+ break
+ ;;
+ esac
+ done
+ if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
+ # With aix-soname=svr4, we create the lib.so.V shared archives only,
+ # so we don't have lib.a shared libs to link our executables.
+ # We have to force runtime linking in this case.
+ aix_use_runtimelinking=yes
+ LDFLAGS="$LDFLAGS -Wl,-brtl"
+ fi
+ ;;
+ 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_direct_absolute_CXX=yes
+ hardcode_libdir_separator_CXX=':'
+ link_all_deplibs_CXX=yes
+ file_list_spec_CXX='$wl-f,'
+ case $with_aix_soname,$aix_use_runtimelinking in
+ aix,*) ;; # no import file
+ svr4,* | *,yes) # use import file
+ # The Import File defines what to hardcode.
+ hardcode_direct_CXX=no
+ hardcode_direct_absolute_CXX=no
+ ;;
+ esac
+
+ if test yes = "$GXX"; 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
+ :
+ 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'
+ if test yes = "$aix_use_runtimelinking"; then
+ shared_flag=$shared_flag' $wl-G'
+ fi
+ # Need to ensure runtime linking is disabled for the traditional
+ # shared library, or the linker may eventually find shared libraries
+ # /with/ Import File - we do not want to mix them.
+ shared_flag_aix='-shared'
+ shared_flag_svr4='-shared $wl-G'
+ else
+ # not using gcc
+ if test ia64 = "$host_cpu"; 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 yes = "$aix_use_runtimelinking"; then
+ shared_flag='$wl-G'
+ else
+ shared_flag='$wl-bM:SRE'
+ fi
+ shared_flag_aix='$wl-bM:SRE'
+ shared_flag_svr4='$wl-G'
+ fi
+ fi
+
+ export_dynamic_flag_spec_CXX='$wl-bexpall'
+ # 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,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ # The "-G" linker flag allows undefined symbols.
+ no_undefined_flag_CXX='-bernotok'
+ # Determine the default libpath from the value encoded in an empty
+ # executable.
+ if test set = "${lt_cv_aix_libpath+set}"; then
+ aix_libpath=$lt_cv_aix_libpath
+else
+ if test ${lt_cv_aix_libpath__CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"
+then :
+
+ lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\([^ ]*\) *$/\1/
+ p
+ }
+ }'
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ # Check for a 64-bit object if we didn't find anything.
+ if test -z "$lt_cv_aix_libpath__CXX"; then
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$lt_cv_aix_libpath__CXX"; then
+ lt_cv_aix_libpath__CXX=/usr/lib:/lib
+ fi
+
+fi
+
+ aix_libpath=$lt_cv_aix_libpath__CXX
+fi
+
+ hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
+
+ archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
+ else
+ if test ia64 = "$host_cpu"; 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 '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ if test set = "${lt_cv_aix_libpath+set}"; then
+ aix_libpath=$lt_cv_aix_libpath
+else
+ if test ${lt_cv_aix_libpath__CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"
+then :
+
+ lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\([^ ]*\) *$/\1/
+ p
+ }
+ }'
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ # Check for a 64-bit object if we didn't find anything.
+ if test -z "$lt_cv_aix_libpath__CXX"; then
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$lt_cv_aix_libpath__CXX"; then
+ lt_cv_aix_libpath__CXX=/usr/lib:/lib
+ fi
+
+fi
+
+ aix_libpath=$lt_cv_aix_libpath__CXX
+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'
+ if test yes = "$with_gnu_ld"; then
+ # We only use this code for GNU lds that support --whole-archive.
+ whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
+ else
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec_CXX='$convenience'
+ fi
+ archive_cmds_need_lc_CXX=yes
+ archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
+ # -brtl affects multiple linker settings, -berok does not and is overridden later
+ compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
+ if test svr4 != "$with_aix_soname"; then
+ # This is similar to how AIX traditionally builds its shared
+ # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
+ archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
+ fi
+ if test aix != "$with_aix_soname"; then
+ archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
+ else
+ # used by -dlpreopen to get the symbols
+ archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
+ fi
+ archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
+ fi
+ fi
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag_CXX=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ else
+ ld_shlibs_CXX=no
+ fi
+ ;;
+
+ chorus*)
+ case $cc_basename in
+ *)
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ esac
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ case $GXX,$cc_basename in
+ ,cl* | no,cl*)
+ # Native MSVC
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec_CXX=' '
+ allow_undefined_flag_CXX=unsupported
+ always_export_symbols_CXX=yes
+ file_list_spec_CXX='@'
+ # 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_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
+ archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
+ cp "$export_symbols" "$output_objdir/$soname.def";
+ echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+ else
+ $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+ fi~
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+ linknames='
+ # The linker will not automatically build a static lib if we build a DLL.
+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
+ enable_shared_with_static_runtimes_CXX=yes
+ # Don't use ranlib
+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
+ case $lt_outputfile in
+ *.exe|*.EXE) ;;
+ *)
+ lt_outputfile=$lt_outputfile.exe
+ lt_tool_outputfile=$lt_tool_outputfile.exe
+ ;;
+ esac~
+ func_to_tool_file "$lt_outputfile"~
+ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+ $RM "$lt_outputfile.manifest";
+ fi'
+ ;;
+ *)
+ # g++
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
+ export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
+ 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--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file, use it as
+ # is; otherwise, prepend EXPORTS...
+ archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; 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--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ esac
+ ;;
+ darwin* | rhapsody*)
+
+
+ archive_cmds_need_lc_CXX=no
+ hardcode_direct_CXX=no
+ hardcode_automatic_CXX=yes
+ hardcode_shlibpath_var_CXX=unsupported
+ if test yes = "$lt_cv_ld_force_load"; then
+ whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+
+ else
+ whole_archive_flag_spec_CXX=''
+ fi
+ link_all_deplibs_CXX=yes
+ allow_undefined_flag_CXX=$_lt_dar_allow_undefined
+ case $cc_basename in
+ ifort*|nagfor*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test yes = "$_lt_dar_can_shared"; then
+ output_verbose_link_cmd=func_echo_all
+ archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
+ module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
+ archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
+ module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
+ if test yes != "$lt_cv_apple_cc_single_mod"; then
+ 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$_lt_dsymutil"
+ archive_expsym_cmds_CXX="sed '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$_lt_dar_export_syms$_lt_dsymutil"
+ fi
+
+ else
+ ld_shlibs_CXX=no
+ fi
+
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
+ hardcode_minus_L_CXX=yes
+ allow_undefined_flag_CXX=unsupported
+ shrext_cmds=.dll
+ archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
+ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
+ emximp -o $lib $output_objdir/$libname.def'
+ archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
+ prefix_cmds="$SED"~
+ if test EXPORTS = "`$SED 1q $export_symbols`"; then
+ prefix_cmds="$prefix_cmds -e 1d";
+ fi~
+ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
+ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
+ emximp -o $lib $output_objdir/$libname.def'
+ old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
+ enable_shared_with_static_runtimes_CXX=yes
+ ;;
+
+ 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
+ ;;
+
+ freebsd2.*)
+ # 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* | dragonfly*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ ld_shlibs_CXX=yes
+ ;;
+
+ haiku*)
+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ link_all_deplibs_CXX=yes
+ ;;
+
+ 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 "x$output_objdir/$soname" = "x$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) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+ ;;
+ *)
+ if test yes = "$GXX"; then
+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+ else
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ esac
+ ;;
+
+ hpux10*|hpux11*)
+ if test no = "$with_gnu_ld"; then
+ hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
+ hardcode_libdir_separator_CXX=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ ;;
+ *)
+ export_dynamic_flag_spec_CXX='$wl-E'
+ ;;
+ esac
+ fi
+ case $host_cpu in
+ hppa*64*|ia64*)
+ hardcode_direct_CXX=no
+ hardcode_shlibpath_var_CXX=no
+ ;;
+ *)
+ hardcode_direct_CXX=yes
+ hardcode_direct_absolute_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*)
+ archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ 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; func_echo_all "$list"'
+ ;;
+ *)
+ if test yes = "$GXX"; then
+ if test no = "$with_gnu_ld"; then
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $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
+ ;;
+
+ interix[3-9]*)
+ hardcode_direct_CXX=no
+ hardcode_shlibpath_var_CXX=no
+ hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
+ export_dynamic_flag_spec_CXX='$wl-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+ 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" && func_echo_all "-set_version $verstring"` -update_registry $output_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 yes = "$GXX"; then
+ if test no = "$with_gnu_ld"; then
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+ else
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$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=:
+ inherit_rpath_CXX=yes
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+ 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; func_echo_all "$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* | ecpc* )
+ # 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
+ tmp_idyn=
+ case $host_cpu in
+ ia64*) tmp_idyn=' -i_dynamic';;
+ esac
+ archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $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'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ case `$CC -V` in
+ *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
+ prelink_cmds_CXX='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
+ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
+ old_archive_cmds_CXX='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
+ $RANLIB $oldlib'
+ archive_cmds_CXX='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # Version 6 and above use weak symbols
+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
+
+ hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
+ export_dynamic_flag_spec_CXX='$wl--export-dynamic'
+ whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_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=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
+ ;;
+ xl* | mpixl* | bgxl*)
+ # IBM XL 8.0 on PPC, with GNU ld
+ hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
+ export_dynamic_flag_spec_CXX='$wl--export-dynamic'
+ archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ if test yes = "$supports_anon_versioning"; then
+ archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ no_undefined_flag_CXX=' -zdefs'
+ archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
+ hardcode_libdir_flag_spec_CXX='-R$libdir'
+ whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+ compiler_needs_object_CXX=yes
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ output_verbose_link_cmd='func_echo_all'
+
+ # 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'
+ ;;
+ esac
+ ;;
+ 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::"'
+ ;;
+
+ *nto* | *qnx*)
+ ld_shlibs_CXX=yes
+ ;;
+
+ openbsd* | bitrig*)
+ if test -f /usr/libexec/ld.so; then
+ hardcode_direct_CXX=yes
+ hardcode_shlibpath_var_CXX=no
+ hardcode_direct_absolute_CXX=yes
+ 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__`"; 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=func_echo_all
+ else
+ ld_shlibs_CXX=no
+ fi
+ ;;
+
+ osf3* | 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.
+ case $host in
+ osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
+ *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
+ esac
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ ld_shlibs_CXX=no
+ ;;
+ cxx*)
+ case $host in
+ osf3*)
+ 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" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+ hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
+ ;;
+ *)
+ 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" && func_echo_all "-set_version $verstring"` -update_registry $output_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 $output_objdir/so_locations -o $lib~
+ $RM $lib.exp'
+ hardcode_libdir_flag_spec_CXX='-rpath $libdir'
+ ;;
+ esac
+
+ 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=`func_echo_all "$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; func_echo_all "$list"'
+ ;;
+ *)
+ if test yes,no = "$GXX,$with_gnu_ld"; then
+ allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
+ case $host in
+ osf3*)
+ archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+ ;;
+ *)
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+ ;;
+ esac
+
+ 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 -v "^Configured with:" | $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
+ ;;
+
+ 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* | sunCC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ archive_cmds_need_lc_CXX=yes
+ no_undefined_flag_CXX=' -zdefs'
+ archive_cmds_CXX='$CC -G$allow_undefined_flag -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 $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 compiler driver will combine and reorder linker options,
+ # but understands '-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
+ ;;
+ esac
+ link_all_deplibs_CXX=yes
+
+ output_verbose_link_cmd='func_echo_all'
+
+ # 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 yes,no = "$GXX,$with_gnu_ld"; then
+ no_undefined_flag_CXX=' $wl-z ${wl}defs'
+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $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 $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -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 -v "^Configured with:" | $GREP "\-L"'
+ else
+ # g++ 2.7 appears to require '-G' NOT '-shared' on this
+ # platform.
+ archive_cmds_CXX='$CC -G -nostdlib $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 $wl-h $wl$soname -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 -v "^Configured with:" | $GREP "\-L"'
+ fi
+
+ hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *)
+ whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+ no_undefined_flag_CXX='$wl-z,text'
+ archive_cmds_need_lc_CXX=no
+ hardcode_shlibpath_var_CXX=no
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We CANNOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ no_undefined_flag_CXX='$wl-z,text'
+ allow_undefined_flag_CXX='$wl-z,nodefs'
+ archive_cmds_need_lc_CXX=no
+ hardcode_shlibpath_var_CXX=no
+ hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
+ hardcode_libdir_separator_CXX=':'
+ link_all_deplibs_CXX=yes
+ export_dynamic_flag_spec_CXX='$wl-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
+ '"$old_archive_cmds_CXX"
+ reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
+ '"$reload_cmds_CXX"
+ ;;
+ *)
+ archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ 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
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
+printf "%s\n" "$ld_shlibs_CXX" >&6; }
+ test no = "$ld_shlibs_CXX" && 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...
+ # 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=
+
+cat > conftest.$ac_ext <<_LT_EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+_LT_EOF
+
+
+_lt_libdeps_save_CFLAGS=$CFLAGS
+case "$CC $CFLAGS " in #(
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
+esac
+
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; 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
+
+ for p in `eval "$output_verbose_link_cmd"`; do
+ case $prev$p in
+
+ -L* | -R* | -l*)
+ # Some compilers place space between "-{L,R}" and the path.
+ # Remove the space.
+ if test x-L = "$p" ||
+ test x-R = "$p"; then
+ prev=$p
+ continue
+ fi
+
+ # Expand the sysroot to ease extracting the directories later.
+ if test -z "$prev"; then
+ case $p in
+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
+ esac
+ fi
+ case $p in
+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
+ esac
+ if test no = "$pre_test_object_deps_done"; then
+ case $prev 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
+ prev=
+ ;;
+
+ *.lto.$objext) ;; # Ignore GCC LTO objects
+ *.$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 no = "$pre_test_object_deps_done"; 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
+ echo "libtool.m4: error: problem compiling CXX test program"
+fi
+
+$RM -f confest.$objext
+CFLAGS=$_lt_libdeps_save_CFLAGS
+
+# PORTME: override above test on systems where it is broken
+case $host_os in
+interix[3-9]*)
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
+ # hack all around it, let's just trust "g++" to DTRT.
+ predep_objects_CXX=
+ postdep_objects_CXX=
+ postdeps_CXX=
+ ;;
+esac
+
+
+case " $postdeps_CXX " in
+*" -lc "*) archive_cmds_need_lc_CXX=no ;;
+esac
+ compiler_lib_search_dirs_CXX=
+if test -n "${compiler_lib_search_path_CXX}"; then
+ compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lt_prog_compiler_wl_CXX=
+lt_prog_compiler_pic_CXX=
+lt_prog_compiler_static_CXX=
+
+
+ # C++ specific cases for pic, static, wl, etc.
+ if test yes = "$GXX"; 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 ia64 = "$host_cpu"; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static_CXX='-Bstatic'
+ fi
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ m68k)
+ # 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'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
+ # 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
+ case $host_os in
+ os2*)
+ lt_prog_compiler_static_CXX='$wl-static'
+ ;;
+ esac
+ ;;
+ 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=
+ ;;
+ haiku*)
+ # PIC is the default for Haiku.
+ # The "-static" flag exists, but is broken.
+ lt_prog_compiler_static_CXX=
+ ;;
+ interix[3-9]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic_CXX=-Kconform_pic
+ fi
+ ;;
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ ;;
+ *)
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ esac
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic_CXX='-fPIC -shared'
+ ;;
+ *)
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ esac
+ else
+ case $host_os in
+ aix[4-9]*)
+ # All AIX code is PIC.
+ if test ia64 = "$host_cpu"; 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_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
+ ;;
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
+ # 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'
+ ;;
+ 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* | dragonfly*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case $cc_basename in
+ CC*)
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
+ if test ia64 != "$host_cpu"; then
+ lt_prog_compiler_pic_CXX='+Z'
+ fi
+ ;;
+ aCC*)
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic_CXX='+Z'
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ interix*)
+ # This is c89, which is MS Visual C++ (no shared libs)
+ # Anyone wants to do a port?
+ ;;
+ 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* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+ case $cc_basename in
+ KCC*)
+ # KAI C++ Compiler
+ lt_prog_compiler_wl_CXX='--backend -Wl,'
+ lt_prog_compiler_pic_CXX='-fPIC'
+ ;;
+ ecpc* )
+ # old Intel C++ for x86_64, which still supported -KPIC.
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_pic_CXX='-KPIC'
+ lt_prog_compiler_static_CXX='-static'
+ ;;
+ icpc* )
+ # Intel C++, used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_pic_CXX='-fPIC'
+ lt_prog_compiler_static_CXX='-static'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_pic_CXX='-fpic'
+ lt_prog_compiler_static_CXX='-Bstatic'
+ ;;
+ 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'
+ ;;
+ xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
+ # IBM XL 8.0, 9.0 on PPC and BlueGene
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_pic_CXX='-qpic'
+ lt_prog_compiler_static_CXX='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ lt_prog_compiler_pic_CXX='-KPIC'
+ lt_prog_compiler_static_CXX='-Bstatic'
+ lt_prog_compiler_wl_CXX='-Qoption ld '
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ lynxos*)
+ ;;
+ m88k*)
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ lt_prog_compiler_pic_CXX='-W c,exportall'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ netbsd*)
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic_CXX='-fPIC -shared'
+ ;;
+ 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*)
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC* | sunCC*)
+ # 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
+ ;;
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ case $cc_basename in
+ CC*)
+ lt_prog_compiler_wl_CXX='-Wl,'
+ lt_prog_compiler_pic_CXX='-KPIC'
+ lt_prog_compiler_static_CXX='-Bstatic'
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ lt_prog_compiler_pic_CXX='-KPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ vxworks*)
+ ;;
+ *)
+ lt_prog_compiler_can_build_shared_CXX=no
+ ;;
+ esac
+ fi
+
+case $host_os in
+ # For platforms that 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
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
+printf %s "checking for $compiler option to produce PIC... " >&6; }
+if test ${lt_cv_prog_compiler_pic_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
+printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic_CXX"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
+printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
+if test ${lt_cv_prog_compiler_pic_works_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_pic_works_CXX=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
+ # 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}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $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 other than the usual output.
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_pic_works_CXX=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
+printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; 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
+
+
+
+
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if test ${lt_cv_prog_compiler_static_works_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_static_works_CXX=no
+ save_LDFLAGS=$LDFLAGS
+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker 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
+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_static_works_CXX=yes
+ fi
+ else
+ lt_cv_prog_compiler_static_works_CXX=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS=$save_LDFLAGS
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
+printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
+ :
+else
+ lt_prog_compiler_static_CXX=
+fi
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test ${lt_cv_prog_compiler_c_o_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_c_o_CXX=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$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}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $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
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o_CXX=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $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 ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
+printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test ${lt_cv_prog_compiler_c_o_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_prog_compiler_c_o_CXX=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$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}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $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
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o_CXX=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $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 ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
+printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
+
+
+
+
+hard_links=nottested
+if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
+ # do not overwrite the value of need_locks provided by the user
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
+printf %s "checking if we can lock with hard links... " >&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
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
+printf "%s\n" "$hard_links" >&6; }
+ if test no = "$hard_links"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
+printf "%s\n" "$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
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
+ case $host_os in
+ aix[4-9]*)
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to GNU nm, but means don't demangle to AIX nm.
+ # Without the "-l" option, or with the "-B" option, AIX nm treats
+ # weak defined symbols like other global defined symbols, whereas
+ # GNU nm marks them as "W".
+ # While the 'weak' keyword is ignored in the Export File, we need
+ # it in the Import File for the 'aix-soname' feature, so we have
+ # to replace the "-B" option with "-P" for AIX 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") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
+ fi
+ ;;
+ pw32*)
+ export_symbols_cmds_CXX=$ltdll_cmds
+ ;;
+ cygwin* | mingw* | cegcc*)
+ case $cc_basename in
+ cl*)
+ exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+ ;;
+ *)
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
+ ;;
+ esac
+ ;;
+ *)
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ esac
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
+printf "%s\n" "$ld_shlibs_CXX" >&6; }
+test no = "$ld_shlibs_CXX" && can_build_shared=no
+
+with_gnu_ld_CXX=$with_gnu_ld
+
+
+
+
+
+
+#
+# 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 yes,yes = "$GCC,$enable_shared"; 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.
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
+printf %s "checking whether -lc should be explicitly linked in... " >&6; }
+if test ${lt_cv_archive_cmds_need_lc_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl_CXX
+ pic_flag=$lt_prog_compiler_pic_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\":${as_lineno-$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=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ then
+ lt_cv_archive_cmds_need_lc_CXX=no
+ else
+ lt_cv_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*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
+printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
+ archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
+printf %s "checking dynamic linker characteristics... " >&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"
+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 # correct to gnu/linux during the next big refactor
+ 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'
+ ;;
+
+aix[4-9]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test ia64 = "$host_cpu"; 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
+ # Using Import Files as archive members, it is possible to support
+ # filename-based versioning of shared library archives on AIX. While
+ # this would work for both with and without runtime linking, it will
+ # prevent static linking of such archives. So we do filename-based
+ # shared library versioning with .so extension only, which is used
+ # when both runtime linking and shared linking is enabled.
+ # Unfortunately, runtime linking may impact performance, so we do
+ # not want this to be the default eventually. Also, we use the
+ # versioned .so libs for executables only if there is the -brtl
+ # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
+ # To allow for filename-based versioning support, we need to create
+ # libNAME.so.V as an archive file, containing:
+ # *) an Import File, referring to the versioned filename of the
+ # archive as well as the shared archive member, telling the
+ # bitwidth (32 or 64) of that shared object, and providing the
+ # list of exported symbols of that shared object, eventually
+ # decorated with the 'weak' keyword
+ # *) the shared object with the F_LOADONLY flag set, to really avoid
+ # it being seen by the linker.
+ # At run time we better use the real file rather than another symlink,
+ # but for link time we create the symlink libNAME.so -> libNAME.so.V
+
+ case $with_aix_soname,$aix_use_runtimelinking in
+ # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ aix,yes) # traditional libtool
+ dynamic_linker='AIX unversionable lib.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'
+ ;;
+ aix,no) # traditional AIX only
+ dynamic_linker='AIX lib.a(lib.so.V)'
+ # 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'
+ ;;
+ svr4,*) # full svr4 only
+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
+ # We do not specify a path in Import Files, so LIBPATH fires.
+ shlibpath_overrides_runpath=yes
+ ;;
+ *,yes) # both, prefer svr4
+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
+ # unpreferred sharedlib libNAME.a needs extra handling
+ postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
+ postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
+ # We do not specify a path in Import Files, so LIBPATH fires.
+ shlibpath_overrides_runpath=yes
+ ;;
+ *,no) # both, prefer aix
+ dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
+ library_names_spec='$libname$release.a $libname.a'
+ soname_spec='$libname$release$shared_ext$major'
+ # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
+ postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
+ postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
+ ;;
+ esac
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ ;;
+ m68k)
+ 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=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='$libname$shared_ext'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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* | cegcc*)
+ version_type=windows
+ shrext_cmds=.dll
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$cc_basename in
+ yes,*)
+ # gcc
+ 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~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ 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'
+
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+ ;;
+ 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
+ dynamic_linker='Win32 ld.exe'
+ ;;
+
+ *,cl*)
+ # Native MSVC
+ libname_spec='$name'
+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+ library_names_spec='$libname.dll.lib'
+
+ case $build_os in
+ mingw*)
+ sys_lib_search_path_spec=
+ lt_save_ifs=$IFS
+ IFS=';'
+ for lt_path in $LIB
+ do
+ IFS=$lt_save_ifs
+ # Let DOS variable expansion print the short 8.3 style file name.
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
+ done
+ IFS=$lt_save_ifs
+ # Convert to MSYS style.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
+ ;;
+ cygwin*)
+ # Convert to unix form, then to dos form, then back to unix form
+ # but this time dos style (no spaces!) so that the unix form looks
+ # like /cygdrive/c/PROGRA~1:/cygdr...
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ ;;
+ *)
+ sys_lib_search_path_spec=$LIB
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH.
+ 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
+ # FIXME: find the short name or the path components, as spaces are
+ # common. (e.g. "Program Files" -> "PROGRA~1")
+ ;;
+ esac
+
+ # 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
+ dynamic_linker='Win32 link.exe'
+ ;;
+
+ *)
+ # Assume MSVC wrapper
+ library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
+ dynamic_linker='Win32 ld.exe'
+ ;;
+ esac
+ # 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$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`'
+
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[23].*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
+ 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
+ ;;
+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+haiku*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ dynamic_linker="$host_os runtime_loader"
+ 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=LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
+ 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 32 = "$HPUX_IA64_MODE"; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ sys_lib_dlsearch_path_spec=/usr/lib/hpux32
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ sys_lib_dlsearch_path_spec=/usr/lib/hpux64
+ fi
+ ;;
+ 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'
+ # or fails outright, so override atomically:
+ install_override_mode=555
+ ;;
+
+interix[3-9]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test yes = "$lt_cv_prog_gnu_ld"; then
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+ ;;
+
+linux*android*)
+ version_type=none # Android doesn't support versioned libraries.
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='$libname$release$shared_ext'
+ soname_spec='$libname$release$shared_ext'
+ finish_cmds=
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+
+ # 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
+
+ dynamic_linker='Android linker'
+ # Don't embed -rpath directories since the linker doesn't support them.
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
+ ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+
+ # Some binutils ld are patched to set DT_RUNPATH
+ if test ${lt_cv_shlibpath_overrides_runpath+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ lt_cv_shlibpath_overrides_runpath=no
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"
+then :
+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
+then :
+ lt_cv_shlibpath_overrides_runpath=yes
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+fi
+
+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
+
+ # 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
+
+ # Ideally, we could use ldconfig to report *all* directores which are
+ # searched for libraries, however this is still not possible. Aside from not
+ # being certain /sbin/ldconfig is available, command
+ # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
+ # even though it is searched at run-time. Try to do the best guess by
+ # appending ld.so.conf contents (and includes) to the search path.
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | 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'
+ ;;
+
+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 # correct to gnu/linux during the next big refactor
+ 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=qnx
+ 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='ldqnx.so'
+ ;;
+
+openbsd* | bitrig*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec=/usr/lib
+ need_lib_prefix=no
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+ need_version=no
+ else
+ need_version=yes
+ fi
+ 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
+ shlibpath_overrides_runpath=yes
+ ;;
+
+os2*)
+ libname_spec='$name'
+ version_type=windows
+ shrext_cmds=.dll
+ need_version=no
+ need_lib_prefix=no
+ # OS/2 can only load a DLL with a base name of 8 characters or less.
+ soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
+ v=$($ECHO $release$versuffix | tr -d .-);
+ n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
+ $ECHO $n$v`$shared_ext'
+ library_names_spec='${libname}_dll.$libext'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=BEGINLIBPATH
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ 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~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ ;;
+
+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
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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 yes = "$with_gnu_ld"; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+ 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 # correct to gnu/linux during the next big refactor
+ 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
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=sco
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test yes = "$with_gnu_ld"; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
+printf "%s\n" "$dynamic_linker" >&6; }
+test no = "$dynamic_linker" && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test yes = "$GCC"; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
+ sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
+fi
+
+if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
+ sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
+fi
+
+# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
+configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
+
+# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
+func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
+
+# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
+configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
+printf %s "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action_CXX=
+if test -n "$hardcode_libdir_flag_spec_CXX" ||
+ test -n "$runpath_var_CXX" ||
+ test yes = "$hardcode_automatic_CXX"; then
+
+ # We can hardcode non-existent directories.
+ if test no != "$hardcode_direct_CXX" &&
+ # 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 no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
+ test no != "$hardcode_minus_L_CXX"; 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
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
+printf "%s\n" "$hardcode_action_CXX" >&6; }
+
+if test relink = "$hardcode_action_CXX" ||
+ test yes = "$inherit_rpath_CXX"; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test yes = "$shlibpath_overrides_runpath" ||
+ test no = "$enable_shared"; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+
+
+
+
+
+
+ fi # test -n "$compiler"
+
+ CC=$lt_save_CC
+ CFLAGS=$lt_save_CFLAGS
+ LDCXX=$LD
+ LD=$lt_save_LD
+ GCC=$lt_save_GCC
+ 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
+fi # test yes != "$_lt_caught_CXX_error"
+
+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
+
+
+# Check whether --enable-cxx-runtime-hack was given.
+if test ${enable_cxx_runtime_hack+y}
+then :
+ enableval=$enable_cxx_runtime_hack;
+fi
+
+if test "x$GXX:$enable_cxx_runtime_hack" = xyes:yes; then
+
+ac_ext=cpp
+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_fn_cxx_check_header_compile "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
+if test "x$ac_cv_header_iostream" = xyes
+then :
+ printf "%s\n" "#define HAVE_IOSTREAM 1" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statically linking C++ runtime library" >&5
+printf %s "checking for statically linking C++ runtime library... " >&6; }
+if test ${kpse_cv_cxx_hack+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef HAVE_IOSTREAM
+#include <iostream>
+using namespace std;
+#else
+#include <iostream.h>
+#endif
+int
+main (void)
+{
+cout <<"worksok\n";
+ ;
+ return 0;
+}
+_ACEOF
+ case $host in #(
+ *cygwin*) :
+ flags_try0='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic' ;; #(
+ *) :
+ flags_try0='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm'
+ flags_try1='-lgcc_eh -lgcc -lc -lgcc_eh -lgcc'
+ flags_try2='-lgcc -lc -lgcc' ;;
+esac
+ kpse_save_LIBS=$LIBS
+ cpp_link_hack=false
+ for flags in "$flags_try1" "$flags_try2"; do
+ LIBS="$kpse_save_LIBS $flags_try0 $flags"
+ if ac_fn_cxx_try_link "$LINENO"
+then :
+ if test "x$cross_compiling" = xyes
+then :
+ cpp_link_hack=true; break
+else $as_nop
+ case `(./conftest$ac_exeext; exit) 2>/dev/null` in #(
+ worksok) :
+ cpp_link_hack=true; break ;; #(
+ *) :
+ ;;
+esac
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext
+ done
+ LIBS=$kpse_save_LIBS
+ if $cpp_link_hack; then
+ kpse_cv_cxx_hack=ok
+ kpse_cv_cxx_flags="$flags_try0 $flags"
+ else
+ kpse_cv_cxx_hack="not supported"
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_cxx_hack" >&5
+printf "%s\n" "$kpse_cv_cxx_hack" >&6; }
+if test "x$kpse_cv_cxx_hack" = xok; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using $kpse_cv_cxx_flags" >&5
+printf "%s\n" "$as_me: using $kpse_cv_cxx_flags" >&6;}
+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
+
+
+fi
+if test "x$kpse_cv_cxx_hack" = xok; then
+ CXXLD='$(top_builddir)/CXXLD.sh'
+ cxxld_sh="#! ${CONFIG_SHELL-/bin/sh}
+# CXXLD.sh. Generated by configure.
+set -- $CXX \"\$@\" $kpse_cv_cxx_flags
+echo \"\$0:\" \"\$@\"
+exec \"\$@\""
+ ac_config_commands="$ac_config_commands CXXLD.sh"
+
+else
+ CXXLD='$(CXX)'
+fi
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
+printf %s "checking for library containing pow... " >&6; }
+if test ${ac_cv_search_pow+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char pow ();
+int
+main (void)
+{
+return pow ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' m
+do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_search_pow=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext
+ if test ${ac_cv_search_pow+y}
+then :
+ break
+fi
+done
+if test ${ac_cv_search_pow+y}
+then :
+
+else $as_nop
+ ac_cv_search_pow=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
+printf "%s\n" "$ac_cv_search_pow" >&6; }
+ac_res=$ac_cv_search_pow
+if test "$ac_res" != no
+then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+
+if test "x$enable_bibtexu" != xno; then
+ kpse_save_CPPFLAGS=$CPPFLAGS
+kpse_save_LIBS=$LIBS
+
+##tldbg _KPSE_INIT: Initialize TL infrastructure.
+kpse_BLD=`(cd "./../../." && pwd)`
+kpse_SRC=`(cd "$srcdir/../../." && pwd)`
+
+##tldbg _KPSE_USE_LIBTOOL: Generate a libtool script for use in configure tests.
+: ${CONFIG_LT=./config.lt}
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
+printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
+as_write_fail=0
+cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate a libtool stub with the current configuration.
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+as_nop=:
+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
+then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else $as_nop
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+
+# Reset variables that may have inherited troublesome values from
+# the environment.
+
+# IFS needs to be set, to space, tab, and newline, in precisely that order.
+# (If _AS_PATH_WALK were called with IFS unset, it would have the
+# side effect of setting IFS to empty, thus disabling word splitting.)
+# Quoting is to prevent editors from complaining about space-tab.
+as_nl='
+'
+export as_nl
+IFS=" "" $as_nl"
+
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# Ensure predictable behavior from utilities with locale-dependent output.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# We cannot yet rely on "unset" to work, but we need these variables
+# to be unset--not just set to an empty or harmless value--now, to
+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
+# also avoids known problems related to "unset" and subshell syntax
+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
+do eval test \${$as_var+y} \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+
+# Ensure that fds 0, 1, and 2 are open.
+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
+
+# The user is always right.
+if ${PATH_SEPARATOR+false} :; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ printf "%s\n" "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
+then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else $as_nop
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
+then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else $as_nop
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+# Determine whether it's possible to make 'echo' print without a newline.
+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
+# for compatibility with existing Makefiles.
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+# For backward compatibility with old third-party macros, we provide
+# the shell variables $as_echo and $as_echo_n. New code should use
+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
+as_echo='printf %s\n'
+as_echo_n='printf %s'
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+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="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## --------------------------------- ##
+## Main body of "$CONFIG_LT" script. ##
+## --------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+lt_cl_silent=false
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+} >&5
+
+lt_cl_help="\
+'$as_me' creates a local libtool stub from the current configuration,
+for use in further configure time tests before the real libtool is
+generated.
+
+Usage: $0 [OPTIONS]
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -q, --quiet do not print progress messages
+ -d, --debug don't remove temporary files
+
+Report bugs to <bug-libtool@gnu.org>."
+
+lt_cl_version="\
+extended BibTeX (TeX Live) config.lt 4.00
+configured by $0, generated by GNU Autoconf 2.71.
+
+Copyright (C) 2011 Free Software Foundation, Inc.
+This config.lt script is free software; the Free Software Foundation
+gives unlimited permision to copy, distribute and modify it."
+
+while test 0 != $#
+do
+ case $1 in
+ --version | --v* | -V )
+ echo "$lt_cl_version"; exit 0 ;;
+ --help | --h* | -h )
+ echo "$lt_cl_help"; exit 0 ;;
+ --debug | --d* | -d )
+ debug=: ;;
+ --quiet | --q* | --silent | --s* | -q )
+ lt_cl_silent=: ;;
+
+ -*) as_fn_error $? "unrecognized option: $1
+Try '$0 --help' for more information." "$LINENO" 5 ;;
+
+ *) as_fn_error $? "unrecognized argument: $1
+Try '$0 --help' for more information." "$LINENO" 5 ;;
+ esac
+ shift
+done
+
+if $lt_cl_silent; then
+ exec 6>/dev/null
+fi
+_LTEOF
+
+cat >>"$CONFIG_LT" <<_LTEOF
+
+
+# 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
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
+macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
+AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
+OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
+enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
+enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
+pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
+enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
+shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
+SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
+ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
+PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
+host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
+host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
+host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
+build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
+build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
+build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
+SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
+Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
+GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
+EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
+FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
+LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
+NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
+LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
+max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
+ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
+exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
+lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
+lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
+lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
+reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
+reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
+deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
+file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
+AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
+AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
+STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
+RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
+old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
+lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
+CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
+CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
+compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
+GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
+lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
+lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
+objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
+MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
+need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
+DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
+NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
+LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
+OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
+OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
+libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
+shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
+extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
+export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
+whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
+compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
+old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
+archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
+module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
+allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
+no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
+hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
+hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
+hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
+hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
+inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
+link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
+always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
+export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
+exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
+include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
+prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
+file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
+variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
+need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
+need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
+version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
+runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
+libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
+library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
+soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
+install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
+postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
+finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
+hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
+sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
+configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
+configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
+hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
+enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
+old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
+striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
+predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
+postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
+predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
+postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
+LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
+reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
+reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
+GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
+archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
+export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
+allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
+no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
+inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
+link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
+always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
+export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
+include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
+prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
+predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
+postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
+predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
+postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
+
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+ eval 'cat <<_LTECHO_EOF
+\$1
+_LTECHO_EOF'
+}
+
+# Quote evaled strings.
+for var in AS \
+DLLTOOL \
+OBJDUMP \
+SHELL \
+ECHO \
+PATH_SEPARATOR \
+SED \
+GREP \
+EGREP \
+FGREP \
+LD \
+NM \
+LN_S \
+lt_SP2NL \
+lt_NL2SP \
+reload_flag \
+deplibs_check_method \
+file_magic_cmd \
+file_magic_glob \
+want_nocaseglob \
+sharedlib_from_linklib_cmd \
+AR \
+AR_FLAGS \
+archiver_list_spec \
+STRIP \
+RANLIB \
+CC \
+CFLAGS \
+compiler \
+lt_cv_sys_global_symbol_pipe \
+lt_cv_sys_global_symbol_to_cdecl \
+lt_cv_sys_global_symbol_to_import \
+lt_cv_sys_global_symbol_to_c_name_address \
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
+lt_cv_nm_interface \
+nm_file_list_spec \
+lt_cv_truncate_bin \
+lt_prog_compiler_no_builtin_flag \
+lt_prog_compiler_pic \
+lt_prog_compiler_wl \
+lt_prog_compiler_static \
+lt_cv_prog_compiler_c_o \
+need_locks \
+MANIFEST_TOOL \
+DSYMUTIL \
+NMEDIT \
+LIPO \
+OTOOL \
+OTOOL64 \
+shrext_cmds \
+export_dynamic_flag_spec \
+whole_archive_flag_spec \
+compiler_needs_object \
+with_gnu_ld \
+allow_undefined_flag \
+no_undefined_flag \
+hardcode_libdir_flag_spec \
+hardcode_libdir_separator \
+exclude_expsyms \
+include_expsyms \
+file_list_spec \
+variables_saved_for_relink \
+libname_spec \
+library_names_spec \
+soname_spec \
+install_override_mode \
+finish_eval \
+old_striplib \
+striplib \
+compiler_lib_search_dirs \
+predep_objects \
+postdep_objects \
+predeps \
+postdeps \
+compiler_lib_search_path \
+LD_CXX \
+reload_flag_CXX \
+compiler_CXX \
+lt_prog_compiler_no_builtin_flag_CXX \
+lt_prog_compiler_pic_CXX \
+lt_prog_compiler_wl_CXX \
+lt_prog_compiler_static_CXX \
+lt_cv_prog_compiler_c_o_CXX \
+export_dynamic_flag_spec_CXX \
+whole_archive_flag_spec_CXX \
+compiler_needs_object_CXX \
+with_gnu_ld_CXX \
+allow_undefined_flag_CXX \
+no_undefined_flag_CXX \
+hardcode_libdir_flag_spec_CXX \
+hardcode_libdir_separator_CXX \
+exclude_expsyms_CXX \
+include_expsyms_CXX \
+file_list_spec_CXX \
+compiler_lib_search_dirs_CXX \
+predep_objects_CXX \
+postdep_objects_CXX \
+predeps_CXX \
+postdeps_CXX \
+compiler_lib_search_path_CXX; do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in reload_cmds \
+old_postinstall_cmds \
+old_postuninstall_cmds \
+old_archive_cmds \
+extract_expsyms_cmds \
+old_archive_from_new_cmds \
+old_archive_from_expsyms_cmds \
+archive_cmds \
+archive_expsym_cmds \
+module_cmds \
+module_expsym_cmds \
+export_symbols_cmds \
+prelink_cmds \
+postlink_cmds \
+postinstall_cmds \
+postuninstall_cmds \
+finish_cmds \
+sys_lib_search_path_spec \
+configure_time_dlsearch_path \
+configure_time_lt_sys_library_path \
+reload_cmds_CXX \
+old_archive_cmds_CXX \
+old_archive_from_new_cmds_CXX \
+old_archive_from_expsyms_cmds_CXX \
+archive_cmds_CXX \
+archive_expsym_cmds_CXX \
+module_cmds_CXX \
+module_expsym_cmds_CXX \
+export_symbols_cmds_CXX \
+prelink_cmds_CXX \
+postlink_cmds_CXX; do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+ac_aux_dir='$ac_aux_dir'
+
+# See if we are running on zsh, and set the options that allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}"; then
+ setopt NO_GLOB_SUBST
+fi
+
+
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ RM='$RM'
+ ofile='$ofile'
+
+
+
+
+
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
+printf "%s\n" "$as_me: creating $ofile" >&6;}
+
+
+ # See if we are running on zsh, and set the options that allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}"; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile=${ofile}T
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+# Generated automatically by $as_me ($PACKAGE) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+
+# Provide generalized library-building support services.
+# Written by Gordon Matzigkeit, 1996
+
+# Copyright (C) 2014 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool 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 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program or library that is built
+# using GNU Libtool, you may include this file under the same
+# distribution terms that you use for the rest of that program.
+#
+# GNU Libtool 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, see <http://www.gnu.org/licenses/>.
+
+
+# The names of the tagged configurations supported by this script.
+available_tags='CXX '
+
+# Configured defaults for sys_lib_dlsearch_path munging.
+: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Which release of libtool.m4 was used?
+macro_version=$macro_version
+macro_revision=$macro_revision
+
+# Assembler program.
+AS=$lt_AS
+
+# DLL creation program.
+DLLTOOL=$lt_DLLTOOL
+
+# Object dumper program.
+OBJDUMP=$lt_OBJDUMP
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# What type of objects to build.
+pic_mode=$pic_mode
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# Shared archive member basename,for filename based shared library versioning on AIX.
+shared_archive_member_spec=$shared_archive_member_spec
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# An echo program that protects backslashes.
+ECHO=$lt_ECHO
+
+# The PATH separator for the build system.
+PATH_SEPARATOR=$lt_PATH_SEPARATOR
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# 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 1s/^X//"
+
+# A grep program that handles long lines.
+GREP=$lt_GREP
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# A literal string matcher.
+FGREP=$lt_FGREP
+
+# A BSD- or MS-compatible name lister.
+NM=$lt_NM
+
+# Whether we need soft or hard links.
+LN_S=$lt_LN_S
+
+# What is the maximum length of a command?
+max_cmd_len=$max_cmd_len
+
+# Object file suffix (normally "o").
+objext=$ac_objext
+
+# Executable file suffix (normally "").
+exeext=$exeext
+
+# whether the shell understands "unset".
+lt_unset=$lt_unset
+
+# turn spaces into newlines.
+SP2NL=$lt_lt_SP2NL
+
+# turn newlines into spaces.
+NL2SP=$lt_lt_NL2SP
+
+# convert \$build file names to \$host format.
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+
+# convert \$build files to toolchain format.
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+
+# 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
+
+# How to find potential files when deplibs_check_method = "file_magic".
+file_magic_glob=$lt_file_magic_glob
+
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
+want_nocaseglob=$lt_want_nocaseglob
+
+# Command to associate shared and link libraries.
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
+
+# The archiver.
+AR=$lt_AR
+
+# Flags to create an archive.
+AR_FLAGS=$lt_AR_FLAGS
+
+# How to feed a file listing to the archiver.
+archiver_list_spec=$lt_archiver_list_spec
+
+# A symbol stripping program.
+STRIP=$lt_STRIP
+
+# Commands used to install an old-style archive.
+RANLIB=$lt_RANLIB
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Whether to use a lock for old archive extraction.
+lock_old_archive_extraction=$lock_old_archive_extraction
+
+# A C compiler.
+LTCC=$lt_CC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_CFLAGS
+
+# 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 into a list of symbols to manually relocate.
+global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
+
+# 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
+
+# Transform the output of nm in a C name address pair when lib prefix is needed.
+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
+
+# The name lister interface.
+nm_interface=$lt_lt_cv_nm_interface
+
+# Specify filename containing input files for \$NM.
+nm_file_list_spec=$lt_nm_file_list_spec
+
+# The root where to search for dependent libraries,and where our libraries should be installed.
+lt_sysroot=$lt_sysroot
+
+# Command to truncate a binary pipe.
+lt_truncate_bin=$lt_lt_cv_truncate_bin
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# Used to examine libraries when file_magic_cmd begins with "file".
+MAGIC_CMD=$MAGIC_CMD
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Manifest tool.
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
+
+# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
+DSYMUTIL=$lt_DSYMUTIL
+
+# Tool to change global to local symbols on Mac OS X.
+NMEDIT=$lt_NMEDIT
+
+# Tool to manipulate fat objects and archives on Mac OS X.
+LIPO=$lt_LIPO
+
+# ldd/readelf like tool for Mach-O binaries on Mac OS X.
+OTOOL=$lt_OTOOL
+
+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
+OTOOL64=$lt_OTOOL64
+
+# Old archive suffix (normally "a").
+libext=$libext
+
+# Shared library suffix (normally ".so").
+shrext_cmds=$lt_shrext_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at link time.
+variables_saved_for_relink=$lt_variables_saved_for_relink
+
+# 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
+
+# Library versioning type.
+version_type=$version_type
+
+# Shared library runtime path variable.
+runpath_var=$runpath_var
+
+# Shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# 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
+
+# Permission mode override for installation of shared libraries.
+install_override_mode=$lt_install_override_mode
+
+# Command to use after installation of a shared archive.
+postinstall_cmds=$lt_postinstall_cmds
+
+# Command to use after uninstallation of a shared archive.
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# As "finish_cmds", except a single script fragment to be evaled but
+# not shown.
+finish_eval=$lt_finish_eval
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Compile-time system search path for libraries.
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Detected run-time system search path for libraries.
+sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
+
+# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
+configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
+
+# 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
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds
+
+# A language specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# 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
+
+# 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
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object
+
+# 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 a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# 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
+
+# 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 DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \$shlibpath_var if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute
+
+# 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
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# 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
+
+# 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
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds
+
+# Commands necessary for finishing linking programs.
+postlink_cmds=$lt_postlink_cmds
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# The directories searched by this compiler when creating a shared library.
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
+
+# Dependencies to place before and after the objects being linked to
+# create a shared library.
+predep_objects=$lt_predep_objects
+postdep_objects=$lt_postdep_objects
+predeps=$lt_predeps
+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
+
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ cat <<'_LT_EOF' >> "$cfgfile"
+
+# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
+
+# func_munge_path_list VARIABLE PATH
+# -----------------------------------
+# VARIABLE is name of variable containing _space_ separated list of
+# directories to be munged by the contents of PATH, which is string
+# having a format:
+# "DIR[:DIR]:"
+# string "DIR[ DIR]" will be prepended to VARIABLE
+# ":DIR[:DIR]"
+# string "DIR[ DIR]" will be appended to VARIABLE
+# "DIRP[:DIRP]::[DIRA:]DIRA"
+# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
+# "DIRA[ DIRA]" will be appended to VARIABLE
+# "DIR[:DIR]"
+# VARIABLE will be replaced by "DIR[ DIR]"
+func_munge_path_list ()
+{
+ case x$2 in
+ x)
+ ;;
+ *:)
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
+ ;;
+ x:*)
+ eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
+ ;;
+ *::*)
+ eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
+ eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
+ ;;
+ *)
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
+ ;;
+ esac
+}
+
+
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+func_cc_basename ()
+{
+ for cc_temp in $*""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+ done
+ func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+}
+
+
+# ### END FUNCTIONS SHARED WITH CONFIGURE
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_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 set != "${COLLECT_NAMES+set}"; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+
+
+ltmain=$ac_aux_dir/ltmain.sh
+
+
+ # 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"
+
+
+ cat <<_LT_EOF >> "$ofile"
+
+# ### BEGIN LIBTOOL TAG CONFIG: CXX
+
+# The linker used to build libraries.
+LD=$lt_LD_CXX
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag_CXX
+reload_cmds=$lt_reload_cmds_CXX
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds_CXX
+
+# A language specific compiler.
+CC=$lt_compiler_CXX
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC_CXX
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_CXX
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_CXX
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_CXX
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
+
+# 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
+
+# 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
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object_CXX
+
+# 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 a shared archive.
+archive_cmds=$lt_archive_cmds_CXX
+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds_CXX
+module_expsym_cmds=$lt_module_expsym_cmds_CXX
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld_CXX
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_CXX
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_CXX
+
+# 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
+
+# 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 DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \$shlibpath_var if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute_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
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath_CXX
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_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
+
+# 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
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds_CXX
+
+# Commands necessary for finishing linking programs.
+postlink_cmds=$lt_postlink_cmds_CXX
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec_CXX
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_CXX
+
+# The directories searched by this compiler when creating a shared library.
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
+
+# Dependencies to place before and after the objects being linked to
+# create a shared library.
+predep_objects=$lt_predep_objects_CXX
+postdep_objects=$lt_postdep_objects_CXX
+predeps=$lt_predeps_CXX
+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
+
+# ### END LIBTOOL TAG CONFIG: CXX
+_LT_EOF
+
+
+as_fn_exit 0
+_LTEOF
+chmod +x "$CONFIG_LT"
+
+# configure is writing to config.log, but config.lt does its own redirection,
+# appending to config.log, which fails on DOS, as config.log is still kept
+# open by configure. Here we exec the FD to /dev/null, effectively closing
+# config.log, so it can be properly (re)opened and appended to by config.lt.
+lt_cl_success=:
+test yes = "$silent" &&
+ lt_config_lt_args="$lt_config_lt_args --quiet"
+exec 5>/dev/null
+$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
+exec 5>>config.log
+$lt_cl_success || as_fn_exit 1
+
+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_link="./libtool --mode=link --tag=CC $ac_link"
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_PKG_CONFIG+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$PKG_CONFIG"; then
+ ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
+printf "%s\n" "$PKG_CONFIG" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_PKG_CONFIG"; then
+ ac_ct_PKG_CONFIG=$PKG_CONFIG
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_PKG_CONFIG"; then
+ ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
+if test -n "$ac_ct_PKG_CONFIG"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
+printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_PKG_CONFIG" = x; then
+ PKG_CONFIG="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ PKG_CONFIG=$ac_ct_PKG_CONFIG
+ fi
+else
+ PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
+fi
+
+##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
+echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=kpathsea, libname=kpathsea, options=lt, tlincl=-IBLD/texk -ISRC/texk, tllib=BLD/texk/kpathsea/libkpathsea.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../kpathsea/*.[ch], rebuildblddeps=${top_builddir}/../kpathsea/paths.h.' >&5
+##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
+
+# Check whether --with-system-kpathsea was given.
+if test ${with_system_kpathsea+y}
+then :
+ withval=$with_system_kpathsea;
+fi
+if test "x$with_system_kpathsea" = xyes; then
+ if $PKG_CONFIG kpathsea; then
+ KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
+ KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
+elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
+ as_fn_error $? "did not find kpathsea" "$LINENO" 5
+fi
+else
+ KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
+ KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
+ KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
+ KPATHSEA_RULE='# Rebuild libkpathsea
+$(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
+ cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
+${top_builddir}/../kpathsea/paths.h:
+ cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
+printf %s "checking if libkpathsea supports debugging... " >&6; }
+if test ${kpse_cv_kpse_debug+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
+eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <kpathsea/kpathsea.h>
+int
+main (void)
+{
+FILE *f = fopen("f", "r")
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ kpse_cv_kpse_debug=yes
+else $as_nop
+ kpse_cv_kpse_debug=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ CPPFLAGS=$kpse_save_CPPFLAGS
+LIBS=$kpse_save_LIBS
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
+printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
+if test "x$kpse_cv_kpse_debug" != xyes
+then :
+ KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
+fi
+
+kpse_search_save_LIBS=$LIBS
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
+printf %s "checking for library containing pthread_create... " >&6; }
+if test ${ac_cv_search_pthread_create+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char pthread_create ();
+int
+main (void)
+{
+return pthread_create ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' pthread
+do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_search_pthread_create=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext
+ if test ${ac_cv_search_pthread_create+y}
+then :
+ break
+fi
+done
+if test ${ac_cv_search_pthread_create+y}
+then :
+
+else $as_nop
+ ac_cv_search_pthread_create=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
+printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
+ac_res=$ac_cv_search_pthread_create
+if test "$ac_res" != no
+then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+LIBS=$kpse_search_save_LIBS
+case $ac_cv_search_pthread_create in #(
+ "none required") :
+ ;; #(
+ no) :
+ as_fn_error $? "Sorry, did not find pthread_create()" "$LINENO" 5 ;; #(
+ *) :
+ PTHREAD_LIB=$ac_cv_search_pthread_create ;;
+esac
+
+echo 'tldbg:KPSE_ICU_FLAGS called: more-icu-libs=icuio icui18n, icu-config-args=--ldflags-icuio.' >&5
+##tldbg _KPSE_LIB_FLAGS: Setup icu (-licuxxx) flags.
+echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=icu, libname=icuxxx, options=, tlincl=-DU_STATIC_IMPLEMENTATION -IBLD/libs/icu/include, tllib=BLD/libs/icu/icu-build/lib/libicuio.a BLD/libs/icu/icu-build/lib/libicui18n.a BLD/libs/icu/icu-build/lib/libicuuc.a BLD/libs/icu/icu-build/lib/libicudata.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/icu/include/unicode/uversion.h.' >&5
+##tldbg _KPSE_LIB_FLAGS_TL: icu (icuxxx) .
+
+# Check whether --with-system-icu was given.
+if test ${with_system_icu+y}
+then :
+ withval=$with_system_icu;
+fi
+if test "x$with_system_icu" = xyes; then
+ echo 'tldbg:KPSE_ICU_SYSTEM_FLAGS called.' >&5
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}icu-config; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ICU_CONFIG+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ICU_CONFIG"; then
+ ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
+if test -n "$ICU_CONFIG"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
+printf "%s\n" "$ICU_CONFIG" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_ICU_CONFIG"; then
+ ac_ct_ICU_CONFIG=$ICU_CONFIG
+ # Extract the first word of "icu-config", so it can be a program name with args.
+set dummy icu-config; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_ICU_CONFIG+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_ICU_CONFIG"; then
+ ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
+if test -n "$ac_ct_ICU_CONFIG"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
+printf "%s\n" "$ac_ct_ICU_CONFIG" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_ICU_CONFIG" = x; then
+ ICU_CONFIG="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ ICU_CONFIG=$ac_ct_ICU_CONFIG
+ fi
+else
+ ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
+fi
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_PKG_CONFIG+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$PKG_CONFIG"; then
+ ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
+printf "%s\n" "$PKG_CONFIG" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_PKG_CONFIG"; then
+ ac_ct_PKG_CONFIG=$PKG_CONFIG
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_PKG_CONFIG"; then
+ ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
+if test -n "$ac_ct_PKG_CONFIG"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
+printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_PKG_CONFIG" = x; then
+ PKG_CONFIG="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ PKG_CONFIG=$ac_ct_PKG_CONFIG
+ fi
+else
+ PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
+fi
+if $ICU_CONFIG --version >/dev/null 2>&1; then
+ ICU_INCLUDES=`$ICU_CONFIG --cppflags`
+ ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-icuio --ldflags-libsonly --ldflags-system`
+elif $PKG_CONFIG --libs icu-uc icu-io >/dev/null 2>&1; then
+ ICU_INCLUDES=`$PKG_CONFIG --cflags icu-uc icu-io`
+ ICU_LIBS=`$PKG_CONFIG --libs icu-uc icu-io`
+elif test "x$need_icu:$with_system_icu" = xyes:yes; then
+ as_fn_error $? "did not find either pkg-config or icu-config; one is required for system icu library support" "$LINENO" 5
+fi
+else
+ ICU_INCLUDES="-DU_STATIC_IMPLEMENTATION -I$kpse_BLD/libs/icu/include"
+ ICU_LIBS="$kpse_BLD/libs/icu/icu-build/lib/libicuio.a $kpse_BLD/libs/icu/icu-build/lib/libicui18n.a $kpse_BLD/libs/icu/icu-build/lib/libicuuc.a $kpse_BLD/libs/icu/icu-build/lib/libicudata.a"
+ ICU_DEPEND='${top_builddir}/../../libs/icu/icu-build/lib/libicuio.a ${top_builddir}/../../libs/icu/icu-build/lib/libicui18n.a ${top_builddir}/../../libs/icu/icu-build/lib/libicuuc.a ${top_builddir}/../../libs/icu/icu-build/lib/libicudata.a'
+ ICU_RULE='# Rebuild libicuxxx
+$(ICU_DEPEND): ${top_builddir}/../../libs/icu/include/unicode/uversion.h
+ cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild
+${top_builddir}/../../libs/icu/include/unicode/uversion.h:
+ cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild'
+fi
+# checking for openbsd to add -lpthread for icu.
+case $build_os in
+openbsd*)
+ eval ICUXXX_LIBS=\"$ICUXXX_LIBS -lpthread\"
+ ;;
+esac
+
+fi
+
+ if test "x$enable_bibtex8" != xno; then
+ BIBTEX8_TRUE=
+ BIBTEX8_FALSE='#'
+else
+ BIBTEX8_TRUE='#'
+ BIBTEX8_FALSE=
+fi
+
+ if test "x$enable_bibtexu" != xno; then
+ BIBTEXU_TRUE=
+ BIBTEXU_FALSE='#'
+else
+ BIBTEXU_TRUE='#'
+ BIBTEXU_FALSE=
+fi
+
+
+ac_config_files="$ac_config_files Makefile"
+
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `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"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ if test "x$cache_file" != "x/dev/null"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+U=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
+printf %s "checking that generated files are newer than configure... " >&6; }
+ if test -n "$am_sleep_pid"; then
+ # Hide warnings about reused PIDs.
+ wait $am_sleep_pid 2>/dev/null
+ fi
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
+printf "%s\n" "done" >&6; }
+ if test -n "$EXEEXT"; then
+ am__EXEEXT_TRUE=
+ am__EXEEXT_FALSE='#'
+else
+ am__EXEEXT_TRUE='#'
+ am__EXEEXT_FALSE=
+fi
+
+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
+ as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+ as_fn_error $? "conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+ as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
+ as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${BIBTEX8_TRUE}" && test -z "${BIBTEX8_FALSE}"; then
+ as_fn_error $? "conditional \"BIBTEX8\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${BIBTEXU_TRUE}" && test -z "${BIBTEXU_FALSE}"; then
+ as_fn_error $? "conditional \"BIBTEXU\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+
+: "${CONFIG_STATUS=./config.status}"
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+as_nop=:
+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
+then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else $as_nop
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+
+# Reset variables that may have inherited troublesome values from
+# the environment.
+
+# IFS needs to be set, to space, tab, and newline, in precisely that order.
+# (If _AS_PATH_WALK were called with IFS unset, it would have the
+# side effect of setting IFS to empty, thus disabling word splitting.)
+# Quoting is to prevent editors from complaining about space-tab.
+as_nl='
+'
+export as_nl
+IFS=" "" $as_nl"
+
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# Ensure predictable behavior from utilities with locale-dependent output.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# We cannot yet rely on "unset" to work, but we need these variables
+# to be unset--not just set to an empty or harmless value--now, to
+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
+# also avoids known problems related to "unset" and subshell syntax
+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
+do eval test \${$as_var+y} \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+
+# Ensure that fds 0, 1, and 2 are open.
+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
+
+# The user is always right.
+if ${PATH_SEPARATOR+false} :; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ printf "%s\n" "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
+then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else $as_nop
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
+then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else $as_nop
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+# Determine whether it's possible to make 'echo' print without a newline.
+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
+# for compatibility with existing Makefiles.
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+# For backward compatibility with old third-party macros, we provide
+# the shell variables $as_echo and $as_echo_n. New code should use
+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
+as_echo='printf %s\n'
+as_echo_n='printf %s'
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+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="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by extended BibTeX (TeX Live) $as_me 4.00, which was
+generated by GNU Autoconf 2.71. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -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
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to <tex-k@tug.org>."
+
+_ACEOF
+ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
+ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config='$ac_cs_config_escaped'
+ac_cs_version="\\
+extended BibTeX (TeX Live) config.status 4.00
+configured by $0, generated by GNU Autoconf 2.71,
+ with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2021 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ printf "%s\n" "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ printf "%s\n" "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+ --help | --hel | -h )
+ printf "%s\n" "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ printf "%s\n" "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
+
+
+# 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
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
+macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
+AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
+OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
+enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
+enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
+pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
+enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
+shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
+SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
+ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
+PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
+host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
+host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
+host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
+build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
+build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
+build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
+SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
+Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
+GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
+EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
+FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
+LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
+NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
+LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
+max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
+ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
+exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
+lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
+lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
+lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
+reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
+reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
+deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
+file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
+AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
+AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
+STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
+RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
+old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
+lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
+CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
+CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
+compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
+GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
+lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
+lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
+objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
+MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
+need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
+DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
+NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
+LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
+OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
+OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
+libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
+shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
+extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
+export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
+whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
+compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
+old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
+archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
+module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
+allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
+no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
+hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
+hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
+hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
+hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
+inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
+link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
+always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
+export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
+exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
+include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
+prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
+file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
+variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
+need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
+need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
+version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
+runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
+libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
+library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
+soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
+install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
+postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
+finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
+hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
+sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
+configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
+configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
+hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
+enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
+old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
+striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
+predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
+postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
+predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
+postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
+LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
+reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
+reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
+GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
+archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
+export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
+allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
+no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
+inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
+link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
+always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
+export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
+include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
+prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
+predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
+postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
+predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
+postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
+
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+ eval 'cat <<_LTECHO_EOF
+\$1
+_LTECHO_EOF'
+}
+
+# Quote evaled strings.
+for var in AS \
+DLLTOOL \
+OBJDUMP \
+SHELL \
+ECHO \
+PATH_SEPARATOR \
+SED \
+GREP \
+EGREP \
+FGREP \
+LD \
+NM \
+LN_S \
+lt_SP2NL \
+lt_NL2SP \
+reload_flag \
+deplibs_check_method \
+file_magic_cmd \
+file_magic_glob \
+want_nocaseglob \
+sharedlib_from_linklib_cmd \
+AR \
+AR_FLAGS \
+archiver_list_spec \
+STRIP \
+RANLIB \
+CC \
+CFLAGS \
+compiler \
+lt_cv_sys_global_symbol_pipe \
+lt_cv_sys_global_symbol_to_cdecl \
+lt_cv_sys_global_symbol_to_import \
+lt_cv_sys_global_symbol_to_c_name_address \
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
+lt_cv_nm_interface \
+nm_file_list_spec \
+lt_cv_truncate_bin \
+lt_prog_compiler_no_builtin_flag \
+lt_prog_compiler_pic \
+lt_prog_compiler_wl \
+lt_prog_compiler_static \
+lt_cv_prog_compiler_c_o \
+need_locks \
+MANIFEST_TOOL \
+DSYMUTIL \
+NMEDIT \
+LIPO \
+OTOOL \
+OTOOL64 \
+shrext_cmds \
+export_dynamic_flag_spec \
+whole_archive_flag_spec \
+compiler_needs_object \
+with_gnu_ld \
+allow_undefined_flag \
+no_undefined_flag \
+hardcode_libdir_flag_spec \
+hardcode_libdir_separator \
+exclude_expsyms \
+include_expsyms \
+file_list_spec \
+variables_saved_for_relink \
+libname_spec \
+library_names_spec \
+soname_spec \
+install_override_mode \
+finish_eval \
+old_striplib \
+striplib \
+compiler_lib_search_dirs \
+predep_objects \
+postdep_objects \
+predeps \
+postdeps \
+compiler_lib_search_path \
+LD_CXX \
+reload_flag_CXX \
+compiler_CXX \
+lt_prog_compiler_no_builtin_flag_CXX \
+lt_prog_compiler_pic_CXX \
+lt_prog_compiler_wl_CXX \
+lt_prog_compiler_static_CXX \
+lt_cv_prog_compiler_c_o_CXX \
+export_dynamic_flag_spec_CXX \
+whole_archive_flag_spec_CXX \
+compiler_needs_object_CXX \
+with_gnu_ld_CXX \
+allow_undefined_flag_CXX \
+no_undefined_flag_CXX \
+hardcode_libdir_flag_spec_CXX \
+hardcode_libdir_separator_CXX \
+exclude_expsyms_CXX \
+include_expsyms_CXX \
+file_list_spec_CXX \
+compiler_lib_search_dirs_CXX \
+predep_objects_CXX \
+postdep_objects_CXX \
+predeps_CXX \
+postdeps_CXX \
+compiler_lib_search_path_CXX; do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in reload_cmds \
+old_postinstall_cmds \
+old_postuninstall_cmds \
+old_archive_cmds \
+extract_expsyms_cmds \
+old_archive_from_new_cmds \
+old_archive_from_expsyms_cmds \
+archive_cmds \
+archive_expsym_cmds \
+module_cmds \
+module_expsym_cmds \
+export_symbols_cmds \
+prelink_cmds \
+postlink_cmds \
+postinstall_cmds \
+postuninstall_cmds \
+finish_cmds \
+sys_lib_search_path_spec \
+configure_time_dlsearch_path \
+configure_time_lt_sys_library_path \
+reload_cmds_CXX \
+old_archive_cmds_CXX \
+old_archive_from_new_cmds_CXX \
+old_archive_from_expsyms_cmds_CXX \
+archive_cmds_CXX \
+archive_expsym_cmds_CXX \
+module_cmds_CXX \
+module_expsym_cmds_CXX \
+export_symbols_cmds_CXX \
+prelink_cmds_CXX \
+postlink_cmds_CXX; do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+ac_aux_dir='$ac_aux_dir'
+
+# See if we are running on zsh, and set the options that allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}"; then
+ setopt NO_GLOB_SUBST
+fi
+
+
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ RM='$RM'
+ ofile='$ofile'
+
+
+
+ac_aux_dir='$ac_aux_dir'
+
+
+cxxld_sh='$cxxld_sh'
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "CXXLD.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS CXXLD.sh" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
+ test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
+ test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
+# 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[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_tt"; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$ac_tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+printf "%s\n" "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`printf "%s\n" "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&2;}
+
+ rm -f "$ac_tmp/stdin"
+ case $ac_file in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ printf "%s\n" "/* $configure_input */" >&1 \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+ } >"$ac_tmp/config.h" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$ac_tmp/config.h" "$ac_file" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ fi
+ else
+ printf "%s\n" "/* $configure_input */" >&1 \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error $? "could not create -" "$LINENO" 5
+ fi
+# Compute "$ac_file"'s index in $config_headers.
+_am_arg="$ac_file"
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
+ X"$_am_arg" : 'X\(//\)$' \| \
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$_am_arg" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`/stamp-h$_am_stamp_count
+ ;;
+
+ :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
+printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
+
+
+ case $ac_file$ac_mode in
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
+ # Older Autoconf quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ # TODO: see whether this extra hack can be removed once we start
+ # requiring Autoconf 2.70 or later.
+ case $CONFIG_FILES in #(
+ *\'*) :
+ eval set x "$CONFIG_FILES" ;; #(
+ *) :
+ set x $CONFIG_FILES ;; #(
+ *) :
+ ;;
+esac
+ shift
+ # Used to flag and report bootstrapping failures.
+ am_rc=0
+ for am_mf
+ do
+ # Strip MF so we end up with the name of the file.
+ am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile which includes
+ # dependency-tracking related rules and includes.
+ # Grep'ing the whole file directly is not great: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
+ || continue
+ am_dirpart=`$as_dirname -- "$am_mf" ||
+$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$am_mf" : 'X\(//\)[^/]' \| \
+ X"$am_mf" : 'X\(//\)$' \| \
+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$am_mf" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ am_filepart=`$as_basename -- "$am_mf" ||
+$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$am_mf" : 'X\(//\)$' \| \
+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X/"$am_mf" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ { echo "$as_me:$LINENO: cd "$am_dirpart" \
+ && sed -e '/# am--include-marker/d' "$am_filepart" \
+ | $MAKE -f - am--depfiles" >&5
+ (cd "$am_dirpart" \
+ && sed -e '/# am--include-marker/d' "$am_filepart" \
+ | $MAKE -f - am--depfiles) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } || am_rc=$?
+ done
+ if test $am_rc -ne 0; then
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "Something went wrong bootstrapping makefile fragments
+ for automatic dependency tracking. If GNU make was not used, consider
+ re-running the configure script with MAKE=\"gmake\" (or whatever is
+ necessary). You can also try re-running configure with the
+ '--disable-dependency-tracking' option to at least be able to build
+ the package (albeit without support for automatic dependency tracking).
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+ { am_dirpart=; unset am_dirpart;}
+ { am_filepart=; unset am_filepart;}
+ { am_mf=; unset am_mf;}
+ { am_rc=; unset am_rc;}
+ rm -f conftest-deps.mk
+}
+ ;;
+ "libtool":C)
+
+ # See if we are running on zsh, and set the options that allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}"; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile=${ofile}T
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+# Generated automatically by $as_me ($PACKAGE) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+
+# Provide generalized library-building support services.
+# Written by Gordon Matzigkeit, 1996
+
+# Copyright (C) 2014 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool 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 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program or library that is built
+# using GNU Libtool, you may include this file under the same
+# distribution terms that you use for the rest of that program.
+#
+# GNU Libtool 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, see <http://www.gnu.org/licenses/>.
+
+
+# The names of the tagged configurations supported by this script.
+available_tags='CXX '
+
+# Configured defaults for sys_lib_dlsearch_path munging.
+: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Which release of libtool.m4 was used?
+macro_version=$macro_version
+macro_revision=$macro_revision
+
+# Assembler program.
+AS=$lt_AS
+
+# DLL creation program.
+DLLTOOL=$lt_DLLTOOL
+
+# Object dumper program.
+OBJDUMP=$lt_OBJDUMP
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# What type of objects to build.
+pic_mode=$pic_mode
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# Shared archive member basename,for filename based shared library versioning on AIX.
+shared_archive_member_spec=$shared_archive_member_spec
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# An echo program that protects backslashes.
+ECHO=$lt_ECHO
+
+# The PATH separator for the build system.
+PATH_SEPARATOR=$lt_PATH_SEPARATOR
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# 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 1s/^X//"
+
+# A grep program that handles long lines.
+GREP=$lt_GREP
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# A literal string matcher.
+FGREP=$lt_FGREP
+
+# A BSD- or MS-compatible name lister.
+NM=$lt_NM
+
+# Whether we need soft or hard links.
+LN_S=$lt_LN_S
+
+# What is the maximum length of a command?
+max_cmd_len=$max_cmd_len
+
+# Object file suffix (normally "o").
+objext=$ac_objext
+
+# Executable file suffix (normally "").
+exeext=$exeext
+
+# whether the shell understands "unset".
+lt_unset=$lt_unset
+
+# turn spaces into newlines.
+SP2NL=$lt_lt_SP2NL
+
+# turn newlines into spaces.
+NL2SP=$lt_lt_NL2SP
+
+# convert \$build file names to \$host format.
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+
+# convert \$build files to toolchain format.
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+
+# 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
+
+# How to find potential files when deplibs_check_method = "file_magic".
+file_magic_glob=$lt_file_magic_glob
+
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
+want_nocaseglob=$lt_want_nocaseglob
+
+# Command to associate shared and link libraries.
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
+
+# The archiver.
+AR=$lt_AR
+
+# Flags to create an archive.
+AR_FLAGS=$lt_AR_FLAGS
+
+# How to feed a file listing to the archiver.
+archiver_list_spec=$lt_archiver_list_spec
+
+# A symbol stripping program.
+STRIP=$lt_STRIP
+
+# Commands used to install an old-style archive.
+RANLIB=$lt_RANLIB
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Whether to use a lock for old archive extraction.
+lock_old_archive_extraction=$lock_old_archive_extraction
+
+# A C compiler.
+LTCC=$lt_CC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_CFLAGS
+
+# 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 into a list of symbols to manually relocate.
+global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
+
+# 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
+
+# Transform the output of nm in a C name address pair when lib prefix is needed.
+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
+
+# The name lister interface.
+nm_interface=$lt_lt_cv_nm_interface
+
+# Specify filename containing input files for \$NM.
+nm_file_list_spec=$lt_nm_file_list_spec
+
+# The root where to search for dependent libraries,and where our libraries should be installed.
+lt_sysroot=$lt_sysroot
+
+# Command to truncate a binary pipe.
+lt_truncate_bin=$lt_lt_cv_truncate_bin
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# Used to examine libraries when file_magic_cmd begins with "file".
+MAGIC_CMD=$MAGIC_CMD
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Manifest tool.
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
+
+# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
+DSYMUTIL=$lt_DSYMUTIL
+
+# Tool to change global to local symbols on Mac OS X.
+NMEDIT=$lt_NMEDIT
+
+# Tool to manipulate fat objects and archives on Mac OS X.
+LIPO=$lt_LIPO
+
+# ldd/readelf like tool for Mach-O binaries on Mac OS X.
+OTOOL=$lt_OTOOL
+
+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
+OTOOL64=$lt_OTOOL64
+
+# Old archive suffix (normally "a").
+libext=$libext
+
+# Shared library suffix (normally ".so").
+shrext_cmds=$lt_shrext_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at link time.
+variables_saved_for_relink=$lt_variables_saved_for_relink
+
+# 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
+
+# Library versioning type.
+version_type=$version_type
+
+# Shared library runtime path variable.
+runpath_var=$runpath_var
+
+# Shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# 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
+
+# Permission mode override for installation of shared libraries.
+install_override_mode=$lt_install_override_mode
+
+# Command to use after installation of a shared archive.
+postinstall_cmds=$lt_postinstall_cmds
+
+# Command to use after uninstallation of a shared archive.
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# As "finish_cmds", except a single script fragment to be evaled but
+# not shown.
+finish_eval=$lt_finish_eval
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Compile-time system search path for libraries.
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Detected run-time system search path for libraries.
+sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
+
+# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
+configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
+
+# 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
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds
+
+# A language specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# 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
+
+# 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
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object
+
+# 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 a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# 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
+
+# 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 DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \$shlibpath_var if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute
+
+# 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
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# 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
+
+# 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
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds
+
+# Commands necessary for finishing linking programs.
+postlink_cmds=$lt_postlink_cmds
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# The directories searched by this compiler when creating a shared library.
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
+
+# Dependencies to place before and after the objects being linked to
+# create a shared library.
+predep_objects=$lt_predep_objects
+postdep_objects=$lt_postdep_objects
+predeps=$lt_predeps
+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
+
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ cat <<'_LT_EOF' >> "$cfgfile"
+
+# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
+
+# func_munge_path_list VARIABLE PATH
+# -----------------------------------
+# VARIABLE is name of variable containing _space_ separated list of
+# directories to be munged by the contents of PATH, which is string
+# having a format:
+# "DIR[:DIR]:"
+# string "DIR[ DIR]" will be prepended to VARIABLE
+# ":DIR[:DIR]"
+# string "DIR[ DIR]" will be appended to VARIABLE
+# "DIRP[:DIRP]::[DIRA:]DIRA"
+# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
+# "DIRA[ DIRA]" will be appended to VARIABLE
+# "DIR[:DIR]"
+# VARIABLE will be replaced by "DIR[ DIR]"
+func_munge_path_list ()
+{
+ case x$2 in
+ x)
+ ;;
+ *:)
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
+ ;;
+ x:*)
+ eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
+ ;;
+ *::*)
+ eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
+ eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
+ ;;
+ *)
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
+ ;;
+ esac
+}
+
+
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+func_cc_basename ()
+{
+ for cc_temp in $*""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+ done
+ func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+}
+
+
+# ### END FUNCTIONS SHARED WITH CONFIGURE
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_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 set != "${COLLECT_NAMES+set}"; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+
+
+ltmain=$ac_aux_dir/ltmain.sh
+
+
+ # 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"
+
+
+ cat <<_LT_EOF >> "$ofile"
+
+# ### BEGIN LIBTOOL TAG CONFIG: CXX
+
+# The linker used to build libraries.
+LD=$lt_LD_CXX
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag_CXX
+reload_cmds=$lt_reload_cmds_CXX
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds_CXX
+
+# A language specific compiler.
+CC=$lt_compiler_CXX
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC_CXX
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_CXX
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_CXX
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_CXX
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
+
+# 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
+
+# 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
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object_CXX
+
+# 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 a shared archive.
+archive_cmds=$lt_archive_cmds_CXX
+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds_CXX
+module_expsym_cmds=$lt_module_expsym_cmds_CXX
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld_CXX
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_CXX
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_CXX
+
+# 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
+
+# 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 DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \$shlibpath_var if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute_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
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath_CXX
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_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
+
+# 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
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds_CXX
+
+# Commands necessary for finishing linking programs.
+postlink_cmds=$lt_postlink_cmds_CXX
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec_CXX
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_CXX
+
+# The directories searched by this compiler when creating a shared library.
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
+
+# Dependencies to place before and after the objects being linked to
+# create a shared library.
+predep_objects=$lt_predep_objects_CXX
+postdep_objects=$lt_postdep_objects_CXX
+predeps=$lt_predeps_CXX
+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
+
+# ### END LIBTOOL TAG CONFIG: CXX
+_LT_EOF
+
+ ;;
+ "CXXLD.sh":C) echo "$cxxld_sh" >CXXLD.sh; chmod +x CXXLD.sh ;;
+
+ esac
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || as_fn_exit 1
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
+
diff --git a/biblio/bibtex/bibtex-x/csf/88591lat.csf b/biblio/bibtex/bibtex-x/csf/88591lat.csf
new file mode 100644
index 0000000000..0d324057f4
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/88591lat.csf
@@ -0,0 +1,313 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE: $RCSfile: 88591lat.csf,v $
+%% $Revision: 1.1 $
+%% $Date: 1996/08/04 20:48:15 $
+%%
+%% CHARACTER SET: ISO 8859-1
+%%
+%% ISO 8859-1 is the system character set used by Unix/X Windows and
+%% MS Windows.
+%%
+%% SORTING ORDER: Latin countries
+%%
+%% Alphabetical sorting order of Aa..Zz (including accented characters).
+%%
+%% WARNING
+%%
+%% This is a BibTeX Codepage and Sort definition file (CSF). It is
+%% used to define the 8-bit character set used by BibTeX and the
+%% order in which those characters should be sorted. The file
+%% format is documented below this header section.
+%%
+%% This file will only work with the 8-bit implementation of BibTeX
+%% written by Niel Kempson and Alejandro Aguilar-Sierra. It is
+%% available by anonymous FTP from these Comprehensive TeX Archive
+%% Network (CTAN) sites:
+%%
+%% ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+%% ftp.shsu.edu:/tex-archive/biblio/bibtex/8-bit
+%% ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+%%
+%% CHANGE LOG
+%%
+%% $Log: 88591lat.csf,v $
+%% Revision 1.1 1996/08/04 20:48:15 kempson
+%% Added missing sort entries for 0..9 and 'd'.
+%%
+%% Revision 1.0 1995/10/21 22:10:28 kempson
+%% Placed under RCS control
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE FORMAT
+%%
+%% The codepage and sorting order (CS) file defines how BibTeX will treat an
+%% 8-bit character set, specifically which characters are to be treated as
+%% letters, the upper/lower case relationships between characters, and the
+%% sorting order of characters.
+%%
+%% The CS file may contain a number of sections, each presented in the
+%% form of a TeX macro:
+%%
+%% \section-name{
+%% <section definitions>
+%% }
+%%
+%% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+%% and \order. The syntax of the four supported sections is summarised below.
+%%
+%% 8-bit characters may be entered naturally, but to avoid problems with
+%% character set translation or corruption, they can also be entered using
+%% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+%% is the hexadecimal value ofthe character code.
+%%
+%% Reading of the sections ends when the first '}' character is reached, so
+%% '}' can't be included in a section. You can't use ^^7d either.
+%%
+%% The percent sign ('%') is used to introduce a trailing comment - it and
+%% all remaining characters on a line are ignored. ^^25 has the same effect.
+%%
+%%
+%% \lowupcase section
+%%
+%% The \lowupcase section of the CS file is used to define the lower
+%% /upper and upper/lower case relationship of pairs of specified
+%% characters. It is only used if the relationship is symmetrical - use
+%% \lowercase or \upcase if it isn't.
+%%
+%% The syntax of the \lowupcase section is:
+%%
+%% \lowupcase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+%% <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower or upper case equivalent of an ASCII
+%% character (code < 128), so all instances of <LC-n> and <UC-n>
+%% (i.e. both sides of the relationship) must have codes > 127.
+%%
+%%
+%% \lowercase section
+%%
+%% The \lowercase section of the CS file is used to define the lower case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \lowercase section is:
+%%
+%% \lowercase{
+%% <UC-1> <LC-1> % Comment begins with a percent sign
+%% <UC-2> <LC-2>
+%% ...
+%% <UC-N> <LC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the lower case
+%% equivalent of <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower case equivalent of an ASCII character
+%% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \uppercase section
+%%
+%% The \uppercase section of the CS file is used to define the upper case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \uppercase section is:
+%%
+%% \uppercase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% case equivalent of <LC-n> is <UC-n>.
+%%
+%% You cannot redefine the upper case equivalent of an ASCII character
+%% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \order section
+%%
+%% The \order section of the CS file is used to define the order in which
+%% characters are sorted.
+%%
+%% The syntax of the \order section is:
+%%
+%% \order{
+%% <char-1> % Comment begins with a percent sign
+%% <char-2> <char-3> % whitespace between the chars
+%% <char-4> - <char-5> % a hyphen between the chars
+%% <char-4> _ <char-5> % an underscore between the chars
+%% ...
+%% <char-n>
+%% }
+%%
+%% All characters on the same line are given the same sorting weight.
+%%
+%% The construct <char-1> <underscore> <char-2> is used to denote that
+%% all characters in the range <char-1> to <char-2> should be given the
+%% same sorting weight. For example, "A _ Z" would cause all ASCII
+%% upper case alphabetical characters to have the same sorting weight
+%% and would be equivalent to placing all 26 characters on the same line.
+%%
+%% The construct <char-1> <hyphen> <char-2> is used to denote that all
+%% characters in the range <char-1> to <char-2> should be given an
+%% ascending set of sorting weights, starting with <char-1> and ending
+%% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+%% alphabetical characters to be sorted in ascending order and would be
+%% equivalent to placing 'A' on the first line, 'B' on the second,
+%% through to 'Z' on the 26th line.
+%%
+%% The characters at the beginning of the order section are given a lower
+%% sorting weight than characters occuring later. When sorting
+%% alphabetically, characters with the lowest weight come first.
+%%
+%% All characters not in the \order section (including ASCII characters)
+%% are given the same very high sorting weight to ensure that they come
+%% last when sorting alphabetically.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%
+%% CHARACTER SET
+%%
+%% The ISO 8859-1 code page contains an equal number of upper and lower
+%% case accented characters so we can use the \lowupcase{} section. The
+%% \lowercase{} and \uppercase{} sections are not used.
+%%
+\lowupcase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ à À % ^^e0 \`{a} ^^c0 \`{A}
+ á Á % ^^e1 \'{a} ^^c1 \'{A}
+ â Â % ^^e2 \^{a} ^^c2 \^{A}
+ ã Ã % ^^e3 \~{a} ^^c3 \~{A}
+ ä Ä % ^^e4 \"{a} ^^c4 \"{A}
+ å Å % ^^e5 \aa ^^c5 \AA
+ æ Æ % ^^e6 \ae ^^c6 \AE
+ ç Ç % ^^e7 \c{c} ^^c7 \c{C}
+ è È % ^^e8 \`{e} ^^c8 \`{E}
+ é É % ^^e9 \'{e} ^^c9 \'{E}
+ ê Ê % ^^ea \^{e} ^^ca \^{E}
+ ë Ë % ^^eb \"{e} ^^cb \"{E}
+ ì Ì % ^^ec \`{\i} ^^cc \`{I}
+ í Í % ^^ed \'{\i} ^^cd \'{I}
+ î Î % ^^ee \^{\i} ^^ce \^{I}
+ ï Ï % ^^ef \"{\i} ^^cf \"{I}
+ ð Ð % ^^f0 eth ^^d0 ETH
+ ñ Ñ % ^^f1 \~{n} ^^d1 \~{N}
+ ò Ò % ^^f2 \`{o} ^^d2 \`{O}
+ ó Ó % ^^f3 \'{o} ^^d3 \'{O}
+ ô Ô % ^^f4 \^{o} ^^d4 \^{O}
+ õ Õ % ^^f5 \~{o} ^^d5 \~{O}
+ ö Ö % ^^f6 \"{o} ^^d6 \"{O}
+ ø Ø % ^^f8 \o ^^d8 \O
+ ù Ù % ^^f9 \`{u} ^^d9 \`{U}
+ ú Ú % ^^fa \'{u} ^^da \'{U}
+ û Û % ^^fb \^{u} ^^db \^{U}
+ ü Ü % ^^fc \"{u} ^^dc \"{U}
+ ý Ý % ^^fd \'{y} ^^dd \'{Y}
+ þ Þ % ^^fe thorn ^^de THORN
+}
+
+
+
+%%
+%% SORTING ORDER
+%%
+%% The sorting order defined is the natural language sorting order
+%% of 0..9Aa..Zz (including accented characters).
+%%
+\order{
+ 0-9
+ %
+ % The next line can be written in full or abbreviated using the "_"
+ % convention. The two equivalent alternatives are:
+ %
+ % A À Á Â Ã Ä Å a à á â ã ä å
+ % A À_Å a à_å
+ %
+ A À Á Â Ã Ä Å a à á â ã ä å
+ B b
+ C Ç c ç
+ D d
+
+ %
+ % The next line can be written in full or abbreviated using the "_"
+ % convention. The two equivalent alternatives are:
+ %
+ % E È É Ê Ë e è é ê ë
+ % E È_Ë e è_ë
+ %
+ E È É Ê Ë e è é ê ë
+ F f
+ G g
+ H h
+
+ %
+ % The next line can be written in full or abbreviated using the "_"
+ % convention. The two equivalent alternatives are:
+ %
+ % I Ì Í Î Ï i ì í î ï
+ % I Ì_Ï i ì_ï
+ %
+ I Ì Í Î Ï i ì í î ï
+ J j
+ K k
+ L l
+ M m
+ N n
+ Ñ ñ
+
+ %
+ % The next line can be written in full or abbreviated using the "_"
+ % convention. The two equivalent alternatives are:
+ %
+ % O Ò Ó Ô Õ Ö o ò ó ô õ ö
+ % O Ò_Ö o ò_ö
+ %
+ O Ò Ó Ô Õ Ö o ò ó ô õ ö
+ P p
+ Q q
+ R r
+ S s
+ T t
+
+ %
+ % The next line can be written in full or abbreviated using the "_"
+ % convention. The two equivalent alternatives are:
+ %
+ % U Ù Ú Û Ü u ù ú û ü
+ % U Ù_Ü u ù_ü
+ %
+ U Ù Ú Û Ü u ù ú û ü
+ V v
+ W w
+ X x
+ Y y
+ Z z
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/csf/88591sca.csf b/biblio/bibtex/bibtex-x/csf/88591sca.csf
new file mode 100644
index 0000000000..b2a524430e
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/88591sca.csf
@@ -0,0 +1,283 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE: $RCSfile: 88591sca.csf,v $
+%% $Revision: 1.1 $
+%% $Date: 1996/08/04 20:48:52 $
+%%
+%% CHARACTER SET: ISO 8859-1
+%%
+%% ISO 8859-1 is the system character set used by Unix/X Windows and
+%% MS Windows.
+%%
+%% SORTING ORDER: Scandinavean countries
+%%
+%% The sorting order defined is a compromise between Norwegian/Danish
+%% and Swedish.
+%%
+%% WARNING
+%%
+%% This is a BibTeX Codepage and Sort definition file (CSF). It is
+%% used to define the 8-bit character set used by BibTeX and the
+%% order in which those characters should be sorted. The file
+%% format is documented below this header section.
+%%
+%% This file will only work with the 8-bit implementation of BibTeX
+%% written by Niel Kempson and Alejandro Aguilar-Sierra. It is
+%% available by anonymous FTP from these Comprehensive TeX Archive
+%% Network (CTAN) sites:
+%%
+%% ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+%% ftp.shsu.edu:/tex-archive/biblio/bibtex/8-bit
+%% ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+%%
+%% CHANGE LOG
+%%
+%% $Log: 88591sca.csf,v $
+%% Revision 1.1 1996/08/04 20:48:52 kempson
+%% Added missing sort entries for 0..9
+%%
+%% Revision 1.0 1995/10/21 22:10:29 kempson
+%% Placed under RCS control
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE FORMAT
+%%
+%% The codepage and sorting order (CS) file defines how BibTeX will treat an
+%% 8-bit character set, specifically which characters are to be treated as
+%% letters, the upper/lower case relationships between characters, and the
+%% sorting order of characters.
+%%
+%% The CS file may contain a number of sections, each presented in the
+%% form of a TeX macro:
+%%
+%% \section-name{
+%% <section definitions>
+%% }
+%%
+%% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+%% and \order. The syntax of the four supported sections is summarised below.
+%%
+%% 8-bit characters may be entered naturally, but to avoid problems with
+%% character set translation or corruption, they can also be entered using
+%% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+%% is the hexadecimal value ofthe character code.
+%%
+%% Reading of the sections ends when the first '}' character is reached, so
+%% '}' can't be included in a section. You can't use ^^7d either.
+%%
+%% The percent sign ('%') is used to introduce a trailing comment - it and
+%% all remaining characters on a line are ignored. ^^25 has the same effect.
+%%
+%%
+%% \lowupcase section
+%%
+%% The \lowupcase section of the CS file is used to define the lower
+%% /upper and upper/lower case relationship of pairs of specified
+%% characters. It is only used if the relationship is symmetrical - use
+%% \lowercase or \upcase if it isn't.
+%%
+%% The syntax of the \lowupcase section is:
+%%
+%% \lowupcase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+%% <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower or upper case equivalent of an ASCII
+%% character (code < 128), so all instances of <LC-n> and <UC-n>
+%% (i.e. both sides of the relationship) must have codes > 127.
+%%
+%%
+%% \lowercase section
+%%
+%% The \lowercase section of the CS file is used to define the lower case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \lowercase section is:
+%%
+%% \lowercase{
+%% <UC-1> <LC-1> % Comment begins with a percent sign
+%% <UC-2> <LC-2>
+%% ...
+%% <UC-N> <LC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the lower case
+%% equivalent of <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower case equivalent of an ASCII character
+%% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \uppercase section
+%%
+%% The \uppercase section of the CS file is used to define the upper case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \uppercase section is:
+%%
+%% \uppercase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% case equivalent of <LC-n> is <UC-n>.
+%%
+%% You cannot redefine the upper case equivalent of an ASCII character
+%% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \order section
+%%
+%% The \order section of the CS file is used to define the order in which
+%% characters are sorted.
+%%
+%% The syntax of the \order section is:
+%%
+%% \order{
+%% <char-1> % Comment begins with a percent sign
+%% <char-2> <char-3> % whitespace between the chars
+%% <char-4> - <char-5> % a hyphen between the chars
+%% <char-4> _ <char-5> % an underscore between the chars
+%% ...
+%% <char-n>
+%% }
+%%
+%% All characters on the same line are given the same sorting weight.
+%%
+%% The construct <char-1> <underscore> <char-2> is used to denote that
+%% all characters in the range <char-1> to <char-2> should be given the
+%% same sorting weight. For example, "A _ Z" would cause all ASCII
+%% upper case alphabetical characters to have the same sorting weight
+%% and would be equivalent to placing all 26 characters on the same line.
+%%
+%% The construct <char-1> <hyphen> <char-2> is used to denote that all
+%% characters in the range <char-1> to <char-2> should be given an
+%% ascending set of sorting weights, starting with <char-1> and ending
+%% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+%% alphabetical characters to be sorted in ascending order and would be
+%% equivalent to placing 'A' on the first line, 'B' on the second,
+%% through to 'Z' on the 26th line.
+%%
+%% The characters at the beginning of the order section are given a lower
+%% sorting weight than characters occuring later. When sorting
+%% alphabetically, characters with the lowest weight come first.
+%%
+%% All characters not in the \order section (including ASCII characters)
+%% are given the same very high sorting weight to ensure that they come
+%% last when sorting alphabetically.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%
+%% CHARACTER SET
+%%
+%% The ISO 8859-1 code page contains an equal number of upper and lower
+%% case accented characters so we can use the \lowupcase{} section. The
+%% \lowercase{} and \uppercase{} sections are not used.
+%%
+\lowupcase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ à À % ^^e0 \`{a} ^^c0 \`{A}
+ á Á % ^^e1 \'{a} ^^c1 \'{A}
+ â Â % ^^e2 \^{a} ^^c2 \^{A}
+ ã Ã % ^^e3 \~{a} ^^c3 \~{A}
+ ä Ä % ^^e4 \"{a} ^^c4 \"{A}
+ å Å % ^^e5 \aa ^^c5 \AA
+ æ Æ % ^^e6 \ae ^^c6 \AE
+ ç Ç % ^^e7 \c{c} ^^c7 \c{C}
+ è È % ^^e8 \`{e} ^^c8 \`{E}
+ é É % ^^e9 \'{e} ^^c9 \'{E}
+ ê Ê % ^^ea \^{e} ^^ca \^{E}
+ ë Ë % ^^eb \"{e} ^^cb \"{E}
+ ì Ì % ^^ec \`{\i} ^^cc \`{I}
+ í Í % ^^ed \'{\i} ^^cd \'{I}
+ î Î % ^^ee \^{\i} ^^ce \^{I}
+ ï Ï % ^^ef \"{\i} ^^cf \"{I}
+ ð Ð % ^^f0 eth ^^d0 ETH
+ ñ Ñ % ^^f1 \~{n} ^^d1 \~{N}
+ ò Ò % ^^f2 \`{o} ^^d2 \`{O}
+ ó Ó % ^^f3 \'{o} ^^d3 \'{O}
+ ô Ô % ^^f4 \^{o} ^^d4 \^{O}
+ õ Õ % ^^f5 \~{o} ^^d5 \~{O}
+ ö Ö % ^^f6 \"{o} ^^d6 \"{O}
+ ø Ø % ^^f8 \o ^^d8 \O
+ ù Ù % ^^f9 \`{u} ^^d9 \`{U}
+ ú Ú % ^^fa \'{u} ^^da \'{U}
+ û Û % ^^fb \^{u} ^^db \^{U}
+ ü Ü % ^^fc \"{u} ^^dc \"{U}
+ ý Ý % ^^fd \'{y} ^^dd \'{Y}
+ þ Þ % ^^fe thorn ^^de THORN
+}
+
+
+
+%%
+%% SORTING ORDER
+%%
+%% The sorting order defined is a compromise between Norwegian/Danish and
+%% Swedish.
+%%
+%% Norwegian/Danish sorting order: 0..9Aa..ZzÆæØøÅå
+%% Swedish sorting order: 0..9Aa..ZzÅåÄäÖö
+%% Compromise sorting order: 0..9Aa..ZzÆæØøÅåÄäÖö
+%%
+\order{
+ 0-9
+ A a
+ B b
+ C c
+ D d
+ E e
+ F f
+ G g
+ H h
+ I i
+ J j
+ K k
+ L l
+ M m
+ N n
+ O o
+ P p
+ Q q
+ R r
+ S s
+ T t
+ U u
+ V v
+ W w
+ X x
+ Y y
+ Z z
+ Æ æ
+ Ø ø
+ Å å
+ Ä ä
+ Ö ö
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/csf/ascii.csf b/biblio/bibtex/bibtex-x/csf/ascii.csf
new file mode 100644
index 0000000000..30c180c023
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/ascii.csf
@@ -0,0 +1,242 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE: $RCSfile: ascii.csf,v $
+%% $Revision: 1.1 $
+%% $Date: 1996/08/04 20:48:52 $
+%%
+%% CHARACTER SET: ASCII only
+%%
+%% No 8-bit characters are defined in this file. BibTeX will not accept
+%% characters with a value >= 128.
+%%
+%% SORTING ORDER: English
+%%
+%% BibTeX's standard sorting order is based simply on the codepage
+%% value of each character, resulting in an alphabetical sorting
+%% order of A..Za..z. We want a "normal" English sorting order of
+%% Aa..Zz.
+%%
+%% WARNING
+%%
+%% This is a BibTeX Codepage and Sort definition file (CSF). It is
+%% used to define the 8-bit character set used by BibTeX and the
+%% order in which those characters should be sorted. The file
+%% format is documented below this header section.
+%%
+%% This file will only work with the 8-bit implementation of BibTeX
+%% written by Niel Kempson and Alejandro Aguilar-Sierra. It is
+%% available by anonymous FTP from these Comprehensive TeX Archive
+%% Network (CTAN) sites:
+%%
+%% ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+%% ftp.shsu.edu:/tex-archive/biblio/bibtex/8-bit
+%% ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+%%
+%% CHANGE LOG
+%%
+%% $Log: ascii.csf,v $
+%% Revision 1.1 1996/08/04 20:48:52 kempson
+%% Added missing sort entries for 0..9
+%%
+%% Revision 1.0 1995/10/21 22:10:30 kempson
+%% Placed under RCS control
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE FORMAT
+%%
+%% The codepage and sorting order (CS) file defines how BibTeX will treat an
+%% 8-bit character set, specifically which characters are to be treated as
+%% letters, the upper/lower case relationships between characters, and the
+%% sorting order of characters.
+%%
+%% The CS file may contain a number of sections, each presented in the
+%% form of a TeX macro:
+%%
+%% \section-name{
+%% <section definitions>
+%% }
+%%
+%% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+%% and \order. The syntax of the four supported sections is summarised below.
+%%
+%% 8-bit characters may be entered naturally, but to avoid problems with
+%% character set translation or corruption, they can also be entered using
+%% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+%% is the hexadecimal value ofthe character code.
+%%
+%% Reading of the sections ends when the first '}' character is reached, so
+%% '}' can't be included in a section. You can't use ^^7d either.
+%%
+%% The percent sign ('%') is used to introduce a trailing comment - it and
+%% all remaining characters on a line are ignored. ^^25 has the same effect.
+%%
+%%
+%% \lowupcase section
+%%
+%% The \lowupcase section of the CS file is used to define the lower
+%% /upper and upper/lower case relationship of pairs of specified
+%% characters. It is only used if the relationship is symmetrical - use
+%% \lowercase or \upcase if it isn't.
+%%
+%% The syntax of the \lowupcase section is:
+%%
+%% \lowupcase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+%% <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower or upper case equivalent of an ASCII
+%% character (code < 128), so all instances of <LC-n> and <UC-n>
+%% (i.e. both sides of the relationship) must have codes > 127.
+%%
+%%
+%% \lowercase section
+%%
+%% The \lowercase section of the CS file is used to define the lower case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \lowercase section is:
+%%
+%% \lowercase{
+%% <UC-1> <LC-1> % Comment begins with a percent sign
+%% <UC-2> <LC-2>
+%% ...
+%% <UC-N> <LC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the lower case
+%% equivalent of <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower case equivalent of an ASCII character
+%% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \uppercase section
+%%
+%% The \uppercase section of the CS file is used to define the upper case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \uppercase section is:
+%%
+%% \uppercase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% case equivalent of <LC-n> is <UC-n>.
+%%
+%% You cannot redefine the upper case equivalent of an ASCII character
+%% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \order section
+%%
+%% The \order section of the CS file is used to define the order in which
+%% characters are sorted.
+%%
+%% The syntax of the \order section is:
+%%
+%% \order{
+%% <char-1> % Comment begins with a percent sign
+%% <char-2> <char-3> % whitespace between the chars
+%% <char-4> - <char-5> % a hyphen between the chars
+%% <char-4> _ <char-5> % an underscore between the chars
+%% ...
+%% <char-n>
+%% }
+%%
+%% All characters on the same line are given the same sorting weight.
+%%
+%% The construct <char-1> <underscore> <char-2> is used to denote that
+%% all characters in the range <char-1> to <char-2> should be given the
+%% same sorting weight. For example, "A _ Z" would cause all ASCII
+%% upper case alphabetical characters to have the same sorting weight
+%% and would be equivalent to placing all 26 characters on the same line.
+%%
+%% The construct <char-1> <hyphen> <char-2> is used to denote that all
+%% characters in the range <char-1> to <char-2> should be given an
+%% ascending set of sorting weights, starting with <char-1> and ending
+%% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+%% alphabetical characters to be sorted in ascending order and would be
+%% equivalent to placing 'A' on the first line, 'B' on the second,
+%% through to 'Z' on the 26th line.
+%%
+%% The characters at the beginning of the order section are given a lower
+%% sorting weight than characters occuring later. When sorting
+%% alphabetically, characters with the lowest weight come first.
+%%
+%% All characters not in the \order section (including ASCII characters)
+%% are given the same very high sorting weight to ensure that they come
+%% last when sorting alphabetically.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%
+%% CHARACTER SET
+%%
+%% There are no character codes > 127 in ASCII, so we don't need \lowupcase,
+%% \lowercase or \uppercase sections.
+%%
+
+
+
+%%
+%% SORTING ORDER
+%%
+%% The sorting order defined is the natural English language sorting order
+%% (i.e. 0..9AaBb..YyZz). Any other characters will be sorted after the
+%% characters in the \order section.
+%%
+\order{
+ 0-9
+ A a
+ B b
+ C c
+ D d
+ E e
+ F f
+ G g
+ H h
+ I i
+ J j
+ K k
+ L l
+ M m
+ N n
+ O o
+ P p
+ Q q
+ R r
+ S s
+ T t
+ U u
+ V v
+ W w
+ X x
+ Y y
+ Z z
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/csf/cp437lat.csf b/biblio/bibtex/bibtex-x/csf/cp437lat.csf
new file mode 100644
index 0000000000..dd69c90147
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/cp437lat.csf
@@ -0,0 +1,281 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE: $RCSfile: cp437lat.csf,v $
+%% $Revision: 1.1 $
+%% $Date: 1996/08/04 20:48:52 $
+%%
+%% CHARACTER SET: IBM Code Page 437
+%%
+%% SORTING ORDER: Latin countries
+%%
+%% Alphabetical sorting order of Aa..Zz (including accented characters).
+%%
+%% WARNING
+%%
+%% This is a BibTeX Codepage and Sort definition file (CSF). It is
+%% used to define the 8-bit character set used by BibTeX and the
+%% order in which those characters should be sorted. The file
+%% format is documented below this header section.
+%%
+%% This file will only work with the 8-bit implementation of BibTeX
+%% written by Niel Kempson and Alejandro Aguilar-Sierra. It is
+%% available by anonymous FTP from these Comprehensive TeX Archive
+%% Network (CTAN) sites:
+%%
+%% ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+%% ftp.shsu.edu:/tex-archive/biblio/bibtex/8-bit
+%% ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+%%
+%% CHANGE LOG
+%%
+%% $Log: cp437lat.csf,v $
+%% Revision 1.1 1996/08/04 20:48:52 kempson
+%% Added missing sort entries for 0..9
+%%
+%% Revision 1.0 1995/10/21 22:10:31 kempson
+%% Placed under RCS control
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE FORMAT
+%%
+%% The codepage and sorting order (CS) file defines how BibTeX will treat an
+%% 8-bit character set, specifically which characters are to be treated as
+%% letters, the upper/lower case relationships between characters, and the
+%% sorting order of characters.
+%%
+%% The CS file may contain a number of sections, each presented in the
+%% form of a TeX macro:
+%%
+%% \section-name{
+%% <section definitions>
+%% }
+%%
+%% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+%% and \order. The syntax of the four supported sections is summarised below.
+%%
+%% 8-bit characters may be entered naturally, but to avoid problems with
+%% character set translation or corruption, they can also be entered using
+%% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+%% is the hexadecimal value ofthe character code.
+%%
+%% Reading of the sections ends when the first '}' character is reached, so
+%% '}' can't be included in a section. You can't use ^^7d either.
+%%
+%% The percent sign ('%') is used to introduce a trailing comment - it and
+%% all remaining characters on a line are ignored. ^^25 has the same effect.
+%%
+%%
+%% \lowupcase section
+%%
+%% The \lowupcase section of the CS file is used to define the lower
+%% /upper and upper/lower case relationship of pairs of specified
+%% characters. It is only used if the relationship is symmetrical - use
+%% \lowercase or \upcase if it isn't.
+%%
+%% The syntax of the \lowupcase section is:
+%%
+%% \lowupcase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+%% <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower or upper case equivalent of an ASCII
+%% character (code < 128), so all instances of <LC-n> and <UC-n>
+%% (i.e. both sides of the relationship) must have codes > 127.
+%%
+%%
+%% \lowercase section
+%%
+%% The \lowercase section of the CS file is used to define the lower case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \lowercase section is:
+%%
+%% \lowercase{
+%% <UC-1> <LC-1> % Comment begins with a percent sign
+%% <UC-2> <LC-2>
+%% ...
+%% <UC-N> <LC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the lower case
+%% equivalent of <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower case equivalent of an ASCII character
+%% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \uppercase section
+%%
+%% The \uppercase section of the CS file is used to define the upper case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \uppercase section is:
+%%
+%% \uppercase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% case equivalent of <LC-n> is <UC-n>.
+%%
+%% You cannot redefine the upper case equivalent of an ASCII character
+%% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \order section
+%%
+%% The \order section of the CS file is used to define the order in which
+%% characters are sorted.
+%%
+%% The syntax of the \order section is:
+%%
+%% \order{
+%% <char-1> % Comment begins with a percent sign
+%% <char-2> <char-3> % whitespace between the chars
+%% <char-4> - <char-5> % a hyphen between the chars
+%% <char-4> _ <char-5> % an underscore between the chars
+%% ...
+%% <char-n>
+%% }
+%%
+%% All characters on the same line are given the same sorting weight.
+%%
+%% The construct <char-1> <underscore> <char-2> is used to denote that
+%% all characters in the range <char-1> to <char-2> should be given the
+%% same sorting weight. For example, "A _ Z" would cause all ASCII
+%% upper case alphabetical characters to have the same sorting weight
+%% and would be equivalent to placing all 26 characters on the same line.
+%%
+%% The construct <char-1> <hyphen> <char-2> is used to denote that all
+%% characters in the range <char-1> to <char-2> should be given an
+%% ascending set of sorting weights, starting with <char-1> and ending
+%% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+%% alphabetical characters to be sorted in ascending order and would be
+%% equivalent to placing 'A' on the first line, 'B' on the second,
+%% through to 'Z' on the 26th line.
+%%
+%% The characters at the beginning of the order section are given a lower
+%% sorting weight than characters occuring later. When sorting
+%% alphabetically, characters with the lowest weight come first.
+%%
+%% All characters not in the \order section (including ASCII characters)
+%% are given the same very high sorting weight to ensure that they come
+%% last when sorting alphabetically.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%
+%% CHARACTER SET
+%%
+%% The 437 code page does not contain an equal number of upper and lower
+%% case accented characters. There are a small number of characters where
+%% the upper and lower case pairs are present, but most accented characters
+%% are present in lower case form only.
+%%
+%% The pairs are defined in the \lowupcase section, and the unpaired lower
+%% case accented characters are given unaccented upper case equivalents in
+%% the \uppercase section.
+%%
+%% There are no unpaired upper case accented characters so a \lowercase
+%% section is not required.
+%%
+\lowupcase { % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ „ Ž % ^^84 \"{a} ^^8e \"{A}
+ † % ^^86 \aa ^^8f \AA
+ ‘ ’ % ^^91 \ae ^^92 \AE
+ ‡ € % ^^87 \c{c} ^^80 \c{C}
+ ‚ % ^^82 \'{e} ^^90 \'{E}
+ ¤ ¥ % ^^a4 \~{n} ^^a5 \~{N}
+ ” ™ % ^^94 \"{o} ^^99 \"{O}
+ š % ^^81 \"{u} ^^9a \"{U}
+}
+
+
+\uppercase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ … A % ^^85 \`{a} A CP437 has no \`{A}
+   A % ^^a0 \'{a} A CP437 has no \'{A}
+ ƒ A % ^^83 \^{a} A CP437 has no \^{A}
+ Š E % ^^8a \`{e} E CP437 has no \`{E}
+ ˆ E % ^^88 \^{e} E CP437 has no \^{E}
+ ‰ E % ^^89 \"{e} E CP437 has no \"{E}
+ I % ^^8d \`{\i} I CP437 has no \`{I}
+ ¡ I % ^^a1 \'{\i} I CP437 has no \'{I}
+ ΠI % ^^8c \^{\i} I CP437 has no \^{I}
+ ‹ I % ^^8b \"{\i} I CP437 has no \"{I}
+ • O % ^^95 \`{o} O CP437 has no \`{O}
+ ¢ O % ^^a2 \'{o} O CP437 has no \'{O}
+ “ O % ^^93 \^{o} O CP437 has no \^{O}
+ — U % ^^97 \`{u} U CP437 has no \`{U}
+ £ U % ^^a3 \'{u} U CP437 has no \'{U}
+ – U % ^^96 \^{u} U CP437 has no \^{U}
+}
+
+
+
+%%
+%% SORTING ORDER
+%%
+%% The sorting order defined is the natural language sorting order
+%% of 0..9Aa..Zz (including accented characters).
+%%
+\order{
+ 0-9
+ A Ž a …   ƒ „ †
+ ’ ‘
+ B b
+ C € c ‡
+ D d
+ E e Š ‚ ˆ ‰
+ F f
+ G g
+ H h
+ I i ¡ Œ ‹
+ J j
+ K k
+ L l
+ M m
+ N n
+ ¥ ¤
+ O ™ o • ¢ “ ”
+ P p
+ Q q
+ R r
+ S s
+ á
+ T t
+ U š u — £ –
+ V v
+ W w
+ X x
+ Y y
+ Z z
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/csf/cp850lat.csf b/biblio/bibtex/bibtex-x/csf/cp850lat.csf
new file mode 100644
index 0000000000..2387da972f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/cp850lat.csf
@@ -0,0 +1,272 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE: $RCSfile: cp850lat.csf,v $
+%% $Revision: 1.1 $
+%% $Date: 1996/08/04 20:48:52 $
+%%
+%% CHARACTER SET: IBM Code Page 850
+%%
+%% SORTING ORDER: Latin countries
+%%
+%% Alphabetical sorting order of Aa..Zz (including accented characters).
+%%
+%% WARNING
+%%
+%% This is a BibTeX Codepage and Sort definition file (CSF). It is
+%% used to define the 8-bit character set used by BibTeX and the
+%% order in which those characters should be sorted. The file
+%% format is documented below this header section.
+%%
+%% This file will only work with the 8-bit implementation of BibTeX
+%% written by Niel Kempson and Alejandro Aguilar-Sierra. It is
+%% available by anonymous FTP from these Comprehensive TeX Archive
+%% Network (CTAN) sites:
+%%
+%% ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+%% ftp.shsu.edu:/tex-archive/biblio/bibtex/8-bit
+%% ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+%%
+%% CHANGE LOG
+%%
+%% $Log: cp850lat.csf,v $
+%% Revision 1.1 1996/08/04 20:48:52 kempson
+%% Added missing sort entries for 0..9
+%%
+%% Revision 1.0 1995/10/21 22:10:32 kempson
+%% Placed under RCS control
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE FORMAT
+%%
+%% The codepage and sorting order (CS) file defines how BibTeX will treat an
+%% 8-bit character set, specifically which characters are to be treated as
+%% letters, the upper/lower case relationships between characters, and the
+%% sorting order of characters.
+%%
+%% The CS file may contain a number of sections, each presented in the
+%% form of a TeX macro:
+%%
+%% \section-name{
+%% <section definitions>
+%% }
+%%
+%% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+%% and \order. The syntax of the four supported sections is summarised below.
+%%
+%% 8-bit characters may be entered naturally, but to avoid problems with
+%% character set translation or corruption, they can also be entered using
+%% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+%% is the hexadecimal value ofthe character code.
+%%
+%% Reading of the sections ends when the first '}' character is reached, so
+%% '}' can't be included in a section. You can't use ^^7d either.
+%%
+%% The percent sign ('%') is used to introduce a trailing comment - it and
+%% all remaining characters on a line are ignored. ^^25 has the same effect.
+%%
+%%
+%% \lowupcase section
+%%
+%% The \lowupcase section of the CS file is used to define the lower
+%% /upper and upper/lower case relationship of pairs of specified
+%% characters. It is only used if the relationship is symmetrical - use
+%% \lowercase or \upcase if it isn't.
+%%
+%% The syntax of the \lowupcase section is:
+%%
+%% \lowupcase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+%% <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower or upper case equivalent of an ASCII
+%% character (code < 128), so all instances of <LC-n> and <UC-n>
+%% (i.e. both sides of the relationship) must have codes > 127.
+%%
+%%
+%% \lowercase section
+%%
+%% The \lowercase section of the CS file is used to define the lower case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \lowercase section is:
+%%
+%% \lowercase{
+%% <UC-1> <LC-1> % Comment begins with a percent sign
+%% <UC-2> <LC-2>
+%% ...
+%% <UC-N> <LC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the lower case
+%% equivalent of <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower case equivalent of an ASCII character
+%% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \uppercase section
+%%
+%% The \uppercase section of the CS file is used to define the upper case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \uppercase section is:
+%%
+%% \uppercase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% case equivalent of <LC-n> is <UC-n>.
+%%
+%% You cannot redefine the upper case equivalent of an ASCII character
+%% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \order section
+%%
+%% The \order section of the CS file is used to define the order in which
+%% characters are sorted.
+%%
+%% The syntax of the \order section is:
+%%
+%% \order{
+%% <char-1> % Comment begins with a percent sign
+%% <char-2> <char-3> % whitespace between the chars
+%% <char-4> - <char-5> % a hyphen between the chars
+%% <char-4> _ <char-5> % an underscore between the chars
+%% ...
+%% <char-n>
+%% }
+%%
+%% All characters on the same line are given the same sorting weight.
+%%
+%% The construct <char-1> <underscore> <char-2> is used to denote that
+%% all characters in the range <char-1> to <char-2> should be given the
+%% same sorting weight. For example, "A _ Z" would cause all ASCII
+%% upper case alphabetical characters to have the same sorting weight
+%% and would be equivalent to placing all 26 characters on the same line.
+%%
+%% The construct <char-1> <hyphen> <char-2> is used to denote that all
+%% characters in the range <char-1> to <char-2> should be given an
+%% ascending set of sorting weights, starting with <char-1> and ending
+%% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+%% alphabetical characters to be sorted in ascending order and would be
+%% equivalent to placing 'A' on the first line, 'B' on the second,
+%% through to 'Z' on the 26th line.
+%%
+%% The characters at the beginning of the order section are given a lower
+%% sorting weight than characters occuring later. When sorting
+%% alphabetically, characters with the lowest weight come first.
+%%
+%% All characters not in the \order section (including ASCII characters)
+%% are given the same very high sorting weight to ensure that they come
+%% last when sorting alphabetically.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%
+%% CHARACTER SET
+%%
+%% The 850 code page contains an equal number of upper and lower case
+%% accented characters so we can use the \lowupcase{} section. The
+%% \lowercase{} and \uppercase{} sections are not used.
+%%
+
+\lowupcase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ … · % ^^85 \`{a} ^^b7 \`{A}
+   µ % ^^a0 \'{a} ^^b5 \'{A}
+ ƒ ¶ % ^^83 \^{a} ^^b6 \^{A}
+ Æ Ç % ^^c6 \~{a} ^^c7 \~{A}
+ „ Ž % ^^84 \"{a} ^^8e \"{A}
+ † % ^^86 \aa ^^8f \AA
+ ‘ ’ % ^^91 \ae ^^92 \AE
+ ‡ € % ^^87 \c{c} ^^80 \c{C}
+ Š Ô % ^^8a \`{e} ^^d4 \`{E}
+ ‚ % ^^82 \'{e} ^^90 \'{E}
+ ˆ Ò % ^^88 \^{e} ^^d2 \^{E}
+ ‰ Ó % ^^89 \"{e} ^^d3 \"{E}
+ Þ % ^^8d \`{\i} ^^de \`{I}
+ ¡ Ö % ^^a1 \'{\i} ^^d6 \'{I}
+ Œ × % ^^8c \^{\i} ^^d7 \^{I}
+ ‹ Ø % ^^8b \"{\i} ^^d8 \"{I}
+ ¤ ¥ % ^^a4 \~{n} ^^a5 \~{N}
+ • ã % ^^95 \`{o} ^^e3 \`{O}
+ ¢ à % ^^a2 \'{o} ^^e0 \'{O}
+ “ â % ^^93 \^{o} ^^e2 \^{O}
+ ä å % ^^e4 \~{o} ^^e5 \~{O}
+ ” ™ % ^^94 \"{o} ^^99 \"{O}
+ › % ^^9b \o ^^9d \O
+ — ë % ^^97 \`{u} ^^eb \`{U}
+ £ é % ^^a3 \'{u} ^^e9 \'{U}
+ – ê % ^^96 \^{u} ^^ea \^{U}
+ š % ^^81 \"{u} ^^9a \"{U}
+ ì í % ^^ec \'{y} ^^ed \'{Y}
+}
+
+
+
+%%
+%% SORTING ORDER
+%%
+%% The sorting order defined is the natural language sorting order
+%% of 0-9Aa..Zz (including accented characters).
+%%
+\order{
+ 0-9
+ A · µ ¶ Ç Ž a …   ƒ Æ „ †
+ ’ ‘
+ B b
+ C € c ‡
+ D d
+ E Ô Ò Ó e Š ‚ ˆ ‰
+ F f
+ G g
+ H h
+ I Þ Ö × Ø i ¡ Œ ‹
+ J j
+ K k
+ L l
+ M m
+ N n
+ ¥ ¤
+ O ã à â å ™ o • ¢ “ ä ”
+ P p
+ Q q
+ R r
+ S s
+ á
+ T t
+ U ë é ê š u — £ –
+ V v
+ W w
+ X x
+ Y y
+ Z z
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/csf/cp850sca.csf b/biblio/bibtex/bibtex-x/csf/cp850sca.csf
new file mode 100644
index 0000000000..3e51bc21a0
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/cp850sca.csf
@@ -0,0 +1,279 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE: $RCSfile: cp850sca.csf,v $
+%% $Revision: 1.1 $
+%% $Date: 1996/08/04 20:48:52 $
+%%
+%% CHARACTER SET: IBM Code Page 850
+%%
+%% SORTING ORDER: Scandinavean countries
+%%
+%% The sorting order defined is a compromise between Norwegian/Danish
+%% and Swedish.
+%%
+%% WARNING
+%%
+%% This is a BibTeX Codepage and Sort definition file (CSF). It is
+%% used to define the 8-bit character set used by BibTeX and the
+%% order in which those characters should be sorted. The file
+%% format is documented below this header section.
+%%
+%% This file will only work with the 8-bit implementation of BibTeX
+%% written by Niel Kempson and Alejandro Aguilar-Sierra. It is
+%% available by anonymous FTP from these Comprehensive TeX Archive
+%% Network (CTAN) sites:
+%%
+%% ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+%% ftp.shsu.edu:/tex-archive/biblio/bibtex/8-bit
+%% ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+%%
+%% CHANGE LOG
+%%
+%% $Log: cp850sca.csf,v $
+%% Revision 1.1 1996/08/04 20:48:52 kempson
+%% Added missing sort entries for 0..9
+%%
+%% Revision 1.0 1995/10/21 22:10:33 kempson
+%% Placed under RCS control
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE FORMAT
+%%
+%% The codepage and sorting order (CS) file defines how BibTeX will treat an
+%% 8-bit character set, specifically which characters are to be treated as
+%% letters, the upper/lower case relationships between characters, and the
+%% sorting order of characters.
+%%
+%% The CS file may contain a number of sections, each presented in the
+%% form of a TeX macro:
+%%
+%% \section-name{
+%% <section definitions>
+%% }
+%%
+%% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+%% and \order. The syntax of the four supported sections is summarised below.
+%%
+%% 8-bit characters may be entered naturally, but to avoid problems with
+%% character set translation or corruption, they can also be entered using
+%% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+%% is the hexadecimal value ofthe character code.
+%%
+%% Reading of the sections ends when the first '}' character is reached, so
+%% '}' can't be included in a section. You can't use ^^7d either.
+%%
+%% The percent sign ('%') is used to introduce a trailing comment - it and
+%% all remaining characters on a line are ignored. ^^25 has the same effect.
+%%
+%%
+%% \lowupcase section
+%%
+%% The \lowupcase section of the CS file is used to define the lower
+%% /upper and upper/lower case relationship of pairs of specified
+%% characters. It is only used if the relationship is symmetrical - use
+%% \lowercase or \upcase if it isn't.
+%%
+%% The syntax of the \lowupcase section is:
+%%
+%% \lowupcase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+%% <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower or upper case equivalent of an ASCII
+%% character (code < 128), so all instances of <LC-n> and <UC-n>
+%% (i.e. both sides of the relationship) must have codes > 127.
+%%
+%%
+%% \lowercase section
+%%
+%% The \lowercase section of the CS file is used to define the lower case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \lowercase section is:
+%%
+%% \lowercase{
+%% <UC-1> <LC-1> % Comment begins with a percent sign
+%% <UC-2> <LC-2>
+%% ...
+%% <UC-N> <LC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the lower case
+%% equivalent of <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower case equivalent of an ASCII character
+%% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \uppercase section
+%%
+%% The \uppercase section of the CS file is used to define the upper case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \uppercase section is:
+%%
+%% \uppercase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% case equivalent of <LC-n> is <UC-n>.
+%%
+%% You cannot redefine the upper case equivalent of an ASCII character
+%% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \order section
+%%
+%% The \order section of the CS file is used to define the order in which
+%% characters are sorted.
+%%
+%% The syntax of the \order section is:
+%%
+%% \order{
+%% <char-1> % Comment begins with a percent sign
+%% <char-2> <char-3> % whitespace between the chars
+%% <char-4> - <char-5> % a hyphen between the chars
+%% <char-4> _ <char-5> % an underscore between the chars
+%% ...
+%% <char-n>
+%% }
+%%
+%% All characters on the same line are given the same sorting weight.
+%%
+%% The construct <char-1> <underscore> <char-2> is used to denote that
+%% all characters in the range <char-1> to <char-2> should be given the
+%% same sorting weight. For example, "A _ Z" would cause all ASCII
+%% upper case alphabetical characters to have the same sorting weight
+%% and would be equivalent to placing all 26 characters on the same line.
+%%
+%% The construct <char-1> <hyphen> <char-2> is used to denote that all
+%% characters in the range <char-1> to <char-2> should be given an
+%% ascending set of sorting weights, starting with <char-1> and ending
+%% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+%% alphabetical characters to be sorted in ascending order and would be
+%% equivalent to placing 'A' on the first line, 'B' on the second,
+%% through to 'Z' on the 26th line.
+%%
+%% The characters at the beginning of the order section are given a lower
+%% sorting weight than characters occuring later. When sorting
+%% alphabetically, characters with the lowest weight come first.
+%%
+%% All characters not in the \order section (including ASCII characters)
+%% are given the same very high sorting weight to ensure that they come
+%% last when sorting alphabetically.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%
+%% CHARACTER SET
+%%
+%% The 850 code page contains an equal number of upper and lower
+%% case accented characters so we can use the \lowupcase{} section. The
+%% \lowcase{} and \upcase{} sections are not used.
+%%
+
+\lowupcase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ … · % ^^85 \`{a} ^^b7 \`{A}
+   µ % ^^a0 \'{a} ^^b5 \'{A}
+ ƒ ¶ % ^^83 \^{a} ^^b6 \^{A}
+ Æ Ç % ^^c6 \~{a} ^^c7 \~{A}
+ „ Ž % ^^84 \"{a} ^^8e \"{A}
+ † % ^^86 \aa ^^8f \AA
+ ‘ ’ % ^^91 \ae ^^92 \AE
+ ‡ € % ^^87 \c{c} ^^80 \c{C}
+ Š Ô % ^^8a \`{e} ^^d4 \`{E}
+ ‚ % ^^82 \'{e} ^^90 \'{E}
+ ˆ Ò % ^^88 \^{e} ^^d2 \^{E}
+ ‰ Ó % ^^89 \"{e} ^^d3 \"{E}
+ Þ % ^^8d \`{\i} ^^de \`{I}
+ ¡ Ö % ^^a1 \'{\i} ^^d6 \'{I}
+ Œ × % ^^8c \^{\i} ^^d7 \^{I}
+ ‹ Ø % ^^8b \"{\i} ^^d8 \"{I}
+ ¤ ¥ % ^^a4 \~{n} ^^a5 \~{N}
+ • ã % ^^95 \`{o} ^^e3 \`{O}
+ ¢ à % ^^a2 \'{o} ^^e0 \'{O}
+ “ â % ^^93 \^{o} ^^e2 \^{O}
+ ä å % ^^e4 \~{o} ^^e5 \~{O}
+ ” ™ % ^^94 \"{o} ^^99 \"{O}
+ › % ^^9b \o ^^9d \O
+ — ë % ^^97 \`{u} ^^eb \`{U}
+ £ é % ^^a3 \'{u} ^^e9 \'{U}
+ – ê % ^^96 \^{u} ^^ea \^{U}
+ š % ^^81 \"{u} ^^9a \"{U}
+ ì í % ^^ec \'{y} ^^ed \'{Y}
+}
+
+
+
+%%
+%% SORTING ORDER
+%%
+%% The sorting order defined is a compromise between Norwegian/Danish and
+%% Swedish.
+%%
+%% Norwegian/Danish sorting order: 0..9Aa..Zz’‘›†
+%% Swedish sorting order: 0..9Aa..Zz†Ž„™”
+%% Compromise sorting order: 0..9Aa..Zz’‘›†Ž„™”
+%%
+\order{
+ 0-9
+ A a
+ B b
+ C c
+ D d
+ E e
+ F f
+ G g
+ H h
+ I i
+ J j
+ K k
+ L l
+ M m
+ N n
+ O o
+ P p
+ Q q
+ R r
+ S s
+ T t
+ U u
+ V v
+ W w
+ X x
+ Y y
+ Z z
+ ’ ‘
+ ›
+ †
+ Ž „
+ ™ ”
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/csf/cp866rus.csf b/biblio/bibtex/bibtex-x/csf/cp866rus.csf
new file mode 100644
index 0000000000..54d950dec6
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/cp866rus.csf
@@ -0,0 +1,296 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE: $RCSfile: cp866rus.csf,v $
+%% $Revision: 1.0 $
+%% $Date: 1996/08/04 20:59:12 $
+%%
+%% Date: 1996/05/03
+%% Author:-) Andrei Grinkevitch, grin@bals.usr.pu.ru
+%%
+%% CHARACTER SET: Russian (CP 866)
+%%
+%% SORTING ORDER: Russian
+%%
+%% WARNING
+%%
+%% This is a BibTeX Codepage and Sort definition file (CSF). It is
+%% used to define the 8-bit character set used by BibTeX and the
+%% order in which those characters should be sorted. The file
+%% format is documented below this header section.
+%%
+%% This file will only work with the 8-bit implementation of BibTeX
+%% written by Niel Kempson and Alejandro Aguilar-Sierra. It is
+%% available by anonymous FTP from these Comprehensive TeX Archive
+%% Network (CTAN) sites:
+%%
+%% ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit
+%% ftp.shsu.edu:/tex-archive/biblio/bibtex/8-bit
+%% ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit
+%%
+%% CHANGE LOG
+%%
+%% $Log: cp866rus.csf,v $
+%% Revision 1.0 1996/08/04 20:59:12 kempson
+%% Initial revision
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%
+%% FILE FORMAT
+%%
+%% The codepage and sorting order (CS) file defines how BibTeX will treat an
+%% 8-bit character set, specifically which characters are to be treated as
+%% letters, the upper/lower case relationships between characters, and the
+%% sorting order of characters.
+%%
+%% The CS file may contain a number of sections, each presented in the
+%% form of a TeX macro:
+%%
+%% \section-name{
+%% <section definitions>
+%% }
+%%
+%% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+%% and \order. The syntax of the four supported sections is summarised below.
+%%
+%% 8-bit characters may be entered naturally, but to avoid problems with
+%% character set translation or corruption, they can also be entered using
+%% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+%% is the hexadecimal value ofthe character code.
+%%
+%% Reading of the sections ends when the first '}' character is reached, so
+%% '}' can't be included in a section. You can't use ^^7d either.
+%%
+%% The percent sign ('%') is used to introduce a trailing comment - it and
+%% all remaining characters on a line are ignored. ^^25 has the same effect.
+%%
+%%
+%% \lowupcase section
+%%
+%% The \lowupcase section of the CS file is used to define the lower
+%% /upper and upper/lower case relationship of pairs of specified
+%% characters. It is only used if the relationship is symmetrical - use
+%% \lowercase or \upcase if it isn't.
+%%
+%% The syntax of the \lowupcase section is:
+%%
+%% \lowupcase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+%% <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower or upper case equivalent of an ASCII
+%% character (code < 128), so all instances of <LC-n> and <UC-n>
+%% (i.e. both sides of the relationship) must have codes > 127.
+%%
+%%
+%% \lowercase section
+%%
+%% The \lowercase section of the CS file is used to define the lower case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \lowercase section is:
+%%
+%% \lowercase{
+%% <UC-1> <LC-1> % Comment begins with a percent sign
+%% <UC-2> <LC-2>
+%% ...
+%% <UC-N> <LC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the lower case
+%% equivalent of <UC-n> is <LC-n>.
+%%
+%% You cannot redefine the lower case equivalent of an ASCII character
+%% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \uppercase section
+%%
+%% The \uppercase section of the CS file is used to define the upper case
+%% equivalent of specified characters. It should normally only be used
+%% if the relationship isn't symmetrical - use \lowupcase if it is.
+%%
+%% The syntax of the \uppercase section is:
+%%
+%% \uppercase{
+%% <LC-1> <UC-1> % Comment begins with a percent sign
+%% <LC-2> <UC-2>
+%% ...
+%% <LC-N> <UC-N>
+%% }
+%%
+%% Each <LC-n> <UC-n> pair of characters defines that the upper case
+%% case equivalent of <LC-n> is <UC-n>.
+%%
+%% You cannot redefine the upper case equivalent of an ASCII character
+%% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+%% of the relationship) must have codes > 127.
+%%
+%%
+%% \order section
+%%
+%% The \order section of the CS file is used to define the order in which
+%% characters are sorted.
+%%
+%% The syntax of the \order section is:
+%%
+%% \order{
+%% <char-1> % Comment begins with a percent sign
+%% <char-2> <char-3> % whitespace between the chars
+%% <char-4> - <char-5> % a hyphen between the chars
+%% <char-4> _ <char-5> % an underscore between the chars
+%% ...
+%% <char-n>
+%% }
+%%
+%% All characters on the same line are given the same sorting weight.
+%%
+%% The construct <char-1> <underscore> <char-2> is used to denote that
+%% all characters in the range <char-1> to <char-2> should be given the
+%% same sorting weight. For example, "A _ Z" would cause all ASCII
+%% upper case alphabetical characters to have the same sorting weight
+%% and would be equivalent to placing all 26 characters on the same line.
+%%
+%% The construct <char-1> <hyphen> <char-2> is used to denote that all
+%% characters in the range <char-1> to <char-2> should be given an
+%% ascending set of sorting weights, starting with <char-1> and ending
+%% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+%% alphabetical characters to be sorted in ascending order and would be
+%% equivalent to placing 'A' on the first line, 'B' on the second,
+%% through to 'Z' on the 26th line.
+%%
+%% The characters at the beginning of the order section are given a lower
+%% sorting weight than characters occuring later. When sorting
+%% alphabetically, characters with the lowest weight come first.
+%%
+%% All characters not in the \order section (including ASCII characters)
+%% are given the same very high sorting weight to ensure that they come
+%% last when sorting alphabetically.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%
+%% CHARACTER SET
+%%
+\lowupcase{
+   €
+ ¡
+ ¢ ‚
+ £ ƒ
+ ¤ „
+ ¥ …
+ ñ ð
+ ¦ †
+ § ‡
+ ¨ ˆ
+ © ‰
+ ª Š
+ « ‹
+ ¬ Œ
+ ­
+ ® Ž
+ ¯
+ à
+ á ‘
+ â ’
+ ã “
+ ä ”
+ å •
+ æ –
+ ç —
+ è ˜
+ é ™
+ ê š
+ ë ›
+ ì œ
+ í
+ î ž
+ ï Ÿ
+}
+
+
+
+%%
+%% SORTING ORDER
+%%
+%%
+\order{
+ 0-9
+ A a
+ B b
+ C c
+ D d
+ E e
+ F f
+ G g
+ H h
+ I i
+ J j
+ K k
+ L l
+ M m
+ N n
+ O o
+ P p
+ Q q
+ R r
+ S s
+ T t
+ U u
+ V v
+ W w
+ X x
+ Y y
+ Z z
+ €  
+ ¡
+ ‚ ¢
+ ƒ £
+ „ ¤
+ … ¥
+ ð ñ
+ † ¦
+ ‡ §
+ ˆ ¨
+ ‰ ©
+ Š ª
+ ‹ «
+ Œ ¬
+ ­
+ Ž ®
+ ¯
+ à
+ ‘ á
+ ’ â
+ “ ã
+ ” ä
+ • å
+ – æ
+ — ç
+ ˜ è
+ ™ é
+ š ê
+ › ë
+ œ ì
+ í
+ ž î
+ Ÿ ï
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/csf/csfile.txt b/biblio/bibtex/bibtex-x/csf/csfile.txt
new file mode 100644
index 0000000000..9f112a466c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/csf/csfile.txt
@@ -0,0 +1,318 @@
+******************************************************************************
+FILE: $RCSfile: csfile.txt,v $
+ $Revision: 3.71 $
+ $Date: 1996/08/18 20:41:31 $
+******************************************************************************
+
+
+An 8-bit Implementation of BibTeX 0.99 with a Very Large Capacity
+=================================================================
+
+
+Contents
+--------
+
+ 1. The Codepage and Sort Order (CS) File
+ 1.1 CS file syntax
+ 1.2 Testing a CS file
+ 1.3 Sharing your CS file
+
+ 2. Change Log
+
+
+
+1. The Codepage and Sort Order (CS) File
+-----------------------------------------
+
+The Codepage and Sort definition (CS) file is used to define the 8-bit
+character set used by BibTeX and the order in which those characters should
+be sorted.
+
+NOTE: this file contains many 8-bit characters and may cause problems
+ if you try to display or print it on 7-bit systems (e.g. older
+ versions of Unix).
+
+
+ 1.1 CS file syntax
+ ------------------
+
+ The codepage and sorting order (CS) file defines how BibTeX will treat an
+ 8-bit character set, specifically which characters are to be treated as
+ letters, the upper/lower case relationships between characters, and the
+ sorting order of characters.
+
+ The CS file may contain a number of sections, each presented in the form
+ of a TeX macro:
+
+ \section-name{
+ <section definitions>
+ }
+
+ Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+ and \order. The syntax of the four supported sections is summarised
+ below.
+
+ 8-bit characters may be entered naturally, but to avoid problems with
+ character set translation or corruption, they can also be entered using
+ the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+ is the hexadecimal value ofthe character code.
+
+ Reading of the sections ends when the first '}' character is reached, so
+ '}' can't be included in a section. You can, however, use ^^7d instead.
+
+ The percent sign ('%') is used to introduce a trailing comment - it and
+ all remaining characters on a line are ignored. If you need to insert a
+ percent character, you can use ^^25 instead.
+
+
+ \lowupcase section
+
+ The \lowupcase section of the CS file is used to define the lower
+ /upper and upper/lower case relationship of pairs of specified
+ characters. It is only used if the relationship is symmetrical - use
+ \lowercase or \upcase if it isn't.
+
+ The syntax of the \lowupcase section is:
+
+ \lowupcase{
+ <LC-1> <UC-1> % Comment begins with a percent sign
+ <LC-2> <UC-2>
+ ...
+ <LC-N> <UC-N>
+ }
+
+ Each <LC-n> <UC-n> pair of characters defines that the upper case
+ equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+ <UC-n> is <LC-n>.
+
+ You cannot redefine the lower or upper case equivalent of an ASCII
+ character (code < 128), so all instances of <LC-n> and <UC-n> (i.e.
+ both sides of the relationship) must have codes > 127.
+
+
+ \lowercase section
+
+ The \lowercase section of the CS file is used to define the lower
+ case equivalent of specified characters. It should normally only be
+ used if the relationship isn't symmetrical - use \lowupcase if it is.
+
+ The syntax of the \lowercase section is:
+
+ \lowercase{
+ <UC-1> <LC-1> % Comment begins with a percent sign
+ <UC-2> <LC-2>
+ ...
+ <UC-N> <LC-N>
+ }
+
+ Each <LC-n> <UC-n> pair of characters defines that the lower case
+ equivalent of <UC-n> is <LC-n>.
+
+ You cannot redefine the lower case equivalent of an ASCII character
+ (code < 128), so all instances of <UC-n> (i.e. the left hand side of
+ the relationship) must have codes > 127.
+
+
+ \uppercase section
+
+ The \uppercase section of the CS file is used to define the upper
+ case equivalent of specified characters. It should normally only be
+ used if the relationship isn't symmetrical - use \lowupcase if it is.
+
+ The syntax of the \uppercase section is:
+
+ \uppercase{
+ <LC-1> <UC-1> % Comment begins with a percent sign
+ <LC-2> <UC-2>
+ ...
+ <LC-N> <UC-N>
+ }
+
+ Each <LC-n> <UC-n> pair of characters defines that the upper case
+ case equivalent of <LC-n> is <UC-n>.
+
+ You cannot redefine the upper case equivalent of an ASCII character
+ (code < 128), so all instances of <LC-n> (i.e. the left hand side of
+ the relationship) must have codes > 127.
+
+
+ \order section
+
+ The \order section of the CS file is used to define the order in
+ which characters are sorted.
+
+ The syntax of the \order section is:
+
+ \order{
+ <char-1> % Comment begins with a percent sign
+ <char-2> <char-3> % whitespace between the chars
+ <char-4> - <char-5> % a hyphen between the chars
+ <char-4> _ <char-5> % an underscore between the chars
+ ...
+ <char-n>
+ }
+
+ All characters on the same line are given the same sorting weight.
+
+ The construct <char-1> <underscore> <char-2> is used to denote that
+ all characters in the range <char-1> to <char-2> should be given the
+ same sorting weight. For example, "A _ Z" would cause all ASCII
+ upper case alphabetical characters to have the same sorting weight
+ and would be equivalent to placing all 26 characters on the same
+ line.
+
+ The construct <char-1> <hyphen> <char-2> is used to denote that all
+ characters in the range <char-1> to <char-2> should be given an
+ ascending set of sorting weights, starting with <char-1> and ending
+ with <char-2>. For example, "A - Z" would cause all upper case ASCII
+ alphabetical characters to be sorted in ascending order and would be
+ equivalent to placing 'A' on the first line, 'B' on the second,
+ through to 'Z' on the 26th line.
+
+ The characters at the beginning of the order section are given a
+ lower sorting weight than characters occuring later. When sorting
+ alphabetically, characters with the lowest weight come first.
+
+ All characters not in the \order section (including ASCII characters)
+ are given the same very high sorting weight to ensure that they come
+ last when sorting alphabetically.
+
+
+ 1.2 Testing a CS file
+ ---------------------
+
+ If you create a CS, you'll want a straightforward way of testing that
+ BibTeX is interpreting it as you expect it to. The --debug=csf option
+ will report the results of parsing the CS file. Specifically, BibTeX
+ will report:
+
+ o characters with codes > 127 that it has defined as type ALPHA
+ o characters with upper case equivalents
+ o characters with lower case equivalents
+ o characters in ascending sorting order
+
+ An example of the output when processing the cp437lat.csf CS file is
+ shown below. This output will only make sense if you are using a
+ computer that supports the IBM codepage 437.
+
+ D-CSF: c8read_csf: trying to open CS file `cp437lat.csf' ...
+ D-CSF: reading the \lowupcase section ...
+ D-CSF: finished reading the \lowupcase section.
+ D-CSF: reading the \uppercase section ...
+ D-CSF: finished reading the \uppercase section.
+ D-CSF: reading the \order section ...
+ D-CSF: finished reading the \order section.
+
+ D-CSF: 8-bit ALPHA characters
+ D-CSF: ----------------------
+ D-CSF: 80: € ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ Ž
+ D-CSF: 90: ‘ ’ “ ” • – — . ™ š . . . . .
+ D-CSF: a0:   ¡ ¢ £ ¤ ¥ . . . . . . . . . .
+ D-CSF: b0: . . . . . . . . . . . . . . . .
+ D-CSF: c0: . . . . . . . . . . . . . . . .
+ D-CSF: d0: . . . . . . . . . . . . . . . .
+ D-CSF: e0: . á . . . . . . . . . . . . . .
+ D-CSF: f0: . . . . . . . . . . . . . . . .
+
+ D-CSF: Characters with upper case equivalents
+ D-CSF: --------------------------------------
+ D-CSF: a [61] <<< A [41] b [62] <<< B [42] c [63] <<< C [43]
+ D-CSF: d [64] <<< D [44] e [65] <<< E [45] f [66] <<< F [46]
+ D-CSF: g [67] <<< G [47] h [68] <<< H [48] i [69] <<< I [49]
+ D-CSF: j [6a] <<< J [4a] k [6b] <<< K [4b] l [6c] <<< L [4c]
+ D-CSF: m [6d] <<< M [4d] n [6e] <<< N [4e] o [6f] <<< O [4f]
+ D-CSF: p [70] <<< P [50] q [71] <<< Q [51] r [72] <<< R [52]
+ D-CSF: s [73] <<< S [53] t [74] <<< T [54] u [75] <<< U [55]
+ D-CSF: v [76] <<< V [56] w [77] <<< W [57] x [78] <<< X [58]
+ D-CSF: y [79] <<< Y [59] z [7a] <<< Z [5a] [81] <<< š [9a]
+ D-CSF: ‚ [82] <<< [90] ƒ [83] <<< A [41] „ [84] <<< Ž [8e]
+ D-CSF: … [85] <<< A [41] † [86] <<< [8f] ‡ [87] <<< € [80]
+ D-CSF: ˆ [88] <<< E [45] ‰ [89] <<< E [45] Š [8a] <<< E [45]
+ D-CSF: ‹ [8b] <<< I [49] Œ [8c] <<< I [49] [8d] <<< I [49]
+ D-CSF: ‘ [91] <<< ’ [92] “ [93] <<< O [4f] ” [94] <<< ™ [99]
+ D-CSF: • [95] <<< O [4f] – [96] <<< U [55] — [97] <<< U [55]
+ D-CSF:   [a0] <<< A [41] ¡ [a1] <<< I [49] ¢ [a2] <<< O [4f]
+ D-CSF: £ [a3] <<< U [55] ¤ [a4] <<< ¥ [a5]
+
+ D-CSF: Characters with lower case equivalents
+ D-CSF: --------------------------------------
+ D-CSF: A [41] >>> a [61] B [42] >>> b [62] C [43] >>> c [63]
+ D-CSF: D [44] >>> d [64] E [45] >>> e [65] F [46] >>> f [66]
+ D-CSF: G [47] >>> g [67] H [48] >>> h [68] I [49] >>> i [69]
+ D-CSF: J [4a] >>> j [6a] K [4b] >>> k [6b] L [4c] >>> l [6c]
+ D-CSF: M [4d] >>> m [6d] N [4e] >>> n [6e] O [4f] >>> o [6f]
+ D-CSF: P [50] >>> p [70] Q [51] >>> q [71] R [52] >>> r [72]
+ D-CSF: S [53] >>> s [73] T [54] >>> t [74] U [55] >>> u [75]
+ D-CSF: V [56] >>> v [76] W [57] >>> w [77] X [58] >>> x [78]
+ D-CSF: Y [59] >>> y [79] Z [5a] >>> z [7a] € [80] >>> ‡ [87]
+ D-CSF: Ž [8e] >>> „ [84] [8f] >>> † [86] [90] >>> ‚ [82]
+ D-CSF: ’ [92] >>> ‘ [91] ™ [99] >>> ” [94] š [9a] >>> [81]
+ D-CSF: ¥ [a5] >>> ¤ [a4]
+
+ D-CSF: Characters in sorting order
+ D-CSF: ---------------------------
+ D-CSF: 00: 0 [30]
+ D-CSF: 01: 1 [31]
+ D-CSF: 02: 2 [32]
+ D-CSF: 03: 3 [33]
+ D-CSF: 04: 4 [34]
+ D-CSF: 05: 5 [35]
+ D-CSF: 06: 6 [36]
+ D-CSF: 07: 7 [37]
+ D-CSF: 08: 8 [38]
+ D-CSF: 09: 9 [39]
+ D-CSF: 0a: A [41] a [61] ƒ [83] „ [84] … [85] † [86] Ž [8e] [8f]   [a0]
+ D-CSF: 0b: ‘ [91] ’ [92]
+ D-CSF: 0c: B [42] b [62]
+ D-CSF: 0d: C [43] c [63] € [80] ‡ [87]
+ D-CSF: 0e: D [44] d [64]
+ D-CSF: 0f: E [45] e [65] ‚ [82] ˆ [88] ‰ [89] Š [8a] [90]
+ D-CSF: 10: F [46] f [66]
+ D-CSF: 11: G [47] g [67]
+ D-CSF: 12: H [48] h [68]
+ D-CSF: 13: I [49] i [69] ‹ [8b] Œ [8c] [8d] ¡ [a1]
+ D-CSF: 14: J [4a] j [6a]
+ D-CSF: 15: K [4b] k [6b]
+ D-CSF: 16: L [4c] l [6c]
+ D-CSF: 17: M [4d] m [6d]
+ D-CSF: 18: N [4e] n [6e]
+ D-CSF: 19: ¤ [a4] ¥ [a5]
+ D-CSF: 1a: O [4f] o [6f] “ [93] ” [94] • [95] ™ [99] ¢ [a2]
+ D-CSF: 1b: P [50] p [70]
+ D-CSF: 1c: Q [51] q [71]
+ D-CSF: 1d: R [52] r [72]
+ D-CSF: 1e: S [53] s [73]
+ D-CSF: 1f: á [e1]
+ D-CSF: 20: T [54] t [74]
+ D-CSF: 21: U [55] u [75] [81] – [96] — [97] š [9a] £ [a3]
+ D-CSF: 22: V [56] v [76]
+ D-CSF: 23: W [57] w [77]
+ D-CSF: 24: X [58] x [78]
+ D-CSF: 25: Y [59] y [79]
+ D-CSF: 26: Z [5a] z [7a]
+ D-CSF: (All other characters are sorted equally after any of the above.)
+
+
+ 1.3 Sharing your CS file
+ ------------------------
+
+ Although we have provided a limited number of CS files, we hope that
+ other will soon produce different examples for other character sets and
+ national sorting orders. We will also be happy to accept corrections to
+ the example files supplied.
+
+ If you'd like to contribute a CS file, please send it to one of the
+ authors or upload it to one of the CTAN FTP archives. If you e-mail a
+ copy please ZIP and encode (UU/MIME) it so that we can be confident that
+ the file has not become corrupted in transit.
+
+
+
+2. Change Log
+--------------
+
+$Log: csfile.txt,v $
+# Revision 3.71 1996/08/18 20:41:31 kempson
+# Placed under RCS control.
+#
+******************************** END OF FILE *******************************
diff --git a/biblio/bibtex/bibtex-x/datatype.h b/biblio/bibtex/bibtex-x/datatype.h
new file mode 100644
index 0000000000..fb32571134
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/datatype.h
@@ -0,0 +1,179 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: datatype.h
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module defines the data types used in the BibTeX WEB source. C
+** isn't as flexible as PASCAL when defining data types, so some of the
+** types defined are fairly abitrary.
+**
+** There are particular problems when defining data types for variables
+** that will be used for indexing arrays. Whilst the "short" data
+** type will often suffice, "unsigned short" has to be used to index
+** the string pool, which has 65,000 elements. Care must be taken when
+** mixing signed and unsigned values, especially if the signed value
+** can be negative.
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: datatype.h,v $
+** Revision 3.71 1996/08/18 20:37:06 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:44 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifndef __DATATYPE_H__
+# define __DATATYPE_H__ 1
+
+
+/*-
+**============================================================================
+** Define the generic data types. For the BIG version of BibTeX, we declare
+** that all integers are 32 bit. This will only work on systems with a
+** 'flat' 32 bit addressing scheme and lots of virtual memory.
+**============================================================================
+*/
+typedef char Boolean_T;
+typedef unsigned char UChar_T;
+typedef char Char_T;
+typedef char Integer8_T;
+typedef FILE *File_ptr;
+typedef jmp_buf LongJumpBuf_T;
+
+
+/*-
+** Define some data types for 16-bit BibTex
+**
+** typedef short Integer16_T;
+** typedef long Integer32_T;
+** typedef unsigned short Unsigned16_T;
+** typedef unsigned long Unsigned32_T;
+** typedef Integer16_T Integer_T;
+*/
+
+/*-
+** Define some data types for 32-bit BibTeX
+*/
+typedef long Integer16_T;
+typedef long Integer32_T;
+typedef unsigned long Unsigned16_T;
+typedef unsigned long Unsigned32_T;
+typedef long Integer_T;
+
+
+/*-
+**============================================================================
+** The generic data types defined above will be used to approximate the
+** data types used in the BibTeX WEB source.
+**============================================================================
+*/
+typedef UChar_T ASCIICode_T;
+typedef File_ptr AlphaFile_T;
+typedef Integer16_T AuxNumber_T;
+typedef Integer16_T BibNumber_T;
+typedef Integer16_T BltInRange_T;
+typedef Integer16_T BufPointer_T;
+typedef ASCIICode_T *BufType_T;
+typedef Integer16_T CiteNumber_T;
+typedef Integer16_T FieldLoc_T;
+typedef Integer8_T FnClass_T;
+
+/*
+**typedef Integer16_T HashLoc_T;
+**typedef Integer16_T HashPointer_T;
+**typedef Integer16_T HashPtr2_T;
+*/
+typedef Integer32_T HashLoc_T;
+typedef Integer32_T HashPointer_T;
+typedef Integer32_T HashPtr2_T;
+
+typedef Integer8_T IDType_T;
+typedef Integer16_T IntEntLoc_T;
+typedef Integer8_T LexType_T;
+typedef Integer16_T LitStkLoc_T;
+typedef UChar_T PdsLen_T;
+typedef Integer8_T PdsLoc_T;
+typedef const Char_T *PdsType_T;
+typedef Unsigned16_T PoolPointer_T;
+typedef Integer8_T StkType_T;
+typedef Integer16_T StrEntLoc_T;
+typedef Integer8_T StrGlobLoc_T;
+typedef Integer8_T StrIlk_T;
+typedef Integer16_T StrNumber_T;
+typedef Integer16_T WizFnLoc_T;
+
+
+
+#endif /* __DATATYPE_H__ */
diff --git a/biblio/bibtex/bibtex-x/dos-dj.mak b/biblio/bibtex/bibtex-x/dos-dj.mak
new file mode 100644
index 0000000000..ca52adad2c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/dos-dj.mak
@@ -0,0 +1,349 @@
+#############################################################################*
+##############################################################################
+##
+## MODULE
+##
+## $RCSfile: dos-dj.mak,v $
+## $Revision: 3.71 $
+## $Date: 1996/08/18 20:37:06 $
+##
+## DESCRIPTION
+##
+## A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+## Unix and VMS. This C language implementation is based on the
+## original WEB source but it has been enhanced to support 8-bit input
+## characters and a very large processing capacity.
+##
+## For documentation describing how to use and build this program,
+## see the 00README.TXT file that accompanies this distribution.
+##
+## MODULE CONTENTS
+##
+## This is the BibTeX makefile to build an MS-DOS 32-bit executable
+## using the DJGPP GNU C compiler. DJGPP V2 provides a clean DPMI
+## implementation. This file should be called "dos-dj.mak" and
+## used with a command like:
+##
+## [C:\] make -f dos-dj.mak bibtex
+##
+## If you omit the "bibtex" argument, the Makefile will display list
+## of the supported targets.
+##
+## If you port BibTeX to a new environment or find that it works
+## unchanged in a new environment, please report back to the author so
+## that this file can be updated for everyone else.
+##
+## AUTHORS
+##
+## Original WEB translation to C, conversion to "big" (32-bit) capacity,
+## addition of run-time selectable capacity and 8-bit support extensions
+## by:
+##
+## Niel Kempson
+## Snowy Owl Systems Limited, Cheltenham, England
+## E-mail: kempson@snowyowl.co.uk
+##
+## 8-bit support extensions also by:
+##
+## Alejandro Aguilar-Sierra
+## Centro de Ciencias de la Atm\'osfera,
+## Universidad Nacional Autonoma de M\'exico, M\'exico
+## E-mail: asierra@servidor.unam.mx
+##
+## COPYRIGHT
+##
+## This implementation copyright (c) 1991-1995 by Niel Kempson
+## and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+##
+## 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+## In other words, you are welcome to use, share and improve this
+## program. You are forbidden to forbid anyone else to use, share
+## and improve what you give them. Help stamp out software-hoarding!
+##
+## ACKNOWLEDGEMENT
+##
+## The original BibTeX was written by Oren Patashnik using Donald
+## Knuth's WEB system. This format produces a PASCAL program for
+## execution and a TeX documented version of the source code. This
+## program started as a (manual) translation of the WEB source into C.
+##
+## CHANGE LOG
+##
+## $Log: dos-dj.mak,v $
+## Revision 3.71 1996/08/18 20:37:06 kempson
+## Official release 3.71 (see HISTORY file for details).
+##
+## Revision 3.70 1996/04/08 10:17:58 kempson
+## Final documentation & cosmetic changes for official release 3.70.
+##
+## Revision 1.0 1995/10/21 21:52:42 kempson
+## Placed under RCS control
+##
+##############################################################################
+##############################################################################
+
+
+##############################################################################
+##############################################################################
+#
+# Start of local definitions for file types and compilation / linking. There
+# are three small sections to customise:
+#
+# BibTeX File Searching
+# - specifies the names of environment variables and paths to be used when
+# searching for input files
+#
+# Utility Programs
+# - specifies the names of programs to be used for simple functions
+#
+# Compiler/Linker
+# - specifies compiler/linker command lines
+#
+# If your system is already supported it should not be necessary to modify
+# any part of the Makefile except these three sections.
+#
+##############################################################################
+##############################################################################
+
+#-----------------------------------------------------------------------------
+# BIBTEX FILE SEARCHING
+#
+# The macros in this section define the environment variables and default
+# search paths that will be used by BibTeX. 8-bit BibTeX looks for input
+# files in three different steps as summarised below. As soon as 8-bit
+# BibTeX finds a matching file, it stops looking (i.e. only the first
+# matching file is used). In order, the three steps are:
+#
+# - look for the file in the current working directory.
+#
+# - if the appropriate environment variable has been set (e.g. BSTINPUT),
+# treat its value as a list of directories to be searched. Look for the
+# file in each of the directories in the list.
+#
+# - if the appropriate environment variable (e.g. BSTINPUT) has not been
+# set, use a predefined "fallback" path as a list of directories to be
+# searched.
+#
+# A search list consists of a number of directories separated by semicolons.
+#
+# The following entries must be defined:
+#
+# AUX_ENVVAR the name of the environment variable defining the path
+# to be searched for .aux files.
+#
+# AUX_INPUT_PATH the fallback path to be searched for .aux files.
+#
+# BIB_ENVVAR the name of the environment variable defining the path
+# to be searched for .bib files (e.g. BIBINPUT).
+#
+# BIB_INPUT_PATH the fallback path to be searched for .bib files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bib).
+#
+# BST_ENVVAR the name of the environment variable defining the path
+# to be searched for .bst files (e.g. BSTINPUT).
+#
+# BST_INPUT_PATH the fallback path to be searched for .bst files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bst).
+#
+# CSF_ENVVAR the name of the environment variable defining the path
+# to be searched for .csf files (e.g. CSFINPUT).
+#
+# CSF_INPUT_PATH the fallback path to be searched for .csf files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/csf).
+#
+# CSF_FILE_ENVVAR the name of the environment variable defining the
+# fallback CS file (e.g. BIBTEX_CSFILE).
+#
+# CSF_FILE_NAME the name of the fallback CS file to be used if one is
+# not specified on the command line and the above-named
+# environment variable is not defined (e.g. cp850lat.csf).
+#-----------------------------------------------------------------------------
+AUX_INPUT_ENVVAR =
+AUX_INPUT_PATH =
+
+BIB_INPUT_ENVVAR = BIBINPUT
+BIB_INPUT_PATH = c:/emtex/bibtex/bib
+
+BST_INPUT_ENVVAR = BSTINPUT
+BST_INPUT_PATH = c:/emtex/bibtex/bst
+
+CSF_INPUT_ENVVAR = CSFINPUT
+CSF_INPUT_PATH = c:/emtex/bibtex/csf
+
+CSF_FILE_ENVVAR = BIBTEX_CSFILE
+CSF_FILE_NAME = cp850lat.csf
+
+
+#-----------------------------------------------------------------------------
+# UTILITY PROGRAMS
+#
+# MAKE the command used to invoke Make to process this file.
+# As distributed, it is defined as "make -f os2.mak"
+#
+# RM rm program that won't complain (e.g. /bin/rm -f) if a
+# file is missing
+#-----------------------------------------------------------------------------
+MAKE = make -f os2.mak
+RM = -DEL
+
+
+#-----------------------------------------------------------------------------
+# COMPILER/LINKER
+#
+# CC the command used to invoke the C compiler
+# CFLAGS compiler command line flags to be used
+# CCDEFINES symbols to be #defined when compiling
+#
+# LD the command used to invoke the linker
+# LDFLAGS linker command line flags to be used
+# LDLIBS linker command line option to search the specified
+# library files
+#
+# DJGPP/GNU C compiler
+#
+# Compiling: gcc -DMSDOS -Wall -Wconversion -Wno-char-subscripts
+# -funsigned-char -c BIBTEX.C
+#
+# -DMSDOS we're building for MSDOS
+# -Wall generate lots of warnings
+# -Wconversion warn about suspicious type conversions
+# -Wno-char-subscripts don't moan about character type subscripts
+# -funsigned-char unsigned chars
+# -c compile only
+#
+# Linking: gcc BIBTEX.O BIBTEX-1.O -o BIBTEX.EXE
+#
+# -o BIBTEX.EXE produce executable BIBTEX.EXE
+#
+#-----------------------------------------------------------------------------
+CC = gcc
+CFLAGS = -c -DMSDOS -Wall -Wno-char-subscripts -funsigned-char
+CCDEFINES =
+LD = gcc
+LDFLAGS = -o $@
+LDLIBS =
+
+##############################################################################
+##############################################################################
+#
+# End of local definitions. You shouldn't need to change anything below.
+#
+##############################################################################
+##############################################################################
+
+
+##############################################################################
+# File types and default rule for compilation
+##############################################################################
+BIBTEX_DEFINES = -DSUPPORT_8BIT \
+ -DAUX_INPUT_ENVVAR=\"$(AUX_INPUT_ENVVAR)\" \
+ -DAUX_INPUT_PATH=\"$(AUX_INPUT_PATH)\" \
+ -DBIB_INPUT_ENVVAR=\"$(BIB_INPUT_ENVVAR)\" \
+ -DBIB_INPUT_PATH=\"$(BIB_INPUT_PATH)\" \
+ -DBST_INPUT_ENVVAR=\"$(BST_INPUT_ENVVAR)\" \
+ -DBST_INPUT_PATH=\"$(BST_INPUT_PATH)\" \
+ -DCSF_INPUT_ENVVAR=\"$(CSF_INPUT_ENVVAR)\" \
+ -DCSF_INPUT_PATH=\"$(CSF_INPUT_PATH)\" \
+ -DCSF_FILE_ENVVAR=\"$(CSF_FILE_ENVVAR)\" \
+ -DCSF_FILE_NAME=\"$(CSF_FILE_NAME)\"
+
+EXE = .exe
+O = .o
+OUT = .out
+
+.SUFFIXES: .c .h $(O) $(OUT) $(EXE)
+
+.c.o:
+ $(CC) $(CFLAGS) $(BIBTEX_DEFINES) $*.c
+
+
+##############################################################################
+# Target Groupings
+##############################################################################
+HDRFILES = bibtex.h datatype.h gblprocs.h gblvars.h sysdep.h \
+ getopt.h utils.h version.h
+
+OBJFILES = bibtex$(O) \
+ bibtex-1$(O) bibtex-2$(O) bibtex-3$(O) bibtex-4$(O) \
+ getopt$(O) getopt1$(O) utils$(O)
+
+EXEFILES = bibtex$(EXE)
+
+
+##############################################################################
+# Top level targets
+##############################################################################
+make:
+ @ echo You must specify what to make.
+ @ echo .
+ @ echo For example: $(MAKE) bibtex
+ @ echo .
+ @ echo Valid system targets are:
+ @ echo .
+ @ echo clean - delete $(O) files
+ @ echo veryclean - delete $(O) and $(EXE) files
+ @ echo .
+ @ echo bibtex - DJGPP/GNU C for DOS
+
+clean:
+ @ echo Cleaning up ...
+ $(RM) bibtex$(O)
+ $(RM) bibtex-1$(O)
+ $(RM) bibtex-2$(O)
+ $(RM) bibtex-3$(O)
+ $(RM) bibtex-4$(O)
+ $(RM) getopt$(O)
+ $(RM) getopt1$(O)
+ $(RM) utils$(O)
+ $(RM) bibtex$(OUT)
+
+veryclean: clean
+ @ echo Really cleaning up ...
+ $(RM) bibtex$(EXE)
+
+bibtex: $(EXEFILES)
+ @ echo BibTeX built
+
+
+##############################################################################
+# Dependencies for executables.
+##############################################################################
+bibtex$(EXE): bibtex$(OUT)
+ strip bibtex$(OUT)
+ coff2exe bibtex$(OUT)
+
+bibtex$(OUT): $(OBJFILES)
+ $(LD) $(OBJFILES) $(LDFLAGS)
+
+
+##############################################################################
+# Dependencies for object files
+##############################################################################
+bibtex$(O): bibtex.c $(HDRFILES)
+
+bibtex-1$(O): bibtex-1.c $(HDRFILES)
+
+bibtex-2$(O): bibtex-2.c $(HDRFILES)
+
+bibtex-3$(O): bibtex-3.c $(HDRFILES)
+
+bibtex-4$(O): bibtex-4.c $(HDRFILES)
+
+getopt$(O): getopt.c getopt.h
+
+getopt1$(O): getopt1.c getopt.h
+
+utils$(O): utils.c $(HDRFILES)
diff --git a/biblio/bibtex/bibtex-x/dos-emx.mak b/biblio/bibtex/bibtex-x/dos-emx.mak
new file mode 100644
index 0000000000..3a23f44f38
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/dos-emx.mak
@@ -0,0 +1,345 @@
+#############################################################################*
+##############################################################################
+##
+## MODULE
+##
+## $RCSfile: dos-emx.mak,v $
+## $Revision: 3.71 $
+## $Date: 1996/08/18 20:37:06 $
+##
+## DESCRIPTION
+##
+## A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+## Unix and VMS. This C language implementation is based on the
+## original WEB source but it has been enhanced to support 8-bit input
+## characters and a very large processing capacity.
+##
+## For documentation describing how to use and build this program,
+## see the 00README.TXT file that accompanies this distribution.
+##
+## MODULE CONTENTS
+##
+## This is the BibTeX makefile to build an MS-DOS 32-bit executable
+## using the EMX system. This file should be called "dos-emx.mak" and
+## used with a command like:
+##
+## [C:\] make -f dos-emx.mak bibtex
+##
+## If you omit the "bibtex" argument, the Makefile will display a list
+## of the supported targets.
+##
+## If you port BibTeX to a new environment or find that it works
+## unchanged in a new environment, please report back to the author so
+## that this file can be updated for everyone else.
+##
+## AUTHORS
+##
+## Original WEB translation to C, conversion to "big" (32-bit) capacity,
+## addition of run-time selectable capacity and 8-bit support extensions
+## by:
+##
+## Niel Kempson
+## Snowy Owl Systems Limited, Cheltenham, England
+## E-mail: kempson@snowyowl.co.uk
+##
+## 8-bit support extensions also by:
+##
+## Alejandro Aguilar-Sierra
+## Centro de Ciencias de la Atm\'osfera,
+## Universidad Nacional Autonoma de M\'exico, M\'exico
+## E-mail: asierra@servidor.unam.mx
+##
+## COPYRIGHT
+##
+## This implementation copyright (c) 1991-1996 by Niel Kempson
+## and copyright (c) 1995-1996 by Alejandro Aguilar-Sierra.
+##
+## 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+## In other words, you are welcome to use, share and improve this
+## program. You are forbidden to forbid anyone else to use, share
+## and improve what you give them. Help stamp out software-hoarding!
+##
+## ACKNOWLEDGEMENT
+##
+## The original BibTeX was written by Oren Patashnik using Donald
+## Knuth's WEB system. This format produces a PASCAL program for
+## execution and a TeX documented version of the source code. This
+## program started as a (manual) translation of the WEB source into C.
+##
+## CHANGE LOG
+##
+## $Log: dos-emx.mak,v $
+## Revision 3.71 1996/08/18 20:37:06 kempson
+## Official release 3.71 (see HISTORY file for details).
+##
+## Revision 3.70 1996/04/08 10:17:58 kempson
+## Final documentation & cosmetic changes for official release 3.70.
+##
+## Revision 1.0 1995/10/21 21:52:43 kempson
+## Placed under RCS control
+##
+##############################################################################
+##############################################################################
+
+
+##############################################################################
+##############################################################################
+#
+# Start of local definitions for file types and compilation / linking. There
+# are three small sections to customise:
+#
+# BibTeX File Searching
+# - specifies the names of environment variables and paths to be used when
+# searching for input files
+#
+# Utility Programs
+# - specifies the names of programs to be used for simple functions
+#
+# Compiler/Linker
+# - specifies compiler/linker command lines
+#
+# If your system is already supported it should not be necessary to modify
+# any part of the Makefile except these three sections.
+#
+##############################################################################
+##############################################################################
+
+#-----------------------------------------------------------------------------
+# BIBTEX FILE SEARCHING
+#
+# The macros in this section define the environment variables and default
+# search paths that will be used by BibTeX. 8-bit BibTeX looks for input
+# files in three different steps as summarised below. As soon as 8-bit
+# BibTeX finds a matching file, it stops looking (i.e. only the first
+# matching file is used). In order, the three steps are:
+#
+# - look for the file in the current working directory.
+#
+# - if the appropriate environment variable has been set (e.g. BSTINPUT),
+# treat its value as a list of directories to be searched. Look for the
+# file in each of the directories in the list.
+#
+# - if the appropriate environment variable (e.g. BSTINPUT) has not been
+# set, use a predefined "fallback" path as a list of directories to be
+# searched.
+#
+# A search list consists of a number of directories separated by semicolons.
+#
+# The following entries must be defined:
+#
+# AUX_ENVVAR the name of the environment variable defining the path
+# to be searched for .aux files.
+#
+# AUX_INPUT_PATH the fallback path to be searched for .aux files.
+#
+# BIB_ENVVAR the name of the environment variable defining the path
+# to be searched for .bib files (e.g. BIBINPUT).
+#
+# BIB_INPUT_PATH the fallback path to be searched for .bib files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bib).
+#
+# BST_ENVVAR the name of the environment variable defining the path
+# to be searched for .bst files (e.g. BSTINPUT).
+#
+# BST_INPUT_PATH the fallback path to be searched for .bst files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bst).
+#
+# CSF_ENVVAR the name of the environment variable defining the path
+# to be searched for .csf files (e.g. CSFINPUT).
+#
+# CSF_INPUT_PATH the fallback path to be searched for .csf files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/csf).
+#
+# CSF_FILE_ENVVAR the name of the environment variable defining the
+# fallback CS file (e.g. BIBTEX_CSFILE).
+#
+# CSF_FILE_NAME the name of the fallback CS file to be used if one is
+# not specified on the command line and the above-named
+# environment variable is not defined (e.g. cp850lat.csf).
+#-----------------------------------------------------------------------------
+AUX_INPUT_ENVVAR =
+AUX_INPUT_PATH =
+
+BIB_INPUT_ENVVAR = BIBINPUT
+BIB_INPUT_PATH = c:/emtex/bibtex/bib
+
+BST_INPUT_ENVVAR = BSTINPUT
+BST_INPUT_PATH = c:/emtex/bibtex/bst
+
+CSF_INPUT_ENVVAR = CSFINPUT
+CSF_INPUT_PATH = c:/emtex/bibtex/csf
+
+CSF_FILE_ENVVAR = BIBTEX_CSFILE
+CSF_FILE_NAME = cp850lat.csf
+
+
+#-----------------------------------------------------------------------------
+# UTILITY PROGRAMS
+#
+# MAKE the command used to invoke Make to process this file.
+# As distributed, it is defined as "make -f os2.mak"
+#
+# RM rm program that won't complain (e.g. /bin/rm -f) if a
+# file is missing
+#-----------------------------------------------------------------------------
+MAKE = make -f os2.mak
+RM = -DEL
+
+
+#-----------------------------------------------------------------------------
+# COMPILER/LINKER
+#
+# CC the command used to invoke the C compiler
+# CFLAGS compiler command line flags to be used
+#
+# LD the command used to invoke the linker
+# LDFLAGS linker command line flags to be used
+# LDLIBS linker command line option to search the specified
+# library files
+#
+# EMX/GNU C compiler v0.9b
+#
+# Compiling: gcc -DMSDOS -Wall -Wconversion -Wno-char-subscripts
+# -funsigned-char -c BIBTEX.C
+#
+# -DMSDOS we're building for MSDOS
+# -Wall generate lots of warnings
+# -Wconversion warn about suspicious type conversions
+# -Wno-char-subscripts don't moan about character type subscripts
+# -funsigned-char unsigned chars
+# -c compile only
+#
+# Linking: gcc BIBTEX.O BIBTEX-1.O -o BIBTEX.EXE
+#
+# -o BIBTEX.EXE produce executable BIBTEX.EXE
+#
+#-----------------------------------------------------------------------------
+CC = gcc
+CFLAGS = -c -DMSDOS -Wall -Wno-char-subscripts -funsigned-char
+CCDEFINES =
+LD = gcc
+LDFLAGS = -o $@
+LDLIBS =
+
+##############################################################################
+##############################################################################
+#
+# End of local definitions. You shouldn't need to change anything below.
+#
+##############################################################################
+##############################################################################
+
+
+##############################################################################
+# File types and default rule for compilation
+##############################################################################
+BIBTEX_DEFINES = -DSUPPORT_8BIT \
+ -DAUX_INPUT_ENVVAR=\"$(AUX_INPUT_ENVVAR)\" \
+ -DAUX_INPUT_PATH=\"$(AUX_INPUT_PATH)\" \
+ -DBIB_INPUT_ENVVAR=\"$(BIB_INPUT_ENVVAR)\" \
+ -DBIB_INPUT_PATH=\"$(BIB_INPUT_PATH)\" \
+ -DBST_INPUT_ENVVAR=\"$(BST_INPUT_ENVVAR)\" \
+ -DBST_INPUT_PATH=\"$(BST_INPUT_PATH)\" \
+ -DCSF_INPUT_ENVVAR=\"$(CSF_INPUT_ENVVAR)\" \
+ -DCSF_INPUT_PATH=\"$(CSF_INPUT_PATH)\" \
+ -DCSF_FILE_ENVVAR=\"$(CSF_FILE_ENVVAR)\" \
+ -DCSF_FILE_NAME=\"$(CSF_FILE_NAME)\"
+
+EXE = .exe
+O = .o
+OUT = .out
+
+.SUFFIXES: .c .h $(O) $(OUT) $(EXE)
+
+.c.o:
+ $(CC) $(CFLAGS) $(BIBTEX_DEFINES) $*.c
+
+
+##############################################################################
+# Target Groupings
+##############################################################################
+HDRFILES = bibtex.h datatype.h gblprocs.h gblvars.h sysdep.h \
+ getopt.h utils.h version.h
+
+OBJFILES = bibtex$(O) \
+ bibtex-1$(O) bibtex-2$(O) bibtex-3$(O) bibtex-4$(O) \
+ getopt$(O) getopt1$(O) utils$(O)
+
+EXEFILES = bibtex$(EXE)
+
+
+##############################################################################
+# Top level targets
+##############################################################################
+make:
+ @ echo You must specify what to make.
+ @ echo .
+ @ echo For example: $(MAKE) bibtex
+ @ echo .
+ @ echo Valid system targets are:
+ @ echo .
+ @ echo clean - delete $(O) files
+ @ echo veryclean - delete $(O) and $(EXE) files
+ @ echo .
+ @ echo bibtex - EMX/GNU C bound for DOS + OS/2
+
+clean:
+ @ echo Cleaning up ...
+ $(RM) bibtex$(O)
+ $(RM) bibtex-1$(O)
+ $(RM) bibtex-2$(O)
+ $(RM) bibtex-3$(O)
+ $(RM) bibtex-4$(O)
+ $(RM) getopt$(O)
+ $(RM) getopt1$(O)
+ $(RM) utils$(O)
+ $(RM) bibtex$(OUT)
+
+veryclean: clean
+ @ echo Really cleaning up ...
+ $(RM) bibtex$(EXE)
+
+bibtex: $(EXEFILES)
+ @ echo BibTeX built
+
+
+##############################################################################
+# Dependencies for executables.
+##############################################################################
+bibtex$(EXE): bibtex$(OUT)
+ emxbind -o bibtex$(EXE) bibtex$(OUT) -h64
+
+bibtex$(OUT): $(OBJFILES)
+ $(LD) $(OBJFILES) $(LDFLAGS)
+
+##############################################################################
+# Dependencies for object files
+##############################################################################
+bibtex$(O): bibtex.c $(HDRFILES)
+
+bibtex-1$(O): bibtex-1.c $(HDRFILES)
+
+bibtex-2$(O): bibtex-2.c $(HDRFILES)
+
+bibtex-3$(O): bibtex-3.c $(HDRFILES)
+
+bibtex-4$(O): bibtex-4.c $(HDRFILES)
+
+getopt$(O): getopt.c getopt.h
+
+getopt1$(O): getopt1.c getopt.h
+
+utils$(O): utils.c $(HDRFILES)
diff --git a/biblio/bibtex/bibtex-x/file_id.diz b/biblio/bibtex/bibtex-x/file_id.diz
new file mode 100644
index 0000000000..b360c3540c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/file_id.diz
@@ -0,0 +1,13 @@
+(BibTeX8) "big" BibTeX with full 8-bit support
+
+An enhanced, portable C version of BibTeX.
+Enhanced by conversion to "big" (32-bit)
+capacity, addition of run-time selectable
+capacity and 8-bit support extensions.
+National character set and sorting order
+are controlled by an external configuration
+file. Various examples are included.
+Freeware / GNU Public Licence.
+
+Niel Kempson <kempson@snowyowl.co.uk>
+Alejandro Aguilar-Sierra <asierra@servidor.unam.mx>
diff --git a/biblio/bibtex/bibtex-x/gblprocs.h b/biblio/bibtex/bibtex-x/gblprocs.h
new file mode 100644
index 0000000000..723da15b8d
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/gblprocs.h
@@ -0,0 +1,436 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: gblprocs.h
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module declares (using ANSI function prototypes) all of the
+** global functions that will be used in the program. The functions
+** are declared in alphabetical order.
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: gblprocs.h,v $
+** Revision 3.71 1996/08/18 20:47:30 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:44 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifndef __GBLPROCS_H__
+# define __GBLPROCS_H__ 1
+
+
+#ifdef UTF_8
+#include "unicode/uchar.h"
+#include "unicode/ustdio.h"
+#include "unicode/ustring.h"
+#include "unicode/ucol.h"
+int32_t icu_toUChars (BufType_T buf,
+ BufPointer_T bf_ptr,
+ BufPointer_T len,
+ UChar * target,
+ int32_t tarcap);
+int32_t icu_strToLower (UChar * tarlow,
+ int32_t tlcap,
+ UChar * target,
+ int32_t tarlen);
+int32_t icu_fromUChars (unsigned char * dest,
+ int32_t destcap,
+ const UChar * src,
+ int32_t srclen);
+int32_t icu_strToUpper (UChar * tarup,
+ int32_t tucap,
+ UChar * target,
+ int32_t tarlen);
+int32_t icu_toUChar32s (BufType_T buf,
+ BufPointer_T bf_ptr,
+ BufPointer_T len,
+ UChar32 * target,
+ int32_t tarcap,
+ UChar * buf16);
+int32_t icu_fromUChar32s (unsigned char * dest,
+ int32_t destcap,
+ const UChar32 * src,
+ int32_t srclen,
+ UChar * buf16);
+#define utf8len(a) ((a)<0x80 ? 1 : ((a)<0xc2 ? -2 : ((a)<0xe0 ? 2 : ((a)<0xf0 ? 3 : ((a)<0xf5 ? 4 : -1)))))
+#endif
+void a_close (const AlphaFile_T file_pointer);
+Boolean_T a_open_in (AlphaFile_T *file_pointer,
+ Integer_T search_path);
+Boolean_T a_open_out (AlphaFile_T *file_pointer);
+void add_buf_pool (StrNumber_T pstr);
+void add_database_cite (CiteNumber_T *newcite);
+void add_extension (StrNumber_T ext);
+void add_out_pool (StrNumber_T pstr);
+void add_pool_buf_and_push (void);
+void already_seen_function_print (HashLoc_T seenfnloc);
+void aux_bib_data_command (void);
+void aux_bib_style_command (void);
+void aux_citation_command (void);
+void aux_end1_err_print (void);
+void aux_end2_err_print (void);
+void aux_err_illegal_another_print (Integer_T cmdnum);
+void aux_err_no_right_brace_print (void);
+void aux_err_print (void);
+void aux_err_stuff_after_right_brace (void);
+void aux_err_white_space_in_argument (void);
+void aux_input_command (void);
+
+Boolean_T bad_argument_token (void);
+void bad_cross_reference_print (StrNumber_T s);
+void bib_cmd_confusion (void);
+void bib_equals_sign_print (void);
+void bib_err_print (void);
+void bib_field_too_long_print (void);
+void bib_id_print (void);
+void bib_ln_num_print (void);
+void bib_one_of_two_print (ASCIICode_T char1,
+ ASCIICode_T char2);
+void bib_unbalanced_braces_print (void);
+void bib_warn_print (void);
+void brace_lvl_one_letters_complaint (void);
+void braces_unbalanced_complaint (StrNumber_T poplitvar);
+void bst_1print_string_size_exceeded (void);
+void bst_2print_string_size_exceeded (void);
+void bst_cant_mess_with_entries_prin (void);
+void bst_entry_command (void);
+void bst_err_print_and_look_for_blan (void);
+void bst_ex_warn_print (void);
+void bst_execute_command (void);
+void bst_function_command (void);
+void bst_id_print (void);
+void bst_integers_command (void);
+void bst_iterate_command (void);
+void bst_left_brace_print (void);
+void bst_ln_num_print (void);
+void bst_macro_command (void);
+void bst_mild_ex_warn_print (void);
+void bst_read_command (void);
+void bst_reverse_command (void);
+void bst_right_brace_print (void);
+void bst_sort_command (void);
+void bst_strings_command (void);
+void bst_warn_print (void);
+void buffer_overflow (void);
+void build_in (PdsType_T pds,
+ PdsLen_T len,
+ HashLoc_T *fn_hash_loc,
+ BltInRange_T bltinnum);
+
+void case_conversion_confusion (void);
+void check_brace_level (StrNumber_T poplitvar);
+void check_cite_overflow (CiteNumber_T lastcite);
+void check_command_execution (void);
+void check_field_overflow (Integer_T totalfields);
+void cite_key_disappeared_confusion (void);
+Boolean_T compress_bib_white (void);
+
+void decr_brace_level (StrNumber_T poplitvar);
+
+void eat_bib_print (void);
+Boolean_T eat_bib_white_space (void);
+void eat_bst_print (void);
+Boolean_T eat_bst_white_space (void);
+Boolean_T enough_text_chars (BufPointer_T enoughchars);
+Boolean_T eoln (const AlphaFile_T file_pointer);
+void execute_fn (HashLoc_T exfnloc);
+
+void figure_out_the_formatted_name (void);
+Boolean_T find_cite_locs_for_this_cite_ke (StrNumber_T citestr);
+
+void get_aux_command_and_process (void);
+void get_bib_command_or_entry_and_pr (void);
+void get_bst_command_and_process (void);
+void get_the_top_level_aux_file_name (void);
+
+void hash_cite_confusion (void);
+
+void id_scanning_confusion (void);
+void illegl_literal_confusion (void);
+void init_command_execution (void);
+void initialize (void);
+Boolean_T input_ln (AlphaFile_T f);
+void int_to_ASCII (Integer_T inte,
+ BufType_T int_buf,
+ BufPointer_T int_begin,
+ BufPointer_T *int_end);
+
+void last_check_for_aux_errors (void);
+Boolean_T less_than (CiteNumber_T arg1,
+ CiteNumber_T arg2);
+void lower_case (BufType_T buf,
+ BufPointer_T bf_ptr,
+ BufPointer_T len);
+#ifdef UTF_8
+BufPointer_T lower_case_uni (BufType_T buf,
+ BufPointer_T bf_ptr,
+ BufPointer_T len);
+static inline
+void Lower_case (BufType_T buf, BufPointer_T bf_ptr, BufPointer_T len)
+{
+ bf_ptr += lower_case_uni (buf, bf_ptr, len);
+}
+#else
+# define Lower_case lower_case
+#endif
+
+void macro_warn_print (void);
+StrNumber_T make_string (void);
+void mark_error (void);
+void mark_fatal (void);
+void mark_warning (void);
+
+void name_scan_for_and (StrNumber_T poplitvar);
+void non_existent_cross_reference_er (void);
+
+void out_pool_str (AlphaFile_T f,
+ StrNumber_T s);
+
+void output_bbl_line (void);
+void out_token (AlphaFile_T f);
+
+void pool_overflow (void);
+void pop_lit_stk (Integer_T *pop_lit,
+ StkType_T *pop_type);
+void pop_the_aux_stack (void);
+void pop_top_and_print (void);
+void pop_whole_stack (void);
+void pre_def_certain_strings (void);
+void pre_define (PdsType_T pds,
+ PdsLen_T len,
+ StrIlk_T ilk);
+void print_a_newline (void);
+void print_a_pool_str (StrNumber_T s);
+void print_a_token (void);
+void print_aux_name (void);
+void print_bad_input_line (void);
+void print_bib_name (void);
+void print_bst_name (void);
+void print_confusion (void);
+void print_fn_class (HashLoc_T fnloc);
+void print_lit (Integer_T stk_lt,
+ StkType_T stk_tp);
+void print_missing_entry (StrNumber_T s);
+void print_overflow (void);
+void print_recursion_illegal (void);
+void print_skipping_whatever_remains (void);
+void print_stk_lit (Integer_T stk_lt,
+ StkType_T stk_tp);
+void print_wrong_stk_lit (Integer_T stk_lt,
+ StkType_T stk_tp1,
+ StkType_T stk_tp2);
+void push_lit_stk (Integer_T push_lt,
+ StkType_T push_type);
+
+void quick_sort (CiteNumber_T left_end,
+ CiteNumber_T right_end);
+
+void sam_too_long_file_name_print (void);
+void sam_wrong_file_name_print (void);
+Boolean_T scan1 (ASCIICode_T char1);
+Boolean_T scan1_white (ASCIICode_T char1);
+Boolean_T scan2 (ASCIICode_T char1,
+ ASCIICode_T char2);
+Boolean_T scan2_white (ASCIICode_T char1,
+ ASCIICode_T char2);
+Boolean_T scan3 (ASCIICode_T char1,
+ ASCIICode_T char2,
+ ASCIICode_T char3);
+Boolean_T scan_a_field_token_and_eat_whit (void);
+Boolean_T scan_alpha (void);
+Boolean_T scan_and_store_the_field_value (void);
+Boolean_T scan_balanced_braces (void);
+void scan_fn_def (HashLoc_T fn_hash_loc);
+void scan_identifier (ASCIICode_T char1,
+ ASCIICode_T char2,
+ ASCIICode_T char3);
+Boolean_T scan_integer (void);
+Boolean_T scan_nonneg_integer (void);
+Boolean_T scan_white_space (void);
+void skip_illegal_stuff_after_token (void);
+void skip_stuff_at_sp_brace_level_gr (void);
+void skip_token_print (void);
+void skp_token_unknown_function_prin (void);
+void start_name (StrNumber_T filename);
+Boolean_T str_eq_buf (StrNumber_T s,
+ BufType_T buf,
+ BufPointer_T bf_ptr,
+ BufPointer_T len);
+Boolean_T str_eq_str (StrNumber_T s1,
+ StrNumber_T s2);
+HashLoc_T str_lookup (BufType_T buf,
+ BufPointer_T j,
+ BufPointer_T l,
+ StrIlk_T ilk,
+ Boolean_T insert_it);
+void swap (CiteNumber_T swap1,
+ CiteNumber_T swap2);
+
+void trace_and_stat_printing (void);
+void trace_pr_fn_class (HashLoc_T fnloc);
+
+void unknwn_function_class_confusion (void);
+void unknwn_literal_confusion (void);
+#ifdef UTF_8
+BufPointer_T upper_case_uni (BufType_T buf,
+ BufPointer_T bf_ptr,
+ BufPointer_T len);
+static inline
+void upper_case (BufType_T buf, BufPointer_T bf_ptr, BufPointer_T len)
+{
+ bf_ptr += upper_case_uni (buf, bf_ptr, len);
+}
+#else
+void upper_case (BufType_T buf,
+ BufPointer_T bf_ptr,
+ BufPointer_T len);
+#endif
+
+void von_name_ends_and_last_name_sta (void);
+Boolean_T von_token_found (void);
+
+void x_add_period (void);
+void x_change_case (void);
+void x_chr_to_int (void);
+void x_cite (void);
+void x_concatenate (void);
+void x_duplicate (void);
+void x_empty (void);
+void x_equals (void);
+void x_format_name (void);
+void x_gets (void);
+void x_greater_than (void);
+void x_int_to_chr (void);
+void x_int_to_str (void);
+void x_less_than (void);
+void x_minus (void);
+void x_missing (void);
+void x_num_names (void);
+void x_plus (void);
+void x_preamble (void);
+void x_purify (void);
+void x_quote (void);
+void x_substring (void);
+void x_swap (void);
+void x_text_length (void);
+void x_text_prefix (void);
+void x_type (void);
+void x_warning (void);
+void x_width (void);
+void x_write (void);
+void x_bit_and (void);
+void x_bit_or (void);
+#ifdef UTF_8
+void x_is_cjk_string (void);
+#endif
+
+
+/*
+** 8-bit support functions. To minimise the changes required to the
+** original BibTeX code in the bibtex-?.c modules, we redefine some key
+** functions here:
+**
+** IsUpper
+** IsLower
+** ToUpper
+** ToLower
+** char_less_than
+** char_greater_than
+*/
+#ifdef SUPPORT_8BIT
+
+#define IsUpper(c) (c8lowcase[c] != (c))
+#define IsLower(c) (c8upcase[c] != (c))
+#define ToUpper(c) (c8upcase[c])
+#define ToLower(c) (c8lowcase[c])
+
+#define char_less_than(char1, char2) (c8order[char1] < c8order[char2])
+#define char_greater_than(char1, char2) (c8order[char1] > c8order[char2])
+
+#else /* NOT SUPPORT_8BIT */
+
+#define IsUpper(c) ('A'<=(c) && (c) <='Z')
+#define IsLower(c) ('a'<=(c) && (c) <='z')
+#define ToUpper(c) (c - CASE_DIFFERENCE)
+#define ToLower(c) (c + CASE_DIFFERENCE)
+
+#define char_less_than(char1, char2) (char1 < char2)
+#define char_greater_than(char1, char2) (char1 > char2)
+
+#endif /* SUPPORT_8BIT */
+
+
+
+#endif /* __GBLPROCS_H__ */
diff --git a/biblio/bibtex/bibtex-x/gblvars.h b/biblio/bibtex/bibtex-x/gblvars.h
new file mode 100644
index 0000000000..bf17df7cae
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/gblvars.h
@@ -0,0 +1,474 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: gblvars.h
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module contains the declarations for all of the global
+** variables used by BibTeX. This module must be included by all of
+** the .C modules. The variables are declared in alphabetical order.
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: gblvars.h,v $
+** Revision 3.71 1996/08/18 20:47:30 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.6 1995/10/21 22:18:36 kempson
+** Added flag to support --wolfgang option.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:45 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifndef __GBLVARS_H__
+# define __GBLVARS_H__ 1
+
+
+/*-
+**----------------------------------------------------------------------------
+** If this file is included by BIBTEX.C, declare all of the variables,
+** otherwise just reference them as extern.
+**----------------------------------------------------------------------------
+*/
+#ifdef __BIBTEX_C__
+# define __EXTERN__
+#else /* NOT __BIBTEX_C__ */
+# define __EXTERN__ extern
+#endif /* __BIBTEX_C__ */
+
+
+__EXTERN__ Boolean_T all_entries;
+__EXTERN__ CiteNumber_T all_marker;
+__EXTERN__ Boolean_T alpha_found;
+__EXTERN__ Boolean_T and_found;
+__EXTERN__ Boolean_T at_bib_command;
+__EXTERN__ LongJumpBuf_T Aux_Done_Flag;
+__EXTERN__ Integer_T aux_name_length;
+__EXTERN__ AuxNumber_T aux_ptr;
+
+__EXTERN__ HashLoc_T b_add_period;
+__EXTERN__ HashLoc_T b_bit_and;
+__EXTERN__ HashLoc_T b_bit_or;
+__EXTERN__ HashLoc_T b_call_type;
+__EXTERN__ HashLoc_T b_change_case;
+__EXTERN__ HashLoc_T b_chr_to_int;
+__EXTERN__ HashLoc_T b_cite;
+__EXTERN__ HashLoc_T b_concatenate;
+__EXTERN__ HashLoc_T b_default;
+__EXTERN__ HashLoc_T b_duplicate;
+__EXTERN__ HashLoc_T b_empty;
+__EXTERN__ HashLoc_T b_equals;
+__EXTERN__ HashLoc_T b_format_name;
+__EXTERN__ HashLoc_T b_gets;
+__EXTERN__ HashLoc_T b_greater_than;
+__EXTERN__ HashLoc_T b_if;
+__EXTERN__ HashLoc_T b_int_to_chr;
+__EXTERN__ HashLoc_T b_int_to_str;
+__EXTERN__ HashLoc_T b_less_than;
+__EXTERN__ HashLoc_T b_minus;
+__EXTERN__ HashLoc_T b_missing;
+__EXTERN__ HashLoc_T b_newline;
+__EXTERN__ HashLoc_T b_num_names;
+__EXTERN__ HashLoc_T b_plus;
+__EXTERN__ HashLoc_T b_pop;
+__EXTERN__ HashLoc_T b_preamble;
+__EXTERN__ HashLoc_T b_purify;
+__EXTERN__ HashLoc_T b_quote;
+__EXTERN__ HashLoc_T b_skip;
+__EXTERN__ HashLoc_T b_stack;
+__EXTERN__ HashLoc_T b_substring;
+__EXTERN__ HashLoc_T b_swap;
+__EXTERN__ HashLoc_T b_text_length;
+__EXTERN__ HashLoc_T b_text_prefix;
+__EXTERN__ HashLoc_T b_top_stack;
+__EXTERN__ HashLoc_T b_type;
+__EXTERN__ HashLoc_T b_warning;
+__EXTERN__ HashLoc_T b_while;
+__EXTERN__ HashLoc_T b_width;
+__EXTERN__ HashLoc_T b_write;
+#ifdef UTF_8
+__EXTERN__ HashLoc_T b_cjk_string;
+#endif
+__EXTERN__ Integer_T bad;
+__EXTERN__ AlphaFile_T bbl_file;
+__EXTERN__ Integer_T bbl_line_num;
+__EXTERN__ Integer_T bib_brace_level;
+__EXTERN__ Integer_T bib_line_num;
+__EXTERN__ BibNumber_T bib_ptr;
+__EXTERN__ Boolean_T bib_seen;
+__EXTERN__ Integer_T brace_level;
+__EXTERN__ LongJumpBuf_T Bst_Done_Flag;
+__EXTERN__ AlphaFile_T bst_file;
+__EXTERN__ Integer_T bst_line_num;
+__EXTERN__ Boolean_T bst_seen;
+__EXTERN__ StrNumber_T bst_str;
+__EXTERN__ BufPointer_T buf_ptr1;
+__EXTERN__ BufPointer_T buf_ptr2;
+#ifdef KPATHSEA
+__EXTERN__ Integer_T max_print_line;
+#endif
+
+__EXTERN__ Boolean_T citation_seen;
+__EXTERN__ Boolean_T cite_found;
+__EXTERN__ Boolean_T cite_hash_found;
+__EXTERN__ HashLoc_T cite_loc;
+__EXTERN__ CiteNumber_T cite_parent_ptr;
+__EXTERN__ CiteNumber_T cite_ptr;
+__EXTERN__ CiteNumber_T cite_xptr;
+__EXTERN__ LongJumpBuf_T Close_Up_Shop_Flag;
+__EXTERN__ StrNumber_T cmd_str_ptr;
+__EXTERN__ BufPointer_T comma1;
+__EXTERN__ BufPointer_T comma2;
+__EXTERN__ Char_T **command_line_arg_strings;
+__EXTERN__ Integer_T command_num;
+__EXTERN__ HashLoc_T control_seq_loc;
+__EXTERN__ Integer8_T conversion_type;
+__EXTERN__ FieldLoc_T crossref_num;
+__EXTERN__ HashLoc_T cur_macro_loc;
+__EXTERN__ BufPointer_T cur_token;
+
+__EXTERN__ Boolean_T double_letter;
+__EXTERN__ HashLoc_T dummy_loc;
+
+__EXTERN__ Boolean_T end_of_group;
+__EXTERN__ Integer_T ent_chr_ptr;
+__EXTERN__ CiteNumber_T entry_cite_ptr;
+__EXTERN__ Boolean_T entry_seen;
+__EXTERN__ HashLoc_T entry_type_loc;
+__EXTERN__ Integer_T err_count;
+__EXTERN__ BufPointer_T ex_buf_length;
+__EXTERN__ BufPointer_T ex_buf_ptr;
+__EXTERN__ BufPointer_T ex_buf_xptr;
+__EXTERN__ BufPointer_T ex_buf_yptr;
+__EXTERN__ LongJumpBuf_T Exit_Program_Flag;
+
+__EXTERN__ FieldLoc_T field_end_ptr;
+__EXTERN__ HashLoc_T field_name_loc;
+__EXTERN__ FieldLoc_T field_parent_ptr;
+__EXTERN__ FieldLoc_T field_ptr;
+__EXTERN__ HashLoc_T field_val_loc;
+__EXTERN__ BufPointer_T first_end;
+__EXTERN__ BufPointer_T first_start;
+__EXTERN__ HashLoc_T fn_loc;
+
+__EXTERN__ Integer_T glob_chr_ptr;
+
+__EXTERN__ Boolean_T hash_found;
+__EXTERN__ Integer16_T hash_used;
+__EXTERN__ Integer8_T history;
+
+__EXTERN__ Integer_T impl_fn_num;
+__EXTERN__ IntEntLoc_T int_ent_ptr;
+
+__EXTERN__ BufPointer_T jr_end;
+
+__EXTERN__ BufPointer_T last;
+__EXTERN__ BufPointer_T last_end;
+__EXTERN__ BufPointer_T last_token;
+__EXTERN__ HashLoc_T lc_cite_loc;
+__EXTERN__ HashLoc_T lc_xcite_loc;
+__EXTERN__ HashLoc_T literal_loc;
+__EXTERN__ LitStkLoc_T lit_stk_ptr;
+__EXTERN__ AlphaFile_T log_file;
+
+__EXTERN__ HashLoc_T macro_def_loc;
+__EXTERN__ HashLoc_T macro_name_loc;
+__EXTERN__ Boolean_T mess_with_entries;
+
+__EXTERN__ BufPointer_T name_bf_ptr;
+__EXTERN__ BufPointer_T name_bf_xptr;
+__EXTERN__ BufPointer_T name_bf_yptr;
+__EXTERN__ Integer_T name_length;
+__EXTERN__ Integer_T name_ptr;
+__EXTERN__ Integer_T nm_brace_level;
+__EXTERN__ Boolean_T no_fields;
+__EXTERN__ BibNumber_T num_bib_files;
+__EXTERN__ CiteNumber_T num_cites;
+__EXTERN__ BufPointer_T num_commas;
+__EXTERN__ IntEntLoc_T num_ent_ints;
+__EXTERN__ StrEntLoc_T num_ent_strs;
+__EXTERN__ FieldLoc_T num_fields;
+__EXTERN__ Integer8_T num_glb_strs;
+__EXTERN__ Integer_T num_names;
+__EXTERN__ BibNumber_T num_preamble_strings;
+__EXTERN__ FieldLoc_T num_pre_defined_fields;
+__EXTERN__ BufPointer_T num_text_chars;
+__EXTERN__ BufPointer_T num_tokens;
+__EXTERN__ Integer8_T number_of_command_line_args;
+
+__EXTERN__ CiteNumber_T old_num_cites;
+__EXTERN__ BufPointer_T out_buf_length;
+__EXTERN__ BufPointer_T out_buf_ptr;
+
+__EXTERN__ PoolPointer_T pool_ptr;
+__EXTERN__ Integer_T pop_lit1;
+__EXTERN__ Integer_T pop_lit2;
+__EXTERN__ Integer_T pop_lit3;
+__EXTERN__ StkType_T pop_typ1;
+__EXTERN__ StkType_T pop_typ2;
+__EXTERN__ StkType_T pop_typ3;
+__EXTERN__ PoolPointer_T p_ptr1;
+__EXTERN__ PoolPointer_T p_ptr2;
+__EXTERN__ BibNumber_T preamble_ptr;
+__EXTERN__ Boolean_T preceding_white;
+__EXTERN__ HashLoc_T pre_def_loc;
+__EXTERN__ Boolean_T prev_colon;
+
+__EXTERN__ Boolean_T read_completed;
+__EXTERN__ Boolean_T reading_completed;
+__EXTERN__ Boolean_T read_performed;
+__EXTERN__ Boolean_T read_seen;
+__EXTERN__ ASCIICode_T right_outer_delim;
+__EXTERN__ ASCIICode_T right_str_delim;
+
+__EXTERN__ StrNumber_T s_aux_extension;
+__EXTERN__ StrNumber_T s_bbl_extension;
+__EXTERN__ StrNumber_T s_bib_extension;
+__EXTERN__ StrNumber_T s_bst_extension;
+__EXTERN__ StrNumber_T s_default;
+__EXTERN__ StrNumber_T s_l;
+__EXTERN__ StrNumber_T s_log_extension;
+__EXTERN__ StrNumber_T s_null;
+__EXTERN__ StrNumber_T s_t;
+__EXTERN__ StrNumber_T s_u;
+__EXTERN__ Integer8_T scan_result;
+__EXTERN__ CiteNumber_T sort_cite_ptr;
+__EXTERN__ StrEntLoc_T sort_key_num;
+__EXTERN__ Integer_T sp_brace_level;
+__EXTERN__ PoolPointer_T sp_end;
+__EXTERN__ PoolPointer_T sp_length;
+__EXTERN__ PoolPointer_T sp_ptr;
+__EXTERN__ PoolPointer_T sp_xptr1;
+__EXTERN__ PoolPointer_T sp_xptr2;
+__EXTERN__ PoolPointer_T sp2_length;
+__EXTERN__ Boolean_T store_entry;
+__EXTERN__ Boolean_T store_field;
+__EXTERN__ Boolean_T store_token;
+__EXTERN__ StrEntLoc_T str_ent_ptr;
+__EXTERN__ UChar_T str_glb_ptr;
+__EXTERN__ Integer_T string_width;
+__EXTERN__ StrNumber_T str_num;
+__EXTERN__ StrNumber_T str_ptr;
+__EXTERN__ BufPointer_T sv_ptr1;
+__EXTERN__ BufPointer_T sv_ptr2;
+
+__EXTERN__ Integer_T tmp_end_ptr;
+__EXTERN__ Integer_T tmp_ptr;
+__EXTERN__ Boolean_T to_be_written;
+__EXTERN__ Boolean_T token_starting;
+__EXTERN__ Integer_T token_value;
+__EXTERN__ StrNumber_T top_lev_str;
+__EXTERN__ Boolean_T type_exists;
+
+__EXTERN__ Boolean_T use_default;
+
+__EXTERN__ BufPointer_T von_end;
+__EXTERN__ BufPointer_T von_start;
+
+__EXTERN__ WizFnLoc_T wiz_def_ptr;
+__EXTERN__ WizFnLoc_T wiz_fn_ptr;
+__EXTERN__ HashLoc_T wiz_loc;
+
+#ifdef STAT
+__EXTERN__ HashLoc_T blt_in_loc[NUM_BLT_IN_FNS + 1];
+__EXTERN__ BltInRange_T blt_in_ptr;
+__EXTERN__ Integer_T execution_count[NUM_BLT_IN_FNS + 1];
+__EXTERN__ Integer_T total_ex_count;
+#endif /* STAT */
+
+
+/*-
+**----------------------------------------------------------------------------
+** STATIC GLOBAL ARRAYS DECLARED HERE
+**----------------------------------------------------------------------------
+*/
+__EXTERN__ AlphaFile_T aux_file[AUX_STACK_SIZE + 1];
+__EXTERN__ StrNumber_T aux_list[AUX_STACK_SIZE + 1];
+__EXTERN__ Integer_T aux_ln_stack[AUX_STACK_SIZE + 1];
+__EXTERN__ Integer_T char_width[LAST_LATIN_CHAR + 1];
+__EXTERN__ IDType_T id_class[LAST_ASCII_CHAR + 1];
+__EXTERN__ LexType_T lex_class[LAST_ASCII_CHAR + 1];
+__EXTERN__ unsigned char xchr[LAST_ASCII_CHAR + 1];
+__EXTERN__ ASCIICode_T xord[LAST_TEXT_CHAR + 1];
+
+#ifdef SUPPORT_8BIT
+/*
+** Special arrays to manage character set report.
+**
+** c8upcase - contains the lowercase equivalent for each character.
+** If a character has no lowercase equivalent (e.g.
+** because it's not a letter), the value is set to that of
+** the character.
+**
+** c8lowcase - contains the uppercase equivalent for each character
+** If a character has no uppercase equivalent (e.g.
+** because it's not a letter), the value is set to that of
+** the character.
+**
+** c8order - contains the sorting weight for each character. If a
+** character doesn't have a specified sorting weight, it
+** will be set to the default SORT_LAST to ensure that it
+** is sorted after any defined character.
+*/
+__EXTERN__ unsigned char c8upcase[LAST_TEXT_CHAR + 1];
+__EXTERN__ unsigned char c8lowcase[LAST_TEXT_CHAR + 1];
+__EXTERN__ int c8order[LAST_TEXT_CHAR + 1];
+#endif /* SUPPORT_8BIT */
+
+
+/*-
+**----------------------------------------------------------------------------
+** DYNAMICALLY ALLOCATED GLOBAL ARRAYS DECLARED HERE
+**----------------------------------------------------------------------------
+*/
+__EXTERN__ AlphaFile_T *bib_file;
+__EXTERN__ StrNumber_T *bib_list;
+__EXTERN__ ASCIICode_T *buffer;
+__EXTERN__ StrNumber_T *cite_info;
+__EXTERN__ StrNumber_T *cite_list;
+__EXTERN__ Boolean_T *entry_exists;
+__EXTERN__ Integer_T *entry_ints;
+__EXTERN__ ASCIICode_T *entry_strs;
+__EXTERN__ ASCIICode_T *ex_buf;
+__EXTERN__ StrNumber_T *field_info;
+__EXTERN__ FnClass_T *fn_type;
+__EXTERN__ Integer_T *glb_str_end;
+__EXTERN__ StrNumber_T *glb_str_ptr;
+__EXTERN__ ASCIICode_T *global_strs;
+__EXTERN__ StrIlk_T *hash_ilk;
+__EXTERN__ HashPointer_T *hash_next;
+__EXTERN__ StrNumber_T *hash_text;
+__EXTERN__ Integer_T *ilk_info;
+__EXTERN__ Integer_T *lit_stack;
+__EXTERN__ StkType_T *lit_stk_type;
+__EXTERN__ unsigned char *name_of_file;
+__EXTERN__ ASCIICode_T *name_sep_char;
+__EXTERN__ BufPointer_T *name_tok;
+__EXTERN__ ASCIICode_T *out_buf;
+__EXTERN__ StrNumber_T *s_preamble;
+__EXTERN__ ASCIICode_T *str_pool;
+__EXTERN__ PoolPointer_T *str_start;
+__EXTERN__ ASCIICode_T *sv_buffer;
+__EXTERN__ HashPtr2_T *type_list;
+__EXTERN__ HashPtr2_T *wiz_functions;
+
+
+/*-
+**----------------------------------------------------------------------------
+** Variables used to record the results of the command line parsing.
+**----------------------------------------------------------------------------
+*/
+#ifdef UTF_8
+__EXTERN__ Boolean_T Flag_language;
+__EXTERN__ char *Str_language;
+__EXTERN__ Boolean_T Flag_location;
+__EXTERN__ char *Str_location;
+__EXTERN__ UCollator *u_coll;
+#endif
+__EXTERN__ Boolean_T Flag_7bit;
+__EXTERN__ Boolean_T Flag_8bit;
+__EXTERN__ Boolean_T Flag_8bit_alpha;
+__EXTERN__ Boolean_T Flag_big;
+__EXTERN__ Boolean_T Flag_debug;
+__EXTERN__ Boolean_T Flag_huge;
+__EXTERN__ Boolean_T Flag_stats;
+__EXTERN__ Boolean_T Flag_trace;
+__EXTERN__ Boolean_T Flag_wolfgang;
+__EXTERN__ Integer_T M_min_crossrefs;
+__EXTERN__ Integer_T M_strings;
+__EXTERN__ char *Str_auxfile;
+__EXTERN__ char *Str_csfile;
+
+
+/*-
+**----------------------------------------------------------------------------
+** Variables used to hold the value of certain key capacity limits. The
+** values used to be #defined as the uppercase equivalent name, but can
+** now be set dynamically from the command line.
+**----------------------------------------------------------------------------
+*/
+__EXTERN__ Integer_T Buf_Size;
+__EXTERN__ Integer_T Ent_Str_Size;
+__EXTERN__ Integer_T Glob_Str_Size;
+__EXTERN__ Integer_T Hash_Prime;
+__EXTERN__ Integer_T Hash_Size;
+__EXTERN__ Integer_T Lit_Stk_Size;
+__EXTERN__ Integer_T Max_Bib_Files;
+__EXTERN__ Integer_T Max_Cites;
+__EXTERN__ Integer_T Max_Fields;
+__EXTERN__ Integer_T Max_Glob_Strs;
+__EXTERN__ Integer_T Max_Strings;
+__EXTERN__ Integer_T Min_Crossrefs;
+__EXTERN__ Integer_T Pool_Size;
+__EXTERN__ Integer_T Wiz_Fn_Space;
+#endif /* __GBLVARS.H__ */
diff --git a/biblio/bibtex/bibtex-x/os2.mak b/biblio/bibtex/bibtex-x/os2.mak
new file mode 100644
index 0000000000..2a26ca313b
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/os2.mak
@@ -0,0 +1,341 @@
+#############################################################################*
+##############################################################################
+##
+## MODULE
+##
+## $RCSfile: os2.mak,v $
+## $Revision: 3.71 $
+## $Date: 1996/08/18 20:37:06 $
+##
+## DESCRIPTION
+##
+## A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+## Unix and VMS. This C language implementation is based on the
+## original WEB source but it has been enhanced to support 8-bit input
+## characters and a very large processing capacity.
+##
+## For documentation describing how to use and build this program,
+## see the 00README.TXT file that accompanies this distribution.
+##
+## MODULE CONTENTS
+##
+## This is the BibTeX makefile to build an OS/2 32-bit executable
+## using the EMX development system. This file should be called
+## "os2.mak" and used with a command like:
+##
+## [C:\] make -f os2.mak bibtex
+##
+## If you omit the "bibtex" argument, the Makefile will display a list
+## of the supported targets.
+##
+## If you port BibTeX to a new environment or find that it works
+## unchanged in a new environment, please report back to the author
+## so that this file can be updated for everyone else.
+##
+## AUTHORS
+##
+## Original WEB translation to C, conversion to "big" (32-bit) capacity,
+## addition of run-time selectable capacity and 8-bit support extensions
+## by:
+##
+## Niel Kempson
+## Snowy Owl Systems Limited, Cheltenham, England
+## E-mail: kempson@snowyowl.co.uk
+##
+## 8-bit support extensions also by:
+##
+## Alejandro Aguilar-Sierra
+## Centro de Ciencias de la Atm\'osfera,
+## Universidad Nacional Autonoma de M\'exico, M\'exico
+## E-mail: asierra@servidor.unam.mx
+##
+## COPYRIGHT
+##
+## This implementation copyright (c) 1991-1996 by Niel Kempson
+## and copyright (c) 1995-1996 by Alejandro Aguilar-Sierra.
+##
+## 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+## In other words, you are welcome to use, share and improve this
+## program. You are forbidden to forbid anyone else to use, share
+## and improve what you give them. Help stamp out software-hoarding!
+##
+## ACKNOWLEDGEMENT
+##
+## The original BibTeX was written by Oren Patashnik using Donald
+## Knuth's WEB system. This format produces a PASCAL program for
+## execution and a TeX documented version of the source code. This
+## program started as a (manual) translation of the WEB source into C.
+##
+## CHANGE LOG
+##
+## $Log: os2.mak,v $
+## Revision 3.71 1996/08/18 20:37:06 kempson
+## Official release 3.71 (see HISTORY file for details).
+##
+## Revision 3.70 1996/04/08 10:17:58 kempson
+## Final documentation & cosmetic changes for official release 3.70.
+##
+## Revision 1.0 1995/10/21 21:52:44 kempson
+## Placed under RCS control
+##
+##############################################################################
+##############################################################################
+
+
+##############################################################################
+##############################################################################
+#
+# Start of local definitions for file types and compilation / linking. There
+# are three small sections to customise:
+#
+# BibTeX File Searching
+# - specifies the names of environment variables and paths to be used when
+# searching for input files
+#
+# Utility Programs
+# - specifies the names of programs to be used for simple functions
+#
+# Compiler/Linker
+# - specifies compiler/linker command lines
+#
+# If your system is already supported it should not be necessary to modify
+# any part of the Makefile except these three sections.
+#
+##############################################################################
+##############################################################################
+
+#-----------------------------------------------------------------------------
+# BIBTEX FILE SEARCHING
+#
+# The macros in this section define the environment variables and default
+# search paths that will be used by BibTeX. 8-bit BibTeX looks for input
+# files in three different steps as summarised below. As soon as 8-bit
+# BibTeX finds a matching file, it stops looking (i.e. only the first
+# matching file is used). In order, the three steps are:
+#
+# - look for the file in the current working directory.
+#
+# - if the appropriate environment variable has been set (e.g. BSTINPUT),
+# treat its value as a list of directories to be searched. Look for the
+# file in each of the directories in the list.
+#
+# - if the appropriate environment variable (e.g. BSTINPUT) has not been
+# set, use a predefined "fallback" path as a list of directories to be
+# searched.
+#
+# A search list consists of a number of directories separated by semicolons.
+#
+# The following entries must be defined:
+#
+# AUX_ENVVAR the name of the environment variable defining the path
+# to be searched for .aux files.
+#
+# AUX_INPUT_PATH the fallback path to be searched for .aux files.
+#
+# BIB_ENVVAR the name of the environment variable defining the path
+# to be searched for .bib files (e.g. BIBINPUT).
+#
+# BIB_INPUT_PATH the fallback path to be searched for .bib files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bib).
+#
+# BST_ENVVAR the name of the environment variable defining the path
+# to be searched for .bst files (e.g. BSTINPUT).
+#
+# BST_INPUT_PATH the fallback path to be searched for .bst files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bst).
+#
+# CSF_ENVVAR the name of the environment variable defining the path
+# to be searched for .csf files (e.g. CSFINPUT).
+#
+# CSF_INPUT_PATH the fallback path to be searched for .csf files
+# (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/csf).
+#
+# CSF_FILE_ENVVAR the name of the environment variable defining the
+# fallback CS file (e.g. BIBTEX_CSFILE).
+#
+# CSF_FILE_NAME the name of the fallback CS file to be used if one is
+# not specified on the command line and the above-named
+# environment variable is not defined (e.g. cp850lat.csf).
+#-----------------------------------------------------------------------------
+AUX_INPUT_ENVVAR =
+AUX_INPUT_PATH =
+
+BIB_INPUT_ENVVAR = BIBINPUT
+BIB_INPUT_PATH = c:/emtex/bibtex/bib
+
+BST_INPUT_ENVVAR = BSTINPUT
+BST_INPUT_PATH = c:/emtex/bibtex/bst
+
+CSF_INPUT_ENVVAR = CSFINPUT
+CSF_INPUT_PATH = c:/emtex/bibtex/csf
+
+CSF_FILE_ENVVAR = BIBTEX_CSFILE
+CSF_FILE_NAME = cp850lat.csf
+
+
+#-----------------------------------------------------------------------------
+# UTILITY PROGRAMS
+#
+# MAKE the command used to invoke Make to process this file.
+# As distributed, it is defined as "make -f os2.mak"
+#
+# RM rm program that won't complain (e.g. /bin/rm -f) if a
+# file is missing
+#-----------------------------------------------------------------------------
+MAKE = make -f os2.mak
+RM = -DEL
+
+
+#-----------------------------------------------------------------------------
+# COMPILER/LINKER
+#
+# CC the command used to invoke the C compiler
+# CFLAGS compiler command line flags to be used
+# CCDEFINES symbols to be #defined when compiling
+#
+# LD the command used to invoke the linker
+# LDFLAGS linker command line flags to be used
+# LDLIBS linker command line option to search the specified
+# library files
+#
+# EMX/GNU C compiler v0.9b
+#
+# Compiling: gcc -DMSDOS -Wall -Wconversion -Wno-char-subscripts
+# -funsigned-char -c BIBTEX.C
+#
+# -DOS2 we're building for OS/2
+# -Wall generate lots of warnings
+# -Wconversion warn about suspicious type conversions
+# -Wno-char-subscripts don't moan about character type subscripts
+# -funsigned-char unsigned chars
+# -c compile only
+#
+# Linking: gcc BIBTEX.O BIBTEX-1.O -o BIBTEX.EXE
+#
+# -o BIBTEX.EXE produce executable BIBTEX.EXE
+#
+#-----------------------------------------------------------------------------
+CC = gcc
+CFLAGS = -c -DOS2 -Wall -Wno-char-subscripts -funsigned-char
+CCDEFINES =
+LD = gcc
+LDFLAGS = -o $@
+LDLIBS =
+
+##############################################################################
+##############################################################################
+#
+# End of local definitions. You shouldn't need to change anything below.
+#
+##############################################################################
+##############################################################################
+
+
+##############################################################################
+# File types and default rule for compilation
+##############################################################################
+BIBTEX_DEFINES = -DSUPPORT_8BIT \
+ -DAUX_INPUT_ENVVAR=\"$(AUX_INPUT_ENVVAR)\" \
+ -DAUX_INPUT_PATH=\"$(AUX_INPUT_PATH)\" \
+ -DBIB_INPUT_ENVVAR=\"$(BIB_INPUT_ENVVAR)\" \
+ -DBIB_INPUT_PATH=\"$(BIB_INPUT_PATH)\" \
+ -DBST_INPUT_ENVVAR=\"$(BST_INPUT_ENVVAR)\" \
+ -DBST_INPUT_PATH=\"$(BST_INPUT_PATH)\" \
+ -DCSF_INPUT_ENVVAR=\"$(CSF_INPUT_ENVVAR)\" \
+ -DCSF_INPUT_PATH=\"$(CSF_INPUT_PATH)\" \
+ -DCSF_FILE_ENVVAR=\"$(CSF_FILE_ENVVAR)\" \
+ -DCSF_FILE_NAME=\"$(CSF_FILE_NAME)\"
+
+EXE = .exe
+O = .o
+
+.SUFFIXES: .c .h $(O) $(EXE)
+
+.c.o:
+ $(CC) $(CFLAGS) $(BIBTEX_DEFINES) $*.c
+
+
+##############################################################################
+# Target Groupings
+##############################################################################
+HDRFILES = bibtex.h datatype.h gblprocs.h gblvars.h sysdep.h \
+ getopt.h utils.h version.h
+
+OBJFILES = bibtex$(O) \
+ bibtex-1$(O) bibtex-2$(O) bibtex-3$(O) bibtex-4$(O) \
+ getopt$(O) getopt1$(O) utils$(O)
+
+EXEFILES = bibtex$(EXE)
+
+
+##############################################################################
+# Top level targets
+##############################################################################
+make:
+ @ echo You must specify what to make.
+ @ echo .
+ @ echo For example: $(MAKE) bibtex
+ @ echo .
+ @ echo Valid system targets are:
+ @ echo .
+ @ echo clean - delete $(O) files
+ @ echo veryclean - delete $(O) and $(EXE) files
+ @ echo .
+ @ echo bibtex - EMX/GNU C for OS/2
+
+clean:
+ @ echo Cleaning up ...
+ $(RM) bibtex$(O)
+ $(RM) bibtex-1$(O)
+ $(RM) bibtex-2$(O)
+ $(RM) bibtex-3$(O)
+ $(RM) bibtex-4$(O)
+ $(RM) getopt$(O)
+ $(RM) getopt1$(O)
+ $(RM) utils$(O)
+
+veryclean: clean
+ @ echo Really cleaning up ...
+ $(RM) bibtex$(EXE)
+
+bibtex: $(EXEFILES)
+ @ echo BibTeX built
+
+
+##############################################################################
+# Dependencies for executables.
+##############################################################################
+bibtex$(EXE): $(OBJFILES)
+ $(LD) $(OBJFILES) $(LFLAGS)
+
+##############################################################################
+# Dependencies for object files
+##############################################################################
+bibtex$(O): bibtex.c $(HDRFILES)
+
+bibtex-1$(O): bibtex-1.c $(HDRFILES)
+
+bibtex-2$(O): bibtex-2.c $(HDRFILES)
+
+bibtex-3$(O): bibtex-3.c $(HDRFILES)
+
+bibtex-4$(O): bibtex-4.c $(HDRFILES)
+
+getopt$(O): getopt.c getopt.h
+
+getopt1$(O): getopt1.c getopt.h
+
+utils$(O): utils.c $(HDRFILES)
diff --git a/biblio/bibtex/bibtex-x/sysdep.h b/biblio/bibtex/bibtex-x/sysdep.h
new file mode 100644
index 0000000000..e929dfbae9
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/sysdep.h
@@ -0,0 +1,305 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: sysdep.h
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module defines as many system dependent things as possible.
+** System / compiler dependent code should only appear in sysdep.h,
+** bibtex.c and utils.c. System dependent code should be delimited by
+** preprocessor conditionals. Look for:
+**
+** #ifdef MSDOS
+** #ifdef OS2
+** #ifdef UNIX
+** #ifdef VMS
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: sysdep.h,v $
+** Revision 3.71 1996/08/18 20:37:06 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.6 1995/10/21 22:13:13 kempson
+** Added support for DJGPP under MSDOS.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:46 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifndef __SYSDEP_H__
+# define __SYSDEP_H__ 1
+
+
+/*-
+**============================================================================
+** Include the relevant header files.
+**============================================================================
+*/
+#include <stdlib.h>
+#include <stdio.h>
+#include <setjmp.h>
+#include <string.h>
+#include <ctype.h>
+
+
+/*-
+**============================================================================
+** For each environment (MSDOS, OS/2, UNIX & VMS), the following
+** preprocessor macros must be defined:
+**
+** IMPLEMENTATION the implementation string reported by BibTeX when
+** the --version is specified.
+**
+** PATH_DELIM the character used to separate components of a
+** search path string.
+**
+** Note: usually ';' for DOS & OS/2, ':' for Unix
+** and ',' for VMS.
+**============================================================================
+*/
+#ifdef WIN32
+# ifdef _MSC_VER
+# define IMPLEMENTATION "Microsoft(R) C/C++ for Win32"
+# elif defined(__MINGW32__)
+# define IMPLEMENTATION "MinGW32 C/C++ for Win32"
+# else
+# define IMPLEMENTATION "Unknown C/C++ for Win32"
+# endif /* _MSC_VER */
+#endif
+
+#ifdef MSDOS
+
+# ifdef DJGPP
+# define IMPLEMENTATION "DJGPP/GNU C 32 bit bound for DOS"
+# else
+# define IMPLEMENTATION "EMX/GNU C 32 bit bound for DOS"
+# endif /* DJGPP */
+
+# define PATH_DELIM ';'
+#endif /* MSDOS */
+
+#ifdef OS2
+# define IMPLEMENTATION "EMX/GNU C 32 bit for OS/2"
+# define PATH_DELIM ';'
+#endif /* OS2 */
+
+#ifdef UNIX
+# ifndef IMPLEMENTATION
+# define IMPLEMENTATION "C for Unix"
+# endif
+# define PATH_DELIM ':'
+#endif /* UNIX */
+
+#ifdef VMS
+# define IMPLEMENTATION "GNU C for VMS"
+# define PATH_DELIM ','
+#endif /* VMS */
+
+
+/*-
+**============================================================================
+** Define the exit status values that should be returned to the operating
+** system.
+**============================================================================
+*/
+#ifdef VMS
+# define NORMAL_EXIT_STATUS 0x10000001L
+# define WARNING_EXIT_STATUS 0x10000000L
+# define ERROR_EXIT_STATUS 0x10000002L
+# define FATAL_EXIT_STATUS 0x10000004L
+#else /* NOT VMS */
+# define NORMAL_EXIT_STATUS 0
+# define WARNING_EXIT_STATUS 1
+# define ERROR_EXIT_STATUS 2
+# define FATAL_EXIT_STATUS 3
+#endif /* VMS */
+
+
+/*-
+**============================================================================
+** Some macros to satisfy ANSI C's strict (for C anyway) type checking.
+**============================================================================
+*/
+#define FPRINTF (void) fprintf
+#define FPUTC (void) fputc
+#define PRINTF (void) printf
+#define PUTC (void) putc
+#define SPRINTF (void) sprintf
+#define CHR(x) (x)
+
+
+/*-
+**============================================================================
+** Some macros to make the C code look more like the WEB from which it was
+** translated.
+**============================================================================
+*/
+#define BEGIN {
+#define END }
+#ifndef TRUE
+# define TRUE 1
+#endif
+#ifndef FALSE
+# define FALSE 0
+#endif
+#define REPEAT do
+#define UNTIL(X) while ( ! (X))
+#define DIV /
+#define MOD %
+
+
+/*-
+**============================================================================
+** WEB section number: 39
+** ~~~~~~~~~~~~~~~~~~~~
+** We implement path searching for the function |a_open_in|. If
+** |name_of_file| doesn't start with `\' then path names from the
+** appropriate path list are prepended until success or the end of the path
+** list is reached.
+**============================================================================
+*/
+#define NO_SEARCH_PATH 0
+#define AUX_FILE_SEARCH_PATH 1
+#define BIB_FILE_SEARCH_PATH 2
+#define BST_FILE_SEARCH_PATH 3
+#define CSF_FILE_SEARCH_PATH 4
+
+
+/*-
+**============================================================================
+** The Makefile specifies a number of preprocessor macros used to control
+** how BibTeX searches for input files. If any of them are undefined, an
+** error message will be issued by the C preprocessor. The macros
+** required are:
+**
+** AUX_INPUT_ENVVAR - environment variable specifying the search path for
+** .aux files
+** AUX_INPUT_PATH - fallback search path for .aux files
+** BIB_INPUT_ENVVAR - environment variable specifying the search path for
+** .bib files
+** BIB_INPUT_PATH - fallback search path for .bib files
+** BST_INPUT_ENVVAR - environment variable specifying the search path for
+** .bst files
+** BST_INPUT_PATH - fallback search path for .bst files
+** CSF_INPUT_ENVVAR - environment variable specifying the search path for
+** .csf files
+** CSF_INPUT_PATH - fallback search path for .csf files
+**
+** CSF_FILE_ENVVAR - environment variable specifying the default .csf file
+** CSF_FILE_NAME - fallback name of the default .csf file
+**============================================================================
+*/
+#ifndef KPATHSEA
+#ifndef AUX_INPUT_ENVVAR
+# error Macro 'AUX_INPUT_ENVVAR' has not been defined. Please check Makefile.
+#endif
+
+#ifndef AUX_INPUT_PATH
+# error Macro 'AUX_INPUT_PATH' has not been defined. Please check Makefile.
+#endif
+
+#ifndef BIB_INPUT_ENVVAR
+# error Macro 'BIB_INPUT_ENVVAR' has not been defined. Please check Makefile.
+#endif
+
+#ifndef BIB_INPUT_PATH
+# error Macro 'BIB_INPUT_PATH' has not been defined. Please check Makefile.
+#endif
+
+#ifndef BST_INPUT_ENVVAR
+# error Macro 'BST_INPUT_ENVVAR' has not been defined. Please check Makefile.
+#endif
+
+#ifndef BST_INPUT_PATH
+# error Macro 'BST_INPUT_PATH' has not been defined. Please check Makefile.
+#endif
+
+#ifndef CSF_INPUT_ENVVAR
+# error Macro 'CSF_INPUT_ENVVAR' has not been defined. Please check Makefile.
+#endif
+
+#ifndef CSF_INPUT_PATH
+# error Macro 'CSF_INPUT_PATH' has not been defined. Please check Makefile.
+#endif
+
+#ifndef CSF_FILE_ENVVAR
+# error Macro 'CSF_FILE_ENVVAR' has not been defined. Please check Makefile.
+#endif
+
+#ifndef CSF_FILE_NAME
+# error Macro 'CSF_FILE_NAME' has not been defined. Please check Makefile.
+#endif
+#endif /* ! KPATHSEA */
+
+
+#endif /* __SYSDEP_H__ */
diff --git a/biblio/bibtex/bibtex-x/tests/bibtex8-char.test b/biblio/bibtex/bibtex-x/tests/bibtex8-char.test
new file mode 100755
index 0000000000..06d5e41af3
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtex8-char.test
@@ -0,0 +1,48 @@
+#! /bin/sh -vx
+#
+# Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+# You may freely use, modify and/or distribute this file.
+
+test -d tests || mkdir -p tests
+
+rc=0
+
+TEXMFCNF=$srcdir/../kpathsea
+BSTINPUTS=$srcdir/tests:$srcdir/csf
+BIBINPUTS=$srcdir/tests
+export TEXMFCNF BSTINPUTS BIBINPUTS
+
+
+## test for add.period$
+cp $srcdir/tests/perioda.aux tests/xperioda.aux
+./bibtex8 tests/xperioda || rc=3
+diff $srcdir/tests/perioda.bbl tests/xperioda.bbl || rc=4
+
+## test for substring$
+cp $srcdir/tests/substra.aux tests/xsubstra.aux
+./bibtex8 tests/xsubstra || rc=5
+diff $srcdir/tests/substra.bbl tests/xsubstra.bbl || rc=6
+
+## test for text.length$, text.prefix$
+cp $srcdir/tests/txtprfxa.aux tests/xtxtprfxa.aux
+./bibtex8 tests/xtxtprfxa || rc=7
+diff $srcdir/tests/txtprfxa.bbl tests/xtxtprfxa.bbl || rc=8
+
+## test for width$
+cp $srcdir/tests/widtha.aux tests/xwidtha.aux
+./bibtex8 --csfile sort1.csf tests/xwidtha || rc=9
+diff $srcdir/tests/widtha.bbl tests/xwidtha.bbl || rc=10
+
+## test for chr.to.int$, int.to.str$, int.to.chr$
+cp $srcdir/tests/chara.aux tests/xchara.aux
+./bibtex8 tests/xchara || rc=11
+diff $srcdir/tests/chara.bbl tests/xchara.bbl || rc=12
+
+## test for num.names$, format.name$
+cp $srcdir/tests/namea.aux tests/xnamea.aux
+max_print_line=119 ./bibtex8 tests/xnamea || rc=13
+diff $srcdir/tests/namea.bbl tests/xnamea.bbl || rc=14
+
+
+exit $rc
+
diff --git a/biblio/bibtex/bibtex-x/tests/bibtex8-sort.test b/biblio/bibtex/bibtex-x/tests/bibtex8-sort.test
new file mode 100755
index 0000000000..9599b0a18f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtex8-sort.test
@@ -0,0 +1,36 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2010 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+# Using test data from Philipp Lehman <lehman@gmx.net>
+
+test -d tests || mkdir -p tests
+
+rc=0
+
+TEXMFCNF=$srcdir/../kpathsea
+BSTINPUTS=$srcdir/tests
+BIBINPUTS=$srcdir/tests
+export TEXMFCNF BSTINPUTS BIBINPUTS
+
+rm -f tests/xsort[123].bbl tests/xcase[123].bbl
+
+for i in 1 2 3; do
+
+## test for sorting and change.case$
+cp $srcdir/tests/sort.aux tests/xsort$i.aux
+./bibtex8 --csfile sort$i.csf tests/xsort$i || rc=1
+diff $srcdir/tests/sort$i.bbl tests/xsort$i.bbl || rc=2
+
+## test for change.case$
+cp $srcdir/tests/casea.aux tests/xcase$i.aux
+./bibtex8 --csfile sort$i.csf tests/xcase$i || rc=3
+diff $srcdir/tests/casea.bbl tests/xcase$i.bbl || rc=4
+
+done
+
+
+exit $rc
+
diff --git a/biblio/bibtex/bibtex-x/tests/bibtex8.test b/biblio/bibtex/bibtex-x/tests/bibtex8.test
new file mode 100755
index 0000000000..e263e77cd6
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtex8.test
@@ -0,0 +1,17 @@
+#! /bin/sh -vx
+# $Id: bibtex8.test 63257 2022-05-08 13:25:05Z takuji $
+# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2010 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+test -d tests || mkdir -p tests
+rm -f tests/xexampl.*
+
+cp $srcdir/../web2c/tests/exampl.aux tests/xexampl.aux
+
+TEXMFCNF=$srcdir/../kpathsea \
+ BSTINPUTS=$srcdir/../web2c/tests \
+ BIBINPUTS=$srcdir/../web2c/tests \
+ ./bibtex8 -7 tests/xexampl || test $? = 1 || exit 1
+diff $srcdir/tests/exampl.bbl tests/xexampl.bbl || exit 2
+
diff --git a/biblio/bibtex/bibtex-x/tests/bibtex8u-mem.test b/biblio/bibtex/bibtex-x/tests/bibtex8u-mem.test
new file mode 100755
index 0000000000..1993251531
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtex8u-mem.test
@@ -0,0 +1,77 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2010 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+# Using test data from Philipp Lehman <lehman@gmx.net>
+
+test -d tests || mkdir -p tests
+
+# Create bib data
+mk_bib () {
+ for i
+ do
+ for j in 0 1 2 3 4 5 6 7 8 9; do
+ for k in 0 1 2 3 4 5 6 7 8 9; do
+ for l in 0 1 2 3 4 5 6 7 8 9; do
+ cat <<EOF
+@Type{key$i$j$k$l,
+ field001 = {Value 001},
+ field002 = {Value 002},
+ field003 = {Value 003},
+ field004 = {Value 004},
+ field005 = {Value 005},
+ field006 = {Value 006},
+ field007 = {Value 007},
+ field008 = {Value 008},
+ field009 = {Value 009},
+ field010 = {Value 010}
+}
+
+EOF
+ done
+ done
+ done
+ done
+}
+
+# Create aux data
+mk_aux () {
+ cat <<EOF
+\relax
+\citation{*}
+\bibstyle{$1}
+\bibdata{memtest}
+EOF
+}
+
+for t in 1 2 3; do
+
+ mk_aux memdata$t >tests/memtest$t.aux
+
+ env=
+
+ case $t in
+ 1) mk_bib 0 >tests/memtest.bib;;
+ 2) mk_bib 1 >>tests/memtest.bib;;
+ 3) env='ent_str_size=2000 glob_str_size=2000';;
+ esac
+
+ echo "Running memtest$t ..."
+
+ eval $env \
+ TEXMFCNF=$srcdir/../kpathsea \
+ BSTINPUTS=$srcdir/../web2c/tests:$srcdir/csf \
+ BIBINPUTS=./tests \
+ ./bibtex8 tests/memtest$t || exit 1
+
+ cp -p tests/memtest$t.aux tests/memtestu$t.aux
+ eval $env \
+ TEXMFCNF=$srcdir/../kpathsea \
+ BSTINPUTS=$srcdir/../web2c/tests:$srcdir/csf \
+ BIBINPUTS=./tests \
+ ./bibtexu tests/memtestu$t || exit 2
+
+done
+
diff --git a/biblio/bibtex/bibtex-x/tests/bibtexu-basic.test b/biblio/bibtex/bibtex-x/tests/bibtexu-basic.test
new file mode 100755
index 0000000000..0db8e5f295
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtexu-basic.test
@@ -0,0 +1,25 @@
+#! /bin/sh -vx
+# $Id: bibtexu-yannis.test 51452 2019-06-25 01:28:47Z karl $
+# Public domain. Originally written by Karl Berry, 2021.
+
+test -d tests || mkdir -p tests
+
+testname=ubasic
+# due to lack of libpthread:
+# terminate called after throwing an instance of 'std::system_error'
+# what(): Unknown error -1
+# Aborted
+
+cp $srcdir/tests/$testname.aux tests/x$testname.aux || exit 1
+
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+BSTINPUTS=$srcdir/../tests/texmf; export BSTINPUTS
+BIBINPUTS=$srcdir/tests; export BIBINPUTS
+
+if ./bibtexu -t -d all tests/x$testname; then :; else
+ echo "*** bibtexu failed, tests/x$testname.blg is:" >&2
+ cat tests/x$testname.blg >&2
+ exit 1
+fi
+
+diff $srcdir/tests/$testname.bbl tests/x$testname.bbl || exit 1
diff --git a/biblio/bibtex/bibtex-x/tests/bibtexu-char.test b/biblio/bibtex/bibtex-x/tests/bibtexu-char.test
new file mode 100755
index 0000000000..727810c682
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtexu-char.test
@@ -0,0 +1,54 @@
+#! /bin/sh -vx
+#
+# Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+# You may freely use, modify and/or distribute this file.
+
+test -d tests || mkdir -p tests
+
+rc=0
+
+TEXMFCNF=$srcdir/../kpathsea
+BSTINPUTS=$srcdir/tests
+BIBINPUTS=$srcdir/tests
+export TEXMFCNF BSTINPUTS BIBINPUTS
+
+
+## test for add.period$
+cp $srcdir/tests/periodu.aux tests/xperiodu.aux
+./bibtexu tests/xperiodu || rc=3
+diff $srcdir/tests/periodu.bbl tests/xperiodu.bbl || rc=4
+
+## test for substring$
+cp $srcdir/tests/substru.aux tests/xsubstru.aux
+./bibtexu tests/xsubstru || rc=5
+diff $srcdir/tests/substru.bbl tests/xsubstru.bbl || rc=6
+
+## test for text.length$, text.prefix$
+cp $srcdir/tests/txtprfxu.aux tests/xtxtprfxu.aux
+./bibtexu tests/xtxtprfxu || rc=7
+diff $srcdir/tests/txtprfxu.bbl tests/xtxtprfxu.bbl || rc=8
+
+## test for width$
+## (FIXME) Greek, Cyrillic are not impremented yet
+cp $srcdir/tests/widthu.aux tests/xwidthu.aux
+./bibtexu tests/xwidthu || rc=9
+diff $srcdir/tests/widthu.bbl tests/xwidthu.bbl || rc=10
+
+## test for chr.to.int$, int.to.str$, int.to.chr$
+cp $srcdir/tests/charu.aux tests/xcharu.aux
+./bibtexu tests/xcharu || rc=11
+diff $srcdir/tests/charu.bbl tests/xcharu.bbl || rc=12
+
+## test for num.names$, format.name$
+cp $srcdir/tests/nameu.aux tests/xnameu.aux
+max_print_line=119 ./bibtexu tests/xnameu || rc=13
+diff $srcdir/tests/nameu.bbl tests/xnameu.bbl || rc=14
+
+## test for is.knj.str$
+cp $srcdir/tests/iscjku.aux tests/xiscjku.aux
+./bibtexu tests/xiscjku || rc=15
+diff $srcdir/tests/iscjku.bbl tests/xiscjku.bbl || rc=16
+
+
+exit $rc
+
diff --git a/biblio/bibtex/bibtex-x/tests/bibtexu-range.test b/biblio/bibtex/bibtex-x/tests/bibtexu-range.test
new file mode 100755
index 0000000000..de6f2e0fc8
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtexu-range.test
@@ -0,0 +1,22 @@
+#! /bin/sh -vx
+# $Id: bibtexu-range.test 59662 2021-06-20 22:56:11Z karl $
+# Public domain. Originally written by Karl Berry, 2021.
+
+test -d tests || mkdir -p tests
+
+testname=urange
+# Segmentation fault
+
+cp $srcdir/tests/$testname.aux tests/x$testname.aux
+
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+BSTINPUTS=$srcdir/../tests/texmf; export BSTINPUTS
+BIBINPUTS=$srcdir/tests; export BIBINPUTS
+
+if ./bibtexu -t -d all tests/x$testname; then :; else
+ echo "*** bibtexu failed, tests/x$testname.blg is:" >&2
+ cat tests/x$testname.blg >&2
+ exit 1
+fi
+
+diff $srcdir/tests/$testname.bbl tests/x$testname.bbl || exit 1
diff --git a/biblio/bibtex/bibtex-x/tests/bibtexu-sort.test b/biblio/bibtex/bibtex-x/tests/bibtexu-sort.test
new file mode 100755
index 0000000000..624d7fb48a
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtexu-sort.test
@@ -0,0 +1,36 @@
+#! /bin/sh -vx
+#
+# Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+# You may freely use, modify and/or distribute this file.
+
+test -d tests || mkdir -p tests
+
+rc=0
+
+TEXMFCNF=$srcdir/../kpathsea
+BSTINPUTS=$srcdir/tests
+BIBINPUTS=$srcdir/tests
+export TEXMFCNF BSTINPUTS BIBINPUTS
+
+rm -f tests/xsortu-*.bbl tests/xcaseu.bbl
+
+for loc in en az da fi tr; do
+
+## test for sorting and change.case$
+cp $srcdir/tests/sortu.aux tests/xsortu-$loc.aux
+./bibtexu -o $loc tests/xsortu-$loc || rc=1
+diff $srcdir/tests/sortu-$loc.bbl tests/xsortu-$loc.bbl || rc=2
+
+done
+
+
+## test for change.case$
+cp $srcdir/tests/caseu.aux tests/xcaseu.aux
+max_print_line=99 ./bibtexu tests/xcaseu || rc=3
+diff $srcdir/tests/caseu.bbl tests/xcaseu.bbl || rc=4
+
+
+exit $rc
+
+
+
diff --git a/biblio/bibtex/bibtex-x/tests/bibtexu-yannis.test b/biblio/bibtex/bibtex-x/tests/bibtexu-yannis.test
new file mode 100755
index 0000000000..7e2fd43e4e
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtexu-yannis.test
@@ -0,0 +1,23 @@
+#! /bin/sh -vx
+# $Id: bibtexu-yannis.test 60293 2021-08-21 13:42:52Z takuji $
+# Copyright 2019-2021 Karl Berry <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+# Some actual sorting needed.
+
+test -d tests || mkdir -p tests
+
+testname=yannis
+
+cp $srcdir/tests/$testname.aux tests/x$testname.aux || exit 1
+
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+BSTINPUTS=$srcdir/../web2c/tests; export BSTINPUTS
+BIBINPUTS=$srcdir/tests; export BIBINPUTS
+
+if ./bibtexu -t -d all -l fr -o fr tests/x$testname; then :; else
+ echo "*** bibtexu failed, tests/x$testname.blg is:" >&2
+ cat tests/x$testname.blg >&2
+ exit 1
+fi
+
+diff $srcdir/tests/$testname.bbl tests/x$testname.bbl || exit 1
diff --git a/biblio/bibtex/bibtex-x/tests/bibtexu.test b/biblio/bibtex/bibtex-x/tests/bibtexu.test
new file mode 100755
index 0000000000..d69dc5f656
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/bibtexu.test
@@ -0,0 +1,17 @@
+#! /bin/sh -vx
+# $Id: bibtexu.test 63257 2022-05-08 13:25:05Z takuji $
+# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2010 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+test -d tests || mkdir -p tests
+rm -f tests/xexampl.*
+
+cp $srcdir/../web2c/tests/exampl.aux tests/xexampl.aux
+
+TEXMFCNF=$srcdir/../kpathsea \
+ BSTINPUTS=$srcdir/../web2c/tests \
+ BIBINPUTS=$srcdir/../web2c/tests \
+ ./bibtexu tests/xexampl || test $? = 1 || exit 1
+diff $srcdir/tests/exampl.bbl tests/xexampl.bbl || exit 2
+
diff --git a/biblio/bibtex/bibtex-x/tests/casea.aux b/biblio/bibtex/bibtex-x/tests/casea.aux
new file mode 100644
index 0000000000..6c0ae9369a
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/casea.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testcase}
+\bibdata{testcasea}
diff --git a/biblio/bibtex/bibtex-x/tests/casea.bbl b/biblio/bibtex/bibtex-x/tests/casea.bbl
new file mode 100644
index 0000000000..8283ec0097
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/casea.bbl
@@ -0,0 +1,12 @@
+\section*{Test result}
+\begin{itemize}
+\item[~] ABC HIJ XYZ abc hij xyz {ACE} {ace}
+\item[u] ABC HIJ XYZ ABC HIJ XYZ {ACE} {ace}
+\item[l] abc hij xyz abc hij xyz {ACE} {ace}
+\item[t] Abc hij xyz abc hij xyz {ACE} {ace}
+\item[~] ÀÁÂ ÆÇÈ ÔÕÖ ØÙÚ ÜÝÞ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}
+\item[u] ÀÁÂ ÆÇÈ ÔÕÖ ØÙÚ ÜÝÞ ÀÁÂ ÆÇÈ ÔÕÖ ØÙÚ ÜÝÞ {ÆÇÈ} {æçè}
+\item[l] àáâ æçè ôõö øùú üýþ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}
+\item[t] Àáâ æçè ôõö øùú üýþ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/caseu.aux b/biblio/bibtex/bibtex-x/tests/caseu.aux
new file mode 100644
index 0000000000..bd03d76dbb
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/caseu.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testcase}
+\bibdata{testcaseu}
diff --git a/biblio/bibtex/bibtex-x/tests/caseu.bbl b/biblio/bibtex/bibtex-x/tests/caseu.bbl
new file mode 100644
index 0000000000..2391fbf5af
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/caseu.bbl
@@ -0,0 +1,52 @@
+\section*{Test result}
+\begin{itemize}
+\item[~] ÀàÆÇÈ ÔÕÖ ØÙÚ ÃœÃÞ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}
+\item[u] ÀàÆÇÈ ÔÕÖ ØÙÚ ÃœÃÞ ÀàÆÇÈ ÔÕÖ ØÙÚ ÃœÃÞ {ÆÇÈ} {æçè}
+\item[l] àáâ æçè ôõö øùú üýþ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}
+\item[t] Àáâ æçè ôõö øùú üýþ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}
+\item[~] ĀĂĄ IJĴĶ ĹĻĽ ŃŅŇ Äăą ijĵķ ĺļľ ńņň
+\item[u] ĀĂĄ IJĴĶ ĹĻĽ ŃŅŇ ĀĂĄ IJĴĶ ĹĻĽ ŃŅŇ
+\item[l] Äăą ijĵķ ĺļľ ńņň Äăą ijĵķ ĺļľ ńņň
+\item[t] Āăą ijĵķ ĺļľ ńņň Äăą ijĵķ ĺļľ ńņň
+\item[~] ABC HIJ XYZ abc hij xyz {ACE} {ace}
+\item[u] ABC HIJ XYZ ABC HIJ XYZ {ACE} {ace}
+\item[l] abc hij xyz abc hij xyz {ACE} {ace}
+\item[t] Abc hij xyz abc hij xyz {ACE} {ace}
+\item[~] SS S ß s
+\item[u] SS S SS S
+\item[l] ss s ß s
+\item[t] Ss s ß s
+\item[~] ŊŌŎ ŲŴŶ Ÿ ŹŻŽ Å‹ÅŠųŵŷ ÿ źżž
+\item[u] ŊŌŎ ŲŴŶ Ÿ ŹŻŽ ŊŌŎ ŲŴŶ Ÿ ŹŻŽ
+\item[l] Å‹ÅŠųŵŷ ÿ źżž Å‹ÅŠųŵŷ ÿ źżž
+\item[t] ÅŠÅŠųŵŷ ÿ źżž Å‹ÅŠųŵŷ ÿ źżž
+\item[~] ΑΒΓ ΠΡ ΣΤ ΧΨΩΪ αβγ Ï€Ï ÏƒÏ„ χψωϊ {ΑΠΣ} {απσ}
+\item[u] ΑΒΓ ΠΡ ΣΤ ΧΨΩΪ ΑΒΓ ΠΡ ΣΤ ΧΨΩΪ {ΑΠΣ} {απσ}
+\item[l] αβγ Ï€Ï ÏƒÏ„ χψωϊ αβγ Ï€Ï ÏƒÏ„ χψωϊ {ΑΠΣ} {απσ}
+\item[t] Αβγ Ï€Ï ÏƒÏ„ χψωϊ αβγ Ï€Ï ÏƒÏ„ χψωϊ {ΑΠΣ} {απσ}
+\item[~] ͰͲͶ ϘϚϜ ϪϬϮ Ï· Ϻ ͱͳͷ Ï™Ï›Ï Ï«Ï­Ï¯ ϸ Ï»
+\item[u] ͰͲͶ ϘϚϜ ϪϬϮ Ϸ Ϻ ͰͲͶ ϘϚϜ ϪϬϮ Ϸ Ϻ
+\item[l] ͱͳͷ Ï™Ï›Ï Ï«Ï­Ï¯ ϸ Ï» ͱͳͷ Ï™Ï›Ï Ï«Ï­Ï¯ ϸ Ï»
+\item[t] Ͱͳͷ Ï™Ï›Ï Ï«Ï­Ï¯ ϸ Ï» ͱͳͷ Ï™Ï›Ï Ï«Ï­Ï¯ ϸ Ï»
+\item[~] ÓÓ’Ó” ÓºÓ¼Ó¾ Ô€Ô‚Ô„ ÔªÔ¬Ô® Ó‘Ó“Ó• Ó»Ó½Ó¿ ÔÔƒÔ… Ô«Ô­Ô¯
+\item[u] ÓÓ’Ó” ÓºÓ¼Ó¾ Ô€Ô‚Ô„ ÔªÔ¬Ô® ÓÓ’Ó” ÓºÓ¼Ó¾ Ô€Ô‚Ô„ ÔªÔ¬Ô®
+\item[l] Ó‘Ó“Ó• Ó»Ó½Ó¿ ÔÔƒÔ… Ô«Ô­Ô¯ Ó‘Ó“Ó• Ó»Ó½Ó¿ ÔÔƒÔ… Ô«Ô­Ô¯
+\item[t] ÓÓ“Ó• Ó»Ó½Ó¿ ÔÔƒÔ… Ô«Ô­Ô¯ Ó‘Ó“Ó• Ó»Ó½Ó¿ ÔÔƒÔ… Ô«Ô­Ô¯
+\item[~] ÐБВ ОП РС ЭЮЯ абв оп Ñ€Ñ ÑÑŽÑ {ÐРЯ} {апÑ}
+\item[u] ÐБВ ОП РС ЭЮЯ ÐБВ ОП РС ЭЮЯ {ÐРЯ} {апÑ}
+\item[l] абв оп Ñ€Ñ ÑÑŽÑ Ð°Ð±Ð² оп Ñ€Ñ ÑÑŽÑ {ÐРЯ} {апÑ}
+\item[t] Ðбв оп Ñ€Ñ ÑÑŽÑ Ð°Ð±Ð² оп Ñ€Ñ ÑÑŽÑ {ÐРЯ} {апÑ}
+\item[~] ЀÐЂЃЄЅІЇЈЉЊЋЌÐÐŽÐ ÑёђѓєѕіїјљњћќÑўџ
+\item[u] ЀÐЂЃЄЅІЇЈЉЊЋЌÐЎРЀÐЂЃЄЅІЇЈЉЊЋЌÐÐŽÐ
+\item[l] ÑёђѓєѕіїјљњћќÑўџ ÑёђѓєѕіїјљњћќÑўџ
+\item[t] ЀёђѓєѕіїјљњћќÑўџ ÑёђѓєѕіїјљњћќÑўџ
+\item[~] ѠѢѤ ѼѾҀ ҊҌҎ ÒºÒ¼Ò¾ ѡѣѥ Ñ½Ñ¿Ò Ò‹ÒÒ Ò»Ò½Ò¿
+\item[u] ѠѢѤ ѼѾҀ ҊҌҎ ҺҼҾ ѠѢѤ ѼѾҀ ҊҌҎ ҺҼҾ
+\item[l] ѡѣѥ Ñ½Ñ¿Ò Ò‹ÒÒ Ò»Ò½Ò¿ ѡѣѥ Ñ½Ñ¿Ò Ò‹ÒÒ Ò»Ò½Ò¿
+\item[t] Ѡѣѥ Ñ½Ñ¿Ò Ò‹ÒÒ Ò»Ò½Ò¿ ѡѣѥ Ñ½Ñ¿Ò Ò‹ÒÒ Ò»Ò½Ò¿
+\item[~] Ó€ ÓÓƒÓ… Ó‰Ó‹Ó Ó Ó‚Ó„Ó† ӊӌӎ
+\item[u] Ó€ ÓÓƒÓ… Ó‰Ó‹Ó Ó€ ÓÓƒÓ… Ó‰Ó‹Ó
+\item[l] Ó Ó‚Ó„Ó† ӊӌӎ Ó Ó‚Ó„Ó† ӊӌӎ
+\item[t] Ó€ Ó‚Ó„Ó† ӊӌӎ Ó Ó‚Ó„Ó† ӊӌӎ
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/chara.aux b/biblio/bibtex/bibtex-x/tests/chara.aux
new file mode 100644
index 0000000000..218274582d
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/chara.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testchar}
+\bibdata{testchara}
diff --git a/biblio/bibtex/bibtex-x/tests/chara.bbl b/biblio/bibtex/bibtex-x/tests/chara.bbl
new file mode 100644
index 0000000000..292ab63881
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/chara.bbl
@@ -0,0 +1,20 @@
+\section*{Test result}
+\begin{itemize}
+\item A i2str: 65 i2chr: A
+\item Å i2str: 197 i2chr: Å
+\item C i2str: 67 i2chr: C
+\item Ç i2str: 199 i2chr: Ç
+\item D i2str: 68 i2chr: D
+\item E i2str: 69 i2chr: E
+\item È i2str: 200 i2chr: È
+\item i i2str: 105 i2chr: i
+\item î i2str: 238 i2chr: î
+\item o i2str: 111 i2chr: o
+\item u i2str: 117 i2chr: u
+\item ü i2str: 252 i2chr: ü
+\item y i2str: 121 i2chr: y
+\item Ð i2str: 208 i2chr: Ð
+\item ø i2str: 248 i2chr: ø
+\item ý i2str: 253 i2chr: ý
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/charu.aux b/biblio/bibtex/bibtex-x/tests/charu.aux
new file mode 100644
index 0000000000..76f1a5c09e
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/charu.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testchar}
+\bibdata{testcharu}
diff --git a/biblio/bibtex/bibtex-x/tests/charu.bbl b/biblio/bibtex/bibtex-x/tests/charu.bbl
new file mode 100644
index 0000000000..b268af5eb9
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/charu.bbl
@@ -0,0 +1,53 @@
+\section*{Test result}
+\begin{itemize}
+\item   i2str: 12288 i2chr:  
+\item A i2str: 65 i2chr: A
+\item Ã… i2str: 197 i2chr: Ã…
+\item C i2str: 67 i2chr: C
+\item Ç i2str: 199 i2chr: Ç
+\item D i2str: 68 i2chr: D
+\item E i2str: 69 i2chr: E
+\item È i2str: 200 i2chr: È
+\item i i2str: 105 i2chr: i
+\item î i2str: 238 i2chr: î
+\item o i2str: 111 i2chr: o
+\item u i2str: 117 i2chr: u
+\item ü i2str: 252 i2chr: ü
+\item y i2str: 121 i2chr: y
+\item ý i2str: 253 i2chr: ý
+\item à i2str: 208 i2chr: Ã
+\item ø i2str: 248 i2chr: ø
+\item Α i2str: 913 i2chr: Α
+\item Î’ i2str: 914 i2chr: Î’
+\item Γ i2str: 915 i2chr: Γ
+\item χ i2str: 967 i2chr: χ
+\item ψ i2str: 968 i2chr: ψ
+\item ω i2str: 969 i2chr: ω
+\item Ð i2str: 1040 i2chr: Ð
+\item Б i2str: 1041 i2chr: Б
+\item Ð’ i2str: 1042 i2chr: Ð’
+\item Ñ i2str: 1101 i2chr: Ñ
+\item ÑŽ i2str: 1102 i2chr: ÑŽ
+\item Ñ i2str: 1103 i2chr: Ñ
+\item ê°€ i2str: 44032 i2chr: ê°€
+\item 글 i2str: 44544 i2chr: 글
+\item 나 i2str: 45208 i2chr: 나
+\item 다 i2str: 45796 i2chr: 다
+\item í… i2str: 53581 i2chr: í…
+\item 한 i2str: 54620 i2chr: 한
+\item ã‚ i2str: 12354 i2chr: ã‚
+\item ã„ i2str: 12356 i2chr: ã„
+\item ㆠi2str: 12358 i2chr: ã†
+\item ヱ i2str: 12529 i2chr: ヱ
+\item ヲ i2str: 12530 i2chr: ヲ
+\item ン i2str: 12531 i2chr: ン
+\item 一 i2str: 19968 i2chr: 一
+\item 三 i2str: 19977 i2chr: 三
+\item 二 i2str: 20108 i2chr: 二
+\item 𠮟 i2str: 134047 i2chr: 𠮟
+\item 拾 i2str: 25342 i2chr: 拾
+\item æŒ i2str: 25420 i2chr: æŒ
+\item 玖 i2str: 29590 i2chr: 玖
+\item 𥱠i2str: 153457 i2chr: ð¥±
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/exampl.bbl b/biblio/bibtex/bibtex-x/tests/exampl.bbl
new file mode 100644
index 0000000000..442298f763
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/exampl.bbl
@@ -0,0 +1,212 @@
+\newcommand{\noopsort}[1]{} \newcommand{\printfirst}[2]{#1}
+ \newcommand{\singleletter}[1]{#1} \newcommand{\switchargs}[2]{#2#1}
+\begin{thebibliography}{}
+
+\bibitem[Aamport, 1986a]{article-minimal}
+Aamport, L.~A. (1986a).
+\newblock The gnats and gnus document preparation system.
+\newblock {\em \mbox{G-Animal's} Journal}.
+
+\bibitem[Aamport, 1986b]{article-full}
+Aamport, L.~A. (1986b).
+\newblock The gnats and gnus document preparation system.
+\newblock {\em \mbox{G-Animal's} Journal}, 41(7):73+.
+\newblock This is a full ARTICLE entry.
+
+\bibitem[Aamport, 1986c]{article-crossref}
+Aamport, L.~A. (1986c).
+\newblock The gnats and gnus document preparation system.
+\newblock In \cite{whole-journal}, pages 73+.
+\newblock This is a cross-referencing ARTICLE entry.
+
+\bibitem[GAJ, 1986]{whole-journal}
+GAJ (1986).
+\newblock {\em \mbox{G-Animal's} Journal}, 41(7).
+\newblock The entire issue is devoted to gnats and gnus (this entry is a
+ cross-referenced ARTICLE (journal)).
+
+\bibitem[Knuth, 1968]{whole-set}
+Knuth, D.~E. ({\noopsort{1973a}}{\switchargs{--90}{1968}}).
+\newblock {\em The Art of Computer Programming}.
+\newblock Four volumes. Addison-Wesley.
+\newblock Seven volumes planned (this is a cross-referenced set of BOOKs).
+
+\bibitem[Knuth, 1973a]{inbook-minimal}
+Knuth, D.~E. ({\noopsort{1973b}}1973a).
+\newblock {\em Fundamental Algorithms}, chapter 1.2.
+\newblock Addison-Wesley.
+
+\bibitem[Knuth, 1973b]{inbook-full}
+Knuth, D.~E. ({\noopsort{1973b}}1973b).
+\newblock {\em Fundamental Algorithms}, volume~1 of {\em The Art of Computer
+ Programming}, section 1.2, pages 10--119.
+\newblock Addison-Wesley, Reading, Massachusetts, second edition.
+\newblock This is a full INBOOK entry.
+
+\bibitem[Knuth, 1973c]{inbook-crossref}
+Knuth, D.~E. ({\noopsort{1973b}}1973c).
+\newblock {\em Fundamental Algorithms}, section 1.2.
+\newblock Volume~1 of \cite{whole-set}, second edition.
+\newblock This is a cross-referencing INBOOK entry.
+
+\bibitem[Knuth, 1981a]{book-full}
+Knuth, D.~E. ({\noopsort{1973c}}1981a).
+\newblock {\em Seminumerical Algorithms}, volume~2 of {\em The Art of Computer
+ Programming}.
+\newblock Addison-Wesley, Reading, Massachusetts, second edition.
+\newblock This is a full BOOK entry.
+
+\bibitem[Knuth, 1981b]{book-minimal}
+Knuth, D.~E. ({\noopsort{1973c}}1981b).
+\newblock {\em Seminumerical Algorithms}.
+\newblock Addison-Wesley.
+
+\bibitem[Knuth, 1981c]{book-crossref}
+Knuth, D.~E. ({\noopsort{1973c}}1981c).
+\newblock {\em Seminumerical Algorithms}.
+\newblock Volume~2 of \cite{whole-set}, second edition.
+\newblock This is a cross-referencing BOOK entry.
+
+\bibitem[Kn{\printfirst{v}{1987}}, ]{booklet-minimal}
+Kn{\printfirst{v}{1987}}.
+\newblock The programming of computer art.
+
+\bibitem[Knvth, 1988]{booklet-full}
+Knvth, J.~C. (1988).
+\newblock The programming of computer art.
+\newblock Vernier Art Center, Stanford, California.
+\newblock This is a full BOOKLET entry.
+
+\bibitem[Lincoll, 1977a]{incollection-minimal}
+Lincoll, D.~D. (1977a).
+\newblock Semigroups of recurrences.
+\newblock In {\em High Speed Computer and Algorithm Organization}. Academic
+ Press.
+
+\bibitem[Lincoll, 1977b]{incollection-full}
+Lincoll, D.~D. (1977b).
+\newblock Semigroups of recurrences.
+\newblock In Lipcoll, D.~J., Lawrie, D.~H., and Sameh, A.~H., editors, {\em
+ High Speed Computer and Algorithm Organization}, number~23 in Fast Computers,
+ part~3, pages 179--183. Academic Press, New York, third edition.
+\newblock This is a full INCOLLECTION entry.
+
+\bibitem[Lincoll, 1977c]{incollection-crossref}
+Lincoll, D.~D. (1977c).
+\newblock Semigroups of recurrences.
+\newblock In \cite{whole-collection}, pages 179--183.
+\newblock This is a cross-referencing INCOLLECTION entry.
+
+\bibitem[Lipcoll et~al., 1977]{whole-collection}
+Lipcoll, D.~J., Lawrie, D.~H., and Sameh, A.~H., editors (1977).
+\newblock {\em High Speed Computer and Algorithm Organization}.
+\newblock Number~23 in Fast Computers. Academic Press, New York, third edition.
+\newblock This is a cross-referenced BOOK (collection) entry.
+
+\bibitem[Manmaker, ]{manual-minimal}
+Manmaker.
+\newblock {\em The Definitive Computer Manual}.
+
+\bibitem[Manmaker, 1986]{manual-full}
+Manmaker, L. (1986).
+\newblock {\em The Definitive Computer Manual}.
+\newblock Chips-R-Us, Silicon Valley, silver edition.
+\newblock This is a full MANUAL entry.
+
+\bibitem[Masterly, 1988a]{mastersthesis-minimal}
+Masterly, {\'{E}}. (1988a).
+\newblock Mastering thesis writing.
+\newblock Master's thesis, Stanford University.
+
+\bibitem[Masterly, 1988b]{mastersthesis-full}
+Masterly, {\'{E}}. (1988b).
+\newblock Mastering thesis writing.
+\newblock Master's project, Stanford University, English Department.
+\newblock This is a full MASTERSTHESIS entry.
+
+\bibitem[Missilany, ]{misc-minimal}
+Missilany.
+\newblock This is a minimal MISC entry.
+
+\bibitem[Missilany, 1984]{misc-full}
+Missilany, J.-B. (1984).
+\newblock Handing out random pamphlets in airports.
+\newblock Handed out at O'Hare.
+\newblock This is a full MISC entry.
+
+\bibitem[Oaho et~al., 1983a]{inproceedings-minimal}
+Oaho, A.~V., Ullman, J.~D., and Yannakakis, M. (1983a).
+\newblock On notions of information transfer in {VLSI} circuits.
+\newblock In {\em Proc. Fifteenth Annual ACM Symposium on the Theory of
+ Computing}.
+
+\bibitem[Oaho et~al., 1983b]{inproceedings-full}
+Oaho, A.~V., Ullman, J.~D., and Yannakakis, M. (1983b).
+\newblock On notions of information transfer in {VLSI} circuits.
+\newblock In Oz, W.~V. and Yannakakis, M., editors, {\em Proc. Fifteenth Annual
+ ACM Symposium on the Theory of Computing}, number~17 in All ACM Conferences,
+ pages 133--139, Boston. The OX Association for Computing Machinery, Academic
+ Press.
+\newblock This is a full INPROCEDINGS entry.
+
+\bibitem[Oaho et~al., 1983c]{inproceedings-crossref}
+Oaho, A.~V., Ullman, J.~D., and Yannakakis, M. (1983c).
+\newblock On notions of information transfer in {VLSI} circuits.
+\newblock In \cite{whole-proceedings}, pages 133--139.
+\newblock This is a cross-referencing INPROCEEDINGS entry.
+
+\bibitem[OX{\singleletter{stoc}}, 1983a]{whole-proceedings}
+OX{\singleletter{stoc}} (1983a).
+\newblock {\em Proc. Fifteenth Annual Symposium on the Theory of Computing},
+ Boston. The OX Association for Computing Machinery.
+\newblock This is a cross-referenced PROCEEDINGS.
+
+\bibitem[OX{\singleletter{stoc}}, 1983b]{proceedings-minimal}
+OX{\singleletter{stoc}} (1983b).
+\newblock {\em Proc. Fifteenth Annual Symposium on the Theory of Computing}.
+
+\bibitem[Oz and Yannakakis, 1983]{proceedings-full}
+Oz, W.~V. and Yannakakis, M., editors (1983).
+\newblock {\em Proc. Fifteenth Annual Symposium on the Theory of Computing},
+ number~17 in All ACM Conferences, Boston. The OX Association for Computing
+ Machinery, Academic Press.
+\newblock This is a full PROCEEDINGS entry.
+
+\bibitem[Phony-Baloney, 1988a]{phdthesis-minimal}
+Phony-Baloney, F.~P. (1988a).
+\newblock {\em Fighting Fire with Fire: Festooning {F}rench Phrases}.
+\newblock PhD thesis, Fanstord University.
+
+\bibitem[Phony-Baloney, 1988b]{phdthesis-full}
+Phony-Baloney, F.~P. (1988b).
+\newblock {\em Fighting Fire with Fire: Festooning {F}rench Phrases}.
+\newblock {PhD} dissertation, Fanstord University, Department of French.
+\newblock This is a full PHDTHESIS entry.
+
+\bibitem[Terrific, 1988]{techreport-minimal}
+Terrific, T. (1988).
+\newblock An {$O(n \log n / \! \log\log n)$} sorting algorithm.
+\newblock Technical report, Fanstord University.
+
+\bibitem[T{\'{e}}rrific, 1988]{techreport-full}
+T{\'{e}}rrific, T. (1988).
+\newblock An {$O(n \log n / \! \log\log n)$} sorting algorithm.
+\newblock Wishful Research Result~7, Fanstord University, Computer Science
+ Department, Fanstord, California.
+\newblock This is a full TECHREPORT entry.
+
+\bibitem[{\"{U}}nderwood et~al., ]{unpublished-minimal}
+{\"{U}}nderwood, U., {\~N}et, N., and {\={P}}ot, P.
+\newblock Lower bounds for wishful research results.
+\newblock Talk at Fanstord University (this is a minimal UNPUBLISHED entry).
+
+\bibitem[{\"{U}}nderwood et~al., 1988]{unpublished-full}
+{\"{U}}nderwood, U., {\~N}et, N., and {\={P}}ot, P. (1988).
+\newblock Lower bounds for wishful research results.
+\newblock Talk at Fanstord University (this is a full UNPUBLISHED entry).
+
+\bibitem[Volume-2, ]{random-note-crossref}
+Volume-2.
+\newblock Volume~2 is listed under Knuth \cite{book-full}.
+
+\end{thebibliography}
diff --git a/biblio/bibtex/bibtex-x/tests/iscjku.aux b/biblio/bibtex/bibtex-x/tests/iscjku.aux
new file mode 100644
index 0000000000..fc8b3de7e9
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/iscjku.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testiscjk}
+\bibdata{testiscjku}
diff --git a/biblio/bibtex/bibtex-x/tests/iscjku.bbl b/biblio/bibtex/bibtex-x/tests/iscjku.bbl
new file mode 100644
index 0000000000..9e23ac2be5
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/iscjku.bbl
@@ -0,0 +1,63 @@
+\section*{Test result}
+\begin{itemize}
+\item ︵︶︷︸︹︺︻︼︽︾: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ㈀ãˆãˆ‚㈠㈡㈢㈱ã‹ã‹‘ã‹’: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ï¼ : 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ï¼¼: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item #: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item 𚿰𚿱𚿲𚿳𚿵𚿶𚿷𚿸: 2 2 hz:0 kn:2 hg:0 bp:0 misc:0
+\item â– : 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item â–³: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item â—‡: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item â—: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ☀: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item â˜: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ☂: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ☃: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ⿰⿱⿲⿳⿴⿵⿶⿷⿸⿹⿺⿻: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ㇀ã‡ã‡‚㇃㇠㇡㇢㇣: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item 〄々〆〇ã€ã€‘〠〽: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ㆑㆒㆓㆔㆙㆚㆛㆜ã†ã†žã†Ÿ: 2048 2048 hz:0 kn:0 hg:0 bp:0
+ misc:2048
+\item ¢£§©®±µ¶: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ï¿¡: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ₩: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ï¼: 2048 2048 hz:0 kn:0 hg:0 bp:0 misc:2048
+\item ï¼™: 2048 2048 hz:0 kn:0 hg:0 bp:0 misc:2048
+\item A: 2048 2048 hz:0 kn:0 hg:0 bp:0 misc:2048
+\item ACDE iouy: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ĂĆĎĘ ĭőůŷ: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ÅÇÃÈ îøüý: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item mix 나비è´è¶: 5 5 hz:1 kn:0 hg:4 bp:0 misc:0
+\item mix ã¦ãµë‚˜ë¹„è´è¶ã„ㄨˊㄉㄧã„ËŠâ¾: 2063 2063 hz:1 kn:2 hg:4
+ bp:8 misc:2048
+\item mix ã¦ãµè´è¶: 3 3 hz:1 kn:2 hg:0 bp:0 misc:0
+\item mix è´è¶ã„ㄨˊㄉㄧã„ËŠâ¾: 2057 2057 hz:1 kn:0 hg:0 bp:8 misc:2048
+\item z: 2048 2048 hz:0 kn:0 hg:0 bp:0 misc:2048
+\item ΑΒΓΔφχψω: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ÐБВГьÑÑŽÑ: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item á„€á„ᄂᄃᇶᇷᇸᇹ: 4 4 hz:0 kn:0 hg:4 bp:0 misc:0
+\item ㄱㄲㄳㄴㆉㆊㆋㆌ: 4 4 hz:0 kn:0 hg:4 bp:0 misc:0
+\item 가나다ë¼ë§ˆí•œê¸€í…: 4 4 hz:0 kn:0 hg:4 bp:0 misc:0
+\item ꥠꥡꥢꥣꥤꥥꥦꥧ: 4 4 hz:0 kn:0 hg:4 bp:0 misc:0
+\item ힰힱힲힳힴힵힶힷ: 4 4 hz:0 kn:0 hg:4 bp:0 misc:0
+\item ã‚ã„ã†ãˆã‚ã‚‘ã‚’ã‚“: 2 2 hz:0 kn:2 hg:0 bp:0 misc:0
+\item アイウエヰヱヲン: 2 2 hz:0 kn:2 hg:0 bp:0 misc:0
+\item アイウワヲï¾: 2 2 hz:0 kn:2 hg:0 bp:0 misc:0
+\item ㌀ãŒãŒ‚㌃㌄㌅㌆㌇: 0 0 hz:0 kn:0 hg:0 bp:0 misc:0
+\item ㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ: 2 2 hz:0 kn:2 hg:0 bp:0
+ misc:0
+\item ð›…𛅑𛅒𛅤𛅥𛅦𛅧: 2 2 hz:0 kn:2 hg:0 bp:0 misc:0
+\item 𛄀ð›„𛄂𛄃𛄄𛄅𛄆𛄇: 2 2 hz:0 kn:2 hg:0 bp:0 misc:0
+\item ㄅㄆㄇㄈㄦㄧㄨㄩ: 8 8 hz:0 kn:0 hg:0 bp:8 misc:0
+\item ㆠㆡㆢㆣㆤㆥㆦㆧ: 8 8 hz:0 kn:0 hg:0 bp:8 misc:0
+\item 一二三四漆æŒçŽ–拾: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
+\item 𪜀ðªœðªœ‚𪜃𪜄𪜅𪜆𪜇: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
+\item ã‚㒵㓛ãžãŸ¢ã†ã¬ã®ã”«ãš‘ã§: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
+\item âºâº’⺓⺔⺖⺗⺘⺙⻭⻯⻲: 2048 2048 hz:0 kn:0 hg:0 bp:0
+ misc:2048
+\item 櫛杓𦥑𠮟𠀋𡈽ð¥±ð¡š´: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
+\item 豈ï¤ï¤‚賈滑串句龜: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
+\item â¿Žâ¿â¿â¿‘⿒⿓⿔⿕: 2048 2048 hz:0 kn:0 hg:0 bp:0 misc:2048
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/ltnbib.bib b/biblio/bibtex/bibtex-x/tests/ltnbib.bib
new file mode 100644
index 0000000000..a31f62838f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/ltnbib.bib
@@ -0,0 +1,67 @@
+% Bibliography test file
+% Public domain.
+% You may freely use, modify and/or distribute this file.
+
+@string{PH = "Prentice Hall"}
+@string{ÉG = {Éditions Gallimard}}
+
+%% ASCII only
+%% author: Given_name Middle_name Family_name
+@book{kernighan78,
+ author = "Brian Wilson Kernighan and Dennis MacAlistair Ritchie",
+ title = "The C Programming Language, 1st edition",
+ publisher = "Prentice Hall",
+ year = 1978,
+}
+
+%% author: Family_name, Given_name Middle_name
+@book{kernighan88,
+ author = "Kernighan, Brian W. AND Ritchie, Dennis M.",
+ title = "The C Programming Language, 2nd edition",
+ publisher = PH,
+ year = 1988,
+}
+
+%% name with Jr
+@book{king63,
+ author = "King, Jr., Martin Luther",
+ title = "I Have a Dream!",
+ year = 1963,
+}
+
+%% Latin-1, name with nobiliary particle "von"
+@book{weber1821,
+ author = "Carl Maria von Weber",
+ title = "Der Freischütz",
+ year = 1821,
+}
+
+%% Latin-1, name with nobiliary particle "de"
+@book{Lautréamont,
+ author = "Conte de Lautréamont",
+ title = "Les Chants de Maldoror",
+ year = 1868,
+}
+
+%% Latin-1
+@book{Proust,
+ author = "Marcel Proust",
+ title = "À la recherche du temps perdu",
+ publisher = "Éditions Gallimard",
+ year = "1913--1927",
+}
+
+@book{BrüderGrimm,
+ author = "Brüder Grimm",
+ title = "Kinder- und Hausmärchen",
+ publisher = "Reimer",
+ year = 1812,
+}
+
+@book{Camus,
+ author = "Albert Camus",
+ title = "L'Étranger",
+ publisher = ÉG,
+ year = 1942,
+}
+
diff --git a/biblio/bibtex/bibtex-x/tests/mlgbib.bib b/biblio/bibtex/bibtex-x/tests/mlgbib.bib
new file mode 100644
index 0000000000..c8d415850c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/mlgbib.bib
@@ -0,0 +1,159 @@
+% Bibliography test file
+% Public domain.
+% You may freely use, modify and/or distribute this file.
+
+@string{PH = "Prentice Hall"}
+@string{ÉG = {Éditions Gallimard}}
+@string{技評 = {技術評論社}}
+
+%% ASCII only
+%% author: Given_name Middle_name Family_name
+@book{kernighan78,
+ author = "Brian Wilson Kernighan and Dennis MacAlistair Ritchie",
+ title = "The C Programming Language, 1st edition",
+ publisher = "Prentice Hall",
+ year = 1978,
+}
+
+%% author: Family_name, Given_name Middle_name
+@book{kernighan88,
+ author = "Kernighan, Brian W. AND Ritchie, Dennis M.",
+ title = "The C Programming Language, 2nd edition",
+ publisher = PH,
+ year = 1988,
+}
+
+%% name with Jr
+@book{king63,
+ author = "King, Jr., Martin Luther",
+ title = "I Have a Dream!",
+ year = 1963,
+}
+
+%% Latin-1, name with nobiliary particle "von"
+@book{weber1821,
+ author = "Carl Maria von Weber",
+ title = "Der Freischütz",
+ year = 1821,
+}
+
+%% Japanese, separate names by "ã€", " "
+@book{bibunsho8,
+ author = {å¥¥æ‘ ã€€æ™´å½¦ã€é»’木  裕介},
+ title = {[改訂第8版] LaTeX2ε美文書作æˆå…¥é–€},
+ year = 2020,
+ publisher = 技評,
+ language = {ja},
+ yomi = {okumura}
+}
+
+%% Japanese, separate names by ",", " "
+@book{bibunsho7,
+ author = {奥æ‘ 晴彦,黒木  裕介},
+ title = {[改訂第7版] LaTeX2ε美文書作æˆå…¥é–€},
+ year = 2017,
+ publisher = {技術評論社},
+ language = {ja},
+ yomi = {okumura}
+}
+
+%% Japanese
+@book{bibunsho6,
+ author = {å¥¥æ‘ æ™´å½¦ and 黒木 裕介},
+ title = {[改訂第6版] LaTeX2ε美文書作æˆå…¥é–€},
+ year = 2013,
+ publisher = {技術評論社},
+ language = {ja},
+ yomi = {okumura}
+}
+
+%% Korean Hangul
+@book{kim-siseup,
+ author = "김 시습",
+ yomi = "Kim Si-seup",
+ title = "금오신화 (金鰲新話)",
+ year = "1494?",
+}
+
+%% Chinese
+@book{CaoXueQin,
+ author = "曹 雪芹",
+ title = "紅樓夢",
+}
+
+@book{JinPingMei,
+ author = "蘭陵笑笑生",
+ title = "金瓶梅",
+ year = 1610,
+}
+
+
+%% separate names by "ã€", "," and " "
+@book{test:misc0,
+ author = "テスト ã¦ã™ã¨ and åç„¡ 権兵衛〠何 誰兵衛, ç„¡å  戦士 and John Smith and Schmidt, Hans",
+ yomi = "Tesuto Tesuto and Gombe Nanashi〠Darebe Nan,Senshi Mumei and John Smith and Hans Schmidt",
+ title = "UTF-8版jbibtexã®ãƒ†ã‚¹ãƒˆ: ±αã€Î²ï¼ŒÎ³ã€‚§абв.",
+ publisher = "Ω出版社",
+ year = 2007,
+}
+
+%% characters over BMP
+%% A BOM U+FEFF (Zero Width No-Break Space) is placed between "å…¨" and "ã§"
+@book{髙島𠮷野,
+ author = {髙島 𠮷野ã€ð¡ˆ½æ–¹ã€€ 𠀋之助},
+ yomi = "Yoshino Takashima",
+ title = "ð ·¡ã¨ð©¸½ã¨â€¼å¤¢ã‹å¹»ã‹â‡",
+ publisher = "安全ã§ä¸€",
+ isbn = "0-000000-00-0",
+ year = 2007,
+}
+
+%% Latin-1, name with nobiliary particle "de"
+@book{Lautréamont,
+ author = "Conte de Lautréamont",
+ title = "Les Chants de Maldoror",
+ year = 1868,
+}
+
+%% Latin-1
+@book{Proust,
+ author = "Marcel Proust",
+ title = "À la recherche du temps perdu",
+ publisher = "Éditions Gallimard",
+ year = "1913--1927",
+}
+
+@book{BrüderGrimm,
+ author = "Brüder Grimm",
+ title = "Kinder- und Hausmärchen",
+ publisher = "Reimer",
+ year = 1812,
+}
+
+@book{Camus,
+ author = "Albert Camus",
+ title = "L'Étranger",
+ publisher = ÉG,
+ year = 1942,
+}
+
+%% Cyrillic
+@book{Булгаков,
+ author = "Булгаков, Михаил ÐфанаÑьевич",
+ title = "МаÑтер и Маргарита",
+ year = 1966,
+}
+
+@book{ГоÌголь,
+ author = "МикоÌла ВаÑиÌльович ГоÌголь",
+ title = "ÐоÑ",
+ year = 1836,
+}
+
+%% Greek
+@book{Διογένης,
+ author = "Διογένης ΛαέÏτιος",
+ title = "Βίοι καὶ γνῶμαι τῶν á¼Î½ φιλοσοφίᾳ εá½Î´Î¿ÎºÎ¹Î¼Î·ÏƒÎ¬Î½Ï„ων",
+ year = "3C",
+}
+
diff --git a/biblio/bibtex/bibtex-x/tests/namea.aux b/biblio/bibtex/bibtex-x/tests/namea.aux
new file mode 100644
index 0000000000..579873640a
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/namea.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testname}
+\bibdata{ltnbib}
diff --git a/biblio/bibtex/bibtex-x/tests/namea.bbl b/biblio/bibtex/bibtex-x/tests/namea.bbl
new file mode 100644
index 0000000000..401c5adc0d
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/namea.bbl
@@ -0,0 +1,32 @@
+\section*{Test result}
+\begin{itemize}
+\item Albert Camus
+ [1] {ff} Albert {ll} Camus {vv} {jj}
+ | AlbertCamus | Albert Camus | Camus, A. | A.~Camus
+\item Brian Wilson Kernighan and Dennis MacAlistair Ritchie
+ [1] {ff} Brian~Wilson {ll} Kernighan {vv} {jj}
+ | Brian~WilsonKernighan | Brian~Wilson Kernighan | Kernighan, B.~W. | B.~W. Kernighan
+ [2] {ff} Dennis~MacAlistair {ll} Ritchie {vv} {jj}
+ | Dennis~MacAlistairRitchie | Dennis~MacAlistair Ritchie | Ritchie, D.~M. | D.~M. Ritchie
+\item Brüder Grimm
+ [1] {ff} Brüder {ll} Grimm {vv} {jj}
+ | BrüderGrimm | Brüder Grimm | Grimm, B. | B.~Grimm
+\item Carl Maria von Weber
+ [1] {ff} Carl~Maria {ll} Weber {vv} von {jj}
+ | Carl~MariavonWeber | Carl~Maria von Weber | von Weber, C.~M. | C.~M. v.~Weber
+\item Conte de Lautréamont
+ [1] {ff} Conte {ll} Lautréamont {vv} de {jj}
+ | ContedeLautréamont | Conte de Lautréamont | de~Lautréamont, C. | C.~d.~Lautréamont
+\item Kernighan, Brian W. AND Ritchie, Dennis M.
+ [1] {ff} Brian~W. {ll} Kernighan {vv} {jj}
+ | Brian~W.Kernighan | Brian~W. Kernighan | Kernighan, B.~W. | B.~W. Kernighan
+ [2] {ff} Dennis~M. {ll} Ritchie {vv} {jj}
+ | Dennis~M.Ritchie | Dennis~M. Ritchie | Ritchie, D.~M. | D.~M. Ritchie
+\item King, Jr., Martin Luther
+ [1] {ff} Martin~Luther {ll} King {vv} {jj} Jr.
+ | Martin~LutherKingJr. | Martin~Luther King Jr. | King, Jr., M.~L. | M.~L. King, Jr.
+\item Marcel Proust
+ [1] {ff} Marcel {ll} Proust {vv} {jj}
+ | MarcelProust | Marcel Proust | Proust, M. | M.~Proust
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/nameu.aux b/biblio/bibtex/bibtex-x/tests/nameu.aux
new file mode 100644
index 0000000000..61c5df1d5b
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/nameu.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testname}
+\bibdata{mlgbib}
diff --git a/biblio/bibtex/bibtex-x/tests/nameu.bbl b/biblio/bibtex/bibtex-x/tests/nameu.bbl
new file mode 100644
index 0000000000..7115360ff7
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/nameu.bbl
@@ -0,0 +1,85 @@
+\section*{Test result}
+\begin{itemize}
+\item Albert Camus
+ [1] {ff} Albert {ll} Camus {vv} {jj}
+ | AlbertCamus | Albert Camus | Camus, A. | A.~Camus
+\item Brian Wilson Kernighan and Dennis MacAlistair Ritchie
+ [1] {ff} Brian~Wilson {ll} Kernighan {vv} {jj}
+ | Brian~WilsonKernighan | Brian~Wilson Kernighan | Kernighan, B.~W. | B.~W. Kernighan
+ [2] {ff} Dennis~MacAlistair {ll} Ritchie {vv} {jj}
+ | Dennis~MacAlistairRitchie | Dennis~MacAlistair Ritchie | Ritchie, D.~M. | D.~M. Ritchie
+\item Brüder Grimm
+ [1] {ff} Brüder {ll} Grimm {vv} {jj}
+ | BrüderGrimm | Brüder Grimm | Grimm, B. | B.~Grimm
+\item Carl Maria von Weber
+ [1] {ff} Carl~Maria {ll} Weber {vv} von {jj}
+ | Carl~MariavonWeber | Carl~Maria von Weber | von Weber, C.~M. | C.~M. v.~Weber
+\item Conte de Lautréamont
+ [1] {ff} Conte {ll} Lautréamont {vv} de {jj}
+ | ContedeLautréamont | Conte de Lautréamont | de~Lautréamont, C. | C.~d.~Lautréamont
+\item Kernighan, Brian W. AND Ritchie, Dennis M.
+ [1] {ff} Brian~W. {ll} Kernighan {vv} {jj}
+ | Brian~W.Kernighan | Brian~W. Kernighan | Kernighan, B.~W. | B.~W. Kernighan
+ [2] {ff} Dennis~M. {ll} Ritchie {vv} {jj}
+ | Dennis~M.Ritchie | Dennis~M. Ritchie | Ritchie, D.~M. | D.~M. Ritchie
+\item King, Jr., Martin Luther
+ [1] {ff} Martin~Luther {ll} King {vv} {jj} Jr.
+ | Martin~LutherKingJr. | Martin~Luther King Jr. | King, Jr., M.~L. | M.~L. King, Jr.
+\item Marcel Proust
+ [1] {ff} Marcel {ll} Proust {vv} {jj}
+ | MarcelProust | Marcel Proust | Proust, M. | M.~Proust
+\item Διογένης ΛαέÏτιος
+ [1] {ff} Διογένης {ll} ΛαέÏτιος {vv} {jj}
+ | ΔιογένηςΛαέÏτιος | Διογένης ΛαέÏτιος | ΛαέÏτιος, Δ. | Δ. ΛαέÏτιος
+\item Булгаков, Михаил ÐфанаÑьевич
+ [1] {ff} Михаил~ÐфанаÑьевич {ll} Булгаков {vv} {jj}
+ | Михаил~ÐфанаÑьевичБулгаков | Михаил~ÐфанаÑьевич Булгаков |
+ Булгаков, Ðœ.~Ð. | Ðœ.~Ð. Булгаков
+\item МикоÌла ВаÑиÌльович ГоÌголь
+ [1] {ff} МикоÌла~ВаÑиÌльович {ll} ГоÌголь {vv} {jj}
+ | МикоÌла~ВаÑиÌльовичГоÌголь | МикоÌла~ВаÑиÌльович ГоÌголь |
+ ГоÌголь, Ðœ.~Ð’. | Ðœ.~Ð’. ГоÌголь
+\item 김 시습
+ [1] {ff} 김 {ll} 시습 {vv} {jj}
+ | 김시습 | 김 시습 | 시습, 김. | 김. 시습
+\item テスト ã¦ã™ã¨ and åç„¡ 権兵衛〠何 誰兵衛, ç„¡å  戦士 and John Smith and Schmidt, Hans
+ [1] {ff} テスト {ll} ã¦ã™ã¨ {vv} {jj}
+ | テストã¦ã™ã¨ | テスト ã¦ã™ã¨ | ã¦ã™ã¨, テ. | テ. ã¦ã™ã¨
+ [2] {ff} åç„¡ {ll} 権兵衛 {vv} {jj}
+ | å無権兵衛 | åç„¡ 権兵衛 | 権兵衛, å. | å. 権兵衛
+ [3] {ff} 何 {ll} 誰兵衛 {vv} {jj}
+ | 何誰兵衛 | 何 誰兵衛 | 誰兵衛, 何. | 何. 誰兵衛
+ [4] {ff} ç„¡å {ll} 戦士 {vv} {jj}
+ | ç„¡å戦士 | ç„¡å 戦士 | 戦士, ç„¡. | ç„¡. 戦士
+ [5] {ff} John {ll} Smith {vv} {jj}
+ | JohnSmith | John Smith | Smith, J. | J.~Smith
+ [6] {ff} Hans {ll} Schmidt {vv} {jj}
+ | HansSchmidt | Hans Schmidt | Schmidt, H. | H.~Schmidt
+\item 奥æ‘ 晴彦,黒木  裕介
+ [1] {ff} å¥¥æ‘ {ll} 晴彦 {vv} {jj}
+ | 奥æ‘晴彦 | å¥¥æ‘ æ™´å½¦ | 晴彦, 奥. | 奥. 晴彦
+ [2] {ff} 黒木 {ll} 裕介 {vv} {jj}
+ | 黒木裕介 | 黒木 裕介 | 裕介, 黒. | 黒. 裕介
+\item å¥¥æ‘ ã€€æ™´å½¦ã€é»’木  裕介
+ [1] {ff} å¥¥æ‘ {ll} 晴彦 {vv} {jj}
+ | 奥æ‘晴彦 | å¥¥æ‘ æ™´å½¦ | 晴彦, 奥. | 奥. 晴彦
+ [2] {ff} 黒木 {ll} 裕介 {vv} {jj}
+ | 黒木裕介 | 黒木 裕介 | 裕介, 黒. | 黒. 裕介
+\item å¥¥æ‘ æ™´å½¦ and 黒木 裕介
+ [1] {ff} å¥¥æ‘ {ll} 晴彦 {vv} {jj}
+ | 奥æ‘晴彦 | å¥¥æ‘ æ™´å½¦ | 晴彦, 奥. | 奥. 晴彦
+ [2] {ff} 黒木 {ll} 裕介 {vv} {jj}
+ | 黒木裕介 | 黒木 裕介 | 裕介, 黒. | 黒. 裕介
+\item 曹 雪芹
+ [1] {ff} 曹 {ll} 雪芹 {vv} {jj}
+ | 曹雪芹 | 曹 雪芹 | 雪芹, 曹. | 曹. 雪芹
+\item 蘭陵笑笑生
+ [1] {ff} {ll} 蘭陵笑笑生 {vv} {jj}
+ | 蘭陵笑笑生 | 蘭陵笑笑生 | 蘭陵笑笑生 | 蘭陵笑笑生
+\item 髙島 𠮷野ã€ð¡ˆ½æ–¹ã€€ 𠀋之助
+ [1] {ff} 髙島 {ll} 𠮷野 {vv} {jj}
+ | 髙島𠮷野 | 髙島 𠮷野 | 𠮷野, 髙. | 髙. 𠮷野
+ [2] {ff} 𡈽方 {ll} 𠀋之助 {vv} {jj}
+ | 𡈽方𠀋之助 | 𡈽方 𠀋之助 | 𠀋之助, 𡈽. | 𡈽. 𠀋之助
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/perioda.aux b/biblio/bibtex/bibtex-x/tests/perioda.aux
new file mode 100644
index 0000000000..a2d909eb7f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/perioda.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testperiod}
+\bibdata{testperioda}
diff --git a/biblio/bibtex/bibtex-x/tests/perioda.bbl b/biblio/bibtex/bibtex-x/tests/perioda.bbl
new file mode 100644
index 0000000000..b240df41b3
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/perioda.bbl
@@ -0,0 +1,18 @@
+\section*{Test result}
+\begin{itemize}
+\item[~~] ABC xyz
+\item[ap] ABC xyz.
+\item[~~] ABC xyz.
+\item[ap] ABC xyz.
+\item[~~] ABC xyz!
+\item[ap] ABC xyz!
+\item[~~] ABC xyz?
+\item[ap] ABC xyz?
+\item[~~] ABC xyz,
+\item[ap] ABC xyz,.
+\item[~~] ABC {xyz!}
+\item[ap] ABC {xyz!}
+\item[~~] ABC {{xyz?}}
+\item[ap] ABC {{xyz?}}
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/periodu.aux b/biblio/bibtex/bibtex-x/tests/periodu.aux
new file mode 100644
index 0000000000..5378057320
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/periodu.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testperiod}
+\bibdata{testperiodu}
diff --git a/biblio/bibtex/bibtex-x/tests/periodu.bbl b/biblio/bibtex/bibtex-x/tests/periodu.bbl
new file mode 100644
index 0000000000..8672593a22
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/periodu.bbl
@@ -0,0 +1,64 @@
+\section*{Test result}
+\begin{itemize}
+\item[~~] ABC xyz
+\item[ap] ABC xyz.
+\item[~~] ABC xyz!
+\item[ap] ABC xyz!
+\item[~~] ABC xyz,
+\item[ap] ABC xyz,.
+\item[~~] ABC xyz.
+\item[ap] ABC xyz.
+\item[~~] ABC xyz?
+\item[ap] ABC xyz?
+\item[~~] ABC {xyz!}
+\item[ap] ABC {xyz!}
+\item[~~] ABC {{xyz?}}
+\item[ap] ABC {{xyz?}}
+\item[~~] ÐБВ {{ÑÑŽÑ?}}
+\item[ap] ÐБВ {{ÑÑŽÑ?}}
+\item[~~] ÐБВ {ÑÑŽÑ!}
+\item[ap] ÐБВ {ÑÑŽÑ!}
+\item[~~] ÐБВ ÑÑŽÑ
+\item[ap] ÐБВ ÑÑŽÑ.
+\item[~~] ÐБВ ÑÑŽÑ!
+\item[ap] ÐБВ ÑÑŽÑ!
+\item[~~] ÐБВ ÑÑŽÑ,
+\item[ap] ÐБВ ÑÑŽÑ,.
+\item[~~] ÐБВ ÑÑŽÑ.
+\item[ap] ÐБВ ÑÑŽÑ.
+\item[~~] ÐБВ ÑÑŽÑ?
+\item[ap] ÐБВ ÑÑŽÑ?
+\item[~~] ã‚ã„ã†ã‚{{{{ãŠã‚“â‡}}}}
+\item[ap] ã‚ã„ã†ã‚{{{{ãŠã‚“â‡}}}}
+\item[~~] ã‚ã„ã†ã‚{{{ãŠã‚“‼}}}
+\item[ap] ã‚ã„ã†ã‚{{{ãŠã‚“‼}}}
+\item[~~] ã‚ã„ã†ã‚{{ãŠã‚“?}}
+\item[ap] ã‚ã„ã†ã‚{{ãŠã‚“?}}
+\item[~~] ã‚ã„ã†ã‚{ãŠã‚“ï¼}
+\item[ap] ã‚ã„ã†ã‚{ãŠã‚“ï¼}
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“.
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“,
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“,.
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“ã€
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“ã€.
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“ï¼
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“ï¼
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“‼
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“‼
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“â‰
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“â‰
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“?
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“?
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“âˆ
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“âˆ
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“â‡
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“â‡
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“‽
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“‽
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“.
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“.
+\item[~~] ã‚ã„ã†ã‚ãŠã‚“。
+\item[ap] ã‚ã„ã†ã‚ãŠã‚“。
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sort.aux b/biblio/bibtex/bibtex-x/tests/sort.aux
new file mode 100644
index 0000000000..8b9b435001
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sort.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{teststyle}
+\bibdata{testdata}
diff --git a/biblio/bibtex/bibtex-x/tests/sort1.bbl b/biblio/bibtex/bibtex-x/tests/sort1.bbl
new file mode 100644
index 0000000000..4cee697749
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sort1.bbl
@@ -0,0 +1,15 @@
+\section*{Test result}
+\begin{itemize}
+\item Aa AA aa
+\item Åå ÅÅ åå
+\item Ää ÄÄ ää
+\item Bb BB bb
+\item Cc CC cc
+\item Oo OO oo
+\item Øø ØØ øø
+\item Öö ÖÖ öö
+\item Xx XX xx
+\item Yy YY yy
+\item Zz ZZ zz
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sort1.csf b/biblio/bibtex/bibtex-x/tests/sort1.csf
new file mode 100644
index 0000000000..8871a2eb4b
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sort1.csf
@@ -0,0 +1,275 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% CHARACTER SET: ISO 8859-1 (Latin 1)
+%
+% ISO 8859-1 is the system character set used by Unix/X Windows and
+% MS Windows.
+%
+% SORTING ORDER: Latin countries
+%
+% Alphabetical sorting order of Aa..Zz (including accented characters).
+%
+% This is a BibTeX Codepage and Sort definition file (CSF). It is
+% used to define the 8-bit character set used by BibTeX and the
+% order in which those characters should be sorted. The file
+% format is documented below this header section.
+%
+% This file will only work with the 8-bit implementation of BibTeX
+% written by Niel Kempson and Alejandro Aguilar-Sierra:
+%
+% http://www.ctan.org/tex-archive/biblio/bibtex/8-bit/
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% FILE FORMAT
+%
+% The codepage and sorting order (CS) file defines how BibTeX will treat an
+% 8-bit character set, specifically which characters are to be treated as
+% letters, the upper/lower case relationships between characters, and the
+% sorting order of characters.
+%
+% The CS file may contain a number of sections, each presented in the
+% form of a TeX macro:
+%
+% \section-name{
+% <section definitions>
+% }
+%
+% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+% and \order. The syntax of the four supported sections is summarised below.
+%
+% 8-bit characters may be entered naturally, but to avoid problems with
+% character set translation or corruption, they can also be entered using
+% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+% is the hexadecimal value ofthe character code.
+%
+% Reading of the sections ends when the first '}' character is reached, so
+% '}' can't be included in a section. You can't use ^^7d either.
+%
+% The percent sign ('%') is used to introduce a trailing comment - it and
+% all remaining characters on a line are ignored. ^^25 has the same effect.
+%
+%
+% \lowupcase section
+%
+% The \lowupcase section of the CS file is used to define the lower
+% /upper and upper/lower case relationship of pairs of specified
+% characters. It is only used if the relationship is symmetrical - use
+% \lowercase or \upcase if it isn't.
+%
+% The syntax of the \lowupcase section is:
+%
+% \lowupcase{
+% <LC-1> <UC-1> % Comment begins with a percent sign
+% <LC-2> <UC-2>
+% ...
+% <LC-N> <UC-N>
+% }
+%
+% Each <LC-n> <UC-n> pair of characters defines that the upper case
+% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+% <UC-n> is <LC-n>.
+%
+% You cannot redefine the lower or upper case equivalent of an ASCII
+% character (code < 128), so all instances of <LC-n> and <UC-n>
+% (i.e. both sides of the relationship) must have codes > 127.
+%
+%
+% \lowercase section
+%
+% The \lowercase section of the CS file is used to define the lower case
+% equivalent of specified characters. It should normally only be used
+% if the relationship isn't symmetrical - use \lowupcase if it is.
+%
+% The syntax of the \lowercase section is:
+%
+% \lowercase{
+% <UC-1> <LC-1> % Comment begins with a percent sign
+% <UC-2> <LC-2>
+% ...
+% <UC-N> <LC-N>
+% }
+%
+% Each <LC-n> <UC-n> pair of characters defines that the lower case
+% equivalent of <UC-n> is <LC-n>.
+%
+% You cannot redefine the lower case equivalent of an ASCII character
+% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+% of the relationship) must have codes > 127.
+%
+%
+% \uppercase section
+%
+% The \uppercase section of the CS file is used to define the upper case
+% equivalent of specified characters. It should normally only be used
+% if the relationship isn't symmetrical - use \lowupcase if it is.
+%
+% The syntax of the \uppercase section is:
+%
+% \uppercase{
+% <LC-1> <UC-1> % Comment begins with a percent sign
+% <LC-2> <UC-2>
+% ...
+% <LC-N> <UC-N>
+% }
+%
+% Each <LC-n> <UC-n> pair of characters defines that the upper case
+% case equivalent of <LC-n> is <UC-n>.
+%
+% You cannot redefine the upper case equivalent of an ASCII character
+% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+% of the relationship) must have codes > 127.
+%
+%
+% \order section
+%
+% The \order section of the CS file is used to define the order in which
+% characters are sorted.
+%
+% The syntax of the \order section is:
+%
+% \order{
+% <char-1> % Comment begins with a percent sign
+% <char-2> <char-3> % whitespace between the chars
+% <char-4> - <char-5> % a hyphen between the chars
+% <char-4> _ <char-5> % an underscore between the chars
+% ...
+% <char-n>
+% }
+%
+% All characters on the same line are given the same sorting weight.
+%
+% The construct <char-1> <underscore> <char-2> is used to denote that
+% all characters in the range <char-1> to <char-2> should be given the
+% same sorting weight. For example, "A _ Z" would cause all ASCII
+% upper case alphabetical characters to have the same sorting weight
+% and would be equivalent to placing all 26 characters on the same line.
+%
+% The construct <char-1> <hyphen> <char-2> is used to denote that all
+% characters in the range <char-1> to <char-2> should be given an
+% ascending set of sorting weights, starting with <char-1> and ending
+% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+% alphabetical characters to be sorted in ascending order and would be
+% equivalent to placing 'A' on the first line, 'B' on the second,
+% through to 'Z' on the 26th line.
+%
+% The characters at the beginning of the order section are given a lower
+% sorting weight than characters occuring later. When sorting
+% alphabetically, characters with the lowest weight come first.
+%
+% All characters not in the \order section (including ASCII characters)
+% are given the same very high sorting weight to ensure that they come
+% last when sorting alphabetically.
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% CHARACTER SET
+
+\lowupcase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ à À % ^^e0 \`{a} ^^c0 \`{A}
+ á Á % ^^e1 \'{a} ^^c1 \'{A}
+ â Â % ^^e2 \^{a} ^^c2 \^{A}
+ ã Ã % ^^e3 \~{a} ^^c3 \~{A}
+ ä Ä % ^^e4 \"{a} ^^c4 \"{A}
+ å Å % ^^e5 \aa ^^c5 \AA
+ æ Æ % ^^e6 \ae ^^c6 \AE
+ ç Ç % ^^e7 \c{c} ^^c7 \c{C}
+ è È % ^^e8 \`{e} ^^c8 \`{E}
+ é É % ^^e9 \'{e} ^^c9 \'{E}
+ ê Ê % ^^ea \^{e} ^^ca \^{E}
+ ë Ë % ^^eb \"{e} ^^cb \"{E}
+ ì Ì % ^^ec \`{\i} ^^cc \`{I}
+ í Í % ^^ed \'{\i} ^^cd \'{I}
+ î Î % ^^ee \^{\i} ^^ce \^{I}
+ ï Ï % ^^ef \"{\i} ^^cf \"{I}
+ ð Ð % ^^f0 \dh ^^d0 \DH
+ ñ Ñ % ^^f1 \~{n} ^^d1 \~{N}
+ ò Ò % ^^f2 \`{o} ^^d2 \`{O}
+ ó Ó % ^^f3 \'{o} ^^d3 \'{O}
+ ô Ô % ^^f4 \^{o} ^^d4 \^{O}
+ õ Õ % ^^f5 \~{o} ^^d5 \~{O}
+ ö Ö % ^^f6 \"{o} ^^d6 \"{O}
+ ø Ø % ^^f8 \o ^^d8 \O
+ ù Ù % ^^f9 \`{u} ^^d9 \`{U}
+ ú Ú % ^^fa \'{u} ^^da \'{U}
+ û Û % ^^fb \^{u} ^^db \^{U}
+ ü Ü % ^^fc \"{u} ^^dc \"{U}
+ ý Ý % ^^fd \'{y} ^^dd \'{Y}
+ þ Þ % ^^fe \th ^^de \TH
+}
+
+% SORTING ORDER
+
+\order{
+ 0-9
+ A
+ À Á Â Ã Å Ä Æ
+ a
+ à á â ã å ä æ
+ B
+ b
+ C Ç
+ c ç
+ D Ð
+ d ð
+ E
+ È É Ê Ë
+ e
+ è é ê ë
+ F
+ f
+ G
+ g
+ H
+ h
+ I
+ Ì Í Î Ï
+ i
+ ì í î ï
+ J
+ j
+ K
+ k
+ L
+ l
+ M
+ m
+ N Ñ
+ n ñ
+ O
+ Ò Ó Ô Õ Ö Ø
+ o
+ ò ó ô õ ö ø
+ P
+ p
+ Q
+ q
+ R
+ r
+ S
+ s ß
+ T Þ
+ t þ
+ U
+ Ù Ú Û Ü
+ u
+ ù ú û ü
+ V
+ v
+ W
+ w
+ X
+ x
+ Y
+ Ý
+ y
+ ý ÿ
+ Z
+ z
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/tests/sort2.bbl b/biblio/bibtex/bibtex-x/tests/sort2.bbl
new file mode 100644
index 0000000000..15464fe5b1
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sort2.bbl
@@ -0,0 +1,15 @@
+\section*{Test result}
+\begin{itemize}
+\item Aa AA aa
+\item Ää ÄÄ ää
+\item Bb BB bb
+\item Cc CC cc
+\item Oo OO oo
+\item Öö ÖÖ öö
+\item Xx XX xx
+\item Yy YY yy
+\item Zz ZZ zz
+\item Øø ØØ øø
+\item Åå ÅÅ åå
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sort2.csf b/biblio/bibtex/bibtex-x/tests/sort2.csf
new file mode 100644
index 0000000000..6ac91cd744
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sort2.csf
@@ -0,0 +1,114 @@
+% CHARACTER SET
+
+\lowupcase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ à À % ^^e0 \`{a} ^^c0 \`{A}
+ á Á % ^^e1 \'{a} ^^c1 \'{A}
+ â Â % ^^e2 \^{a} ^^c2 \^{A}
+ ã Ã % ^^e3 \~{a} ^^c3 \~{A}
+ ä Ä % ^^e4 \"{a} ^^c4 \"{A}
+ å Å % ^^e5 \aa ^^c5 \AA
+ æ Æ % ^^e6 \ae ^^c6 \AE
+ ç Ç % ^^e7 \c{c} ^^c7 \c{C}
+ è È % ^^e8 \`{e} ^^c8 \`{E}
+ é É % ^^e9 \'{e} ^^c9 \'{E}
+ ê Ê % ^^ea \^{e} ^^ca \^{E}
+ ë Ë % ^^eb \"{e} ^^cb \"{E}
+ ì Ì % ^^ec \`{\i} ^^cc \`{I}
+ í Í % ^^ed \'{\i} ^^cd \'{I}
+ î Î % ^^ee \^{\i} ^^ce \^{I}
+ ï Ï % ^^ef \"{\i} ^^cf \"{I}
+ ð Ð % ^^f0 \dh ^^d0 \DH
+ ñ Ñ % ^^f1 \~{n} ^^d1 \~{N}
+ ò Ò % ^^f2 \`{o} ^^d2 \`{O}
+ ó Ó % ^^f3 \'{o} ^^d3 \'{O}
+ ô Ô % ^^f4 \^{o} ^^d4 \^{O}
+ õ Õ % ^^f5 \~{o} ^^d5 \~{O}
+ ö Ö % ^^f6 \"{o} ^^d6 \"{O}
+ ø Ø % ^^f8 \o ^^d8 \O
+ ù Ù % ^^f9 \`{u} ^^d9 \`{U}
+ ú Ú % ^^fa \'{u} ^^da \'{U}
+ û Û % ^^fb \^{u} ^^db \^{U}
+ ü Ü % ^^fc \"{u} ^^dc \"{U}
+ ý Ý % ^^fd \'{y} ^^dd \'{Y}
+ þ Þ % ^^fe \th ^^de \TH
+}
+
+% SORTING ORDER
+
+\order{
+ 0-9
+ A
+ À Á Â Ã Ä
+ a
+ à á â ã ä
+ B
+ b
+ C Ç
+ c ç
+ D Ð
+ d ð
+ E
+ È É Ê Ë
+ e
+ è é ê ë
+ F
+ f
+ G
+ g
+ H
+ h
+ I
+ Ì Í Î Ï
+ i
+ ì í î ï
+ J
+ j
+ K
+ k
+ L
+ l
+ M
+ m
+ N Ñ
+ n ñ
+ O
+ Ò Ó Ô Õ Ö
+ o
+ ò ó ô õ ö
+ P
+ p
+ Q
+ q
+ R
+ r
+ S
+ s ß
+ T Þ
+ t þ
+ U
+ Ù Ú Û Ü
+ u
+ ù ú û ü
+ V
+ v
+ W
+ w
+ X
+ x
+ Y
+ Ý
+ y
+ ý ÿ
+ Z
+ z
+ Æ
+ æ
+ Ø
+ ø
+ Å
+ å
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/tests/sort3.bbl b/biblio/bibtex/bibtex-x/tests/sort3.bbl
new file mode 100644
index 0000000000..a2ec3bea9b
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sort3.bbl
@@ -0,0 +1,15 @@
+\section*{Test result}
+\begin{itemize}
+\item Aa AA aa
+\item Bb BB bb
+\item Cc CC cc
+\item Oo OO oo
+\item Øø ØØ øø
+\item Xx XX xx
+\item Yy YY yy
+\item Zz ZZ zz
+\item Åå ÅÅ åå
+\item Ää ÄÄ ää
+\item Öö ÖÖ öö
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sort3.csf b/biblio/bibtex/bibtex-x/tests/sort3.csf
new file mode 100644
index 0000000000..909cf0f60e
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sort3.csf
@@ -0,0 +1,281 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% CHARACTER SET: ISO 8859-1 (Latin 1)
+%
+% ISO 8859-1 is the system character set used by Unix/X Windows and
+% MS Windows.
+%
+% SORTING ORDER: Swedish
+%
+% Alphabetical sorting order of Aa..Zz (including accented characters).
+%
+% This is a BibTeX Codepage and Sort definition file (CSF). It is
+% used to define the 8-bit character set used by BibTeX and the
+% order in which those characters should be sorted. The file
+% format is documented below this header section.
+%
+% This file will only work with the 8-bit implementation of BibTeX
+% written by Niel Kempson and Alejandro Aguilar-Sierra:
+%
+% http://www.ctan.org/tex-archive/biblio/bibtex/8-bit/
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% FILE FORMAT
+%
+% The codepage and sorting order (CS) file defines how BibTeX will treat an
+% 8-bit character set, specifically which characters are to be treated as
+% letters, the upper/lower case relationships between characters, and the
+% sorting order of characters.
+%
+% The CS file may contain a number of sections, each presented in the
+% form of a TeX macro:
+%
+% \section-name{
+% <section definitions>
+% }
+%
+% Four sections are currently supported: \lowupcase, \lowercase, \uppercase
+% and \order. The syntax of the four supported sections is summarised below.
+%
+% 8-bit characters may be entered naturally, but to avoid problems with
+% character set translation or corruption, they can also be entered using
+% the TeX-style portable notation for character codes, i.e. ^^XX, where XX
+% is the hexadecimal value ofthe character code.
+%
+% Reading of the sections ends when the first '}' character is reached, so
+% '}' can't be included in a section. You can't use ^^7d either.
+%
+% The percent sign ('%') is used to introduce a trailing comment - it and
+% all remaining characters on a line are ignored. ^^25 has the same effect.
+%
+%
+% \lowupcase section
+%
+% The \lowupcase section of the CS file is used to define the lower
+% /upper and upper/lower case relationship of pairs of specified
+% characters. It is only used if the relationship is symmetrical - use
+% \lowercase or \upcase if it isn't.
+%
+% The syntax of the \lowupcase section is:
+%
+% \lowupcase{
+% <LC-1> <UC-1> % Comment begins with a percent sign
+% <LC-2> <UC-2>
+% ...
+% <LC-N> <UC-N>
+% }
+%
+% Each <LC-n> <UC-n> pair of characters defines that the upper case
+% equivalent of <LC-n> is <UC-n> *and* the lower case equivalent of
+% <UC-n> is <LC-n>.
+%
+% You cannot redefine the lower or upper case equivalent of an ASCII
+% character (code < 128), so all instances of <LC-n> and <UC-n>
+% (i.e. both sides of the relationship) must have codes > 127.
+%
+%
+% \lowercase section
+%
+% The \lowercase section of the CS file is used to define the lower case
+% equivalent of specified characters. It should normally only be used
+% if the relationship isn't symmetrical - use \lowupcase if it is.
+%
+% The syntax of the \lowercase section is:
+%
+% \lowercase{
+% <UC-1> <LC-1> % Comment begins with a percent sign
+% <UC-2> <LC-2>
+% ...
+% <UC-N> <LC-N>
+% }
+%
+% Each <LC-n> <UC-n> pair of characters defines that the lower case
+% equivalent of <UC-n> is <LC-n>.
+%
+% You cannot redefine the lower case equivalent of an ASCII character
+% (code < 128), so all instances of <UC-n> (i.e. the left hand side
+% of the relationship) must have codes > 127.
+%
+%
+% \uppercase section
+%
+% The \uppercase section of the CS file is used to define the upper case
+% equivalent of specified characters. It should normally only be used
+% if the relationship isn't symmetrical - use \lowupcase if it is.
+%
+% The syntax of the \uppercase section is:
+%
+% \uppercase{
+% <LC-1> <UC-1> % Comment begins with a percent sign
+% <LC-2> <UC-2>
+% ...
+% <LC-N> <UC-N>
+% }
+%
+% Each <LC-n> <UC-n> pair of characters defines that the upper case
+% case equivalent of <LC-n> is <UC-n>.
+%
+% You cannot redefine the upper case equivalent of an ASCII character
+% (code < 128), so all instances of <LC-n> (i.e. the left hand side
+% of the relationship) must have codes > 127.
+%
+%
+% \order section
+%
+% The \order section of the CS file is used to define the order in which
+% characters are sorted.
+%
+% The syntax of the \order section is:
+%
+% \order{
+% <char-1> % Comment begins with a percent sign
+% <char-2> <char-3> % whitespace between the chars
+% <char-4> - <char-5> % a hyphen between the chars
+% <char-4> _ <char-5> % an underscore between the chars
+% ...
+% <char-n>
+% }
+%
+% All characters on the same line are given the same sorting weight.
+%
+% The construct <char-1> <underscore> <char-2> is used to denote that
+% all characters in the range <char-1> to <char-2> should be given the
+% same sorting weight. For example, "A _ Z" would cause all ASCII
+% upper case alphabetical characters to have the same sorting weight
+% and would be equivalent to placing all 26 characters on the same line.
+%
+% The construct <char-1> <hyphen> <char-2> is used to denote that all
+% characters in the range <char-1> to <char-2> should be given an
+% ascending set of sorting weights, starting with <char-1> and ending
+% with <char-2>. For example, "A - Z" would cause all upper case ASCII
+% alphabetical characters to be sorted in ascending order and would be
+% equivalent to placing 'A' on the first line, 'B' on the second,
+% through to 'Z' on the 26th line.
+%
+% The characters at the beginning of the order section are given a lower
+% sorting weight than characters occuring later. When sorting
+% alphabetically, characters with the lowest weight come first.
+%
+% All characters not in the \order section (including ASCII characters)
+% are given the same very high sorting weight to ensure that they come
+% last when sorting alphabetically.
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% CHARACTER SET
+
+\lowupcase{ % Lowercase Uppercase
+ % Code TeX Code TeX
+ %
+ à À % ^^e0 \`{a} ^^c0 \`{A}
+ á Á % ^^e1 \'{a} ^^c1 \'{A}
+ â Â % ^^e2 \^{a} ^^c2 \^{A}
+ ã Ã % ^^e3 \~{a} ^^c3 \~{A}
+ ä Ä % ^^e4 \"{a} ^^c4 \"{A}
+ å Å % ^^e5 \aa ^^c5 \AA
+ æ Æ % ^^e6 \ae ^^c6 \AE
+ ç Ç % ^^e7 \c{c} ^^c7 \c{C}
+ è È % ^^e8 \`{e} ^^c8 \`{E}
+ é É % ^^e9 \'{e} ^^c9 \'{E}
+ ê Ê % ^^ea \^{e} ^^ca \^{E}
+ ë Ë % ^^eb \"{e} ^^cb \"{E}
+ ì Ì % ^^ec \`{\i} ^^cc \`{I}
+ í Í % ^^ed \'{\i} ^^cd \'{I}
+ î Î % ^^ee \^{\i} ^^ce \^{I}
+ ï Ï % ^^ef \"{\i} ^^cf \"{I}
+ ð Ð % ^^f0 \dh ^^d0 \DH
+ ñ Ñ % ^^f1 \~{n} ^^d1 \~{N}
+ ò Ò % ^^f2 \`{o} ^^d2 \`{O}
+ ó Ó % ^^f3 \'{o} ^^d3 \'{O}
+ ô Ô % ^^f4 \^{o} ^^d4 \^{O}
+ õ Õ % ^^f5 \~{o} ^^d5 \~{O}
+ ö Ö % ^^f6 \"{o} ^^d6 \"{O}
+ ø Ø % ^^f8 \o ^^d8 \O
+ ù Ù % ^^f9 \`{u} ^^d9 \`{U}
+ ú Ú % ^^fa \'{u} ^^da \'{U}
+ û Û % ^^fb \^{u} ^^db \^{U}
+ ü Ü % ^^fc \"{u} ^^dc \"{U}
+ ý Ý % ^^fd \'{y} ^^dd \'{Y}
+ þ Þ % ^^fe \th ^^de \TH
+}
+
+% SORTING ORDER
+
+\order{
+ 0-9
+ A
+ À Á Â Ã Æ
+ a
+ à á â ã æ
+ B
+ b
+ C Ç
+ c ç
+ D Ð
+ d ð
+ E
+ È É Ê Ë
+ e
+ è é ê ë
+ F
+ f
+ G
+ g
+ H
+ h
+ I
+ Ì Í Î Ï
+ i
+ ì í î ï
+ J
+ j
+ K
+ k
+ L
+ l
+ M
+ m
+ N Ñ
+ n ñ
+ O
+ Ò Ó Ô Õ Ø
+ o
+ ò ó ô õ ø
+ P
+ p
+ Q
+ q
+ R
+ r
+ S
+ s ß
+ T Þ
+ t þ
+ U
+ Ù Ú Û Ü
+ u
+ ù ú û ü
+ V
+ v
+ W
+ w
+ X
+ x
+ Y
+ Ý
+ y
+ ý ÿ
+ Z
+ z
+ Å
+ å
+ Ä
+ ä
+ Ö
+ ö
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/biblio/bibtex/bibtex-x/tests/sortu-az.bbl b/biblio/bibtex/bibtex-x/tests/sortu-az.bbl
new file mode 100644
index 0000000000..c9cb3ea758
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sortu-az.bbl
@@ -0,0 +1,27 @@
+\section*{Test result}
+\begin{itemize}
+\item Aa AA aa
+\item Åå ÅÅ åå
+\item Ää ÄÄ ää
+\item Bb BB bb
+\item Cc CC cc
+\item Xx XX xx
+\item Oo OO oo
+\item Øø ØØ øø
+\item Öö ÖÖ öö
+\item Yy YY yy
+\item Zz ZZ zz
+\item Ðа ÐРаа
+\item Бб ББ бб
+\item Вв ВВ вв
+\item Ð­Ñ Ð­Ð­ ÑÑ
+\item Юю ЮЮ юю
+\item Ð¯Ñ Ð¯Ð¯ ÑÑ
+\item Αα ΑΑ αα
+\item Ββ ΒΒ ββ
+\item Γγ ΓΓ γγ
+\item Χχ ΧΧ χχ
+\item Ψψ ΨΨ ψψ
+\item Ωω ΩΩ ωω
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sortu-da.bbl b/biblio/bibtex/bibtex-x/tests/sortu-da.bbl
new file mode 100644
index 0000000000..c9f0485add
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sortu-da.bbl
@@ -0,0 +1,27 @@
+\section*{Test result}
+\begin{itemize}
+\item Bb BB bb
+\item Cc CC cc
+\item Oo OO oo
+\item Xx XX xx
+\item Yy YY yy
+\item Zz ZZ zz
+\item Ää ÄÄ ää
+\item Øø ØØ øø
+\item Öö ÖÖ öö
+\item Aa AA aa
+\item Åå ÅÅ åå
+\item Αα ΑΑ αα
+\item Ββ ΒΒ ββ
+\item Γγ ΓΓ γγ
+\item Χχ ΧΧ χχ
+\item Ψψ ΨΨ ψψ
+\item Ωω ΩΩ ωω
+\item Ðа ÐРаа
+\item Бб ББ бб
+\item Вв ВВ вв
+\item Ð­Ñ Ð­Ð­ ÑÑ
+\item Юю ЮЮ юю
+\item Ð¯Ñ Ð¯Ð¯ ÑÑ
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sortu-en.bbl b/biblio/bibtex/bibtex-x/tests/sortu-en.bbl
new file mode 100644
index 0000000000..53f24ba70d
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sortu-en.bbl
@@ -0,0 +1,27 @@
+\section*{Test result}
+\begin{itemize}
+\item Aa AA aa
+\item Åå ÅÅ åå
+\item Ää ÄÄ ää
+\item Bb BB bb
+\item Cc CC cc
+\item Oo OO oo
+\item Öö ÖÖ öö
+\item Øø ØØ øø
+\item Xx XX xx
+\item Yy YY yy
+\item Zz ZZ zz
+\item Αα ΑΑ αα
+\item Ββ ΒΒ ββ
+\item Γγ ΓΓ γγ
+\item Χχ ΧΧ χχ
+\item Ψψ ΨΨ ψψ
+\item Ωω ΩΩ ωω
+\item Ðа ÐРаа
+\item Бб ББ бб
+\item Вв ВВ вв
+\item Ð­Ñ Ð­Ð­ ÑÑ
+\item Юю ЮЮ юю
+\item Ð¯Ñ Ð¯Ð¯ ÑÑ
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sortu-fi.bbl b/biblio/bibtex/bibtex-x/tests/sortu-fi.bbl
new file mode 100644
index 0000000000..db180ee186
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sortu-fi.bbl
@@ -0,0 +1,27 @@
+\section*{Test result}
+\begin{itemize}
+\item Aa AA aa
+\item Bb BB bb
+\item Cc CC cc
+\item Oo OO oo
+\item Xx XX xx
+\item Yy YY yy
+\item Zz ZZ zz
+\item Åå ÅÅ åå
+\item Ää ÄÄ ää
+\item Öö ÖÖ öö
+\item Øø ØØ øø
+\item Αα ΑΑ αα
+\item Ββ ΒΒ ββ
+\item Γγ ΓΓ γγ
+\item Χχ ΧΧ χχ
+\item Ψψ ΨΨ ψψ
+\item Ωω ΩΩ ωω
+\item Ðа ÐРаа
+\item Бб ББ бб
+\item Вв ВВ вв
+\item Ð­Ñ Ð­Ð­ ÑÑ
+\item Юю ЮЮ юю
+\item Ð¯Ñ Ð¯Ð¯ ÑÑ
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sortu-tr.bbl b/biblio/bibtex/bibtex-x/tests/sortu-tr.bbl
new file mode 100644
index 0000000000..3497df8725
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sortu-tr.bbl
@@ -0,0 +1,27 @@
+\section*{Test result}
+\begin{itemize}
+\item Aa AA aa
+\item Åå ÅÅ åå
+\item Ää ÄÄ ää
+\item Bb BB bb
+\item Cc CC cc
+\item Oo OO oo
+\item Øø ØØ øø
+\item Öö ÖÖ öö
+\item Xx XX xx
+\item Yy YY yy
+\item Zz ZZ zz
+\item Αα ΑΑ αα
+\item Ββ ΒΒ ββ
+\item Γγ ΓΓ γγ
+\item Χχ ΧΧ χχ
+\item Ψψ ΨΨ ψψ
+\item Ωω ΩΩ ωω
+\item Ðа ÐРаа
+\item Бб ББ бб
+\item Вв ВВ вв
+\item Ð­Ñ Ð­Ð­ ÑÑ
+\item Юю ЮЮ юю
+\item Ð¯Ñ Ð¯Ð¯ ÑÑ
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/sortu.aux b/biblio/bibtex/bibtex-x/tests/sortu.aux
new file mode 100644
index 0000000000..6d541f0253
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/sortu.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{teststyle}
+\bibdata{testsortu}
diff --git a/biblio/bibtex/bibtex-x/tests/substra.aux b/biblio/bibtex/bibtex-x/tests/substra.aux
new file mode 100644
index 0000000000..19ee643a1f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/substra.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testsubstr}
+\bibdata{testsubstra}
diff --git a/biblio/bibtex/bibtex-x/tests/substra.bbl b/biblio/bibtex/bibtex-x/tests/substra.bbl
new file mode 100644
index 0000000000..9b182f7f23
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/substra.bbl
@@ -0,0 +1,334 @@
+\section*{Test result}
+\begin{itemize}
+\item[orig] ABCDEFG tuvwxyz
+\item[1 5] ABCDE
+\item[1 4] ABCD
+\item[1 3] ABC
+\item[1 2] AB
+\item[1 1] A
+\item[2 1] B
+\item[3 1] C
+\item[4 1] D
+\item[5 1] E
+\item[1 5] ABCDE
+\item[2 5] BCDEF
+\item[3 5] CDEFG
+\item[4 5] DEFG
+\item[5 5] EFG t
+\item[1 5] ABCDE
+\item[2 4] BCDE
+\item[3 3] CDE
+\item[4 2] DE
+\item[5 1] E
+\item[1 8] ABCDEFG
+\item[2 7] BCDEFG
+\item[3 6] CDEFG
+\item[4 5] DEFG
+\item[5 4] EFG
+\item[6 3] FG
+\item[7 2] G
+\item[8 1]
+\item[-1 5] vwxyz
+\item[-1 4] wxyz
+\item[-1 3] xyz
+\item[-1 2] yz
+\item[-1 1] z
+\item[-2 1] y
+\item[-3 1] x
+\item[-4 1] w
+\item[-5 1] v
+\item[-1 5] vwxyz
+\item[-2 5] uvwxy
+\item[-3 5] tuvwx
+\item[-4 5] tuvw
+\item[-5 5] G tuv
+\item[-1 5] vwxyz
+\item[-2 4] vwxy
+\item[-3 3] vwx
+\item[-4 2] vw
+\item[-5 1] v
+\item[-1 8] tuvwxyz
+\item[-2 7] tuvwxy
+\item[-3 6] tuvwx
+\item[-4 5] tuvw
+\item[-5 4] tuv
+\item[-6 3] tu
+\item[-7 2] t
+\item[-8 1]
+\item[orig] ÅÇÈÎØÜÝ~åçèîøüý
+\item[1 5] ÅÇÈÎØ
+\item[1 4] ÅÇÈÎ
+\item[1 3] ÅÇÈ
+\item[1 2] ÅÇ
+\item[1 1] Å
+\item[2 1] Ç
+\item[3 1] È
+\item[4 1] Î
+\item[5 1] Ø
+\item[1 5] ÅÇÈÎØ
+\item[2 5] ÇÈÎØÜ
+\item[3 5] ÈÎØÜÝ
+\item[4 5] ÎØÜÝ~
+\item[5 5] ØÜÝ~å
+\item[1 5] ÅÇÈÎØ
+\item[2 4] ÇÈÎØ
+\item[3 3] ÈÎØ
+\item[4 2] ÎØ
+\item[5 1] Ø
+\item[1 8] ÅÇÈÎØÜÝ~
+\item[2 7] ÇÈÎØÜÝ~
+\item[3 6] ÈÎØÜÝ~
+\item[4 5] ÎØÜÝ~
+\item[5 4] ØÜÝ~
+\item[6 3] ÜÝ~
+\item[7 2] Ý~
+\item[8 1] ~
+\item[-1 5] èîøüý
+\item[-1 4] îøüý
+\item[-1 3] øüý
+\item[-1 2] üý
+\item[-1 1] ý
+\item[-2 1] ü
+\item[-3 1] ø
+\item[-4 1] î
+\item[-5 1] è
+\item[-1 5] èîøüý
+\item[-2 5] çèîøü
+\item[-3 5] åçèîø
+\item[-4 5] ~åçèî
+\item[-5 5] Ý~åçè
+\item[-1 5] èîøüý
+\item[-2 4] èîøü
+\item[-3 3] èîø
+\item[-4 2] èî
+\item[-5 1] è
+\item[-1 8] ~åçèîøüý
+\item[-2 7] ~åçèîøü
+\item[-3 6] ~åçèîø
+\item[-4 5] ~åçèî
+\item[-5 4] ~åçè
+\item[-6 3] ~åç
+\item[-7 2] ~å
+\item[-8 1] ~
+\item[orig] {AB}CDEFG tuvwx{yz}
+\item[1 5] {AB}C
+\item[1 4] {AB}
+\item[1 3] {AB
+\item[1 2] {A
+\item[1 1] {
+\item[2 1] A
+\item[3 1] B
+\item[4 1] }
+\item[5 1] C
+\item[1 5] {AB}C
+\item[2 5] AB}CD
+\item[3 5] B}CDE
+\item[4 5] }CDEF
+\item[5 5] CDEFG
+\item[1 5] {AB}C
+\item[2 4] AB}C
+\item[3 3] B}C
+\item[4 2] }C
+\item[5 1] C
+\item[1 8] {AB}CDEF
+\item[2 7] AB}CDEF
+\item[3 6] B}CDEF
+\item[4 5] }CDEF
+\item[5 4] CDEF
+\item[6 3] DEF
+\item[7 2] EF
+\item[8 1] F
+\item[-1 5] x{yz}
+\item[-1 4] {yz}
+\item[-1 3] yz}
+\item[-1 2] z}
+\item[-1 1] }
+\item[-2 1] z
+\item[-3 1] y
+\item[-4 1] {
+\item[-5 1] x
+\item[-1 5] x{yz}
+\item[-2 5] wx{yz
+\item[-3 5] vwx{y
+\item[-4 5] uvwx{
+\item[-5 5] tuvwx
+\item[-1 5] x{yz}
+\item[-2 4] x{yz
+\item[-3 3] x{y
+\item[-4 2] x{
+\item[-5 1] x
+\item[-1 8] uvwx{yz}
+\item[-2 7] uvwx{yz
+\item[-3 6] uvwx{y
+\item[-4 5] uvwx{
+\item[-5 4] uvwx
+\item[-6 3] uvw
+\item[-7 2] uv
+\item[-8 1] u
+\item[orig] {{AB}CD}EFG tuv{wx{yz}}
+\item[1 5] {{AB}
+\item[1 4] {{AB
+\item[1 3] {{A
+\item[1 2] {{
+\item[1 1] {
+\item[2 1] {
+\item[3 1] A
+\item[4 1] B
+\item[5 1] }
+\item[1 5] {{AB}
+\item[2 5] {AB}C
+\item[3 5] AB}CD
+\item[4 5] B}CD}
+\item[5 5] }CD}E
+\item[1 5] {{AB}
+\item[2 4] {AB}
+\item[3 3] AB}
+\item[4 2] B}
+\item[5 1] }
+\item[1 8] {{AB}CD}
+\item[2 7] {AB}CD}
+\item[3 6] AB}CD}
+\item[4 5] B}CD}
+\item[5 4] }CD}
+\item[6 3] CD}
+\item[7 2] D}
+\item[8 1] }
+\item[-1 5] {yz}}
+\item[-1 4] yz}}
+\item[-1 3] z}}
+\item[-1 2] }}
+\item[-1 1] }
+\item[-2 1] }
+\item[-3 1] z
+\item[-4 1] y
+\item[-5 1] {
+\item[-1 5] {yz}}
+\item[-2 5] x{yz}
+\item[-3 5] wx{yz
+\item[-4 5] {wx{y
+\item[-5 5] v{wx{
+\item[-1 5] {yz}}
+\item[-2 4] {yz}
+\item[-3 3] {yz
+\item[-4 2] {y
+\item[-5 1] {
+\item[-1 8] {wx{yz}}
+\item[-2 7] {wx{yz}
+\item[-3 6] {wx{yz
+\item[-4 5] {wx{y
+\item[-5 4] {wx{
+\item[-6 3] {wx
+\item[-7 2] {w
+\item[-8 1] {
+\item[orig] {{ÅÇ}ÈÎ}ØÜÝ~åçè{îø{üý}}
+\item[1 5] {{ÅÇ}
+\item[1 4] {{ÅÇ
+\item[1 3] {{Å
+\item[1 2] {{
+\item[1 1] {
+\item[2 1] {
+\item[3 1] Å
+\item[4 1] Ç
+\item[5 1] }
+\item[1 5] {{ÅÇ}
+\item[2 5] {ÅÇ}È
+\item[3 5] ÅÇ}ÈÎ
+\item[4 5] Ç}ÈÎ}
+\item[5 5] }ÈÎ}Ø
+\item[1 5] {{ÅÇ}
+\item[2 4] {ÅÇ}
+\item[3 3] ÅÇ}
+\item[4 2] Ç}
+\item[5 1] }
+\item[1 8] {{ÅÇ}ÈÎ}
+\item[2 7] {ÅÇ}ÈÎ}
+\item[3 6] ÅÇ}ÈÎ}
+\item[4 5] Ç}ÈÎ}
+\item[5 4] }ÈÎ}
+\item[6 3] ÈÎ}
+\item[7 2] Î}
+\item[8 1] }
+\item[-1 5] {üý}}
+\item[-1 4] üý}}
+\item[-1 3] ý}}
+\item[-1 2] }}
+\item[-1 1] }
+\item[-2 1] }
+\item[-3 1] ý
+\item[-4 1] ü
+\item[-5 1] {
+\item[-1 5] {üý}}
+\item[-2 5] ø{üý}
+\item[-3 5] îø{üý
+\item[-4 5] {îø{ü
+\item[-5 5] è{îø{
+\item[-1 5] {üý}}
+\item[-2 4] {üý}
+\item[-3 3] {üý
+\item[-4 2] {ü
+\item[-5 1] {
+\item[-1 8] {îø{üý}}
+\item[-2 7] {îø{üý}
+\item[-3 6] {îø{üý
+\item[-4 5] {îø{ü
+\item[-5 4] {îø{
+\item[-6 3] {îø
+\item[-7 2] {î
+\item[-8 1] {
+\item[orig] {\a}Åå{\b}Ææ{\c}Çç
+\item[1 5] {\a}Å
+\item[1 4] {\a}
+\item[1 3] {\a
+\item[1 2] {\
+\item[1 1] {
+\item[2 1] \
+\item[3 1] a
+\item[4 1] }
+\item[5 1] Å
+\item[1 5] {\a}Å
+\item[2 5] \a}Åå
+\item[3 5] a}Åå{
+\item[4 5] }Åå{\
+\item[5 5] Åå{\b
+\item[1 5] {\a}Å
+\item[2 4] \a}Å
+\item[3 3] a}Å
+\item[4 2] }Å
+\item[5 1] Å
+\item[1 8] {\a}Åå{\
+\item[2 7] \a}Åå{\
+\item[3 6] a}Åå{\
+\item[4 5] }Åå{\
+\item[5 4] Åå{\
+\item[6 3] å{\
+\item[7 2] {\
+\item[8 1] \
+\item[-1 5] \c}Çç
+\item[-1 4] c}Çç
+\item[-1 3] }Çç
+\item[-1 2] Çç
+\item[-1 1] ç
+\item[-2 1] Ç
+\item[-3 1] }
+\item[-4 1] c
+\item[-5 1] \
+\item[-1 5] \c}Çç
+\item[-2 5] {\c}Ç
+\item[-3 5] æ{\c}
+\item[-4 5] Ææ{\c
+\item[-5 5] }Ææ{\
+\item[-1 5] \c}Çç
+\item[-2 4] \c}Ç
+\item[-3 3] \c}
+\item[-4 2] \c
+\item[-5 1] \
+\item[-1 8] Ææ{\c}Çç
+\item[-2 7] Ææ{\c}Ç
+\item[-3 6] Ææ{\c}
+\item[-4 5] Ææ{\c
+\item[-5 4] Ææ{\
+\item[-6 3] Ææ{
+\item[-7 2] Ææ
+\item[-8 1] Æ
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/substru.aux b/biblio/bibtex/bibtex-x/tests/substru.aux
new file mode 100644
index 0000000000..79098b209d
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/substru.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testsubstr}
+\bibdata{testsubstru}
diff --git a/biblio/bibtex/bibtex-x/tests/substru.bbl b/biblio/bibtex/bibtex-x/tests/substru.bbl
new file mode 100644
index 0000000000..48e2601b8e
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/substru.bbl
@@ -0,0 +1,885 @@
+\section*{Test result}
+\begin{itemize}
+\item[orig] ABCDEFG tuvwxyz
+\item[1 5] ABCDE
+\item[1 4] ABCD
+\item[1 3] ABC
+\item[1 2] AB
+\item[1 1] A
+\item[2 1] B
+\item[3 1] C
+\item[4 1] D
+\item[5 1] E
+\item[1 5] ABCDE
+\item[2 5] BCDEF
+\item[3 5] CDEFG
+\item[4 5] DEFG
+\item[5 5] EFG t
+\item[1 5] ABCDE
+\item[2 4] BCDE
+\item[3 3] CDE
+\item[4 2] DE
+\item[5 1] E
+\item[1 8] ABCDEFG
+\item[2 7] BCDEFG
+\item[3 6] CDEFG
+\item[4 5] DEFG
+\item[5 4] EFG
+\item[6 3] FG
+\item[7 2] G
+\item[8 1]
+\item[-1 5] vwxyz
+\item[-1 4] wxyz
+\item[-1 3] xyz
+\item[-1 2] yz
+\item[-1 1] z
+\item[-2 1] y
+\item[-3 1] x
+\item[-4 1] w
+\item[-5 1] v
+\item[-1 5] vwxyz
+\item[-2 5] uvwxy
+\item[-3 5] tuvwx
+\item[-4 5] tuvw
+\item[-5 5] G tuv
+\item[-1 5] vwxyz
+\item[-2 4] vwxy
+\item[-3 3] vwx
+\item[-4 2] vw
+\item[-5 1] v
+\item[-1 8] tuvwxyz
+\item[-2 7] tuvwxy
+\item[-3 6] tuvwx
+\item[-4 5] tuvw
+\item[-5 4] tuv
+\item[-6 3] tu
+\item[-7 2] t
+\item[-8 1]
+\item[orig] ÅÇÈÎØÜÃ~åçèîøüý
+\item[1 5] ÅÇÈÎØ
+\item[1 4] ÅÇÈÎ
+\item[1 3] ÅÇÈ
+\item[1 2] ÅÇ
+\item[1 1] Ã…
+\item[2 1] Ç
+\item[3 1] È
+\item[4 1] ÃŽ
+\item[5 1] Ø
+\item[1 5] ÅÇÈÎØ
+\item[2 5] ÇÈÎØÜ
+\item[3 5] ÈÎØÜÃ
+\item[4 5] ÎØÜÃ~
+\item[5 5] ØÜÃ~Ã¥
+\item[1 5] ÅÇÈÎØ
+\item[2 4] ÇÈÎØ
+\item[3 3] ÈÎØ
+\item[4 2] ÎØ
+\item[5 1] Ø
+\item[1 8] ÅÇÈÎØÜÃ~
+\item[2 7] ÇÈÎØÜÃ~
+\item[3 6] ÈÎØÜÃ~
+\item[4 5] ÎØÜÃ~
+\item[5 4] ØÜÃ~
+\item[6 3] ÃœÃ~
+\item[7 2] Ã~
+\item[8 1] ~
+\item[-1 5] èîøüý
+\item[-1 4] îøüý
+\item[-1 3] øüý
+\item[-1 2] üý
+\item[-1 1] ý
+\item[-2 1] ü
+\item[-3 1] ø
+\item[-4 1] î
+\item[-5 1] è
+\item[-1 5] èîøüý
+\item[-2 5] çèîøü
+\item[-3 5] åçèîø
+\item[-4 5] ~åçèî
+\item[-5 5] Ã~åçè
+\item[-1 5] èîøüý
+\item[-2 4] èîøü
+\item[-3 3] èîø
+\item[-4 2] èî
+\item[-5 1] è
+\item[-1 8] ~åçèîøüý
+\item[-2 7] ~åçèîøü
+\item[-3 6] ~åçèîø
+\item[-4 5] ~åçèî
+\item[-5 4] ~åçè
+\item[-6 3] ~åç
+\item[-7 2] ~Ã¥
+\item[-8 1] ~
+\item[orig] AÇã†ð¯ ˜EÜЖ~tçユ漆𡚴xюω
+\item[1 5] AÇã†ð¯ ˜E
+\item[1 4] AÇã†ð¯ ˜
+\item[1 3] AÇã†
+\item[1 2] AÇ
+\item[1 1] A
+\item[2 1] Ç
+\item[3 1] ã†
+\item[4 1] 冤
+\item[5 1] E
+\item[1 5] AÇã†ð¯ ˜E
+\item[2 5] Çã†ð¯ ˜EÃœ
+\item[3 5] ã†ð¯ ˜EÜЖ
+\item[4 5] 冤EÜЖ~
+\item[5 5] EÜЖ~t
+\item[1 5] AÇã†ð¯ ˜E
+\item[2 4] Çã†ð¯ ˜E
+\item[3 3] ã†ð¯ ˜E
+\item[4 2] 冤E
+\item[5 1] E
+\item[1 8] AÇã†ð¯ ˜EÜЖ~
+\item[2 7] Çã†ð¯ ˜EÜЖ~
+\item[3 6] ã†ð¯ ˜EÜЖ~
+\item[4 5] 冤EÜЖ~
+\item[5 4] EÜЖ~
+\item[6 3] ÜЖ~
+\item[7 2] Ж~
+\item[8 1] ~
+\item[-1 5] 漆𡚴xюω
+\item[-1 4] 𡚴xюω
+\item[-1 3] xюω
+\item[-1 2] юω
+\item[-1 1] ω
+\item[-2 1] ÑŽ
+\item[-3 1] x
+\item[-4 1] ð¡š´
+\item[-5 1] 漆
+\item[-1 5] 漆𡚴xюω
+\item[-2 5] ユ漆𡚴xю
+\item[-3 5] çユ漆𡚴x
+\item[-4 5] tçユ漆𡚴
+\item[-5 5] ~tçユ漆
+\item[-1 5] 漆𡚴xюω
+\item[-2 4] 漆𡚴xю
+\item[-3 3] 漆𡚴x
+\item[-4 2] 漆𡚴
+\item[-5 1] 漆
+\item[-1 8] tçユ漆𡚴xюω
+\item[-2 7] tçユ漆𡚴xю
+\item[-3 6] tçユ漆𡚴x
+\item[-4 5] tçユ漆𡚴
+\item[-5 4] tçユ漆
+\item[-6 3] tçユ
+\item[-7 2] tç
+\item[-8 1] t
+\item[orig] {AB}CDEFG tuvwx{yz}
+\item[1 5] {AB}C
+\item[1 4] {AB}
+\item[1 3] {AB
+\item[1 2] {A
+\item[1 1] {
+\item[2 1] A
+\item[3 1] B
+\item[4 1] }
+\item[5 1] C
+\item[1 5] {AB}C
+\item[2 5] AB}CD
+\item[3 5] B}CDE
+\item[4 5] }CDEF
+\item[5 5] CDEFG
+\item[1 5] {AB}C
+\item[2 4] AB}C
+\item[3 3] B}C
+\item[4 2] }C
+\item[5 1] C
+\item[1 8] {AB}CDEF
+\item[2 7] AB}CDEF
+\item[3 6] B}CDEF
+\item[4 5] }CDEF
+\item[5 4] CDEF
+\item[6 3] DEF
+\item[7 2] EF
+\item[8 1] F
+\item[-1 5] x{yz}
+\item[-1 4] {yz}
+\item[-1 3] yz}
+\item[-1 2] z}
+\item[-1 1] }
+\item[-2 1] z
+\item[-3 1] y
+\item[-4 1] {
+\item[-5 1] x
+\item[-1 5] x{yz}
+\item[-2 5] wx{yz
+\item[-3 5] vwx{y
+\item[-4 5] uvwx{
+\item[-5 5] tuvwx
+\item[-1 5] x{yz}
+\item[-2 4] x{yz
+\item[-3 3] x{y
+\item[-4 2] x{
+\item[-5 1] x
+\item[-1 8] uvwx{yz}
+\item[-2 7] uvwx{yz
+\item[-3 6] uvwx{y
+\item[-4 5] uvwx{
+\item[-5 4] uvwx
+\item[-6 3] uvw
+\item[-7 2] uv
+\item[-8 1] u
+\item[orig] {\a}Åå{\b}Ææ{\c}Çç
+\item[1 5] {\a}Ã…
+\item[1 4] {\a}
+\item[1 3] {\a
+\item[1 2] {\
+\item[1 1] {
+\item[2 1] \
+\item[3 1] a
+\item[4 1] }
+\item[5 1] Ã…
+\item[1 5] {\a}Ã…
+\item[2 5] \a}Ã…Ã¥
+\item[3 5] a}Ã…Ã¥{
+\item[4 5] }Ã…Ã¥{\
+\item[5 5] Ã…Ã¥{\b
+\item[1 5] {\a}Ã…
+\item[2 4] \a}Ã…
+\item[3 3] a}Ã…
+\item[4 2] }Ã…
+\item[5 1] Ã…
+\item[1 8] {\a}Ã…Ã¥{\
+\item[2 7] \a}Ã…Ã¥{\
+\item[3 6] a}Ã…Ã¥{\
+\item[4 5] }Ã…Ã¥{\
+\item[5 4] Ã…Ã¥{\
+\item[6 3] å{\
+\item[7 2] {\
+\item[8 1] \
+\item[-1 5] \c}Çç
+\item[-1 4] c}Çç
+\item[-1 3] }Çç
+\item[-1 2] Çç
+\item[-1 1] ç
+\item[-2 1] Ç
+\item[-3 1] }
+\item[-4 1] c
+\item[-5 1] \
+\item[-1 5] \c}Çç
+\item[-2 5] {\c}Ç
+\item[-3 5] æ{\c}
+\item[-4 5] Ææ{\c
+\item[-5 5] }Ææ{\
+\item[-1 5] \c}Çç
+\item[-2 4] \c}Ç
+\item[-3 3] \c}
+\item[-4 2] \c
+\item[-5 1] \
+\item[-1 8] Ææ{\c}Çç
+\item[-2 7] Ææ{\c}Ç
+\item[-3 6] Ææ{\c}
+\item[-4 5] Ææ{\c
+\item[-5 4] Ææ{\
+\item[-6 3] Ææ{
+\item[-7 2] Ææ
+\item[-8 1] Æ
+\item[orig] {\a}αã‚{\b}βã„{\c}γã†
+\item[1 5] {\a}α
+\item[1 4] {\a}
+\item[1 3] {\a
+\item[1 2] {\
+\item[1 1] {
+\item[2 1] \
+\item[3 1] a
+\item[4 1] }
+\item[5 1] α
+\item[1 5] {\a}α
+\item[2 5] \a}αã‚
+\item[3 5] a}αã‚{
+\item[4 5] }αã‚{\
+\item[5 5] αã‚{\b
+\item[1 5] {\a}α
+\item[2 4] \a}α
+\item[3 3] a}α
+\item[4 2] }α
+\item[5 1] α
+\item[1 8] {\a}αã‚{\
+\item[2 7] \a}αã‚{\
+\item[3 6] a}αã‚{\
+\item[4 5] }αã‚{\
+\item[5 4] αã‚{\
+\item[6 3] ã‚{\
+\item[7 2] {\
+\item[8 1] \
+\item[-1 5] \c}γã†
+\item[-1 4] c}γã†
+\item[-1 3] }γã†
+\item[-1 2] γã†
+\item[-1 1] ã†
+\item[-2 1] γ
+\item[-3 1] }
+\item[-4 1] c
+\item[-5 1] \
+\item[-1 5] \c}γã†
+\item[-2 5] {\c}γ
+\item[-3 5] ã„{\c}
+\item[-4 5] βã„{\c
+\item[-5 5] }βã„{\
+\item[-1 5] \c}γã†
+\item[-2 4] \c}γ
+\item[-3 3] \c}
+\item[-4 2] \c
+\item[-5 1] \
+\item[-1 8] βã„{\c}γã†
+\item[-2 7] βã„{\c}γ
+\item[-3 6] βã„{\c}
+\item[-4 5] βã„{\c
+\item[-5 4] βã„{\
+\item[-6 3] βã„{
+\item[-7 2] βã„
+\item[-8 1] β
+\item[orig] {\a}ã‚α{\b}ã„β{\c}ã†Î³
+\item[1 5] {\a}ã‚
+\item[1 4] {\a}
+\item[1 3] {\a
+\item[1 2] {\
+\item[1 1] {
+\item[2 1] \
+\item[3 1] a
+\item[4 1] }
+\item[5 1] ã‚
+\item[1 5] {\a}ã‚
+\item[2 5] \a}ã‚α
+\item[3 5] a}ã‚α{
+\item[4 5] }ã‚α{\
+\item[5 5] ã‚α{\b
+\item[1 5] {\a}ã‚
+\item[2 4] \a}ã‚
+\item[3 3] a}ã‚
+\item[4 2] }ã‚
+\item[5 1] ã‚
+\item[1 8] {\a}ã‚α{\
+\item[2 7] \a}ã‚α{\
+\item[3 6] a}ã‚α{\
+\item[4 5] }ã‚α{\
+\item[5 4] ã‚α{\
+\item[6 3] α{\
+\item[7 2] {\
+\item[8 1] \
+\item[-1 5] \c}ã†Î³
+\item[-1 4] c}ã†Î³
+\item[-1 3] }ã†Î³
+\item[-1 2] ã†Î³
+\item[-1 1] γ
+\item[-2 1] ã†
+\item[-3 1] }
+\item[-4 1] c
+\item[-5 1] \
+\item[-1 5] \c}ã†Î³
+\item[-2 5] {\c}ã†
+\item[-3 5] β{\c}
+\item[-4 5] ã„β{\c
+\item[-5 5] }ã„β{\
+\item[-1 5] \c}ã†Î³
+\item[-2 4] \c}ã†
+\item[-3 3] \c}
+\item[-4 2] \c
+\item[-5 1] \
+\item[-1 8] ã„β{\c}ã†Î³
+\item[-2 7] ã„β{\c}ã†
+\item[-3 6] ã„β{\c}
+\item[-4 5] ã„β{\c
+\item[-5 4] ã„β{\
+\item[-6 3] ã„β{
+\item[-7 2] ã„β
+\item[-8 1] ã„
+\item[orig] {{AB}CD}EFG tuv{wx{yz}}
+\item[1 5] {{AB}
+\item[1 4] {{AB
+\item[1 3] {{A
+\item[1 2] {{
+\item[1 1] {
+\item[2 1] {
+\item[3 1] A
+\item[4 1] B
+\item[5 1] }
+\item[1 5] {{AB}
+\item[2 5] {AB}C
+\item[3 5] AB}CD
+\item[4 5] B}CD}
+\item[5 5] }CD}E
+\item[1 5] {{AB}
+\item[2 4] {AB}
+\item[3 3] AB}
+\item[4 2] B}
+\item[5 1] }
+\item[1 8] {{AB}CD}
+\item[2 7] {AB}CD}
+\item[3 6] AB}CD}
+\item[4 5] B}CD}
+\item[5 4] }CD}
+\item[6 3] CD}
+\item[7 2] D}
+\item[8 1] }
+\item[-1 5] {yz}}
+\item[-1 4] yz}}
+\item[-1 3] z}}
+\item[-1 2] }}
+\item[-1 1] }
+\item[-2 1] }
+\item[-3 1] z
+\item[-4 1] y
+\item[-5 1] {
+\item[-1 5] {yz}}
+\item[-2 5] x{yz}
+\item[-3 5] wx{yz
+\item[-4 5] {wx{y
+\item[-5 5] v{wx{
+\item[-1 5] {yz}}
+\item[-2 4] {yz}
+\item[-3 3] {yz
+\item[-4 2] {y
+\item[-5 1] {
+\item[-1 8] {wx{yz}}
+\item[-2 7] {wx{yz}
+\item[-3 6] {wx{yz
+\item[-4 5] {wx{y
+\item[-5 4] {wx{
+\item[-6 3] {wx
+\item[-7 2] {w
+\item[-8 1] {
+\item[orig] {{ÅÇ}ÈÎ}ØÜÃ~åçè{îø{üý}}
+\item[1 5] {{ÅÇ}
+\item[1 4] {{ÅÇ
+\item[1 3] {{Ã…
+\item[1 2] {{
+\item[1 1] {
+\item[2 1] {
+\item[3 1] Ã…
+\item[4 1] Ç
+\item[5 1] }
+\item[1 5] {{ÅÇ}
+\item[2 5] {ÅÇ}È
+\item[3 5] ÅÇ}ÈÎ
+\item[4 5] Ç}ÈÎ}
+\item[5 5] }ÈÎ}Ø
+\item[1 5] {{ÅÇ}
+\item[2 4] {ÅÇ}
+\item[3 3] ÅÇ}
+\item[4 2] Ç}
+\item[5 1] }
+\item[1 8] {{ÅÇ}ÈÎ}
+\item[2 7] {ÅÇ}ÈÎ}
+\item[3 6] ÅÇ}ÈÎ}
+\item[4 5] Ç}ÈÎ}
+\item[5 4] }ÈÎ}
+\item[6 3] ÈÎ}
+\item[7 2] ÃŽ}
+\item[8 1] }
+\item[-1 5] {üý}}
+\item[-1 4] üý}}
+\item[-1 3] ý}}
+\item[-1 2] }}
+\item[-1 1] }
+\item[-2 1] }
+\item[-3 1] ý
+\item[-4 1] ü
+\item[-5 1] {
+\item[-1 5] {üý}}
+\item[-2 5] ø{üý}
+\item[-3 5] îø{üý
+\item[-4 5] {îø{ü
+\item[-5 5] è{îø{
+\item[-1 5] {üý}}
+\item[-2 4] {üý}
+\item[-3 3] {üý
+\item[-4 2] {ü
+\item[-5 1] {
+\item[-1 8] {îø{üý}}
+\item[-2 7] {îø{üý}
+\item[-3 6] {îø{üý
+\item[-4 5] {îø{ü
+\item[-5 4] {îø{
+\item[-6 3] {îø
+\item[-7 2] {î
+\item[-8 1] {
+\item[orig] {{一二}三四}五六七 肆ä¼é™¸{漆æŒ{玖拾}}
+\item[1 5] {{一二}
+\item[1 4] {{一二
+\item[1 3] {{一
+\item[1 2] {{
+\item[1 1] {
+\item[2 1] {
+\item[3 1] 一
+\item[4 1] 二
+\item[5 1] }
+\item[1 5] {{一二}
+\item[2 5] {一二}三
+\item[3 5] 一二}三四
+\item[4 5] 二}三四}
+\item[5 5] }三四}五
+\item[1 5] {{一二}
+\item[2 4] {一二}
+\item[3 3] 一二}
+\item[4 2] 二}
+\item[5 1] }
+\item[1 8] {{一二}三四}
+\item[2 7] {一二}三四}
+\item[3 6] 一二}三四}
+\item[4 5] 二}三四}
+\item[5 4] }三四}
+\item[6 3] 三四}
+\item[7 2] å››}
+\item[8 1] }
+\item[-1 5] {玖拾}}
+\item[-1 4] 玖拾}}
+\item[-1 3] 拾}}
+\item[-1 2] }}
+\item[-1 1] }
+\item[-2 1] }
+\item[-3 1] 拾
+\item[-4 1] 玖
+\item[-5 1] {
+\item[-1 5] {玖拾}}
+\item[-2 5] æŒ{玖拾}
+\item[-3 5] 漆æŒ{玖拾
+\item[-4 5] {漆æŒ{玖
+\item[-5 5] 陸{漆æŒ{
+\item[-1 5] {玖拾}}
+\item[-2 4] {玖拾}
+\item[-3 3] {玖拾
+\item[-4 2] {玖
+\item[-5 1] {
+\item[-1 8] {漆æŒ{玖拾}}
+\item[-2 7] {漆æŒ{玖拾}
+\item[-3 6] {漆æŒ{玖拾
+\item[-4 5] {漆æŒ{玖
+\item[-5 4] {漆æŒ{
+\item[-6 3] {漆æŒ
+\item[-7 2] {漆
+\item[-8 1] {
+\item[orig]
+ {{櫛杓}屠冤}𦥑𠮟𠀋𡈽ð¥±ð¨¦‡ð¡š´{𠷡𧘕{𧘔𩸽}}
+\item[1 5] {{櫛杓}
+\item[1 4] {{櫛杓
+\item[1 3] {{櫛
+\item[1 2] {{
+\item[1 1] {
+\item[2 1] {
+\item[3 1] 櫛
+\item[4 1] 杓
+\item[5 1] }
+\item[1 5] {{櫛杓}
+\item[2 5] {櫛杓}屠
+\item[3 5] 櫛杓}屠冤
+\item[4 5] 杓}屠冤}
+\item[5 5] }屠冤}𦥑
+\item[1 5] {{櫛杓}
+\item[2 4] {櫛杓}
+\item[3 3] 櫛杓}
+\item[4 2] 杓}
+\item[5 1] }
+\item[1 8] {{櫛杓}屠冤}
+\item[2 7] {櫛杓}屠冤}
+\item[3 6] 櫛杓}屠冤}
+\item[4 5] 杓}屠冤}
+\item[5 4] }屠冤}
+\item[6 3] 屠冤}
+\item[7 2] 冤}
+\item[8 1] }
+\item[-1 5] {𧘔𩸽}}
+\item[-1 4] 𧘔𩸽}}
+\item[-1 3] 𩸽}}
+\item[-1 2] }}
+\item[-1 1] }
+\item[-2 1] }
+\item[-3 1] 𩸽
+\item[-4 1] 𧘔
+\item[-5 1] {
+\item[-1 5] {𧘔𩸽}}
+\item[-2 5] 𧘕{𧘔𩸽}
+\item[-3 5] 𠷡𧘕{𧘔𩸽
+\item[-4 5] {𠷡𧘕{𧘔
+\item[-5 5] 𡚴{𠷡𧘕{
+\item[-1 5] {𧘔𩸽}}
+\item[-2 4] {𧘔𩸽}
+\item[-3 3] {𧘔𩸽
+\item[-4 2] {𧘔
+\item[-5 1] {
+\item[-1 8] {𠷡𧘕{𧘔𩸽}}
+\item[-2 7] {𠷡𧘕{𧘔𩸽}
+\item[-3 6] {𠷡𧘕{𧘔𩸽
+\item[-4 5] {𠷡𧘕{𧘔
+\item[-5 4] {𠷡𧘕{
+\item[-6 3] {𠷡𧘕
+\item[-7 2] {ð ·¡
+\item[-8 1] {
+\item[orig] ΑΒΓΔΕΖΗ στυφχψω
+\item[1 5] ΑΒΓΔΕ
+\item[1 4] ΑΒΓΔ
+\item[1 3] ΑΒΓ
+\item[1 2] ΑΒ
+\item[1 1] Α
+\item[2 1] Î’
+\item[3 1] Γ
+\item[4 1] Δ
+\item[5 1] Ε
+\item[1 5] ΑΒΓΔΕ
+\item[2 5] ΒΓΔΕΖ
+\item[3 5] ΓΔΕΖΗ
+\item[4 5] ΔΕΖΗ
+\item[5 5] ΕΖΗ σ
+\item[1 5] ΑΒΓΔΕ
+\item[2 4] ΒΓΔΕ
+\item[3 3] ΓΔΕ
+\item[4 2] ΔΕ
+\item[5 1] Ε
+\item[1 8] ΑΒΓΔΕΖΗ
+\item[2 7] ΒΓΔΕΖΗ
+\item[3 6] ΓΔΕΖΗ
+\item[4 5] ΔΕΖΗ
+\item[5 4] ΕΖΗ
+\item[6 3] ΖΗ
+\item[7 2] Η
+\item[8 1]
+\item[-1 5] υφχψω
+\item[-1 4] φχψω
+\item[-1 3] χψω
+\item[-1 2] ψω
+\item[-1 1] ω
+\item[-2 1] ψ
+\item[-3 1] χ
+\item[-4 1] φ
+\item[-5 1] Ï…
+\item[-1 5] υφχψω
+\item[-2 5] τυφχψ
+\item[-3 5] στυφχ
+\item[-4 5] στυφ
+\item[-5 5] Η στυ
+\item[-1 5] υφχψω
+\item[-2 4] υφχψ
+\item[-3 3] υφχ
+\item[-4 2] υφ
+\item[-5 1] Ï…
+\item[-1 8] στυφχψω
+\item[-2 7] στυφχψ
+\item[-3 6] στυφχ
+\item[-4 5] στυφ
+\item[-5 4] στυ
+\item[-6 3] στ
+\item[-7 2] σ
+\item[-8 1]
+\item[orig] ÐБВГДЕЖ щъыьÑÑŽÑ
+\item[1 5] ÐБВГД
+\item[1 4] ÐБВГ
+\item[1 3] ÐБВ
+\item[1 2] ÐБ
+\item[1 1] Ð
+\item[2 1] Б
+\item[3 1] Ð’
+\item[4 1] Г
+\item[5 1] Д
+\item[1 5] ÐБВГД
+\item[2 5] БВГДЕ
+\item[3 5] ВГДЕЖ
+\item[4 5] ГДЕЖ
+\item[5 5] ДЕЖ щ
+\item[1 5] ÐБВГД
+\item[2 4] БВГД
+\item[3 3] ВГД
+\item[4 2] ГД
+\item[5 1] Д
+\item[1 8] ÐБВГДЕЖ
+\item[2 7] БВГДЕЖ
+\item[3 6] ВГДЕЖ
+\item[4 5] ГДЕЖ
+\item[5 4] ДЕЖ
+\item[6 3] ЕЖ
+\item[7 2] Ж
+\item[8 1]
+\item[-1 5] Ñ‹ÑŒÑÑŽÑ
+\item[-1 4] ÑŒÑÑŽÑ
+\item[-1 3] ÑÑŽÑ
+\item[-1 2] ÑŽÑ
+\item[-1 1] Ñ
+\item[-2 1] ÑŽ
+\item[-3 1] Ñ
+\item[-4 1] ь
+\item[-5 1] Ñ‹
+\item[-1 5] Ñ‹ÑŒÑÑŽÑ
+\item[-2 5] ÑŠÑ‹ÑŒÑÑŽ
+\item[-3 5] щъыьÑ
+\item[-4 5] щъыь
+\item[-5 5] Ж щъы
+\item[-1 5] Ñ‹ÑŒÑÑŽÑ
+\item[-2 4] Ñ‹ÑŒÑÑŽ
+\item[-3 3] Ñ‹ÑŒÑ
+\item[-4 2] ыь
+\item[-5 1] Ñ‹
+\item[-1 8] щъыьÑÑŽÑ
+\item[-2 7] щъыьÑÑŽ
+\item[-3 6] щъыьÑ
+\item[-4 5] щъыь
+\item[-5 4] щъы
+\item[-6 3] щъ
+\item[-7 2] щ
+\item[-8 1]
+\item[orig] ã‚ã„ã†ãˆãŠã‹ã ユヨワヰヱヲン
+\item[1 5] ã‚ã„ã†ãˆãŠ
+\item[1 4] ã‚ã„ã†ãˆ
+\item[1 3] ã‚ã„ã†
+\item[1 2] ã‚ã„
+\item[1 1] ã‚
+\item[2 1] ã„
+\item[3 1] ã†
+\item[4 1] ãˆ
+\item[5 1] ãŠ
+\item[1 5] ã‚ã„ã†ãˆãŠ
+\item[2 5] ã„ã†ãˆãŠã‹
+\item[3 5] ã†ãˆãŠã‹ã
+\item[4 5] ãˆãŠã‹ã 
+\item[5 5] ãŠã‹ã ユ
+\item[1 5] ã‚ã„ã†ãˆãŠ
+\item[2 4] ã„ã†ãˆãŠ
+\item[3 3] ã†ãˆãŠ
+\item[4 2] ãˆãŠ
+\item[5 1] ãŠ
+\item[1 8] ã‚ã„ã†ãˆãŠã‹ã 
+\item[2 7] ã„ã†ãˆãŠã‹ã 
+\item[3 6] ã†ãˆãŠã‹ã 
+\item[4 5] ãˆãŠã‹ã 
+\item[5 4] ãŠã‹ã 
+\item[6 3] ã‹ã 
+\item[7 2] ã 
+\item[8 1]  
+\item[-1 5] ワヰヱヲン
+\item[-1 4] ヰヱヲン
+\item[-1 3] ヱヲン
+\item[-1 2] ヲン
+\item[-1 1] ン
+\item[-2 1] ヲ
+\item[-3 1] ヱ
+\item[-4 1] ヰ
+\item[-5 1] ワ
+\item[-1 5] ワヰヱヲン
+\item[-2 5] ヨワヰヱヲ
+\item[-3 5] ユヨワヰヱ
+\item[-4 5]  ユヨワヰ
+\item[-5 5] ã ユヨワ
+\item[-1 5] ワヰヱヲン
+\item[-2 4] ワヰヱヲ
+\item[-3 3] ワヰヱ
+\item[-4 2] ワヰ
+\item[-5 1] ワ
+\item[-1 8]  ユヨワヰヱヲン
+\item[-2 7]  ユヨワヰヱヲ
+\item[-3 6]  ユヨワヰヱ
+\item[-4 5]  ユヨワヰ
+\item[-5 4]  ユヨワ
+\item[-6 3]  ユヨ
+\item[-7 2]  ユ
+\item[-8 1]  
+\item[orig] 一二三四五六七 肆ä¼é™¸æ¼†æŒçŽ–拾
+\item[1 5] 一二三四五
+\item[1 4] 一二三四
+\item[1 3] 一二三
+\item[1 2] 一二
+\item[1 1] 一
+\item[2 1] 二
+\item[3 1] 三
+\item[4 1] å››
+\item[5 1] 五
+\item[1 5] 一二三四五
+\item[2 5] 二三四五六
+\item[3 5] 三四五六七
+\item[4 5] 四五六七 
+\item[5 5] 五六七 肆
+\item[1 5] 一二三四五
+\item[2 4] 二三四五
+\item[3 3] 三四五
+\item[4 2] 四五
+\item[5 1] 五
+\item[1 8] 一二三四五六七 
+\item[2 7] 二三四五六七 
+\item[3 6] 三四五六七 
+\item[4 5] 四五六七 
+\item[5 4] 五六七 
+\item[6 3] 六七 
+\item[7 2] 七 
+\item[8 1]  
+\item[-1 5] 陸漆æŒçŽ–拾
+\item[-1 4] 漆æŒçŽ–拾
+\item[-1 3] æŒçŽ–拾
+\item[-1 2] 玖拾
+\item[-1 1] 拾
+\item[-2 1] 玖
+\item[-3 1] æŒ
+\item[-4 1] 漆
+\item[-5 1] 陸
+\item[-1 5] 陸漆æŒçŽ–拾
+\item[-2 5] ä¼é™¸æ¼†æŒçŽ–
+\item[-3 5] 肆ä¼é™¸æ¼†æŒ
+\item[-4 5]  肆ä¼é™¸æ¼†
+\item[-5 5] 七 肆ä¼é™¸
+\item[-1 5] 陸漆æŒçŽ–拾
+\item[-2 4] 陸漆æŒçŽ–
+\item[-3 3] 陸漆æŒ
+\item[-4 2] 陸漆
+\item[-5 1] 陸
+\item[-1 8]  肆ä¼é™¸æ¼†æŒçŽ–拾
+\item[-2 7]  肆ä¼é™¸æ¼†æŒçŽ–
+\item[-3 6]  肆ä¼é™¸æ¼†æŒ
+\item[-4 5]  肆ä¼é™¸æ¼†
+\item[-5 4]  肆ä¼é™¸
+\item[-6 3]  肆ä¼
+\item[-7 2]  肆
+\item[-8 1]  
+\item[orig] 櫛杓屠冤𦥑𠮟𠀋𡈽ð¥±ð¨¦‡ð¡š´ð ·¡ð§˜•ð§˜”𩸽
+\item[1 5] 櫛杓屠冤𦥑
+\item[1 4] 櫛杓屠冤
+\item[1 3] 櫛杓屠
+\item[1 2] 櫛杓
+\item[1 1] 櫛
+\item[2 1] 杓
+\item[3 1] 屠
+\item[4 1] 冤
+\item[5 1] 𦥑
+\item[1 5] 櫛杓屠冤𦥑
+\item[2 5] 杓屠冤𦥑𠮟
+\item[3 5] 屠冤𦥑𠮟𠀋
+\item[4 5] 冤𦥑𠮟𠀋𡈽
+\item[5 5] 𦥑𠮟𠀋𡈽ð¥±
+\item[1 5] 櫛杓屠冤𦥑
+\item[2 4] 杓屠冤𦥑
+\item[3 3] 屠冤𦥑
+\item[4 2] 冤𦥑
+\item[5 1] 𦥑
+\item[1 8] 櫛杓屠冤𦥑𠮟𠀋𡈽
+\item[2 7] 杓屠冤𦥑𠮟𠀋𡈽
+\item[3 6] 屠冤𦥑𠮟𠀋𡈽
+\item[4 5] 冤𦥑𠮟𠀋𡈽
+\item[5 4] 𦥑𠮟𠀋𡈽
+\item[6 3] 𠮟𠀋𡈽
+\item[7 2] 𠀋𡈽
+\item[8 1] 𡈽
+\item[-1 5] 𡚴𠷡𧘕𧘔𩸽
+\item[-1 4] 𠷡𧘕𧘔𩸽
+\item[-1 3] 𧘕𧘔𩸽
+\item[-1 2] 𧘔𩸽
+\item[-1 1] 𩸽
+\item[-2 1] 𧘔
+\item[-3 1] 𧘕
+\item[-4 1] ð ·¡
+\item[-5 1] ð¡š´
+\item[-1 5] 𡚴𠷡𧘕𧘔𩸽
+\item[-2 5] 𨦇𡚴𠷡𧘕𧘔
+\item[-3 5] ð¥±ð¨¦‡ð¡š´ð ·¡ð§˜•
+\item[-4 5] 𡈽ð¥±ð¨¦‡ð¡š´ð ·¡
+\item[-5 5] 𠀋𡈽ð¥±ð¨¦‡ð¡š´
+\item[-1 5] 𡚴𠷡𧘕𧘔𩸽
+\item[-2 4] 𡚴𠷡𧘕𧘔
+\item[-3 3] 𡚴𠷡𧘕
+\item[-4 2] ð¡š´ð ·¡
+\item[-5 1] ð¡š´
+\item[-1 8] 𡈽ð¥±ð¨¦‡ð¡š´ð ·¡ð§˜•ð§˜”𩸽
+\item[-2 7] 𡈽ð¥±ð¨¦‡ð¡š´ð ·¡ð§˜•ð§˜”
+\item[-3 6] 𡈽ð¥±ð¨¦‡ð¡š´ð ·¡ð§˜•
+\item[-4 5] 𡈽ð¥±ð¨¦‡ð¡š´ð ·¡
+\item[-5 4] 𡈽ð¥±ð¨¦‡ð¡š´
+\item[-6 3] 𡈽ð¥±ð¨¦‡
+\item[-7 2] 𡈽ð¥±
+\item[-8 1] 𡈽
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/testcase.bst b/biblio/bibtex/bibtex-x/tests/testcase.bst
new file mode 100644
index 0000000000..deb8ab4b5c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testcase.bst
@@ -0,0 +1,44 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item[~] " field *
+ write$ newline$
+ "\item[u] " field "u" change.case$ *
+ write$ newline$
+ "\item[l] " field "l" change.case$ *
+ write$ newline$
+ "\item[t] " field "t" change.case$ *
+ write$ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testcasea.bib b/biblio/bibtex/bibtex-x/tests/testcasea.bib
new file mode 100644
index 0000000000..3fd3dcdb79
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testcasea.bib
@@ -0,0 +1,8 @@
+@Type{ascii,
+ field = {ABC HIJ XYZ abc hij xyz {ACE} {ace}},
+}
+
+@Type{latin1,
+ field = {ÀÁÂ ÆÇÈ ÔÕÖ ØÙÚ ÜÝÞ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}},
+}
+
diff --git a/biblio/bibtex/bibtex-x/tests/testcaseu.bib b/biblio/bibtex/bibtex-x/tests/testcaseu.bib
new file mode 100644
index 0000000000..961f159553
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testcaseu.bib
@@ -0,0 +1,48 @@
+@Type{ascii,
+ field = {ABC HIJ XYZ abc hij xyz {ACE} {ace}},
+}
+
+@Type{latin1,
+ field = {ÀàÆÇÈ ÔÕÖ ØÙÚ ÃœÃÞ àáâ æçè ôõö øùú üýþ {ÆÇÈ} {æçè}},
+}
+
+@Type{latin-extA1,
+ field = {ĀĂĄ IJĴĶ ĹĻĽ ŃŅŇ Äăą ijĵķ ĺļľ ńņň},
+}
+
+@Type{latin-extA2,
+ field = {ŊŌŎ ŲŴŶ Ÿ ŹŻŽ Å‹ÅŠųŵŷ ÿ źżž},
+}
+
+@Type{latin-SharpS,
+ field = {SS S ß s},
+}
+
+@Type{greek1,
+ field = {ΑΒΓ ΠΡ ΣΤ ΧΨΩΪ αβγ Ï€Ï ÏƒÏ„ χψωϊ {ΑΠΣ} {απσ}},
+}
+
+@Type{greek2,
+ field = {ͰͲͶ ϘϚϜ ϪϬϮ Ï· Ϻ ͱͳͷ Ï™Ï›Ï Ï«Ï­Ï¯ ϸ Ï»},
+}
+
+@Type{cyrillic1,
+ field = {ÐБВ ОП РС ЭЮЯ абв оп Ñ€Ñ ÑÑŽÑ {ÐРЯ} {апÑ}},
+}
+
+@Type{cyrillic2,
+ field = {ЀÐЂЃЄЅІЇЈЉЊЋЌÐÐŽÐ ÑёђѓєѕіїјљњћќÑўџ},
+}
+
+@Type{cyrillic3,
+ field = {ѠѢѤ ѼѾҀ ҊҌҎ ÒºÒ¼Ò¾ ѡѣѥ Ñ½Ñ¿Ò Ò‹ÒÒ Ò»Ò½Ò¿},
+}
+
+@Type{cyrillic4,
+ field = {Ó€ ÓÓƒÓ… Ó‰Ó‹Ó Ó Ó‚Ó„Ó† ӊӌӎ},
+}
+
+@Type{cyrillic5,
+ field = {ÓÓ’Ó” ÓºÓ¼Ó¾ Ô€Ô‚Ô„ ÔªÔ¬Ô® Ó‘Ó“Ó• Ó»Ó½Ó¿ ÔÔƒÔ… Ô«Ô­Ô¯},
+}
+
diff --git a/biblio/bibtex/bibtex-x/tests/testchar.bst b/biblio/bibtex/bibtex-x/tests/testchar.bst
new file mode 100644
index 0000000000..d9c778fca9
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testchar.bst
@@ -0,0 +1,40 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item " field * write$
+ " i2str: " field chr.to.int$ int.to.str$ * write$
+ " i2chr: " field chr.to.int$ int.to.chr$ * write$
+ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testchara.bib b/biblio/bibtex/bibtex-x/tests/testchara.bib
new file mode 100644
index 0000000000..20acd2737e
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testchara.bib
@@ -0,0 +1,18 @@
+@Type{ascii-000, field = {A}, }
+@Type{ascii-001, field = {C}, }
+@Type{ascii-002, field = {D}, }
+@Type{ascii-003, field = {E}, }
+@Type{ascii-005, field = {i}, }
+@Type{ascii-006, field = {o}, }
+@Type{ascii-007, field = {u}, }
+@Type{ascii-008, field = {y}, }
+
+@Type{latin1-000, field = {Å}, }
+@Type{latin1-001, field = {Ç}, }
+@Type{latin1-002, field = {Ð}, }
+@Type{latin1-003, field = {È}, }
+@Type{latin1-005, field = {î}, }
+@Type{latin1-006, field = {ø}, }
+@Type{latin1-007, field = {ü}, }
+@Type{latin1-008, field = {ý}, }
+
diff --git a/biblio/bibtex/bibtex-x/tests/testcharu.bib b/biblio/bibtex/bibtex-x/tests/testcharu.bib
new file mode 100644
index 0000000000..e4f7b9b987
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testcharu.bib
@@ -0,0 +1,56 @@
+@Type{ascii-000, field = {A}, }
+@Type{ascii-001, field = {C}, }
+@Type{ascii-002, field = {D}, }
+@Type{ascii-003, field = {E}, }
+@Type{ascii-005, field = {i}, }
+@Type{ascii-006, field = {o}, }
+@Type{ascii-007, field = {u}, }
+@Type{ascii-008, field = {y}, }
+
+@Type{latin1-000, field = {Ã…}, }
+@Type{latin1-001, field = {Ç}, }
+@Type{latin1-002, field = {Ã}, }
+@Type{latin1-003, field = {È}, }
+@Type{latin1-005, field = {î}, }
+@Type{latin1-006, field = {ø}, }
+@Type{latin1-007, field = {ü}, }
+@Type{latin1-008, field = {ý}, }
+
+@Type{greek-000, field = {Α}, }
+@Type{greek-001, field = {Î’}, }
+@Type{greek-002, field = {Γ}, }
+@Type{greek-003, field = {χ}, }
+@Type{greek-004, field = {ψ}, }
+@Type{greek-005, field = {ω}, }
+
+@Type{cyrillic-001, field = {Ð}, }
+@Type{cyrillic-002, field = {Б}, }
+@Type{cyrillic-003, field = {Ð’}, }
+@Type{cyrillic-004, field = {Ñ}, }
+@Type{cyrillic-005, field = {ÑŽ}, }
+@Type{cyrillic-006, field = {Ñ}, }
+
+@Type{kana-001, field = {ã‚}, }
+@Type{kana-002, field = {ã„}, }
+@Type{kana-003, field = {ã†}, }
+@Type{kana-004, field = { }, }
+@Type{kana-005, field = {ヱ}, }
+@Type{kana-006, field = {ヲ}, }
+@Type{kana-007, field = {ン}, }
+
+@Type{hanzi-001, field = {一}, }
+@Type{hanzi-002, field = {二}, }
+@Type{hanzi-003, field = {三}, }
+@Type{hanzi-005, field = {æŒ}, }
+@Type{hanzi-006, field = {玖}, }
+@Type{hanzi-007, field = {拾}, }
+@Type{hanzi-011, field = {𠮟}, }
+@Type{hanzi-012, field = {ð¥±}, }
+
+@Type{hangul-001, field = {ê°€}, }
+@Type{hangul-002, field = {나}, }
+@Type{hangul-003, field = {다}, }
+@Type{hangul-005, field = {한}, }
+@Type{hangul-006, field = {글}, }
+@Type{hangul-007, field = {í…}, }
+
diff --git a/biblio/bibtex/bibtex-x/tests/testdata.bib b/biblio/bibtex/bibtex-x/tests/testdata.bib
new file mode 100644
index 0000000000..c17aa9c838
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testdata.bib
@@ -0,0 +1,43 @@
+@Type{8bit-1,
+ field = {Øø},
+}
+
+@Type{8bit-2,
+ field = {Åå},
+}
+
+@Type{8bit-3,
+ field = {Ää},
+}
+
+@Type{8bit-4,
+ field = {Öö},
+}
+
+@Type{aa,
+ field = {Aa},
+}
+
+@Type{bb,
+ field = {Bb},
+}
+
+@Type{cc,
+ field = {Cc},
+}
+
+@Type{oo,
+ field = {Oo},
+}
+
+@Type{xx,
+ field = {Xx},
+}
+
+@Type{yy,
+ field = {Yy},
+}
+
+@Type{zz,
+ field = {Zz},
+}
diff --git a/biblio/bibtex/bibtex-x/tests/testiscjk.bst b/biblio/bibtex/bibtex-x/tests/testiscjk.bst
new file mode 100644
index 0000000000..c744b6548c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testiscjk.bst
@@ -0,0 +1,47 @@
+% BibTeXu test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+%
+% Test for built-in functions is.cjk.str$ and is.kanji.str$
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item " field * write$
+ ": " field is.cjk.str$ int.to.str$ * write$
+ " " field is.kanji.str$ int.to.str$ * write$
+ " hz:" field is.cjk.str$ #1 & int.to.str$ * write$
+ " kn:" field is.cjk.str$ #2 & int.to.str$ * write$
+ " hg:" field is.cjk.str$ #4 & int.to.str$ * write$
+ " bp:" field is.cjk.str$ #8 & int.to.str$ * write$
+ " misc:" field is.cjk.str$ #2048 & int.to.str$ * write$
+ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testiscjku.bib b/biblio/bibtex/bibtex-x/tests/testiscjku.bib
new file mode 100644
index 0000000000..be03f14c31
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testiscjku.bib
@@ -0,0 +1,66 @@
+@Type{ascii-1000, field = {ACDE iouy}, }
+
+@Type{latin1-1000, field = {ÅÇÃÈ îøüý}, }
+@Type{latin1-2000, field = {¢£§©®±µ¶}, }
+@Type{latinExtA-1000, field = {ĂĆĎĘ ĭőůŷ}, }
+
+@Type{greek-1000, field = {ΑΒΓΔφχψω}, }
+
+@Type{cyrillic-1000, field = {ÐБВГьÑÑŽÑ}, }
+
+@Type{kana-1000, field = {ã‚ã„ã†ãˆã‚ã‚‘ã‚’ã‚“}, }
+@Type{kana-2000, field = {アイウエヰヱヲン}, }
+@Type{kana-3000, field = {アイウワヲï¾}, }
+@Type{katakana-phonetic-extensions-1000, field = {ㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ}, }
+@Type{kana-ExtA-1000, field = {𛄀ð›„𛄂𛄃𛄄𛄅𛄆𛄇}, }
+@Type{kana-ExtB-1000, field = {𚿰𚿱𚿲𚿳𚿵𚿶𚿷𚿸}, }
+@Type{small-kana-Ext-1000, field = {ð›…𛅑𛅒𛅤𛅥𛅦𛅧}, }
+
+@Type{hanzi-1000, field = {一二三四漆æŒçŽ–拾}, }
+@Type{cjk-ideograph-ExtA-1000, field = {ã‚㒵㓛ãžãŸ¢ã†ã¬ã®ã”«ãš‘ã§}, }
+@Type{cjk-ideograph-ExtB-1000, field = {櫛杓𦥑𠮟𠀋𡈽ð¥±ð¡š´}, }
+@Type{cjk-compatibility-ideograph-1000, field = {豈ï¤ï¤‚賈滑串句龜}, }
+@Type{cjk-ideograph-ExtC-1000, field = {𪜀ðªœðªœ‚𪜃𪜄𪜅𪜆𪜇}, }
+
+@Type{hangul-1000, field = {가나다ë¼ë§ˆí•œê¸€í…}, }
+
+@Type{fullw-001, field = {#}, }
+@Type{fullw-002, field = {ï¼ }, }
+@Type{fullw-003, field = {A}, }
+@Type{fullw-004, field = {z}, }
+@Type{fullw-005, field = {ï¿¡}, }
+@Type{fullw-006, field = {₩}, }
+@Type{fullw-007, field = {ï¼}, }
+@Type{fullw-008, field = {ï¼™}, }
+
+@Type{symbol-101, field = {☀}, }
+@Type{symbol-102, field = {â˜}, }
+@Type{symbol-103, field = {☂}, }
+@Type{symbol-104, field = {☃}, }
+@Type{symbol-105, field = {â—}, }
+@Type{symbol-106, field = {â–³}, }
+@Type{symbol-107, field = {â– }, }
+@Type{symbol-108, field = {â—‡}, }
+@Type{symbol-109, field = {ï¼¼}, }
+
+@Type{hangul-jamo-1000, field = {á„€á„ᄂᄃᇶᇷᇸᇹ}, }
+@Type{hangul-compatibilityjamo-1000, field = {ㄱㄲㄳㄴㆉㆊㆋㆌ}, }
+@Type{hangul-jamo-ExtA-1000, field = {ꥠꥡꥢꥣꥤꥥꥦꥧ}, }
+@Type{hangul-jamo-ExtB-1000, field = {ힰힱힲힳힴힵힶힷ}, }
+@Type{cjk-radical-supplement-1000, field = {âºâº’⺓⺔⺖⺗⺘⺙⻭⻯⻲}, }
+@Type{kangxi-radicals-1000, field = {â¿Žâ¿â¿â¿‘⿒⿓⿔⿕}, }
+@Type{ideographic-description-char-1000, field = {⿰⿱⿲⿳⿴⿵⿶⿷⿸⿹⿺⿻}, }
+@Type{bopomofo-1000, field = {ㄅㄆㄇㄈㄦㄧㄨㄩ}, }
+@Type{bopomofo-extended-1000, field = {ㆠㆡㆢㆣㆤㆥㆦㆧ}, }
+@Type{kanbun-1000, field = {㆑㆒㆓㆔㆙㆚㆛㆜ã†ã†žã†Ÿ}, }
+@Type{cjk-strokes-1000, field = {㇀ã‡ã‡‚㇃㇠㇡㇢㇣}, }
+
+@Type{cjk-symbols-and-punctuation-1000, field = {〄々〆〇ã€ã€‘〠〽}, }
+@Type{enclosed-cjk-letters-and-months-1000, field = {㈀ãˆãˆ‚㈠㈡㈢㈱ã‹ã‹‘ã‹’}, }
+@Type{cjk-compatibility-1000, field = {㌀ãŒãŒ‚㌃㌄㌅㌆㌇}, }
+@Type{cjk-compatibility-forms-1000, field = {︵︶︷︸︹︺︻︼︽︾}, }
+
+@Type{mix0, field = {mix ã¦ãµë‚˜ë¹„è´è¶ã„ㄨˊㄉㄧã„ËŠâ¾}, }
+@Type{mix1, field = {mix ã¦ãµè´è¶}, }
+@Type{mix2, field = {mix è´è¶ã„ㄨˊㄉㄧã„ËŠâ¾}, }
+@Type{mix3, field = {mix 나비è´è¶}, }
diff --git a/biblio/bibtex/bibtex-x/tests/testname.bst b/biblio/bibtex/bibtex-x/tests/testname.bst
new file mode 100644
index 0000000000..d9addb41d0
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testname.bst
@@ -0,0 +1,64 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {author}{}{}
+
+STRINGS { s }
+
+INTEGERS { nameptr namesleft numnames }
+
+FUNCTION {format.names}
+{ 's :=
+ #1 'nameptr :=
+ s num.names$ 'numnames :=
+ numnames 'namesleft :=
+ { namesleft #0 > }
+ { " [" nameptr int.to.str$ * "]" * write$
+ " {ff} " s nameptr "{ff}" format.name$ * write$
+ " {ll} " s nameptr "{ll}" format.name$ * write$
+ " {vv} " s nameptr "{vv}" format.name$ * write$
+ " {jj} " s nameptr "{jj}" format.name$ * write$ newline$
+ " | " s nameptr "{ff}{vv}{ll}{jj}" format.name$ * write$
+ " | " s nameptr "{ff }{vv }{ll}{ jj}" format.name$ * write$
+ " | " s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ * write$
+ " | " s nameptr "{f.~}{v.~}{ll}{, jj}" format.name$ * write$
+ newline$
+ nameptr #1 + 'nameptr :=
+ namesleft #1 - 'namesleft :=
+ }
+ while$
+}
+
+FUNCTION {output_entry} {
+ "\item " author * write$ newline$
+ author format.names
+}
+
+FUNCTION {book} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ author 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testperiod.bst b/biblio/bibtex/bibtex-x/tests/testperiod.bst
new file mode 100644
index 0000000000..b597eb00c9
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testperiod.bst
@@ -0,0 +1,40 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item[~~] " field *
+ write$ newline$
+ "\item[ap] " field add.period$ *
+ write$ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testperioda.bib b/biblio/bibtex/bibtex-x/tests/testperioda.bib
new file mode 100644
index 0000000000..047ad091dc
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testperioda.bib
@@ -0,0 +1,8 @@
+@Type{abc0, field = {ABC xyz}, }
+@Type{abc1, field = {ABC xyz.}, }
+@Type{abc2, field = {ABC xyz!}, }
+@Type{abc3, field = {ABC xyz?}, }
+@Type{abc4, field = {ABC xyz,}, }
+@Type{abc5, field = {ABC {xyz!}}, }
+@Type{abc6, field = {ABC {{xyz?}}}, }
+
diff --git a/biblio/bibtex/bibtex-x/tests/testperiodu.bib b/biblio/bibtex/bibtex-x/tests/testperiodu.bib
new file mode 100644
index 0000000000..e6bd30ba54
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testperiodu.bib
@@ -0,0 +1,33 @@
+@Type{abc0, field = {ABC xyz}, }
+@Type{abc1, field = {ABC xyz.}, }
+@Type{abc2, field = {ABC xyz!}, }
+@Type{abc3, field = {ABC xyz?}, }
+@Type{abc4, field = {ABC xyz,}, }
+@Type{abc5, field = {ABC {xyz!}}, }
+@Type{abc6, field = {ABC {{xyz?}}}, }
+
+@Type{cyrillic0, field = {ÐБВ ÑÑŽÑ}, }
+@Type{cyrillic1, field = {ÐБВ ÑÑŽÑ.}, }
+@Type{cyrillic2, field = {ÐБВ ÑÑŽÑ!}, }
+@Type{cyrillic3, field = {ÐБВ ÑÑŽÑ?}, }
+@Type{cyrillic4, field = {ÐБВ ÑÑŽÑ,}, }
+@Type{cyrillic5, field = {ÐБВ {ÑÑŽÑ!}}, }
+@Type{cyrillic6, field = {ÐБВ {{ÑÑŽÑ?}}}, }
+
+@Type{aiu0, field = {ã‚ã„ã†ã‚ãŠã‚“}, }
+@Type{aiu1, field = {ã‚ã„ã†ã‚ãŠã‚“。}, }
+@Type{aiu2, field = {ã‚ã„ã†ã‚ãŠã‚“.}, }
+@Type{aiu3, field = {ã‚ã„ã†ã‚ãŠã‚“ï¼}, }
+@Type{aiu4, field = {ã‚ã„ã†ã‚ãŠã‚“?}, }
+@Type{aiu5, field = {ã‚ã„ã†ã‚ãŠã‚“‼}, }
+@Type{aiu6, field = {ã‚ã„ã†ã‚ãŠã‚“â‡}, }
+@Type{aiu7, field = {ã‚ã„ã†ã‚ãŠã‚“âˆ}, }
+@Type{aiu8, field = {ã‚ã„ã†ã‚ãŠã‚“â‰}, }
+@Type{aiu9, field = {ã‚ã„ã†ã‚ãŠã‚“‽}, }
+@Type{aiuA, field = {ã‚ã„ã†ã‚ãŠã‚“ã€}, }
+@Type{aiuB, field = {ã‚ã„ã†ã‚ãŠã‚“,}, }
+@Type{aiuC, field = {ã‚ã„ã†ã‚{ãŠã‚“ï¼}}, }
+@Type{aiuD, field = {ã‚ã„ã†ã‚{{ãŠã‚“?}}}, }
+@Type{aiuE, field = {ã‚ã„ã†ã‚{{{ãŠã‚“‼}}}}, }
+@Type{aiuF, field = {ã‚ã„ã†ã‚{{{{ãŠã‚“â‡}}}}}, }
+
diff --git a/biblio/bibtex/bibtex-x/tests/testsortu.bib b/biblio/bibtex/bibtex-x/tests/testsortu.bib
new file mode 100644
index 0000000000..0d7b6253ae
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testsortu.bib
@@ -0,0 +1,27 @@
+@Type{8bit-1, field = {Øø}, }
+@Type{8bit-2, field = {Ã…Ã¥}, }
+@Type{8bit-3, field = {Ää}, }
+@Type{8bit-4, field = {Öö}, }
+
+@Type{aa, field = {Aa}, }
+@Type{bb, field = {Bb}, }
+@Type{cc, field = {Cc}, }
+@Type{oo, field = {Oo}, }
+@Type{xx, field = {Xx}, }
+@Type{yy, field = {Yy}, }
+@Type{zz, field = {Zz}, }
+
+@Type{greek1, field = {Αα}, }
+@Type{greek2, field = {Ββ}, }
+@Type{greek3, field = {Γγ}, }
+@Type{greek4, field = {Χχ}, }
+@Type{greek5, field = {Ψψ}, }
+@Type{greek6, field = {Ωω}, }
+
+@Type{cyrillic1, field = {Ðа}, }
+@Type{cyrillic2, field = {Бб}, }
+@Type{cyrillic3, field = {Вв}, }
+@Type{cyrillic4, field = {ЭÑ}, }
+@Type{cyrillic5, field = {Юю}, }
+@Type{cyrillic6, field = {ЯÑ}, }
+
diff --git a/biblio/bibtex/bibtex-x/tests/teststyle.bst b/biblio/bibtex/bibtex-x/tests/teststyle.bst
new file mode 100644
index 0000000000..72f7525c7b
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/teststyle.bst
@@ -0,0 +1,36 @@
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item " field * " " *
+ field "u" change.case$ * " " *
+ field "l" change.case$ *
+ write$ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sortkey} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sortkey}
+
+SORT
+
+FUNCTION {output_beg} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_beg}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testsubstr.bst b/biblio/bibtex/bibtex-x/tests/testsubstr.bst
new file mode 100644
index 0000000000..a332f82a00
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testsubstr.bst
@@ -0,0 +1,91 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item[orig] " field * write$ newline$
+ "\item[1 5] " field #1 #5 substring$ * write$ newline$
+ "\item[1 4] " field #1 #4 substring$ * write$ newline$
+ "\item[1 3] " field #1 #3 substring$ * write$ newline$
+ "\item[1 2] " field #1 #2 substring$ * write$ newline$
+ "\item[1 1] " field #1 #1 substring$ * write$ newline$
+ "\item[2 1] " field #2 #1 substring$ * write$ newline$
+ "\item[3 1] " field #3 #1 substring$ * write$ newline$
+ "\item[4 1] " field #4 #1 substring$ * write$ newline$
+ "\item[5 1] " field #5 #1 substring$ * write$ newline$
+ "\item[1 5] " field #1 #5 substring$ * write$ newline$
+ "\item[2 5] " field #2 #5 substring$ * write$ newline$
+ "\item[3 5] " field #3 #5 substring$ * write$ newline$
+ "\item[4 5] " field #4 #5 substring$ * write$ newline$
+ "\item[5 5] " field #5 #5 substring$ * write$ newline$
+ "\item[1 5] " field #1 #5 substring$ * write$ newline$
+ "\item[2 4] " field #2 #4 substring$ * write$ newline$
+ "\item[3 3] " field #3 #3 substring$ * write$ newline$
+ "\item[4 2] " field #4 #2 substring$ * write$ newline$
+ "\item[5 1] " field #5 #1 substring$ * write$ newline$
+ "\item[1 8] " field #1 #8 substring$ * write$ newline$
+ "\item[2 7] " field #2 #7 substring$ * write$ newline$
+ "\item[3 6] " field #3 #6 substring$ * write$ newline$
+ "\item[4 5] " field #4 #5 substring$ * write$ newline$
+ "\item[5 4] " field #5 #4 substring$ * write$ newline$
+ "\item[6 3] " field #6 #3 substring$ * write$ newline$
+ "\item[7 2] " field #7 #2 substring$ * write$ newline$
+ "\item[8 1] " field #8 #1 substring$ * write$ newline$
+ "\item[-1 5] " field #-1 #5 substring$ * write$ newline$
+ "\item[-1 4] " field #-1 #4 substring$ * write$ newline$
+ "\item[-1 3] " field #-1 #3 substring$ * write$ newline$
+ "\item[-1 2] " field #-1 #2 substring$ * write$ newline$
+ "\item[-1 1] " field #-1 #1 substring$ * write$ newline$
+ "\item[-2 1] " field #-2 #1 substring$ * write$ newline$
+ "\item[-3 1] " field #-3 #1 substring$ * write$ newline$
+ "\item[-4 1] " field #-4 #1 substring$ * write$ newline$
+ "\item[-5 1] " field #-5 #1 substring$ * write$ newline$
+ "\item[-1 5] " field #-1 #5 substring$ * write$ newline$
+ "\item[-2 5] " field #-2 #5 substring$ * write$ newline$
+ "\item[-3 5] " field #-3 #5 substring$ * write$ newline$
+ "\item[-4 5] " field #-4 #5 substring$ * write$ newline$
+ "\item[-5 5] " field #-5 #5 substring$ * write$ newline$
+ "\item[-1 5] " field #-1 #5 substring$ * write$ newline$
+ "\item[-2 4] " field #-2 #4 substring$ * write$ newline$
+ "\item[-3 3] " field #-3 #3 substring$ * write$ newline$
+ "\item[-4 2] " field #-4 #2 substring$ * write$ newline$
+ "\item[-5 1] " field #-5 #1 substring$ * write$ newline$
+ "\item[-1 8] " field #-1 #8 substring$ * write$ newline$
+ "\item[-2 7] " field #-2 #7 substring$ * write$ newline$
+ "\item[-3 6] " field #-3 #6 substring$ * write$ newline$
+ "\item[-4 5] " field #-4 #5 substring$ * write$ newline$
+ "\item[-5 4] " field #-5 #4 substring$ * write$ newline$
+ "\item[-6 3] " field #-6 #3 substring$ * write$ newline$
+ "\item[-7 2] " field #-7 #2 substring$ * write$ newline$
+ "\item[-8 1] " field #-8 #1 substring$ * write$ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testsubstra.bib b/biblio/bibtex/bibtex-x/tests/testsubstra.bib
new file mode 100644
index 0000000000..4ceeccac63
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testsubstra.bib
@@ -0,0 +1,21 @@
+@Type{ascii,
+ field = {ABCDEFG tuvwxyz},
+}
+@Type{ascii-a,
+ field = {{AB}CDEFG tuvwx{yz}},
+}
+@Type{ascii-b,
+ field = {{{AB}CD}EFG tuv{wx{yz}}},
+}
+
+@Type{latin1,
+ field = {ÅÇÈÎØÜÝ~åçèîøüý},
+}
+@Type{latin1-b,
+ field = {{{ÅÇ}ÈÎ}ØÜÝ~åçè{îø{üý}}},
+}
+
+@Type{brace-backslash1,
+ field = "{\a}Åå{\b}Ææ{\c}Çç",
+}
+
diff --git a/biblio/bibtex/bibtex-x/tests/testsubstru.bib b/biblio/bibtex/bibtex-x/tests/testsubstru.bib
new file mode 100644
index 0000000000..a77db5354f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testsubstru.bib
@@ -0,0 +1,59 @@
+@Type{ascii,
+ field = {ABCDEFG tuvwxyz},
+}
+@Type{ascii-a,
+ field = {{AB}CDEFG tuvwx{yz}},
+}
+@Type{ascii-b,
+ field = {{{AB}CD}EFG tuv{wx{yz}}},
+}
+
+@Type{latin1,
+ field = {ÅÇÈÎØÜÃ~åçèîøüý},
+}
+@Type{latin1-b,
+ field = {{{ÅÇ}ÈÎ}ØÜÃ~åçè{îø{üý}}},
+}
+
+@Type{greek,
+ field = {ΑΒΓΔΕΖΗ στυφχψω},
+}
+
+@Type{cyrillic,
+ field = {ÐБВГДЕЖ щъыьÑÑŽÑ},
+}
+
+@Type{kana,
+ field = {ã‚ã„ã†ãˆãŠã‹ã ユヨワヰヱヲン},
+}
+
+@Type{hanzi,
+ field = {一二三四五六七 肆ä¼é™¸æ¼†æŒçŽ–拾},
+}
+@Type{hanzi-b,
+ field = {{{一二}三四}五六七 肆ä¼é™¸{漆æŒ{玖拾}}},
+}
+
+@Type{hanzi2,
+ field = {櫛杓屠冤𦥑𠮟𠀋𡈽ð¥±ð¨¦‡ð¡š´ð ·¡ð§˜•ð§˜”𩸽},
+}
+@Type{hanzi2-b,
+ field = {{{櫛杓}屠冤}𦥑𠮟𠀋𡈽ð¥±ð¨¦‡ð¡š´{𠷡𧘕{𧘔𩸽}}},
+}
+
+@Type{mix,
+ field = {AÇã†ð¯ ˜EÜЖ~tçユ漆𡚴xюω},
+}
+
+@Type{brace-backslash1,
+ field = "{\a}Åå{\b}Ææ{\c}Çç",
+}
+
+@Type{brace-backslash2,
+ field = "{\a}αã‚{\b}βã„{\c}γã†",
+}
+
+@Type{brace-backslash3,
+ field = "{\a}ã‚α{\b}ã„β{\c}ã†Î³",
+}
+
diff --git a/biblio/bibtex/bibtex-x/tests/testtxtprfx.bst b/biblio/bibtex/bibtex-x/tests/testtxtprfx.bst
new file mode 100644
index 0000000000..20383dc2c1
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testtxtprfx.bst
@@ -0,0 +1,45 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item[orig] " field * write$ newline$
+ "\item[len] " field text.length$ int.to.str$ * write$ newline$
+ "\item[1] " field #1 text.prefix$ * write$ newline$
+ "\item[2] " field #2 text.prefix$ * write$ newline$
+ "\item[3] " field #3 text.prefix$ * write$ newline$
+ "\item[4] " field #4 text.prefix$ * write$ newline$
+ "\item[5] " field #5 text.prefix$ * write$ newline$
+ "\item[6] " field #6 text.prefix$ * write$ newline$
+ "\item[7] " field #7 text.prefix$ * write$ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testwidth.bst b/biblio/bibtex/bibtex-x/tests/testwidth.bst
new file mode 100644
index 0000000000..2af9d8c388
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testwidth.bst
@@ -0,0 +1,38 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item " field width$ int.to.str$ * write$
+ " " field * write$ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sort_key} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sort_key}
+
+SORT
+
+FUNCTION {output_bgn} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_bgn}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}
diff --git a/biblio/bibtex/bibtex-x/tests/testwidtha.bib b/biblio/bibtex/bibtex-x/tests/testwidtha.bib
new file mode 100644
index 0000000000..f4cd21e57f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testwidtha.bib
@@ -0,0 +1,155 @@
+@Type{ascii-1000, field = {ACDE iouy}, }
+
+@Type{latin1-1000, field = {ÅÇÐÈ îøüý}, }
+
+@Type{ascii-021, field = {!}, }
+@Type{ascii-022, field = {"}, }
+@Type{ascii-023, field = {#}, }
+@Type{ascii-024, field = {$}, }
+@Type{ascii-025, field = {%}, }
+@Type{ascii-026, field = {&}, }
+@Type{ascii-02A, field = {*}, }
+@Type{ascii-02B, field = {+}, }
+@Type{ascii-03C, field = {<}, }
+@Type{ascii-03D, field = {=}, }
+@Type{ascii-03E, field = {>}, }
+@Type{ascii-03F, field = {?}, }
+@Type{ascii-040, field = {@}, }
+@Type{ascii-041, field = {A}, }
+@Type{ascii-042, field = {B}, }
+@Type{ascii-043, field = {C}, }
+@Type{ascii-044, field = {D}, }
+@Type{ascii-045, field = {E}, }
+@Type{ascii-046, field = {F}, }
+@Type{ascii-047, field = {G}, }
+@Type{ascii-048, field = {H}, }
+@Type{ascii-049, field = {I}, }
+@Type{ascii-04A, field = {J}, }
+@Type{ascii-04B, field = {K}, }
+@Type{ascii-04C, field = {L}, }
+@Type{ascii-04D, field = {M}, }
+@Type{ascii-04E, field = {N}, }
+@Type{ascii-04F, field = {O}, }
+@Type{ascii-050, field = {P}, }
+@Type{ascii-051, field = {Q}, }
+@Type{ascii-052, field = {R}, }
+@Type{ascii-053, field = {S}, }
+@Type{ascii-054, field = {T}, }
+@Type{ascii-055, field = {U}, }
+@Type{ascii-056, field = {V}, }
+@Type{ascii-057, field = {W}, }
+@Type{ascii-058, field = {X}, }
+@Type{ascii-059, field = {Y}, }
+@Type{ascii-05A, field = {Z}, }
+@Type{ascii-061, field = {a}, }
+@Type{ascii-062, field = {b}, }
+@Type{ascii-063, field = {c}, }
+@Type{ascii-064, field = {d}, }
+@Type{ascii-065, field = {e}, }
+@Type{ascii-066, field = {f}, }
+@Type{ascii-067, field = {g}, }
+@Type{ascii-068, field = {h}, }
+@Type{ascii-069, field = {i}, }
+@Type{ascii-06A, field = {j}, }
+@Type{ascii-06B, field = {k}, }
+@Type{ascii-06C, field = {l}, }
+@Type{ascii-06D, field = {m}, }
+@Type{ascii-06E, field = {n}, }
+@Type{ascii-06F, field = {o}, }
+@Type{ascii-070, field = {p}, }
+@Type{ascii-071, field = {q}, }
+@Type{ascii-072, field = {r}, }
+@Type{ascii-073, field = {s}, }
+@Type{ascii-074, field = {t}, }
+@Type{ascii-075, field = {u}, }
+@Type{ascii-076, field = {v}, }
+@Type{ascii-077, field = {w}, }
+@Type{ascii-078, field = {x}, }
+@Type{ascii-079, field = {y}, }
+@Type{ascii-07A, field = {z}, }
+@Type{ascii-000, field = {0}, }
+@Type{ascii-001, field = {1}, }
+@Type{ascii-002, field = {2}, }
+@Type{ascii-003, field = {3}, }
+@Type{ascii-004, field = {4}, }
+@Type{ascii-005, field = {5}, }
+@Type{ascii-006, field = {6}, }
+@Type{ascii-007, field = {7}, }
+@Type{ascii-008, field = {8}, }
+@Type{ascii-009, field = {9}, }
+
+@Type{latin1-0A1, field = {¡}, }
+@Type{latin1-0A3, field = {£}, }
+@Type{latin1-0A7, field = {§}, }
+@Type{latin1-0AB, field = {«}, }
+@Type{latin1-0BB, field = {»}, }
+@Type{latin1-0BF, field = {¿}, }
+@Type{latin1-0C0, field = {À}, }
+@Type{latin1-0C1, field = {Á}, }
+@Type{latin1-0C2, field = {Â}, }
+@Type{latin1-0C3, field = {Ã}, }
+@Type{latin1-0C4, field = {Ä}, }
+@Type{latin1-0C5, field = {Å}, }
+@Type{latin1-0C6, field = {Æ}, }
+@Type{latin1-0C7, field = {Ç}, }
+@Type{latin1-0C8, field = {È}, }
+@Type{latin1-0C9, field = {É}, }
+@Type{latin1-0CA, field = {Ê}, }
+@Type{latin1-0CB, field = {Ë}, }
+@Type{latin1-0CC, field = {Ì}, }
+@Type{latin1-0CD, field = {Í}, }
+@Type{latin1-0CE, field = {Î}, }
+@Type{latin1-0CF, field = {Ï}, }
+@Type{latin1-0D0, field = {Ð}, }
+@Type{latin1-0D1, field = {Ñ}, }
+@Type{latin1-0D2, field = {Ò}, }
+@Type{latin1-0D3, field = {Ó}, }
+@Type{latin1-0D4, field = {Ô}, }
+@Type{latin1-0D5, field = {Õ}, }
+@Type{latin1-0D6, field = {Ö}, }
+@Type{latin1-0D7, field = {×}, }
+@Type{latin1-0D8, field = {Ø}, }
+@Type{latin1-0D9, field = {Ù}, }
+@Type{latin1-0DA, field = {Ú}, }
+@Type{latin1-0DB, field = {Û}, }
+@Type{latin1-0DC, field = {Ü}, }
+@Type{latin1-0DD, field = {Ý}, }
+@Type{latin1-0DE, field = {Þ}, }
+@Type{latin1-0DF, field = {ß}, }
+@Type{latin1-0E0, field = {à}, }
+@Type{latin1-0E1, field = {á}, }
+@Type{latin1-0E2, field = {â}, }
+@Type{latin1-0E3, field = {ã}, }
+@Type{latin1-0E4, field = {ä}, }
+@Type{latin1-0E5, field = {å}, }
+@Type{latin1-0E6, field = {æ}, }
+@Type{latin1-0E7, field = {ç}, }
+@Type{latin1-0E8, field = {è}, }
+@Type{latin1-0E9, field = {é}, }
+@Type{latin1-0EA, field = {ê}, }
+@Type{latin1-0EB, field = {ë}, }
+@Type{latin1-0EC, field = {ì}, }
+@Type{latin1-0ED, field = {í}, }
+@Type{latin1-0EE, field = {î}, }
+@Type{latin1-0EF, field = {ï}, }
+@Type{latin1-0F0, field = {ð}, }
+@Type{latin1-0F1, field = {ñ}, }
+@Type{latin1-0F2, field = {ò}, }
+@Type{latin1-0F3, field = {ó}, }
+@Type{latin1-0F4, field = {ô}, }
+@Type{latin1-0F5, field = {õ}, }
+@Type{latin1-0F6, field = {ö}, }
+@Type{latin1-0F7, field = {÷}, }
+@Type{latin1-0F8, field = {ø}, }
+@Type{latin1-0F9, field = {ù}, }
+@Type{latin1-0FA, field = {ú}, }
+@Type{latin1-0FB, field = {û}, }
+@Type{latin1-0FC, field = {ü}, }
+@Type{latin1-0FD, field = {ý}, }
+@Type{latin1-0FE, field = {þ}, }
+@Type{latin1-0FF, field = {ÿ}, }
+
+@Type{ascii-long-100, field = {LONG long LONG long LONG long LONG long LONG long LONG long LONG long LONG long}, }
+@Type{ascii-long-101, field = {LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong LONG long}, }
+@Type{latin1-long-100, field = {ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý}, }
+@Type{latin1-long-101, field = {ÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüý ÅÇÐÈ îøüý}, }
diff --git a/biblio/bibtex/bibtex-x/tests/testwidthu.bib b/biblio/bibtex/bibtex-x/tests/testwidthu.bib
new file mode 100644
index 0000000000..71ef3dba7c
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testwidthu.bib
@@ -0,0 +1,378 @@
+@Type{ascii-1000, field = {ACDE iouy}, }
+
+@Type{latin1-1000, field = {ÅÇÃÈ îøüý}, }
+
+@Type{latinExtA-1000, field = {ĂĆĎĘ ĭőůŷ}, }
+
+@Type{ascii-021, field = {!}, }
+@Type{ascii-022, field = {"}, }
+@Type{ascii-023, field = {#}, }
+@Type{ascii-024, field = {$}, }
+@Type{ascii-025, field = {%}, }
+@Type{ascii-026, field = {&}, }
+@Type{ascii-02A, field = {*}, }
+@Type{ascii-02B, field = {+}, }
+@Type{ascii-03C, field = {<}, }
+@Type{ascii-03D, field = {=}, }
+@Type{ascii-03E, field = {>}, }
+@Type{ascii-03F, field = {?}, }
+@Type{ascii-040, field = {@}, }
+@Type{ascii-041, field = {A}, }
+@Type{ascii-042, field = {B}, }
+@Type{ascii-043, field = {C}, }
+@Type{ascii-044, field = {D}, }
+@Type{ascii-045, field = {E}, }
+@Type{ascii-046, field = {F}, }
+@Type{ascii-047, field = {G}, }
+@Type{ascii-048, field = {H}, }
+@Type{ascii-049, field = {I}, }
+@Type{ascii-04A, field = {J}, }
+@Type{ascii-04B, field = {K}, }
+@Type{ascii-04C, field = {L}, }
+@Type{ascii-04D, field = {M}, }
+@Type{ascii-04E, field = {N}, }
+@Type{ascii-04F, field = {O}, }
+@Type{ascii-050, field = {P}, }
+@Type{ascii-051, field = {Q}, }
+@Type{ascii-052, field = {R}, }
+@Type{ascii-053, field = {S}, }
+@Type{ascii-054, field = {T}, }
+@Type{ascii-055, field = {U}, }
+@Type{ascii-056, field = {V}, }
+@Type{ascii-057, field = {W}, }
+@Type{ascii-058, field = {X}, }
+@Type{ascii-059, field = {Y}, }
+@Type{ascii-05A, field = {Z}, }
+@Type{ascii-061, field = {a}, }
+@Type{ascii-062, field = {b}, }
+@Type{ascii-063, field = {c}, }
+@Type{ascii-064, field = {d}, }
+@Type{ascii-065, field = {e}, }
+@Type{ascii-066, field = {f}, }
+@Type{ascii-067, field = {g}, }
+@Type{ascii-068, field = {h}, }
+@Type{ascii-069, field = {i}, }
+@Type{ascii-06A, field = {j}, }
+@Type{ascii-06B, field = {k}, }
+@Type{ascii-06C, field = {l}, }
+@Type{ascii-06D, field = {m}, }
+@Type{ascii-06E, field = {n}, }
+@Type{ascii-06F, field = {o}, }
+@Type{ascii-070, field = {p}, }
+@Type{ascii-071, field = {q}, }
+@Type{ascii-072, field = {r}, }
+@Type{ascii-073, field = {s}, }
+@Type{ascii-074, field = {t}, }
+@Type{ascii-075, field = {u}, }
+@Type{ascii-076, field = {v}, }
+@Type{ascii-077, field = {w}, }
+@Type{ascii-078, field = {x}, }
+@Type{ascii-079, field = {y}, }
+@Type{ascii-07A, field = {z}, }
+@Type{ascii-000, field = {0}, }
+@Type{ascii-001, field = {1}, }
+@Type{ascii-002, field = {2}, }
+@Type{ascii-003, field = {3}, }
+@Type{ascii-004, field = {4}, }
+@Type{ascii-005, field = {5}, }
+@Type{ascii-006, field = {6}, }
+@Type{ascii-007, field = {7}, }
+@Type{ascii-008, field = {8}, }
+@Type{ascii-009, field = {9}, }
+
+@Type{latin1-0A1, field = {¡}, }
+@Type{latin1-0A3, field = {£}, }
+@Type{latin1-0A7, field = {§}, }
+@Type{latin1-0AB, field = {«}, }
+@Type{latin1-0BB, field = {»}, }
+@Type{latin1-0BF, field = {¿}, }
+@Type{latin1-0C0, field = {À}, }
+@Type{latin1-0C1, field = {Ã}, }
+@Type{latin1-0C2, field = {Â}, }
+@Type{latin1-0C3, field = {Ã}, }
+@Type{latin1-0C4, field = {Ä}, }
+@Type{latin1-0C5, field = {Ã…}, }
+@Type{latin1-0C6, field = {Æ}, }
+@Type{latin1-0C7, field = {Ç}, }
+@Type{latin1-0C8, field = {È}, }
+@Type{latin1-0C9, field = {É}, }
+@Type{latin1-0CA, field = {Ê}, }
+@Type{latin1-0CB, field = {Ë}, }
+@Type{latin1-0CC, field = {Ì}, }
+@Type{latin1-0CD, field = {Ã}, }
+@Type{latin1-0CE, field = {ÃŽ}, }
+@Type{latin1-0CF, field = {Ã}, }
+@Type{latin1-0D0, field = {Ã}, }
+@Type{latin1-0D1, field = {Ñ}, }
+@Type{latin1-0D2, field = {Ã’}, }
+@Type{latin1-0D3, field = {Ó}, }
+@Type{latin1-0D4, field = {Ô}, }
+@Type{latin1-0D5, field = {Õ}, }
+@Type{latin1-0D6, field = {Ö}, }
+@Type{latin1-0D7, field = {×}, }
+@Type{latin1-0D8, field = {Ø}, }
+@Type{latin1-0D9, field = {Ù}, }
+@Type{latin1-0DA, field = {Ú}, }
+@Type{latin1-0DB, field = {Û}, }
+@Type{latin1-0DC, field = {Ü}, }
+@Type{latin1-0DD, field = {Ã}, }
+@Type{latin1-0DE, field = {Þ}, }
+@Type{latin1-0DF, field = {ß}, }
+@Type{latin1-0E0, field = {à}, }
+@Type{latin1-0E1, field = {á}, }
+@Type{latin1-0E2, field = {â}, }
+@Type{latin1-0E3, field = {ã}, }
+@Type{latin1-0E4, field = {ä}, }
+@Type{latin1-0E5, field = {Ã¥}, }
+@Type{latin1-0E6, field = {æ}, }
+@Type{latin1-0E7, field = {ç}, }
+@Type{latin1-0E8, field = {è}, }
+@Type{latin1-0E9, field = {é}, }
+@Type{latin1-0EA, field = {ê}, }
+@Type{latin1-0EB, field = {ë}, }
+@Type{latin1-0EC, field = {ì}, }
+@Type{latin1-0ED, field = {í}, }
+@Type{latin1-0EE, field = {î}, }
+@Type{latin1-0EF, field = {ï}, }
+@Type{latin1-0F0, field = {ð}, }
+@Type{latin1-0F1, field = {ñ}, }
+@Type{latin1-0F2, field = {ò}, }
+@Type{latin1-0F3, field = {ó}, }
+@Type{latin1-0F4, field = {ô}, }
+@Type{latin1-0F5, field = {õ}, }
+@Type{latin1-0F6, field = {ö}, }
+@Type{latin1-0F7, field = {÷}, }
+@Type{latin1-0F8, field = {ø}, }
+@Type{latin1-0F9, field = {ù}, }
+@Type{latin1-0FA, field = {ú}, }
+@Type{latin1-0FB, field = {û}, }
+@Type{latin1-0FC, field = {ü}, }
+@Type{latin1-0FD, field = {ý}, }
+@Type{latin1-0FE, field = {þ}, }
+@Type{latin1-0FF, field = {ÿ}, }
+
+@Type{greek-000, field = {Α}, }
+@Type{greek-001, field = {Î’}, }
+@Type{greek-002, field = {Γ}, }
+@Type{greek-003, field = {χ}, }
+@Type{greek-004, field = {ψ}, }
+@Type{greek-005, field = {ω}, }
+@Type{greek-100, field = {ΑΒΓ χψω}, }
+
+@Type{cyrillic-001, field = {Ð}, }
+@Type{cyrillic-002, field = {Б}, }
+@Type{cyrillic-003, field = {Ð’}, }
+@Type{cyrillic-004, field = {Ñ}, }
+@Type{cyrillic-005, field = {ÑŽ}, }
+@Type{cyrillic-006, field = {Ñ}, }
+@Type{cyrillic-100, field = {ÐБВ ÑÑŽÑ}, }
+
+@Type{kana-001, field = {ã‚}, }
+@Type{kana-002, field = {ã„}, }
+@Type{kana-003, field = {ã†}, }
+@Type{kana-004, field = { }, }
+@Type{kana-005, field = {ヱ}, }
+@Type{kana-006, field = {ヲ}, }
+@Type{kana-007, field = {ン}, }
+@Type{kana-100, field = {ã‚ã„ã†ã€€ãƒ±ãƒ²ãƒ³}, }
+
+@Type{hanzi-001, field = {一}, }
+@Type{hanzi-002, field = {二}, }
+@Type{hanzi-003, field = {三}, }
+@Type{hanzi-005, field = {æŒ}, }
+@Type{hanzi-006, field = {玖}, }
+@Type{hanzi-007, field = {拾}, }
+@Type{hanzi-011, field = {𠮟}, }
+@Type{hanzi-012, field = {ð¥±}, }
+@Type{hanzi-100, field = {一二三 æŒçŽ–拾}, }
+
+@Type{hangul-001, field = {ê°€}, }
+@Type{hangul-002, field = {나}, }
+@Type{hangul-003, field = {다}, }
+@Type{hangul-005, field = {한}, }
+@Type{hangul-006, field = {글}, }
+@Type{hangul-007, field = {í…}, }
+@Type{hangul-100, field = {가나다한글í…}, }
+
+@Type{latinExtA-100, field = {Ä€}, }
+@Type{latinExtA-101, field = {Ä}, }
+@Type{latinExtA-102, field = {Ä‚}, }
+@Type{latinExtA-103, field = {ă}, }
+@Type{latinExtA-104, field = {Ä„}, }
+@Type{latinExtA-105, field = {Ä…}, }
+@Type{latinExtA-106, field = {Ć}, }
+@Type{latinExtA-107, field = {ć}, }
+@Type{latinExtA-108, field = {Ĉ}, }
+@Type{latinExtA-109, field = {ĉ}, }
+@Type{latinExtA-10A, field = {ÄŠ}, }
+@Type{latinExtA-10B, field = {Ä‹}, }
+@Type{latinExtA-10C, field = {Č}, }
+@Type{latinExtA-10D, field = {Ä}, }
+@Type{latinExtA-10E, field = {ÄŽ}, }
+@Type{latinExtA-10F, field = {Ä}, }
+@Type{latinExtA-110, field = {Ä}, }
+@Type{latinExtA-111, field = {Ä‘}, }
+@Type{latinExtA-112, field = {Ä’}, }
+@Type{latinExtA-113, field = {Ä“}, }
+@Type{latinExtA-114, field = {Ä”}, }
+@Type{latinExtA-115, field = {Ä•}, }
+@Type{latinExtA-116, field = {Ä–}, }
+@Type{latinExtA-117, field = {Ä—}, }
+@Type{latinExtA-118, field = {Ę}, }
+@Type{latinExtA-119, field = {Ä™}, }
+@Type{latinExtA-11A, field = {Äš}, }
+@Type{latinExtA-11B, field = {Ä›}, }
+@Type{latinExtA-11C, field = {Ĝ}, }
+@Type{latinExtA-11D, field = {Ä}, }
+@Type{latinExtA-11E, field = {Äž}, }
+@Type{latinExtA-11F, field = {ÄŸ}, }
+@Type{latinExtA-120, field = {Ä }, }
+@Type{latinExtA-121, field = {Ä¡}, }
+@Type{latinExtA-122, field = {Ä¢}, }
+@Type{latinExtA-123, field = {Ä£}, }
+@Type{latinExtA-124, field = {Ĥ}, }
+@Type{latinExtA-125, field = {Ä¥}, }
+@Type{latinExtA-126, field = {Ħ}, }
+@Type{latinExtA-127, field = {ħ}, }
+@Type{latinExtA-128, field = {Ĩ}, }
+@Type{latinExtA-129, field = {Ä©}, }
+@Type{latinExtA-12A, field = {Ī}, }
+@Type{latinExtA-12B, field = {Ä«}, }
+@Type{latinExtA-12C, field = {Ĭ}, }
+@Type{latinExtA-12D, field = {Ä­}, }
+@Type{latinExtA-12E, field = {Ä®}, }
+@Type{latinExtA-12F, field = {į}, }
+@Type{latinExtA-130, field = {Ä°}, }
+@Type{latinExtA-131, field = {ı}, }
+@Type{latinExtA-132, field = {IJ}, }
+@Type{latinExtA-133, field = {ij}, }
+@Type{latinExtA-134, field = {Ä´}, }
+@Type{latinExtA-135, field = {ĵ}, }
+@Type{latinExtA-136, field = {Ķ}, }
+@Type{latinExtA-137, field = {Ä·}, }
+@Type{latinExtA-138, field = {ĸ}, }
+@Type{latinExtA-139, field = {Ĺ}, }
+@Type{latinExtA-13A, field = {ĺ}, }
+@Type{latinExtA-13B, field = {Ä»}, }
+@Type{latinExtA-13C, field = {ļ}, }
+@Type{latinExtA-13D, field = {Ľ}, }
+@Type{latinExtA-13E, field = {ľ}, }
+@Type{latinExtA-13F, field = {Ä¿}, }
+@Type{latinExtA-140, field = {Å€}, }
+@Type{latinExtA-141, field = {Å}, }
+@Type{latinExtA-142, field = {Å‚}, }
+@Type{latinExtA-143, field = {Ń}, }
+@Type{latinExtA-144, field = {Å„}, }
+@Type{latinExtA-145, field = {Å…}, }
+@Type{latinExtA-146, field = {ņ}, }
+@Type{latinExtA-147, field = {Ň}, }
+@Type{latinExtA-148, field = {ň}, }
+@Type{latinExtA-149, field = {ʼn}, }
+@Type{latinExtA-14A, field = {ÅŠ}, }
+@Type{latinExtA-14B, field = {Å‹}, }
+@Type{latinExtA-14C, field = {Ō}, }
+@Type{latinExtA-14D, field = {Å}, }
+@Type{latinExtA-14E, field = {ÅŽ}, }
+@Type{latinExtA-14F, field = {Å}, }
+@Type{latinExtA-150, field = {Å}, }
+@Type{latinExtA-151, field = {Å‘}, }
+@Type{latinExtA-152, field = {Å’}, }
+@Type{latinExtA-153, field = {Å“}, }
+@Type{latinExtA-154, field = {Å”}, }
+@Type{latinExtA-155, field = {Å•}, }
+@Type{latinExtA-156, field = {Å–}, }
+@Type{latinExtA-157, field = {Å—}, }
+@Type{latinExtA-158, field = {Ř}, }
+@Type{latinExtA-159, field = {Å™}, }
+@Type{latinExtA-15A, field = {Åš}, }
+@Type{latinExtA-15B, field = {Å›}, }
+@Type{latinExtA-15C, field = {Ŝ}, }
+@Type{latinExtA-15D, field = {Å}, }
+@Type{latinExtA-15E, field = {Åž}, }
+@Type{latinExtA-15F, field = {ÅŸ}, }
+@Type{latinExtA-160, field = {Å }, }
+@Type{latinExtA-161, field = {Å¡}, }
+@Type{latinExtA-162, field = {Å¢}, }
+@Type{latinExtA-163, field = {Å£}, }
+@Type{latinExtA-164, field = {Ť}, }
+@Type{latinExtA-165, field = {Å¥}, }
+@Type{latinExtA-166, field = {Ŧ}, }
+@Type{latinExtA-167, field = {ŧ}, }
+@Type{latinExtA-168, field = {Ũ}, }
+@Type{latinExtA-169, field = {Å©}, }
+@Type{latinExtA-16A, field = {Ū}, }
+@Type{latinExtA-16B, field = {Å«}, }
+@Type{latinExtA-16C, field = {Ŭ}, }
+@Type{latinExtA-16D, field = {Å­}, }
+@Type{latinExtA-16E, field = {Å®}, }
+@Type{latinExtA-16F, field = {ů}, }
+@Type{latinExtA-170, field = {Å°}, }
+@Type{latinExtA-171, field = {ű}, }
+@Type{latinExtA-172, field = {Ų}, }
+@Type{latinExtA-173, field = {ų}, }
+@Type{latinExtA-174, field = {Å´}, }
+@Type{latinExtA-175, field = {ŵ}, }
+@Type{latinExtA-176, field = {Ŷ}, }
+@Type{latinExtA-177, field = {Å·}, }
+@Type{latinExtA-178, field = {Ÿ}, }
+@Type{latinExtA-179, field = {Ź}, }
+@Type{latinExtA-17A, field = {ź}, }
+@Type{latinExtA-17B, field = {Å»}, }
+@Type{latinExtA-17C, field = {ż}, }
+@Type{latinExtA-17D, field = {Ž}, }
+@Type{latinExtA-17E, field = {ž}, }
+@Type{latinExtA-17F, field = {Å¿}, }
+
+@Type{fullw-001, field = {#}, }
+@Type{fullw-002, field = {ï¼ }, }
+@Type{fullw-003, field = {A}, }
+@Type{fullw-004, field = {z}, }
+@Type{fullw-005, field = {ï¿¡}, }
+@Type{fullw-006, field = {₩}, }
+
+@Type{kana-101, field = {ï½±}, }
+@Type{kana-102, field = {ï½²}, }
+@Type{kana-103, field = {ï½³}, }
+@Type{kana-105, field = {ワ}, }
+@Type{kana-106, field = {ヲ}, }
+@Type{kana-107, field = {ï¾}, }
+
+@Type{symbol-101, field = {☀}, }
+@Type{symbol-102, field = {â˜}, }
+@Type{symbol-103, field = {☂}, }
+@Type{symbol-104, field = {☃}, }
+@Type{symbol-105, field = {â—}, }
+@Type{symbol-106, field = {â–³}, }
+@Type{symbol-107, field = {â– }, }
+@Type{symbol-108, field = {â—‡}, }
+
+@Type{ascii-long-100, field = {L LONG long LONG long LONG long LONG long LONG long LONG long LONG long LONG long}, }
+@Type{ascii-long-101, field = {L LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong LONG long}, }
+@Type{ascii-long-102, field = {L LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONG{long} LONG long}, }
+@Type{ascii-long-103, field = {L LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong\\ LONG long}, }
+@Type{ascii-long-104, field = {L longlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong LONG long}, }
+@Type{latin1-long-100, field = {L ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý}, }
+@Type{latin1-long-101, field = {L ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüý ÅÇÃÈ îøüý}, }
+@Type{latin1-long-102, field = {L ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈ{îøüý} ÅÇÃÈ îøüý}, }
+@Type{latin1-long-103, field = {L ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüý\\ ÅÇÃÈ îøüý}, }
+@Type{latin1-long-104, field = {L ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈiouý ÅÇÃÈ îøüý}, }
+@Type{latin1-long-105, field = {L ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈiouy ÅÇÃÈ îøüý}, }
+@Type{latinEA-long-100, field = {L ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ}, }
+@Type{latinEA-long-101, field = {L ĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷ ĂĆĎĘ ĭőůŷ}, }
+@Type{greek-long-100, field = {L ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω}, }
+@Type{greek-long-101, field = {L ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψω ΑΒΓΔ φχψω}, }
+@Type{greek-long-102, field = {L ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔ{φχψω} ΑΒΓΔ φχψω}, }
+@Type{greek-long-103, field = {L ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψω\\ ΑΒΓΔ φχψω}, }
+@Type{greek-long-104, field = {L ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔiouΓ ABCD φχψω}, }
+@Type{cyrillic-long-100,field = {L ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ}, }
+@Type{cyrillic-long-101,field = {L ÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ}, }
+@Type{hanzi-long-100, field = {L 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾}, }
+@Type{hanzi-long-101, field = {L 一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾 一二三 æŒçŽ–拾}, }
+@Type{hanzi-long-102, field = {L 一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三{æŒçŽ–拾} 一二三 æŒçŽ–拾}, }
+@Type{hanzi-long-103, field = {L 一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾\\ 一二三 æŒçŽ–拾}, }
+@Type{hanzi-long-200, field = {L 冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽ð¥±}, }
+@Type{hanzi-long-201, field = {L 冤𦥑𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽ð¥±}, }
+@Type{hagul-long-100, field = {L 가나다 í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤ 한글í…}, }
+@Type{hagul-long-101, field = {L 가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…ê°€ë‚˜ë‹¤í•œê¸€í… ê°€ë‚˜ë‹¤ 한글í…}, }
+@Type{hagul-long-102, field = {L 가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다{한글í…} 가나다 한글í…}, }
+@Type{hagul-long-103, field = {L 가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…\\ 가나다 한글í…}, }
diff --git a/biblio/bibtex/bibtex-x/tests/txtprfxa.aux b/biblio/bibtex/bibtex-x/tests/txtprfxa.aux
new file mode 100644
index 0000000000..bb22850114
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/txtprfxa.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testtxtprfx}
+\bibdata{testsubstra}
diff --git a/biblio/bibtex/bibtex-x/tests/txtprfxa.bbl b/biblio/bibtex/bibtex-x/tests/txtprfxa.bbl
new file mode 100644
index 0000000000..ac48144769
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/txtprfxa.bbl
@@ -0,0 +1,58 @@
+\section*{Test result}
+\begin{itemize}
+\item[orig] ABCDEFG tuvwxyz
+\item[len] 15
+\item[1] A
+\item[2] AB
+\item[3] ABC
+\item[4] ABCD
+\item[5] ABCDE
+\item[6] ABCDEF
+\item[7] ABCDEFG
+\item[orig] ÅÇÈÎØÜÝ~åçèîøüý
+\item[len] 15
+\item[1] Å
+\item[2] ÅÇ
+\item[3] ÅÇÈ
+\item[4] ÅÇÈÎ
+\item[5] ÅÇÈÎØ
+\item[6] ÅÇÈÎØÜ
+\item[7] ÅÇÈÎØÜÝ
+\item[orig] {AB}CDEFG tuvwx{yz}
+\item[len] 15
+\item[1] {A}
+\item[2] {AB}
+\item[3] {AB}C
+\item[4] {AB}CD
+\item[5] {AB}CDE
+\item[6] {AB}CDEF
+\item[7] {AB}CDEFG
+\item[orig] {{AB}CD}EFG tuv{wx{yz}}
+\item[len] 15
+\item[1] {{A}}
+\item[2] {{AB}}
+\item[3] {{AB}C}
+\item[4] {{AB}CD}
+\item[5] {{AB}CD}E
+\item[6] {{AB}CD}EF
+\item[7] {{AB}CD}EFG
+\item[orig] {{ÅÇ}ÈÎ}ØÜÝ~åçè{îø{üý}}
+\item[len] 15
+\item[1] {{Å}}
+\item[2] {{ÅÇ}}
+\item[3] {{ÅÇ}È}
+\item[4] {{ÅÇ}ÈÎ}
+\item[5] {{ÅÇ}ÈÎ}Ø
+\item[6] {{ÅÇ}ÈÎ}ØÜ
+\item[7] {{ÅÇ}ÈÎ}ØÜÝ
+\item[orig] {\a}Åå{\b}Ææ{\c}Çç
+\item[len] 9
+\item[1] {\a}
+\item[2] {\a}Å
+\item[3] {\a}Åå
+\item[4] {\a}Åå{\b}
+\item[5] {\a}Åå{\b}Æ
+\item[6] {\a}Åå{\b}Ææ
+\item[7] {\a}Åå{\b}Ææ{\c}
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/txtprfxu.aux b/biblio/bibtex/bibtex-x/tests/txtprfxu.aux
new file mode 100644
index 0000000000..8b09ddcead
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/txtprfxu.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testtxtprfx}
+\bibdata{testsubstru}
diff --git a/biblio/bibtex/bibtex-x/tests/txtprfxu.bbl b/biblio/bibtex/bibtex-x/tests/txtprfxu.bbl
new file mode 100644
index 0000000000..59e7b22261
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/txtprfxu.bbl
@@ -0,0 +1,149 @@
+\section*{Test result}
+\begin{itemize}
+\item[orig] ABCDEFG tuvwxyz
+\item[len] 15
+\item[1] A
+\item[2] AB
+\item[3] ABC
+\item[4] ABCD
+\item[5] ABCDE
+\item[6] ABCDEF
+\item[7] ABCDEFG
+\item[orig] ÅÇÈÎØÜÃ~åçèîøüý
+\item[len] 15
+\item[1] Ã…
+\item[2] ÅÇ
+\item[3] ÅÇÈ
+\item[4] ÅÇÈÎ
+\item[5] ÅÇÈÎØ
+\item[6] ÅÇÈÎØÜ
+\item[7] ÅÇÈÎØÜÃ
+\item[orig] AÇã†ð¯ ˜EÜЖ~tçユ漆𡚴xюω
+\item[len] 16
+\item[1] A
+\item[2] AÇ
+\item[3] AÇã†
+\item[4] AÇã†ð¯ ˜
+\item[5] AÇã†ð¯ ˜E
+\item[6] AÇã†ð¯ ˜EÃœ
+\item[7] AÇã†ð¯ ˜EÜЖ
+\item[orig] {AB}CDEFG tuvwx{yz}
+\item[len] 15
+\item[1] {A}
+\item[2] {AB}
+\item[3] {AB}C
+\item[4] {AB}CD
+\item[5] {AB}CDE
+\item[6] {AB}CDEF
+\item[7] {AB}CDEFG
+\item[orig] {\a}Åå{\b}Ææ{\c}Çç
+\item[len] 9
+\item[1] {\a}
+\item[2] {\a}Ã…
+\item[3] {\a}Ã…Ã¥
+\item[4] {\a}Ã…Ã¥{\b}
+\item[5] {\a}Åå{\b}Æ
+\item[6] {\a}Åå{\b}Ææ
+\item[7] {\a}Åå{\b}Ææ{\c}
+\item[orig] {\a}αã‚{\b}βã„{\c}γã†
+\item[len] 9
+\item[1] {\a}
+\item[2] {\a}α
+\item[3] {\a}αã‚
+\item[4] {\a}αã‚{\b}
+\item[5] {\a}αã‚{\b}β
+\item[6] {\a}αã‚{\b}βã„
+\item[7] {\a}αã‚{\b}βã„{\c}
+\item[orig] {\a}ã‚α{\b}ã„β{\c}ã†Î³
+\item[len] 9
+\item[1] {\a}
+\item[2] {\a}ã‚
+\item[3] {\a}ã‚α
+\item[4] {\a}ã‚α{\b}
+\item[5] {\a}ã‚α{\b}ã„
+\item[6] {\a}ã‚α{\b}ã„β
+\item[7] {\a}ã‚α{\b}ã„β{\c}
+\item[orig] {{AB}CD}EFG tuv{wx{yz}}
+\item[len] 15
+\item[1] {{A}}
+\item[2] {{AB}}
+\item[3] {{AB}C}
+\item[4] {{AB}CD}
+\item[5] {{AB}CD}E
+\item[6] {{AB}CD}EF
+\item[7] {{AB}CD}EFG
+\item[orig] {{ÅÇ}ÈÎ}ØÜÃ~åçè{îø{üý}}
+\item[len] 15
+\item[1] {{Ã…}}
+\item[2] {{ÅÇ}}
+\item[3] {{ÅÇ}È}
+\item[4] {{ÅÇ}ÈÎ}
+\item[5] {{ÅÇ}ÈÎ}Ø
+\item[6] {{ÅÇ}ÈÎ}ØÜ
+\item[7] {{ÅÇ}ÈÎ}ØÜÃ
+\item[orig] {{一二}三四}五六七 肆ä¼é™¸{漆æŒ{玖拾}}
+\item[len] 15
+\item[1] {{一}}
+\item[2] {{一二}}
+\item[3] {{一二}三}
+\item[4] {{一二}三四}
+\item[5] {{一二}三四}五
+\item[6] {{一二}三四}五六
+\item[7] {{一二}三四}五六七
+\item[orig]
+ {{櫛杓}屠冤}𦥑𠮟𠀋𡈽ð¥±ð¨¦‡ð¡š´{𠷡𧘕{𧘔𩸽}}
+\item[len] 15
+\item[1] {{櫛}}
+\item[2] {{櫛杓}}
+\item[3] {{櫛杓}屠}
+\item[4] {{櫛杓}屠冤}
+\item[5] {{櫛杓}屠冤}𦥑
+\item[6] {{櫛杓}屠冤}𦥑𠮟
+\item[7] {{櫛杓}屠冤}𦥑𠮟𠀋
+\item[orig] ΑΒΓΔΕΖΗ στυφχψω
+\item[len] 15
+\item[1] Α
+\item[2] ΑΒ
+\item[3] ΑΒΓ
+\item[4] ΑΒΓΔ
+\item[5] ΑΒΓΔΕ
+\item[6] ΑΒΓΔΕΖ
+\item[7] ΑΒΓΔΕΖΗ
+\item[orig] ÐБВГДЕЖ щъыьÑÑŽÑ
+\item[len] 15
+\item[1] Ð
+\item[2] ÐБ
+\item[3] ÐБВ
+\item[4] ÐБВГ
+\item[5] ÐБВГД
+\item[6] ÐБВГДЕ
+\item[7] ÐБВГДЕЖ
+\item[orig] ã‚ã„ã†ãˆãŠã‹ã ユヨワヰヱヲン
+\item[len] 15
+\item[1] ã‚
+\item[2] ã‚ã„
+\item[3] ã‚ã„ã†
+\item[4] ã‚ã„ã†ãˆ
+\item[5] ã‚ã„ã†ãˆãŠ
+\item[6] ã‚ã„ã†ãˆãŠã‹
+\item[7] ã‚ã„ã†ãˆãŠã‹ã
+\item[orig] 一二三四五六七 肆ä¼é™¸æ¼†æŒçŽ–拾
+\item[len] 15
+\item[1] 一
+\item[2] 一二
+\item[3] 一二三
+\item[4] 一二三四
+\item[5] 一二三四五
+\item[6] 一二三四五六
+\item[7] 一二三四五六七
+\item[orig] 櫛杓屠冤𦥑𠮟𠀋𡈽ð¥±ð¨¦‡ð¡š´ð ·¡ð§˜•ð§˜”𩸽
+\item[len] 15
+\item[1] 櫛
+\item[2] 櫛杓
+\item[3] 櫛杓屠
+\item[4] 櫛杓屠冤
+\item[5] 櫛杓屠冤𦥑
+\item[6] 櫛杓屠冤𦥑𠮟
+\item[7] 櫛杓屠冤𦥑𠮟𠀋
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/ubasic.aux b/biblio/bibtex/bibtex-x/tests/ubasic.aux
new file mode 100644
index 0000000000..4795668d63
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/ubasic.aux
@@ -0,0 +1,6 @@
+\relax
+\citation{li2018fuzzing}
+\bibstyle{plain}
+\bibdata{ubasic}
+\@writefile{toc}{\contentsline {section}{\numberline {1}Test}{1}{}\protected@file@percent }
+\gdef \@abspage@last{1}
diff --git a/biblio/bibtex/bibtex-x/tests/ubasic.bbl b/biblio/bibtex/bibtex-x/tests/ubasic.bbl
new file mode 100644
index 0000000000..ead61e2719
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/ubasic.bbl
@@ -0,0 +1,8 @@
+\begin{thebibliography}{1}
+
+\bibitem{li2018fuzzing}
+Jun Li, Bodong Zhao, and Chao Zhang.
+\newblock Fuzzing: a {Survey} abc def.
+\newblock {\em Cybersecurity}, 1(1):6, 2018.
+
+\end{thebibliography}
diff --git a/biblio/bibtex/bibtex-x/tests/ubasic.bib b/biblio/bibtex/bibtex-x/tests/ubasic.bib
new file mode 100644
index 0000000000..67383f2e26
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/ubasic.bib
@@ -0,0 +1,13 @@
+% $Id: ubasic.bib 60292 2021-08-21 09:09:30Z takuji $
+% Public domain. Submitted by Dmitry Zheleznyakov, 2021.
+
+@article{li2018fuzzing,
+ title={Fuzzing: a {Survey} ABC Def},
+ author={Li, Jun and Zhao, Bodong and Zhang, Chao},
+ journal={Cybersecurity},
+ volume={1},
+ number={1},
+ pages={6},
+ year={2018},
+ publisher={Springer}
+}
diff --git a/biblio/bibtex/bibtex-x/tests/ubasic.tex b/biblio/bibtex/bibtex-x/tests/ubasic.tex
new file mode 100644
index 0000000000..1012f2b42d
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/ubasic.tex
@@ -0,0 +1,15 @@
+% $Id: ubasic.tex 59662 2021-06-20 22:56:11Z karl $
+% Public domain. Submitted by Dmitry Zheleznyakov, 2021.
+
+\documentclass{article}
+\usepackage[utf8]{inputenc}
+
+\begin{document}
+
+\section{Test}
+Test~\cite{li2018fuzzing}.
+
+\bibliographystyle{plain}
+\bibliography{ubasic}
+
+\end{document}
diff --git a/biblio/bibtex/bibtex-x/tests/urange.aux b/biblio/bibtex/bibtex-x/tests/urange.aux
new file mode 100644
index 0000000000..30a3a58eba
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/urange.aux
@@ -0,0 +1,6 @@
+\relax
+\citation{li2018range}
+\bibstyle{plain}
+\bibdata{urange}
+\@writefile{toc}{\contentsline {section}{\numberline {1}Test}{1}{}\protected@file@percent }
+\gdef \@abspage@last{1}
diff --git a/biblio/bibtex/bibtex-x/tests/urange.bbl b/biblio/bibtex/bibtex-x/tests/urange.bbl
new file mode 100644
index 0000000000..8a37988ef2
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/urange.bbl
@@ -0,0 +1,8 @@
+\begin{thebibliography}{1}
+
+\bibitem{li2018range}
+Jun Li, Bodong Zhao, and Chao Zhang.
+\newblock Fuzzing: a survey.
+\newblock {\em Cybersecurity}, 1(1):3--6, 2018.
+
+\end{thebibliography}
diff --git a/biblio/bibtex/bibtex-x/tests/urange.bib b/biblio/bibtex/bibtex-x/tests/urange.bib
new file mode 100644
index 0000000000..2f7bbccfe5
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/urange.bib
@@ -0,0 +1,13 @@
+% $Id: urange.bib 59662 2021-06-20 22:56:11Z karl $
+% Public domain. Submitted by Dmitry Zheleznyakov, 2021.
+
+@article{li2018range,
+ title={Fuzzing: a survey},
+ author={Li, Jun and Zhao, Bodong and Zhang, Chao},
+ journal={Cybersecurity},
+ volume={1},
+ number={1},
+ pages={3--6},
+ year={2018},
+ publisher={Springer}
+}
diff --git a/biblio/bibtex/bibtex-x/tests/urange.tex b/biblio/bibtex/bibtex-x/tests/urange.tex
new file mode 100644
index 0000000000..239f2c251f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/urange.tex
@@ -0,0 +1,15 @@
+% $Id: urange.tex 59662 2021-06-20 22:56:11Z karl $
+% Public domain. Submitted by Dmitry Zheleznyakov, 2021.
+
+\documentclass{article}
+\usepackage[utf8]{inputenc}
+
+\begin{document}
+
+\section{Test}
+Test~\cite{li2018range}.
+
+\bibliographystyle{plain}
+\bibliography{urange}
+
+\end{document}
diff --git a/biblio/bibtex/bibtex-x/tests/widtha.aux b/biblio/bibtex/bibtex-x/tests/widtha.aux
new file mode 100644
index 0000000000..745b8adc93
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/widtha.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testwidth}
+\bibdata{testwidtha}
diff --git a/biblio/bibtex/bibtex-x/tests/widtha.bbl b/biblio/bibtex/bibtex-x/tests/widtha.bbl
new file mode 100644
index 0000000000..b4714f5fdb
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/widtha.bbl
@@ -0,0 +1,158 @@
+\section*{Test result}
+\begin{itemize}
+\item 500 0
+\item 500 1
+\item 500 2
+\item 500 3
+\item 500 4
+\item 500 5
+\item 500 6
+\item 500 7
+\item 500 8
+\item 500 9
+\item 750 A
+\item 5057 ACDE iouy
+\item 750 À
+\item 750 Á
+\item 750 Â
+\item 750 Ã
+\item 750 Ä
+\item 750 Å
+\item 903 Æ
+\item 5057 ÅÇÐÈ îøüý
+\item 37067 ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ îøüý ÅÇÐÈ
+ îøüý
+\item 38788 ÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüýÅÇÐÈîøüý ÅÇÐÈ îøüý
+\item 500 a
+\item 500 à
+\item 500 á
+\item 500 â
+\item 500 ã
+\item 500 ä
+\item 500 å
+\item 722 æ
+\item 708 B
+\item 556 b
+\item 722 C
+\item 722 Ç
+\item 444 c
+\item 444 ç
+\item 764 D
+\item 764 Ð
+\item 556 d
+\item 500 ð
+\item 681 E
+\item 681 È
+\item 681 É
+\item 681 Ê
+\item 681 Ë
+\item 444 e
+\item 444 è
+\item 444 é
+\item 444 ê
+\item 444 ë
+\item 653 F
+\item 306 f
+\item 785 G
+\item 500 g
+\item 750 H
+\item 556 h
+\item 361 I
+\item 361 Ì
+\item 361 Í
+\item 361 Î
+\item 361 Ï
+\item 278 i
+\item 278 ì
+\item 278 í
+\item 278 î
+\item 333 ï
+\item 514 J
+\item 306 j
+\item 778 K
+\item 528 k
+\item 625 L
+\item 42346 LONG long LONG long LONG long LONG long LONG long LONG long LONG
+ long LONG long
+\item 43504 LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong
+ LONG long
+\item 278 l
+\item 917 M
+\item 833 m
+\item 750 N
+\item 750 Ñ
+\item 556 n
+\item 556 ñ
+\item 778 O
+\item 778 Ò
+\item 778 Ó
+\item 778 Ô
+\item 778 Õ
+\item 778 Ö
+\item 778 Ø
+\item 500 o
+\item 500 ò
+\item 500 ó
+\item 500 ô
+\item 500 õ
+\item 500 ö
+\item 500 ø
+\item 681 P
+\item 556 p
+\item 778 Q
+\item 528 q
+\item 736 R
+\item 392 r
+\item 556 S
+\item 394 s
+\item 500 ß
+\item 722 T
+\item 625 Þ
+\item 389 t
+\item 556 þ
+\item 750 U
+\item 750 Ù
+\item 750 Ú
+\item 750 Û
+\item 750 Ü
+\item 556 u
+\item 556 ù
+\item 556 ú
+\item 556 û
+\item 556 ü
+\item 750 V
+\item 528 v
+\item 1028 W
+\item 722 w
+\item 750 X
+\item 528 x
+\item 750 Y
+\item 750 Ý
+\item 528 y
+\item 528 ý
+\item 528 ÿ
+\item 611 Z
+\item 444 z
+\item 278 !
+\item 500 "
+\item 833 #
+\item 500 $
+\item 833 %
+\item 778 &
+\item 500 *
+\item 778 +
+\item 472 <
+\item 778 =
+\item 472 >
+\item 472 ?
+\item 778 @
+\item 278 ¡
+\item 639 £
+\item 444 §
+\item 556 «
+\item 556 »
+\item 472 ¿
+\item 778 ×
+\item 778 ÷
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/widthu.aux b/biblio/bibtex/bibtex-x/tests/widthu.aux
new file mode 100644
index 0000000000..02fee3bf62
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/widthu.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{testwidth}
+\bibdata{testwidthu}
diff --git a/biblio/bibtex/bibtex-x/tests/widthu.bbl b/biblio/bibtex/bibtex-x/tests/widthu.bbl
new file mode 100644
index 0000000000..d5f87de575
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/widthu.bbl
@@ -0,0 +1,417 @@
+\section*{Test result}
+\begin{itemize}
+\item 1000  
+\item 278 ¡
+\item 472 ¿
+\item 556 «
+\item 556 »
+\item 444 §
+\item 1000 ï¼ 
+\item 1000 #
+\item 778 ÷
+\item 778 ×
+\item 700 â– 
+\item 700 â–³
+\item 700 â—‡
+\item 700 â—
+\item 700 ☀
+\item 700 â˜
+\item 700 ☂
+\item 700 ☃
+\item 639 £
+\item 1000 ï¿¡
+\item 1000 ₩
+\item 1000 A
+\item 722 æ
+\item 903 Æ
+\item 278 !
+\item 500 "
+\item 833 #
+\item 500 $
+\item 833 %
+\item 778 &
+\item 500 *
+\item 778 +
+\item 500 0
+\item 500 1
+\item 500 2
+\item 500 3
+\item 500 4
+\item 500 5
+\item 500 6
+\item 500 7
+\item 500 8
+\item 500 9
+\item 472 <
+\item 778 =
+\item 472 >
+\item 472 ?
+\item 778 @
+\item 750 A
+\item 750 Ã
+\item 750 À
+\item 750 Ä‚
+\item 750 Â
+\item 750 Ã…
+\item 750 Ä
+\item 750 Ã
+\item 750 Ä„
+\item 750 Ā
+\item 5057 ACDE iouy
+\item 5057 ĂĆĎĘ ĭőůŷ
+\item 5057 ÅÇÃÈ îøüý
+\item 708 B
+\item 722 C
+\item 722 Ć
+\item 722 Ĉ
+\item 722 Č
+\item 722 ÄŠ
+\item 722 Ç
+\item 764 D
+\item 764 ÄŽ
+\item 681 E
+\item 681 É
+\item 681 È
+\item 681 Ä”
+\item 681 Ê
+\item 681 Äš
+\item 681 Ë
+\item 681 Ä–
+\item 681 Ę
+\item 681 Ä’
+\item 653 F
+\item 785 G
+\item 785 Äž
+\item 785 Ĝ
+\item 785 Ä 
+\item 785 Ģ
+\item 750 H
+\item 750 Ĥ
+\item 361 I
+\item 361 Ã
+\item 361 Ì
+\item 361 Ĭ
+\item 361 ÃŽ
+\item 361 Ã
+\item 361 Ĩ
+\item 361 Ä°
+\item 361 Ä®
+\item 361 Ī
+\item 514 J
+\item 541 Ä´
+\item 778 K
+\item 778 Ķ
+\item 625 L
+\item 625 Ĺ
+\item 625 Ľ
+\item 625 Ä»
+\item 37970 L ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ
+ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ ĂĆĎĘ ĭőůŷ
+\item 39691 L
+ ĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷĂĆĎĘĭőůŷ
+ ĂĆĎĘ ĭőůŷ
+\item 37970 L ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ
+ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý ÅÇÃÈ îøüý
+\item 39691 L
+ ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈiouy
+ ÅÇÃÈ îøüý
+\item 39691 L
+ ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈiouý
+ ÅÇÃÈ îøüý
+\item 39691 L
+ ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüý
+ ÅÇÃÈ îøüý
+\item 40691 L
+ ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüý\\
+ ÅÇÃÈ îøüý
+\item 40691 L
+ ÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈîøüýÅÇÃÈ{îøüý}
+ ÅÇÃÈ îøüý
+\item 43249 L LONG long LONG long LONG long LONG long LONG long LONG long LONG
+ long LONG long
+\item 44407 L LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong
+ LONG long
+\item 45407 L
+ LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong\\ LONG long
+\item 45407 L
+ LONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONG{long} LONG long
+\item 43303 L longlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlongLONGlong
+ LONG long
+\item 43717 L ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ
+ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω ΑΒΓΔ φχψω
+\item 45637 L
+ ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔiouΓ
+ ABCD φχψω
+\item 47259 L
+ ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔ{φχψω}
+ ΑΒΓΔ φχψω
+\item 46259 L
+ ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψω
+ ΑΒΓΔ φχψω
+\item 47259 L
+ ΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψωΑΒΓΔφχψω\\
+ ΑΒΓΔ φχψω
+\item 43717 L ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ
+ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ ÐБВГ ÑŒÑÑŽÑ
+\item 46259 L
+ ÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑÐБВГьÑÑŽÑ
+ ÐБВГ ÑŒÑÑŽÑ
+\item 46517 L 가나다 í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤ 한글í…
+ 가나다 í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤ í•œê¸€í… ê°€ë‚˜ë‹¤
+ 한글í…
+\item 44459 L
+ 가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다{한글í…}
+ 가나다 한글í…
+\item 43459 L
+ 가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…
+ 가나다 한글í…
+\item 44459 L
+ 가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…가나다한글í…\\
+ 가나다 한글í…
+\item 46517 L 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾
+ 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三 æŒçŽ–拾 一二三
+ æŒçŽ–拾
+\item 44459 L
+ 一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三{æŒçŽ–拾}
+ 一二三 æŒçŽ–拾
+\item 43459 L
+ 一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾 一二三 æŒçŽ–拾
+\item 44459 L
+ 一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾一二三æŒçŽ–拾\\
+ 一二三 æŒçŽ–拾
+\item 46517 L 冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟
+ 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽𥱠冤𦥑𠮟
+ 𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽ð¥±
+\item 43459 L
+ 冤𦥑𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽ð¥±ð¯ ˜ð¦¥‘𠮟𠀋𡈽𥱠冤𦥑𠮟 𠀋𡈽ð¥±
+\item 917 M
+\item 750 N
+\item 750 Ń
+\item 750 Ň
+\item 750 Ñ
+\item 750 Å…
+\item 778 O
+\item 778 Ó
+\item 778 Ã’
+\item 778 ÅŽ
+\item 778 Ô
+\item 778 Ö
+\item 778 Å
+\item 778 Õ
+\item 778 Ō
+\item 681 P
+\item 778 Q
+\item 736 R
+\item 736 Å”
+\item 736 Ř
+\item 736 Å–
+\item 556 S
+\item 556 Åš
+\item 556 Ŝ
+\item 556 Å 
+\item 556 Åž
+\item 722 T
+\item 722 Ť
+\item 722 Ţ
+\item 750 U
+\item 750 Ú
+\item 750 Ù
+\item 750 Ŭ
+\item 750 Û
+\item 750 Å®
+\item 750 Ü
+\item 750 Å°
+\item 750 Ũ
+\item 750 Ų
+\item 750 Ū
+\item 750 V
+\item 1028 W
+\item 1028 Å´
+\item 750 X
+\item 750 Y
+\item 750 Ã
+\item 750 Ŷ
+\item 750 Ÿ
+\item 611 Z
+\item 611 Ź
+\item 611 Ž
+\item 611 Å»
+\item 500 a
+\item 500 á
+\item 500 à
+\item 500 ă
+\item 500 â
+\item 500 å
+\item 500 ä
+\item 500 ã
+\item 500 Ä…
+\item 500 Ä
+\item 556 b
+\item 444 c
+\item 444 ć
+\item 444 ĉ
+\item 444 Ä
+\item 444 Ä‹
+\item 444 ç
+\item 556 d
+\item 556 Ä
+\item 444 e
+\item 444 é
+\item 444 è
+\item 444 Ä•
+\item 444 ê
+\item 444 Ä›
+\item 444 ë
+\item 444 Ä—
+\item 444 Ä™
+\item 444 Ä“
+\item 306 f
+\item 500 g
+\item 500 ÄŸ
+\item 500 Ä
+\item 500 Ä¡
+\item 500 ģ
+\item 556 h
+\item 556 ĥ
+\item 278 i
+\item 278 í
+\item 278 ì
+\item 278 Ä­
+\item 278 î
+\item 333 ï
+\item 278 Ä©
+\item 278 į
+\item 278 Ä«
+\item 306 j
+\item 306 ĵ
+\item 528 k
+\item 528 Ä·
+\item 278 l
+\item 278 ĺ
+\item 278 ľ
+\item 278 ļ
+\item 833 m
+\item 556 n
+\item 556 Å„
+\item 556 ň
+\item 556 ñ
+\item 556 ņ
+\item 500 o
+\item 500 ó
+\item 500 ò
+\item 500 Å
+\item 500 ô
+\item 500 ö
+\item 500 Å‘
+\item 500 õ
+\item 500 Å
+\item 556 p
+\item 528 q
+\item 392 r
+\item 392 Å•
+\item 392 Å™
+\item 392 Å—
+\item 394 s
+\item 394 Å›
+\item 394 Å
+\item 394 Å¡
+\item 394 ÅŸ
+\item 389 t
+\item 389 ť
+\item 389 ţ
+\item 556 u
+\item 556 ú
+\item 556 ù
+\item 556 Å­
+\item 556 û
+\item 556 ů
+\item 556 ü
+\item 556 ű
+\item 556 Å©
+\item 556 ų
+\item 556 Å«
+\item 528 v
+\item 722 w
+\item 722 ŵ
+\item 528 x
+\item 528 y
+\item 528 ý
+\item 528 Å·
+\item 528 ÿ
+\item 444 z
+\item 444 ź
+\item 444 ž
+\item 444 ż
+\item 556 Ä‘
+\item 764 Ä
+\item 500 ð
+\item 764 Ã
+\item 556 ħ
+\item 750 Ħ
+\item 583 ij
+\item 861 IJ
+\item 278 ı
+\item 278 Å‚
+\item 625 Å
+\item 278 ŀ
+\item 625 Ä¿
+\item 556 Å‹
+\item 792 ÅŠ
+\item 500 ø
+\item 778 Ø
+\item 778 Å“
+\item 1014 Å’
+\item 556 ĸ
+\item 392 Å¿
+\item 500 ß
+\item 389 ŧ
+\item 722 Ŧ
+\item 1000 z
+\item 556 þ
+\item 625 Þ
+\item 556 ʼn
+\item 700 Α
+\item 4478 ΑΒΓ χψω
+\item 700 Î’
+\item 700 Γ
+\item 700 χ
+\item 700 ψ
+\item 700 ω
+\item 700 Ð
+\item 4478 ÐБВ ÑÑŽÑ
+\item 700 Б
+\item 700 Ð’
+\item 700 Ñ
+\item 700 ÑŽ
+\item 700 Ñ
+\item 1000 ê°€
+\item 6000 가나다한글í…
+\item 1000 글
+\item 1000 나
+\item 1000 다
+\item 1000 í…
+\item 1000 한
+\item 1000 ã‚
+\item 500 ï½±
+\item 7000 ã‚ã„ã†ã€€ãƒ±ãƒ²ãƒ³
+\item 1000 ã„
+\item 500 ï½²
+\item 1000 ã†
+\item 500 ï½³
+\item 500 ワ
+\item 1000 ヱ
+\item 1000 ヲ
+\item 500 ヲ
+\item 1000 ン
+\item 500 ï¾
+\item 1000 一
+\item 7000 一二三 æŒçŽ–拾
+\item 1000 三
+\item 1000 二
+\item 1000 𠮟
+\item 1000 拾
+\item 1000 æŒ
+\item 1000 玖
+\item 1000 ð¥±
+\end{itemize}
+\endinput
diff --git a/biblio/bibtex/bibtex-x/tests/yannis.aux b/biblio/bibtex/bibtex-x/tests/yannis.aux
new file mode 100644
index 0000000000..bc896a7a62
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/yannis.aux
@@ -0,0 +1,4 @@
+\relax
+\citation{*}
+\bibstyle{apalike}
+\bibdata{yannis}
diff --git a/biblio/bibtex/bibtex-x/tests/yannis.bbl b/biblio/bibtex/bibtex-x/tests/yannis.bbl
new file mode 100644
index 0000000000..ac5294fe76
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/yannis.bbl
@@ -0,0 +1,49 @@
+\begin{thebibliography}{}
+
+\bibitem[Échelon, 2009]{cle2}
+Échelon, N. (2009).
+\newblock {\em La vie est un long fleuve tranquille}.
+\newblock Les Éditions du désastre.
+
+\bibitem[Å’tingen, 2009]{cle8}
+Å’tingen, N. (2009).
+\newblock {\em Un livre}.
+\newblock Les Éditions du désastre.
+
+\bibitem[Tarantin, 2009]{cle4}
+Tarantin, N. (2009).
+\newblock {\em En revenant de Tarascon}.
+\newblock Les Éditions du désastre.
+
+\bibitem[Διογένης, 2009]{cle1}
+Διογένης (2009).
+\newblock {\em Μήπως εἴδατε τὸ φανάÏι μου;}.
+\newblock Τὰ σοφὰ βιβλία.
+
+\bibitem[á¼Î»Î»Î·Î½Î±Ï‚, 2009]{cle7}
+á¼Î»Î»Î·Î½Î±Ï‚, Îœ. (2009).
+\newblock {\em Τὸ καλὸ παÏάδειγμα}.
+\newblock Ἐκδοτικὸς οἶκος «Δὲν βαÏιέσαι».
+
+\bibitem[ΖαχαÏόπουλος, 2009]{cle5}
+ΖαχαÏόπουλος, Ζ. (2009).
+\newblock {\em Μοῦ λένε νὰ μὴν κλαίω, μὰ τί νὰ
+ κάνω, ἀφοῦ σὲ χάνω}.
+\newblock Ἐκδόσεις τῶν χαμένων á¼Î»Ï€Î¯Î´Ï‰Î½.
+
+\bibitem[ДоÑтоеÌвÑкий, 1880]{cle9}
+ДоÑтоеÌвÑкий, Ф.~Ðœ. (1880).
+\newblock {\em Ð‘Ñ€Ð°Ñ‚ÑŒÑ ÐšÐ°Ñ€Ð°Ð¼Ð°Ð·Ð¾Ð²Ñ‹}.
+\newblock РуÑÑкій Ð’Ñ£Ñтникъ.
+
+\bibitem[天堂最新的章节表, 2009]{cle3}
+天堂最新的章节表, 格. (2009).
+\newblock {\em 製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω}.
+\newblock Les Éditions du désastre.
+
+\bibitem[天王最新章, 2009]{cle6}
+天王最新章, 节. (2009).
+\newblock {\em 製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω}.
+\newblock Les Éditions du désastre.
+
+\end{thebibliography}
diff --git a/biblio/bibtex/bibtex-x/tests/yannis.bib b/biblio/bibtex/bibtex-x/tests/yannis.bib
new file mode 100644
index 0000000000..4083feb3fe
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/yannis.bib
@@ -0,0 +1,56 @@
+% $Id: yannis.bib 63257 2022-05-08 13:25:05Z takuji $
+% Public domain. Submitted by Yannis Haralambous, 2009.
+
+@book{cle1,
+ Author = {Διογένης},
+ Publisher = {Τὰ σοφὰ βιβλία},
+ Title = {Μήπως εἴδατε τὸ φανάÏι μου;},
+ Year = {2009}}
+
+@book{cle2,
+ Author = {Échelon, Nicolas},
+ Publisher = {Les Éditions du désastre},
+ Title = {La vie est un long fleuve tranquille},
+ Year = {2009}}
+
+@book{cle3,
+ Author = {天堂最新的章节表, 格的儿å­},
+ Publisher = {Les Éditions du désastre},
+ Title = {製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω},
+ Year = {2009}}
+
+@book{cle4,
+ Author = {Tarantin, Nicolas},
+ Publisher = {Les Éditions du désastre},
+ Title = {En revenant de Tarascon},
+ Year = {2009}}
+
+@book{cle5,
+ Author = {ΖαχαÏόπουλος, ΖαχαÏίας},
+ Publisher = {Ἐκδόσεις τῶν χαμένων á¼Î»Ï€Î¯Î´Ï‰Î½},
+ Title = {Μοῦ λένε νὰ μὴν κλαίω, μὰ τί νὰ κάνω, ἀφοῦ σὲ χάνω},
+ Year = {2009}}
+
+@book{cle6,
+ Author = {天王最新章, 节列表},
+ Publisher = {Les Éditions du désastre},
+ Title = {製版・文書処ç†ã‚·ã‚¹ãƒ†ãƒ  Ω},
+ Year = {2009}}
+
+@book{cle7,
+ Author = {á¼Î»Î»Î·Î½Î±Ï‚, Μῆτσος},
+ Publisher = {Ἐκδοτικὸς οἶκος «Δὲν βαÏιέσαι»},
+ Title = {Τὸ καλὸ παÏάδειγμα},
+ Year = {2009}}
+
+@book{cle8,
+ Author = {Å’tingen, Nicolas},
+ Publisher = {Les Éditions du désastre},
+ Title = {Un livre},
+ Year = {2009}}
+
+@book{cle9,
+ Author = {Фёдор МихаÌйлович ДоÑтоеÌвÑкий},
+ Publisher = {РуÑÑкій Ð’Ñ£Ñтникъ},
+ Title = {Ð‘Ñ€Ð°Ñ‚ÑŒÑ ÐšÐ°Ñ€Ð°Ð¼Ð°Ð·Ð¾Ð²Ñ‹},
+ Year = {1880}}
diff --git a/biblio/bibtex/bibtex-x/unix.mak b/biblio/bibtex/bibtex-x/unix.mak
new file mode 100644
index 0000000000..27a030b63f
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/unix.mak
@@ -0,0 +1,418 @@
+#############################################################################*
+##############################################################################
+##
+## MODULE
+##
+## $RCSfile: unix.mak,v $
+## $Revision: 3.71 $
+## $Date: 1996/08/18 20:37:06 $
+##
+## DESCRIPTION
+##
+## A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+## Unix and VMS. This C language implementation is based on the
+## original WEB source but it has been enhanced to support 8-bit input
+## characters and a very large processing capacity.
+##
+## For documentation describing how to use and build this program,
+## see the 00README.TXT file that accompanies this distribution.
+##
+## MODULE CONTENTS
+##
+## This is the BibTeX makefile to build a Unix implementation. This
+## file should be called "unix.mak" and used with a command like:
+##
+## % make -f unix.mak bibtex
+##
+## If you omit the "bibtex" argument, the Makefile will display list
+## of the supported targets.
+##
+## Below is a list of the Unix environments on which BibTeX has been
+## built and tested. The appropriate Make command to build BibTeX
+## is also given for each of the environments. Each entry is preceded
+## by a status character:
+##
+## + tested and believed to work
+## ? not tested but should work
+## X believed not to work.
+##
+## The environments and Make targets are:
+##
+## + Linux, GNU cc: "linux-gcc"
+## + SUN, SunOS 3.x & 4.1.x, GNU cc: "sunos-gcc"
+## + SUN, Solaris 2.x, GNU cc: "sysv-gcc"
+##
+## ? BSD generic, GNU cc: "bsd-gcc"
+## ? System V generic, GNU cc: "sysv-gcc"
+##
+## For example, if you want to build BibTeX for a SunOS system running
+## SunOS 4.1.3 and using the GNU compiler, you should issue the
+## command:
+##
+## make -f unix.mak sunos-gcc
+##
+## If you port BibTeX to a new environment or find that it works
+## unchanged in a new environment, please report back to the author so
+## that this file can be updated for everyone else.
+##
+## AUTHORS
+##
+## Original WEB translation and porting by:
+##
+## Niel Kempson,
+## Snowy Owl Systems Limited, Cheltenham, England
+## E-mail: kempson@snowyowl.co.uk
+##
+## 8 bit support extensions by:
+##
+## Alejandro Aguilar-Sierra
+## E-mail: asierra@servidor.unam.mx
+##
+## COPYRIGHT
+##
+## This implementation copyright (c) 1991-1995 by Niel Kempson
+## and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+##
+## 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+## In other words, you are welcome to use, share and improve this
+## program. You are forbidden to forbid anyone else to use, share
+## and improve what you give them. Help stamp out software-hoarding!
+##
+## ACKNOWLEDGEMENT
+##
+## The original BibTeX was written by Oren Patashnik using Donald
+## Knuth's WEB system. This format produces a PASCAL program for
+## execution and a TeX documented version of the source code. This
+## program is a (hand) translation of the WEB source into C.
+##
+## CHANGE LOG
+##
+## $Log: unix.mak,v $
+## Revision 3.71 1996/08/18 20:37:06 kempson
+## Official release 3.71 (see HISTORY file for details).
+##
+## Revision 3.70 1996/04/08 10:17:58 kempson
+## Final documentation & cosmetic changes for official release 3.70.
+##
+## Revision 1.0 1995/10/21 21:52:44 kempson
+## Placed under RCS control
+##
+##############################################################################
+##############################################################################
+
+
+
+##############################################################################
+##############################################################################
+#
+# Start of local definitions for file types and compilation / linking. There
+# are three small sections to customise:
+#
+# BibTeX File Searching
+# - specifies the names of environment variables and paths to be used when
+# searching for input files
+#
+# Utility Programs
+# - specifies the names of programs to be used for simple functions
+#
+# Compiler/Linker
+# - specifies compiler/linker command lines
+#
+# If your system is already supported it should not be necessary to modify
+# any part of the Makefile except these three sections.
+#
+##############################################################################
+##############################################################################
+
+#-----------------------------------------------------------------------------
+# BIBTEX FILE SEARCHING
+#
+# The macros in this section define the environment variables and default
+# search paths that will be used by BibTeX. 8-bit BibTeX looks for input
+# files in three different steps as summarised below. As soon as 8-bit
+# BibTeX finds a matching file, it stops looking (i.e. only the first
+# matching file is used). In order, the three steps are:
+#
+# - look for the file in the current working directory.
+#
+# - if the appropriate environment variable has been set (e.g. BSTINPUT),
+# treat its value as a list of directories to be searched. Look for the
+# file in each of the directories in the list.
+#
+# - if the appropriate environment variable (e.g. BSTINPUT) has not been
+# set, use a predefined "fallback" path as a list of directories to be
+# searched.
+#
+# A search list consists of a number of directories separated by colons.
+#
+# The following entries must be defined:
+#
+# AUX_ENVVAR the name of the environment variable defining the path
+# to be searched for .aux files.
+#
+# AUX_INPUT_PATH the fallback path to be searched for .aux files.
+#
+# BIB_ENVVAR the name of the environment variable defining the path
+# to be searched for .bib files (e.g. BIBINPUT).
+#
+# BIB_INPUT_PATH the fallback path to be searched for .bib files
+# (e.g. /u/kempson/bibtex:/usr/local/lib/bibtex/bib).
+#
+# BST_ENVVAR the name of the environment variable defining the path
+# to be searched for .bst files (e.g. BSTINPUT).
+#
+# BST_INPUT_PATH the fallback path to be searched for .bst files
+# (e.g. /u/kempson/bibtex:/usr/local/lib/bibtex/bst).
+#
+# CSF_ENVVAR the name of the environment variable defining the path
+# to be searched for .csf files (e.g. CSFINPUT).
+#
+# CSF_INPUT_PATH the fallback path to be searched for .csf files
+# (e.g. /u/kempson/bibtex:/usr/local/lib/bibtex/csf).
+#
+# CSF_FILE_ENVVAR the name of the environment variable defining the
+# fallback CS file (e.g. BIBTEX_CSFILE).
+#
+# CSF_FILE_NAME the name of the fallback CS file to be used if one is
+# not specified on the command line and the above-named
+# environment variable is not defined (e.g. cp850lat.csf).
+#-----------------------------------------------------------------------------
+AUX_INPUT_ENVVAR =
+AUX_INPUT_PATH =
+
+BIB_INPUT_ENVVAR = BIBINPUT
+BIB_INPUT_PATH = /usr/local/lib/bibtex/bib
+
+BST_INPUT_ENVVAR = BSTINPUT
+BST_INPUT_PATH = /usr/local/lib/bibtex/bst
+
+CSF_INPUT_ENVVAR = CSFINPUT
+CSF_INPUT_PATH = /usr/local/lib/bibtex/csf
+
+CSF_FILE_ENVVAR = BIBTEX_CSFILE
+CSF_FILE_NAME = cp850lat.csf
+
+
+#-----------------------------------------------------------------------------
+# UTILITY PROGRAMS
+#
+# MAKE the command used to invoke Make to process this file.
+# As distributed, it is defined as "make -f os2.mak"
+#
+# RM rm program that won't complain (e.g. /bin/rm -f) if a
+# file is missing
+#-----------------------------------------------------------------------------
+MAKE = make -f unix.mak
+RM = rm -f
+
+
+#-----------------------------------------------------------------------------
+#
+# COMPILER/LINKER
+#
+# CC the command used to invoke the C compiler
+# CFLAGS compiler command line flags to be used
+#
+# LD the command used to invoke the linker
+# LDFLAGS linker command line flags to be used
+# LDLIBS linker command line option to search the specified
+# library files
+#
+# The definitions are used to compile and link as shown below:
+#
+# Compiling C programs (e.g. xx.c)
+#
+# $(CC) -c $(CFLAGS) xx.c
+#
+# Linking object files (e.g. xx.o, yy.o & zz.o)
+#
+# $(LD) -o $@ $(LDFLAGS) xx.o yy.o zz.o $(LDLIBS)
+#
+# The 'vanilla' settings should usually be:
+#
+# CC = cc
+# CFLAGS = -O -DUNIX
+# LD = cc
+# LDFLAGS =
+# LDLIBS =
+#
+# For GNU C, the following settings are recommended:
+#
+# CC = gcc
+# CFLAGS = -O -DUNIX -O -Wall -Wno-char-subscripts -funsigned-char
+# LD = gcc
+# LDFLAGS =
+# LDLIBS =
+#-----------------------------------------------------------------------------
+CC = cc
+CFLAGS =
+
+LD = cc
+LDFLAGS =
+LDLIBS =
+
+##############################################################################
+##############################################################################
+#
+# End of local definitions. You shouldn't need to change anything below.
+#
+##############################################################################
+##############################################################################
+
+
+##############################################################################
+# File types and default rule for compilation
+##############################################################################
+BIBTEX_DEFINES = -DSUPPORT_8BIT \
+ -DAUX_INPUT_ENVVAR=\"$(AUX_INPUT_ENVVAR)\" \
+ -DAUX_INPUT_PATH=\"$(AUX_INPUT_PATH)\" \
+ -DBIB_INPUT_ENVVAR=\"$(BIB_INPUT_ENVVAR)\" \
+ -DBIB_INPUT_PATH=\"$(BIB_INPUT_PATH)\" \
+ -DBST_INPUT_ENVVAR=\"$(BST_INPUT_ENVVAR)\" \
+ -DBST_INPUT_PATH=\"$(BST_INPUT_PATH)\" \
+ -DCSF_INPUT_ENVVAR=\"$(CSF_INPUT_ENVVAR)\" \
+ -DCSF_INPUT_PATH=\"$(CSF_INPUT_PATH)\" \
+ -DCSF_FILE_ENVVAR=\"$(CSF_FILE_ENVVAR)\" \
+ -DCSF_FILE_NAME=\"$(CSF_FILE_NAME)\"
+
+EXE =
+O = .o
+
+.SUFFIXES: .c .h $(O)
+
+.c.o:
+ $(CC) -c $(BIBTEX_DEFINES) -DUNIX $(CFLAGS) $*.c
+
+
+
+##############################################################################
+# Target Groupings
+##############################################################################
+HDRFILES = bibtex.h datatype.h gblprocs.h gblvars.h sysdep.h \
+ getopt.h utils.h version.h
+
+OBJFILES = bibtex$(O) \
+ bibtex-1$(O) bibtex-2$(O) bibtex-3$(O) bibtex-4$(O) \
+ getopt$(O) getopt1$(O) utils$(O)
+
+EXEFILES = bibtex$(EXE)
+
+
+
+##############################################################################
+# Top level targets
+##############################################################################
+make:
+ @ echo 'You must specify the system for which BibTeX should be made.'
+ @ echo ''
+ @ echo 'For example: $(MAKE) sunos-gcc'
+ @ echo ''
+ @ echo 'Valid system targets are:'
+ @ echo ''
+ @ echo ' clean, veryclean'
+ @ echo ''
+ @ echo ' bsd-gcc, linux-gcc, sunos-gcc, sysv-gcc'
+
+bibtex-exe: $(EXEFILES)
+
+clean:
+ @ echo 'Cleaning up ... '
+ $(RM) $(OBJFILES)
+
+veryclean:
+ @ echo 'Really cleaning up ... '
+ $(RM) $(OBJFILES)
+ $(RM) $(EXEFILES)
+
+
+
+#-----------------------------------------------------------------------------
+# Dependencies for executables
+#-----------------------------------------------------------------------------
+bibtex$(EXE): $(OBJFILES)
+ $(LD) -o $@ $(LDFLAGS) $(OBJFILES) $(LDLIBS)
+
+
+#-----------------------------------------------------------------------------
+# Dependencies for object files
+#-----------------------------------------------------------------------------
+bibtex$(O): bibtex.c $(HDRFILES)
+
+bibtex-1$(O): bibtex-1.c $(HDRFILES)
+
+bibtex-2$(O): bibtex-2.c $(HDRFILES)
+
+bibtex-3$(O): bibtex-3.c $(HDRFILES)
+
+bibtex-4$(O): bibtex-4.c $(HDRFILES)
+
+getopt$(O): getopt.c getopt.h
+
+getopt1$(O): getopt1.c getopt.h
+
+utils$(O): utils.c $(HDRFILES)
+
+
+
+##############################################################################
+##############################################################################
+##
+## OPERATING SYSTEM ENVIRONMENT SPECIFIC TARGETS
+##
+## The following symbols may be defined using "-D" to affect the
+## compilation:
+##
+## HAS_STRINGS_H - The header file for string functions is
+## <strings.h> rather than <string.h>
+##############################################################################
+##############################################################################
+
+
+#-----------------------------------------------------------------------------
+# BSD generic environment, GNU cc
+#-----------------------------------------------------------------------------
+bsd-gcc:
+ @ echo 'Making BibTeX for BSD using GNU cc ... '
+ $(MAKE) bibtex-exe CC=gcc \
+ CFLAGS="-Wall -Wno-char-subscripts -funsigned-char" \
+ LD=gcc
+
+#-----------------------------------------------------------------------------
+# Linux, GNU cc
+#-----------------------------------------------------------------------------
+linux-gcc:
+ @ echo 'Making BibTeX for Linux using GNU cc ... '
+ $(MAKE) bibtex-exe CC=gcc \
+ CFLAGS="-Wall -Wno-char-subscripts -funsigned-char" \
+ LD=gcc
+
+#-----------------------------------------------------------------------------
+# SunOS 4.1.x Unix BSD environment, GNU cc
+#-----------------------------------------------------------------------------
+sunos-gcc:
+ @ echo 'Making BibTeX for SunOS 4.1.x using GNU cc ... '
+ $(MAKE) bibtex-exe CC=gcc \
+ CFLAGS="-Wall -Wno-char-subscripts -funsigned-char" \
+ LD=gcc
+
+#-----------------------------------------------------------------------------
+# System V generic environment, GNU cc
+#-----------------------------------------------------------------------------
+sysv-gcc:
+ @ echo 'Making BibTeX for System V using GNU cc ... '
+ $(MAKE) bibtex-exe CC=gcc \
+ CFLAGS="-Wall -Wno-char-subscripts -funsigned-char" \
+ LD=gcc
diff --git a/biblio/bibtex/bibtex-x/utils.c b/biblio/bibtex/bibtex-x/utils.c
new file mode 100644
index 0000000000..0dd077d8b8
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/utils.c
@@ -0,0 +1,2741 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: utils.c
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module contains the new utility functions that will be used in
+** the program. The functions are declared in alphabetical order.
+** Functions defined in this module are:
+**
+** close_file
+** debug_msg
+** find_file
+** open_ip_file
+** open_op_file
+** mymalloc
+** myrealloc
+** parse_cmd_line
+** report_bibtex_capacity
+** report_search_paths
+** set_array_sizes
+** usage
+**
+** 8-bit support functions:
+**
+** c8read_csf
+** c8initialise
+** c8read_lowercase
+** c8read_lowupcase
+** c8read_uppercase
+** c8read_order
+** c8report_8bit_handling
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: utils.c,v $
+** Revision 3.71 1996/08/18 20:37:06 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.6 1995/10/21 22:20:42 kempson
+** Fixed numerous bugs, improved error reporting and added the --wolfgang
+** option.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:43 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <stdarg.h>
+#ifdef WIN32
+#include <getopt.h>
+#else
+#include <unistd.h>
+#endif
+
+#ifdef KPATHSEA
+#include <kpathsea/config.h>
+#include <kpathsea/c-fopen.h>
+#include <kpathsea/tex-file.h>
+#include <kpathsea/paths.h>
+#include <kpathsea/variable.h>
+#include <kpathsea/lib.h>
+#ifndef WIN32
+#include <kpathsea/getopt.h>
+#endif
+#endif
+
+#include "sysdep.h"
+#include "bibtex.h"
+#include "datatype.h"
+#include "gblprocs.h"
+#include "gblvars.h"
+#include "utils.h"
+#include "version.h"
+
+
+/*
+** Useful macros to keep the code nicely formatted.
+*/
+#define FSE(_a) fprintf (stderr, _a);
+#define FSO(_a) fprintf (TERM_OUT, _a);
+#define LOG_CAPACITY(_a) \
+ FPRINTF (log_file, " %-15s = %7ld\n", #_a, (long) _a)
+#define ISEMPTYSTR(_a) ((_a == NULL) || (*_a == '\0'))
+#define NULLCHECK(_a) (ISEMPTYSTR(_a) ? "<undefined>" : _a)
+
+
+/*-
+** Options supported by the program and parsed by getopt(). Each option
+** can be specified by a "traditional" single character argument
+** preceeded by a dash (e.g. "-7") or a more descriptive parameter
+** preceeded by two dashes (e.g. "--ascii"). Each option is also defined
+** as either not taking a value, optinally taking a value or requiring a
+** value.
+*/
+#define VALUE_NONE 0
+#define VALUE_REQD 1
+#define VALUE_OPT 2
+
+static struct option long_options[] = {
+#ifndef UTF_8
+ {"8bit", VALUE_NONE, 0, '8'},
+ {"csfile", VALUE_REQD, 0, 'c'},
+#endif
+ {"debug", VALUE_REQD, 0, 'd'},
+ {"help", VALUE_NONE, 0, '?'},
+ {"statistics", VALUE_NONE, 0, 's'},
+ {"trace", VALUE_NONE, 0, 't'},
+#ifndef UTF_8
+ {"traditional", VALUE_NONE, 0, '7'},
+#endif
+ {"version", VALUE_NONE, 0, 'v'},
+
+#ifdef UTF_8
+ {"language", VALUE_REQD, 0, 'l'},
+ {"location", VALUE_REQD, 0, 'o'},
+#endif
+
+ {"big", VALUE_NONE, 0, 'B'},
+ {"huge", VALUE_NONE, 0, 'H'},
+ {"wolfgang", VALUE_NONE, 0, 'W'},
+ {"min_crossrefs", VALUE_REQD, 0, 'M'},
+
+ {"mcites", VALUE_REQD, 0, '\x0A'}, /* obsolete */
+ {"mentints", VALUE_REQD, 0, '\x0B'}, /* obsolete */
+ {"mentstrs", VALUE_REQD, 0, '\x0C'}, /* obsolete */
+ {"mfields", VALUE_REQD, 0, '\x0D'}, /* obsolete */
+ {"mpool", VALUE_REQD, 0, '\x0E'}, /* obsolete */
+ {"mstrings", VALUE_REQD, 0, '\x0F'},
+ {"mwizfuns", VALUE_REQD, 0, '\x10'}, /* obsolete */
+ {0, 0, 0, 0}
+};
+
+static const char *getopt_str =
+#ifndef UTF_8
+ "78c:"
+#endif
+ "d:?stv"
+#ifdef UTF_8
+ "l:o:"
+#endif
+ "BHM:W";
+
+
+
+/*
+** Forward declaration of private functions and variables used in this
+** module for 8-bit support.
+*/
+#ifdef SUPPORT_8BIT
+static int c8read_csf (void);
+static void c8read_lowupcase (void);
+static void c8read_lowercase (void);
+static void c8read_order (void);
+static void c8read_uppercase (void);
+static void c8report_8bit_handling (void);
+
+static FILE *c8_cs_file;
+static int c8_line;
+static int sort_weight;
+#endif /* SUPPORT_8BIT */
+
+
+
+/*-
+**============================================================================
+** allocate_arrays()
+**
+** Allocate memory dynamically for the large arrays whose size is fixed,
+** regardless of the amount memory of memory available. If these arrays are
+** declared statically, the linker will complain about an overflowing text
+** segment.
+**
+** Allocate memory dynamically for the large arrays whose size is set
+** dynamically, depending on the amount memory of memory available.
+**
+** AlphaFile_T bib_file[Max_Bib_Files + 1];
+** StrNumber_T bib_list[Max_Bib_Files + 1];
+** ASCIICode_T buffer[Buf_Size + 1];
+** StrNumber_T cite_info[Max_Cites + 1];
+** StrNumber_T cite_list[Max_Cites + 1];
+** Boolean_T entry_exists[Max_Cites + 1];
+** Integer_T entry_ints[Max_Ent_Ints + 1];
+** ASCIICode_T entry_strs[Max_Ent_Strs + 1][Ent_Str_Size + 1];
+** ASCIICode_T ex_buf[Buf_Size + 1];
+** StrNumber_T field_info[Max_Fields + 1];
+** FnClass_T fn_type[Hash_Size + 1];
+** Integer_T glb_str_end[Max_Glob_Strs];
+** StrNumber_T glb_str_ptr[Max_Glob_Strs];
+** ASCIICode_T global_strs[Max_Glob_Strs][Glob_Str_Size + 1];;
+** StrIlk_T hash_ilk[Hash_Size + 1];
+** HashPointer_T hash_next[Hash_Size + 1];
+** StrNumber_T hash_text[Hash_Size + 1];
+** Integer_T ilk_info[Hash_Size + 1];
+** Integer_T lit_stack[Lit_Stk_Size + 1];
+** StkType_T lit_stk_type[Lit_Stk_Size + 1];
+** ASCIICode_T name_sep_char[Buf_Size + 1];
+** BufPointer_T name_tok[Buf_Size + 1];
+** ASCIICode_T out_buf[Buf_Size + 1];
+** StrNumber_T s_preamble[Max_Bib_Files + 1];
+** ASCIICode_T str_pool[Pool_Size + 1];
+** PoolPointer_T str_start[Max_Strings + 1];
+** ASCIICode_T sv_buffer[Buf_Size + 1];
+** HashPtr2_T type_list[Max_Cites + 1];
+** HashPtr2_T wiz_functions[Wiz_Fn_Space + 1];
+**============================================================================
+*/
+static void allocate_arrays (void)
+{
+ unsigned long bytes_required;
+
+ debug_msg (DBG_MEM, "Starting to allocate memory for arrays ... ");
+
+ /*
+ ** AlphaFile_T bib_file[Max_Bib_Files + 1];
+ */
+ bytes_required = (Max_Bib_Files + 1) * (unsigned long) sizeof (AlphaFile_T);
+ bib_file = (AlphaFile_T *) mymalloc (bytes_required, "bib_file");
+
+ /*
+ ** StrNumber_T bib_list[Max_Bib_Files + 1];
+ */
+ bytes_required = (Max_Bib_Files + 1) * (unsigned long) sizeof (StrNumber_T);
+ bib_list = (StrNumber_T *) mymalloc (bytes_required, "bib_list");
+
+ /*
+ ** ASCIICode_T buffer[Buf_Size + 1];
+ */
+ bytes_required = (Buf_Size + 1) * (unsigned long) sizeof (ASCIICode_T);
+ buffer = (ASCIICode_T *) mymalloc (bytes_required, "buffer");
+
+ /*
+ ** StrNumber_T cite_info[Max_Cites + 1];
+ */
+ bytes_required = (Max_Cites + 1) * (unsigned long) sizeof (StrNumber_T);
+ cite_info = (StrNumber_T *) mymalloc (bytes_required, "cite_info");
+
+ /*
+ ** StrNumber_T cite_list[Max_Cites + 1];
+ */
+ bytes_required = (Max_Cites + 1) * (unsigned long) sizeof (StrNumber_T);
+ cite_list = (StrNumber_T *) mymalloc (bytes_required, "cite_list");
+
+ /*
+ ** Boolean_T entry_exists[Max_Cites + 1];
+ */
+ bytes_required = (Max_Cites + 1) * (unsigned long) sizeof (Boolean_T);
+ entry_exists = (Boolean_T *) mymalloc (bytes_required, "entry_exists");
+
+ /*
+ ** Boolean_T entry_ints[Max_Ent_Ints + 1];
+ ** allocated when num_ent_ints and num_cites are known
+ */
+ entry_ints = NULL;
+
+ /*
+ ** ASCIICode_T entry_strs[Max_Ent_Strs + 1][Ent_Str_Size + 1];
+ ** allocated when num_ent_strs and num_cites are known
+ */
+ entry_strs = NULL;
+
+ /*
+ ** ASCIICode_T ex_buf[Buf_Size + 1];
+ */
+ bytes_required = (Buf_Size + 1) * (unsigned long) sizeof (ASCIICode_T);
+ ex_buf = (ASCIICode_T *) mymalloc (bytes_required, "ex_buf");
+
+ /*
+ ** StrNumber_T field_info[Max_Fields + 1];
+ */
+ bytes_required = (Max_Fields + 1) * (unsigned long) sizeof (StrNumber_T);
+ field_info = (StrNumber_T *) mymalloc (bytes_required, "field_info");
+
+ /*
+ ** FnClass_T fn_type[Hash_Size + 1];
+ */
+ bytes_required = (Hash_Size + 1) * (unsigned long) sizeof (FnClass_T);
+ fn_type = (FnClass_T *) mymalloc (bytes_required, "fn_type");
+
+ /*
+ ** Integer_T glb_str_end[Max_Glob_Strs];
+ */
+ bytes_required = Max_Glob_Strs * (unsigned long) sizeof (Integer_T);
+ glb_str_end = (Integer_T *) mymalloc (bytes_required, "glb_str_end");
+
+ /*
+ ** StrNumber_T glb_str_ptr[Max_Glob_Strs];
+ */
+ bytes_required = Max_Glob_Strs * (unsigned long) sizeof (StrNumber_T);
+ glb_str_ptr = (StrNumber_T *) mymalloc (bytes_required, "glb_str_ptr");
+
+ /*
+ ** ASCIICode_T global_strs[Max_Glob_Strs][Glob_Str_Size + 1];
+ */
+ bytes_required = (unsigned long) (Max_Glob_Strs)
+ * (Glob_Str_Size + 1)
+ * (unsigned long) sizeof (ASCIICode_T);
+ global_strs = (ASCIICode_T *) mymalloc (bytes_required, "global_strs");
+
+ /*
+ ** StrIlk_T hash_ilk[Hash_Size + 1];
+ */
+ bytes_required = (Hash_Size + 1) * (unsigned long) sizeof (StrIlk_T);
+ hash_ilk = (StrIlk_T *) mymalloc (bytes_required, "hash_ilk");
+
+ /*
+ ** HashPointer_T hash_next[Hash_Size + 1];
+ */
+ bytes_required = (Hash_Size + 1) * (unsigned long) sizeof (HashPointer_T);
+ hash_next = (HashPointer_T *) mymalloc (bytes_required, "hash_next");
+
+ /*
+ ** StrNumber_T hash_text[Hash_Size + 1];
+ */
+ bytes_required = (Hash_Size + 1) * (unsigned long) sizeof (StrNumber_T);
+ hash_text = (StrNumber_T *) mymalloc (bytes_required, "hash_text");
+
+ /*
+ ** Integer_T ilk_info[Hash_Size + 1];
+ */
+ bytes_required = (Hash_Size + 1) * (unsigned long) sizeof (Integer_T);
+ ilk_info = (Integer_T *) mymalloc (bytes_required, "ilk_info");
+
+ /*
+ ** Integer_T lit_stack[Lit_Stk_Size + 1];
+ */
+ bytes_required = (Lit_Stk_Size + 1) * (unsigned long) sizeof (Integer_T);
+ lit_stack = (Integer_T *) mymalloc (bytes_required, "lit_stack");
+
+ /*
+ ** StkType_T lit_stk_type[Lit_Stk_Size + 1];
+ */
+ bytes_required = (Lit_Stk_Size + 1) * (unsigned long) sizeof (StkType_T);
+ lit_stk_type = (StkType_T *) mymalloc (bytes_required, "lit_stk_type");
+
+ /*
+ ** ASCIICode_T name_sep_char[Buf_Size + 1];
+ */
+ bytes_required = (Buf_Size + 1) * (unsigned long) sizeof (ASCIICode_T);
+ name_sep_char = (ASCIICode_T *) mymalloc (bytes_required, "name_sep_char");
+
+ /*
+ ** BufPointer_T name_tok[Buf_Size + 1];
+ */
+ bytes_required = (Buf_Size + 1) * (unsigned long) sizeof (BufPointer_T);
+ name_tok = (BufPointer_T *) mymalloc (bytes_required, "name_tok");
+
+ /*
+ ** ASCIICode_T out_buf[Buf_Size + 1];
+ */
+ bytes_required = (Buf_Size + 1) * (unsigned long) sizeof (ASCIICode_T);
+ out_buf = (ASCIICode_T *) mymalloc (bytes_required, "out_buf");
+
+ /*
+ ** StrNumber_T s_preamble[Max_Bib_Files + 1];
+ */
+ bytes_required = (Max_Bib_Files + 1) * (unsigned long) sizeof (StrNumber_T);
+ s_preamble = (StrNumber_T *) mymalloc (bytes_required, "s_preamble");
+
+ /*
+ ** ASCIICode_T str_pool[Pool_Size + 1];
+ */
+ bytes_required = (Pool_Size + 1) * (unsigned long) sizeof (ASCIICode_T);
+ str_pool = (ASCIICode_T *) mymalloc (bytes_required, "str_pool");
+
+ /*
+ ** PoolPointer_T str_start[Max_Strings + 1];
+ */
+ bytes_required = (Max_Strings + 1) * (unsigned long) sizeof (PoolPointer_T);
+ str_start = (PoolPointer_T *) mymalloc (bytes_required, "str_start");
+
+ /*
+ ** ASCIICode_T sv_buffer[Buf_Size + 1];
+ */
+ bytes_required = (Buf_Size + 1) * (unsigned long) sizeof (ASCIICode_T);
+ sv_buffer = (ASCIICode_T *) mymalloc (bytes_required, "sv_buffer");
+
+ /*
+ ** HashPtr2_T type_list[Max_Cites + 1];
+ */
+ bytes_required = (Max_Cites + 1) * (unsigned long) sizeof (HashPtr2_T);
+ type_list = (HashPtr2_T *) mymalloc (bytes_required, "type_list");
+
+ /*
+ ** HashPtr2_T wiz_functions[Wiz_Fn_Space + 1];
+ */
+ bytes_required = (Wiz_Fn_Space + 1) * (unsigned long) sizeof (HashPtr2_T);
+ wiz_functions = (HashPtr2_T *) mymalloc (bytes_required, "wiz_functions");
+
+} /* allocate_arrays () */
+
+
+
+/*-
+**============================================================================
+** checkdbg()
+**
+** Examine a string representing different debug options, usually provided
+** as a value to a command line option, and return the value as a long
+** integer. Return 0 (no debugging) if a valid option was not parsed.
+**============================================================================
+*/
+static int checkdbg (char *str)
+{
+ int dbgval = 0;
+
+ if ((str == NULL) || (*str == '\0'))
+ return (0);
+
+ if (strstr (str, "all") != NULL)
+ dbgval |= DBG_ALL;
+ if (strstr (str, "csf") != NULL)
+ dbgval |= DBG_CSF;
+ if (strstr (str, "io") != NULL)
+ dbgval |= DBG_IO;
+ if (strstr (str, "mem") != NULL)
+ dbgval |= DBG_MEM;
+ if (strstr (str, "misc") != NULL)
+ dbgval |= DBG_MISC;
+ if (strstr (str, "search") != NULL)
+ dbgval |= DBG_SRCH;
+
+ return (dbgval);
+} /* checkdbg() */
+
+
+
+/*-
+**============================================================================
+** checklong()
+**
+** Examine a string representing an integer, usually provided as a value to
+** a command line option, and return the value as a long integer.
+** Return -1 if a valid integer was not parsed.
+**============================================================================
+*/
+static long checklong (char *str)
+{
+ long value;
+ char *endptr;
+ int len;
+
+ len = strlen (str);
+ value = strtol (str, &endptr, 10);
+
+ if (str == endptr)
+ return (-1);
+ if ((endptr - str) < len)
+ return (-1);
+
+ return (value);
+} /* checklong() */
+
+
+
+/*-
+**============================================================================
+** close_file()
+**
+** Close a file - as long as it's open.
+**============================================================================
+*/
+void close_file (const AlphaFile_T file_pointer)
+{
+ if (file_pointer != NULL)
+ fclose (file_pointer);
+} /* close_file() */
+
+
+
+/*-
+**============================================================================
+** debug_msg()
+**
+** Write a debugging message to the stderr stream, but only if the
+** appropriate debugging option has been selected.
+**============================================================================
+*/
+void debug_msg (const int status, const char *printf_fmt, ...)
+{
+ va_list printf_args;
+ const char *prefix;
+
+ switch (status) {
+ case DBG_CSF:
+ if ((Flag_debug & DBG_CSF) == 0) return;
+ prefix = "D-CSF";
+ break;
+ case DBG_IO:
+ if ((Flag_debug & DBG_IO) == 0) return;
+ prefix = "D-I/O";
+ break;
+ case DBG_MEM:
+ if ((Flag_debug & DBG_MEM) == 0) return;
+ prefix = "D-MEM";
+ break;
+ case DBG_MISC:
+ if ((Flag_debug & DBG_MISC) == 0) return;
+ prefix = "D-MSC";
+ break;
+ case DBG_SRCH:
+ if ((Flag_debug & DBG_SRCH) == 0) return;
+ prefix = "D-SCH";
+ break;
+ default:
+ return;
+ }
+
+ if (printf_fmt != NULL) {
+ fprintf (stderr, "%s: ", prefix);
+ va_start (printf_args, printf_fmt);
+ vfprintf (stderr, printf_fmt, printf_args);
+ va_end (printf_args);
+ fprintf (stderr, "\n");
+ fflush (stderr);
+ }
+} /* debug_msg () */
+
+
+#ifndef KPATHSEA
+/*-
+**============================================================================
+** find_file()
+**
+** Search along a path for a file. The search path is specified by the
+** value of an environment variable which can contain multiple directories,
+** separated by an appropriate delimiter. The best known example is the
+** PATH environment variable found on DOS, OS/2 and Unix.
+**
+** If the environment variable is not specified, or it has not been set,
+** a 'fallback' path will be used. The current working directory will be
+** searched first, then directories along the search path define dby the
+** environment variable or fallback path.
+**
+** If the file is found along the search path, a value of 0 is returned and
+** the full file specification is stored in parameter full_file_spec. If
+** the file was not found, -1 is returned.
+**============================================================================
+*/
+int find_file (const char *envvar_name, const char *fallback_path,
+ const char *filename, char *full_file_spec)
+{
+ char c;
+ int len = 0;
+ char *search_path;
+
+ debug_msg (DBG_SRCH, "find_file: searching for file name `%s'",
+ filename);
+ debug_msg (DBG_SRCH,
+ "find_file: environment variable for search path = `%s'",
+ (envvar_name == NULL) ? "NULL" : envvar_name);
+ debug_msg (DBG_SRCH, "find_file: fallback path = `%s'",
+ (fallback_path == NULL) ? "NULL" : fallback_path);
+
+ if ((envvar_name == NULL) || (*envvar_name == '\0')) {
+ search_path = NULL;
+ debug_msg (DBG_SRCH,
+ "find_file: no environment variable specified");
+ } else {
+ search_path = getenv (envvar_name);
+ debug_msg (DBG_SRCH, "find_file: %s = `%s'", envvar_name,
+ (search_path == NULL) ? "NULL" : search_path);
+ }
+
+ /*
+ ** If we have a NULL search path because an environment variable name was
+ ** not specified or specified but not defined, we use the fallback
+ ** search path.
+ */
+ if (search_path == NULL) {
+ debug_msg (DBG_SRCH, "find_file: using fallback search path `%s'",
+ (fallback_path == NULL) ? "NULL" : fallback_path);
+ search_path = (char *) fallback_path;
+ }
+
+
+ /*
+ ** Work along the search path looking for the wanted file. Stop when
+ ** the first match is found.
+ */
+ while (1) {
+ full_file_spec[len] = '\0';
+
+ /*
+ ** If the path is not empty, and it doesn't end in '/' or '\',
+ ** append a trailing '/'.
+ */
+ if (len != 0) {
+ c = full_file_spec[len - 1];
+ if ((c != '/') && (c != '\\'))
+ strcat (full_file_spec, "/");
+ }
+
+ /*
+ ** Append the filename to the path and then test whether the
+ ** file exists. If not, return -1 and an empty string.
+ */
+ strcat (full_file_spec, filename);
+ debug_msg (DBG_SRCH, "find_file: trying `%s'", full_file_spec);
+
+ if (access (full_file_spec, 0) == 0)
+ break;
+
+ if ((search_path == NULL) || (*search_path == '\0')) {
+ full_file_spec[0] = '\0';
+ return (-1);
+ }
+
+ len = 0;
+
+ for (;;) {
+ if ((*search_path != PATH_DELIM) && (*search_path != '\0')) {
+ if (*search_path == '\\')
+ full_file_spec[len] = '/';
+ else
+ full_file_spec[len] = *search_path;
+
+ ++len;
+ ++search_path;
+ } else
+ break;
+ } /* end for (;;) */
+
+ if (*search_path != '\0')
+ ++search_path;
+ } /* end while (1) */
+
+ debug_msg (DBG_SRCH, "find_file: returning `%s'", full_file_spec);
+ return (0);
+} /* find_file() */
+#endif /* ! KPATHSEA */
+
+
+/*-
+**============================================================================
+** mymalloc()
+**
+** Allocate memory for a specified array and check whether the allocation
+** was successful. If not, issue an error message and cause the program
+** to stop with a fatal exit status.
+** Allocate at least 1 byte, otherwise malloc may return NULL.
+**============================================================================
+*/
+void *mymalloc (const unsigned long bytes_required, const char *array_name)
+{
+ void *ptr;
+
+ ptr = malloc (bytes_required ? bytes_required : 1);
+
+ if (ptr == NULL) {
+ printf ("\nFatal error: couldn't allocate %lu bytes for array `%s'",
+ bytes_required, array_name);
+ mark_fatal ();
+ debug_msg (DBG_MISC, "calling longjmp (Exit_Program_Flag) ... ");
+ longjmp (Exit_Program_Flag, 1);
+ } else {
+ debug_msg (DBG_MEM, "allocated %7lu bytes for array `%s'",
+ bytes_required, array_name);
+ }
+
+ return (ptr);
+} /* mymalloc () */
+
+
+
+/*-
+**============================================================================
+** myrealloc()
+**
+** Reallocate memory for a specified array and check whether the allocation
+** was successful. If not, issue an error message and cause the program
+** to stop with a fatal exit status.
+** Allocate at least 1 byte, otherwise realloc may return NULL.
+**============================================================================
+*/
+void *myrealloc (void *old_ptr, const unsigned long bytes_required, const char *array_name)
+{
+ void *ptr;
+
+ if (old_ptr == NULL)
+ return mymalloc (bytes_required, array_name);
+
+ ptr = realloc (old_ptr, bytes_required ? bytes_required : 1);
+
+ if (ptr == NULL) {
+ printf ("\nFatal error: couldn't reallocate %lu bytes for array `%s'",
+ bytes_required, array_name);
+ mark_fatal ();
+ debug_msg (DBG_MISC, "calling longjmp (Exit_Program_Flag) ... ");
+ longjmp (Exit_Program_Flag, 1);
+ } else {
+ debug_msg (DBG_MEM, "reallocated %7lu bytes for array `%s'",
+ bytes_required, array_name);
+ }
+
+ return (ptr);
+} /* myrealloc () */
+
+
+
+/*-
+**============================================================================
+** open_ip_file()
+**
+** Open a file for input after locating it using one of the five predefined
+** search strategies defined by the parameter "search_path". This parameter
+** can take 5 values:
+**
+** AUX_FILE - used for locating .aux files. Search for the file along the
+** path defined by the environment variable AUX_INPUT_ENVVAR or
+** if it is not defined, use the fallback path defined by
+** AUX_INPUT_PATH.
+**
+** BIB_FILE - used for locating .bib files. Search for the file along the
+** path defined by the environment variable BIB_INPUT_ENVVAR or
+** if it is not defined, use the fallback path defined by
+** BIB_INPUT_PATH.
+**
+** BST_FILE - used for locating .bst files. Search for the file along the
+** path defined by the environment variable BST_INPUT_ENVVAR or
+** if it is not defined, use the fallback path defined by
+** BST_INPUT_PATH.
+**
+** CSF_FILE - used for locating .csf files. Search for the file along the
+** path defined by the environment variable CSF_INPUT_ENVVAR or
+** if it is not defined, use the fallback path defined by
+** CSF_INPUT_PATH.
+**
+** NO_SEARCH_PATH - only look for the file in the current directory.
+**
+** Searching for the file is delegated to the function find_file(), and
+** only if it was successful, does this function attempt to open the file.
+**============================================================================
+*/
+FILE *open_ip_file (Integer_T search_path)
+{
+ const char *filename = (const char *) name_of_file;
+#ifdef KPATHSEA
+ string full_filespec;
+#else
+ char full_filespec[FILE_NAME_SIZE + 1];
+#endif
+ FILE *fptr;
+ int status;
+
+ switch (search_path) {
+ case AUX_FILE_SEARCH_PATH:
+#ifdef KPATHSEA
+ status = ((full_filespec = kpse_find_file(filename, kpse_tex_format, false)) == NULL);
+#else
+ status = find_file (AUX_INPUT_ENVVAR, AUX_INPUT_PATH,
+ filename, full_filespec);
+#endif
+ break;
+ case BIB_FILE_SEARCH_PATH:
+#ifdef KPATHSEA
+ status = ((full_filespec = kpse_find_file(filename, kpse_bib_format, false)) == NULL);
+#else
+ status = find_file (BIB_INPUT_ENVVAR, BIB_INPUT_PATH,
+ filename, full_filespec);
+#endif
+ break;
+ case BST_FILE_SEARCH_PATH:
+#ifdef KPATHSEA
+ status = ((full_filespec = kpse_find_file(filename, kpse_bst_format, false)) == NULL);
+#else
+ status = find_file (BST_INPUT_ENVVAR, BST_INPUT_PATH,
+ filename, full_filespec);
+#endif
+ break;
+ case CSF_FILE_SEARCH_PATH:
+#ifdef KPATHSEA
+ status = ((full_filespec = kpse_find_file(filename, kpse_bst_format, false)) == NULL);
+#else
+ status = find_file (CSF_INPUT_ENVVAR, CSF_INPUT_PATH,
+ filename, full_filespec);
+#endif
+ break;
+ case NO_SEARCH_PATH:
+ default:
+#ifdef KPATHSEA
+ status = ((full_filespec = kpse_find_file(filename, kpse_program_text_format, false)) == NULL);
+#else
+ status = find_file (NULL, NULL, filename, full_filespec);
+#endif
+ break;
+ } /* end switch (search_path) */
+
+ /*
+ ** find_file() will return zero if the file was found somewhere
+ ** along the search path. If it does, try to open the file.
+ */
+ if (status == 0) {
+ debug_msg (DBG_IO, "open_ip_file: trying to open `%s' ... ",
+ full_filespec);
+#ifdef KPATHSEA
+ if (!kpse_in_name_ok(full_filespec))
+ goto not_ok;
+ fptr = fopen (full_filespec, FOPEN_R_MODE);
+ free (full_filespec);
+#else
+# if defined(MSDOS) || defined(OS2)
+ fptr = fopen (full_filespec, "rt");
+# endif
+
+# if defined(UNIX) || defined(VMS)
+ fptr = fopen (full_filespec, "r");
+#endif
+#endif /* ! KPATHSEA */
+ }
+
+ /*
+ ** Otherwise, return a NULL pointer.
+ */
+ else {
+not_ok:
+ debug_msg (DBG_IO, "open_ip_file: unable to open `%s' ... ",
+ full_filespec);
+ fptr = NULL;
+ }
+ return (fptr);
+} /* open_ip_file() */
+
+
+
+/*-
+**============================================================================
+** open_op_file()
+**
+** Open a file for output in the current working directory. If the operating
+** system makes a distinction between text and non-text files, make sure
+** that the file is opened in "text" mode.
+**============================================================================
+*/
+FILE *open_op_file (void)
+{
+ const char *tmp_file_name = (const char *) name_of_file;
+ FILE *fptr;
+
+ debug_msg (DBG_IO, "open_op_file: trying to open `%s' ... ",
+ tmp_file_name);
+
+ /*
+ ** Make sure that we open the output file as a "text" file. This
+ ** varies according to the operating system.
+ */
+#if defined(KPATHSEA)
+ if (kpse_out_name_ok(tmp_file_name))
+ fptr = fopen(tmp_file_name, FOPEN_W_MODE);
+ else
+ fptr = NULL;
+#else
+# if defined(MSDOS) || defined(OS2)
+ fptr = fopen (tmp_file_name, "wt");
+# endif
+
+# ifdef UNIX
+ fptr = fopen (tmp_file_name, "w");
+# endif
+
+# ifdef VMS
+ fptr = fopen (tmp_file_name, "w", "rfm=var", "rat=cr");
+# endif
+#endif /* ! KPATHSEA */
+
+ if (fptr == NULL) {
+ printf ("open_op_file: error opening `%s'\n", tmp_file_name);
+ }
+ return (fptr);
+} /* open_op_file() */
+
+
+
+/*-
+**============================================================================
+** parse_cmd_line()
+**
+** Parse the command line used to launch BibTeX and set options accordingly.
+** Most of the work is done by the GNU getopt() function to support these
+** long and short options:
+**
+** -? --help display this help text
+** -7 --traditional operate in the traditional 7-bit mode
+** -8 --8bit force 8-bit mode, even if no CS file
+** -c --csfile FILE read FILE as the BibTeX character set
+** and sort definition file
+** -d --debug TYPE report debugging information. TYPE is one or
+** more of all, csf, io, mem, misc, search.
+** -s --statistics report internal statistics
+** -t --trace report execution tracing
+** -v --version report BibTeX version\n
+** -B --big set large BibTeX capacity
+** -H --huge set huge BibTeX capacity
+** -W --wolfgang set really huge BibTeX capacity for Wolfgang
+** -M --min_crossrefs ## set ## as the minimum number of cross refs
+** required for automatic inclusion of the cross
+** referenced entry in the citation list
+** (default = 2)
+** --mcites ## ignored
+** --mentints ## ignored
+** --mentstrs ## ignored
+** --mfields ## ignored
+** --mpool ## ignored
+** --mstrings ## allow ## unique strings
+** --mwizfuns ## ignored
+**============================================================================
+*/
+void parse_cmd_line (int argc, char **argv)
+{
+ int c;
+ int no_files;
+
+ Flag_7bit = FALSE;
+#ifdef UTF_8
+ Flag_8bit = TRUE;
+#else
+ Flag_8bit = FALSE;
+#endif
+ Flag_big = FALSE;
+ Flag_debug = FALSE;
+ Flag_huge = FALSE;
+ Flag_wolfgang = FALSE;
+ Flag_stats = FALSE;
+ Flag_trace = FALSE;
+ Str_auxfile = NULL;
+ Str_csfile = NULL;
+#ifdef UTF_8
+ Flag_language = FALSE;
+ Str_language = NULL;
+ Flag_location = FALSE;
+ Str_location = NULL;
+#endif
+
+ while (1) {
+ int option_index = 0;
+
+ c = getopt_long (argc, argv, getopt_str, long_options, &option_index);
+
+ if (c == EOF)
+ break;
+
+ switch (c) {
+ case '?': /**************** -?, --help ***************/
+ usage (NULL);
+ break;
+
+#ifndef UTF_8
+ case '7': /**************** -7, --traditional ********/
+ Flag_7bit = TRUE;
+ break;
+
+ case '8': /**************** -8, --8bit ***************/
+ Flag_8bit = TRUE;
+ break;
+#endif
+
+ case 'B': /**************** -B, --big ****************/
+ Flag_big = TRUE;
+ break;
+
+#ifndef UTF_8
+ case 'c': /**************** -c, --csfile *************/
+ Str_csfile = strdup (optarg);
+ break;
+#endif
+
+ case 'd': /**************** -d, --debug **************/
+ if ((optarg == NULL) || (*optarg == '\0'))
+ Flag_debug = DBG_ALL;
+ else
+ Flag_debug = checkdbg (optarg);
+ break;
+
+ case 'H': /**************** -H, --huge ***************/
+ Flag_huge = TRUE;
+ break;
+
+#ifdef UTF_8
+ case 'l': /**************** -l, --language ***********/
+ Flag_language =TRUE;
+ Str_language = optarg;
+ break;
+#endif
+
+ case 'M': /**************** -M, --min_crossrefs ******/
+ M_min_crossrefs = checklong (optarg);
+ if (M_min_crossrefs < 0) {
+ mark_fatal ();
+ usage ("invalid minimum cross references `%s'\n", optarg);
+ }
+ break;
+
+#ifdef UTF_8
+ case 'o': /**************** -o, --location ***********/
+ Flag_location =TRUE;
+ Str_location = optarg;
+ break;
+#endif
+
+ case 's': /**************** -s, --statistics *********/
+ Flag_stats = TRUE;
+ break;
+
+ case 't': /**************** -t, --trace **************/
+ Flag_trace = TRUE;
+ break;
+
+ case 'v': /**************** -v, --version ************/
+ FPRINTF (TERM_OUT, "%s-x%s (%s)\n", BANNER, EXT_VERSION, TL_VERSION);
+ FPRINTF (TERM_OUT, "Implementation: %s\n", IMPLEMENTATION);
+ FPRINTF (TERM_OUT, "Release version: %s\n", VERSION);
+#ifdef UTF_8
+ {
+ UVersionInfo icuVersion;
+ char icu_version[U_MAX_VERSION_STRING_LENGTH] = "";
+ u_getVersion(icuVersion);
+ u_versionToString(icuVersion, icu_version);
+ FPRINTF (TERM_OUT, "Compiled with: ICU version %s\n", icu_version);
+ }
+#endif
+
+ debug_msg (DBG_MISC,
+ "calling longjmp (Exit_Program_Flag) ... ");
+ longjmp (Exit_Program_Flag, 1);
+ break;
+
+ case 'W': /**************** -W, --wolfgang ***********/
+ Flag_wolfgang = TRUE;
+ break;
+
+ case '\x0A': /**************** --mcites *****************/
+ case '\x0B': /**************** --mentints ***************/
+ case '\x0C': /**************** --mentstrs ***************/
+ case '\x0D': /**************** --mfields ****************/
+ case '\x0E': /**************** --mpool *****************/
+ case '\x10': /**************** --mwizfuns ***************/
+ (void) checklong (optarg); /******** ignored ********/
+ break;
+
+ case '\x0F': /**************** --mstrings ***************/
+ M_strings = checklong (optarg);
+ if (M_strings < 0) {
+ mark_fatal ();
+ usage ("invalid max number of strings `%s'\n", optarg);
+ }
+ break;
+
+ default: /**************** Unknown argument ********/
+ mark_fatal ();
+ usage ("unknown option");
+ } /* end switch (c) */
+ } /* end while (1) */
+
+
+ /*
+ ** Check that a single .aux file was specified.
+ */
+ no_files = argc - optind;
+
+ if (no_files == 1)
+ Str_auxfile = argv[optind];
+ else if (no_files < 1) {
+ mark_fatal ();
+ usage ("no aux file specified");
+ } else {
+ mark_fatal ();
+ usage ("only one aux file may be specified");
+ }
+
+ /*
+ ** Check for contradictory options
+ */
+ if (Flag_7bit && Flag_8bit) {
+ mark_fatal ();
+ usage ("can't specify --traditional and --8bit");
+ }
+
+ if ((Flag_big && Flag_huge) || (Flag_big && Flag_wolfgang)
+ || (Flag_huge && Flag_wolfgang)) {
+ mark_fatal ();
+ usage ("can only specify one of --big, --huge and --wolfgang");
+ }
+
+ if ((Str_csfile != NULL) && (Flag_7bit)) {
+ mark_fatal ();
+ usage ("can't specify --csfile and --traditional");
+ }
+
+ if ((Str_csfile != NULL) && (Flag_8bit)) {
+ mark_fatal ();
+ usage ("can't specify --csfile and --8bit");
+ }
+
+ /*
+ ** Check for options which have not been #defined into the code
+ */
+#ifndef DEBUG
+ if (Flag_debug)
+ FSO ("BibTeX: debugging support was not compiled into this version\n");
+#endif /* DEBUG */
+
+#ifndef STAT
+ if (Flag_stats)
+ FSO ("BibTeX: statistics support was not compiled into this version\n");
+#endif /* STAT */
+
+#ifndef TRACE
+ if (Flag_trace)
+ FSO ("BibTeX: tracing support was not compiled into this version\n");
+#endif /* TRACE */
+
+
+} /* parse_cmd_line() */
+
+
+
+/*-
+**============================================================================
+** report_bibtex_capacity()
+**
+** If the log file has been opened, indicate BibTeX's capacity by reporting
+** the size/values of some key values and arrays. Anything in mixed case
+** has been set at run-time.
+**============================================================================
+*/
+void report_bibtex_capacity (void)
+{
+ if (log_file != NULL) {
+ FPRINTF (log_file, "BibTeX's capacity set as follows:\n\n");
+ LOG_CAPACITY (AUX_STACK_SIZE);
+ LOG_CAPACITY (Buf_Size);
+ LOG_CAPACITY (Ent_Str_Size);
+ LOG_CAPACITY (Glob_Str_Size);
+ LOG_CAPACITY (Hash_Prime);
+ LOG_CAPACITY (Hash_Size);
+ LOG_CAPACITY (Lit_Stk_Size);
+ LOG_CAPACITY (Max_Bib_Files);
+ LOG_CAPACITY (Max_Cites);
+ LOG_CAPACITY (Max_Fields);
+ LOG_CAPACITY (Max_Glob_Strs);
+ LOG_CAPACITY (MAX_PRINT_LINE);
+ LOG_CAPACITY (Max_Strings);
+ LOG_CAPACITY (Min_Crossrefs);
+ LOG_CAPACITY (MIN_PRINT_LINE);
+ LOG_CAPACITY (Pool_Size);
+ LOG_CAPACITY (SINGLE_FN_SPACE);
+ LOG_CAPACITY (Wiz_Fn_Space);
+ FPRINTF (log_file, "\n");
+ }
+} /* report_bibtex_capacity() */
+
+
+
+/*-
+**============================================================================
+** report_search_paths()
+**
+** Report the environment variables and fallback search paths used by
+** BibTeX for locating input files.
+**============================================================================
+*/
+void report_search_paths (void)
+{
+#ifndef KPATHSEA
+ /*
+ ** Define a couple of useful macros to simplify reporting of the desired
+ ** information.
+ */
+#define REPORT_SEARCH_PATH(_a,_b,_c) \
+ debug_msg (DBG_SRCH, "Search strategy for %s files:", _a); \
+ debug_msg (DBG_SRCH, " search path environment variable: %s", NULLCHECK (_b)); \
+ if (! ISEMPTYSTR (_b)) { \
+ char *ptr; \
+ ptr = getenv (_b); \
+ debug_msg (DBG_SRCH, " %s value: %s", _b, NULLCHECK (ptr)); \
+ } \
+ debug_msg (DBG_SRCH, " fallback search path: %s", NULLCHECK (_c));
+
+
+#define REPORT_SEARCH_FILE(_a,_b,_c) \
+ debug_msg (DBG_SRCH, "Default %s file:", _a); \
+ debug_msg (DBG_SRCH, " file name environment variable: %s", NULLCHECK (_b)); \
+ if (! ISEMPTYSTR (_b)) { \
+ char *ptr; \
+ ptr = getenv (_b); \
+ debug_msg (DBG_SRCH, " %s value: %s", _b, NULLCHECK (ptr)); \
+ } \
+ debug_msg (DBG_SRCH, " fallback file name: %s", NULLCHECK (_c));
+
+ /*
+ ** Now report the information.
+ */
+ REPORT_SEARCH_PATH (".aux", AUX_INPUT_ENVVAR, AUX_INPUT_PATH);
+ REPORT_SEARCH_PATH (".bib", BIB_INPUT_ENVVAR, BIB_INPUT_PATH);
+ REPORT_SEARCH_PATH (".bst", BST_INPUT_ENVVAR, BST_INPUT_PATH);
+ REPORT_SEARCH_PATH (".csf", CSF_INPUT_ENVVAR, CSF_INPUT_PATH);
+
+ REPORT_SEARCH_FILE (".csf", CSF_FILE_ENVVAR, CSF_FILE_NAME);
+#endif /* ! KPATHSEA */
+} /* report_search_paths() */
+
+
+/*-
+**============================================================================
+** setup_bound_variable()
+**
+** Obtain parameters from environment or configuration file,
+** or use the default value.
+**============================================================================
+*/
+static void setup_bound_variable (Integer_T *var, const char *name,
+ unsigned long def_value)
+{
+#ifdef KPATHSEA
+ char *expansion = kpse_var_value (name);
+ const char *me = kpse_invocation_name;
+ const char *src = " or texmf.cnf";
+#else
+ char *expansion = getenv (name);
+ const char *me = PROGNAME;
+ const char *src = "";
+#endif
+
+ *var = def_value;
+ if (expansion) {
+ int conf_val = atoi (expansion);
+ if (conf_val < def_value)
+ fprintf (stderr,
+ "%s: Bad value (%ld) in environment%s for %s, keeping %ld.\n",
+ me, (long) conf_val, src, name, def_value);
+ else
+ *var = conf_val;
+#ifdef KPATHSEA
+ free (expansion);
+#endif
+ }
+} /* setup_bound_variable() */
+
+/*-
+**============================================================================
+** setup_params()
+**
+** Determine |ent_str_size|, |glob_str_size|, and |max_strings| from the
+** environment, configuration file, or default value. Set
+** |hash_size:=max_strings|, but not less than |HASH_SIZE|.
+**============================================================================
+*/
+static void setup_params (void)
+{
+ setup_bound_variable (&Ent_Str_Size, "ent_str_size", ENT_STR_SIZE);
+ setup_bound_variable (&Glob_Str_Size, "glob_str_size", GLOB_STR_SIZE);
+ setup_bound_variable (&Max_Strings, "max_strings", MAX_STRINGS);
+
+ /* Obsolete: Max_Strings specified via command line. */
+ if (Flag_big)
+ Max_Strings = 10000;
+ if (Flag_huge)
+ Max_Strings = 19000;
+ if (Flag_wolfgang)
+ Max_Strings = 30000;
+ if (M_strings > 0)
+ Max_Strings = M_strings;
+
+ if (Max_Strings < MAX_STRINGS)
+ Max_Strings = MAX_STRINGS;
+ Hash_Size = Max_Strings;
+ if (Hash_Size < HASH_SIZE)
+ Hash_Size = HASH_SIZE;
+} /* setup_params() */
+
+
+/*-
+**============================================================================
+** compute_hash_prime()
+**
+** We use the algorithm from Knuth's \.{primes.web} to compute
+** |hash_prime| as the smallest prime number not less than 85\%
+** of |hash_size| (and |>=128|).
+**
+** This algorithm uses two arrays |primes| and |mult|. We use the
+** already allocated |hash_next| and |hash_text| for that purpose.
+**============================================================================
+*/
+#define primes hash_next
+#define mult hash_text
+static void compute_hash_prime (void)
+{
+ Integer32_T Hash_Want = (Hash_Size / 20) * 17; /* 85\% of |hash_size| */
+ Integer32_T k = 1; /*number of prime numbers $p_i$ in |primes| */
+ Integer32_T j = 1; /* a prime number candidate */
+ Integer32_T o = 2; /* number of odd multiples of primes in |mult| */
+ Integer32_T square = 9; /* $p_o^2$ */
+ Integer32_T n; /* loop index */
+ Boolean_T j_prime; /* is |j| a prime? */
+
+ debug_msg (DBG_MEM, "Computing Hash_Prime ... ");
+
+ primes[k] = Hash_Prime = 2;
+ while (Hash_Prime < Hash_Want) {
+ do {
+ j += 2;
+ if (j == square) {
+ mult[o++] = j;
+ j += 2;
+ square = primes[o] * primes[o];
+ }
+ n = 2;
+ j_prime = TRUE;
+ while ((n < o) && j_prime) {
+ while (mult[n] < j)
+ mult[n] += 2 * primes[n];
+ if (mult[n++] == j)
+ j_prime = FALSE;
+ }
+ } while (!j_prime);
+ primes[++k] = Hash_Prime = j;
+ }
+} /* compute_hash_prime() */
+
+
+/*-
+**============================================================================
+** set_array_sizes()
+**
+** Allocate memory dynamically for the large arrays whose size is set
+** dynamically, depending on the amount memory of memory available.
+**
+** On virtual memory operating systems, there is not normally a problem
+** allocating memory; the array sizes can be predetermined and memory
+** allocated at run-time.
+**
+** Parameter Cmd Standard --big --huge --wolfgang
+** ------------------------------------------------------------------
+** Buf_Size *** initialy 20000, increased as required ***
+** Hash_Prime *** computed from Hash_Size ***
+** Hash_Size *** determined from Max_Strings ***
+** Max_Bib_Files *** initialy 20, increased as required ***
+** Max_Cites *** initialy 750, increased as required ***
+** Max_Ent_Ints *** as required ***
+** Max_Ent_Strs *** as required ***
+** Max_Fields *** initialy 5000, increased as required ***
+** Max_Strings Y 4,000 10,000 19,000 30,000
+** Pool_Size *** initialy 65,000, increased as required ***
+** Wiz_Fn_Space *** initialy 3000, increased as required ***
+** ------------------------------------------------------------------
+**
+**============================================================================
+*/
+void set_array_sizes (void)
+{
+ debug_msg (DBG_MEM, "Setting BibTeX's capacity ... ");
+
+ Max_Strings = 4000;
+ Min_Crossrefs = 2;
+
+ setup_params ();
+ Buf_Size = BUF_SIZE;
+
+ Lit_Stk_Size = LIT_STK_SIZE;
+
+ Max_Bib_Files = MAX_BIB_FILES;
+
+ Max_Cites = MAX_CITES;
+
+ Max_Fields = MAX_FIELDS;
+
+ if (M_min_crossrefs > 0)
+ Min_Crossrefs = M_min_crossrefs;
+
+ Pool_Size = POOL_SIZE;
+
+ Wiz_Fn_Space = WIZ_FN_SPACE;
+
+
+ allocate_arrays ();
+ compute_hash_prime ();
+
+
+ debug_msg (DBG_MEM, "Hash_Prime = %d, Hash_Size = %d",
+ Hash_Prime, Hash_Size);
+ debug_msg (DBG_MEM, "Buf_Size = %d, Max_Bib_Files = %d",
+ Buf_Size, Max_Bib_Files);
+ debug_msg (DBG_MEM, "Max_Cites = %d, Max_Fields = %d",
+ Max_Cites, Max_Fields);
+ debug_msg (DBG_MEM, "Max_Strings = %d, Pool_Size = %d",
+ Max_Strings, Pool_Size);
+ debug_msg (DBG_MEM, "Min_Crossrefs = %d, Wiz_Fn_Space = %d",
+ Min_Crossrefs, Wiz_Fn_Space);
+
+
+ /*-
+ ** Check that the key values are sensible. These checks are stolen
+ ** from initialize(), but the error messages are more informative.
+ */
+ debug_msg(DBG_MISC, "Sanity checking capacity values ... ");
+
+ if (Hash_Prime < 128)
+ usage ("Hash_Prime (%d) must be >= 128", Hash_Prime);
+
+ if (Hash_Prime > Hash_Size)
+ usage ("Hash_Prime (%d) must be <= Hash_Size (%d)",
+ Hash_Prime, Hash_Size);
+
+ /*
+ ** The original WEB version of BibTeX imposed a maximum value of
+ ** 16321 on Hash_Prime. A WEB constant was defined:
+ **
+ ** MAX_HASH_VALUE = (Hash_Prime + Hash_Prime - 2 + 127)
+ **
+ ** but, because WEB constants are limited to 32767, Hash_Prime was
+ ** consequently limited to a maximum of (32767 + 2 - 127) / 2 = 16321.
+ **
+ ** We're using C #defines, so that limit doesn't apply. The
+ ** following original sanity check is therefore commented out.
+ **
+ ** if (Hash_Prime >= (16384 - 64))
+ ** usage ("Hash_Prime (%d) must be < %d", Hash_Prime, (16384-64));
+ */
+
+ if (Max_Strings > Hash_Size)
+ usage ("Max_Strings (%d) must be <= Hash_Size (%d)",
+ Max_Strings, Hash_Size);
+
+ if (Max_Cites > Max_Strings)
+ usage ("Max_Cites (%d) must be <= Max_Strings (%d)",
+ Max_Cites, Max_Strings);
+
+} /* set_array_sizes() */
+
+
+
+/*-
+**============================================================================
+** usage()
+**
+** Display a helpful message reporting the command line options
+** supported by this version of BibTeX. If a message string is
+** provided, this is displayed first.
+**============================================================================
+*/
+void usage (const char *printf_fmt, ...)
+{
+ va_list printf_args;
+
+ if (printf_fmt != NULL) {
+#ifdef UTF_8
+ fprintf (stderr, "BibTeXu: ");
+#else
+ fprintf (stderr, "BibTeX8: ");
+#endif
+ va_start (printf_args, printf_fmt);
+ vfprintf (stderr, printf_fmt, printf_args);
+ va_end (printf_args);
+ fprintf (stderr, "\n");
+ }
+
+ FSO ("\nUsage: " PROGNAME " [options] aux-file\n\n");
+ FSO (" Valid options are:\n\n");
+ FSO (" -? --help display this help text\n");
+
+#ifndef UTF_8
+ FSO (" -7 --traditional operate in the original 7-bit mode\n");
+ FSO (" -8 --8bit force 8-bit mode, no CS file used\n");
+ FSO (" -c --csfile FILE read FILE as the BibTeX character set\n");
+ FSO (" and sort definition file\n");
+#endif
+
+#ifdef DEBUG
+ FSO (" -d --debug TYPE report debugging information. TYPE is one\n");
+ FSO (" or more of all, csf, io, mem, misc, search.\n");
+#endif /* DEBUG */
+
+#ifdef STAT
+ FSO (" -s --statistics report internal statistics\n");
+#endif /* STAT */
+
+#ifdef TRACE
+ FSO (" -t --trace report execution tracing\n");
+#endif /* TRACE */
+
+ FSO (" -v --version report BibTeX version\n\n");
+
+#ifdef UTF_8
+ FSO (" -l --language LANG use language LANG, ex: -l fr\n");
+ FSO (" -o --location LOC use location LOC, ex: -o fr\n\n");
+#endif
+
+ FSO (" -B --big same as --mstrings 10000\n");
+ FSO (" -H --huge same as --mstrings 19000\n");
+ FSO (" -W --wolfgang same as --mstrings 30000\n");
+ FSO (" -M --min_crossrefs ## set min_crossrefs to ##\n");
+ FSO (" --mstrings ## allow ## unique strings\n");
+ FSO ("\nEmail bug reports to " PACKAGE_BUGREPORT ".\n");
+
+ debug_msg (DBG_MISC, "calling longjmp (Exit_Program_Flag) ... ");
+ longjmp (Exit_Program_Flag, 1);
+} /* usage() */
+
+
+
+/*-
+******************************************************************************
+******************************************************************************
+**
+** Functions specifically for 8-bit support.
+**
+** c8read_csf
+** c8initialise
+** c8read_lowercase
+** c8read_lowupcase
+** c8read_uppercase
+** c8read_order
+** c8report_8bit_handling
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifdef SUPPORT_8BIT
+
+/*
+** Useful definitions.
+*/
+#define c8is_alpha(c) (isalpha(c) || c > 127)
+#define c8is_alphanumeric(c) (isalnum(c) || c > 127)
+#define SORT_LAST 4095
+
+
+
+/*-
+**============================================================================
+** c8initialise ()
+**
+** Initialise BibTeX's handling of 8-bit character sets. The steps are:
+**
+** o initialise default behaviour for sorting and upper/lowercase
+** o if appropriate, read and parse the CS file
+** o use CS data to set behaviour for sorting and upper/lowercase
+** o update xchr/xord arrays for 8-bit characters. These arrays
+** are initialised for ASCII character sets in the original
+** initialize() function. Further initialisation for 8-bit
+** characters is performed here to minimise "contamination" of
+** the original BibTeX code.
+**
+** We have to deal with three modes of operation:
+**
+** --traditional - the original BibTeX behaviour
+** --8bit - every character with a code > 127 is treated as
+** a letter
+** default - a CS file is read and parsed to define sorting order
+** and how 8-bit characters should be handled
+**============================================================================
+*/
+void c8initialise (void)
+{
+ int ascii_case_diff = 'a' - 'A';
+ int c;
+ int status;
+
+ /*
+ ** Traditional mode (--traditional, -7) results in identical behaviour
+ ** to the original BibTeX.
+ **
+ ** o sort order by character code value ('A'=65 ... 'z'=122)
+ ** o upper/lowercase relationships for A..Za..z established
+ ** o no CS file read
+ ** o only characters < 128 allowed
+ ** o no need to update xchr/xord arrays
+ */
+ if (Flag_7bit) {
+
+ for (c = 0; c <= 255; c++) {
+ c8order[c] = c;
+ c8lowcase[c] = (UChar_T) c;
+ c8upcase[c] = (UChar_T) c;
+ }
+
+ for (c = 'A'; c <= 'Z'; c++) {
+ c8lowcase[c] = (UChar_T) (c + ascii_case_diff);
+ c8upcase[c + ascii_case_diff] = (UChar_T) c;
+ }
+
+ for (c = 128; c <= 255; c++)
+ lex_class[c] = ILLEGAL;
+ }
+
+ /*
+ ** Raw 8-bit (--8bit, -8).
+ **
+ ** o sort order by character code value ('A'=65 ... 'z'=122)
+ ** o upper/lowercase relationships for A..Za..z established
+ ** o no CS file read
+ ** o need to update xchr/xord arrays
+ ** o characters > 127 allowed and all treated as type ALPHA
+ */
+ else if (Flag_8bit) {
+
+ for (c = 0; c <= 255; c++) {
+ c8order[c] = c;
+ c8lowcase[c] = (UChar_T) c;
+ c8upcase[c] = (UChar_T) c;
+ }
+
+ for (c = 'A'; c <= 'Z'; c++) {
+ c8lowcase[c] = (UChar_T) (c + ascii_case_diff);
+ c8upcase[c + ascii_case_diff] = (UChar_T) c;
+ }
+
+ for (c = 128; c <= 255; c++)
+ xchr[c] = (char) c;
+
+ for (c = 128; c <= 255; c++)
+ xord[xchr[c]] = (ASCIICode_T) c;
+
+ for (c = 128; c <= 255; c++)
+ lex_class[c] = ALPHA;
+ }
+
+ /*
+ ** Default initialisation using CS file.
+ **
+ ** o no sort order defined - all set to weight SORT_LAST
+ ** o upper/lowercase relationships for A..Za..z established
+ ** o only characters < 128 allowed initially
+ ** o a CS file is read and parsed by BibTeX to modify these defaults
+ ** o need to update xchr/xord/lex_class arrays after reading CS file
+ */
+ else {
+
+ for (c = 0; c <= 255; c++) {
+ c8order[c] = SORT_LAST;
+ c8lowcase[c] = (UChar_T) c;
+ c8upcase[c] = (UChar_T) c;
+ }
+
+ c8order[32] = 0;
+
+ for (c = 'A'; c <= 'Z'; c++) {
+ c8lowcase[c] = (UChar_T) (c + ascii_case_diff);
+ c8upcase[c + ascii_case_diff] = (UChar_T) c;
+ }
+
+ for (c = 128; c <= 255; c++)
+ xchr[c] = (char) c;
+
+ for (c = 128; c <= 255; c++)
+ xord[xchr[c]] = (ASCIICode_T) c;
+
+ for (c = 128; c <= 255; c++)
+ lex_class[c] = ILLEGAL;
+
+ /*
+ ** Read the CS file. If it was read and parsed OK, update the
+ ** definition of 8-bit characters. If an 8-bit character is defined
+ ** in any section of the CS file, it is treated as type ALPHA.
+ */
+ if ((status = c8read_csf ()) == TRUE) {
+
+ for (c = 128; c <= 255; c++)
+ if ((c8order[c] != SORT_LAST)
+ || (c8lowcase[c] != c)
+ || (c8upcase[c] != c))
+ lex_class[c] = ALPHA;
+ }
+ } /* end if (Flag_7bit) */
+
+ /*
+ ** If the CSF debugging option has been selected, report results.
+ */
+ if ((Flag_debug & DBG_CSF))
+ c8report_8bit_handling ();
+
+} /* c8initialise () */
+
+
+
+/*-
+**============================================================================
+** c8read_csf()
+**
+** Read the Case and Sorting definitions (CS) File. Steps taken are:
+**
+** o determine which CS file should be opened
+** o open the CS file
+** o look for valid CS file sections (\lowupcase, \lowercase,
+** \uppercase, \order) and delegate parsing of each section to the
+** appropriate function
+** o close the CS file
+**
+** Returns TRUE if a CS file was successfully read and parsed, FALSE
+** otherwise.
+**============================================================================
+*/
+int c8read_csf (void)
+{
+ int c, i;
+ int in_comment;
+#define SX_BUF_SIZE 15
+ /* a section name: "order", "uppercase", "lowercase", or "lowupcase". */
+ char sx[SX_BUF_SIZE + 1];
+#ifndef KPATHSEA
+ char *value;
+#endif
+
+ /*
+ ** Construct the name of the CS file to be used:
+ **
+ ** 1. If the --csfile option was specified, use its value.
+ ** or
+ ** 2. If CSF_FILE_ENVVAR is defined to a non-empty value, it
+ ** contains the name of an environment variable. The value of
+ ** this environment variable will be used as the default CS file.
+ */
+ if (Str_csfile == NULL) {
+#ifdef KPATHSEA
+#ifndef CSF_FILE_ENVVAR
+#define CSF_FILE_ENVVAR "BIBTEX_CSFILE"
+#endif
+ /* Default value from environment or texmf.cnf */
+ Str_csfile = kpse_var_value (CSF_FILE_ENVVAR);
+ if (Str_csfile == NULL) /* Use fallback value */
+ Str_csfile = xstrdup ("88591lat.csf");
+#else
+ if (strlen (CSF_FILE_ENVVAR) != 0) {
+ debug_msg (DBG_CSF, "c8read_csf: --csfile not set, checking '%s'",
+ CSF_FILE_ENVVAR);
+ value = getenv (CSF_FILE_ENVVAR);
+
+ if (value == NULL)
+ debug_msg (DBG_CSF, "c8read_csf: %s = `NULL'", CSF_FILE_ENVVAR);
+ else
+ debug_msg (DBG_CSF, "c8read_csf: %s = `%s'",
+ CSF_FILE_ENVVAR, value);
+ /*
+ ** If the environment variable has a non-empty value, use it
+ ** as the file specifaction for the default CS file.
+ */
+ if ((value != NULL) && (*value != '\0'))
+ Str_csfile = strdup (value);
+ else {
+ PRINT_LN ("Warning: cannot open CS file: --csfile not specfied");
+ PRINT_LN2 ("and environment variable %s has no value.",
+ CSF_FILE_ENVVAR);
+ return FALSE;
+ }
+ } else {
+ PRINT_LN ("Warning: cannot open CS file: --csfile not specified");
+ PRINT_LN ("and default environment variable not specified.");
+ return FALSE;
+ } /* if (strlen (CSF_FILE_ENVVAR) != 0) */
+#endif /* KPATHSEA */
+ } /* if (Str_csfile == NULL) */
+ /*
+ ** Make sure that we have ended up with a CS file name. If not,
+ ** return FALSE;
+ */
+ if ((Str_csfile == NULL) || (*Str_csfile == '\0')) {
+ PRINT_LN ("Warning: cannot open CS file: empty --csfile value specified.");
+ return FALSE;
+ }
+
+ /*
+ ** If the CS file name doesn't contain a '.', append ".csf".
+ */
+ free (name_of_file);
+ name_of_file = (unsigned char *) mymalloc (strlen (Str_csfile) + 5, "name_of_file");
+ strcpy ((char *)name_of_file, Str_csfile);
+
+ if (strchr ((char *)name_of_file, '.') == NULL)
+ strcat ((char *)name_of_file, ".csf");
+ name_length = strlen ((char *)name_of_file);
+
+ debug_msg (DBG_CSF, "c8read_csf: trying to open CS file `%s' ...",
+ name_of_file);
+
+ /*
+ ** Attempt to open the CS file, using the CS file search path if
+ ** necessary. If the open fails, return FALSE.
+ */
+ if (! a_open_in (&c8_cs_file, CSF_FILE_SEARCH_PATH)) {
+ PRINT_LN2 ("Error: cannot open CS file: %s", name_of_file);
+ return FALSE;
+ }
+ PRINT_LN2 ("The 8-bit codepage and sorting file: %s", name_of_file);
+
+ /*
+ ** The main loop for reading the CS file.
+ */
+ c8_line = 1;
+ while (! feof (c8_cs_file)) {
+
+ /*
+ ** Read the CS file until a '\\' character is found, denoting the
+ ** start of a major section. Comments begin with a '%' and
+ ** anything else on the same line is ignored.
+ */
+ in_comment = FALSE;
+ do {
+ c = getc (c8_cs_file);
+
+ if (c == '\n') {
+ ++c8_line;
+ in_comment = FALSE;
+ }
+ if (c == '%')
+ in_comment = TRUE;
+ if ((c == '\\') && (in_comment == FALSE))
+ break;
+ } while (!feof (c8_cs_file));
+
+ /*
+ ** If we break out of the do loop on EOF, there were no more
+ ** sections in the CS file. Exit the main reading loop.
+ */
+ if (feof (c8_cs_file))
+ break;
+
+ /*
+ ** After '\', a section name must be found. This name is a word
+ ** composed only of lower case ASCII letters.
+ */
+ i = 0;
+
+ do {
+ c = getc (c8_cs_file);
+ if ((c >= 'a') && (c <= 'z'))
+ sx[i++] = c;
+ else
+ break;
+ } while (!feof (c8_cs_file) && (i < SX_BUF_SIZE));
+ sx[i] = '\0';
+
+ /*
+ ** A '{' should follow the section name, but it could be preceeded
+ ** by whitespace, comments or newlines.
+ */
+ if (c != '{')
+ do {
+ if (c == '\n') {
+ ++c8_line;
+ in_comment = FALSE;
+ }
+ if (c == '%')
+ in_comment = TRUE;
+ if ((c == '{') && (in_comment == FALSE))
+ break;
+ c = getc (c8_cs_file);
+ } while (!feof (c8_cs_file));
+
+
+ /*
+ ** The major sections supported in the CS file are: \order{},
+ ** \uppercase{}, \lowercase{} and \lowupcase{}. Anything else will
+ ** be ignored. Known sections are processed until they terminate
+ ** and then the loop starts again.
+ */
+ if (strcmp (sx, "order") == 0)
+ c8read_order ();
+ else if (strcmp (sx, "uppercase") == 0)
+ c8read_uppercase ();
+ else if (strcmp (sx, "lowercase") == 0)
+ c8read_lowercase ();
+ else if (strcmp (sx, "lowupcase") == 0)
+ c8read_lowupcase ();
+ else {
+ PRINT_LN2 ("Unknown section on line in CS file %s", Str_csfile);
+ PRINT_LN3 ("%04d: \\%s", c8_line, buffer);
+ }
+ } /* while (! feof (c8_cs_file)) */
+
+ /*
+ ** Finished reading, close the CS file then return TRUE.
+ */
+ close_file (c8_cs_file);
+ free (Str_csfile);
+ return TRUE;
+} /* c8read_csf () */
+
+
+
+/*-
+**============================================================================
+** c8read_lowercase()
+**
+** Read and parse the \lowercase section of the CS file. This section is
+** used to define the upper -> lower case relationship of pairs of specified
+** characters. It should normally only be used if the relationship
+** isn't symmetrical - use \lowupcase if it is.
+**
+** The syntax of the \lowercase section is:
+**
+** \lowercase{
+** <UC-val-1> <LC-val-1> % Comment begins with a percent sign
+** <UC-val-2> <LC-val-2> <UC-val-3> <LC-val-3>
+** ...
+** <UC-val-N> <LC-val-N>
+** }
+**
+** Notes:
+**
+** o characters can be entered normally, or in TeX notation for
+** character codes, i.e. ^^XX, where XX is the hexadecimal value.
+**
+** o reading of the \lowercase section ends when the first '}' character
+** is reached, so '}' can't be included in a case relationship pair.
+** You can't use ^^7d either.
+**
+** o '%' is used to introduce a trailing comment, so '%' can't be included
+** in the \lowercase section. You can't use ^^25 either.
+**
+** o you cannot redefine the lower case equivalent of an ASCII character
+** (code < 128). In other words, all "left hand" characters in the
+** relationship pairs must have codes > 127.
+**============================================================================
+*/
+static void c8read_lowercase (void)
+{
+ int c;
+ int uppercase_val;
+
+ debug_msg (DBG_CSF, "reading the \\lowercase section ... ");
+ uppercase_val = -1;
+
+ /*
+ ** Keep reading characters until the end of the section is encountered
+ ** at a '}' or EOF is reached.
+ */
+ c = getc (c8_cs_file);
+
+ while ((c != '}') && !feof (c8_cs_file)) {
+
+ /*
+ ** Characters may be specified using the TeX syntax for the
+ ** 8-bit code, i.e. ^^XX, where XX is the hexadecimal value.
+ ** We should really check the result of this fscanf(). Read the
+ ** character code and then start the while loop again.
+ */
+ if (c == '^')
+ fscanf (c8_cs_file, "^%x", &c);
+
+ /*
+ ** If we have reached the end of a line, simply increment the
+ ** line count.
+ */
+ if (c == '\n') {
+ c8_line++;
+ }
+
+ /*
+ ** If we encounter a '%', it signifies the start of a comment.
+ ** Ignore characters until the end of line is reached.
+ */
+ else if (c == '%') {
+ do {
+ c = getc(c8_cs_file);
+ } while ((c != '\n') && (! feof( c8_cs_file)));
+ continue;
+ }
+
+ /*
+ ** The normal case is for alpha characters to be included in the
+ ** case relationship. Alpha characters are assumed to be ASCII
+ ** alpha (A..Za..z) plus any character with a code > 127.
+ */
+ else if (c8is_alpha (c)) {
+
+ /*
+ ** The case relationship consists of a pair of alpha characters
+ ** separated by whitespace. In the \lowercase section, the pair
+ ** is in the order <uppercase-char> <lowercase-char>. We
+ ** must remember which character we are looking for - this is
+ ** achieved by setting uppercase_val to -1 when we are
+ ** looking for the first character of a pair.
+ **
+ ** If uppercase_val is < 0, we treat the current character as
+ ** the upper case member of the pair and set uppercase_val
+ ** accordingly.
+ */
+ if (uppercase_val < 0)
+ uppercase_val = c;
+ else {
+
+ /*
+ ** We are not allowed to redefine the lower case
+ ** equivalent of an ASCII character.
+ */
+ if (uppercase_val < 127) {
+ PRINT_LN2 ("Error: attempt to redefine lower case of "
+ "an ASCII character [0x%02x]", uppercase_val);
+ PRINT_LN3 ("Context: line %04d: of CS file %s",
+ c8_line, Str_csfile);
+ }
+
+ /*
+ ** All OK, so set the appropriate element of the c8lowcase
+ ** array and reset the value of uppercase_val to signify
+ ** that we are looking for the next pair.
+ */
+ else {
+ c8lowcase[uppercase_val] = c;
+ uppercase_val = -1;
+ }
+ }
+ } /* end if */
+
+ /*
+ ** Get the next character from the file and start the loop again.
+ */
+ c = getc (c8_cs_file);
+ } /* end while */
+
+ /*
+ ** The only normal reason for breaking out of the while loop is that
+ ** we encountered '}' at the end of the \lowercase section. Two
+ ** conditions should be true:
+ **
+ ** (uppercase_val = -1) - there is an unmatched character
+ ** (c == '}') - the terminating '}' has been read
+ */
+ if (uppercase_val != -1){
+ PRINT_LN ("Error: unmatched character pair in \\lowercase section");
+ PRINT_LN3 ("Context: line %04d: of CS file %s", c8_line, Str_csfile);
+ }
+
+ if (c != '}') {
+ PRINT_LN ("Error: unexpected end of file in \\lowercase section");
+ PRINT_LN3 ("Context: line %04d: of CS file %s", c8_line, Str_csfile);
+ }
+
+ debug_msg (DBG_CSF, "finished reading the \\lowercase section.");
+} /* c8read_lowercase () */
+
+
+
+/*-
+**============================================================================
+** c8read_lowupcase()
+**
+** Read and parse the \lowupcase section of the CS file. This section is
+** used to define the lower -> upper and upper -> lower case relationship
+** of pairs of specified characters. It is only used if the relationship
+** is symmetrical - use \lowercase or \uppercase if it isn't.
+**
+** The syntax of the \lowupcase section is:
+**
+** \uppercase{
+** <LC-val-1> <UC-val-1> % Comment begins with a percent sign
+** <LC-val-2> <UC-val-2> <LC-val-3> <UC-val-3>
+** ...
+** <LC-val-N> <UC-val-N>
+** }
+**
+** Notes:
+**
+** o characters can be entered normally, or in TeX notation for
+** character codes, i.e. ^^XX, where XX is the hexadecimal value.
+**
+** o reading of the \lowupcase section ends when the first '}' character
+** is reached, so '}' can't be included in a case relationship pair.
+** You can't use ^^7d either.
+**
+** o '%' is used to introduce a trailing comment, so '%' can't be included
+** in the \lowupcase section. You can't use ^^25 either.
+**
+** o you cannot redefine the lower or upper case equivalent of an ASCII
+** character (code < 128). In other words, all characters in the
+** relationship pairs must have codes > 127.
+**============================================================================
+*/
+static void c8read_lowupcase (void)
+{
+ int c;
+ int lowercase_val;
+
+ debug_msg (DBG_CSF, "reading the \\lowupcase section ... ");
+ lowercase_val = -1;
+
+ /*
+ ** Keep reading characters until the end of the section is encountered
+ ** at a '}' or EOF is reached.
+ */
+ c = getc (c8_cs_file);
+
+ while ((c != '}') && !feof (c8_cs_file)) {
+
+ /*
+ ** Characters may be specified using the TeX syntax for the
+ ** 8-bit code, i.e. ^^XX, where XX is the hexadecimal value.
+ ** We should really check the result of this fscanf().
+ */
+ if (c == '^')
+ fscanf (c8_cs_file, "^%x", &c);
+
+ /*
+ ** If we have reached the end of a line, simply increment the
+ ** line count.
+ */
+ if (c == '\n') {
+ c8_line++;
+ }
+
+ /*
+ ** If we encounter a '%', it signifies the start of a comment,
+ ** unless it was translated from a ^^xx sequence.
+ ** Ignore characters until the end of line is reached.
+ */
+ else if (c == '%') {
+ do {
+ c = getc(c8_cs_file);
+ } while ((c != '\n') && (! feof( c8_cs_file)));
+ continue;
+ }
+
+ /*
+ ** The normal case is for alpha characters to be included in the
+ ** case relationship. Alpha characters are assumed to be ASCII
+ ** alpha (A..Za..z) plus any character with a code > 127.
+ */
+ else if (c8is_alpha (c)) {
+
+ /*
+ ** The case relationship consists of a pair of alpha characters
+ ** separated by whitespace. In the \lowupcase section, the pair
+ ** is in the order <lowercase-char> <uppercase-char>. We
+ ** must remember which character we are looking for - this is
+ ** achieved by setting lowercase_val to -1 when we are
+ ** looking for the first character of a pair.
+ **
+ ** If lowercase_val is < 0, we treat the current character as
+ ** the lower case member of the pair and set lowercase_val
+ ** accordingly.
+ */
+ if (lowercase_val < 0)
+ lowercase_val = c;
+ else {
+
+ /*
+ ** We are not allowed to redefine the lower or upper case
+ ** equivalent of an ASCII character.
+ */
+ if (lowercase_val < 127) {
+ PRINT_LN2 ("Error: attempt to redefine upper case of "
+ "an ASCII character [0x%02x]", lowercase_val);
+ PRINT_LN3 ("Context: line %04d: of CS file %s",
+ c8_line, Str_csfile);
+ }
+ else if (c < 127) {
+ PRINT_LN2 ("Error: attempt to redefine lower case of "
+ "an ASCII character [0x%02x]", c);
+ PRINT_LN3 ("Context: line %04d: of CS file %s",
+ c8_line, Str_csfile);
+ }
+
+ /*
+ ** All OK, so set the appropriate element of the c8lowcase
+ ** and c8upcase arrays, then reset the value of lowercase_val
+ ** to signify that we are looking for the next pair.
+ */
+ else {
+ c8lowcase[c] = lowercase_val;
+ c8upcase[lowercase_val] = c;
+ lowercase_val = -1;
+ }
+ }
+ } /* end if */
+
+ /*
+ ** Get the next character from the file and start the loop again.
+ */
+ c = getc (c8_cs_file);
+ } /* end while */
+
+ /*
+ ** The only normal reason for breaking out of the while loop is that
+ ** we encountered '}' at the end of the \lowupcase section. Two
+ ** conditions should be true:
+ **
+ ** (lowercase_val = -1) - there is an unmatched character
+ ** (c == '}') - the terminating '}' has been read
+ */
+ if (lowercase_val != -1){
+ PRINT_LN ("Error: unmatched character pair in \\lowupcase section");
+ PRINT_LN3 ("Context: line %04d: of CS file %s", c8_line, Str_csfile);
+ }
+
+ if (c != '}') {
+ PRINT_LN ("Error: unexpected end of file in \\lowupcase section");
+ PRINT_LN3 ("Context: line %04d: of CS file %s", c8_line, Str_csfile);
+ }
+
+ debug_msg (DBG_CSF, "finished reading the \\lowupcase section.");
+} /* c8read_lowupcase () */
+
+
+
+/*-
+**============================================================================
+** c8read_order()
+**
+** Read and parse the \order section of the CS file. This section is
+** used to define the sorting order of characters in the 8-bit character
+** set.
+**
+** The syntax of the \order section is:
+**
+** \order{
+** <char-1> % Comment begins with a percent sign
+** <char-2> <char-3>
+** <char-4> - <char-5>
+** <char-4> _ <char-5>
+** ...
+** <char-n>
+** }
+**
+** Notes:
+**
+** o characters can be entered normally, or in TeX notation for
+** character codes, i.e. ^^XX, where XX is the hexadecimal value.
+**
+** o reading of the \order section ends when the first '}' character
+** is reached, so '}' can't be included in the \order section. You
+** can't use ^^7d either.
+**
+** o '%' is used to introduce a trailing comment, so '%' can't be included
+** in the \order section. You can't use ^^25 either.
+**
+** o All characters on the same line are given the same sorting weight.
+**
+** o The construct <char-1> <underscore> <char-2> is used to denote that
+** all characters in the range <char-1> to <char-2> should be given the
+** same sorting weight. For example, "A _ Z a _ z" would cause all
+** ASCII alphabetical characters to have the same sorting weight and
+** would be equivalent to placing all 26 characters on the same line.
+**
+** o The construct <char-1> <hyphen> <char-2> is used to denote that all
+** characters in the range <char-1> to <char-2> should be given an
+** ascending set of sorting weights, starting with <char-1> and
+** ending with <char-2>. For example, "A - Z" would cause all
+** upper case ASCII alphabetical characters to be sorted in
+** ascending order and would be equivalent to placing 'A' on the
+** first line, 'B' on the second, through to 'Z' on the 26th line.
+**
+** o the characters at the beginning of the order section are given a
+** lower sorting weight than characters occuring later. When
+** sorting alphabetically, characters with the lowest weight come
+** first.
+**
+** o all characters not in the \order section (including ASCII characters)
+** are given the same very high sorting weight to ensure that they
+** come last when sorting alphabetically.
+**============================================================================
+*/
+static void c8read_order (void)
+{
+ int c, i;
+ int c_previous = 0;
+ int c_previous_previous = 0;
+ int seen_chars;
+
+ debug_msg (DBG_CSF, "reading the \\order section ... ");
+ sort_weight = 1;
+ seen_chars = FALSE;
+
+ /*
+ ** Keep reading characters until the end of the section is
+ ** encountered at a '}' or EOF is reached.
+ */
+ c = getc (c8_cs_file);
+
+ while ((c != '}') && (! feof (c8_cs_file))) {
+
+ /*
+ ** If we have reached the end of a line, the next line denotes
+ ** characters with an increased sorting weight. Any other
+ ** characters with a value less than ' ' are ignored.
+ */
+ if (c == '\n') {
+ if (seen_chars)
+ sort_weight++;
+ c8_line++;
+ seen_chars = FALSE;
+ }
+ else if (c < ' ') {
+ debug_msg (DBG_CSF, "ignoring char 0x%02X on line %d of CS file",
+ c, c8_line);
+ }
+ else if (c > ' ') {
+
+ /*
+ ** Characters may be specified using the TeX syntax for the
+ ** 8-bit code, i.e. ^^XX, where XX is the hexadecimal value.
+ ** We should really check the result of this fscanf(). Read the
+ ** character code and then start the while loop again.
+ */
+ if (c == '^')
+ fscanf (c8_cs_file, "^%x", &c);
+
+ /*
+ ** If we encounter a '%', it signifies the start of a comment.
+ ** Ignore characters until the end of line is reached.
+ */
+ if (c == '%') {
+ do {
+ c = getc(c8_cs_file);
+ } while ((c != '\n') && (! feof( c8_cs_file)));
+ continue;
+ }
+
+ /*
+ ** The normal case is for alpha characters to be included
+ ** in the sorting sequence. Alpha characters are ASCII alpha
+ ** plus any character with a code > 127.
+ */
+ else if (c8is_alphanumeric (c) || c == ' ') {
+
+ /*
+ ** If the previous char was '-', we expect this char to
+ ** terminate a "X-Y" sequence. The character before
+ ** the '-' must also be an alpha type. The characters in
+ ** the sequence are assigned an increasing sort weight.
+ */
+ if (c_previous == '-') {
+ if (c8is_alphanumeric (c_previous_previous)) {
+ for (i = c_previous_previous; i < c; i++)
+ c8order[i] = sort_weight++;
+ seen_chars = TRUE;
+ } else {
+ PRINT_LN ("Error: non-alphanumeric character "
+ "starts X-Y sequence");
+ PRINT_LN3 ("Context: line %04d: of CS file %s",
+ c8_line, Str_csfile);
+ }
+
+ /*
+ ** If the previous char was '_', we expect this char to
+ ** terminate a "X_Y" sequence. The character before
+ ** the '_' must also be an alpha type. The characters in
+ ** the sequence are assigned the same sort weight.
+ */
+ } else if (c_previous == '_') {
+ if (c8is_alphanumeric (c_previous_previous)) {
+ for (i = c_previous_previous; i < c; i++)
+ c8order[i] = sort_weight;
+ seen_chars = TRUE;
+ } else {
+ PRINT_LN ("Error: non-alphanumeric character "
+ "starts X_Y sequence");
+ PRINT_LN3 ("Context: line %04d: of CS file %s",
+ c8_line, Str_csfile);
+ }
+ }
+ c8order[c] = sort_weight;
+ seen_chars = TRUE;
+ }
+
+ /*
+ ** The only other non-alpha characters allowed are '-' & '_'.
+ */
+ else if ((c != '-') && (c != '_')) {
+ PRINT_LN ("Error: only '-' or '_' may follow an "
+ "alpha character");
+ PRINT_LN3 ("Context: line %04d: of CS file %s",
+ c8_line, Str_csfile);
+ }
+
+ /*
+ ** Keep an up-to-date note of the two previous values of c.
+ */
+ c_previous_previous = c_previous;
+ c_previous = c;
+ } /* end if */
+
+ /*
+ ** Get the next character and start the loop again.
+ */
+ c = getc (c8_cs_file);
+ } /* end while */
+
+ /*
+ ** If c isn't '}', we ran into EOF.
+ */
+ if (c != '}') {
+ PRINT_LN ("Error: unexpected end of file in \\order section");
+ PRINT_LN3 ("Context: line %04d: of CS file %s", c8_line, Str_csfile);
+ }
+ debug_msg (DBG_CSF, "finished reading the \\order section.");
+} /* c8read_order () */
+
+
+
+/*-
+**============================================================================
+** c8read_uppercase()
+**
+** Read and parse the \uppercase section of the CS file. This section is
+** used to define the lower -> upper case relationship of pairs of specified
+** characters. It should normally only be used if the relationship
+** isn't symmetrical - use \lowupcase if it is.
+**
+** The syntax of the \uppercase section is:
+**
+** \uppercase{
+** <LC-val-1> <UC-val-1> % Comment begins with a percent sign
+** <LC-val-2> <UC-val-2> <LC-val-3> <UC-val-3>
+** ...
+** <LC-val-N> <UC-val-N>
+** }
+**
+** Notes:
+**
+** o characters can be entered normally, or in TeX notation for
+** character codes, i.e. ^^XX, where XX is the hexadecimal value.
+**
+** o reading of the \uppercase section ends when the first '}' character
+** is reached, so '}' can't be included in a case relationship pair.
+** You can't use ^^7d either.
+**
+** o '%' is used to introduce a trailing comment, so '%' can't be included
+** in the \uppercase section. You can't use ^^25 either.
+**
+** o you cannot redefine the upper case equivalent of an ASCII character
+** (code < 128). In other words, all "left hand" characters in the
+** relationship pairs must have codes > 127.
+**============================================================================
+*/
+static void c8read_uppercase (void)
+{
+ int c;
+ int lowercase_val;
+
+ debug_msg (DBG_CSF, "reading the \\uppercase section ... ");
+ lowercase_val = -1;
+
+ /*
+ ** Keep reading characters until the end of the section is encountered
+ ** at a '}' or EOF is reached.
+ */
+ c = getc (c8_cs_file);
+
+ while ((c != '}') && (! feof (c8_cs_file))) {
+
+ /*
+ ** Characters may be specified using the TeX syntax for the
+ ** 8-bit code, i.e. ^^XX, where XX is the hexadecimal value.
+ ** We should really check the result of this fscanf().
+ */
+ if (c == '^')
+ fscanf (c8_cs_file, "^%x", &c);
+
+ /*
+ ** If we have reached the end of a line, simply increment the
+ ** line count.
+ */
+ if (c == '\n') {
+ c8_line++;
+ }
+
+ /*
+ ** If we encounter a '%', it signifies the start of a comment.
+ ** Ignore characters until the end of line is reached.
+ */
+ else if (c == '%') {
+ do {
+ c = getc(c8_cs_file);
+ } while ((c != '\n') && (! feof( c8_cs_file)));
+ continue;
+ }
+
+ /*
+ ** The normal case is for alpha characters to be included in the
+ ** case relationship. Alpha characters are assumed to be ASCII
+ ** alpha (A..Za..z) plus any character with a code > 127.
+ */
+ else if (c8is_alpha (c)) {
+
+ /*
+ ** The case relationship consists of a pair of alpha characters
+ ** separated by whitespace. In the \uppercase section, the pair
+ ** is in the order <lowercase-char> <uppercase-char>. We
+ ** must remember which character we are looking for - this is
+ ** achieved by setting lowercase_val to -1 when we are
+ ** looking for the first character of a pair.
+ **
+ ** If lowercase_val is < 0, we treat the current character as
+ ** the lower case member of the pair and set lowercase_val
+ ** accordingly.
+ */
+ if (lowercase_val < 0)
+ lowercase_val = c;
+ else {
+
+ /*
+ ** We are not allowed to redefine the upper case
+ ** equivalent of an ASCII character.
+ */
+ if (lowercase_val < 127) {
+ PRINT_LN2 ("Error: attempt to redefine upper case of "
+ "an ASCII character [0x%02x]", lowercase_val);
+ PRINT_LN3 ("Context: line %04d: of CS file %s",
+ c8_line, Str_csfile);
+ }
+
+ /*
+ ** All OK, so set the appropriate element of the c8lowcase
+ ** array and reset the value of lowercase_val to signify
+ ** that we are looking for the next pair.
+ */
+ else {
+ c8upcase[lowercase_val] = c;
+ lowercase_val = -1;
+ }
+ }
+ } /* end if */
+
+ /*
+ ** Get the next character from the file and start the loop again.
+ */
+ c = getc (c8_cs_file);
+ } /* end while */
+
+ /*
+ ** The only normal reason for breaking out of the while loop is that
+ ** we encountered '}' at the end of the \uppercase section. Two
+ ** conditions should be true:
+ **
+ ** (lowercase_val = -1) - there is an unmatched character
+ ** (c == '}') - the terminating '}' has been read
+ */
+ if (lowercase_val != -1){
+ PRINT_LN ("Error: unmatched character pair in \\uppercase section");
+ PRINT_LN3 ("Context: line %04d: of CS file %s", c8_line, Str_csfile);
+ }
+
+ if (c != '}') {
+ PRINT_LN ("Error: unexpected end of file in \\uppercase section");
+ PRINT_LN3 ("Context: line %04d: of CS file %s", c8_line, Str_csfile);
+ }
+
+ debug_msg (DBG_CSF, "finished reading the \\uppercase section.");
+} /* c8read_uppercase () */
+
+
+
+/*
+**============================================================================
+** c8report_8bit_handling()
+**
+** Report the internal status of BibTeX's 8-bit character set handling. The
+** information reported is:
+**
+** o 8-bit characters defined as type ALPHA
+** o character codes with upper case equivalents
+** o character codes with lower case equivalents
+** o the character codes in sorting weight order
+**============================================================================
+*/
+void c8report_8bit_handling (void)
+{
+ int c;
+ int column;
+ int weight;
+
+ /*
+ ** Exit immediately if the CSF debugging option hasn't been selected.
+ */
+ if ((Flag_debug & DBG_CSF) == 0)
+ return;
+
+ /*
+ ** Report the 8-bit characters defined as type ALPHA, 16 to a row.
+ */
+ fprintf (stderr, "\nD-CSF: 8-bit ALPHA characters\n");
+ fprintf (stderr, "D-CSF: ----------------------\n");
+
+ for (c = 128; c <= 255; c += 16) {
+ fprintf (stderr, "D-CSF: %02x: ", c);
+
+ for (column = 0; column < 16; column++) {
+ if (lex_class[c + column] == ALPHA)
+ fprintf (stderr, "%c ", c + column);
+ else
+ fputs (". ", stderr);
+ }
+ fputc ('\n', stderr);
+ }
+
+ /*
+ ** Report the lower / upper case relationships, three pairs to a row.
+ */
+ fprintf (stderr, "\nD-CSF: Characters with upper case equivalents\n");
+ fprintf (stderr, "D-CSF: --------------------------------------");
+ column = 0;
+
+ for (c = 1; c <= 255; c++)
+ if (c8upcase[c] != c) {
+ if ((column % 3) == 0)
+ fprintf (stderr, "\nD-CSF: %c [%02x] <<< %c [%02x]",
+ c, (int) c, c8upcase[c], (int) c8upcase[c]);
+ else
+ fprintf (stderr, " %c [%02x] <<< %c [%02x]",
+ c, (int) c, c8upcase[c], (int) c8upcase[c]);
+ ++column;
+ }
+
+ /*
+ ** Report the upper / lower case relationships, three pairs to a row.
+ */
+ fprintf (stderr, "\n\nD-CSF: Characters with lower case equivalents\n");
+ fprintf (stderr, "D-CSF: --------------------------------------");
+ column = 0;
+
+ for (c = 1; c <= 255; c++)
+ if (c8lowcase[c] != c) {
+ if ((column % 3) == 0)
+ fprintf (stderr, "\nD-CSF: %c [%02x] >>> %c [%02x]",
+ c, (int) c, c8lowcase[c], (int) c8lowcase[c]);
+ else
+ fprintf (stderr, " %c [%02x] >>> %c [%02x]",
+ c, (int) c, c8lowcase[c], (int) c8lowcase[c]);
+ ++column;
+ }
+
+ /*
+ ** Report character codes in sorting weight order. If BibTeX is
+ ** operating in --traditional or --8bit mode, sorting order is simply
+ ** character code order. In that case, just give an abbreviated
+ ** summary.
+ */
+ fprintf (stderr, "\n\nD-CSF: Characters in sorting order\n");
+ fprintf (stderr, "D-CSF: ---------------------------\n");
+
+ if (Flag_7bit || Flag_8bit) {
+ fprintf (stderr, "D-CSF: 00: [00]\n");
+ fprintf (stderr, "D-CSF: 01: [01]\n");
+ fprintf (stderr, "D-CSF: .. ....\n");
+ fprintf (stderr, "D-CSF: 41: A [41]\n");
+ fprintf (stderr, "D-CSF: .. ....\n");
+ fprintf (stderr, "D-CSF: 5a: Z [5a]\n");
+ fprintf (stderr, "D-CSF: .. ....\n");
+ fprintf (stderr, "D-CSF: 61: a [61]\n");
+ fprintf (stderr, "D-CSF: .. ....\n");
+ fprintf (stderr, "D-CSF: 7a: z [7a]\n");
+ fprintf (stderr, "D-CSF: .. ....\n");
+ fprintf (stderr, "D-CSF: fe: [fe]\n");
+ fprintf (stderr, "D-CSF: ff: [ff]\n\n");
+ }
+
+ /*
+ ** When a CS file has been used, sort_weight will be set to the value of
+ ** the highest sorting weight. Report every character with a given
+ ** sorting weight, for 0 <= weight < sort_weight.
+ */
+ else {
+ for (weight = 0; weight < sort_weight; weight++) {
+ fprintf (stderr, "D-CSF: %02x: ", weight);
+
+ for (c = 0; c <= 255; c++) {
+ if (c8order[c] == weight)
+ fprintf (stderr, "%c [%02x] ", c, c);
+ }
+ fputc ('\n', stderr);
+ }
+ fprintf (stderr, "D-CSF: (All other characters are sorted "
+ "equally after any of the above.)\n\n");
+ }
+} /* c8report_8bit_handling() */
+
+
+#endif /* SUPPORT_8BIT */
diff --git a/biblio/bibtex/bibtex-x/utils.h b/biblio/bibtex/bibtex-x/utils.h
new file mode 100644
index 0000000000..334a7b11e5
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/utils.h
@@ -0,0 +1,140 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: utils.h
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module declares (using ANSI function prototypes) all of the
+** new utility functions that will be used in the program. The
+** functions are declared in alphabetical order.
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to "big" (32-bit) capacity,
+** addition of run-time selectable capacity and 8-bit support extensions
+** by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions also by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BibTeX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program started as a (manual) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: utils.h,v $
+** Revision 3.71 1996/08/18 20:37:06 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:46 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifndef __UTILS_H__
+#define __UTILS_H__ 1
+
+
+#ifdef WIN32
+# undef CDECL
+# define CDECL __cdecl
+#else
+# define CDECL
+#endif /* WIN32 */
+
+
+/*
+** Declaration of public functions defined in utils.c
+*/
+void close_file (const AlphaFile_T file_pointer);
+void CDECL debug_msg (const int status, const char *printf_fmt, ...);
+#ifndef KPATHSEA
+int find_file (const char *envvar,
+ const char *fallback_path,
+ const char *filename, char *full_file_spec);
+#endif
+FILE *open_ip_file (Integer_T search_path);
+FILE *open_op_file (void);
+void *mymalloc (const unsigned long bytes_required,
+ const char *var_name);
+void *myrealloc (void *old_ptr, const unsigned long bytes_required,
+ const char *var_name);
+void parse_cmd_line (int argc, char **argv);
+void report_bibtex_capacity (void);
+void report_search_paths (void);
+void set_array_sizes (void);
+void CDECL usage (const char *printf_fmt, ...);
+
+
+#ifdef SUPPORT_8BIT
+void c8initialise (void);
+#endif /* SUPPORT_8BIT */
+
+
+/*
+** Debugging categories.
+*/
+#define DBG_ALL 255
+#define DBG_CSF 1
+#define DBG_IO 2
+#define DBG_MEM 4
+#define DBG_MISC 8
+#define DBG_SRCH 16
+
+#endif /* __UTILS_H__ */
diff --git a/biblio/bibtex/bibtex-x/version.h b/biblio/bibtex/bibtex-x/version.h
new file mode 100644
index 0000000000..f5ea5fc7a4
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/version.h
@@ -0,0 +1,96 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** MODULE
+**
+** file: version.h
+**
+** DESCRIPTION
+**
+** A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
+** Unix and VMS. This C language implementation is based on the
+** original WEB source but it has been enhanced to support 8-bit input
+** characters and a very large processing capacity.
+**
+** For documentation describing how to use and build this program,
+** see the 00README.TXT file that accompanies this distribution.
+**
+** MODULE CONTENTS
+**
+** This module defines the version number of this BibTeX implementation.
+**
+** AUTHORS
+**
+** Original WEB translation to C, conversion to 32-bit mode and
+** addition of run-time selectable capacity by:
+**
+** Niel Kempson
+** Snowy Owl Systems Limited, Cheltenham, England
+** E-mail: kempson@snowyowl.co.uk
+**
+** 8-bit support extensions by:
+**
+** Alejandro Aguilar-Sierra
+** Centro de Ciencias de la Atm\'osfera,
+** Universidad Nacional Aut\'onoma de M\'exico, M\'exico
+** E-mail: asierra@servidor.unam.mx
+**
+** COPYRIGHT
+**
+** This implementation copyright (c) 1991-1995 by Niel Kempson
+** and copyright (c) 1995 by Alejandro Aguilar-Sierra.
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** ACKNOWLEDGEMENT
+**
+** The original BIBTEX was written by Oren Patashnik using Donald
+** Knuth's WEB system. This format produces a PASCAL program for
+** execution and a TeX documented version of the source code. This
+** program is a (hand) translation of the WEB source into C.
+**
+** CHANGE LOG
+**
+** $Log: version.h,v $
+** Revision 3.71 1996/08/18 20:37:06 kempson
+** Official release 3.71 (see HISTORY file for details).
+**
+** Revision 3.70 1996/04/08 10:08:40 kempson
+** Final documentation & cosmetic changes for official release 3.70.
+**
+** Revision 3.6 1995/10/21 22:18:03 kempson
+** Updated for version 3.60 beta.
+**
+** Revision 3.5 1995/09/24 20:44:37 kempson
+** Many changes for final beta test version.
+**
+** Revision 3.4 1995/04/09 22:15:46 kempson
+** Placed under RCS control
+**
+******************************************************************************
+******************************************************************************
+*/
+#ifndef __VERSION_H__
+# define __VERSION_H__ 1
+# define PACKAGE_DATE "(22 may 2022)"
+# define EXT_VERSION PACKAGE_VERSION
+# define VERSION PACKAGE_VERSION " " PACKAGE_DATE
+#endif /* __VERSION_H__ */
+