diff options
| author | Eli Zaretskii | 2011-03-25 14:52:03 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-03-25 14:52:03 +0200 |
| commit | f4d87671c6291c761da032f79910f36c7033020a (patch) | |
| tree | 7269f8d01ae2c7b1500ec5b0427122dcb811a324 | |
| parent | 07da4b3c924abe8cc95e88ce2f19daeebd8bba21 (diff) | |
| download | emacs-f4d87671c6291c761da032f79910f36c7033020a.tar.gz emacs-f4d87671c6291c761da032f79910f36c7033020a.zip | |
Fix previous commit.
config.bat: Use autogen/config.in in one more place.
msdos/sedlibmk.inp (GNULIB_PRINTF, GNULIB_PRINTF_POSIX): Add missing
variables.
(MKDIR_P): Fix replacement command.
(NEXT_AS_FIRST_DIRECTIVE_STDIO_H, NEXT_STDIO_H): Edit to
"<stdio.h>", as lib/stdio.h cannot be left unused.
| -rw-r--r-- | config.bat | 2 | ||||
| -rw-r--r-- | msdos/ChangeLog | 6 | ||||
| -rw-r--r-- | msdos/sedlibmk.inp | 32 |
3 files changed, 30 insertions, 10 deletions
diff --git a/config.bat b/config.bat index c90871de6ff..e480a4b9bc8 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -156,7 +156,7 @@ rm -f epaths.tmp | |||
| 156 | 156 | ||
| 157 | rem Create "config.h" | 157 | rem Create "config.h" |
| 158 | rm -f config.h2 config.tmp | 158 | rm -f config.h2 config.tmp |
| 159 | sed -e '' config.in > config.tmp | 159 | sed -e '' ../autogen/config.in > config.tmp |
| 160 | if "%X11%" == "" goto src4 | 160 | if "%X11%" == "" goto src4 |
| 161 | sed -f ../msdos/sed2x.inp < ..\autogen\config.in > config.tmp | 161 | sed -f ../msdos/sed2x.inp < ..\autogen\config.in > config.tmp |
| 162 | :src4 | 162 | :src4 |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index ce51a753741..f8215584f1e 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,6 +1,12 @@ | |||
| 1 | 2011-03-25 Eli Zaretskii <eliz@gnu.org> | 1 | 2011-03-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * sedlibmk.inp: Adapt to addition of the gnulib stdio module. | 3 | * sedlibmk.inp: Adapt to addition of the gnulib stdio module. |
| 4 | Add a description of what needs to be done when a new gnulib | ||
| 5 | module is added. | ||
| 6 | (GNULIB_PRINTF, GNULIB_PRINTF_POSIX): Add missing variables. | ||
| 7 | (MKDIR_P): Fix replacement command. | ||
| 8 | (NEXT_AS_FIRST_DIRECTIVE_STDIO_H, NEXT_STDIO_H): Edit to | ||
| 9 | "<stdio.h>", as lib/stdio.h cannot be left unused. | ||
| 4 | 10 | ||
| 5 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> | 11 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> |
| 6 | 12 | ||
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index 8a261400189..d7af3681ef9 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp | |||
| @@ -28,23 +28,28 @@ | |||
| 28 | # | 28 | # |
| 29 | # /^REPLACE_CALLOC *=/s/@REPLACE_CALLOC@/0/ | 29 | # /^REPLACE_CALLOC *=/s/@REPLACE_CALLOC@/0/ |
| 30 | # | 30 | # |
| 31 | # . If it's a header, edit the corresponding variable to either an | 31 | # . If the module is a header or adds headers, edit the corresponding |
| 32 | # empty value or to the name of the header. Examples: | 32 | # variable to either an empty value or to the name of the header. |
| 33 | # Examples: | ||
| 33 | # | 34 | # |
| 34 | # /^STDINT_H *=/s/@[^@\n]*@/stdint.h/ -- stdint.h is needed | 35 | # /^STDINT_H *=/s/@[^@\n]*@/stdint.h/ -- stdint.h is needed |
| 35 | # /^STDDEF_H *=/s/@[^@\n]*@// -- stddef.h is not needed | 36 | # /^STDDEF_H *=/s/@[^@\n]*@// -- stddef.h is not needed |
| 36 | # | 37 | # |
| 37 | # . Also edit the NEXT_foo and NEXT_AS_FIRST_DIRECTIVE_foo_H variable | 38 | # . Also edit the NEXT_foo and NEXT_AS_FIRST_DIRECTIVE_foo_H variable |
| 38 | # as appropriately: to an empty value if the DJGPP system header | 39 | # as appropriately: to an empty value if the gnulib header is not |
| 39 | # should not be included after the gnulib one, or if the gnulib one | 40 | # used, and to the corresponding DJGPP header name otherwise. |
| 40 | # is not needed; and to the corresponding DJGPP header name | 41 | # Examples: |
| 41 | # otherwise. Examples: | ||
| 42 | # | 42 | # |
| 43 | # /^NEXT_STDDEF_H *=/s/@[^@\n]*@// | 43 | # /^NEXT_STDDEF_H *=/s/@[^@\n]*@// |
| 44 | # /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ | 44 | # /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ |
| 45 | # /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ | 45 | # /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ |
| 46 | # /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@// | 46 | # /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@// |
| 47 | # | 47 | # |
| 48 | # . Note that some gnulib headers cannot be left unused: those for | ||
| 49 | # which there's no corresponding foo_H variable in | ||
| 50 | # autogen/Makefile.in (example: stdio.h). For these the "not | ||
| 51 | # needed" path is not applicable. | ||
| 52 | # | ||
| 48 | # . If the header is needed, edit all the variables it uses as | 53 | # . If the header is needed, edit all the variables it uses as |
| 49 | # appropriate. In general, if DJGPP has the corresponding feature, | 54 | # appropriate. In general, if DJGPP has the corresponding feature, |
| 50 | # the value of the corresponding HAVE_foo should be set to what | 55 | # the value of the corresponding HAVE_foo should be set to what |
| @@ -78,6 +83,13 @@ | |||
| 78 | # s/'\; \\ *$/' >> $@-t/ | 83 | # s/'\; \\ *$/' >> $@-t/ |
| 79 | # } | 84 | # } |
| 80 | # | 85 | # |
| 86 | # The following Awk script is useful for editing portions of | ||
| 87 | # autogen/Makefile.in into Sed commands that define the corresponding | ||
| 88 | # variables to zero (which is what is required in the absolute | ||
| 89 | # majority of cases): | ||
| 90 | # | ||
| 91 | # { printf "/^%s *=/s/%s/0/\n",$1,$3} | ||
| 92 | # | ||
| 81 | # ---------------------------------------------------------------------- | 93 | # ---------------------------------------------------------------------- |
| 82 | # Replace @..@ constants. | 94 | # Replace @..@ constants. |
| 83 | /^\# @configure_input@/s!@configure_input@!lib/Makefile. Generated from Makefile.in by config.bat! | 95 | /^\# @configure_input@/s!@configure_input@!lib/Makefile. Generated from Makefile.in by config.bat! |
| @@ -195,6 +207,8 @@ am__cd = cd | |||
| 195 | /^GNULIB_PIPE2 *=/s/@GNULIB_PIPE2@/0/ | 207 | /^GNULIB_PIPE2 *=/s/@GNULIB_PIPE2@/0/ |
| 196 | /^GNULIB_POPEN *=/s/@GNULIB_POPEN@/0/ | 208 | /^GNULIB_POPEN *=/s/@GNULIB_POPEN@/0/ |
| 197 | /^GNULIB_PREAD *=/s/@GNULIB_PREAD@/0/ | 209 | /^GNULIB_PREAD *=/s/@GNULIB_PREAD@/0/ |
| 210 | /^GNULIB_PRINTF *=/s/@GNULIB_PRINTF@/0/ | ||
| 211 | /^GNULIB_PRINTF_POSIX *=/s/@GNULIB_PRINTF_POSIX@/0/ | ||
| 198 | /^GNULIB_PTSNAME *=/s/@GNULIB_PTSNAME@/0/ | 212 | /^GNULIB_PTSNAME *=/s/@GNULIB_PTSNAME@/0/ |
| 199 | /^GNULIB_PUTC *=/s/@GNULIB_PUTC@/0/ | 213 | /^GNULIB_PUTC *=/s/@GNULIB_PUTC@/0/ |
| 200 | /^GNULIB_PUTCHAR *=/s/@GNULIB_PUTCHAR@/0/ | 214 | /^GNULIB_PUTCHAR *=/s/@GNULIB_PUTCHAR@/0/ |
| @@ -366,14 +380,14 @@ am__cd = cd | |||
| 366 | /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ | 380 | /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ |
| 367 | /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@// | 381 | /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@// |
| 368 | /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ | 382 | /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ |
| 369 | /^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@// | 383 | /^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ |
| 370 | /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ | 384 | /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ |
| 371 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! | 385 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! |
| 372 | /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/ | 386 | /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/ |
| 373 | /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ | 387 | /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ |
| 374 | /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ | 388 | /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ |
| 375 | /^NEXT_STDDEF_H *=/s/@[^@\n]*@// | 389 | /^NEXT_STDDEF_H *=/s/@[^@\n]*@// |
| 376 | /^NEXT_STDIO_H *=/s/@[^@\n]*@// | 390 | /^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ |
| 377 | /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ | 391 | /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ |
| 378 | /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ | 392 | /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ |
| 379 | /^NEXT_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! | 393 | /^NEXT_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! |
| @@ -526,4 +540,4 @@ s/\.in-h\; *\\$/.in-h >> $@-t/ | |||
| 526 | /^unistd\.h:/,/^ [ ]*mv /{ | 540 | /^unistd\.h:/,/^ [ ]*mv /{ |
| 527 | s/'\; \\ *$/' >> $@-t/ | 541 | s/'\; \\ *$/' >> $@-t/ |
| 528 | } | 542 | } |
| 529 | s!\$(MKDIR_P)[ ][ ]*sys!command.com /c "if not exist sys\stat.h md sys"! | 543 | s!\$(MKDIR_P)[ ][ ]*sys!command.com /c "if not exist sys\\stat.h md sys"! |