1@echo off
2rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
3rem 2004, 2005, 2006 Free Software Foundation, Inc.
4rem This file is part of GNU Make.
5
6rem GNU Make is free software; you can redistribute it and/or modify it under
7rem the terms of the GNU General Public License as published by the Free
8rem Software Foundation; either version 2, or (at your option) any later
9rem version.
10
11rem GNU Make is distributed in the hope that it will be useful, but WITHOUT
12rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13rem FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14rem more details.
15
16rem You should have received a copy of the GNU General Public License along
17rem with GNU Make; see the file COPYING.  If not, write to the Free Software
18rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
20echo Configuring glob for DJGPP
21rem This batch file assumes a unix-type "sed" program
22
23echo # Makefile generated by "configure.bat"> Makefile
24
25if exist config.sed del config.sed
26
27echo "s/@srcdir@/./					">> config.sed
28echo "s/@CC@/gcc/					">> config.sed
29echo "s/@CFLAGS@/-O2 -g/				">> config.sed
30echo "s/@CPPFLAGS@/-DHAVE_CONFIG_H -I../		">> config.sed
31echo "s/@AR@/ar/					">> config.sed
32echo "s/@RANLIB@/ranlib/				">> config.sed
33echo "s/@LDFLAGS@//					">> config.sed
34echo "s/@DEFS@//					">> config.sed
35echo "s/@ALLOCA@//					">> config.sed
36echo "s/@LIBS@//					">> config.sed
37echo "s/@LIBOBJS@//					">> config.sed
38echo "s/^Makefile *:/_Makefile:/			">> config.sed
39echo "s/^config.h *:/_config.h:/			">> config.sed
40
41sed -e "s/^\"//" -e "s/\"$//" -e "s/[ 	]*$//" config.sed > config2.sed
42sed -f config2.sed Makefile.in >> Makefile
43del config.sed
44del config2.sed
45