diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-02-28 15:26:03 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-02-28 15:26:03 +0000 |
commit | e61d0eaa73c1f7067bcb1d93981e54c1d7de3970 (patch) | |
tree | acdf1021363a4f5f5d7aa12d8979f90256e01a2d | |
parent | 34c6e1c5cb003b96fb5472bdf0fbded23b063e91 (diff) |
Write a `default' OpenBSD setup to factorize stuff that is common to
all OpenBSD architectures. That way, you have to make a conscious
effort to rewrite it.
As usual, configure.in -> configure.
First guy who patches configure directly gets shot.
-rw-r--r-- | gnu/usr.bin/gcc/configure | 70 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/configure.in | 70 |
2 files changed, 36 insertions, 104 deletions
diff --git a/gnu/usr.bin/gcc/configure b/gnu/usr.bin/gcc/configure index 8b3ec2c4e6d..ecbb3a09d32 100644 --- a/gnu/usr.bin/gcc/configure +++ b/gnu/usr.bin/gcc/configure @@ -2843,6 +2843,16 @@ for machine in $build $host $target; do tm_file=${cpu_type}/${cpu_type}.h xm_file=${cpu_type}/xm-${cpu_type}.h + # Common parts for openbsd systems + case $machine in + *-*-openbsd*) + tm_file=${cpu_type}/openbsd.h + # On OpenBSD systems, the headers are okay + fixincludes=Makefile.in + tmake_file=t-libc-ok + xmake_file=x-openbsd + ;; + esac case $machine in # Support site-specific machine types. *local*) @@ -2914,11 +2924,7 @@ for machine in $build $host $target; do fi ;; alpha-*-openbsd*) - tm_file=alpha/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # nothing special ;; alpha*-dec-osf*) if [ x$stabs = xyes ] @@ -3249,11 +3255,9 @@ for machine in $build $host $target; do ;; hppa*-*-openbsd*) target_cpu_default=1 - tm_file="${cpu_type}/openbsd.h" xm_file="${cpu_type}/xm-openbsd.h" tmake_file=pa/t-openbsd use_collect2=yes - fixincludes=Makefile.in ;; i370-*-mvs*) ;; @@ -3375,11 +3379,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; i[34567]86-*-openbsd*) - tm_file=i386/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # Nothing special ;; i[34567]86-*-coff*) tm_file=i386/i386-coff.h @@ -4069,11 +4069,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; m68k-*-openbsd*) - tm_file=m68k/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # Nothing special ;; m68k-*-sysv3*) # Motorola m68k's running system V.3 xm_file=m68k/xm-m68kv.h @@ -4189,11 +4185,7 @@ for machine in $build $host $target; do fi ;; m88k-*-openbsd*) - tm_file=m88k/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in tmake_file=m88k/t-openbsd - xmake_file=x-openbsd ;; m88k-*-sysv3*) tm_file=m88k/sysv3.h @@ -4392,18 +4384,10 @@ for machine in $build $host $target; do fi ;; mips*el-*-openbsd*) # MIPS running OpenBSD - tm_file=mips/openbsd-le.h - xmake_file=x-openbsd - tmake_file=t-libc-ok - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in + tm_file=${cpu_type}/openbsd-le.h ;; mips*-*-openbsd*) # MIPS big-endian running OpenBSD - tm_file=mips/openbsd-be.h - xmake_file=x-openbsd - tmake_file=t-libc-ok - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in + tm_file=${cpu_type}/openbsd-be.h ;; mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. tm_file=mips/news4.h @@ -4745,11 +4729,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; ns32k-*-openbsd*) - tm_file=ns32k/openbsd.h - tmake_file=t-libc-ok - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - xmake_file=x-openbsd + # Nothing special ;; pdp11-*-bsd) tm_file="${tm_file} pdp11/2bsd.h" @@ -4765,9 +4745,6 @@ for machine in $build $host $target; do use_collect2=yes ;; romp-*-openbsd*) - tm_file=romp/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in xmake_file=romp/x-openbsd ;; romp-*-mach*) @@ -4775,10 +4752,7 @@ for machine in $build $host $target; do use_collect2=yes ;; powerpc-*-*bsd*) - tm_file=rs6000/openbsd.h tmake_file=rs6000/t-openbsd - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in xmake_file=rs6000/x-openbsd ;; powerpc-*-sysv* | powerpc-*-elf*) @@ -4994,11 +4968,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; sparc-*-openbsd*) - tm_file=sparc/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # Nothing special ;; sparc-*-bsd*) tm_file=sparc/bsd.h @@ -5171,11 +5141,7 @@ for machine in $build $host $target; do float_format=vax ;; vax-*-openbsd*) - tm_file=vax/openbsd.h - tmake_file="t-libc-ok vax/t-openbsd" - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - xmake_file=x-openbsd + tmake_file="${tmake_file} vax/t-openbsd" float_format=vax ;; vax-*-ultrix*) # vaxen running ultrix diff --git a/gnu/usr.bin/gcc/configure.in b/gnu/usr.bin/gcc/configure.in index 5ae02075a33..386f64607f9 100644 --- a/gnu/usr.bin/gcc/configure.in +++ b/gnu/usr.bin/gcc/configure.in @@ -267,6 +267,16 @@ for machine in $build $host $target; do tm_file=${cpu_type}/${cpu_type}.h xm_file=${cpu_type}/xm-${cpu_type}.h + # Common parts for openbsd systems + case $machine in + *-*-openbsd*) + tm_file=${cpu_type}/openbsd.h + # On OpenBSD systems, the headers are okay + fixincludes=Makefile.in + tmake_file=t-libc-ok + xmake_file=x-openbsd + ;; + esac case $machine in # Support site-specific machine types. *local*) @@ -338,11 +348,7 @@ for machine in $build $host $target; do fi ;; alpha-*-openbsd*) - tm_file=alpha/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # nothing special ;; alpha*-dec-osf*) if [[ x$stabs = xyes ]] @@ -673,11 +679,9 @@ for machine in $build $host $target; do ;; hppa*-*-openbsd*) target_cpu_default=1 - tm_file="${cpu_type}/openbsd.h" xm_file="${cpu_type}/xm-openbsd.h" tmake_file=pa/t-openbsd use_collect2=yes - fixincludes=Makefile.in ;; i370-*-mvs*) ;; @@ -799,11 +803,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; i[[34567]]86-*-openbsd*) - tm_file=i386/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # Nothing special ;; i[[34567]]86-*-coff*) tm_file=i386/i386-coff.h @@ -1493,11 +1493,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; m68k-*-openbsd*) - tm_file=m68k/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # Nothing special ;; m68k-*-sysv3*) # Motorola m68k's running system V.3 xm_file=m68k/xm-m68kv.h @@ -1613,11 +1609,7 @@ for machine in $build $host $target; do fi ;; m88k-*-openbsd*) - tm_file=m88k/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in tmake_file=m88k/t-openbsd - xmake_file=x-openbsd ;; m88k-*-sysv3*) tm_file=m88k/sysv3.h @@ -1816,18 +1808,10 @@ for machine in $build $host $target; do fi ;; mips*el-*-openbsd*) # MIPS running OpenBSD - tm_file=mips/openbsd-le.h - xmake_file=x-openbsd - tmake_file=t-libc-ok - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in + tm_file=${cpu_type}/openbsd-le.h ;; mips*-*-openbsd*) # MIPS big-endian running OpenBSD - tm_file=mips/openbsd-be.h - xmake_file=x-openbsd - tmake_file=t-libc-ok - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in + tm_file=${cpu_type}/openbsd-be.h ;; mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. tm_file=mips/news4.h @@ -2169,11 +2153,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; ns32k-*-openbsd*) - tm_file=ns32k/openbsd.h - tmake_file=t-libc-ok - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - xmake_file=x-openbsd + # Nothing special ;; pdp11-*-bsd) tm_file="${tm_file} pdp11/2bsd.h" @@ -2189,9 +2169,6 @@ for machine in $build $host $target; do use_collect2=yes ;; romp-*-openbsd*) - tm_file=romp/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in xmake_file=romp/x-openbsd ;; romp-*-mach*) @@ -2199,10 +2176,7 @@ for machine in $build $host $target; do use_collect2=yes ;; powerpc-*-*bsd*) - tm_file=rs6000/openbsd.h tmake_file=rs6000/t-openbsd - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in xmake_file=rs6000/x-openbsd ;; powerpc-*-sysv* | powerpc-*-elf*) @@ -2418,11 +2392,7 @@ for machine in $build $host $target; do tmake_file=t-netbsd ;; sparc-*-openbsd*) - tm_file=sparc/openbsd.h - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - tmake_file=t-libc-ok - xmake_file=x-openbsd + # Nothing special ;; sparc-*-bsd*) tm_file=sparc/bsd.h @@ -2595,11 +2565,7 @@ for machine in $build $host $target; do float_format=vax ;; vax-*-openbsd*) - tm_file=vax/openbsd.h - tmake_file="t-libc-ok vax/t-openbsd" - # On OpenBSD, the headers are already okay. - fixincludes=Makefile.in - xmake_file=x-openbsd + tmake_file="${tmake_file} vax/t-openbsd" float_format=vax ;; vax-*-ultrix*) # vaxen running ultrix |