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 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600
|
#!/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 ;
}
usage_msg="
Usage: ${progname} [-file_system=FILE_SYSTEM] [-arch=ARCH_TYPE] [-mpi=MPI_IMPL]
[-mpiincdir=MPI_INCLUDE_DIR] [-mpilib=MPI_LIBRARY]
[-mpibindir=MPI_BIN_DIR]
[-cc=C_COMPILER] [-fc=FORTRAN_COMPILER] [-nof77]
[-cflags=CFLAGS] [-fflags=FFLAGS] [-f90=F90_COMPILER] [-debug]
[-make=MAKEPGM] [-mpiolib=MPIO_LIBRARY] [-ar_nolocal]
[-noranlib] [-ar=AR_COMMAND] [-prefix=INSTALL_DIR]
[-intsize=INTSIZE] [-ptrsize=PTRSIZE] [-longsize=LONGSIZE]
[-longlongsize=LONGLONGSIZE] [-f90nag] [-disable-weak-symbols]
where
FILE_SYSTEM = the file system(s) for which ROMIO is to be configured.
Valid values are pfs, piofs, hfs, xfs, sfs, pvfs, ufs,
and nfs (case-sensitive). They correspond to Intel's PFS,
IBM's PIOFS, HP/Convex's HFS, SGI's XFS, NEC's SFS,
Clemson University's PVFS (for Linux clusters), any Unix
file system, and NFS.
To configure for multiple file systems, use "+" as a
separator; e.g., ufs+nfs
ARCH_TYPE = the type of machine for which ROMIO is to be configured.
Not needed on most machines, because ROMIO can usually
find the arch_type on its own. Needed if you are
cross-compiling for a different architecture.
Valid values are sun4, solaris, solaris86, rs6000,
paragon, hpux, sppux, IRIX, IRIX32, IRIXN32, IRIX64, SX4,
alpha, freebsd, LINUX, and LINUX_ALPHA. (case-sensitive)
MPI_IMPL = the MPI implementation with which ROMIO will be used
Valid values are mpich, sgi, hp. (case-sensitive)
Valid implementations are MPICH 1.1.1 or higher,
SGI's MPI 3.1 or higher, HP MPI 1.3 or higher, LAM,
and Cray MPI.
MPI_INCLUDE_DIR = the full path of the directory where mpi.h is located.
Not needed if the directory is in the compiler's
default include path
MPI_LIBRARY = name of the file containing the MPI library (full path).
Not needed if the library is in the compiler's default
list of libraries
MPI_BIN_DIR = the full path of the directory that contains the MPI
versions of the compilers, such as mpicc and mpif77.
Use only if the ROMIO configure cannot find the
necessary commands
C_COMPILER = the C compiler to use. If not specified, ROMIO uses a
default compiler depending on the machine.
FORTRAN_COMPILER = the Fortran compiler to use. If not specified, ROMIO
uses a default compiler depending on the machine.
CFLAGS = flags to give to the C compiler
FFLAGS = flags to give to the Fortran compiler
F90_COMPILER = the Fortran 90 compiler to use. If not specified,
ROMIO uses f90.
MPIO_LIBRARY = name of the MPI-IO library to be built (full path).
Default is "this_directory"/lib/ARCH_TYPE/libmpio.a.
MAKEPGM = name of the make program to use
AR_COMMAND = an alternate archiver (ar) command to use.
INSTALL_DIR = directory where ROMIO is to be installed
INTSIZE = size of int in bytes.
PTRSIZE = size of pointers in bytes.
LONGSIZE = size of long in bytes.
LONGLONGSIZE = size of long long in bytes.
The options '-mpiincdir' and '-mpilib' may be needed if the MPI include file
and MPI library are not in the compiler's default path.
The option '-nof77' prevents the compilation of routines that require a
Fortran compiler. If you select this option, you cannot use the
Fortran interface of MPI-IO.
The option '-f90nag' allows you to use the NAG Fortran 90 compiler
instead of Fortran 77.
The option '-make' may be used to select an alternate make program. ROMIO
uses "make" by default.
If '-debug' is used, ROMIO will be configured with the '-g' compiler option
for debugging.
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 10 MB)
available in the partition where ROMIO 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.
The option -disable-weak-symbols disables the use of weak symbols, even if
available, for building the profiling interface.
"
#
echo " "
echo "Configuring ROMIO Version 1.2.5.1/LAM"
echo " "
CONFIGURE_ARGS="$*"
if test -n "$CONFIGURE_ARGS" ; then
echo "Configuring with args $CONFIGURE_ARGS"
fi
#
# rm -f include/*.h
#
NOF77=0
ARCH=""
arch_IRIX=""
MPI=""
MPI_INCLUDE_DIR=""
ROMIO_INCLUDE=""
MPI_LIB=""
LIBNAME=""
TEST_LIBNAME=""
FILE_SYSTEM=""
PREFIX=""
DEBUG=no
MIPS=0
BITS=0
FROM_MPICH=0
FROM_LAM=0
CFLAGS=${CFLAGS:-""}
LL="\%lld"
AR_LOCAL=l
HAVE_MPI_INFO=""
BUILD_MPI_INFO=""
MPI_FINFO1=""
MPI_FINFO2=""
MPI_FINFO3=""
MPI_FINFO4=""
MPI_FARRAY1=""
MPI_FARRAY2=""
MPI_FARRAY3=""
MPI_FARRAY4=""
MPI_FARRAY5=""
MPI_FARRAY6=""
MPI_FARRAY7=""
DEFS=""
ROMIO_LFLAGS=""
ROMIO_LIBLIST=""
ROMIO_TCFLAGS=""
ROMIO_TCPPFLAGS=""
ROMIO_TFFLAGS=""
NOPROFILE=0
MPIRUN=""
FORTRAN_TEST=""
MAKE=${MAKE:-"make"}
# foll. needed for f77 test programs
F77GETARG="call getarg(i,str)"
F77IARGC="iargc()"
FTESTDEFINE=""
FORTRAN_MPI_OFFSET=""
MPIOF_H_INCLUDED=0
MPI_OFFSET_KIND1="!"
MPI_OFFSET_KIND2="!"
F90=""
TEST_CC=""
TEST_F77=""
TRY_WEAK_SYMBOLS=1
#
known_filesystems="nfs ufs pfs piofs pvfs testfs xfs hfs sfs"
known_mpi_impls="mpich_mpi sgi_mpi hp_mpi cray_mpi lam_mpi"
#
# Defaults
enable_aio=notgiven
#
for arg
do
case $arg in
-arch=* | --arch=*)
ARCH=`echo $arg|sed 's/-*arch=//'`
eval "arch_`echo $ARCH`=1"
;;
-with-file-system=* | --with-file-system=* )
FILE_SYSTEM=`echo $arg|sed 's/-*with-file-system=//' | sed -e 's/\+/ /g'`
for x in $FILE_SYSTEM
do
eval "file_system_`echo $x`=1"
done
;;
-file_system=* | --file_system=* )
# DEPRECATED FORMAT
FILE_SYSTEM=`echo $arg|sed 's/-*file_system=//' | sed -e 's/\+/ /g'`
for x in $FILE_SYSTEM
do
eval "file_system_`echo $x`=1"
done
;;
--enable-aio | -enable-aio)
enable_aio=yes
;;
--disable-aio | -disable-aio)
enable_aio=no
;;
-with-mpi=* | --with-mpi=*)
MPI=`echo $arg|sed 's/-*with-mpi=//'`
eval "mpi_`echo $MPI`=1"
;;
-mpi=* | --mpi=*)
# DEPRECATED FORMAT
MPI=`echo $arg|sed 's/-*mpi=//'`
eval "mpi_`echo $MPI`=1"
;;
# OTHER ARGS ARE DEPRECATED AND SHOULD BE PROVIDED THROUGH ENV VARIABLES
-mpiincdir=* | --mpiincdir=*)
MPI_INCLUDE_DIR=`echo $arg|sed 's/-*mpiincdir=//'`
;;
-mpibindir=* | --mpibindir=*)
MPI_BIN_DIR=`echo $arg|sed 's/-*mpibindir=//'`
;;
-mpilib=* | --mpilib=*)
MPI_LIB=`echo $arg|sed 's/-*mpilib=//'`
;;
-mpiolib=* | --mpiolib=*)
LIBNAME=`echo $arg|sed 's/-*mpiolib=//'`
;;
# THE FOLLOWING SHOULD BE PROVIDED THROUGH ENV VARIABLES
-cc=* | --cc=*)
CC=`echo $arg|sed 's/-*cc=//'`
;;
-fc=* | --fc=*)
FC=`echo $arg|sed 's/-*fc=//'`
;;
-f90=* | --f90=*)
F90=`echo A$arg|sed 's/A-*f90=//'`
;;
-f90nag | --f90nag)
FC=f90
F77GETARG="call f90_unix_MP_getarg(i,str)"
F77IARGC="f90_unix_MP_iargc()"
;;
-cflags=* | --cflags=*)
package="`echo $arg|sed 's/-*cflags=//'`"
USER_CFLAGS="$package"
CFLAGS="$package $CFLAGS"
;;
-fflags=* | --fflags=*)
package="`echo $arg|sed 's/-*fflags=//'`"
FFLAGS="$FFLAGS $package"
;;
-make=* | --make=*)
package=`echo $arg|sed 's/-*make=//'`
MAKE="$package"
;;
# END OF VALUES THAT SHOULD BE PROVIDED THROUGH ENV VARIABLES
-nof77 | --nof77 | -disable-f77 | --disable-f77 )
echo "Fortran interface will not be built"
NOF77=1
;;
-debug | --debug | --enable-g | -enable-g)
echo "Configuring for a debugging version"
DEBUG=yes
;;
-ar_nolocal | --ar_nolocal)
AR_LOCAL=''
;;
-noranlib | --noranlib)
RANLIB=':'
;;
-prefix=* | --prefix=*)
PREFIX=`echo $arg|sed 's/-*prefix=//'`
# Use new variable name for prefix
prefix=$PREFIX
;;
-from_mpich | --from_mpich)
FROM_MPICH=1
;;
-from_lam | --from_lam)
FROM_LAM=1
;;
-ar=* | --ar=*)
package=`echo $arg|sed 's/-*ar=//'`
AR="$package"
;;
# THESE SHOULD USE CROSS_SIZE_XXX
-intsize=* | --intsize=*)
package=`echo $arg|sed 's/-*intsize=//'`
intsize="$package"
;;
-ptrsize=* | --ptrsize=*)
package=`echo $arg|sed 's/-*ptrsize=//'`
pointersize="$package"
;;
-longsize=* | --longsize=*)
package=`echo $arg|sed 's/-*longsize=//'`
longsize="$package"
;;
-longlongsize=* | --longlongsize=*)
package=`echo $arg|sed 's/-*longlongsize=//'`
longlongsize="$package"
;;
# END OF VARIABLE SIZES
-noprofile | --noprofile | --disable-profile | -disable-profile )
echo "profiling interface will not be built"
NOPROFILE=1
;;
-echo | --enable-echo | -enable-echo )
set -x
;;
-disable-weak-symbols|--disable-weak-symbols)
TRY_WEAK_SYMBOLS=0
;;
-enable-* | --enable-* | -disable-* | --disable-* )
# ignore
;;
-with-* | --with-* | -without-* | --without-* )
# ignore
;;
-h | -help | --h | --help | -u | --u)
(echo "${usage_msg}") >& 2
exit 1 ;;
*)
if test -n "$arg" ; then
echo "Error: Invalid configure option $arg"
exit 1;
fi
;;
esac
done
#
rm -f config.log
trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
trap 'rm -fr confdefs* $ac_clean_files' 0
# Save the original args if we used an alternate arg parser.
ac_configure_temp="${configure_args-$*}"
# Strip out --no-create and --norecursion so they don't pile up.
configure_args=
for ac_arg in $ac_configure_temp; do
case "$ac_arg" in
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c) ;;
-norecursion | --norecursion | --norecursio | --norecursi \
| --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
*) configure_args="$configure_args $ac_arg" ;;
esac
done
# 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
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
# 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.
ac_unique_file=
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then `..'.
ac_prog=$0
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
srcdir=$ac_confdir
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
fi
if test ! -r $srcdir/$ac_unique_file; then
if test x$ac_srcdir_defaulted = xyes; then
echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
else
echo "configure: can not find sources in ${srcdir}" >&2; exit 1
fi
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
#
#
# Find the source files, if location was not specified.
if test "$srcdirdefaulted" = "yes" ; then
srcdir=""
# Try the directory containing this script, then `..'.
prog=$0
confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
# Remove all trailing /'s
confdir=`echo $confdir|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: Cannot find sources in \`${confdir}' or \`..'." 1>&2
else
echo "configure: Cannot find sources in \`${srcdir}'." 1>&2
fi
exit 1
fi
# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
# (and preserve ./ and .//)
# But we can't avoid them for `..', to make subdirectories work.
case $srcdir in
.|./|.//|/*|~*) ;;
*) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
esac
# Get top_srcdir
if test -z "$top_srcdir" ; then
top_srcdir=$srcdir
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for virtual path format""... $ac_c"
else
echo $ac_n "checking for virtual path format""... $ac_c" 1>&1
fi
rm -rf conftest*
mkdir conftestdir
cat >conftestdir/a.c <<EOF
A sample file
EOF
cat > conftest <<EOF
all: a.o
VPATH=.:conftestdir
.c.o:
@echo \$<
EOF
ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'`
if test -n "$ac_out" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""VPATH"
else
echo "$ac_t""VPATH" 1>&1
fi
VPATH='VPATH=.:$(srcdir)'
else
rm -f conftest
cat > conftest <<EOF
all: a.o
.PATH: . conftestdir
.c.o:
@echo \$<
EOF
ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'`
if test -n "$ac_out" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t"".PATH"
else
echo "$ac_t"".PATH" 1>&1
fi
VPATH='.PATH: . $(srcdir)'
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""neither VPATH nor .PATH works"
else
echo "$ac_t""neither VPATH nor .PATH works" 1>&1
fi
fi
fi
rm -rf conftest*
#
# Check that an arch was set
# If it wasn't set, try to guess using "util/tarch"
#
if test -z "$ARCH" -a -x $srcdir/util/tarch ; 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for architecture""... $ac_c"
else
echo $ac_n "checking for architecture""... $ac_c" 1>&1
fi
ARCH=`$srcdir/util/tarch | sed s/-/_/g`
if test -z "$ARCH" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""Unknown!"
else
echo "$ac_t""Unknown!" 1>&1
fi
print_error "Error: Couldn't guess target architecture, you must"
print_error " set an architecture type with -arch=<value>"
exit 1
fi
eval "arch_$ARCH=1"
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$ARCH"
else
echo "$ac_t""$ARCH" 1>&1
fi
fi
#
# check for valid architecture. Use __ so that _ALPHA_ does not match
# LINUX_ALPHA_
#### WE SHOULD REMOVE THIS SOON
grep __"$ARCH"_ $srcdir/.config_params > /dev/null 2>&1
if test $? != 0 ; then
echo "Unknown architecture $arch... proceeding anyway"
fi
#
#
#
# Find the home directory if not specified
if test "X$srcdir" != "X." -a -s $srcdir/mpi-io/Makefile.in ; then
ROMIO_HOME_TRIAL=$srcdir
else
ROMIO_HOME_TRIAL=$PWD
if test "${ROMIO_HOME_TRIAL}" != "" -a -d "${ROMIO_HOME_TRIAL}" ; then
if test -r ${ROMIO_HOME_TRIAL}/.foo$$ ; then
/bin/rm -f ${ROMIO_HOME_TRIAL}/.foo$$
/bin/rm -f .foo$$
fi
if test -r ${ROMIO_HOME_TRIAL}/.foo$$ -o -r .foo$$ ; then
ROMIO_HOME_TRIAL=
else
echo "test" > ${ROMIO_HOME_TRIAL}/.foo$$
if test ! -r .foo$$ ; then
/bin/rm -f ${ROMIO_HOME_TRIAL}/.foo$$
ROMIO_HOME_TRIAL=
else
/bin/rm -f ${ROMIO_HOME_TRIAL}/.foo$$
fi
fi
fi
if test "${ROMIO_HOME_TRIAL}" = "" ; then
ROMIO_HOME_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'`
fi
if test ! -r ${ROMIO_HOME_TRIAL}/mpi-io/Makefile.in ; then
ROMIO_HOME_TRIAL=`pwd`
if test ! -r ${ROMIO_HOME_TRIAL}/mpi-io/Makefile.in ; then
print_error "Cannot determine the root directory!"
exit 1
fi
ROMIO_HOME_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'`
if test ! -d ${ROMIO_HOME_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.
"
ROMIO_HOME_TRIAL=`pwd`
fi
fi
if test -z "${ROMIO_HOME_TRIAL}" ; then
ROMIO_HOME_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'`
if test ! -d ${ROMIO_HOME_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.
"
ROMIO_HOME_TRIAL=`pwd`
fi
fi
fi
echo "ROMIO home directory is $ROMIO_HOME_TRIAL"
ROMIO_HOME=$ROMIO_HOME_TRIAL
#
# Create the "autoconf" style directory names...
#
if test -z "$prefix" ; then prefix=$PREFIX ; fi
if test -z "$prefix" ; then
prefix=$ROMIO_HOME
fi
if test -z "$exec_prefix" ; then exec_prefix='${prefix}' ; fi
# exec_prefix is the prefix for directories containing machine-specific
# files such as libraries and executables. For the USER
includedir="${prefix}/include"
# bindir is for executable programs for the USER
if test -z "$bindir" ; then bindir='${exec_prefix}/bin' ; fi
# sbindir is for executable programs for the ADMINISTRATOR
if test -z "$sbindir" ; then sbindir='${exec_prefix}/sbin' ; fi
# libdir is for libraries for the USER
if test -z "$libdir" ; then libdir='${exec_prefix}/lib' ; fi
# mandir is the root for the man pages
if test -z "$mandir" ; then mandir='${prefix}/man' ; fi
if test -z "$docdir" ; then docdir='${prefix}/doc' ; fi
if test -z "$htmldir" ; then htmldir='${prefix}/www' ; fi
#
# check for valid file system
if test -n "$FILE_SYSTEM" ; then
for x in $FILE_SYSTEM
do
found=no
for y in $known_filesystems ; do
if test $x = $y ; then
found=yes
break
fi
done
if test "$found" = "no" ; then
echo "Unknown file system $x... proceeding anyway"
fi
done
fi
#
# check for valid MPI implementation
if test -n "$MPI" ; then
found=no
for mpi in $known_mpi_impls ; do
if test "${MPI}_mpi" = "$mpi" ; then
found=yes
break
fi
done
if test $found = no ; then
echo "Unknown MPI implementation $MPI... proceeding anyway"
fi
fi
#
# check for valid MPI include directory if specified
if test $FROM_MPICH = 0 -a $FROM_LAM = 0 ; then
if test -n "$MPI_INCLUDE_DIR"; then
if test ! -f "$MPI_INCLUDE_DIR/mpi.h" ; then
echo "Error: Include file $MPI_INCLUDE_DIR/mpi.h not found"
exit 1
fi
else
# assume that mpi.h is in the default path
# set MPI_INCLUDE_DIR to ".", so that it translates to -I. in the
# compile command. Some compilers complain if it's only -I
MPI_INCLUDE_DIR=.
fi
fi
#
# check for valid MPI library if specified
if test $FROM_MPICH = 0 -a $FROM_LAM = 0 ; then
if test -n "$MPI_LIB" ; then
if test ! -f "$MPI_LIB" ; then
echo "Error: MPI library $MPI_LIB not found"
exit 1
fi
fi
fi
#
#
AR="${AR:-ar} cr$AR_LOCAL"
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 ac_dummy ranlib; ac_word=$2
test -n "$silent" || echo "checking for $ac_word"
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
RANLIB="ranlib"
break
fi
done
IFS="$ac_save_ifs"
fi
test -z "$RANLIB" && RANLIB=":"
test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
fi
MAKE=${MAKE:-make}
#
# USER_CFLAGS and USER_FFLAGS are used only in test/Makefile.in
if test $DEBUG = "yes"; then
USER_CFLAGS="$CFLAGS -g"
USER_FFLAGS="$FFLAGS -g"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
#else
# USER_CFLAGS="$CFLAGS -O"
# USER_FFLAGS="$FFLAGS -O"
fi
#
if test -n "$arch_sun4" ; then
CC=${CC:-gcc}
F77=${FC:-f77}
if test $DEBUG = "yes"; then
if test "$CC" = "gcc"; then
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# CFLAGS="$CFLAGS -g -O -Wall -Wstrict-prototypes -Wmissing-prototypes"
CFLAGS="$CFLAGS -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
else
CFLAGS="$CFLAGS -g"
fi
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
if test "$enable_aio" = "no" ; then
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
else
{
test -n "$verbose" && \
echo " defining AIO_SUN"
echo "#define" AIO_SUN "1" >> confdefs.h
DEFS="$DEFS -DAIO_SUN=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}AIO_SUN\${ac_dB}AIO_SUN\${ac_dC}1\${ac_dD}
\${ac_uA}AIO_SUN\${ac_uB}AIO_SUN\${ac_uC}1\${ac_uD}
\${ac_eA}AIO_SUN\${ac_eB}AIO_SUN\${ac_eC}1\${ac_eD}
"
}
fi
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="ufs nfs"
echo "configuring for file systems ufs and nfs"
fi
fi
#
if test -n "$arch_solaris" || test -n "$arch_solaris86" ; then
CC=${CC:-cc}
F77=${FC:-f77}
if test $DEBUG = "yes"; then
if test "$CC" = "gcc" ; then
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# CFLAGS="$CFLAGS -g -O -Wall -Wstrict-prototypes -Wmissing-prototypes"
CFLAGS="$CFLAGS -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
else
CFLAGS="$CFLAGS -g -v"
fi
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
if test "$enable_aio" = "no" ; then
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
else
{
test -n "$verbose" && \
echo " defining AIO_SUN"
echo "#define" AIO_SUN "1" >> confdefs.h
DEFS="$DEFS -DAIO_SUN=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}AIO_SUN\${ac_dB}AIO_SUN\${ac_dC}1\${ac_dD}
\${ac_uA}AIO_SUN\${ac_uB}AIO_SUN\${ac_uC}1\${ac_uD}
\${ac_eA}AIO_SUN\${ac_eB}AIO_SUN\${ac_eC}1\${ac_eD}
"
}
fi
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="ufs nfs"
echo "configuring for file systems ufs and nfs"
fi
{
test -n "$verbose" && \
echo " defining SOLARIS"
echo "#define" SOLARIS "1" >> confdefs.h
DEFS="$DEFS -DSOLARIS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SOLARIS\${ac_dB}SOLARIS\${ac_dC}1\${ac_dD}
\${ac_uA}SOLARIS\${ac_uB}SOLARIS\${ac_uC}1\${ac_uD}
\${ac_eA}SOLARIS\${ac_eB}SOLARIS\${ac_eC}1\${ac_eD}
"
}
if test $MPI = "mpich" ; then
TEST_CC=mpicc
TEST_F77=mpif77
else
TEST_CC="$CC"
TEST_F77="$F77"
fi
if test "$enable_aio" != "no" ; then
MPI_LIB="$MPI_LIB -laio"
ROMIO_LIBLIST="-laio"
fi
AR="ar cr"
# solaris does not have l option to ar
# solaris f90 does not have 8-byte integer type
# (it does now!!!! 11/29/01)
fi
#
if test -n "$arch_rs6000"; then
F77=$FC
if test -z "$CC"; then
for ac_prog in mpcc
do
if test -z "$CC"; then
# Extract the first word of `$ac_prog', so it can be a program name with args.
set ac_dummy $ac_prog; ac_word=$2
test -n "$silent" || echo "checking for $ac_word"
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
CC="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"
test -n "$CC" && break
done
test -n "$CC" || CC="cc"
echo "Using $CC"
fi
if test $NOF77 = 0 && test -z "$FC"; then
for ac_prog in mpxlf
do
if test -z "$F77"; then
# Extract the first word of `$ac_prog', so it can be a program name with args.
set ac_dummy $ac_prog; ac_word=$2
test -n "$silent" || echo "checking for $ac_word"
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
F77="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
test -n "$F77" && test -n "$verbose" && echo " setting F77 to $F77"
test -n "$F77" && break
done
test -n "$F77" || F77="f77"
echo "Using $F77"
fi
if test $DEBUG = "yes"; then
CFLAGS="$CFLAGS -g"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
# Check that aio is available (many systems appear to have aio
# either installed improperly or turned off).
# The test is the following: if not cross compiling, try to run a
# program that includes a *reference* to aio_write but does not call it
# If the libraries are not set up correctly, then this will fail.
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking whether aio routines can be used""... $ac_c"
else
echo $ac_n "checking whether aio routines can be used""... $ac_c" 1>&1
fi
test -n "$silent" || echo "checking whether cross-compiling"
# If we cannot run a trivial program, we must be cross compiling.
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
main(){exit(0);}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
:
else
cross_compiling=1
fi
rm -fr conftest*
if test -n "$cross_compiling"
then
aio_runs=unknown
else
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
int main( int argc, char **argv )
{
if (argc > 10) aio_write();
return 0;
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
aio_runs=yes
else
aio_runs=no
fi
fi
rm -fr conftest*;
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$aio_runs"
else
echo "$ac_t""$aio_runs" 1>&1
fi
if test "$enable_aio" != "no" -a "$aio_runs" = "no" ; then
enable_aio=no
fi
if test "$enable_aio" = "no" ; then
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
else
{
test -n "$verbose" && \
echo " defining NO_FD_IN_AIOCB"
echo "#define" NO_FD_IN_AIOCB "1" >> confdefs.h
DEFS="$DEFS -DNO_FD_IN_AIOCB=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_FD_IN_AIOCB\${ac_dB}NO_FD_IN_AIOCB\${ac_dC}1\${ac_dD}
\${ac_uA}NO_FD_IN_AIOCB\${ac_uB}NO_FD_IN_AIOCB\${ac_uC}1\${ac_uD}
\${ac_eA}NO_FD_IN_AIOCB\${ac_eB}NO_FD_IN_AIOCB\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining AIO_HANDLE_IN_AIOCB"
echo "#define" AIO_HANDLE_IN_AIOCB "1" >> confdefs.h
DEFS="$DEFS -DAIO_HANDLE_IN_AIOCB=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}AIO_HANDLE_IN_AIOCB\${ac_dB}AIO_HANDLE_IN_AIOCB\${ac_dC}1\${ac_dD}
\${ac_uA}AIO_HANDLE_IN_AIOCB\${ac_uB}AIO_HANDLE_IN_AIOCB\${ac_uC}1\${ac_uD}
\${ac_eA}AIO_HANDLE_IN_AIOCB\${ac_eB}AIO_HANDLE_IN_AIOCB\${ac_eC}1\${ac_eD}
"
}
fi
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
if test "$CC" = "mpcc" || test "$CC" = "mpCC" ; then
file_system_piofs=1
FILE_SYSTEM="piofs"
echo "configuring for file systems piofs, ufs, and nfs"
else
echo "configuring for file systems ufs and nfs"
fi
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="$FILE_SYSTEM ufs nfs"
fi
{
test -n "$verbose" && \
echo " defining AIX"
echo "#define" AIX "1" >> confdefs.h
DEFS="$DEFS -DAIX=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX\${ac_dB}AIX\${ac_dC}1\${ac_dD}
\${ac_uA}AIX\${ac_uB}AIX\${ac_uC}1\${ac_uD}
\${ac_eA}AIX\${ac_eB}AIX\${ac_eC}1\${ac_eD}
"
}
# assume long long exists.
longlongsize=${longlongsize:-8}
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=8)"
fi
#
if test -n "$arch_paragon"; then
CC=${CC:-icc}
F77=${FC:-if77}
if test $DEBUG = "yes"; then
CFLAGS="$CFLAGS -g"
else
if test "$CC" = "icc"; then
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# CFLAGS="$CFLAGS -Knoieee -Mvect -O3"
CFLAGS="$CFLAGS -Knoieee -Mvect"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
fi
AR="ar860 cr$AR_LOCAL"
MPI_LIB="$MPI_LIB -nx"
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
file_system_pfs=1
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="pfs ufs nfs"
echo "configuring for file systems pfs, ufs, and nfs"
fi
{
test -n "$verbose" && \
echo " defining PARAGON"
echo "#define" PARAGON "1" >> confdefs.h
DEFS="$DEFS -DPARAGON=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}PARAGON\${ac_dB}PARAGON\${ac_dC}1\${ac_dD}
\${ac_uA}PARAGON\${ac_uB}PARAGON\${ac_uC}1\${ac_uD}
\${ac_eA}PARAGON\${ac_eB}PARAGON\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
# NO_AIO is if configuring for NFS/UFS. It doesn't affect PFS asynch. I/O.
# long long does not exist
longlongsize=${longlongsize:-0}
fi
#
if test -n "$arch_tflop" || test -n "$arch_tflops"; then
CC=${CC:-pgcc}
F77=${FC:-pgf77}
TFLOP_FLAGS="-cougar -D__PUMA"
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
if test $DEBUG = "yes"; then
CFLAGS="$CFLAGS -g $TFLOP_FLAGS"
else
if test "$CC" = "pgcc"; then
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# CFLAGS="$CFLAGS -Knoieee -Mvect -O3 $TFLOP_FLAGS"
CFLAGS="$CFLAGS -Knoieee -Mvect $TFLOP_FLAGS"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O $TFLOP_FLAGS"
fi
fi
AR="xar cr$AR_LOCAL"
RANLIB="xranlib"
MPI_LIB="$MPI_LIB"
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
file_system_ufs=1
FILE_SYSTEM="ufs"
echo "configuring for file system ufs"
fi
fi
#
HAVE_STATFS_F_FSTYPENAME=0
if test -n "$arch_freebsd" || test -n "$arch_LINUX" || test -n "$arch_LINUX_ALPHA" || test -n "$arch_netbsd" || test -n "$arch_openbsd" ; then
CC=${CC:-gcc}
if test -n "$arch_freebsd" || test -n "$arch_netbsd" || test -n "$arch_openbsd"; then
F77=${FC:-f77}
{
test -n "$verbose" && \
echo " defining FREEBSD"
echo "#define" FREEBSD "1" >> confdefs.h
DEFS="$DEFS -DFREEBSD=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}FREEBSD\${ac_dB}FREEBSD\${ac_dC}1\${ac_dD}
\${ac_uA}FREEBSD\${ac_uB}FREEBSD\${ac_uC}1\${ac_uD}
\${ac_eA}FREEBSD\${ac_eB}FREEBSD\${ac_eC}1\${ac_eD}
"
}
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MOUNT_NFS is defined in the include files""... $ac_c"
else
echo $ac_n "checking if MOUNT_NFS is defined in the include files""... $ac_c" 1>&1
fi
rm -f conftest.c
cat > conftest.c <<EOF
#include <sys/param.h>
#include <sys/mount.h>
main()
{
int i=MOUNT_NFS;
}
EOF
rm -f conftest
$CC $USER_CFLAGS -o conftest conftest.c > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
#LAM Added ROMIO_HAVE_MOUNT_NFS=1
ROMIO_HAVE_MOUNT_NFS=1
{
test -n "$verbose" && \
echo " defining HAVE_MOUNT_NFS"
echo "#define" HAVE_MOUNT_NFS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MOUNT_NFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MOUNT_NFS\${ac_dB}HAVE_MOUNT_NFS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MOUNT_NFS\${ac_uB}HAVE_MOUNT_NFS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MOUNT_NFS\${ac_eB}HAVE_MOUNT_NFS\${ac_eC}1\${ac_eD}
"
}
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
#LAM Added ROMIO_HAVE_MOUNT_NFS=0
ROMIO_HAVE_MOUNT_NFS=0
fi
rm -f conftest conftest.c
#LAM Added the following to check for struct fsbuf.f_fstypename
if test "$ROMIO_HAVE_MOUNT_NFS" = "1"; 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking struct statfs.f_fstypename""... $ac_c"
else
echo $ac_n "checking struct statfs.f_fstypename""... $ac_c" 1>&1
fi
test -n "$silent" || echo "checking for for language syntax"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <sys/param.h>
#include <sys/mount.h>
#include <string.h>
int main() { return 0; }
int t() {
struct statfs f;
memset(&f, 0, sizeof(f));
strncmp("nfs", f.f_fstypename, 3);; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
HAVE_STATFS_F_FSTYPENAME=1
fi
rm -f conftest*
if test "$HAVE_STATFS_F_FSTYPENAME" = "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
fi
fi
#LAM Section end
longlongsize=${longlongsize:-0}
# printf doesn't work properly and no integer*8 as far as I can tell
else
F77=${FC:-g77}
{
test -n "$verbose" && \
echo " defining LINUX"
echo "#define" LINUX "1" >> confdefs.h
DEFS="$DEFS -DLINUX=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}LINUX\${ac_dB}LINUX\${ac_dC}1\${ac_dD}
\${ac_uA}LINUX\${ac_uB}LINUX\${ac_uC}1\${ac_uD}
\${ac_eA}LINUX\${ac_eB}LINUX\${ac_eC}1\${ac_eD}
"
}
fi
if test $DEBUG = "yes" ; then
if test "$CC" = "gcc" ; then
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# CFLAGS="$CFLAGS -g -O -Wall -Wstrict-prototypes -Wmissing-prototypes"
CFLAGS="$CFLAGS -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
else
CFLAGS="$CFLAGS -g"
fi
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
if test "$enable_aio" != "yes" ; then
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
else
# Try to find the aio routines
use_aio=no
test -n "$silent" || echo "checking for aio.h"
test -n "$silent" || 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.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
Syntax Error
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
:
else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
Syntax Error
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
:
else
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
test -n "$verbose" && echo " setting CPP to $CPP"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <aio.h>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
rm -rf conftest*
has_aio_h=yes
else
rm -rf conftest*
has_aio_h=no
fi
rm -f conftest*
add_lib=""
ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -laio"
ac_have_lib=""
test -n "$silent" || echo "checking for -laio"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
ac_have_lib="1"
fi
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
:; add_lib="-laio"
else
:;
fi
ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -lrt"
ac_have_lib=""
test -n "$silent" || echo "checking for -lrt"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
ac_have_lib="1"
fi
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
:; add_lib="$add_lib -lrt"
else
:;
fi
ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -lpthread"
ac_have_lib=""
test -n "$silent" || echo "checking for -lpthread"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
ac_have_lib="1"
fi
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
:; add_lib="$add_lib -lpthread"
has_pthread=yes
else
:; has_pthread=no
fi
test -n "$silent" || echo "checking for aio_write"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
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_aio_write) || defined (__stub___aio_write)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error. */
extern char aio_write(); aio_write();
#endif
; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
has_aio_write=yes
else
rm -rf conftest*
has_aio_write=no
fi
rm -f conftest*
if test "$has_aio_h" = "yes" -a "$has_aio_write" = "yes" -a \
"$has_pthread" = "yes" ; then
use_aio=yes
fi
# Check for aiocb_t as a shorthand for struct aiocb
test -n "$silent" || echo "checking for for aiocb_t"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <aio.h>
int main() { return 0; }
int t() { aiocb_t a;; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
has_aiocb_t=yes
else
rm -rf conftest*
has_aiocb_t=no
fi
rm -f conftest*
if test "$has_aiocb_t" = "no" ; then
{
test -n "$verbose" && \
echo " defining NEEDS_AIOCB_T"
echo "#define" NEEDS_AIOCB_T "1" >> confdefs.h
DEFS="$DEFS -DNEEDS_AIOCB_T=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NEEDS_AIOCB_T\${ac_dB}NEEDS_AIOCB_T\${ac_dC}1\${ac_dD}
\${ac_uA}NEEDS_AIOCB_T\${ac_uB}NEEDS_AIOCB_T\${ac_uC}1\${ac_uD}
\${ac_eA}NEEDS_AIOCB_T\${ac_eB}NEEDS_AIOCB_T\${ac_eC}1\${ac_eD}
"
}
fi
if test "$use_aio" = "yes" ; then
MPI_LIB="$MPI_LIB $add_lib"
ROMIO_LIBLIST="$ROMIO_LIBLIST $add_lib"
else
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
fi
fi
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="ufs nfs"
echo "configuring for file systems ufs and nfs"
fi
fi
{
test -n "$verbose" && \
echo " defining" ROMIO_HAVE_STATFS_F_FSTYPENAME to be "$HAVE_STATFS_F_FSTYPENAME"
echo "#define" ROMIO_HAVE_STATFS_F_FSTYPENAME "$HAVE_STATFS_F_FSTYPENAME" >> confdefs.h
DEFS="$DEFS -DROMIO_HAVE_STATFS_F_FSTYPENAME=$HAVE_STATFS_F_FSTYPENAME"
ac_sed_defs="${ac_sed_defs}\${ac_dA}ROMIO_HAVE_STATFS_F_FSTYPENAME\${ac_dB}ROMIO_HAVE_STATFS_F_FSTYPENAME\${ac_dC}$HAVE_STATFS_F_FSTYPENAME\${ac_dD}
\${ac_uA}ROMIO_HAVE_STATFS_F_FSTYPENAME\${ac_uB}ROMIO_HAVE_STATFS_F_FSTYPENAME\${ac_uC}$HAVE_STATFS_F_FSTYPENAME\${ac_uD}
\${ac_eA}ROMIO_HAVE_STATFS_F_FSTYPENAME\${ac_eB}ROMIO_HAVE_STATFS_F_FSTYPENAME\${ac_eC}$HAVE_STATFS_F_FSTYPENAME\${ac_eD}
"
}
#
if test -n "$arch_SX4" ; then
CC=${CC:-mpicc}
F77=${FC:-mpif90}
if test $DEBUG = "yes" ; then
CFLAGS="$CFLAGS -g"
FFLAGS="$FFLAGS -g"
else
USER_FFLAGS="$FFLAGS -Chopt"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# CFLAGS="$CFLAGS -O"
FFLAGS="$FFLAGS -Chopt"
fi
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining SX4"
echo "#define" SX4 "1" >> confdefs.h
DEFS="$DEFS -DSX4=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SX4\${ac_dB}SX4\${ac_dC}1\${ac_dD}
\${ac_uA}SX4\${ac_uB}SX4\${ac_uC}1\${ac_uD}
\${ac_eA}SX4\${ac_eB}SX4\${ac_eC}1\${ac_eD}
"
}
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
file_system_sfs=1
file_system_nfs=1
FILE_SYSTEM="sfs nfs"
echo "configuring for file systems sfs and nfs"
fi
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=8)"
fi
#
if test -n "$arch_hpux" || test -n "$arch_sppux" ; then
if test $DEBUG = "yes"; then
CFLAGS="$CFLAGS -g +w1"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
RANLIB=":"
if test -z "$MPI"; then
if test -f "/opt/mpi/include/mpi.h" ; then
echo "assuming that you want to use ROMIO with HP MPI"
MPI=hp
else
echo "assuming that you want to use ROMIO with MPICH"
MPI=mpich
fi
fi
if test $MPI = "mpich" ; then
mpi_mpich=1
MPI_LIB="$MPI_LIB -lV3"
CC=${CC:-cc -Ae}
F77=${FC:-f77 +U77}
fi
if test $MPI = "hp" ; then
mpi_hp=1
CC=${CC:-mpicc -Ae}
F77=${FC:-mpif77 +U77}
fi
if test $MPI = "lam" && test "$FC" != ""; then
FC="$FC +U77"
fi
FTESTDEFINE="external iargc, getarg"
if test -n "$arch_hpux" ; then
CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
{
test -n "$verbose" && \
echo " defining HPUX"
echo "#define" HPUX "1" >> confdefs.h
DEFS="$DEFS -DHPUX=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HPUX\${ac_dB}HPUX\${ac_dC}1\${ac_dD}
\${ac_uA}HPUX\${ac_uB}HPUX\${ac_uC}1\${ac_uD}
\${ac_eA}HPUX\${ac_eB}HPUX\${ac_eC}1\${ac_eD}
"
}
if test $MPI = "hp" ; then
F77=${FC:-mpif90 +U77}
else
F77=${FC:-f90 +U77}
fi
else
{
test -n "$verbose" && \
echo " defining SPPUX"
echo "#define" SPPUX "1" >> confdefs.h
DEFS="$DEFS -DSPPUX=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SPPUX\${ac_dB}SPPUX\${ac_dC}1\${ac_dD}
\${ac_uA}SPPUX\${ac_uB}SPPUX\${ac_uC}1\${ac_uD}
\${ac_eA}SPPUX\${ac_eB}SPPUX\${ac_eC}1\${ac_eD}
"
}
fi
if test -z "$FILE_SYSTEM" ; then
if test -n "$arch_hpux" ; then
test -n "$silent" || echo "checking for struct flock64"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <fcntl.h>
int main() { return 0; }
int t() {
struct flock64 fl; int i=F_SETLKW64;; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
flock64_ok="yes"
else
rm -rf conftest*
flock64_ok="no"
fi
rm -f conftest*
else
flock64_ok="yes"
fi
if test $flock64_ok = "yes" ; then
file_system_hfs=1
file_system_nfs=1
FILE_SYSTEM="hfs nfs"
echo "configuring for file systems hfs and nfs"
else
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="ufs nfs"
echo "no flock64; configuring for file systems ufs and nfs"
fi
fi
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=8)"
if test "$CC" != "gcc" ; then
ROMIO_TCFLAGS="-Ae"
fi
if test "$F77" != "g77" ; then
ROMIO_TFFLAGS="+U77"
fi
fi
#
if test -n "$arch_alpha" || test -n "$arch_ALPHA" ; then
CC=${CC:-cc}
F77=${FC:-f77}
if test $DEBUG = "yes"; then
CFLAGS="$CFLAGS -g -verbose"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
{
test -n "$verbose" && \
echo " defining AIO_PRIORITY_DEFAULT"
echo "#define" AIO_PRIORITY_DEFAULT "1" >> confdefs.h
DEFS="$DEFS -DAIO_PRIORITY_DEFAULT=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}AIO_PRIORITY_DEFAULT\${ac_dB}AIO_PRIORITY_DEFAULT\${ac_dC}1\${ac_dD}
\${ac_uA}AIO_PRIORITY_DEFAULT\${ac_uB}AIO_PRIORITY_DEFAULT\${ac_uC}1\${ac_uD}
\${ac_eA}AIO_PRIORITY_DEFAULT\${ac_eB}AIO_PRIORITY_DEFAULT\${ac_eC}1\${ac_eD}
"
}
MPI_LIB="$MPI_LIB -laio"
if test -z "$MPI" ; then
MPI=mpich
mpi_mpich=1
fi
if test -z "$FILE_SYSTEM" ; then
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="ufs nfs"
echo "configuring for file systems ufs and nfs"
fi
{
test -n "$verbose" && \
echo " defining DEC"
echo "#define" DEC "1" >> confdefs.h
DEFS="$DEFS -DDEC=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}DEC\${ac_dB}DEC\${ac_dC}1\${ac_dD}
\${ac_uA}DEC\${ac_uB}DEC\${ac_uC}1\${ac_uD}
\${ac_eA}DEC\${ac_eB}DEC\${ac_eC}1\${ac_eD}
"
}
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=8)"
ROMIO_LIBLIST="-laio"
fi
#
if test -n "$arch_CRAY" ; then
CC=${CC:-cc}
F77=${FC:-f90}
NOF77=1
FTESTDEFINE="integer ilen"
F77GETARG="call pxfgetarg(i, str, ilen, ierr)"
if test $DEBUG = "yes"; then
CFLAGS="$CFLAGS -g"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
{
test -n "$verbose" && \
echo " defining NO_AIO"
echo "#define" NO_AIO "1" >> confdefs.h
DEFS="$DEFS -DNO_AIO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_AIO\${ac_dB}NO_AIO\${ac_dC}1\${ac_dD}
\${ac_uA}NO_AIO\${ac_uB}NO_AIO\${ac_uC}1\${ac_uD}
\${ac_eA}NO_AIO\${ac_eB}NO_AIO\${ac_eC}1\${ac_eD}
"
}
RANLIB=":"
CFLAGS="$CFLAGS -D_UNICOS"
{
test -n "$verbose" && \
echo " defining CRAY"
echo "#define" CRAY "1" >> confdefs.h
DEFS="$DEFS -DCRAY=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY\${ac_dB}CRAY\${ac_dC}1\${ac_dD}
\${ac_uA}CRAY\${ac_uB}CRAY\${ac_uC}1\${ac_uD}
\${ac_eA}CRAY\${ac_eB}CRAY\${ac_eC}1\${ac_eD}
"
}
if test -z "$MPI" || test -n "$mpi_sgi" ; then
MPI=cray
mpi_cray=1
mpi_sgi=""
# above is to disable configure tests specific to SGI MPI
{
test -n "$verbose" && \
echo " defining MPISGI"
echo "#define" MPISGI "1" >> confdefs.h
DEFS="$DEFS -DMPISGI=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}MPISGI\${ac_dB}MPISGI\${ac_dC}1\${ac_dD}
\${ac_uA}MPISGI\${ac_uB}MPISGI\${ac_uC}1\${ac_uD}
\${ac_eA}MPISGI\${ac_eB}MPISGI\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining HAVE_MPI_COMBINERS"
echo "#define" HAVE_MPI_COMBINERS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_COMBINERS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_COMBINERS\${ac_dB}HAVE_MPI_COMBINERS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_COMBINERS\${ac_uB}HAVE_MPI_COMBINERS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_COMBINERS\${ac_eB}HAVE_MPI_COMBINERS\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining NO_MPI_SGI_type_is_contig"
echo "#define" NO_MPI_SGI_type_is_contig "1" >> confdefs.h
DEFS="$DEFS -DNO_MPI_SGI_type_is_contig=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_MPI_SGI_type_is_contig\${ac_dB}NO_MPI_SGI_type_is_contig\${ac_dC}1\${ac_dD}
\${ac_uA}NO_MPI_SGI_type_is_contig\${ac_uB}NO_MPI_SGI_type_is_contig\${ac_uC}1\${ac_uD}
\${ac_eA}NO_MPI_SGI_type_is_contig\${ac_eB}NO_MPI_SGI_type_is_contig\${ac_eC}1\${ac_eD}
"
}
fi
# MPISGI needed because of error in Cray's and SGI's
# MPI_Type_get_contents (does not increment reference count).
# Others needed because MPISGI needed.
if test -z "$FILE_SYSTEM" ; then
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="ufs nfs"
echo "configuring for file systems ufs and nfs"
fi
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=8)"
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
if test -n "$arch_sgi5" ; then
arch_IRIX5=1
ARCH=IRIX
fi
#
#
if test -n "$arch_IRIX"; 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for IRIX OS version""... $ac_c"
else
echo $ac_n "checking for IRIX OS version""... $ac_c" 1>&1
fi
osversion=`uname -r | sed 's/\..*//'`
osvminor=`uname -r | sed 's/[0-9]\.\([0-9]*\)\..*/\1/'`
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$osversion"
else
echo "$ac_t""$osversion" 1>&1
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for IRIX cpucount""... $ac_c"
else
echo $ac_n "checking for IRIX cpucount""... $ac_c" 1>&1
fi
cpucount=`hinv | grep '[0-9]* [0-9]* MHZ IP[0-9]* Proc' | cut -f 1 -d' '`
if test "$cpucount" = "" ; then
cpucount=`hinv | grep 'Processor [0-9]*:' | wc -l | sed -e 's/ //g'`
fi
if test "$cpucount" = "" ; then
print_error "Could not determine cpucount."
print_error "Please send "
hinv
print_error "to romio-maint@mcs.anl.gov"
exit 1
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$cpucount"
else
echo "$ac_t""$cpucount" 1>&1
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for IRIX cpumodel""... $ac_c"
else
echo $ac_n "checking for IRIX cpumodel""... $ac_c" 1>&1
fi
cputype=`hinv -t cpu | tail -1 | cut -f 3 -d' '`
if test -z "$cputype" ; then
print_error "Could not get cputype from hinv -t cpu command."
print_error "Please send "
hinv -t cpu 2>&1
hinv -t cpu | cut -f 3 -d' ' 2>&1
print_error "to romio-maint@mcs.anl.gov"
exit 1
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$cputype"
else
echo "$ac_t""$cputype" 1>&1
fi
if test -z "$osversion" ; then
print_error "Could not determine OS version. Please send"
print_error " "
uname -a
print_error "to romio-maint@mcs.anl.gov"
exit 1
elif test $osversion = 4 ; then
true
elif test $osversion = 5 ; then
true
elif test $osversion = 6 ; then
true
else
print_error "Could not recognize the version of IRIX (got $osversion)"
print_error "ROMIO knows about versions 4, 5 and 6; the version being"
print_error "returned from uname -r is $osversion."
print_error "Please send"
uname -a 2>&1
hinv 2>&1
print_error "to romio-maint@mcs.anl.gov"
exit 1
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for cputype""... $ac_c"
else
echo $ac_n "checking for cputype""... $ac_c" 1>&1
fi
OLD_ARCH=IRIX
IRIXARCH="$ARCH_$osversion"
cputype=`echo $cputype | sed -e 's%.*/%%' -e 's/R//' | tr -d "[A-Z]"`
case $cputype in
3000) ;;
4000) ;;
4400) ;;
4600) ;;
5000) ;;
8000) ;;
10000);;
12000);;
*)
print_error "Unexpected IRIX/MIPS chipset $cputype. Please send the output"
print_error " "
uname -a 2>&1
hinv 2>&1
print_error " "
print_error "to romio-maint@mcs.anl.gov"
print_error "ROMIO will continue and assume that the cputype is"
print_error "compatible with a MIPS 4400 processor."
print_error " "
cputype=4400
;;
esac
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$cputype"
else
echo "$ac_t""$cputype" 1>&1
fi
IRIXARCH="$IRIXARCH_$cputype"
echo "IRIX-specific architecture is $IRIXARCH"
fi
#
# special case 'sgi5' for use on MESHINE which is much like an SGI running
# irix 5 with r4400 chips, but does not have 'hinv', so above code doesn't
# work
if test -n "$arch_sgi5"; then
osversion=5
cputype=4400
IRIXARCH="$ARCH_$osversion"
IRIXARCH="$IRIXARCH_$cputype"
# now set arch_IRIX to 1
arch_IRIX=1
echo "IRIX-specific architecture is $IRIXARCH"
{
test -n "$verbose" && \
echo " defining IRIX"
echo "#define" IRIX "1" >> confdefs.h
DEFS="$DEFS -DIRIX=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}IRIX\${ac_dB}IRIX\${ac_dC}1\${ac_dD}
\${ac_uA}IRIX\${ac_uB}IRIX\${ac_uC}1\${ac_uD}
\${ac_eA}IRIX\${ac_eB}IRIX\${ac_eC}1\${ac_eD}
"
}
fi
#
if test -n "$arch_IRIX"; then
CC=${CC:-cc}
F77=${FC:-f77}
if test $DEBUG = "yes"; then
CFLAGS="$CFLAGS -g -fullwarn"
# LAM/MPI: Don't add any optflags; they come in from the top-level configure
# else
# CFLAGS="$CFLAGS -O"
fi
if test $osversion = 4 ; then
RANLIB="ar ts"
if test -n "$mpi_sgi"; then
echo "Error: SGI's MPI doesn't work with IRIX 4.x"
exit 1
fi
elif test $osversion = 5 ; then
if test -n "$mpi_sgi"; then
echo "Error: SGI's MPI doesn't work with IRIX 5.x"
exit 1
fi
elif test $osversion = 6 ; then
if test -z "$MPI"; then
if test -f "/usr/include/mpi.h" ; then
echo "assuming that you want to use ROMIO with SGI's MPI"
MPI=sgi
mpi_sgi=1
else
echo "assuming that you want to use ROMIO with MPICH"
MPI=mpich
mpi_mpich=1
fi
fi
RANLIB=":"
{
test -n "$verbose" && \
echo " defining AIO_SIGNOTIFY_NONE"
echo "#define" AIO_SIGNOTIFY_NONE "1" >> confdefs.h
DEFS="$DEFS -DAIO_SIGNOTIFY_NONE=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}AIO_SIGNOTIFY_NONE\${ac_dB}AIO_SIGNOTIFY_NONE\${ac_dC}1\${ac_dD}
\${ac_uA}AIO_SIGNOTIFY_NONE\${ac_uB}AIO_SIGNOTIFY_NONE\${ac_uC}1\${ac_uD}
\${ac_eA}AIO_SIGNOTIFY_NONE\${ac_eB}AIO_SIGNOTIFY_NONE\${ac_eC}1\${ac_eD}
"
}
if test $cputype -ge 5000 ; then
MIPS=4
else
MIPS=3
fi
fi
if test -n "$mpi_sgi" && test -z "$MPI_LIB" ; then
MPI_LIB="-lmpi"
fi
# check if pread64 is defined
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if pread64 is defined""... $ac_c"
else
echo $ac_n "checking if pread64 is defined""... $ac_c" 1>&1
fi
rm -f conftest.c
cat > conftest.c <<EOF
#include <unistd.h>
main()
{
int fd=0, buf=0, i=0;
off64_t off=0;
pread64(fd, &buf, i, off);
}
EOF
rm -f conftest
$CC $USER_CFLAGS -o conftest conftest.c > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_PREAD64"
echo "#define" HAVE_PREAD64 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_PREAD64=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PREAD64\${ac_dB}HAVE_PREAD64\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_PREAD64\${ac_uB}HAVE_PREAD64\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_PREAD64\${ac_eB}HAVE_PREAD64\${ac_eC}1\${ac_eD}
"
}
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 conftest.c
#
if test -z "$FILE_SYSTEM" ; then
file_system_nfs=1
FILE_SYSTEM="nfs"
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for xfs""... $ac_c"
else
echo $ac_n "checking for xfs""... $ac_c" 1>&1
fi
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <aio.h>
int main() { return 0; }
int t() { aiocb64_t *t1;; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
file_system_xfs=1;FILE_SYSTEM="xfs $FILE_SYSTEM";
fi
rm -f conftest*
if test "$file_system_xfs" = 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
file_system_ufs=1
FILE_SYSTEM="ufs $FILE_SYSTEM"
fi
echo "configuring for file systems $FILE_SYSTEM"
fi
{
test -n "$verbose" && \
echo " defining IRIX"
echo "#define" IRIX "1" >> confdefs.h
DEFS="$DEFS -DIRIX=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}IRIX\${ac_dB}IRIX\${ac_dC}1\${ac_dD}
\${ac_uA}IRIX\${ac_uB}IRIX\${ac_uC}1\${ac_uD}
\${ac_eA}IRIX\${ac_eB}IRIX\${ac_eC}1\${ac_eD}
"
}
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=8)"
fi
for ac_func in memalign
do
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
test -n "$silent" || echo "checking for ${ac_func}"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
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_${ac_func}) || defined (__stub___${ac_func})
choke me
#else
/* Override any gcc2 internal prototype to avoid an error. */
extern char ${ac_func}(); ${ac_func}();
#endif
; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
{
test -n "$verbose" && \
echo " defining ${ac_tr_func}"
echo "#define" ${ac_tr_func} "1" >> confdefs.h
DEFS="$DEFS -D${ac_tr_func}=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
"
}
fi
rm -f conftest*
done
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPIR_Status_set_bytes is defined""... $ac_c"
else
echo $ac_n "checking if MPIR_Status_set_bytes is defined""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
MPI_Status status;
MPI_Datatype type;
int err;
MPI_Init(&argc,&argv);
MPIR_Status_set_bytes(status,type,err);
MPI_Finalize();
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_STATUS_SET_BYTES"
echo "#define" HAVE_STATUS_SET_BYTES "1" >> confdefs.h
DEFS="$DEFS -DHAVE_STATUS_SET_BYTES=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STATUS_SET_BYTES\${ac_dB}HAVE_STATUS_SET_BYTES\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_STATUS_SET_BYTES\${ac_uB}HAVE_STATUS_SET_BYTES\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_STATUS_SET_BYTES\${ac_eB}HAVE_STATUS_SET_BYTES\${ac_eC}1\${ac_eD}
"
}
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 mpitest.c
if test $NOF77 = 0 ; then
echo "checking Fortran external names"
rm -f confftest.f confftest.o
cat > confftest.f <<EOF
subroutine mpir_init_fop( a )
integer a
a = 1
return
end
EOF
$F77 $FFLAGS -c confftest.f > /dev/null 2>&1
if test ! -s confftest.o ; then
print_error "Unable to test Fortran compiler"
print_error "(compiling a test program failed to produce an "
print_error "object file)."
NOF77=1
elif test -z "$FORTRANNAMES" ; then
if test $arch_CRAY ; then
# Cray doesn't accept -a ...
nameform1=`strings confftest.o | grep mpir_init_fop_ | head -1`
nameform2=`strings confftest.o | grep MPIR_INIT_FOP | head -1`
nameform3=`strings confftest.o | grep mpir_init_fop | head -1`
nameform4=`strings confftest.o | grep mpir_init_fop__ | head -1`
else
nameform1=`strings -a confftest.o | grep mpir_init_fop_ | head -1`
nameform2=`strings -a confftest.o | grep MPIR_INIT_FOP | head -1`
nameform3=`strings -a confftest.o | grep mpir_init_fop | head -1`
nameform4=`strings -a confftest.o | grep mpir_init_fop__ | head -1`
fi
rm -f confftest.f confftest.o
if test -n "$nameform4" ; then
echo "Fortran externals are lower case and have two trailing underscores"
FORTRANNAMES="FORTRANDOUBLEUNDERSCORE"
elif test -n "$nameform1" ; then
# We don't set this in CFLAGS; it is a default case
echo "Fortran externals have a trailing underscore and are lowercase"
FORTRANNAMES="FORTRANUNDERSCORE"
elif test -n "$nameform2" ; then
echo "Fortran externals are uppercase"
FORTRANNAMES="FORTRANCAPS"
elif test -n "$nameform3" ; then
echo "Fortran externals are lower case"
FORTRANNAMES="FORTRANNOUNDERSCORE"
else
print_error "Unable to determine the form of Fortran external names"
print_error "Make sure that the compiler $F77 can be run on this system"
print_error "Turning off Fortran (-nof77 being assumed)."
NOF77=1
fi
fi
if test -n "$FORTRANNAMES" ; then
WDEF="-D$FORTRANNAMES"
fi
if test -n "$WDEF" ; then
CFLAGS="$CFLAGS $WDEF"
fi
rm -f test/mpif.h
if test "$MPI_INCLUDE_DIR" != "." && test $FROM_MPICH = 0 && test $FROM_LAM = 0 ; then
if test ! -d test ; then mkdir test ; fi
ln -s $MPI_INCLUDE_DIR/mpif.h test
fi
else
F77=":"
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for inline""... $ac_c"
else
echo $ac_n "checking for inline""... $ac_c" 1>&1
fi
if eval "test \"`echo '$''{'pac_cv_c_inline'+set}'`\" = set"; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""(cached)"
else
echo "$ac_t""(cached)" 1>&1
fi
else
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
inline int a( int b ){return b+1;}
int main() { return 0; }
int t() { int a;; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
pac_cv_c_inline="yes"
else
rm -rf conftest*
pac_cv_c_inline="no"
fi
rm -f conftest*
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$pac_cv_c_inline"
else
echo "$ac_t""$pac_cv_c_inline" 1>&1
fi
if test "$pac_cv_c_inline" = "no" ; then
{
test -n "$verbose" && \
echo " defining inline"
echo "#define" inline "1" >> confdefs.h
DEFS="$DEFS -Dinline=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}inline\${ac_dB}inline\${ac_dC}1\${ac_dD}
\${ac_uA}inline\${ac_uB}inline\${ac_uC}1\${ac_uD}
\${ac_eA}inline\${ac_eB}inline\${ac_eC}1\${ac_eD}
"
}
fi
# Header files
for ac_hdr in unistd.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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
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
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <$ac_hdr>
int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_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"
ac_sed_defs="${ac_sed_defs}\${ac_dA}$ac_tr_hdr\${ac_dB}$ac_tr_hdr\${ac_dC}1\${ac_dD}
\${ac_uA}$ac_tr_hdr\${ac_uB}$ac_tr_hdr\${ac_uC}1\${ac_uD}
\${ac_eA}$ac_tr_hdr\${ac_eB}$ac_tr_hdr\${ac_eC}1\${ac_eD}
"
}
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
#
if test -z "$intsize" ; then
Pac_name="int"
Pac_varname=`echo "$Pac_name" | sed -e 's/ /_/g' -e 's/\*/star/g'`
eval Pac_testval=\$"${Pac_varname}_len"
if test -z "$Pac_testval" ; then
eval Pac_testval=\$"CROSS_SIZEOF_INT"
fi
if test -n "$Pac_testval" ; then
Pac_CV_NAME=$Pac_testval
else
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for size of int""... $ac_c"
else
echo $ac_n "checking for size of int""... $ac_c" 1>&1
fi
/bin/rm -f conftestval
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
main() {
FILE *f=fopen("conftestval","w");
if (!f) exit(1);
fprintf( f, "%d\n", sizeof(int));
exit(0);
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
Pac_CV_NAME=`cat conftestval`
else
Pac_CV_NAME=""
fi
rm -fr conftest*
/bin/rm -f conftestval
if test -n "$Pac_CV_NAME" -a "$Pac_CV_NAME" != 0 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$Pac_CV_NAME"
else
echo "$ac_t""$Pac_CV_NAME" 1>&1
fi
eval ${Pac_varname}_len=$Pac_CV_NAME
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""unavailable"
else
echo "$ac_t""unavailable" 1>&1
fi
fi
fi
intsize=$Pac_CV_NAME
fi
if test -z "$pointersize" ; then
Pac_name="void *"
Pac_varname=`echo "$Pac_name" | sed -e 's/ /_/g' -e 's/\*/star/g'`
eval Pac_testval=\$"${Pac_varname}_len"
if test -z "$Pac_testval" ; then
eval Pac_testval=\$"CROSS_SIZEOF_VOID_P"
fi
if test -n "$Pac_testval" ; then
Pac_CV_NAME=$Pac_testval
else
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for size of void *""... $ac_c"
else
echo $ac_n "checking for size of void *""... $ac_c" 1>&1
fi
/bin/rm -f conftestval
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
main() {
FILE *f=fopen("conftestval","w");
if (!f) exit(1);
fprintf( f, "%d\n", sizeof(void *));
exit(0);
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
Pac_CV_NAME=`cat conftestval`
else
Pac_CV_NAME=""
fi
rm -fr conftest*
/bin/rm -f conftestval
if test -n "$Pac_CV_NAME" -a "$Pac_CV_NAME" != 0 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$Pac_CV_NAME"
else
echo "$ac_t""$Pac_CV_NAME" 1>&1
fi
eval ${Pac_varname}_len=$Pac_CV_NAME
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""unavailable"
else
echo "$ac_t""unavailable" 1>&1
fi
fi
fi
pointersize=$Pac_CV_NAME
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for int large enough for pointers""... $ac_c"
else
echo $ac_n "checking for int large enough for pointers""... $ac_c" 1>&1
fi
if test -n "$pointersize" -a -n "$intsize" ; then
if test $pointersize -le $intsize ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
else
{
test -n "$verbose" && \
echo " defining INT_LT_POINTER"
echo "#define" INT_LT_POINTER "1" >> confdefs.h
DEFS="$DEFS -DINT_LT_POINTER=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}INT_LT_POINTER\${ac_dB}INT_LT_POINTER\${ac_dC}1\${ac_dD}
\${ac_uA}INT_LT_POINTER\${ac_uB}INT_LT_POINTER\${ac_uC}1\${ac_uD}
\${ac_eA}INT_LT_POINTER\${ac_eB}INT_LT_POINTER\${ac_eC}1\${ac_eD}
"
}
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""cannot determine; assuming it is;"
else
echo "$ac_t""cannot determine; assuming it is;" 1>&1
fi
echo "use '-intsize' and '-ptrsize' to indicate otherwise"
fi
#
if test -n "$longlongsize" ; then
if test "$longlongsize" = 8 ; then
echo "defining MPI_Offset as long long in C and integer*8 in Fortran"
{
test -n "$verbose" && \
echo " defining HAVE_LONG_LONG_64"
echo "#define" HAVE_LONG_LONG_64 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_LONG_LONG_64=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_LONG_64\${ac_dB}HAVE_LONG_LONG_64\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_LONG_LONG_64\${ac_uB}HAVE_LONG_LONG_64\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_LONG_LONG_64\${ac_eB}HAVE_LONG_LONG_64\${ac_eC}1\${ac_eD}
"
}
DEFINE_MPI_OFFSET="typedef long long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer*8"
LL="\%lld"
elif test "$longlongsize" = "int" ; then # a hack to set MPI_Offset as int
echo "defining MPI_Offset as int in C and integer in Fortran"
DEFINE_MPI_OFFSET="typedef int MPI_Offset;"
FORTRAN_MPI_OFFSET="integer"
{
test -n "$verbose" && \
echo " defining MPI_OFFSET_IS_INT"
echo "#define" MPI_OFFSET_IS_INT "1" >> confdefs.h
DEFS="$DEFS -DMPI_OFFSET_IS_INT=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}MPI_OFFSET_IS_INT\${ac_dB}MPI_OFFSET_IS_INT\${ac_dC}1\${ac_dD}
\${ac_uA}MPI_OFFSET_IS_INT\${ac_uB}MPI_OFFSET_IS_INT\${ac_uC}1\${ac_uD}
\${ac_eA}MPI_OFFSET_IS_INT\${ac_eB}MPI_OFFSET_IS_INT\${ac_eC}1\${ac_eD}
"
}
LL="\%d"
MPI_OFFSET_KIND1="!"
MPI_OFFSET_KIND2="!"
else
echo "defining MPI_Offset as long in C and integer in Fortran"
DEFINE_MPI_OFFSET="typedef long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer"
LL="\%ld"
MPI_OFFSET_KIND1="!"
MPI_OFFSET_KIND2="!"
fi
else
Pac_name="long long"
Pac_varname=`echo "$Pac_name" | sed -e 's/ /_/g' -e 's/\*/star/g'`
eval Pac_testval=\$"${Pac_varname}_len"
if test -z "$Pac_testval" ; then
eval Pac_testval=\$"CROSS_SIZEOF_LONG_LONG"
fi
if test -n "$Pac_testval" ; then
Pac_CV_NAME=$Pac_testval
else
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for size of long long""... $ac_c"
else
echo $ac_n "checking for size of long long""... $ac_c" 1>&1
fi
/bin/rm -f conftestval
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
main() {
FILE *f=fopen("conftestval","w");
if (!f) exit(1);
fprintf( f, "%d\n", sizeof(long long));
exit(0);
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
Pac_CV_NAME=`cat conftestval`
else
Pac_CV_NAME=""
fi
rm -fr conftest*
/bin/rm -f conftestval
if test -n "$Pac_CV_NAME" -a "$Pac_CV_NAME" != 0 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$Pac_CV_NAME"
else
echo "$ac_t""$Pac_CV_NAME" 1>&1
fi
eval ${Pac_varname}_len=$Pac_CV_NAME
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""unavailable"
else
echo "$ac_t""unavailable" 1>&1
fi
fi
fi
longlongsize=$Pac_CV_NAME
if test -n "$longlongsize" ; then
if test "$longlongsize" = 8 ; 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if the compiler prints long longs correctly with %lld""... $ac_c"
else
echo $ac_n "checking if the compiler prints long longs correctly with %lld""... $ac_c" 1>&1
fi
rm -f conftestll
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
main() {
long long i=8;
FILE *f=fopen("conftestll","w");
if (!f) exit(1);
fprintf( f, "%lld\n", i);
exit(0);
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
Pac_CV_NAME=`cat conftestll`
else
Pac_CV_NAME=""
fi
rm -fr conftest*
rm -f conftestll
if test "$Pac_CV_NAME" = 8 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_LONG_LONG_64"
echo "#define" HAVE_LONG_LONG_64 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_LONG_LONG_64=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_LONG_64\${ac_dB}HAVE_LONG_LONG_64\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_LONG_LONG_64\${ac_uB}HAVE_LONG_LONG_64\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_LONG_LONG_64\${ac_eB}HAVE_LONG_LONG_64\${ac_eC}1\${ac_eD}
"
}
DEFINE_MPI_OFFSET="typedef long long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer*8"
echo "defining MPI_Offset as long long in C and integer*8 in Fortran"
LL="\%lld"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if the compiler prints long longs correctly with %ld""... $ac_c"
else
echo $ac_n "checking if the compiler prints long longs correctly with %ld""... $ac_c" 1>&1
fi
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
main() {
long long i=8;
FILE *f=fopen("conftestll","w");
if (!f) exit(1);
fprintf( f, "%ld\n", i);
exit(0);
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
Pac_CV_NAME=`cat conftestll`
else
Pac_CV_NAME=""
fi
rm -fr conftest*
rm -f conftestll
if test "$Pac_CV_NAME" = 8 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_LONG_LONG_64"
echo "#define" HAVE_LONG_LONG_64 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_LONG_LONG_64=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_LONG_64\${ac_dB}HAVE_LONG_LONG_64\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_LONG_LONG_64\${ac_uB}HAVE_LONG_LONG_64\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_LONG_LONG_64\${ac_eB}HAVE_LONG_LONG_64\${ac_eC}1\${ac_eD}
"
}
DEFINE_MPI_OFFSET="typedef long long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer*8"
echo "defining MPI_Offset as long long in C and integer*8 in Fortran"
LL="\%ld"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no!!"
else
echo "$ac_t""no!!" 1>&1
fi
echo "the compiler doesn't print long longs correctly!"
echo "defining MPI_Offset as long in C and integer in Fortran"
DEFINE_MPI_OFFSET="typedef long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer"
LL="\%ld"
MPI_OFFSET_KIND1="!"
MPI_OFFSET_KIND2="!"
fi
fi
else
echo "defining MPI_Offset as long in C and integer in Fortran"
DEFINE_MPI_OFFSET="typedef long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer"
LL="\%ld"
MPI_OFFSET_KIND1="!"
MPI_OFFSET_KIND2="!"
fi
else
rm -f ltest.c
cat > ltest.c <<EOF
main()
{
long long i=8;
return 0;
}
EOF
rm -f conftest
$CC $USER_CFLAGS -o conftest ltest.c > /dev/null 2>&1
if test -x conftest ; then
echo "assuming size of long long is 8bytes; use '-longlongsize' to indicate otherwise"
rm -f conftest ltest.c
echo "defining MPI_Offset as long long in C and integer*8 in Fortran"
{
test -n "$verbose" && \
echo " defining HAVE_LONG_LONG_64"
echo "#define" HAVE_LONG_LONG_64 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_LONG_LONG_64=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_LONG_64\${ac_dB}HAVE_LONG_LONG_64\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_LONG_LONG_64\${ac_uB}HAVE_LONG_LONG_64\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_LONG_LONG_64\${ac_eB}HAVE_LONG_LONG_64\${ac_eC}1\${ac_eD}
"
}
DEFINE_MPI_OFFSET="typedef long long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer*8"
LL="\%lld"
else
echo "assuming long long is not available; use '-longlongsize' to indicate otherwise"
echo "defining MPI_Offset as long in C and integer in Fortran"
DEFINE_MPI_OFFSET="typedef long MPI_Offset;"
FORTRAN_MPI_OFFSET="integer"
LL="\%ld"
MPI_OFFSET_KIND1="!"
MPI_OFFSET_KIND2="!"
fi
fi
fi
#
#
if test -n "$longlongsize"; then
if test $FROM_MPICH = 0 -a $FROM_LAM = 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPI_LONG_LONG_INT is defined in mpi.h""... $ac_c"
else
echo $ac_n "checking if MPI_LONG_LONG_INT is defined in mpi.h""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
long long i;
MPI_Init(&argc,&argv);
MPI_Send(&i, 1, MPI_LONG_LONG_INT, 0, 0, MPI_COMM_WORLD);
MPI_Finalize();
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_MPI_LONG_LONG_INT"
echo "#define" HAVE_MPI_LONG_LONG_INT "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_LONG_LONG_INT=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_LONG_LONG_INT\${ac_dB}HAVE_MPI_LONG_LONG_INT\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_LONG_LONG_INT\${ac_uB}HAVE_MPI_LONG_LONG_INT\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_LONG_LONG_INT\${ac_eB}HAVE_MPI_LONG_LONG_INT\${ac_eC}1\${ac_eD}
"
}
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 mpitest.c
else
{
test -n "$verbose" && \
echo " defining HAVE_MPI_LONG_LONG_INT"
echo "#define" HAVE_MPI_LONG_LONG_INT "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_LONG_LONG_INT=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_LONG_LONG_INT\${ac_dB}HAVE_MPI_LONG_LONG_INT\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_LONG_LONG_INT\${ac_uB}HAVE_MPI_LONG_LONG_INT\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_LONG_LONG_INT\${ac_eB}HAVE_MPI_LONG_LONG_INT\${ac_eC}1\${ac_eD}
"
}
fi
fi
#
if test -n "$OFFSET_KIND" -a "A$MPI_OFFSET_KIND1" = "A!" ; then
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=$OFFSET_KIND)"
else
if test "$FORTRAN_MPI_OFFSET" = "integer*8" && test "A$MPI_OFFSET_KIND2" = "A!" && 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for Fortran 90 KIND parameter for 8-byte integers""... $ac_c"
else
echo $ac_n "checking for Fortran 90 KIND parameter for 8-byte integers""... $ac_c" 1>&1
fi
rm -f kind.f kind.o kind
cat <<EOF > kind.f
program main
integer i
i = selected_int_kind(16)
open(8, file="k.out", form="formatted")
write (8,*) i
close(8)
stop
end
EOF
if test -z "$F90" ; then
F90=f90
fi
KINDVAL=""
if $F90 -o kind kind.f >/dev/null 2>&1 ; then
./kind >/dev/null 2>&1
if test -s k.out ; then
KINDVAL=`cat k.out`
fi
fi
rm -f kind k.out kind.f kind.o k.out
if test -n "$KINDVAL" -a "$KINDVAL" != "-1" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$KINDVAL"
else
echo "$ac_t""$KINDVAL" 1>&1
fi
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=$KINDVAL)"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""unavailable"
else
echo "$ac_t""unavailable" 1>&1
fi
fi
fi
#
if test "$FORTRAN_MPI_OFFSET" = "integer" && test "A$MPI_OFFSET_KIND2" = "A!" && 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for Fortran 90 KIND parameter for 4-byte integers""... $ac_c"
else
echo $ac_n "checking for Fortran 90 KIND parameter for 4-byte integers""... $ac_c" 1>&1
fi
rm -f kind.f kind.o kind
cat <<EOF > kind.f
program main
integer i
i = selected_int_kind(8)
open(8, file="k.out", form="formatted")
write (8,*) i
close(8)
stop
end
EOF
if test -z "$F90" ; then
F90=f90
fi
KINDVAL=""
if $F90 -o kind kind.f >/dev/null 2>&1 ; then
./kind >/dev/null 2>&1
if test -s k.out ; then
KINDVAL=`cat k.out`
fi
fi
rm -f kind k.out kind.f kind.o
if test -n "$KINDVAL" -a "$KINDVAL" != "-1" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$KINDVAL"
else
echo "$ac_t""$KINDVAL" 1>&1
fi
MPI_OFFSET_KIND1=" INTEGER MPI_OFFSET_KIND"
MPI_OFFSET_KIND2=" PARAMETER (MPI_OFFSET_KIND=$KINDVAL)"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""unavailable"
else
echo "$ac_t""unavailable" 1>&1
fi
fi
fi
fi
#
# check if MPI_Info functions are defined in the MPI implementation
if test $FROM_MPICH = 0 -a $FROM_LAM = 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPI_Info functions are defined in the MPI implementation""... $ac_c"
else
echo $ac_n "checking if MPI_Info functions are defined in the MPI implementation""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
MPI_Info info;
MPI_Init(&argc,&argv);
MPI_Info_create(&info);
MPI_Finalize();
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_MPI_INFO"
echo "#define" HAVE_MPI_INFO "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_INFO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_INFO\${ac_dB}HAVE_MPI_INFO\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_INFO\${ac_uB}HAVE_MPI_INFO\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_INFO\${ac_eB}HAVE_MPI_INFO\${ac_eC}1\${ac_eD}
"
}
HAVE_MPI_INFO="#define HAVE_MPI_INFO"
MPI_FINFO1="!"
MPI_FINFO2="!"
MPI_FINFO3="!"
MPI_FINFO4="!"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
BUILD_MPI_INFO=1
MPI_FINFO1=" INTEGER MPI_MAX_INFO_KEY, MPI_MAX_INFO_VAL"
MPI_FINFO2=" PARAMETER (MPI_MAX_INFO_KEY=255, MPI_MAX_INFO_VAL=1024)"
MPI_FINFO3=" INTEGER MPI_INFO_NULL"
MPI_FINFO4=" PARAMETER (MPI_INFO_NULL=0)"
fi
rm -f conftest mpitest.c
else
{
test -n "$verbose" && \
echo " defining HAVE_MPI_INFO"
echo "#define" HAVE_MPI_INFO "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_INFO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_INFO\${ac_dB}HAVE_MPI_INFO\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_INFO\${ac_uB}HAVE_MPI_INFO\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_INFO\${ac_eB}HAVE_MPI_INFO\${ac_eC}1\${ac_eD}
"
}
HAVE_MPI_INFO="#define HAVE_MPI_INFO"
MPI_FINFO1="!"
MPI_FINFO2="!"
MPI_FINFO3="!"
MPI_FINFO4="!"
fi
#
if test -n "$mpi_sgi"; then
if test -z "$HAVE_MPI_INFO" ; 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPI_INFO_NULL is defined in mpi.h""... $ac_c"
else
echo $ac_n "checking if MPI_INFO_NULL is defined in mpi.h""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
int i;
i = MPI_INFO_NULL;
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
cp adio/sgi/mpi3.1/*.h include
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 mpitest.c
# is MPI_INFO_NULL defined in mpi.h?
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPI_SGI_type_is_contig is defined""... $ac_c"
else
echo $ac_n "checking if MPI_SGI_type_is_contig is defined""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
MPI_Datatype type;
int i;
MPI_Init(&argc,&argv);
i = MPI_SGI_type_is_contig(type);
MPI_Finalize();
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test -x conftest ; 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
{
test -n "$verbose" && \
echo " defining NO_MPI_SGI_type_is_contig"
echo "#define" NO_MPI_SGI_type_is_contig "1" >> confdefs.h
DEFS="$DEFS -DNO_MPI_SGI_type_is_contig=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_MPI_SGI_type_is_contig\${ac_dB}NO_MPI_SGI_type_is_contig\${ac_dC}1\${ac_dD}
\${ac_uA}NO_MPI_SGI_type_is_contig\${ac_uB}NO_MPI_SGI_type_is_contig\${ac_uC}1\${ac_uD}
\${ac_eA}NO_MPI_SGI_type_is_contig\${ac_eB}NO_MPI_SGI_type_is_contig\${ac_eC}1\${ac_eD}
"
}
fi
rm -f conftest mpitest.c
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPI-2 combiners are defined in mpi.h""... $ac_c"
else
echo $ac_n "checking if MPI-2 combiners are defined in mpi.h""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
int i;
MPI_Init(&argc,&argv);
i = MPI_COMBINER_STRUCT;
MPI_Finalize();
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_MPI_COMBINERS"
echo "#define" HAVE_MPI_COMBINERS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_COMBINERS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_COMBINERS\${ac_dB}HAVE_MPI_COMBINERS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_COMBINERS\${ac_uB}HAVE_MPI_COMBINERS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_COMBINERS\${ac_eB}HAVE_MPI_COMBINERS\${ac_eC}1\${ac_eD}
"
}
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 mpitest.c
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPI_OFFSET_KIND is defined in mpif.h""... $ac_c"
else
echo $ac_n "checking if MPI_OFFSET_KIND is defined in mpif.h""... $ac_c" 1>&1
fi
rm -f mpitest.f
cat > mpitest.f <<EOF
program main
implicit none
include 'mpif.h'
integer i
i = MPI_OFFSET_KIND
stop
end
EOF
rm -f conftest
$F77 $FFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.f $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
MPI_OFFSET_KIND1="!"
MPI_OFFSET_KIND2="!"
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 mpitest.f
fi
#
# check if darray and subarray constructors are defined in the MPI implementation
if test $FROM_MPICH = 0 -a $FROM_LAM = 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if darray and subarray constructors are defined in the MPI implementation""... $ac_c"
else
echo $ac_n "checking if darray and subarray constructors are defined in the MPI implementation""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
int i=MPI_DISTRIBUTE_CYCLIC;
MPI_Datatype t;
MPI_Init(&argc,&argv);
MPI_Type_create_darray(i, i, i, &i, &i, &i, &i, i, MPI_INT, &t);
MPI_Type_create_subarray(i, &i, &i, &i, i, MPI_INT, &t);
MPI_Finalize();
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_MPI_DARRAY_SUBARRAY"
echo "#define" HAVE_MPI_DARRAY_SUBARRAY "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_DARRAY_SUBARRAY=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_DARRAY_SUBARRAY\${ac_dB}HAVE_MPI_DARRAY_SUBARRAY\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_DARRAY_SUBARRAY\${ac_uB}HAVE_MPI_DARRAY_SUBARRAY\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_DARRAY_SUBARRAY\${ac_eB}HAVE_MPI_DARRAY_SUBARRAY\${ac_eC}1\${ac_eD}
"
}
HAVE_MPI_DARRAY_SUBARRAY="#define HAVE_MPI_DARRAY_SUBARRAY"
MPI_FARRAY1="!"
MPI_FARRAY2="!"
MPI_FARRAY3="!"
MPI_FARRAY4="!"
MPI_FARRAY5="!"
MPI_FARRAY6="!"
MPI_FARRAY7="!"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
BUILD_MPI_ARRAY=1
MPI_FARRAY1=" INTEGER MPI_ORDER_C, MPI_ORDER_FORTRAN"
MPI_FARRAY2=" PARAMETER (MPI_ORDER_C=56, MPI_ORDER_FORTRAN=57)"
MPI_FARRAY3=" INTEGER MPI_DISTRIBUTE_BLOCK, MPI_DISTRIBUTE_CYCLIC"
MPI_FARRAY4=" INTEGER MPI_DISTRIBUTE_NONE, MPI_DISTRIBUTE_DFLT_DARG"
MPI_FARRAY5=" PARAMETER (MPI_DISTRIBUTE_BLOCK=121, MPI_DISTRIBUTE_CYCLIC=122)"
MPI_FARRAY6=" PARAMETER (MPI_DISTRIBUTE_NONE=123)"
MPI_FARRAY7=" PARAMETER (MPI_DISTRIBUTE_DFLT_DARG=-49767)"
fi
rm -f conftest mpitest.c
else
{
test -n "$verbose" && \
echo " defining HAVE_MPI_DARRAY_SUBARRAY"
echo "#define" HAVE_MPI_DARRAY_SUBARRAY "1" >> confdefs.h
DEFS="$DEFS -DHAVE_MPI_DARRAY_SUBARRAY=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MPI_DARRAY_SUBARRAY\${ac_dB}HAVE_MPI_DARRAY_SUBARRAY\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_MPI_DARRAY_SUBARRAY\${ac_uB}HAVE_MPI_DARRAY_SUBARRAY\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_MPI_DARRAY_SUBARRAY\${ac_eB}HAVE_MPI_DARRAY_SUBARRAY\${ac_eC}1\${ac_eD}
"
}
HAVE_MPI_DARRAY_SUBARRAY="#define HAVE_MPI_DARRAY_SUBARRAY"
MPI_FARRAY1="!"
MPI_FARRAY2="!"
MPI_FARRAY3="!"
MPI_FARRAY4="!"
MPI_FARRAY5="!"
MPI_FARRAY6="!"
MPI_FARRAY7="!"
fi
#
# Check to see if the compiler accepts prototypes
#
#
# Test for weak symbol support...
# We can't put # in the message because it causes autoconf to generate
# incorrect code
HAVE_WEAK_SYMBOLS=0
if test -n "$arch_hpux" || test -n "$arch_sppux" ; then
# multiple secondary definitions not allowed by HP compilers
# Fortran interface for HP already uses one secondary defn.
# therefore, do not use this method for profiling interface.
# build profiling interface explicitly.
TRY_WEAK_SYMBOLS=0
fi
if test $TRY_WEAK_SYMBOLS = 1 ; 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for weak symbol support""... $ac_c"
else
echo $ac_n "checking for weak symbol support""... $ac_c" 1>&1
fi
if test -z "$ac_ext" ; then
ac_ext=c
fi
cat > conftest.$ac_ext <<EOF
#include "confdefs.h"
#pragma weak PFoo = Foo
extern int PFoo(int);
int Foo(a) { return a; }
int main() { return 0; }
int t() {
return PFoo(1);
; return 0; }
EOF
rm -f conftest.out
if test -z "$ac_link" ; then
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >conftest.out 2>&1'
fi
if eval $ac_link; then
rm -rf conftest*
has_pragma_weak=1
else
if test -s conftest.out ; then cat conftest.out >> config.log ; fi
fi
rm -f conftest*
#
# Some systems (Linux ia64 and ecc, for example), support weak symbols
# only within a single object file! This tests that case.
if test "$has_pragma_weak" = 1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""pragma weak"
else
echo "$ac_t""pragma weak" 1>&1
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking that weak symbols are visible to other files""... $ac_c"
else
echo $ac_n "checking that weak symbols are visible to other files""... $ac_c" 1>&1
fi
rm -f conftest*
cat >>conftest1.c <<EOF
extern int PFoo(int);
#pragma weak PFoo = Foo
int Foo(int);
int Foo(a) { return a; }
EOF
cat >>conftest2.c <<EOF
extern int PFoo(int);
int main() {
return PFoo(0);}
EOF
ac_link2='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest1.c conftest2.c $LIBS >conftest.out 2>&1'
if eval $ac_link2 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
else
echo "$ac_link2" >>config.log
echo "Failed program was" >>config.log
cat conftest1.c >>config.log
cat conftest2.c >>config.log
if test -s conftest.out ; then cat conftest.out >> config.log ; fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
has_pragma_weak=0
fi
rm -f conftest*
fi
if test "$has_pragma_weak" = 1 ; then
HAVE_WEAK_SYMBOLS=1
{
test -n "$verbose" && \
echo " defining HAVE_WEAK_SYMBOLS"
echo "#define" HAVE_WEAK_SYMBOLS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_WEAK_SYMBOLS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WEAK_SYMBOLS\${ac_dB}HAVE_WEAK_SYMBOLS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_WEAK_SYMBOLS\${ac_uB}HAVE_WEAK_SYMBOLS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_WEAK_SYMBOLS\${ac_eB}HAVE_WEAK_SYMBOLS\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining HAVE_PRAGMA_WEAK"
echo "#define" HAVE_PRAGMA_WEAK "1" >> confdefs.h
DEFS="$DEFS -DHAVE_PRAGMA_WEAK=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PRAGMA_WEAK\${ac_dB}HAVE_PRAGMA_WEAK\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_PRAGMA_WEAK\${ac_uB}HAVE_PRAGMA_WEAK\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_PRAGMA_WEAK\${ac_eB}HAVE_PRAGMA_WEAK\${ac_eC}1\${ac_eD}
"
}
else
if test -z "$ac_ext" ; then
ac_ext=c
fi
cat > conftest.$ac_ext <<EOF
#include "confdefs.h"
#pragma _HP_SECONDARY_DEF Foo PFoo
int Foo(a) { return a; }
int main() { return 0; }
int t() {
return PFoo(1);
; return 0; }
EOF
rm -f conftest.out
if test -z "$ac_link" ; then
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >conftest.out 2>&1'
fi
if eval $ac_link; then
rm -rf conftest*
has_pragma_hp_secondary=1
else
if test -s conftest.out ; then cat conftest.out >> config.log ; fi
fi
rm -f conftest*
if test "$has_pragma_hp_secondary" = 1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""pragma _HP_SECONDARY_DEF"
else
echo "$ac_t""pragma _HP_SECONDARY_DEF" 1>&1
fi
HAVE_WEAK_SYMBOLS=1
{
test -n "$verbose" && \
echo " defining HAVE_WEAK_SYMBOLS"
echo "#define" HAVE_WEAK_SYMBOLS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_WEAK_SYMBOLS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WEAK_SYMBOLS\${ac_dB}HAVE_WEAK_SYMBOLS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_WEAK_SYMBOLS\${ac_uB}HAVE_WEAK_SYMBOLS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_WEAK_SYMBOLS\${ac_eB}HAVE_WEAK_SYMBOLS\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining HAVE_PRAGMA_HP_SEC_DEF"
echo "#define" HAVE_PRAGMA_HP_SEC_DEF "1" >> confdefs.h
DEFS="$DEFS -DHAVE_PRAGMA_HP_SEC_DEF=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PRAGMA_HP_SEC_DEF\${ac_dB}HAVE_PRAGMA_HP_SEC_DEF\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_PRAGMA_HP_SEC_DEF\${ac_uB}HAVE_PRAGMA_HP_SEC_DEF\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_PRAGMA_HP_SEC_DEF\${ac_eB}HAVE_PRAGMA_HP_SEC_DEF\${ac_eC}1\${ac_eD}
"
}
else
if test -z "$ac_ext" ; then
ac_ext=c
fi
cat > conftest.$ac_ext <<EOF
#include "confdefs.h"
#pragma _CRI duplicate PFoo as Foo
int Foo(a) { return a; }
int main() { return 0; }
int t() {
return PFoo(1);
; return 0; }
EOF
rm -f conftest.out
if test -z "$ac_link" ; then
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >conftest.out 2>&1'
fi
if eval $ac_link; then
rm -rf conftest*
has_pragma_cri_duplicate=1
else
if test -s conftest.out ; then cat conftest.out >> config.log ; fi
fi
rm -f conftest*
if test "$has_pragma_cri_duplicate" = 1 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""pragma _CRI duplicate x as y"
else
echo "$ac_t""pragma _CRI duplicate x as y" 1>&1
fi
HAVE_WEAK_SYMBOLS=1
{
test -n "$verbose" && \
echo " defining HAVE_WEAK_SYMBOLS"
echo "#define" HAVE_WEAK_SYMBOLS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_WEAK_SYMBOLS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WEAK_SYMBOLS\${ac_dB}HAVE_WEAK_SYMBOLS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_WEAK_SYMBOLS\${ac_uB}HAVE_WEAK_SYMBOLS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_WEAK_SYMBOLS\${ac_eB}HAVE_WEAK_SYMBOLS\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining HAVE_PRAGMA_CRI_DUP"
echo "#define" HAVE_PRAGMA_CRI_DUP "1" >> confdefs.h
DEFS="$DEFS -DHAVE_PRAGMA_CRI_DUP=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PRAGMA_CRI_DUP\${ac_dB}HAVE_PRAGMA_CRI_DUP\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_PRAGMA_CRI_DUP\${ac_uB}HAVE_PRAGMA_CRI_DUP\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_PRAGMA_CRI_DUP\${ac_eB}HAVE_PRAGMA_CRI_DUP\${ac_eC}1\${ac_eD}
"
}
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
fi
fi
fi
#
# if FILE_SYSTEM is not set above, use ufs and nfs as default
#
if test -z "$FILE_SYSTEM" ; then
file_system_ufs=1
file_system_nfs=1
FILE_SYSTEM="ufs nfs"
echo "configuring for file systems ufs and nfs"
fi
#
if test -n "$file_system_nfs" ; then
# Check for problems with locks
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking whether file locks work with NFS""... $ac_c"
else
echo $ac_n "checking whether file locks work with NFS""... $ac_c" 1>&1
fi
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
int main()
{
struct flock lock;
int fd, err;
lock.l_type = F_WRLCK;
lock.l_start = 0;
lock.l_whence = SEEK_SET;
lock.l_len = 100;
fd = open("conftest.dat", O_RDWR | O_CREAT, 0644);
err = fcntl(fd, F_SETLKW, &lock);
/* printf("err = %d, errno = %d\n", err, errno); */
close(fd);
return err;
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
nfs_locks_work=yes
else
nfs_locks_work=no
fi
rm -fr conftest*
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$nfs_locks_work"
else
echo "$ac_t""$nfs_locks_work" 1>&1
fi
if test "$nfs_locks_work" != "yes" ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""Warning: File locks do not work with NFS. See the Installation and
users manual for instructions on fixing this"
else
echo "$ac_t""Warning: File locks do not work with NFS. See the Installation and
users manual for instructions on fixing this" 1>&1
fi
fi
fi
if test -n "$file_system_nfs"; then
{
test -n "$verbose" && \
echo " defining NFS"
echo "#define" NFS "1" >> confdefs.h
DEFS="$DEFS -DNFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NFS\${ac_dB}NFS\${ac_dC}1\${ac_dD}
\${ac_uA}NFS\${ac_uB}NFS\${ac_uC}1\${ac_uD}
\${ac_eA}NFS\${ac_eB}NFS\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$file_system_ufs"; then
{
test -n "$verbose" && \
echo " defining UFS"
echo "#define" UFS "1" >> confdefs.h
DEFS="$DEFS -DUFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}UFS\${ac_dB}UFS\${ac_dC}1\${ac_dD}
\${ac_uA}UFS\${ac_uB}UFS\${ac_uC}1\${ac_uD}
\${ac_eA}UFS\${ac_eB}UFS\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$file_system_hfs"; then
{
test -n "$verbose" && \
echo " defining HFS"
echo "#define" HFS "1" >> confdefs.h
DEFS="$DEFS -DHFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HFS\${ac_dB}HFS\${ac_dC}1\${ac_dD}
\${ac_uA}HFS\${ac_uB}HFS\${ac_uC}1\${ac_uD}
\${ac_eA}HFS\${ac_eB}HFS\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$file_system_sfs"; then
{
test -n "$verbose" && \
echo " defining SFS"
echo "#define" SFS "1" >> confdefs.h
DEFS="$DEFS -DSFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SFS\${ac_dB}SFS\${ac_dC}1\${ac_dD}
\${ac_uA}SFS\${ac_uB}SFS\${ac_uC}1\${ac_uD}
\${ac_eA}SFS\${ac_eB}SFS\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$file_system_xfs"; then
{
test -n "$verbose" && \
echo " defining XFS"
echo "#define" XFS "1" >> confdefs.h
DEFS="$DEFS -DXFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}XFS\${ac_dB}XFS\${ac_dC}1\${ac_dD}
\${ac_uA}XFS\${ac_uB}XFS\${ac_uC}1\${ac_uD}
\${ac_eA}XFS\${ac_eB}XFS\${ac_eC}1\${ac_eD}
"
}
if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for memory alignment needed for direct I/O""... $ac_c"
else
echo $ac_n "checking for memory alignment needed for direct I/O""... $ac_c" 1>&1
fi
/bin/rm -f memalignval
/bin/rm -f /tmp/romio_tmp.bin
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
main() {
struct dioattr st;
int fd = open("/tmp/romio_tmp.bin", O_RDWR | O_CREAT, 0644);
FILE *f=fopen("memalignval","w");
if (fd == -1) exit(1);
if (!f) exit(1);
fcntl(fd, F_DIOINFO, &st);
fprintf( f, "%u\n", st.d_mem);
exit(0);
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
Pac_CV_NAME=`cat memalignval`
else
Pac_CV_NAME=""
fi
rm -fr conftest*
/bin/rm -f memalignval
/bin/rm -f /tmp/romio_tmp.bin
if test -n "$Pac_CV_NAME" -a "$Pac_CV_NAME" != 0 ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$Pac_CV_NAME"
else
echo "$ac_t""$Pac_CV_NAME" 1>&1
fi
CFLAGS="$CFLAGS -DXFS_MEMALIGN=$Pac_CV_NAME"
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""unavailable"
else
echo "$ac_t""unavailable" 1>&1
fi
CFLAGS="$CFLAGS -DXFS_MEMALIGN=128"
fi
fi
if test -n "$file_system_pvfs"; then
# Use ROMIO_PVFS instead of PVFS because FREEBSD defines PVFS.
{
test -n "$verbose" && \
echo " defining ROMIO_PVFS"
echo "#define" ROMIO_PVFS "1" >> confdefs.h
DEFS="$DEFS -DROMIO_PVFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}ROMIO_PVFS\${ac_dB}ROMIO_PVFS\${ac_dC}1\${ac_dD}
\${ac_uA}ROMIO_PVFS\${ac_uB}ROMIO_PVFS\${ac_uC}1\${ac_uD}
\${ac_eA}ROMIO_PVFS\${ac_eB}ROMIO_PVFS\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$file_system_pfs"; then
{
test -n "$verbose" && \
echo " defining PFS"
echo "#define" PFS "1" >> confdefs.h
DEFS="$DEFS -DPFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}PFS\${ac_dB}PFS\${ac_dC}1\${ac_dD}
\${ac_uA}PFS\${ac_uB}PFS\${ac_uC}1\${ac_uD}
\${ac_eA}PFS\${ac_eB}PFS\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$file_system_testfs"; then
{
test -n "$verbose" && \
echo " defining ROMIO_TESTFS"
echo "#define" ROMIO_TESTFS "1" >> confdefs.h
DEFS="$DEFS -DROMIO_TESTFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}ROMIO_TESTFS\${ac_dB}ROMIO_TESTFS\${ac_dC}1\${ac_dD}
\${ac_uA}ROMIO_TESTFS\${ac_uB}ROMIO_TESTFS\${ac_uC}1\${ac_uD}
\${ac_eA}ROMIO_TESTFS\${ac_eB}ROMIO_TESTFS\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$file_system_piofs"; then
{
test -n "$verbose" && \
echo " defining PIOFS"
echo "#define" PIOFS "1" >> confdefs.h
DEFS="$DEFS -DPIOFS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}PIOFS\${ac_dB}PIOFS\${ac_dC}1\${ac_dD}
\${ac_uA}PIOFS\${ac_uB}PIOFS\${ac_uC}1\${ac_uD}
\${ac_eA}PIOFS\${ac_eB}PIOFS\${ac_eC}1\${ac_eD}
"
}
USER_CFLAGS="$USER_CFLAGS -bI:/usr/include/piofs/piofs.exp"
ROMIO_LFLAGS="$USER_FFLAGS -bI:/usr/include/piofs/piofs.exp"
USER_FFLAGS="$USER_FFLAGS -bI:/usr/include/piofs/piofs.exp"
fi
if test -n "$mpi_mpich"; then
{
test -n "$verbose" && \
echo " defining NEEDS_MPI_TEST"
echo "#define" NEEDS_MPI_TEST "1" >> confdefs.h
DEFS="$DEFS -DNEEDS_MPI_TEST=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NEEDS_MPI_TEST\${ac_dB}NEEDS_MPI_TEST\${ac_dC}1\${ac_dD}
\${ac_uA}NEEDS_MPI_TEST\${ac_uB}NEEDS_MPI_TEST\${ac_uC}1\${ac_uD}
\${ac_eA}NEEDS_MPI_TEST\${ac_eB}NEEDS_MPI_TEST\${ac_eC}1\${ac_eD}
"
}
{
test -n "$verbose" && \
echo " defining MPICH"
echo "#define" MPICH "1" >> confdefs.h
DEFS="$DEFS -DMPICH=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}MPICH\${ac_dB}MPICH\${ac_dC}1\${ac_dD}
\${ac_uA}MPICH\${ac_uB}MPICH\${ac_uC}1\${ac_uD}
\${ac_eA}MPICH\${ac_eB}MPICH\${ac_eC}1\${ac_eD}
"
}
if test -z "$arch_SX4" ; then
MPIOF_H_INCLUDED=1
fi
fi
if test -n "$mpi_sgi"; then
{
test -n "$verbose" && \
echo " defining MPISGI"
echo "#define" MPISGI "1" >> confdefs.h
DEFS="$DEFS -DMPISGI=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}MPISGI\${ac_dB}MPISGI\${ac_dC}1\${ac_dD}
\${ac_uA}MPISGI\${ac_uB}MPISGI\${ac_uC}1\${ac_uD}
\${ac_eA}MPISGI\${ac_eB}MPISGI\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$mpi_lam"; then
{
test -n "$verbose" && \
echo " defining MPILAM"
echo "#define" MPILAM "1" >> confdefs.h
DEFS="$DEFS -DMPILAM=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}MPILAM\${ac_dB}MPILAM\${ac_dC}1\${ac_dD}
\${ac_uA}MPILAM\${ac_uB}MPILAM\${ac_uC}1\${ac_uD}
\${ac_eA}MPILAM\${ac_eB}MPILAM\${ac_eC}1\${ac_eD}
"
}
fi
if test -n "$mpi_hp"; then
{
test -n "$verbose" && \
echo " defining MPIHP"
echo "#define" MPIHP "1" >> confdefs.h
DEFS="$DEFS -DMPIHP=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}MPIHP\${ac_dB}MPIHP\${ac_dC}1\${ac_dD}
\${ac_uA}MPIHP\${ac_uB}MPIHP\${ac_uC}1\${ac_uD}
\${ac_eA}MPIHP\${ac_eB}MPIHP\${ac_eC}1\${ac_eD}
"
}
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if mpiof.h is included in mpif.h""... $ac_c"
else
echo $ac_n "checking if mpiof.h is included in mpif.h""... $ac_c" 1>&1
fi
rm -f mpitest.f
cat > mpitest.f <<EOF
program main
implicit none
include 'mpif.h'
integer i
i = MPI_MODE_RDWR
stop
end
EOF
rm -f conftest
$F77 $FFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.f $MPI_LIB > /dev/null 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
MPIOF_H_INCLUDED=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 mpitest.f
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for strerror()""... $ac_c"
else
echo $ac_n "checking for strerror()""... $ac_c" 1>&1
fi
rm -f conftest.c
cat > conftest.c <<EOF
#include <string.h>
main()
{
char *s = strerror(5);
}
EOF
rm -f conftest
$CC $USER_CFLAGS -o conftest conftest.c >> config.log 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_STRERROR"
echo "#define" HAVE_STRERROR "1" >> confdefs.h
DEFS="$DEFS -DHAVE_STRERROR=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRERROR\${ac_dB}HAVE_STRERROR\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_STRERROR\${ac_uB}HAVE_STRERROR\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_STRERROR\${ac_eB}HAVE_STRERROR\${ac_eC}1\${ac_eD}
"
}
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking for sys_errlist""... $ac_c"
else
echo $ac_n "checking for sys_errlist""... $ac_c" 1>&1
fi
rm -f conftest.c
cat > conftest.c <<EOF
#include <stdio.h>
main()
{
extern char *sys_errlist[];
printf("%s\n", sys_errlist[34]);
}
EOF
rm -f conftest
$CC $USER_CFLAGS -o conftest conftest.c > config.log 2>&1
if test -x conftest ; then
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
{
test -n "$verbose" && \
echo " defining HAVE_SYSERRLIST"
echo "#define" HAVE_SYSERRLIST "1" >> confdefs.h
DEFS="$DEFS -DHAVE_SYSERRLIST=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSERRLIST\${ac_dB}HAVE_SYSERRLIST\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_SYSERRLIST\${ac_uB}HAVE_SYSERRLIST\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_SYSERRLIST\${ac_eB}HAVE_SYSERRLIST\${ac_eC}1\${ac_eD}
"
}
else
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
fi
fi
rm -f conftest conftest.c
if test -z "$srcdir" -o "$srcdir" = "." ; then srcdir="$ROMIO_HOME" ; fi
if test -z "$LIBNAME"; then
LIBNAME="$ROMIO_HOME/lib/$ARCH/libmpio.a"
fi
#
if test ! -d $ROMIO_HOME/lib ; then
mkdir $ROMIO_HOME/lib
fi
if test ! -d $ROMIO_HOME/lib/$ARCH ; then
mkdir $ROMIO_HOME/lib/$ARCH
fi
#
if test $NOF77 = 1 ; then
F77=":"
else
FORTRAN_TEST="fperf fcoll_test fmisc pfcoll_test"
fi
#
if test $FROM_MPICH = 0 -a $FROM_LAM = 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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if a simple MPI program compiles and links""... $ac_c"
else
echo $ac_n "checking if a simple MPI program compiles and links""... $ac_c" 1>&1
fi
rm -f mpitest.c
cat > mpitest.c <<EOF
#include "mpi.h"
main(int argc, char **argv)
{
MPI_Init(&argc,&argv);
MPI_Finalize();
}
EOF
rm -f conftest
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -o conftest mpitest.c $MPI_LIB > /dev/null 2>&1
if test ! -x conftest ; then
echo " "
print_error "Unable to compile a simple MPI program"
print_error "Use the -mpi, -mpiincdir, and -mpilib options to configure to specify the"
print_error "MPI implementation, the include path for mpi.h, and the MPI library to link"
rm -f conftest mpitest.c
exit 1
else
rm -f conftest mpitest.c
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
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
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
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#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
ac_echo_test=
fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking if MPI_Fint is defined in the MPI implementation""... $ac_c"
else
echo $ac_n "checking if MPI_Fint is defined in the MPI implementation""... $ac_c" 1>&1
fi
cat > mpitest1.c <<EOF
#include "mpi.h"
main()
{
MPI_Fint i;
i = 0;
}
EOF
rm -f mpitest1.o
$CC $USER_CFLAGS -I$MPI_INCLUDE_DIR -c mpitest1.c > /dev/null 2>&1
if test ! -s mpitest1.o ; then
NEEDS_MPI_FINT="#define NEEDS_MPI_FINT"
CFLAGS="$CFLAGS -DNEEDS_MPI_FINT"
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""no"
else
echo "$ac_t""no" 1>&1
fi
rm -f mpitest1.o mpitest1.c
else
NEEDS_MPI_FINT=""
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""yes"
else
echo "$ac_t""yes" 1>&1
fi
rm -f mpitest1.o mpitest1.c
fi
else
NEEDS_MPI_FINT=""
fi
#
if test "$MPI_INCLUDE_DIR" = "." ; then
ROMIO_INCLUDE="-I../include"
else
ROMIO_INCLUDE="-I../include -I$MPI_INCLUDE_DIR"
fi
#
TEST_LIBNAME=$LIBNAME
MPIRUN=mpirun
#
# if MPICH, use mpicc in test programs
#
if test $FROM_MPICH = 1 ; then
MPICH_HOME=`dirname $ROMIO_HOME`
if test -z "$MPI_BIN_DIR" ; then MPI_BIN_DIR=$MPICH_HOME/bin ; fi
TEST_CC=$MPI_BIN_DIR/mpicc
MPI_LIB=""
ROMIO_INCLUDE=""
USER_CFLAGS=""
USER_FFLAGS=""
TEST_LIBNAME=""
MPIRUN=$MPI_BIN_DIR/mpirun
if test -n "$arch_SX4" || test -n "$arch_hpux" ; then
TEST_F77=$MPI_BIN_DIR/mpif90
else
TEST_F77=$MPI_BIN_DIR/mpif77
fi
CC=$MPI_BIN_DIR/mpicc
{
test -n "$verbose" && \
echo " defining HAVE_STATUS_SET_BYTES"
echo "#define" HAVE_STATUS_SET_BYTES "1" >> confdefs.h
DEFS="$DEFS -DHAVE_STATUS_SET_BYTES=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STATUS_SET_BYTES\${ac_dB}HAVE_STATUS_SET_BYTES\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_STATUS_SET_BYTES\${ac_uB}HAVE_STATUS_SET_BYTES\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_STATUS_SET_BYTES\${ac_eB}HAVE_STATUS_SET_BYTES\${ac_eC}1\${ac_eD}
"
}
elif test $FROM_LAM = 1 ; then
# LAM does have the status set bytes functionality
{
test -n "$verbose" && \
echo " defining HAVE_STATUS_SET_BYTES"
echo "#define" HAVE_STATUS_SET_BYTES "1" >> confdefs.h
DEFS="$DEFS -DHAVE_STATUS_SET_BYTES=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STATUS_SET_BYTES\${ac_dB}HAVE_STATUS_SET_BYTES\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_STATUS_SET_BYTES\${ac_uB}HAVE_STATUS_SET_BYTES\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_STATUS_SET_BYTES\${ac_eB}HAVE_STATUS_SET_BYTES\${ac_eC}1\${ac_eD}
"
}
# Used in the tests/ subdirectory for after ROMIO is built
TEST_CC=mpicc
TEST_F77=mpif77
MPIRUN=mpirun
MPI_LIB=
ROMIO_INCLUDE=
USER_CFLAGS=
USER_FFLAGS=
TEST_LIBNAME=
# This should take whatever comes in from the top-level LAM
# configure script
#CC=$MPI_BIN_DIR/mpicc
fi
#
if test $MPI != "mpich" ; then
{
test -n "$verbose" && \
echo " defining PRINT_ERR_MSG"
echo "#define" PRINT_ERR_MSG "1" >> confdefs.h
DEFS="$DEFS -DPRINT_ERR_MSG=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}PRINT_ERR_MSG\${ac_dB}PRINT_ERR_MSG\${ac_dC}1\${ac_dD}
\${ac_uA}PRINT_ERR_MSG\${ac_uB}PRINT_ERR_MSG\${ac_uC}1\${ac_uD}
\${ac_eA}PRINT_ERR_MSG\${ac_eB}PRINT_ERR_MSG\${ac_eC}1\${ac_eD}
"
}
fi
#
if test -z "$TEST_CC" ; then
TEST_CC="$CC"
fi
if test -z "$TEST_F77" ; then
TEST_F77="$F77"
fi
#
CFLAGS="$CFLAGS -DHAVE_ROMIOCONF_H"
#
echo "setting CC to $CC"
echo "setting F77 to $F77"
echo "setting TEST_CC to $TEST_CC"
echo "setting TEST_F77 to $TEST_F77"
echo "setting CFLAGS to $CFLAGS"
echo "setting USER_CFLAGS to $USER_CFLAGS"
echo "setting USER_FFLAGS to $USER_FFLAGS"
#
if test ! -d adio ; then mkdir adio ; fi
if test ! -d adio/include ; then mkdir adio/include ; fi
if test ! -d mpi2-other ; then mkdir mpi2-other ; fi
#
# Make sure we remove any configuration file incase there is out-of-date data.
# We remove the version in include in case this is a vpath build
rm -f adio/include/romioconf.h ${top_srcdir}/adio/include/romioconf.h
#
# Create makefiles for all of the adio devices. Only the ones that
# are active will be called by the top level ROMIO make
# The preferred way to propogate these variables is regular @ substitutions.
if test -n "$prefix"; then
ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
else
prefix=/usr/local
fi
if test -n "$exec_prefix"; then
ac_prsub="$ac_prsub
s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
else
exec_prefix='${prefix}' # Let make expand it.
fi
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
# Quote sed substitution magic chars in DEFS.
cat >conftest.def <<EOF
$DEFS
EOF
ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
rm -f conftest.def
# Substitute for predefined variables.
trap 'rm -f config.status; exit 1' 1 2 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
ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "config.status generated by autoconf version 1.11"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
trap 'rm -fr Makefile mpi-io/Makefile mpi2-other/info/Makefile \
mpi2-other/array/Makefile adio/common/Makefile \
test/Makefile test/misc.c test/large_file.c \
test/runtests util/romioinstall include/mpio.h \
include/mpiof.h \
adio/ad_nfs/Makefile adio/ad_ufs/Makefile \
adio/ad_xfs/Makefile adio/ad_hfs/Makefile \
adio/ad_sfs/Makefile adio/ad_pfs/Makefile \
adio/ad_testfs/Makefile adio/ad_pvfs/Makefile \
adio/ad_piofs/Makefile adio/include/romioconf.h conftest*; exit 1' 1 2 15
VPATH='$VPATH'
prefix='$prefix'
exec_prefix='$exec_prefix'
includedir='$includedir'
bindir='$bindir'
sbindir='$sbindir'
libdir='$libdir'
mandir='$mandir'
docdir='$docdir'
htmldir='$htmldir'
RANLIB='$RANLIB'
CC='$CC'
F77='$F77'
CPP='$CPP'
HAVE_WEAK_SYMBOLS='$HAVE_WEAK_SYMBOLS'
srcdir='$srcdir'
ARCH='$ARCH'
FILE_SYSTEM='$FILE_SYSTEM'
CFLAGS='$CFLAGS'
USER_CFLAGS='$USER_CFLAGS'
USER_FFLAGS='$USER_FFLAGS'
MIPS='$MIPS'
BITS='$BITS'
MPI='$MPI'
AR='$AR'
MPI_INCLUDE_DIR='$MPI_INCLUDE_DIR'
MPI_LIB='$MPI_LIB'
NOF77='$NOF77'
NOPROFILE='$NOPROFILE'
MAKE='$MAKE'
PREFIX='$PREFIX'
arch_IRIX='$arch_IRIX'
ROMIO_HOME='$ROMIO_HOME'
LIBNAME='$LIBNAME'
TEST_LIBNAME='$TEST_LIBNAME'
LL='$LL'
F77GETARG='$F77GETARG'
F77IARGC='$F77IARGC'
FTESTDEFINE='$FTESTDEFINE'
FORTRAN_MPI_OFFSET='$FORTRAN_MPI_OFFSET'
FROM_MPICH='$FROM_MPICH'
FROM_LAM='$FROM_LAM'
NEEDS_MPI_FINT='$NEEDS_MPI_FINT'
HAVE_MPI_INFO='$HAVE_MPI_INFO'
BUILD_MPI_INFO='$BUILD_MPI_INFO'
HAVE_MPI_DARRAY_SUBARRAY='$HAVE_MPI_DARRAY_SUBARRAY'
BUILD_MPI_ARRAY='$BUILD_MPI_ARRAY'
DEFINE_MPI_OFFSET='$DEFINE_MPI_OFFSET'
MPI_FINFO1='$MPI_FINFO1'
MPI_FINFO2='$MPI_FINFO2'
MPI_FINFO3='$MPI_FINFO3'
MPI_FINFO4='$MPI_FINFO4'
MPI_FARRAY1='$MPI_FARRAY1'
MPI_FARRAY2='$MPI_FARRAY2'
MPI_FARRAY3='$MPI_FARRAY3'
MPI_FARRAY4='$MPI_FARRAY4'
MPI_FARRAY5='$MPI_FARRAY5'
MPI_FARRAY6='$MPI_FARRAY6'
MPI_FARRAY7='$MPI_FARRAY7'
MPI_OFFSET_KIND1='$MPI_OFFSET_KIND1'
MPI_OFFSET_KIND2='$MPI_OFFSET_KIND2'
TEST_CC='$TEST_CC'
TEST_F77='$TEST_F77'
ROMIO_INCLUDE='$ROMIO_INCLUDE'
ROMIO_LFLAGS='$ROMIO_LFLAGS'
ROMIO_LIBLIST='$ROMIO_LIBLIST'
ROMIO_TCFLAGS='$ROMIO_TCFLAGS'
ROMIO_TCPPFLAGS='$ROMIO_TCPPFLAGS'
ROMIO_TFFLAGS='$ROMIO_TFFLAGS'
MPIRUN='$MPIRUN'
FORTRAN_TEST='$FORTRAN_TEST'
LIBS='$LIBS'
top_srcdir='$top_srcdir'
ac_prsub='$ac_prsub'
ac_vpsub='$ac_vpsub'
extrasub='$extrasub'
EOF
cat >> config.status <<\EOF
ac_given_srcdir=$srcdir
CONFIG_FILES=${CONFIG_FILES-"Makefile mpi-io/Makefile mpi2-other/info/Makefile \
mpi2-other/array/Makefile adio/common/Makefile \
test/Makefile test/misc.c test/large_file.c \
test/runtests util/romioinstall include/mpio.h \
include/mpiof.h \
adio/ad_nfs/Makefile adio/ad_ufs/Makefile \
adio/ad_xfs/Makefile adio/ad_hfs/Makefile \
adio/ad_sfs/Makefile adio/ad_pfs/Makefile \
adio/ad_testfs/Makefile adio/ad_pvfs/Makefile \
adio/ad_piofs/Makefile "}
for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/$ac_dir"
else
ac_dir_suffix=
fi
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dir_suffix"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
case "$ac_file" in
*.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;;
* ) echo "# $comment_str" > "$ac_file" ;;
esac
sed -e "
$ac_prsub
$ac_vpsub
$extrasub
s%@VPATH@%$VPATH%g
s%@prefix@%$prefix%g
s%@exec_prefix@%$exec_prefix%g
s%@includedir@%$includedir%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libdir@%$libdir%g
s%@mandir@%$mandir%g
s%@docdir@%$docdir%g
s%@htmldir@%$htmldir%g
s%@RANLIB@%$RANLIB%g
s%@CC@%$CC%g
s%@F77@%$F77%g
s%@CPP@%$CPP%g
s%@HAVE_WEAK_SYMBOLS@%$HAVE_WEAK_SYMBOLS%g
s%@srcdir@%$srcdir%g
s%@ARCH@%$ARCH%g
s%@FILE_SYSTEM@%$FILE_SYSTEM%g
s%@CFLAGS@%$CFLAGS%g
s%@USER_CFLAGS@%$USER_CFLAGS%g
s%@USER_FFLAGS@%$USER_FFLAGS%g
s%@MIPS@%$MIPS%g
s%@BITS@%$BITS%g
s%@MPI@%$MPI%g
s%@AR@%$AR%g
s%@MPI_INCLUDE_DIR@%$MPI_INCLUDE_DIR%g
s%@MPI_LIB@%$MPI_LIB%g
s%@NOF77@%$NOF77%g
s%@NOPROFILE@%$NOPROFILE%g
s%@MAKE@%$MAKE%g
s%@PREFIX@%$PREFIX%g
s%@arch_IRIX@%$arch_IRIX%g
s%@ROMIO_HOME@%$ROMIO_HOME%g
s%@LIBNAME@%$LIBNAME%g
s%@TEST_LIBNAME@%$TEST_LIBNAME%g
s%@LL@%$LL%g
s%@F77GETARG@%$F77GETARG%g
s%@F77IARGC@%$F77IARGC%g
s%@FTESTDEFINE@%$FTESTDEFINE%g
s%@FORTRAN_MPI_OFFSET@%$FORTRAN_MPI_OFFSET%g
s%@FROM_MPICH@%$FROM_MPICH%g
s%@FROM_LAM@%$FROM_LAM%g
s%@NEEDS_MPI_FINT@%$NEEDS_MPI_FINT%g
s%@HAVE_MPI_INFO@%$HAVE_MPI_INFO%g
s%@BUILD_MPI_INFO@%$BUILD_MPI_INFO%g
s%@HAVE_MPI_DARRAY_SUBARRAY@%$HAVE_MPI_DARRAY_SUBARRAY%g
s%@BUILD_MPI_ARRAY@%$BUILD_MPI_ARRAY%g
s%@DEFINE_MPI_OFFSET@%$DEFINE_MPI_OFFSET%g
s%@MPI_FINFO1@%$MPI_FINFO1%g
s%@MPI_FINFO2@%$MPI_FINFO2%g
s%@MPI_FINFO3@%$MPI_FINFO3%g
s%@MPI_FINFO4@%$MPI_FINFO4%g
s%@MPI_FARRAY1@%$MPI_FARRAY1%g
s%@MPI_FARRAY2@%$MPI_FARRAY2%g
s%@MPI_FARRAY3@%$MPI_FARRAY3%g
s%@MPI_FARRAY4@%$MPI_FARRAY4%g
s%@MPI_FARRAY5@%$MPI_FARRAY5%g
s%@MPI_FARRAY6@%$MPI_FARRAY6%g
s%@MPI_FARRAY7@%$MPI_FARRAY7%g
s%@MPI_OFFSET_KIND1@%$MPI_OFFSET_KIND1%g
s%@MPI_OFFSET_KIND2@%$MPI_OFFSET_KIND2%g
s%@TEST_CC@%$TEST_CC%g
s%@TEST_F77@%$TEST_F77%g
s%@ROMIO_INCLUDE@%$ROMIO_INCLUDE%g
s%@ROMIO_LFLAGS@%$ROMIO_LFLAGS%g
s%@ROMIO_LIBLIST@%$ROMIO_LIBLIST%g
s%@ROMIO_TCFLAGS@%$ROMIO_TCFLAGS%g
s%@ROMIO_TCPPFLAGS@%$ROMIO_TCPPFLAGS%g
s%@ROMIO_TFFLAGS@%$ROMIO_TFFLAGS%g
s%@MPIRUN@%$MPIRUN%g
s%@FORTRAN_TEST@%$FORTRAN_TEST%g
s%@LIBS@%$LIBS%g
s%@top_srcdir@%$top_srcdir%g
s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
fi; done
# These sed commands are put into ac_sed_defs when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
# is the cpp macro being defined and VALUE is the value it is being given.
# Each defining turns into a single global substitution command.
# Hopefully no one uses "!" as a variable value.
# Other candidates for the sed separators, like , and @, do get used.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*!\1#\2'
ac_dC='\3'
ac_dD='!g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)!\1#\2define\3'
ac_uC=' '
ac_uD='\4!g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$!\1#\2define\3'
ac_eC=' '
ac_eD='!g'
rm -f conftest.sed
EOF
# Turn off quoting long enough to insert the sed commands.
rm -f conftest.sh
cat > conftest.sh <<EOF
$ac_sed_defs
EOF
# Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
# on the size of here documents.
# Maximum number of lines to put in a single here document.
ac_max_sh_lines=9
while :
do
# wc gives bogus results for an empty file on some AIX systems.
ac_lines=`grep -c . conftest.sh`
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
rm -f conftest.s1 conftest.s2
sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
# Write a limited-size here document to append to conftest.sed.
echo 'cat >> conftest.sed <<CONFEOF' >> config.status
cat conftest.s1 >> config.status
echo 'CONFEOF' >> config.status
rm -f conftest.s1 conftest.sh
mv conftest.s2 conftest.sh
done
rm -f conftest.sh
# Now back to your regularly scheduled config.status.
cat >> config.status <<\EOF
# This sed command replaces #undef's with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it in
# adio/include/romioconf.h.
cat >> conftest.sed <<\CONFEOF
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
ac_max_sed_lines=20
CONFIG_HEADERS=${CONFIG_HEADERS-"adio/include/romioconf.h"}
for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
echo creating $ac_file
cp $ac_given_srcdir/$ac_file.in conftest.h1
cp conftest.sed conftest.stm
while :
do
ac_lines=`grep -c . conftest.stm`
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
rm -f conftest.s1 conftest.s2 conftest.h2
sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
sed -f conftest.s1 < conftest.h1 > conftest.h2
rm -f conftest.s1 conftest.h1 conftest.stm
mv conftest.h2 conftest.h1
mv conftest.s2 conftest.stm
done
rm -f conftest.stm conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.h1 >> conftest.h
rm -f conftest.h1
if cmp -s $ac_file conftest.h 2>/dev/null; then
# The file exists and we would not be changing it.
echo "$ac_file is unchanged"
rm -f conftest.h
else
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
rm -f conftest.sed
exit 0
EOF
chmod +x config.status
# Some shells look in PATH for config.status without the "./".
test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
if test "$NOF77" = 0; then
CONFIG_FILES="$CONFIG_FILES mpi-io/fortran/Makefile mpi2-other/info/fortran/Makefile mpi2-other/array/fortran/Makefile test/fmisc.f test/fcoll_test.f test/pfcoll_test.f test/fperf.f"
fi
export CONFIG_FILES
./config.status
CONFIG_FILES=""
# delete the first line created by configure in some files
sed 1d util/romioinstall > util/tmp
mv util/tmp util/romioinstall
chmod 755 util/romioinstall
if test "$NOF77" = 0; then
sed 1d test/fcoll_test.f > test/tmp
mv test/tmp test/fcoll_test.f
if test "$MPIOF_H_INCLUDED" = 1; then
sed 5d test/fcoll_test.f > test/tmp
mv test/tmp test/fcoll_test.f
fi
sed 1d test/pfcoll_test.f > test/tmp
mv test/tmp test/pfcoll_test.f
if test "$MPIOF_H_INCLUDED" = 1; then
sed 5d test/pfcoll_test.f > test/tmp
mv test/tmp test/pfcoll_test.f
fi
sed 1d test/fperf.f > test/tmp
mv test/tmp test/fperf.f
if test "$MPIOF_H_INCLUDED" = 1; then
sed 5d test/fperf.f > test/tmp
mv test/tmp test/fperf.f
fi
sed 1d test/fmisc.f > test/tmp
mv test/tmp test/fmisc.f
if test "$MPIOF_H_INCLUDED" = 1; then
sed 5d test/fmisc.f > test/tmp
mv test/tmp test/fmisc.f
fi
fi
sed 1d test/misc.c > test/tmp
mv test/tmp test/misc.c
sed 1d test/large_file.c > test/tmp
mv test/tmp test/large_file.c
sed 1d include/mpio.h > include/tmp
mv include/tmp include/mpio.h
sed 1d include/mpiof.h > include/tmp
mv include/tmp include/mpiof.h
sed 1d test/runtests > test/tmp
mv test/tmp test/runtests
#
chmod 755 test/runtests
#
rm -f *.o
if test "$ROMIO_NO_BANNER" != "yes" -a "$FROM_MPICH" = 0 -a "$FROM_LAM" = 0 ; then
print_error " "
print_error Please register your copy of ROMIO with us by sending email
print_error to majordomo@mcs.anl.gov with the message
print_error subscribe romio-users
print_error This will enable us to notify you of new releases of ROMIO
print_error as well as bug fixes.
print_error " "
fi
if test $FROM_MPICH = 0 -a $FROM_LAM = 0 ; then
print_error Configure done. Now type make
print_error " "
fi
exit 0
|