comparison configure.ac @ 4759:aa5ed11f473b

Remove support for obsolete systems. See xemacs-patches message with ID <870180fe0911101613m6b8efa4bpf083fd9013950807@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Wed, 18 Nov 2009 08:49:14 -0700
parents a6f27e2b3d84
children 53f27fcd3cd9
comparison
equal deleted inserted replaced
4758:75975fd0b7fc 4759:aa5ed11f473b
1292 1292
1293 dnl Straightforward machine determination 1293 dnl Straightforward machine determination
1294 case "$ac_cv_build" in 1294 case "$ac_cv_build" in
1295 sparc-*-* ) machine=sparc ;; 1295 sparc-*-* ) machine=sparc ;;
1296 alpha*-*-* ) machine=alpha ;; 1296 alpha*-*-* ) machine=alpha ;;
1297 vax-*-* ) machine=vax ;;
1298 mips-dec-* ) machine=pmax ;;
1299 mips-sgi-irix6* ) machine=iris6d ;;
1300 mips-sgi-* ) machine=iris4d ;;
1301 mips*-linux ) machine=mips ;; 1297 mips*-linux ) machine=mips ;;
1302 romp-ibm-* ) machine=ibmrt ;;
1303 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1298 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1304 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1299 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1305 powerpc*-* ) machine=powerpc ;; 1300 powerpc*-* ) machine=powerpc ;;
1306 hppa-*-* ) machine=hp800 ;; 1301 hppa-*-* ) machine=hp800 ;;
1307 m88k-dg-* ) machine=aviion ;;
1308 m68*-sony-* ) machine=news ;;
1309 mips-sony-* ) machine=news-risc ;;
1310 clipper-* ) machine=clipper ;;
1311 arm* ) machine=arm ;; 1302 arm* ) machine=arm ;;
1312 ns32k-* ) machine=ns32000 ;;
1313 esac 1303 esac
1314 1304
1315 dnl Straightforward OS determination 1305 dnl Straightforward OS determination
1316 case "$ac_cv_build" in 1306 case "$ac_cv_build" in
1317 *-*-linux* ) opsys=linux ;;
1318 *-*-netbsd* ) opsys=netbsd ;; 1307 *-*-netbsd* ) opsys=netbsd ;;
1319 *-*-openbsd* ) opsys=openbsd ;; 1308 *-*-openbsd* ) opsys=openbsd ;;
1320 *-*-nextstep* ) opsys=nextstep ;;
1321 *-*-vms ) opsys=vms ;;
1322
1323 dnl DEC OSF
1324 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1325 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1326 *-dec-osf3.[[2-9]] ) opsys=decosf3-2 ;;
1327 *-dec-osf3* ) opsys=decosf3-1 ;;
1328 *-dec-osf[[4-9]]* ) opsys=decosf4-0 ;;
1329
1330 dnl DEC Ultrix
1331 *-*-ultrix[[0-3]].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1332 *-*-ultrix4.[[12]]* ) opsys=bsd4-3 ;;
1333 *-*-ultrix* ) opsys=ultrix4-3 ;;
1334 1309
1335 dnl AIX 1310 dnl AIX
1336 *-*-aix3.1* ) opsys=aix3-1 ;;
1337 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1338 *-*-aix3* ) opsys=aix3-2 ;;
1339 *-*-aix4.0* ) opsys=aix4 ;;
1340 *-*-aix4.1* ) opsys=aix4-1 ;;
1341 *-*-aix[[4-9]]* ) opsys=aix4-2 ;; 1311 *-*-aix[[4-9]]* ) opsys=aix4-2 ;;
1342 1312
1343 dnl Other generic OSes 1313 dnl Other generic OSes
1344 *-gnu* ) opsys=gnu ;; 1314 *-gnu* ) opsys=gnu ;;
1345 *-*-bsd4.[[01]] ) opsys=bsd4-1 ;;
1346 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1347 *-*-bsd4.3 ) opsys=bsd4-3 ;; 1315 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1348 *-*-aos4.2 ) opsys=bsd4-2 ;;
1349 *-*-aos* ) opsys=bsd4-3 ;; 1316 *-*-aos* ) opsys=bsd4-3 ;;
1350 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1351 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1352 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1353 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1354 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; 1317 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1355 *-*-sysv4.[[2-9]]* | *-sysvr4.[[2-9]]* ) 1318 *-*-sysv4.[[2-9]]* | *-sysvr4.[[2-9]]* )
1356 if test -z "$NON_GNU_CPP" ; then 1319 if test -z "$NON_GNU_CPP" ; then
1357 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do 1320 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1358 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi 1321 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1367 1330
1368 dnl NetBSD ports 1331 dnl NetBSD ports
1369 *-*-netbsd* ) 1332 *-*-netbsd* )
1370 case "${ac_cv_build}" in 1333 case "${ac_cv_build}" in
1371 i[[3-9]]86-*-netbsd*) machine=intel386 ;; 1334 i[[3-9]]86-*-netbsd*) machine=intel386 ;;
1372 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1373 dnl Yes, this is somewhat bogus.
1374 machine=hp9000s300 ;;
1375 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1376 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1377 esac 1335 esac
1378 ;; 1336 ;;
1379 1337
1380 dnl OpenBSD ports 1338 dnl OpenBSD ports
1381 *-*-openbsd* ) 1339 *-*-openbsd* )
1382 case "${ac_cv_build}" in 1340 case "${ac_cv_build}" in
1383 i386-*-openbsd*) machine=intel386 ;; 1341 i386-*-openbsd*) machine=intel386 ;;
1384 m68k-*-openbsd*) machine=hp9000s300 ;;
1385 mipsel-*-openbsd*) machine=pmax ;;
1386 esac 1342 esac
1387 ;; 1343 ;;
1388
1389 dnl Acorn RISCiX:
1390 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1391 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1392
1393 dnl Alliant machines
1394 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1395 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1396
1397 dnl Altos 3068
1398 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1399
1400 dnl Amdahl UTS
1401 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1402
1403 dnl Apollo, Domain/OS
1404 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1405
1406 dnl AT&T 3b2, 3b5, 3b15, 3b20
1407 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1408
1409 dnl AT&T 3b1 - The Mighty Unix PC!
1410 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1411
1412 dnl Bull machines
1413 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1414 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1415 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1416
1417 dnl CCI 5/32, 6/32 -- see "Tahoe".
1418
1419 dnl Celerity
1420 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1421
1422 dnl Convex
1423 *-convex-bsd* | *-convex-convexos* )
1424 machine=convex opsys=bsd4-3
1425 NON_GNU_CPP="cc -E -P"
1426 ;;
1427
1428 dnl Cubix QBx/386
1429 i[[3-9]]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1430 1344
1431 dnl Darwin, a.k.a. MacOS X (based on Mach and Freebsd) 1345 dnl Darwin, a.k.a. MacOS X (based on Mach and Freebsd)
1432 *-*-darwin*) 1346 *-*-darwin*)
1433 opsys=darwin 1347 opsys=darwin
1434 dnl Use this to set BSD correctly. 1348 dnl Use this to set BSD correctly.
1435 AC_DEFINE(USE_PARAM_H) 1349 AC_DEFINE(USE_PARAM_H)
1436 ;; 1350 ;;
1437 1351
1438 dnl Data General AViiON Machines
1439 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1440 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1441 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1442 m88k-dg-dgux* ) opsys=dgux ;;
1443
1444 dnl Motorola Delta machines
1445 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1446 m88k-motorola-sysv4* )
1447 dnl jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1448 dnl needs POSIX_SIGNALS and therefore needs usg5-4-2.
1449 dnl I hope there are not other 4.0 versions for this machine
1450 dnl which really need usg5-4 instead.
1451 machine=delta88k opsys=usg5-4-2
1452 ;;
1453 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1454
1455 dnl Dual machines
1456 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1457 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1458
1459 dnl Encore machines
1460 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1461
1462 dnl Gould Power Node and NP1
1463 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1464 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1465 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1466
1467 dnl Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1468 dnl as far as XEmacs is concerned).
1469 m88k-harris-cxux* )
1470 dnl Build needs to be different on 7.0 and later releases
1471 case "`uname -r`" in
1472 [[56]].[[0-9]] ) machine=nh4000 opsys=cxux ;;
1473 [[7]].[[0-9]] ) machine=nh4000 opsys=cxux7 ;;
1474 esac
1475 NON_GNU_CPP="/lib/cpp"
1476 ;;
1477 dnl Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1478 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1479 dnl Harris power pc NightHawk running Power UNIX (Series 6000)
1480 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1481
1482 dnl Honeywell XPS100
1483 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1484
1485 dnl HP 9000 series 200 or 300
1486 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1487
1488 dnl HP-UX 1352 dnl HP-UX
1489 *-hp-hpux* ) 1353 *-hp-hpux* ) machine=hp800 opsys=hpux11
1490 dnl Figure out machine and opsys orthogonally 1354 NON_GNU_CC="cc -Ae" NON_GNU_CPP="cc -Ae -E"
1491 case "$ac_cv_build" in
1492 m68* ) machine=hp9000s300 ;;
1493 hppa* ) machine=hp800 ;;
1494 esac
1495
1496 case "$ac_cv_build" in
1497 *-hp-hpux7* ) opsys=hpux ;;
1498 *-hp-hpux8* ) opsys=hpux8 ;;
1499 *-hp-hpux9* ) opsys=hpux9 ;;
1500 *-hp-hpux10* ) opsys=hpux10 ;;
1501 *-hp-hpux11* ) opsys=hpux11 ;;
1502 * ) opsys=hpux ;;
1503 esac
1504
1505 dnl HP has a broken "strcat"
1506 case "$opsys" in hpux9 | hpux10 ) XE_ADD_OBJS(strcat.o) ;; esac
1507
1508 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1509 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1510 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1511 1355
1512 case "$ac_cv_build" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac 1356 case "$ac_cv_build" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1513 ;; 1357 ;;
1514
1515 dnl Orion machines
1516 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1517 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1518
1519 dnl IBM machines
1520 i[[3-9]]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1521 i[[3-9]]86-ibm-aix1.[[23]]* | i[[3-9]]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1522 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1523 romp-ibm-aos* ) opsys=bsd4-3 ;;
1524 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1525 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1526
1527 dnl Integrated Solutions "Optimum V"
1528 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1529 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1530
1531 dnl Intel 386 machines where we do care about the manufacturer
1532 i[[3-9]]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1533
1534 dnl Prime EXL
1535 i[[3-9]]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1536
1537 dnl Sequent Symmetry running Dynix
1538 i[[3-9]]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1539
1540 dnl Sequent Symmetry running DYNIX/ptx
1541 i[[3-9]]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1542
1543 dnl Unspecified sysv on an ncr machine defaults to svr4.2.
1544 dnl (Plain usg5-4 does not turn on POSIX signals, which we need.)
1545 i[[3-9]]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1546
1547 dnl Intel Paragon OSF/1
1548 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1549
1550 dnl Intel 860
1551 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1552
1553 dnl Masscomp machines
1554 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1555
1556 dnl Megatest machines
1557 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1558 1358
1559 dnl Workstations sold by MIPS 1359 dnl Workstations sold by MIPS
1560 dnl This is not necessarily all workstations using the MIPS processor - 1360 dnl This is not necessarily all workstations using the MIPS processor -
1561 dnl Irises are produced by SGI, and DECstations by DEC. 1361 dnl Irises are produced by SGI, and DECstations by DEC.
1562 mips-mips-usg* ) machine=mips4 ;;
1563 mips-mips-riscos4 )
1564 machine=mips4
1565 NON_GNU_CC="cc -systype bsd43"
1566 NON_GNU_CPP="cc -systype bsd43 -E"
1567 case "$ac_cv_build" in
1568 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1569 mips-mips-riscos5* ) opsys=riscos5 ;;
1570 esac
1571 ;;
1572 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;; 1362 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1573 mips-mips-* ) machine=mips opsys=usg5-2-2 ;; 1363 mips-mips-* ) machine=mips opsys=usg5-4-2 ;;
1574
1575 dnl NeXT
1576 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1577
1578 dnl The complete machine from National Semiconductor
1579 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1580
1581 dnl NCR machines
1582 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1583 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1584
1585 dnl Nixdorf Targon 31
1586 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1587
1588 dnl Nu (TI or LMI)
1589 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1590
1591 dnl Plexus
1592 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1593
1594 dnl Pyramid machines
1595 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1596
1597 dnl Sequent Balance
1598 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1599 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1600
1601 dnl Siemens Nixdorf
1602 mips-siemens-sysv* | mips-sni-sysv*)
1603 machine=mips-siemens opsys=usg5-4
1604 NON_GNU_CC=/usr/ccs/bin/cc
1605 NON_GNU_CPP=/usr/ccs/lib/cpp
1606 ;;
1607
1608 dnl NEC
1609 mips-nec-sysv*)
1610 machine=mips-nec
1611 NON_GNU_CC=/usr/ccs/bin/cc
1612 NON_GNU_CPP=/usr/ccs/lib/cpp
1613 ;;
1614 1364
1615 dnl Silicon Graphics machines 1365 dnl Silicon Graphics machines
1616 dnl Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1617 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1618 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1619 dnl Iris 4D 1366 dnl Iris 4D
1620 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1621 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1622 mips-sgi-irix6* ) opsys=irix6-0 ;; 1367 mips-sgi-irix6* ) opsys=irix6-0 ;;
1623 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1624 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1625 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1626 mips-sgi-irix* ) opsys=irix5-0 ;;
1627
1628 dnl SONY machines
1629 *-sony-newsos[[34]]* | *-sony-news[[34]]* ) opsys=bsd4-3 ;;
1630 *-sony-news* ) opsys=newsos5 ;;
1631
1632 dnl Stride
1633 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1634 1368
1635 dnl Suns 1369 dnl Suns
1636 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* ) 1370 *-*-solaris* | *-sun-mach* | *-sun-bsd* )
1637 dnl Hardware type 1371 dnl Hardware type
1638 case "$ac_cv_build" in 1372 case "$ac_cv_build" in
1639 m68*-sunos1* ) machine=sun1 ;;
1640 m68*-sunos2* ) machine=sun2 ;;
1641 m68* ) machine=sun3 ;;
1642 i*86*-sun-sunos[[34]]* ) machine=sun386 ;;
1643 i*86-*-* ) machine=intel386 ;; 1373 i*86-*-* ) machine=intel386 ;;
1644 rs6000* ) machine=rs6000 ;;
1645 esac 1374 esac
1646 1375
1647 dnl Make $canonical even more so. 1376 dnl Make $canonical even more so.
1648 case "$ac_cv_build" in *-sunos5*) 1377 case "$ac_cv_build" in *-sunos5*)
1649 ac_cv_build=`echo $ac_cv_build | sed -e s/sunos5/solaris2/`;; 1378 ac_cv_build=`echo $ac_cv_build | sed -e s/sunos5/solaris2/`;;
1650 esac 1379 esac
1651 1380
1652 dnl On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
1653 dnl On SunOS 5, use cc -E, need dynodump, RANLIB not needed
1654 dnl But, SunOS 5.6 no longer needs dynodump because it has a similar
1655 dnl function integrated.
1656 case "$ac_cv_build" in 1381 case "$ac_cv_build" in
1657 *-sunos4* )
1658 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1659 : ;;
1660 *-solaris2* ) 1382 *-solaris2* )
1661 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp 1383 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1662 RANLIB=':' ;; 1384 RANLIB=':' ;;
1663 esac 1385 esac
1664 1386
1671 os_release_minor="0${os_release_minor}";; 1393 os_release_minor="0${os_release_minor}";;
1672 esac 1394 esac
1673 os_release="${os_release_major}${os_release_minor}" 1395 os_release="${os_release_major}${os_release_minor}"
1674 AC_DEFINE_UNQUOTED(OS_RELEASE, $os_release) ;; 1396 AC_DEFINE_UNQUOTED(OS_RELEASE, $os_release) ;;
1675 1397
1676 dnl The last Sun386 ran 4.0.
1677 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1678 *-sunos4.0* ) opsys=sunos4-0 ;;
1679 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1680 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1681 *-sunos4.1.[[4-9]]* ) opsys=sunos4-1-4 ;;
1682 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1683 *-mach* ) opsys=mach-bsd4-3 ;; 1398 *-mach* ) opsys=mach-bsd4-3 ;;
1684 * ) opsys=bsd4-2 ;; 1399 * ) opsys=bsd4-3 ;;
1685 esac 1400 esac
1686
1687 case "$ac_cv_build" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1688 1401
1689 dnl Watch out for a compiler guaranteed not to work. 1402 dnl Watch out for a compiler guaranteed not to work.
1690 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC="" 1403 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1691 ;; 1404 ;;
1692
1693 dnl Tadpole 68k
1694 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1695
1696 dnl Tahoe machines
1697 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1698 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1699
1700 dnl Tandem Integrity S2
1701 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1702
1703 dnl Tektronix XD88
1704 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1705
1706 dnl Tektronix 16000 box (6130?)
1707 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1708 dnl Tektronix 4300
1709 dnl src/m/tek4300.h hints that this is a m68k machine.
1710 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1711
1712 dnl Titan P2 or P3
1713 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1714
1715 dnl Ustation E30 (SS5E)
1716 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1717
1718 dnl Vaxen.
1719 vax-dec-* )
1720 case "$ac_cv_build" in
1721 *-sysv[[01]]* | *-sysvr[[01]]* ) opsys=usg5-0 ;;
1722 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1723 *-mach* ) opsys=mach-bsd4-3 ;;
1724 esac
1725 ;;
1726
1727 dnl Whitechapel MG1
1728 ns16k-whitechapel-* ) machine=mg1 ;;
1729
1730 dnl Wicat
1731 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1732 1405
1733 dnl Intel 386 machines where we do not care about the manufacturer 1406 dnl Intel 386 machines where we do not care about the manufacturer
1734 i[[3-9]]86-*-* ) 1407 i[[3-9]]86-*-* )
1735 machine=intel386 1408 machine=intel386
1736 case "$ac_cv_build" in 1409 case "$ac_cv_build" in
1737 *-isc1.* | *-isc2.[[01]]* ) opsys=386-ix ;;
1738 *-isc2.2* ) opsys=isc2-2 ;;
1739 *-isc4.0* ) opsys=isc4-0 ;;
1740 *-isc4.* ) opsys=isc4-1
1741 GCC_TEST_OPTIONS=-posix
1742 NON_GCC_TEST_OPTIONS=-Xp
1743 ;;
1744 *-isc* ) opsys=isc3-0 ;;
1745 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1746 *-esix* ) opsys=esix ;;
1747 *-mach* ) opsys=mach-bsd4-3 ;; 1410 *-mach* ) opsys=mach-bsd4-3 ;;
1748 *-xenix* ) opsys=xenix ;;
1749 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1750 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1751 *-bsdi4* ) opsys=bsdos4 ;;
1752 *-bsdi3* ) opsys=bsdos3 ;;
1753 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1754 *-bsdi2* ) opsys=bsdos2 ;;
1755 *-sco3.2v5* ) opsys=sco5 ;;
1756 *-sysv5* ) opsys=sco7 ;; 1411 *-sysv5* ) opsys=sco7 ;;
1757 *-386bsd* ) opsys=386bsd ;;
1758 *-freebsd* ) opsys=freebsd ;; 1412 *-freebsd* ) opsys=freebsd ;;
1759 *-nextstep* ) opsys=nextstep ;;
1760 *-pc-cygwin* ) opsys=cygwin32 ;; 1413 *-pc-cygwin* ) opsys=cygwin32 ;;
1761 *-pc-mingw* ) opsys=mingw32 ; 1414 *-pc-mingw* ) opsys=mingw32 ;
1762 test -z "$with_tty" && with_tty="no";; 1415 test -z "$with_tty" && with_tty="no";;
1763 dnl Otherwise, we fall through to the generic opsys code at the bottom. 1416 dnl Otherwise, we fall through to the generic opsys code at the bottom.
1764 esac 1417 esac
1765 ;; 1418 ;;
1766
1767 dnl Linux/68k
1768 m68k-*-linux* ) machine=m68k opsys=linux ;;
1769 1419
1770 esac 1420 esac
1771 1421
1772 dnl Initialize machine from $canonical if not in our database above. 1422 dnl Initialize machine from $canonical if not in our database above.
1773 test -z "$machine" && machine=`echo $ac_cv_build | sed 's/-.*$//'` 1423 test -z "$machine" && machine=`echo $ac_cv_build | sed 's/-.*$//'`
1830 fi 1480 fi
1831 fi 1481 fi
1832 1482
1833 if test -z "$with_dynamic"; then 1483 if test -z "$with_dynamic"; then
1834 case "$opsys" in 1484 case "$opsys" in
1835 hpux* | sunos4* ) with_dynamic=no ;; 1485 hpux* ) with_dynamic=no ;;
1836 *) with_dynamic=yes ;; 1486 *) with_dynamic=yes ;;
1837 esac 1487 esac
1838 fi 1488 fi
1839 if test "$with_dynamic" = "yes"; then 1489 if test "$with_dynamic" = "yes"; then
1840 case "$opsys" in 1490 case "$opsys" in
1841 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; 1491 hpux* ) opsys="${opsys}-shr" ;;
1842 decosf* ) ld_call_shared="-call_shared" ;;
1843 darwin ) AC_DEFINE(DLSYM_NEEDS_UNDERSCORE) ;; 1492 darwin ) AC_DEFINE(DLSYM_NEEDS_UNDERSCORE) ;;
1844 esac 1493 esac
1845 else dnl "$with_dynamic" = "no" 1494 else dnl "$with_dynamic" = "no"
1846 case "$opsys" in 1495 case "$opsys" in
1847 sol2 ) 1496 sol2 )
1848 echo "Static linking is not supported on Solaris 2." 1497 echo "Static linking is not supported on Solaris 2."
1849 echo "Rerun configure without specifying --without-dynamic." 1498 echo "Rerun configure without specifying --without-dynamic."
1850 exit 1 ;; 1499 exit 1 ;;
1851 linux ) ld_call_shared="-Bstatic" ;; 1500 linux ) ld_call_shared="-Bstatic" ;;
1852 decosf* ) ld_call_shared="-non_shared" ;;
1853 esac 1501 esac
1854 fi 1502 fi
1855 1503
1856 dnl Tools configuration 1504 dnl Tools configuration
1857 case "$opsys" in 1505 case "$opsys" in
2102 configure___ ordinary_ld=ORDINARY_LD 1750 configure___ ordinary_ld=ORDINARY_LD
2103 1751
2104 #ifdef ORDINARY_LINK 1752 #ifdef ORDINARY_LINK
2105 #define LD ORDINARY_LD 1753 #define LD ORDINARY_LD
2106 #else /* no ORDINARY LINK */ 1754 #else /* no ORDINARY LINK */
2107 #ifdef COFF_ENCAPSULATE
2108 #define LD "\$(CC) -nostdlib"
2109 #else /* not COFF_ENCAPSULATE */
2110 #ifdef LINKER 1755 #ifdef LINKER
2111 #define LD LINKER 1756 #define LD LINKER
2112 #else /* ! defined (LINKER) */ 1757 #else /* ! defined (LINKER) */
2113 #define LD "ld" 1758 #define LD "ld"
2114 #endif /* ! defined (LINKER) */ 1759 #endif /* ! defined (LINKER) */
2115 #endif /* ! defined (COFF_ENCAPSULATE) */
2116 #endif /* not ORDINARY_LINK */ 1760 #endif /* not ORDINARY_LINK */
2117 configure___ ld=LD 1761 configure___ ld=LD
2118 1762
2119 CPP_to_sh(LIB_GCC, lib_gcc) 1763 CPP_to_sh(LIB_GCC, lib_gcc)
2120 CPP_to_sh(LD_TEXT_START_ADDR, ld_text_start_addr) 1764 CPP_to_sh(LD_TEXT_START_ADDR, ld_text_start_addr)
2121 1765
2122 #if ! defined (ORDINARY_LINK) && !defined (START_FILES) 1766 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2123 #ifdef NO_REMAP 1767 #ifdef NO_REMAP
2124 #ifdef COFF_ENCAPSULATE
2125 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2126 #else /* ! defined (COFF_ENCAPSULATE) */
2127 #define START_FILES "pre-crt0.o /lib/crt0.o" 1768 #define START_FILES "pre-crt0.o /lib/crt0.o"
2128 #endif /* ! defined (COFF_ENCAPSULATE) */
2129 #else /* ! defined (NO_REMAP) */ 1769 #else /* ! defined (NO_REMAP) */
2130 #define START_FILES "ecrt0.o" 1770 #define START_FILES "ecrt0.o"
2131 #endif /* ! defined (NO_REMAP) */ 1771 #endif /* ! defined (NO_REMAP) */
2132 #endif /* no ORDINARY_LINK */ 1772 #endif /* no ORDINARY_LINK */
2133 #ifndef START_FILES 1773 #ifndef START_FILES
2285 else 1925 else
2286 with_optimization=no 1926 with_optimization=no
2287 fi 1927 fi
2288 fi 1928 fi
2289 1929
2290
2291 dnl #### We should be checking C_OPTIMIZE_SWITCH in m/*, s/*.
2292
2293 AC_MSG_CHECKING([for preferred optimization flags]) 1930 AC_MSG_CHECKING([for preferred optimization flags])
2294 if test "$with_optimization" = "yes" ; then 1931 if test "$with_optimization" = "yes" ; then
2295 if test "$cflags_optimization_specified" = "no"; then 1932 if test "$cflags_optimization_specified" = "no"; then
2296 dnl Following values of cflags_optimization are known to work well. 1933 dnl Following values of cflags_optimization are known to work well.
2297 dnl Should we take debugging options into consideration? 1934 dnl Should we take debugging options into consideration?
2298 if test "$GCC" = "yes"; then 1935 if test "$GCC" = "yes"; then
2299 with_cflags_optimization="-O3" 1936 with_cflags_optimization="-O3"
2300 elif test "$__SUNPRO_C" = "yes"; then 1937 elif test "$__SUNPRO_C" = "yes"; then
2301 case "$opsys" in 1938 case "$opsys" in
2302 sol2 ) with_cflags_optimization="-xO4" ;; 1939 sol2 ) with_cflags_optimization="-xO4" ;;
2303 sunos4* ) with_cflags_optimization="-xO2" ;;
2304 esac 1940 esac
2305 elif test "$__DECC" = "yes"; then 1941 elif test "$__DECC" = "yes"; then
2306 with_cflags_optimization="-O3" 1942 with_cflags_optimization="-O3"
2307 elif test "$CC" = "xlc"; then 1943 elif test "$CC" = "xlc"; then
2308 dnl see http://www.nersc.gov/vendor_docs/ibm/vac/sc094959.pdf 1944 dnl see http://www.nersc.gov/vendor_docs/ibm/vac/sc094959.pdf
2317 else 1953 else
2318 with_cflags_optimization= 1954 with_cflags_optimization=
2319 fi 1955 fi
2320 1956
2321 AC_MSG_RESULT([${with_cflags_optimization}]) 1957 AC_MSG_RESULT([${with_cflags_optimization}])
2322
2323 dnl #### We should be checking C_DEBUG_SWITCH in m/*, s/*.
2324 1958
2325 AC_MSG_CHECKING([for preferred debugging flags]) 1959 AC_MSG_CHECKING([for preferred debugging flags])
2326 if test "$cflags_debugging_specified" = "no"; then 1960 if test "$cflags_debugging_specified" = "no"; then
2327 dnl ### Add optimal debugging support for other compilers HERE! 1961 dnl ### Add optimal debugging support for other compilers HERE!
2328 with_cflags_debugging="-g" 1962 with_cflags_debugging="-g"
2520 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) 2154 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine)
2521 test -n "$objects_system" && XE_ADD_OBJS($objects_system) 2155 test -n "$objects_system" && XE_ADD_OBJS($objects_system)
2522 test -n "$unexec" && test ! "$enable_pdump" = "yes" && XE_ADD_OBJS($unexec) 2156 test -n "$unexec" && test ! "$enable_pdump" = "yes" && XE_ADD_OBJS($unexec)
2523 test "$enable_pdump" = "yes" && XE_ADD_OBJS(dumper.o) 2157 test "$enable_pdump" = "yes" && XE_ADD_OBJS(dumper.o)
2524 2158
2525 dnl Dynodump (Solaris 2.x, x<6)
2526 AC_MSG_CHECKING(for dynodump)
2527 if test "$unexec" != "unexsol2.o"; then
2528 AC_MSG_RESULT(no)
2529 else
2530 AC_MSG_RESULT(yes)
2531 AC_DEFINE(DYNODUMP)
2532 XE_APPEND(dynodump, MAKE_SUBDIR)
2533 XE_APPEND(dynodump, SRC_SUBDIR_DEPS)
2534 case "$machine" in
2535 sparc ) dynodump_arch=sparc ;;
2536 *86* ) dynodump_arch=i386 ;;
2537 powerpc ) dynodump_arch=ppc ;;
2538 esac
2539 fi
2540
2541 dnl Feed s&m crud to src/Makefile 2159 dnl Feed s&m crud to src/Makefile
2542 2160
2543 dnl Linux/powerpc needs the following magic for some reason 2161 dnl Linux/powerpc needs the following magic for some reason
2544 dnl [Not needed with YellowDog 2.3 and causes link problems with YellowDog 3.0, 2162 dnl [Not needed with YellowDog 2.3 and causes link problems with YellowDog 3.0,
2545 dnl the two most popular PowerPC distributions.] 2163 dnl the two most popular PowerPC distributions.]
2790 2408
2791 if test -n "$add_runtime_path"; then :; 2409 if test -n "$add_runtime_path"; then :;
2792 elif test "$with_dynamic" = "no"; then add_runtime_path=no 2410 elif test "$with_dynamic" = "no"; then add_runtime_path=no
2793 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes 2411 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2794 else case "$opsys" in 2412 else case "$opsys" in
2795 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; 2413 sol2 | irix* | *bsd* ) add_runtime_path=yes ;;
2796 * ) add_runtime_path=no ;; 2414 * ) add_runtime_path=no ;;
2797 esac 2415 esac
2798 fi 2416 fi
2799 2417
2800 if test "$add_runtime_path" = "yes"; then 2418 if test "$add_runtime_path" = "yes"; then
2801 dnl Try to autodetect runtime library flag (usually -R), 2419 dnl Try to autodetect runtime library flag (usually -R),
2802 dnl and whether it works (or at least does no harm) 2420 dnl and whether it works (or at least does no harm)
2803 AC_MSG_CHECKING([for runtime libraries flag]) 2421 AC_MSG_CHECKING([for runtime libraries flag])
2804 case "$opsys" in 2422 case "$opsys" in
2805 sol2 ) dash_r="-R" ;; 2423 sol2 ) dash_r="-R" ;;
2806 decosf* | linux* | irix*) dash_r="-rpath " ;; 2424 linux* | irix*) dash_r="-rpath " ;;
2807 *) 2425 *)
2808 dash_r="" 2426 dash_r=""
2809 for try_dash_r in "-R" "-R " "-rpath "; do 2427 for try_dash_r in "-R" "-R " "-rpath "; do
2810 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2428 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2811 XE_PROTECT_LINKER_FLAGS(xe_check_libs) 2429 XE_PROTECT_LINKER_FLAGS(xe_check_libs)
3095 test "$with_mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ 2713 test "$with_mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
3096 XE_DIE("flock mail locking requested but not available.") 2714 XE_DIE("flock mail locking requested but not available.")
3097 test "$with_mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \ 2715 test "$with_mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
3098 XE_DIE("locking mail locking requested but not available.") 2716 XE_DIE("locking mail locking requested but not available.")
3099 2717
3100 case "$opsys" in decosf*)
3101 AC_CHECK_LIB(pthreads, cma_open)
3102 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
3103 c_switch_site="$c_switch_site -threads" ;;
3104 esac
3105
3106 dnl ---------------------------------------------------------------- 2718 dnl ----------------------------------------------------------------
3107 dnl Miscellaneous flags 2719 dnl Miscellaneous flags
3108 dnl ---------------------------------------------------------------- 2720 dnl ----------------------------------------------------------------
3109 2721
3110 AC_MSG_CHECKING(whether the -xildoff compiler flag is required) 2722 AC_MSG_CHECKING(whether the -xildoff compiler flag is required)
3355 XE_APPEND(-I${inc_dir}, X_CFLAGS) 2967 XE_APPEND(-I${inc_dir}, X_CFLAGS)
3356 esac 2968 esac
3357 break; dnl Only need ONE X11 implementation ! 2969 break; dnl Only need ONE X11 implementation !
3358 fi 2970 fi
3359 done 2971 done
3360
3361 dnl Avoid version mismatch for shared library libXm.so on osf4
3362 case "$opsys" in
3363 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then XE_APPEND(-L/usr/shlib, X_LIBS); fi ;;
3364 esac
3365 2972
3366 ld_switch_x_site="$X_LIBS" 2973 ld_switch_x_site="$X_LIBS"
3367 2974
3368 XE_COMPUTE_RUNPATH() 2975 XE_COMPUTE_RUNPATH()
3369 2976
3679 HAVE_X_WINDOWS=no 3286 HAVE_X_WINDOWS=no
3680 test "$with_gnome" = "yes" && echo " Using GNOME." 3287 test "$with_gnome" = "yes" && echo " Using GNOME."
3681 test "$with_gnome" = "no" && echo " Using GTK." 3288 test "$with_gnome" = "no" && echo " Using GTK."
3682 ;; 3289 ;;
3683 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; 3290 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
3684 esac
3685
3686 case "$x_libraries" in *X11R4* )
3687 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
3688 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
3689 esac 3291 esac
3690 3292
3691 dnl Enable or disable proper handling of WM_COMMAND 3293 dnl Enable or disable proper handling of WM_COMMAND
3692 AC_MSG_CHECKING([for WM_COMMAND option]) 3294 AC_MSG_CHECKING([for WM_COMMAND option])
3693 dnl if test "$with_wmcommand" = "yes"; then 3295 dnl if test "$with_wmcommand" = "yes"; then
5044 AC_FUNC_GETPGRP 4646 AC_FUNC_GETPGRP
5045 4647
5046 dnl We used to call AC_FUNC_MMAP here 4648 dnl We used to call AC_FUNC_MMAP here
5047 dnl Instead we now use following, suggested by Neal Becker 4649 dnl Instead we now use following, suggested by Neal Becker
5048 AC_MSG_CHECKING(for working mmap) 4650 AC_MSG_CHECKING(for working mmap)
5049 case "$opsys" in ultrix* ) have_mmap=no ;; *)
5050 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h> 4651 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
5051 #include <unistd.h> 4652 #include <unistd.h>
5052 #include <fcntl.h> 4653 #include <fcntl.h>
5053 #include <sys/mman.h> 4654 #include <sys/mman.h>
5054 4655
5074 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS, 4675 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
5075 fd, 0) != (void *) MAP_FAILED) 4676 fd, 0) != (void *) MAP_FAILED)
5076 return 0; 4677 return 0;
5077 perror ("conftest: mmap failed"); 4678 perror ("conftest: mmap failed");
5078 return 1; 4679 return 1;
5079 }])], have_mmap=yes, have_mmap=no) ;; 4680 }])], have_mmap=yes, have_mmap=no)
5080 esac
5081 AC_MSG_RESULT($have_mmap) 4681 AC_MSG_RESULT($have_mmap)
5082 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) 4682 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP)
5083 4683
5084 dnl By default we switch off rel-alloc on cygwin as it generally causes us grief 4684 dnl By default we switch off rel-alloc on cygwin as it generally causes us grief
5085 case "$opsys" in cygwin*) 4685 case "$opsys" in cygwin*)
5877 AC_SUBST(RECURSIVE_MAKE_ARGS) 5477 AC_SUBST(RECURSIVE_MAKE_ARGS)
5878 5478
5879 AC_SUBST(native_sound_lib,$with_native_sound_lib) 5479 AC_SUBST(native_sound_lib,$with_native_sound_lib)
5880 AC_SUBST(sound_cflags) 5480 AC_SUBST(sound_cflags)
5881 AC_SUBST(RANLIB) 5481 AC_SUBST(RANLIB)
5882 AC_SUBST(dynodump_arch)
5883 5482
5884 AC_SUBST(XEMACS_CC) 5483 AC_SUBST(XEMACS_CC)
5885 AC_SUBST(XE_CFLAGS) 5484 AC_SUBST(XE_CFLAGS)
5886 5485
5887 dnl The default is yes 5486 dnl The default is yes