6 echo No machine name given
12 echo constructing ${target} for $machine
13 fixincludes="${target}"
16 i[34567]86-*-linux-gnu*)
17 fixincludes=fixinc.x86-linux-gnu
21 fixincludes=fixinc.svr4
28 i[34567]86-*-sysv5* | \
30 i[34567]86-*-solaris2.[0-4] | \
31 powerpcle-*-solaris2.[0-4] | \
32 sparc-*-solaris2.[0-4] )
33 fixincludes=fixinc.svr4
36 i[34567]86-*-interix* | \
38 fixincludes=fixinc.interix
42 alpha*-*-linux-gnulibc1* | \
43 i[34567]86-*-openbsd* | \
44 i[34567]86-*-solaris2* | \
45 sparcv9-*-solaris2* | \
46 powerpcle-*-solaris2* | \
48 fixincludes=fixinc.wrap
53 fixincludes=fixinc.winnt
56 i[34567]86-sequent-ptx* | i[34567]86-sequent-sysv[34]*)
57 fixincludes=fixinc.ptx
60 i[34567]86-*-sco3.2v5* | \
61 i[34567]86-*-sco3.2v4*)
62 fixincludes=fixinc.sco
65 alpha*-*-linux-gnu* | \
67 arm-semi-aout | armel-semi-aout | \
68 arm-semi-aof | armel-semi-aof | \
78 i[34567]86-moss-msdos* | i[34567]86-*-moss* | \
79 i[34567]86-*-osf1* | \
80 i[34567]86-*-win32 | \
81 i[34567]86-*-pe | i[34567]86-*-cygwin* | \
82 i[34567]86-*-mingw32* | \
83 mips-sgi-irix5cross64 | \
84 powerpc-*-eabiaix* | \
85 powerpc-*-eabisim* | \
88 powerpcle-*-eabisim* | \
90 powerpcle-*-winnt* | \
91 powerpcle-*-pe | powerpcle-*-cygwin* | \
92 thumb-*-coff* | thumbel-*-coff* )
97 fixincludes=fixinc.irix
101 # IF there is no include fixing,
102 # THEN create a no-op fixer and exit
104 if test -z "$fixincludes"
106 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
111 # IF the fixer is supplied in our source directory,
112 # THEN copy that into place
114 if test -f ${srcdir}/"${fixincludes}"
116 echo copying ${srcdir}/$fixincludes to ${target}
117 cp ${srcdir}/$fixincludes ${target}
122 # OK. We gotta make the thing.
124 echo $MAKE SHELL=\"$SHELL\" install
126 # make and install either the binary or the default script
128 $MAKE SHELL="$SHELL" install && chmod 755 ${target} && exit 0
130 # Where is our inclhack script? That is the backup
131 # in case we are unable to make a working binary.
133 if test -f ./inclhack.sh
135 INCLHACK=./inclhack.sh
137 INCLHACK=${srcdir}/inclhack.sh
140 echo Could not install binary fixincludes.
141 echo Installing shell script instead.
143 cp ${INCLHACK} ${target}