1. Configured with:

     CFLAGS='-gdwarf-4 -g3 -O2 -static-libgcc' CXXFLAGS='-gdwarf-4 -g3 -O2 -static-libstdc++ -static-libgcc' ./configure --prefix=d:/usr

2. Compilation error:

     /bin/sh ./ylwrap `test -f 'grap.yy' || echo './'`grap.yy y.tab.c grap.cc y.tab.h `echo grap.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/  -e s/c++$/h++/ -e s/c$/h/` y.output grap.output -- bison -y
     g++ -DHAVE_CONFIG_H -I.    -std=c++0x -Wall -std=c++0x -gdwarf-4 -g3 -O2 -static-libstdc++ -static-libgcc -std=c++0x -MT grap.o -MD -MP -MF .deps/grap.Tpo -c -o grap.o grap.cc
     grap.yy: In function 'int yyparse()':
     grap.yy:363:39: error: 'localtime' was not declared in this scope
		struct tm *tm = localtime(&t);
					    ^
     grap.yy:369:69: error: 'strftime' was not declared in this scope
	     if (strftime(buf, len, $3->c_str(), tm) != 0 ) {
									  ^
     grap.yy:581:18: error: variable 'tm tm' has initializer but incomplete type
	     struct tm tm = { 0 };
		       ^~
     grap.yy:582:96: error: 'strptime' was not declared in this scope
	     if (strptime($5->c_str(), $3->c_str(), &tm) != 0) {

		     ^
     grap.yy:583:32: error: 'mktime' was not declared in this scope
		time_t t = mktime(&tm);
				     ^
     Makefile:496: recipe for target `grap.o' failed
     make[1]: *** [grap.o] Error 1
     make[1]: Leaving directory `/d/usr/eli/utils/grap-1.45'
     Makefile:380: recipe for target `all' failed
     make: *** [all] Error 2

   Added time.h to grap.yy and inserted strptime from StackOverflow.

3. Another compilation error:

     /bin/sh ./ylwrap `test -f 'grap_lex.ll' || echo './'`grap_lex.ll lex.yy.c grap_lex.cc -- flex
     g++ -DHAVE_CONFIG_H -I.    -std=c++0x -Wall -std=c++0x -gdwarf-4 -g3 -O2 -static-libstdc++ -static-libgcc -std=c++0x -MT grap_lex.o -MD -MP -MF .deps/grap_lex.Tpo -c -o grap_lex.o grap_lex.cc
     grap_lex.ll: In function 'int yylex()':
     grap_lex.ll:201:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
				 for ( unsigned i = 0; i < yyleng; i++ )
						       ~~^~~~~~~~
     grap_lex.ll:725:25: error: 'strdup' was not declared in this scope
       char *c = strdup(yytext);
			      ^
     grap_lex.cc: In function 'void yy_init_buffer(YY_BUFFER_STATE, FILE*)':
     grap_lex.cc:3735:59: error: 'fileno' was not declared in this scope
	      b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
								^
     Makefile:496: recipe for target `grap_lex.o' failed

   Added inclusion of stdio.h (for fileno) and declared strdup.

4. Fixed absolute file name processing in grap_lex.ll.
   Added the ../share/grap directory to search path, to allow
   relocation of the binary.
   Fixed handling of colon-separated paths.

5. "make install-strip" works correctly.

======================================================================

1. Applied changes in DIFFS

2. Configured with:

     CFLAGS='-gdwarf-4 -g3 -O2 -static-libgcc' CXXFLAGS='-gdwarf-4 -g3 -O2 -static-libstdc++ -static-libgcc' ./configure --prefix=d:/usr

3. configure script emits strange warnings:

     checking unistd.h usability... no
     checking unistd.h presence... yes
     configure: WARNING: unistd.h: present but cannot be compiled
     configure: WARNING: unistd.h:     check for missing prerequisite headers?
     configure: WARNING: unistd.h: see the Autoconf documentation
     configure: WARNING: unistd.h:     section "Present But Cannot Be Compiled"
     configure: WARNING: unistd.h: proceeding with the compiler's result
     configure: WARNING:     ## --------------------------------- ##
     configure: WARNING:     ## Report this to faber@lunabase.org ##
     configure: WARNING:     ## --------------------------------- ##
     checking for unistd.h... no

   and similarly for errno.h, limits.h, unordered_map, hash_map, and
   ext/hash_map.

   This happens due to a bug in stdio.h: it defines __off64_t only if
   __STRICT_ANSI__ is not defined, but then uses it regardless.
   Fixed by editing stdio.h.  Then configure runs cleanly.

4. "make install-strip" works correctly.

5. Generated formatted man page in share/man/cat1.
