1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546
|
#!/bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf.
# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
progname="`echo $0 | sed 's:^\./\./:\./:'`"
print_error() {
echo "*# $*" 2>&1 ;
}
print_usage() {
cat <<.
Usage: ${progname} -arch=ARCH_TYPE [-prefix=INSTALL_DIR]
[-cc=C_COMPILER] [-fc=FORTRAN_COMPILER]
[-clinker=C_LINKER] [-flinker=FORTRAN_LINKER]
[-nof77] [-opt=OPTFLAGS]
[-make=MAKEPGM]
[-cflags=CFLAGS] [-fflags=FFLAGS]
[-optcc=C_OPTFLAGS] [-optf77=F77_OPTFLAGS]
[-no_mpegraphics]
[-x11_lib=X11LIB] [-x11_inc=X11INC]
[-cross]
[-fortnames=FORTRANNAMES]
[-ar_nolocal]
[-noranlib]
where
ARCH_TYPE = the type of machine that MPI is to be configured for
INSTALL_DIR = directory where MPE will be installed (optional)
OPTFLAGS = optimization flags to give the compilers (e.g. -g)
CFLAGS = flags to give C compiler
FFLAGS = flags to give Fortran compiler
MAKEPGM = version of make to use
FORTRANNAMES = Form of the Fortran names. See below.
X11LIB = Full path name for libX11.a
X11INC = Full path name for X11.h
One and only one 'arch', and 'prefix' argument should be provided.
You can select a different C and Fortran compiler by using the '-cc' and 'fc'
switches. The environment variables 'CC' and 'FC' can also provide values for
these but their settings may be overridden by the configure script. Using
'-cc=\$CC -fc=\$FC' will force configure to use those compilers.
These should be the compilers that you use for MPI programs.
If '-cross' is given, configure assumes that you are cross-compiling. If it
is not given, configure expects to be able to run programs. Even if '-cross'
is not selected, configure will try to determine if you are cross-compiling;
this switch is needed only on systems where attempting to run a cross-compiled
program causes the configure script to hang.
If '-no_mpegraphics' is used, then the MPE routines that make use of
X11 graphics will NOT be built; this is appropriate for systems that either do
not have the X11 include files or that do not support X11 graphics (some
message-passing systems cannot interoperate with X11). The options -x11_inc
and -x11_lib may be used to specify the locations of the X11 include files and
libraries in the event that configure cannot find them (they should both be
specified in that case).
The option '-nof77' prevents the compilation of routines that require a
Fortran compiler. If this option is selected, you may not use the Fortran
interface to MPE.
The option '-opt' allows you to specify options for the compilers (both C and
Fortran). For example, '-opt=-O' chooses optimized code generation on many
systems. '-optcc' and '-optf77' allow you to specify options for just the C
or Fortran compilers
The option '-make' may be used to select an alternate make program. For
example, on FreeBSD systems, -make=gnumake may be required because of bugs in
the system make.
The option '-fortnames=FORTRANNAMES' allows you to specify the form of the
Fortran names. This is used primarily to generate names with and without
trailing underscores for those systems that support both. Possible values are
FORTRANNAMES value if Fortran MPI_SEND looks like
DOUBLEUNDERSCORE mpi_send__
UNDERSCORE mpi_send_
CAPS MPI_SEND
NOUNDERSCORE mpi_send
This option should normally NOT be used; configure determines what the Fortran
compiler generates. This can be used to override that choice.
The option '-ar_nolocal' prevents the library archive command from attempting
to use the local directory for temporary space. This option should be used
when (a) there isn't much space (less than 5 MB) available in the partition
where MPE resides and (b) there is enough space in /tmp (or wherever ar
places temporary files by default).
The option '-noranlib' causes the 'ranlib' step (needed on some systems to
build an object library) to be skipped. This is particularly useful on
systems where 'ranlib' is optional (allowed but not needed; because it is
allowed, configure chooses to use it just in case) but can fail (some
'ranlib's are implemented as scripts using 'ar'; if they don't use the local
directory, they can fail (destroying the library in the process) if the
temporary directory (usually '/tmp') does not have enough space. This has
occured on some OSF systems.
Sample Configure Usage:
To make for an MPI with the MPICH compile commands in your path:
./configure -cc=mpicc -fc=mpif77
make
.
}
#
ARCH=""
LIB_PATH=""
FLIB_PATH=""
OPTFLAGS=""
OPTFLAGSF=""
NOF77=0
AR_LOCAL=l
HAS_FORTRAN=1
CFLAGS=""
#
# By not setting FFLAGS, we get the values from the environment
MPE_GRAPHICS="-DMPE_GRAPHICS"
MAKE=make
PREFIX=""
DEVCFLAGS=""
CONFIGURE_ARGS="$*"
DEVICE_KIND=MPP
cross_compiling=0
#
# This next variable is a version without quotes.
# We could also consider `echo $a | sed -e 's/"/\\"/g'`
CONFIGURE_ARGS_CLEAN=`echo $* | tr '"' ' '`
if test -n "$CONFIGURE_ARGS" ; then
echo "Configuring with args $CONFIGURE_ARGS"
fi
#
for arg
do
# Handle --exec-prefix with a space before the argument.
if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
# Handle --host with a space before the argument.
elif test x$next_host = xyes; then next_host=
# Handle --prefix with a space before the argument.
elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
# Handle --srcdir with a space before the argument.
elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
else
case $arg in
# For backward compatibility, also recognize exact --exec_prefix.
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
next_exec_prefix=yes ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
PREFIX=`echo $arg | sed 's/[-a-z_]*=//'` ;;
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
next_prefix=yes ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
next_srcdir=yes ;;
-arch=* | --arch=*)
package=`echo $arg|sed 's/-*arch=//'`
# Delete all the valid chars; see if any are left.
if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
print_error "configure: $package: invalid architecture name"; exit 1
fi
ARCH=`echo $package|sed s/-/_/g`
eval "arch_`echo $package|sed s/-/_/g`=1"
;;
-comm=* | --comm=*)
package=`echo $arg|sed 's/-*comm=//'`
# Delete all the valid chars; see if any are left.
if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
print_error "configure: $package: invalid communications layer name";
exit 1
fi
COMM=`echo $package|sed s/-/_/g`
eval "comm_`echo $package|sed s/-/_/g`=1"
# Handle possible synonyms
if test -n "$comm_ch_eui" ; then
comm_ch_mpl=1
COMM=ch_mpl
fi
;;
-device=* | --device=*)
package=`echo $arg|sed 's/-*device=//'`
# Delete all the valid chars; see if any are left.
if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
print_error "configure: $package: invalid device name" ; exit 1
fi
DEVICE=$package #|sed s/-/_/g`
# Can't have - in variable names
package=`echo $package | sed s/-/_/g`
eval "device_$package=1"
# Handle possible synonyms
if test -n "$device_ch_eui"; then
device_ch_mpl=1
DEVICE=ch_mpl
fi
;;
-ar_nolocal | --ar_nolocal)
AR_LOCAL=''
;;
-noranlib | -no_ranlib)
RANLIB=':'
;;
-cross)
cross_compiling=1
;;
-f77idx)
# Force POINTER_64_BITS definition
F77IDX=1
;;
-cc=* | --cc=*)
MPICC=`echo $arg|sed 's/-*cc=//'`
CC="$MPICC"
USERCC=1
;;
-fc=* | --fc=*)
MPIF77=`echo $arg|sed 's/-*fc=//'`
FC=$MPIF77
USERF77=1
;;
-fortnames=*)
# Valid values are
# FORTRANDOUBLEUNDERSCORE
# FORTRANUNDERSCORE
# FORTRANCAPS
# FORTRANNOUNDERSCORE
FORTRANNAMES="FORTRAN`echo $arg|sed 's/-*fortnames=//'`"
;;
-clinker=* | --clinker=*)
CLINKER=`echo $arg|sed 's/-*clinker=//'`
USERCLINKER=1
;;
-flinker=* | --flinker=*)
FLINKER=`echo $arg|sed 's/-*flinker=//'`
USERFLINKER=1
;;
-opt=* | --opt=*)
package="`echo $arg|sed 's/-*opt=//'`"
OPTFLAGS="$package" ;;
-optcc=* | --optcc=*)
package="`echo $arg|sed 's/-*optcc=//'`"
OPTFLAGSC="$package" ;;
-optf77=* | --optf77=*)
package="`echo $arg|sed 's/-*optf77=//'`"
OPTFLAGSF="$package" ;;
-cflags=* | --cflags=*)
package="`echo $arg|sed 's/-*cflags=//'`"
#USER_CFLAGS="$package"
CFLAGS="$CFLAGS $package" ;;
-fflags=* | --fflags=*)
package="`echo $arg|sed 's/-*fflags=//'`"
FFLAGS="$package" ;;
-no_mpegraphics | --no_mpegraphics)
MPE_GRAPHICS=""
echo "Make will not build MPE graphics routines" ;;
-x11_lib=* | --x11_lib=* )
USERXLIB=1
X11LIB="`echo $arg|sed 's/-*x11_lib=//'`"
;;
-x11_inc=* | --x11_inc=* )
USERXLIB=1
X11INC="`echo $arg|sed 's/-*x11_inc=//'`"
;;
-make=* | --make=*)
package=`echo $arg|sed 's/-*make=//'`
MAKE="$package"
;;
-nof77 | --nof77)
echo "Don't build the Fortran interfaces"
NOF77=1
HAS_FORTRAN=0
FC=true
CFLAGS="-DMPID_NO_FORTRAN $CFLAGS"
;;
-nobanner)
nobanner=1
;;
-echo )
set -x
configure_echo=1
;;
-u | -usage | --usage | --usag | --usa | --us | --u | -help | --help )
print_usage >& 2
exit 1 ;;
-v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
verbose=yes ;;
*)
print_error "Unrecognized configure option $arg"
;;
esac
fi
done
trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
trap 'rm -f confdefs*' 0
# NLS nuisances.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi
rm -f conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
unique_file=
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
srcdirdefaulted=yes
# Try the directory containing this script, then `..'.
prog=$0
confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
test "X$confdir" = "X$prog" && confdir=.
srcdir=$confdir
if test ! -r $srcdir/$unique_file; then
srcdir=..
fi
fi
if test ! -r $srcdir/$unique_file; then
if test x$srcdirdefaulted = xyes; then
echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
else
echo "configure: Can not find sources in \`${srcdir}'." 1>&2
fi
exit 1
fi
# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
# But we can't avoid them for `..', to make subdirectories work.
case $srcdir in
.|/*|~*) ;;
*) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
esac
# Save the original args to write them into config.status later.
configure_args="$*"
#
#
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for current directory name""... $ac_c"
else
echo $ac_n "checking for current directory name""... $ac_c" 1>&1
fi
MPIR_TRIAL=$PWD
if test "${MPIR_TRIAL}" != "" -a -d "${MPIR_TRIAL}" ; then
if test -r ${MPIR_TRIAL}/.foo$$ ; then
/bin/rm -f ${MPIR_TRIAL}/.foo$$
/bin/rm -f .foo$$
fi
if test -r ${MPIR_TRIAL}/.foo$$ -o -r .foo$$ ; then
MPIR_TRIAL=
else
echo "test" > ${MPIR_TRIAL}/.foo$$
if test ! -r .foo$$ ; then
/bin/rm -f ${MPIR_TRIAL}/.foo$$
MPIR_TRIAL=
else
/bin/rm -f ${MPIR_TRIAL}/.foo$$
fi
fi
fi
if test "${MPIR_TRIAL}" = "" ; then
MPIR_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'`
fi
if test ! -r ${MPIR_TRIAL}/Makefile.in ; then
MPIR_TRIAL=`pwd`
if test ! -r ${MPIR_TRIAL}/Makefile.in ; then
print_error "Cannot determine the root directory!"
exit 1
fi
MPIR_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'`
if test ! -d ${MPIR_TRIAL} ; then
print_error "Warning: your default path uses the automounter; this may"
print_error "cause some problems if you use other NFS-connected systems."
MPIR_TRIAL=`pwd`
fi
fi
if test -z "${MPIR_TRIAL}" ; then
MPIR_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'`
if test ! -d ${MPIR_TRIAL} ; then
print_error "Warning: your default path uses the automounter; this may"
print_error "cause some problems if you use other NFS-connected systems."
MPIR_TRIAL=`pwd`
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""${MPIR_TRIAL}"
else
echo "$ac_t""${MPIR_TRIAL}" 1>&1
fi
MPIR_HOME=$MPIR_TRIAL
#
F77="$FC"
MPEGRAPHICS_SOURCE=""
MPEGRAPHICS_OBJS=""
MPEGRAPHICS_FSOURCE=""
MPEGRAPHICS_FOBJS=""
X_INC=""
X_LIB=""
MPE_DIR="."
#
#
# Check that an ARCH was set
# If it wasn't set, try to guess using "util/tarch"
#
if test -z "$ARCH" -a -x tarch ; then
echo "Trying to guess architecture ..."
ARCH=`./tarch | sed s/-/_/g`
if test -z "$ARCH" ; then
print_error "Error: Couldn't guess target architecture."
else
eval "arch_$ARCH=1"
echo " configuring for \"$ARCH\" target architecture"
fi
fi
if test -n "$arch_sgi" ; then
arch_IRIX=1
ARCH=IRIX
fi
if test -n "$arch_IRIX64" ; then
arch_IRIX=1
fi
if test -n "$arch_IRIX32" ; then
arch_IRIX=1
fi
if test -n "$arch_IRIXN32" ; then
arch_IRIX=1
fi
# Handle solaris on Intel platforms, needed to get heterogeneity right in p4
if test -n "$arch_solaris86" ; then
arch_solaris=1
ARCH=solaris86
fi
if test -n "$arch_sgi5" ; then
arch_IRIX5=1
ARCH=IRIX
fi
if test -n "$arch_cray" ; then
arch_CRAY=1
ARCH=CRAY
fi
# End of arch setup
#
# Should eventually use a file like $file.run to see if the program should
# be run or just compiled. And eventually, this should be run EARLY,
# before checking for things like functions and include files.
#
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking whether cross-compiling""... $ac_c"
else
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&1
fi
# If we cannot run a trivial program, we must be cross compiling.
cat > conftest.c <<EOF
#include "confdefs.h"
main(){exit(0);}
EOF
eval $compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
pac_ok=1
else
pac_ok=0
fi
rm -fr conftest*
if test $pac_ok = 1 ; then
cat > conftest.c <<EOF
#include "confdefs.h"
main(){exit(1);}
EOF
eval $compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
pac_ok=0
fi
rm -fr conftest*
if test $pac_ok = 1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
else
cross_compiling=1
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
fi
else
cross_compiling=1
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
fi
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking that the compiler $CC runs""... $ac_c"
else
echo $ac_n "checking that the compiler $CC runs""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
int main() { exit(0); }
int t() { return 0; }
EOF
if eval $compile; then
rm -rf conftest*
eval "ac_cv_ccworks=yes"
else
rm -rf conftest*
eval "ac_cv_ccworks=no"
fi
rm -f conftest*
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$ac_cv_ccworks"
else
echo "$ac_t""$ac_cv_ccworks" 1>&1
fi
if test $ac_cv_ccworks = "yes" ; then
cc_works=1
else
# Generate output from failed test. See COMPILE_CHECK code
# It really would be better if the compile tests put the output into
# a file for later analysis, like conftest.out
#
cat > conftest.c <<EOF
#include "confdefs.h"
int main() { exit(0); }
int t() { return 0; }
EOF
$CC $CFLAGS conftest.c -o conftest $LIBS
rm -f conftest*
#
# End of output
cc_works=0
fi
if test $cc_works = 0 ; then
print_error "Could not compile a simple file with $CC!"
print_error "Check for license and path restrictions on $CC."
exit 1
fi
if test $NOF77 = 0 ; then
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking that the compiler $F77 runs""... $ac_c"
else
echo $ac_n "checking that the compiler $F77 runs""... $ac_c" 1>&1
fi
cat >conftest.f <<EOF
program main
end
EOF
/bin/rm -f conftest.out
$F77 $FFLAGS -c conftest.f > conftest.out 2>&1
if test $? != 0 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
echo "Fortran compiler returned non-zero return code"
if test -s conftest.out ; then
echo "Output from test was"
cat conftest.out
fi
NOF77=1;HAS_FORTRAN=0;HAS_F77=0;
CFLAGS="-DMPID_NO_FORTRAN $CFLAGS"
F77="echo no Fortran compiler"
FLINKER="$F77"
elif test ! -s conftest.o ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
echo "Fortran compiler did not produce object file"
if test -s conftest.out ; then
echo "Output from test was"
cat conftest.out
fi
NOF77=1;HAS_FORTRAN=0;HAS_F77=0;
CFLAGS="-DMPID_NO_FORTRAN $CFLAGS"
F77="echo no Fortran compiler"
FLINKER="$F77"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
:
fi
rm -f conftest*
fi
if test -z "$CLINKER" ; then
CLINKER="$CC"
fi
if test -z "$FLINKER" ; then
FLINKER="$F77"
fi
#
# Check for header files
# stdlib.h is used mostly for things like malloc and free, so it isn't
# so important that stdlib.h be exactly "right".
for ac_hdr in stdlib.h
do
ac_safe=`echo "$ac_hdr" | tr '[a-z]./' '[A-Z]__'`
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for $ac_hdr""... $ac_c"
else
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include <$ac_hdr>
int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
{
test -n "$verbose" && \
echo " defining $ac_tr_hdr"
echo "#define" $ac_tr_hdr 1 >> confdefs.h
DEFS="$DEFS -D$ac_tr_hdr=1"
}
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
done
#
#
AR="ar cr$AR_LOCAL"
#
# Using this autoconf macro for ranlib doesn't handle the problem
# of 'helpful' ranlib's that issue error messages (!). Once
# we've identified the proper compiler etc, we'll try this
# ranlib below; if it fails, we'll replace it with ':'
#
if test -z "$RANLIB" ; then
if test -z "$RANLIB"; then
# Extract the first word of `ranlib', so it can be a program name with args.
set dummy ranlib; word=$2
echo checking for $word
IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/$word; then
RANLIB="ranlib"
break
fi
done
IFS="$saveifs"
fi
test -z "$RANLIB" && RANLIB=":"
test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
fi
#
if test "$RANLIB" != ":" ; then
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking that ranlib works""... $ac_c"
else
echo $ac_n "checking that ranlib works""... $ac_c" 1>&1
fi
broken=0
cat <<EOF >conftest.c
int a(){return 1;}
EOF
compileonly='$CC -c $CFLAGS conftest.c >/dev/null 2>&1'
if eval $compileonly ; then
:
else
broken=1;
fi
if test $broken = 1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
print_error "Error in creating test object for ranlib!"
else
arcmd='$AR foo.a conftest.o >/dev/null 2>&1'
eval $arcmd
ranlibtest='$RANLIB foo.a >/dev/null 2>&1'
if eval $ranlibtest ; then
:
else
broken=1
fi
cat <<EOF >conftest.c
int a(); int main(argc,argv)int argc; char **argv;{ return a();}
EOF
compileonly='$CC -c $CFLAGS conftest.c >/dev/null 2>&1'
if eval $compileonly ; then
:
else
broken=1
fi
if test $broken = 1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
print_error "Error in creating test program for ranlib test!"
else
# Check that we can link the program
if eval $CLINKER $CFLAGS $LDFLAGS conftest.o -o conftest foo.a $LIBS \
>/dev/null 2>&1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
print_error "Error linking with ranlibed library"
broken=1
fi
fi
/bin/rm -f foo.a
if test $broken = 1 ; then
print_error "RANLIB ($RANLIB) failed!"
print_error "Assuming that ranlib is a stub returning non-zero"
print_error "condition code"
RANLIB=':'
fi
fi
rm -f conftest.o conftest.c
fi
#
# Some Sun SOLARIS systems don't have AR (at least, not in a typical user
# path)
# Remove any arguments from the string AR
ARTEST=`expr "$AR" : "\(.*\) "`
# Extract the first word of "$ARTEST", so it can be a program name with args.
set dummy $ARTEST; ac_word=$2
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for $ac_word""... $ac_c"
else
echo $ac_n "checking for $ac_word""... $ac_c" 1>&1
fi
ac_prog_where=""
if test -n "$ARFOUND"; then
ac_pg_ARFOUND="$ARFOUND" # Let the user override the test.
else
ac_first_char=`expr "$ARTEST" : "\(.\)"`
if test "$ac_first_char" = "/" -a -x "$ARTEST" ; then
ac_pg_ARFOUND="1"
ac_prog_where=$ARTEST
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_pg_ARFOUND="1"
ac_prog_where=$ac_dir/$ac_word
break
fi
done
IFS="$ac_save_ifs"
fi
fi;ARFOUND="$ac_pg_ARFOUND"
if test -n "$ac_prog_where" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""found $ac_prog_where ($ARFOUND)"
else
echo "$ac_t""found $ac_prog_where ($ARFOUND)" 1>&1
fi
ARLOC=$ac_prog_where
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
if test -z "$ARLOC" ; then
# Check for /usr/ccs/bin/ar ; Solaris likes to hide anything remotely
# useful in this directory
print_error "The library archiver $AR is not in your path"
print_error "MPICH cannot be built without this program, which"
print_error "should be part of ANY program development environment."
if test -x /usr/ccs/bin/ar ; then
print_error "You need /usr/ccs/bin in your path."
else
print_error "Check your path; contact your system vendor if your"
print_error "path appears to be ok."
fi
exit 1
fi
#
# CPRP is the version of cp that accepts -r and -p arguments.
# See CRAY below
CPRP="cp"
INCLUDE_PATH=""
USER_INCLUDE_PATH=""
USER_DEFS=""
LIB_LIST=""
MPE_LIBS=""
if test -n "$MPE_DIR"; then
MPE_DIR="$MPIR_HOME/$MPE_DIR"
if test -n "$MPE_GRAPHICS"; then
# FIND_X doesn't always work correctly when cross compiling, so we
# try to be more careful and conservative
# FIND_X doesn't always work correctly when cross compiling, so we
# try to be more careful and conservative
if test -z "$USERXLIB" ; then
# The user has specified the libraries/include paths; pick them up
# below....
if test -z "$cross_compiling" -o "$cross_compiling" = 0 ; then
# If we find X, set shell vars x_includes and x_libraries to the paths.
no_x=true
echo checking for X include and library files with xmkmf
rm -fr conftestdir
if mkdir conftestdir; then
cd conftestdir
cat > Imakefile <<\EOF
acfindx:
@echo "im_incroot=$(INCROOT); im_usrlibdir=$(USRLIBDIR); im_libdir=$(LIBDIR)"
EOF
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
no_x=
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `make acfindx | grep -v make`
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then
im_usrlibdir=$im_libdir
fi
case "$im_incroot" in
/usr/include) ;;
*) x_includes="$im_incroot" ;;
esac
case "$im_usrlibdir" in
/usr/lib | /lib) ;;
*) x_libraries="$im_usrlibdir" ;;
esac
fi
cd ..
rm -fr conftestdir
fi
if test -z "$im_usrlibdir"; then
echo checking for X include and library files directly
echo checking how to run the C preprocessor
if test -z "$CPP"; then
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and ``${CC-cc}'' will simply confuse
# make. It must be expanded now.
CPP="${CC-cc} -E"
cat > conftest.c <<EOF
#include "confdefs.h"
#include <stdio.h>
Syntax Error
EOF
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
:
else
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
test ".${verbose}" != "." && echo " setting CPP to $CPP"
cat > conftest.c <<EOF
#include "confdefs.h"
#include <X11/Intrinsic.h>
EOF
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
rm -rf conftest*
no_x=
else
rm -rf conftest*
for dir in \
/usr/local/include \
/usr/unsupported/include \
/usr/x386/include \
/usr/local/X11R6/include \
/usr/local/X11R5/include \
/usr/local/x11r6/include \
/usr/local/x11r5/include \
/usr/include/X11R6 \
/usr/include/X11R5 \
/usr/include/X11R4 \
/usr/X11R6/include \
/usr/X11R5/include \
/usr/X11/include \
/usr/openwin/include \
/usr/openwin/share/include \
/usr/lpp/Xamples/include \
; \
do
if test -r $dir/X11/Intrinsic.h; then
x_includes=$dir; no_x=
break
fi
done
fi
rm -f conftest*
# Check for the libraries. First see if replacing the `include' by
# `lib' works.
LIBS_save="${LIBS}"
LIBS="${LIBS} -lXt"
have_lib=""
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for -lXt""... $ac_c"
else
echo $ac_n "checking for -lXt""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
rm -rf conftest*
have_lib="1"
else if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
:; no_x=
else
:; for dir in `echo "$x_includes" | sed s/include/lib/` \
/usr/local/lib \
/usr/unsupported/lib \
/usr/x386/lib \
/usr/local/X11R6/lib \
/usr/local/X11R5/lib \
/usr/local/x11r6/lib \
/usr/local/x11r5/lib \
/usr/lib/X11 \
/usr/lib/X11R4 \
/usr/X11R6/lib \
/usr/X11R5/lib \
/usr/X11/lib \
/usr/openwin/lib \
/usr/lpp/Xamples/lib \
; \
do
for extension in a so sl; do
if test -r $dir/libXt.$extension; then
x_libraries=$dir; no_x=
break 2
fi
done
done
fi
fi
if test -n "$verbose"; then
test -n "$x_includes" && echo " found X11 headers in $x_includes"
test -n "$x_libraries" && echo " found X11 libraries in $x_libraries"
fi
if test -n "$no_x" ; then
print_error "Did not find X11 libraries and/or include files"
fi
else
# Try to compile a program with an include file.
# I didn't use HEADER_CHECK because I want to insist that the
# code try to compile with the header
no_x=true
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for X11 headers""... $ac_c"
else
echo $ac_n "checking for X11 headers""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include <X11/Xlib.h>
int main() { exit(0); }
int t() { }
EOF
if eval $compile; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
rm -rf conftest*
no_x=""
else if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
rm -f conftest*
if test -z "$no_x" ; then
# Try to link a simple X program
LIBS_save="${LIBS}"
LIBS="${LIBS} -lX11"
have_lib=""
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for -lX11""... $ac_c"
else
echo $ac_n "checking for -lX11""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
rm -rf conftest*
have_lib="1"
else if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
:; no_x=""
else
:; no_x="true"
fi
fi
if test -n "$no_x" ; then
print_error " "
print_error "X11 is not used when cross compiling (because of the"
print_error "difficulties in finding the correct libraries)"
print_error " "
fi
fi
else
# Pick up the paths from the user if possible
if test -z "$x_includes" -a -n "$X11INC" ; then
x_includes="$X11INC"
XINCLUDES="-Ix_includes"
fi
if test -z "$x_libraries" -a -n "$X11LIB" ; then
x_libraries="$X11LIB"
fi
fi
if test -n "$x_includes" ; then
XINCLUDES="-I$x_includes"
fi
if test -z "$no_x" ; then
# may STILL not have x if the include files aren't around
if test -n "$x_includes" ; then
f_test=$x_includes/X11/Xlib.h
else
f_test=/usr/include/X11/Xlib.h
fi
if test ! -f $f_test ; then
no_x=yes
print_error "X11 include files were not found in $f_test!"
fi
fi
fi
if test -n "$MPE_GRAPHICS" -a -z "$no_x" ; then
MPE_LIBS="-L$MPE_DIR -lmpe -lX11 -lm"
MPEGRAPHICS_SOURCE="mpe_graphics.c xcolor.c xframe.c xinit.c xwmap.c xmouse.c"
MPEGRAPHICS_OBJS="mpe_graphics.o xcolor.o xframe.o xinit.o xwmap.o xmouse.o"
MPEGRAPHICS_FSOURCE="mpe_graphicsf.c"
MPEGRAPHICS_FOBJS="mpe_graphicsf.o"
if test -z "$x_includes" ; then
X_INC=""
else
X_INC="-I$x_includes"
fi
if test -z "$x_libraries" ; then
X_LIB=""
else
X_LIB="-L$x_libraries"
MPE_LIBS="$X_LIB -L$MPE_DIR -lmpe -lX11 -lm"
fi
# On the Meiko CS2, you have to add additional libraries to satisfy
# the externals needed by -X11.
if test -n "$arch_meiko" ; then
MPE_LIBS="$MPE_LIBS -lsocket -lnsl"
fi
else
MPE_GRAPHICS=""
MPE_LIBS="-L$MPE_DIR -lmpe"
fi
else
MPE_GRAPHICS=""
fi
#
# Check for the functions that may be needed by the ADI to implement
# Processor_name. Save these defines in a special place.
SAVEDEFS="$DEFS"
DEFS=""
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for uname""... $ac_c"
else
echo $ac_n "checking for uname""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_uname) || defined (__stub___uname)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error. */
extern char uname(); uname();
#endif
}
EOF
if eval $compile; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
rm -rf conftest*
{
test -n "$verbose" && \
echo " defining HAVE_UNAME"
echo "#define" HAVE_UNAME 1 >> confdefs.h
DEFS="$DEFS -DHAVE_UNAME=1"
}
haveuname=1
else if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
rm -f conftest*
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for gethostbyname""... $ac_c"
else
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error. */
extern char gethostbyname(); gethostbyname();
#endif
}
EOF
if eval $compile; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
rm -rf conftest*
{
test -n "$verbose" && \
echo " defining HAVE_GETHOSTBYNAME"
echo "#define" HAVE_GETHOSTBYNAME 1 >> confdefs.h
DEFS="$DEFS -DHAVE_GETHOSTBYNAME=1"
}
havegethostbyname=1
else if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
rm -f conftest*
# If we have uname and gethostbyname, we can skip getdomainname ...
if test "$haveuname" != 1 -o "$havegethostbyname" != 1 ; then
for func in gethostname sysinfo
do
trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for ${func}""... $ac_c"
else
echo $ac_n "checking for ${func}""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_${func}) || defined (__stub___${func})
choke me
#else
/* Override any gcc2 internal prototype to avoid an error. */
extern char ${func}(); ${func}();
#endif
}
EOF
if eval $compile; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
rm -rf conftest*
{
test -n "$verbose" && \
echo " defining ${trfunc}"
echo "#define" ${trfunc} 1 >> confdefs.h
DEFS="$DEFS -D${trfunc}=1"
}
else if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
rm -f conftest*
done
#
# systeminfo is needed for sysinfo
for ac_hdr in sys/systeminfo.h
do
ac_safe=`echo "$ac_hdr" | tr '[a-z]./' '[A-Z]__'`
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for $ac_hdr""... $ac_c"
else
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include <$ac_hdr>
int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
{
test -n "$verbose" && \
echo " defining $ac_tr_hdr"
echo "#define" $ac_tr_hdr 1 >> confdefs.h
DEFS="$DEFS -D$ac_tr_hdr=1"
}
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
done
#
# getdomainname is special BECAUSE IT MAY BE USELESS (!Network computing
# indeed - stuff like this is why Windows95/NT WILL WIN).
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for getdomainname""... $ac_c"
else
echo $ac_n "checking for getdomainname""... $ac_c" 1>&1
fi
if test -z "$ac_ext" ; then
ac_ext=c
fi
cat > conftest.$ac_ext <<EOF
#include "confdefs.h"
#include <ctype.h> /* Arbitrary system header to define __stub macros. */
#ifdef __cplusplus
extern "C" { char getdomainname(); };
#else
char getdomainname();
#endif
int main() { return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getdomainname) || defined (__stub___getdomainname)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error. */
getdomainname();
#endif
; return 0; }
EOF
if test -z "$ac_link" ; then
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&2'
fi
if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_func_getdomainname=yes"
else
rm -rf conftest*
eval "ac_cv_func_getdomainname=no"
fi
rm -f conftest*
if eval "test \"`echo '$ac_cv_func_'getdomainname`\" = yes"; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
has_getdomainname=1
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
has_getdomainname=0
fi
if test $has_getdomainname = 1 -a $cross_compiling = 0 ; then
# Extract the first word of "domainname", so it can be a program name with args.
set dummy domainname; ac_word=$2
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for $ac_word""... $ac_c"
else
echo $ac_n "checking for $ac_word""... $ac_c" 1>&1
fi
ac_prog_where=""
if test -n "$has_domainname"; then
ac_pg_has_domainname="$has_domainname" # Let the user override the test.
else
ac_first_char=`expr "domainname" : "\(.\)"`
if test "$ac_first_char" = "/" -a -x "domainname" ; then
ac_pg_has_domainname="1"
ac_prog_where=domainname
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_pg_has_domainname="1"
ac_prog_where=$ac_dir/$ac_word
break
fi
done
IFS="$ac_save_ifs"
fi
test -z "$ac_pg_has_domainname" && ac_pg_has_domainname="0"
fi;has_domainname="$ac_pg_has_domainname"
if test -n "$ac_prog_where" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""found $ac_prog_where ($has_domainname)"
else
echo "$ac_t""found $ac_prog_where ($has_domainname)" 1>&1
fi
d_domainname=$ac_prog_where
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
# Extract the first word of "hostname", so it can be a program name with args.
set dummy hostname; ac_word=$2
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for $ac_word""... $ac_c"
else
echo $ac_n "checking for $ac_word""... $ac_c" 1>&1
fi
ac_prog_where=""
if test -n "$has_hostname"; then
ac_pg_has_hostname="$has_hostname" # Let the user override the test.
else
ac_first_char=`expr "hostname" : "\(.\)"`
if test "$ac_first_char" = "/" -a -x "hostname" ; then
ac_pg_has_hostname="1"
ac_prog_where=hostname
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_pg_has_hostname="1"
ac_prog_where=$ac_dir/$ac_word
break
fi
done
IFS="$ac_save_ifs"
fi
test -z "$ac_pg_has_hostname" && ac_pg_has_hostname="0"
fi;has_hostname="$ac_pg_has_hostname"
if test -n "$ac_prog_where" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""found $ac_prog_where ($has_hostname)"
else
echo "$ac_t""found $ac_prog_where ($has_hostname)" 1>&1
fi
d_hostname=$ac_prog_where
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
# Extract the first word of "rup", so it can be a program name with args.
set dummy rup; ac_word=$2
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for $ac_word""... $ac_c"
else
echo $ac_n "checking for $ac_word""... $ac_c" 1>&1
fi
ac_prog_where=""
if test -n "$has_rup"; then
ac_pg_has_rup="$has_rup" # Let the user override the test.
else
ac_first_char=`expr "rup" : "\(.\)"`
if test "$ac_first_char" = "/" -a -x "rup" ; then
ac_pg_has_rup="1"
ac_prog_where=rup
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_pg_has_rup="1"
ac_prog_where=$ac_dir/$ac_word
break
fi
done
IFS="$ac_save_ifs"
fi
test -z "$ac_pg_has_rup" && ac_pg_has_rup="0"
fi;has_rup="$ac_pg_has_rup"
if test -n "$ac_prog_where" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""found $ac_prog_where ($has_rup)"
else
echo "$ac_t""found $ac_prog_where ($has_rup)" 1>&1
fi
d_rup=$ac_prog_where
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
# Form hostname.domainname, do rup to it
# rup may not be enabled, but short of running a program to lookup the
# local host, there does not seem to be a better alternative.
#
if test $has_domainname = 1 -a $has_hostname = 1 -a $has_rup = 1 ; then
fullhost=`$d_hostname | sed -e 's/^\([^\.]*\)\..*/\1/'`
# echo $fullhost
fullhost="${fullhost}.`$d_domainname`"
response=`($d_rup $fullhost 2>&1) | grep 'Unknown host'`
# echo $fullhost
if test -n "$response" ; then
print_error "The getdomainname system routine has been rendered USELESS"
print_error "on your system. This is not a bug and will not affect"
print_error "MPICH. Some MPE routines (particularly those that"
print_error "interact with X Windows) may not work."
else
{
test -n "$verbose" && \
echo " defining HAVE_GETDOMAINNAME"
echo "#define" HAVE_GETDOMAINNAME 1 >> confdefs.h
DEFS="$DEFS -DHAVE_GETDOMAINNAME=1"
}
fi
fi
fi
fi
GETNAME_DEFS="$DEFS"
DEFS="$SAVEDEFS"
#
# Generate the name for the MPI-C, MPI-CC, and MPI-F77 compilers (for use
# in Makefiles that should not be MPICH dependent
# MPICC etc should be set on the configure line
if test -z "$MPICC" ; then
MPICC=$MPIR_HOME/lib/$ARCH/$COMM/mpicc
fi
if test -z "$MPIF77" ; then
if test $NOF77 = 1 ; then
MPIF77=:
else
MPIF77=$MPIR_HOME/lib/$ARCH/$COMM/mpif77
fi
fi
if test -z "$LIB_DIR" ; then
LIB_DIR=$MPE_DIR
fi
#
# hpux's Fortran compiler f77 (but not the POSIX version fort77) does
# not accept -L <dir> for library search path.
FLIB_PATH_LEADER="-L"
if test -n "$arch_hpux" -a "$F77" = "f77" ; then
FLIB_PATH=`echo $LIB_PATH | sed -e 's/-L/-Wl,-L,/g'`
FLIB_PATH_LEADER="-Wl,-L,"
else
FLIB_PATH="$LIB_PATH"
fi
#
# Check whether MPI_Pcontrol needs (const int, ... ) prototype
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for MPI_Pcontrol declaration""... $ac_c"
else
echo $ac_n "checking for MPI_Pcontrol declaration""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include "mpi.h"
int main() { exit(0); }
int t() { int MPI_Pcontrol( level );int level }
EOF
if eval $compile; then
rm -rf conftest*
int_ok=1
else
rm -rf conftest*
int_ok=0
fi
rm -f conftest*
if test $int_ok = 1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""int level"
else
echo "$ac_t""int level" 1>&1
fi
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""const int level, ..."
else
echo "$ac_t""const int level, ..." 1>&1
fi
{
test -n "$verbose" && \
echo " defining PCONTROL_NEEDS_CONST"
echo "#define" PCONTROL_NEEDS_CONST 1 >> confdefs.h
DEFS="$DEFS -DPCONTROL_NEEDS_CONST=1"
}
fi
#
# Check to see if the compiler accepts prototypes
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking that the compiler $CC accepts ANSI prototypes""... $ac_c"
else
echo $ac_n "checking that the compiler $CC accepts ANSI prototypes""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
int f(double a){return 0;}
int main() { exit(0); }
int t() { }
EOF
if eval $compile; then
rm -rf conftest*
eval "ac_cv_ccworks=yes"
else
rm -rf conftest*
eval "ac_cv_ccworks=no"
fi
rm -f conftest*
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$ac_cv_ccworks"
else
echo "$ac_t""$ac_cv_ccworks" 1>&1
fi
if test $ac_cv_ccworks = "yes" ; then
{
test -n "$verbose" && \
echo " defining HAVE_PROTOTYPES"
echo "#define" HAVE_PROTOTYPES 1 >> confdefs.h
DEFS="$DEFS -DHAVE_PROTOTYPES=1"
}
else
:
fi
#
# Check to see if it accepts const
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
ac_echo_test=`echo foo 1>&1`
if test -z "$ac_echo_test" ; then
print_error "Your sh shell does not handle the output redirection"
print_error "1>&1 correctly. Configure will work around this problem,"
print_error "but you should report the problem to your vendor."
fi
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking that the compiler $CC accepts const modifier""... $ac_c"
else
echo $ac_n "checking that the compiler $CC accepts const modifier""... $ac_c" 1>&1
fi
if test ! -f confdefs.h ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"""!! SHELL ERROR !!""
else
echo "$ac_t"""!! SHELL ERROR !!"" 1>&1
fi
echo "The file confdefs.h created by configure has been removed"
echo "This may be a problem with your shell; some versions of LINUX"
echo "have this problem. See the Installation guide for more"
echo "information."
exit 1
fi
cat > conftest.c <<EOF
#include "confdefs.h"
int f(const int a){return a;}
int main() { exit(0); }
int t() { }
EOF
if eval $compile; then
rm -rf conftest*
eval "ac_cv_ccworks=yes"
else
rm -rf conftest*
eval "ac_cv_ccworks=no"
fi
rm -f conftest*
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$ac_cv_ccworks"
else
echo "$ac_t""$ac_cv_ccworks" 1>&1
fi
if test $ac_cv_ccworks = "yes" ; then
:
else
{
test -n "$verbose" && \
echo " defining HAVE_NO_C_CONST"
echo "#define" HAVE_NO_C_CONST 1 >> confdefs.h
DEFS="$DEFS -DHAVE_NO_C_CONST=1"
}
fi
#
#
MPE_CFLAGS="$MPE_CFLAGS $DEFS"
# Substitute variables
# Variables used in scripts only
# FINC contains an @MPIR_HOME@, so it needs to come first
# Variables used by Makefile.in's:
# End configuration file
# Set default prefixes.
if test -n "$prefix"; then
test -z "$exec_prefix" && exec_prefix='${prefix}'
prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
fi
if test -n "$exec_prefix"; then
prsub="$prsub
s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
fi
# Quote sed substitution magic chars in DEFS.
cat >conftest.def <<EOF
$DEFS
EOF
escape_ampersand_and_backslash='s%[&\\]%\\&%g'
DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
rm -f conftest.def
# Substitute for predefined variables.
trap 'rm -f config.status; exit 1' 1 3 15
echo creating config.status
rm -f config.status
cat > config.status <<EOF
#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $configure_args
for arg
do
case "\$arg" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
*) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
esac
done
trap 'rm -f Makefile Makefile_nompi contrib/mandel/Makefile contrib/mastermind/Makefile contrib/life/Makefile test/Makefile; exit 1' 1 3 15
RANLIB='$RANLIB'
CPP='$CPP'
FINC='$FINC'
AR='$AR'
ARCH='$ARCH'
CC='$CC'
CFLAGS='$CFLAGS'
CLINKER='$CLINKER'
COMM='$COMM'
CPRP='$CPRP'
DEVICE='$DEVICE'
F77='$F77'
FFLAGS='$FFLAGS'
FLIB_PATH='$FLIB_PATH'
FLIB_PATH_LEADER='$FLIB_PATH_LEADER'
FLINKER='$FLINKER'
GETNAME_DEFS='$GETNAME_DEFS'
HAS_FORTRAN='$HAS_FORTRAN'
INCLUDE_PATH='$INCLUDE_PATH'
LIB_LIST='$LIB_LIST'
LIB_PATH='$LIB_PATH'
LIB_DIR='$LIB_DIR'
MAKE='$MAKE'
MPEGRAPHICS_FOBJS='$MPEGRAPHICS_FOBJS'
MPEGRAPHICS_FSOURCE='$MPEGRAPHICS_FSOURCE'
MPEGRAPHICS_OBJS='$MPEGRAPHICS_OBJS'
MPEGRAPHICS_SOURCE='$MPEGRAPHICS_SOURCE'
MPE_CFLAGS='$MPE_CFLAGS'
MPE_DIR='$MPE_DIR'
MPE_GRAPHICS='$MPE_GRAPHICS'
MPE_LIBS='$MPE_LIBS'
MPIR_HOME='$MPIR_HOME'
MPICC='$MPICC'
MPIF77='$MPIF77'
OPTFLAGS='$OPTFLAGS'
OPTFLAGSC='$OPTFLAGSC'
OPTFLAGSF='$OPTFLAGSF'
PREFIX='$PREFIX'
USER_CFLAGS='$USER_CFLAGS'
X_INC='$X_INC'
X_LIB='$X_LIB'
LIBS='$LIBS'
srcdir='$srcdir'
DEFS='$DEFS'
prefix='$prefix'
exec_prefix='$exec_prefix'
prsub='$prsub'
extrasub='$extrasub'
EOF
cat >> config.status <<\EOF
top_srcdir=$srcdir
CONFIG_FILES=${CONFIG_FILES-"Makefile Makefile_nompi contrib/mandel/Makefile contrib/mastermind/Makefile contrib/life/Makefile test/Makefile"}
for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
srcdir=$top_srcdir
# Remove last slash and all that follows it. Not all systems have dirname.
dir=`echo $file|sed 's%/[^/][^/]*$%%'`
if test "$dir" != "$file"; then
test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
test ! -d $dir && mkdir $dir
fi
echo creating $file
rm -f $file
echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
sed -e "
$prsub
$extrasub
s%@RANLIB@%$RANLIB%g
s%@CPP@%$CPP%g
s%@FINC@%$FINC%g
s%@AR@%$AR%g
s%@ARCH@%$ARCH%g
s%@CC@%$CC%g
s%@CFLAGS@%$CFLAGS%g
s%@CLINKER@%$CLINKER%g
s%@COMM@%$COMM%g
s%@CPRP@%$CPRP%g
s%@DEVICE@%$DEVICE%g
s%@F77@%$F77%g
s%@FFLAGS@%$FFLAGS%g
s%@FLIB_PATH@%$FLIB_PATH%g
s%@FLIB_PATH_LEADER@%$FLIB_PATH_LEADER%g
s%@FLINKER@%$FLINKER%g
s%@GETNAME_DEFS@%$GETNAME_DEFS%g
s%@HAS_FORTRAN@%$HAS_FORTRAN%g
s%@INCLUDE_PATH@%$INCLUDE_PATH%g
s%@LIB_LIST@%$LIB_LIST%g
s%@LIB_PATH@%$LIB_PATH%g
s%@LIB_DIR@%$LIB_DIR%g
s%@MAKE@%$MAKE%g
s%@MPEGRAPHICS_FOBJS@%$MPEGRAPHICS_FOBJS%g
s%@MPEGRAPHICS_FSOURCE@%$MPEGRAPHICS_FSOURCE%g
s%@MPEGRAPHICS_OBJS@%$MPEGRAPHICS_OBJS%g
s%@MPEGRAPHICS_SOURCE@%$MPEGRAPHICS_SOURCE%g
s%@MPE_CFLAGS@%$MPE_CFLAGS%g
s%@MPE_DIR@%$MPE_DIR%g
s%@MPE_GRAPHICS@%$MPE_GRAPHICS%g
s%@MPE_LIBS@%$MPE_LIBS%g
s%@MPIR_HOME@%$MPIR_HOME%g
s%@MPICC@%$MPICC%g
s%@MPIF77@%$MPIF77%g
s%@OPTFLAGS@%$OPTFLAGS%g
s%@OPTFLAGSC@%$OPTFLAGSC%g
s%@OPTFLAGSF@%$OPTFLAGSF%g
s%@PREFIX@%$PREFIX%g
s%@USER_CFLAGS@%$USER_CFLAGS%g
s%@X_INC@%$X_INC%g
s%@X_LIB@%$X_LIB%g
s%@LIBS@%$LIBS%g
s%@srcdir@%$srcdir%g
s%@DEFS@%$DEFS%
" $top_srcdir/${file}.in >> $file
fi; done
exit 0
EOF
chmod +x config.status
${CONFIG_SHELL-/bin/sh} config.status
|