diff options
author | agc <agc> | 1998-03-31 11:56:32 +0000 |
---|---|---|
committer | agc <agc> | 1998-03-31 11:56:32 +0000 |
commit | 05016d0147c295490a7b99192a11ac042a1c1746 (patch) | |
tree | 79a9a18da57fbf587a1dabce7d00d26c946a1af4 /lang | |
parent | 05fe7169f453c116f3b9bed95e0ec9e3b77c4834 (diff) | |
download | pkgsrc-05016d0147c295490a7b99192a11ac042a1c1746.tar.gz |
Modify this for NetBSD - use symbolic links, rather than copying the
file. Work out, form the architecture, what format of executable to
use (a.out or ELF), and use the appropriate configuration file.
However, here is (as yet) no ELF configuration file, because I have no
ELF system to try this on.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/elk/scripts/configure | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lang/elk/scripts/configure b/lang/elk/scripts/configure index 8336f879540..0c8e0196a84 100644 --- a/lang/elk/scripts/configure +++ b/lang/elk/scripts/configure @@ -1,4 +1,21 @@ #!/bin/sh -cp ${WRKSRC}/config/untested/386pc-freebsd2.1-cc ${WRKSRC}/config/system -cp ${WRKSRC}/config/sites/386pc-freebsd2.1 ${WRKSRC}/config/site +mach=`uname -m` + +case $mach in +i386|sparc|m68k) + exetype=aout + ;; +pmax|alpha) + exetype=elf + ;; +*) + echo "Unrecognised machine type: $mach" + exit 1 + ;; +esac + +ln -sf ${WRKSRC}/config/untested/$exetype-netbsd-cc ${WRKSRC}/config/system +ln -sf ${WRKSRC}/config/sites/$exetype-netbsd ${WRKSRC}/config/site + +exit 0 |