aboutsummaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1994-03-28 23:01:39 +0000
committerPer Bothner <per@bothner.com>1994-03-28 23:01:39 +0000
commitdb7ea4ead52123786a42d77e50ba37550f21f84c (patch)
treebe6ba2171e3f7e1b6d3d3c6ad576255fccef994e /config.guess
parent75d20ac894671e33dcb318b4c86a73a53f73c952 (diff)
downloadgdb-db7ea4ead52123786a42d77e50ba37550f21f84c.zip
gdb-db7ea4ead52123786a42d77e50ba37550f21f84c.tar.gz
gdb-db7ea4ead52123786a42d77e50ba37550f21f84c.tar.bz2
* config.guess: Make BSDI generate i386-unknown-bsd386.
Patch from Paul Eggert <eggert@twinsun.com>.
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess11
1 files changed, 9 insertions, 2 deletions
diff --git a/config.guess b/config.guess
index c9a3c68..71616ed 100755
--- a/config.guess
+++ b/config.guess
@@ -133,6 +133,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
main ()
{
long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
if (CPU_IS_PA_RISC (cpu))
{
switch (cpu)
@@ -143,7 +146,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
default: puts ("hppa-hitachi-hiuxwe2"); break;
}
}
- if (CPU_IS_HP_MC68K (cpu))
+ else if (CPU_IS_HP_MC68K (cpu))
puts ("m68k-hitachi-hiuxwe2");
else puts ("unknown-hitachi-hiuxwe2");
exit (0);
@@ -279,9 +282,13 @@ main()
#endif
#endif
-#if defined(__386BSD__) || (defined(__bsdi__) && defined(__i386__))
+#if defined(__bsdi__) && defined(__i386__)
+ printf("i386-unknown-bsd386\n"); exit(0);
+#else
+#if defined(__386BSD__)
printf("i386-unknown-bsd\n"); exit(0);
#endif
+#endif
#if defined(sequent)
#if defined(i386)