diff options
-rw-r--r-- | README.submodule | 19 | ||||
-rw-r--r-- | include/wordsplit.h | 2 |
2 files changed, 15 insertions, 6 deletions
diff --git a/README.submodule b/README.submodule index e04a4ec..9b7212f 100644 --- a/README.submodule +++ b/README.submodule | |||
@@ -34,23 +34,32 @@ recursively, joining several trees together, reductions, etc. | |||
34 | 34 | ||
35 | git submodule add git://git.gnu.org.ua/grecs.git grecs | 35 | git submodule add git://git.gnu.org.ua/grecs.git grecs |
36 | 36 | ||
37 | 2. Add a call to GRECS_SETUP to your configure.ac. It can be as | 37 | 2. Modify your configure.ac |
38 | |||
39 | First, indicate that grecs/am is the location of additional Autoconf | ||
40 | macros. To do so, add the following statement | ||
41 | |||
42 | AC_CONFIG_MACRO_DIR([grecs/am]) | ||
43 | |||
44 | Somewhere below this statement, add a call to GRECS_SETUP. It can be as | ||
38 | simple as: | 45 | simple as: |
39 | 46 | ||
40 | GRECS_SETUP | 47 | GRECS_SETUP |
41 | 48 | ||
42 | If the subproject directory is not 'grecs', supply the actual | 49 | If the subproject directory is not 'grecs', supply the actual |
43 | directory name as the first argument to this macro, e.g.: | 50 | directory name as the first argument to both this macro, and |
51 | AC_CONFIG_MACRO_DIR, e.g.: | ||
44 | 52 | ||
45 | GRECS_SETUP(lib/grecs) | 53 | AC_CONFIG_MACRO_DIR([lib/grecs/am]) |
54 | GRECS_SETUP([lib/grecs]) | ||
46 | 55 | ||
47 | For a detailed description of the GRECS_SETUP macro, run | 56 | For a detailed description of the GRECS_SETUP macro, run |
48 | `man doc/GRECS_SETUP.3'. | 57 | `man doc/GRECS_SETUP.3'. |
49 | 58 | ||
50 | 3. In your Makefile.am, add @GRECS_INCLUDES@ to the INCLUDES value, | 59 | 3. In your Makefile.am, add @GRECS_INCLUDES@ to the AM_CPPFLAGS value, |
51 | and @GRECS_LDADD@ to LDADD, e.g.: | 60 | and @GRECS_LDADD@ to LDADD, e.g.: |
52 | 61 | ||
53 | INCLUDES = @GRECS_INCLUDES@ | 62 | AM_CPPFLAGS = @GRECS_INCLUDES@ |
54 | LDADD = @GRECS_LDADD@ | 63 | LDADD = @GRECS_LDADD@ |
55 | 64 | ||
56 | 4. Include "grecs.h" | 65 | 4. Include "grecs.h" |
diff --git a/include/wordsplit.h b/include/wordsplit.h index d8cd461..8726cf1 100644 --- a/include/wordsplit.h +++ b/include/wordsplit.h | |||
@@ -39,7 +39,7 @@ struct wordsplit | |||
39 | elements in ws_wordv to fill with NULLs. */ | 39 | elements in ws_wordv to fill with NULLs. */ |
40 | size_t ws_wordn; /* Number of elements ws_wordv can accomodate. */ | 40 | size_t ws_wordn; /* Number of elements ws_wordv can accomodate. */ |
41 | int ws_flags; /* [Input] Flags passed to wordsplit. */ | 41 | int ws_flags; /* [Input] Flags passed to wordsplit. */ |
42 | int ws_options; /* [Input] (WRDSF_PATHEXPAND) | 42 | int ws_options; /* [Input] (WRDSF_OPTIONS) |
43 | Additional options. */ | 43 | Additional options. */ |
44 | const char *ws_delim; /* [Input] (WRDSF_DELIM) Word delimiters. */ | 44 | const char *ws_delim; /* [Input] (WRDSF_DELIM) Word delimiters. */ |
45 | const char *ws_comment; /* [Input] (WRDSF_COMMENT) Comment characters. */ | 45 | const char *ws_comment; /* [Input] (WRDSF_COMMENT) Comment characters. */ |