6 echo No machine name given
12 echo constructing ${target} for $machine
13 fixincludes="${machine}"
21 fixincludes=fixinc.svr4
26 i?86-*-solaris2.[0-4] | \
27 powerpcle-*-solaris2.[0-4] | \
28 sparc-*-solaris2.[0-4] )
29 fixincludes=fixinc.svr4
34 fixincludes=fixinc.interix
38 alpha*-*-linux*libc1* | \
41 sparcv9-*-solaris2* | \
42 powerpcle-*-solaris2* | \
44 fixincludes=fixinc.wrap
49 fixincludes=fixinc.winnt
52 i?86-sequent-ptx* | i?86-sequent-sysv[34]*)
53 fixincludes=fixinc.ptx
57 arm-semi-aout | armel-semi-aout | \
58 arm-semi-aof | armel-semi-aof | \
68 i?86-moss-msdos* | i?86-*-moss* | \
71 i?86-*-pe | i?86-*-cygwin* | \
73 i?86-*-uwin* | i?86-*-msdosdjgpp* | \
74 mips-sgi-irix5cross64 | \
75 powerpc-*-eabiaix* | \
76 powerpc-*-eabisim* | \
79 powerpcle-*-eabisim* | \
81 powerpcle-*-winnt* | \
82 powerpcle-*-pe | powerpcle-*-cygwin* | \
83 thumb-*-coff* | thumbel-*-coff* )
88 fixincludes=fixinc.irix
92 # IF there is no include fixing,
93 # THEN create a no-op fixer and exit
95 if test -z "$fixincludes"
97 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
102 # IF the fixer is supplied in our source directory,
103 # THEN copy that into place
105 if test -f ${srcdir}/"${fixincludes}"
107 echo copying ${srcdir}/$fixincludes to ${target}
108 cp ${srcdir}/$fixincludes ${target}
113 # OK. We gotta make the thing.
114 # make and install either the binary or the default script
116 cmd="$MAKE SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\" install-bin"