3
# edit this to taste; note that you can also override via the environment:
8
if test -f config.h; then :; else
9
echo "Creating basic config.h..."
10
cat >config.h <<'END_OF_CONFIG_H'
11
/* A bootstrap version of config.h, for systems which can't
12
auto-configure due to a lack of a working sed. If you are on
13
a sufficiently odd machine you may need to hand-tweak this file.
15
Regardless, once you get a working version of sed you really should
16
re-build starting with a run of "configure", as the bootstrap
17
version is almost certainly more crippled than it needs to be on
22
#define VERSION "@VERSION@-boot"
25
/* Undefine if your compiler/headers have a conflicting definition. */
28
/* Undefine if <stdio.h> or <sys/types.h> has conflicting definition. */
29
#define size_t unsigned
32
/* If your antique compiler doesn't grok ``void *'', then #define VOID char */
35
/* All other config.h.in options intentionally omitted. Report as a
36
bug if you need extra "#define"s in here. */
40
# tell the user what we're doing from here on...
43
# the ``|| exit 1''s are for fail-stop; set -e doesn't work on some systems
45
rm -f lib/*.o sed/*.o sed/sed
47
${CC} -DHAVE_CONFIG_H -I.. -I. -c \
48
alloca.c getline.c getopt.c getopt1.c memchr.c memcmp.c memmove.c \
49
obstack.c snprintf.c strerror.c utils.c || exit 1
52
${CC} -DHAVE_CONFIG_H -I.. -I. -I../lib -c \
53
regdebug.c regexec.c regexp.c reginfo.c regperl.c regposix.c \
54
regstudy.c regsub.c regtables.c || exit 1
57
${CC} -DHAVE_CONFIG_H -I.. -I. -I../lib -I../pcre -c \
58
sed.c compile.c execute.c regex.c || exit 1
60
${CC} -o sed sed.o compile.o execute.o regex.o \
61
../lib/*.o ../pcre/*.o || exit 1