| 1 |
# Copyright 2022 Jeffrey Kegler |
| 2 |
# Permission is hereby granted, free of charge, to any person obtaining a |
| 3 |
# copy of this software and associated documentation files (the "Software"), |
| 4 |
# to deal in the Software without restriction, including without limitation |
| 5 |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 6 |
# and/or sell copies of the Software, and to permit persons to whom the |
| 7 |
# Software is furnished to do so, subject to the following conditions: |
| 8 |
# |
| 9 |
# The above copyright notice and this permission notice shall be included |
| 10 |
# in all copies or substantial portions of the Software. |
| 11 |
# |
| 12 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 13 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 14 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 15 |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 16 |
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 17 |
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 18 |
# OTHER DEALINGS IN THE SOFTWARE. |
| 19 |
|
| 20 |
This is an autotools-built distribution, and is built and installed |
| 21 |
as described in the autotools documents. The INSTALL file in this |
| 22 |
directory is the standard autotools INSTALL file, unaltered. The rest |
| 23 |
of this document contains some notes that supplement it. |
| 24 |
|
| 25 |
TAGS |
| 26 |
==== |
| 27 |
|
| 28 |
Libmarpa allows you to specify a "tag" at configure time. This is |
| 29 |
compiled into the Libmarpa library and can be used to identify it. |
| 30 |
The archetypal use case is testing -- the tag is a convenent way to |
| 31 |
ensure that you are testing with the library that you think you are |
| 32 |
testing with. By default, if you compile with GCC, the tag is a time |
| 33 |
stamp, recording when the preprocessor was run. You can also set the |
| 34 |
tag explicitly: |
| 35 |
|
| 36 |
./configure MARPA_DEBUG_FLAG=-DMARPA_TAG=testing123 |
| 37 |
|
| 38 |
The standard Marpa::R2 test suite prints the tag early in its test output: |
| 39 |
|
| 40 |
t/00-load.t ............ 1/4 # Marpa::R2 version is 2.085_004 # |
| 41 |
Libmarpa version is 6.0.3 # Libmarpa tag: testing123 |
| 42 |
|
| 43 |
You can put spaces and other non-word characters into the tag, but |
| 44 |
you have to figure out how to make them run the guantlet from shell to |
| 45 |
Makefile to compiler command line. Here's an example who works on Linux: |
| 46 |
|
| 47 |
./configure MARPA_DEBUG_FLAG="\"-DMARPA_TAG=*This is a test*\"" |