aboutsummaryrefslogtreecommitdiff
blob: 07fde15849bba21a2e414df519c2952658629a05 (plain)
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
diff -Nur libAfterImage-1.07/afterbase.h libAfterImage-1.07.new/afterbase.h
--- libAfterImage-1.07/afterbase.h	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/afterbase.h	2006-09-13 12:00:58.000000000 +0100
@@ -0,0 +1,39 @@
+#ifndef AFTERBASE_H_HEADER_INCLUDED
+#define AFTERBASE_H_HEADER_INCLUDED
+
+#define HAVE_AFTERBASE_FLAG 0
+
+#if 0
+# if 0
+#include <libAfterBase/astypes.h>
+#include <libAfterBase/audit.h>
+#include <libAfterBase/output.h>
+#include <libAfterBase/safemalloc.h>
+#include <libAfterBase/mystring.h>
+#include <libAfterBase/fs.h>
+#include <libAfterBase/parse.h>
+#include <libAfterBase/selfdiag.h>
+#include <libAfterBase/sleep.h>
+#include <libAfterBase/socket.h>
+#include <libAfterBase/trace.h>
+# else
+#include "libAfterBase/astypes.h"
+#include "libAfterBase/audit.h"
+#include "libAfterBase/output.h"
+#include "libAfterBase/safemalloc.h"
+#include "libAfterBase/mystring.h"
+#include "libAfterBase/fs.h"
+#include "libAfterBase/parse.h"
+#include "libAfterBase/selfdiag.h"
+#include "libAfterBase/sleep.h"
+#include "libAfterBase/socket.h"
+#include "libAfterBase/trace.h"
+# endif
+#else
+
+# include "asim_afterbase.h"
+
+#endif /* HAVE_AFTERBASE */
+
+#endif /* AFTERBASE_H_HEADER_INCLUDED */
+
diff -Nur libAfterImage-1.07/afterimage-config libAfterImage-1.07.new/afterimage-config
--- libAfterImage-1.07/afterimage-config	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/afterimage-config	2006-09-13 12:00:58.000000000 +0100
@@ -0,0 +1,136 @@
+#! /bin/sh
+
+prefix=/usr/local
+exec_prefix=/usr/local
+AFTERIMAGE_LIBS="-L/usr/local/lib -lAfterImage  -lfreetype -lz -ltiff -lX11 -L/usr/lib64 -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm"
+AFTERIMAGE_LIBS_EXTERNAL="-lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm"
+HAVE_AFTERBASE="no"
+AFTERIMAGE_PREF_FORMAT="png"
+
+
+usage()
+{
+  cat <<EOF
+Usage: afterimage-config [OPTIONS] [LIBRARIES]
+Options:
+ [--prefix[=DIR]]
+ [--exec-prefix[=DIR]]
+ [--version]
+ [--libs [--external-only]] 
+ [--libtool]
+ [--cflags]
+ [--have-afterbase]
+ [--preferred-image-format]
+EOF
+  exit $1
+}
+
+if test $# -eq 0 ; then
+  usage 1 1>&2
+fi
+
+while test $# -gt 0 ; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+  --prefix=*)
+    prefix=$optarg
+    local_prefix=yes
+    ;;
+  --prefix)
+    echo_prefix=yes
+    ;;
+  --exec-prefix=*)
+    exec_prefix=$optarg
+    exec_prefix_set=yes
+    local_prefix=yes
+    ;;
+  --exec-prefix)
+    echo_exec_prefix=yes
+    ;;
+  --version)
+    echo 1.07
+    exit 0
+    ;;
+  --cflags)
+    echo_cflags=yes
+    ;;
+  --libs)
+    echo_libs=yes
+    ;;
+  --libtool)
+    echo_libtool=yes
+    ;;
+  --have-afterbase)
+    echo_have_afterbase=yes
+    ;;
+  --preferred-image-format)
+    echo_preferred_image_format=yes
+    ;;
+  --external-only)
+    echo_external_only=yes
+    ;;
+  *)
+    usage 1 1>&2
+    ;;
+  esac
+  shift
+done
+
+if test "$local_prefix" = "yes" ; then
+    if test "$exec_prefix_set" != "yes" ; then
+      exec_prefix=$prefix
+    fi
+fi
+
+if test "$echo_prefix" = "yes" ; then
+ echo $prefix
+fi
+
+if test "$echo_exec_prefix" = "yes" ; then
+ echo $exec_prefix
+fi
+
+if test "$echo_cflags" = "yes" ; then
+ cflags="-I/usr/local/include/libAfterImage"
+ if test "/usr/local/include" != "/usr/include" ; then
+  echo $cflags -I/usr/local/include
+ else
+  echo $cflags
+ fi
+fi
+
+if test "$echo_libs" = "yes" ; then
+ libs="$AFTERIMAGE_LIBS_EXTERNAL"
+ if test "$echo_external_only" != "yes"; then 
+ 	if test "no" = "yes" ; then
+        	libs="-lAfterBase $libs"
+ 	fi
+ 	libs="-lAfterImage $libs" 
+	if test "/usr/local/lib" != "/usr/lib" ; then
+  		echo -L/usr/local/lib $libs
+ 	else
+  		echo $libs
+ 	fi
+ else
+        echo $libs
+ fi
+fi
+
+if test "$echo_libtool" = "yes" ; then
+ convlib="libAfterImage.la"
+ echo /usr/local/lib/$convlib
+fi
+
+if test "$echo_have_afterbase" = "yes" ; then
+ echo "no"
+fi
+
+if test "$echo_preferred_image_format" = "yes" ; then
+ echo "png"
+fi
+
+# EOF
diff -Nur libAfterImage-1.07/afterimage-libs libAfterImage-1.07.new/afterimage-libs
--- libAfterImage-1.07/afterimage-libs	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/afterimage-libs	2006-09-13 12:00:58.000000000 +0100
@@ -0,0 +1,27 @@
+#! /bin/sh
+#
+
+AFTERIMAGE_LIBS="-L/usr/local/lib -lAfterImage  -lfreetype -lz -ltiff -lX11 -L/usr/lib64 -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm"
+AFTERIMAGE_LIBS_EXTERNAL="-lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm"
+HAVE_AFTERBASE="no"
+AFTERIMAGE_PREF_FORMAT="png"
+
+export AFTERIMAGE_LIBS
+export AFTERIMAGE_LIBS_EXTERNAL
+export HAVE_AFTERBASE
+export AFTERIMAGE_PREF_FORMAT
+
+if test "x$1" = "x--external-only" ; then
+	echo $AFTERIMAGE_LIBS_EXTERNAL
+else
+  if test "x$1" = "x--have-afterbase" ; then
+	echo $HAVE_AFTERBASE
+  else
+        if test "x$1" = "x--preferred-image-format" ; then
+                echo $AFTERIMAGE_PREF_FORMAT
+        else
+                echo $AFTERIMAGE_LIBS
+        fi
+  fi
+fi
+exit 0
diff -Nur libAfterImage-1.07/apps/config.h libAfterImage-1.07.new/apps/config.h
--- libAfterImage-1.07/apps/config.h	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/apps/config.h	2006-09-13 12:00:59.000000000 +0100
@@ -0,0 +1,177 @@
+/* config.h.  Generated by configure.  */
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Define if memory allocation logging and debugging is desired */
+/* #undef DEBUG_ALLOCS */
+
+/* Define if libAfterBase is available */
+/* #undef HAVE_AFTERBASE */
+
+/* Define if using builtin libjpeg */
+/* #undef HAVE_BUILTIN_JPEG */
+
+/* Define if using builtin libpng */
+/* #undef HAVE_BUILTIN_PNG */
+
+/* Define if using builtin libungif */
+#define HAVE_BUILTIN_UNGIF 1
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+   */
+#define HAVE_DIRENT_H 1
+
+/* Define to 1 if you have the <errno.h> header file. */
+#define HAVE_ERRNO_H 1
+
+/* Define if libFreeType is available */
+#define HAVE_FREETYPE 1
+
+/* Define if libFreeType has freetype.h in freetype/ */
+#define HAVE_FREETYPE_FREETYPE 1
+
+/* Define to 1 if you have the <ft2build.h> header file. */
+#define HAVE_FT2BUILD_H 1
+
+/* Define if libgif/ungif is available */
+#define HAVE_GIF 1
+
+/* Support for OpenGL extention */
+#define HAVE_GLX 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if libjpeg is available */
+#define HAVE_JPEG 1
+
+/* Define if support for XPM images should be through libXpm */
+/* #undef HAVE_LIBXPM */
+
+/* Define if support for XPM images should be through libXpm library in Xlib
+   */
+/* #undef HAVE_LIBXPM_X11 */
+
+/* Define to 1 if the system has the type `long long'. */
+#define HAVE_LONG_LONG 1
+
+/* Define to 1 if you have the <malloc.h> header file. */
+#define HAVE_MALLOC_H 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define if CPU supports MMX instructions */
+#define HAVE_MMX 1
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+/* #undef HAVE_NDIR_H */
+
+/* Define if libpng is available */
+#define HAVE_PNG 1
+
+/* We always use function prototypes - not supporting old compilers */
+#define HAVE_PROTOTYPES 1
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#define HAVE_STDARG_H 1
+
+/* Define to 1 if you have the <stddef.h> header file. */
+#define HAVE_STDDEF_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/dirent.h> header file. */
+/* #undef HAVE_SYS_DIRENT_H */
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+   */
+/* #undef HAVE_SYS_DIR_H */
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+   */
+/* #undef HAVE_SYS_NDIR_H */
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <sys/wait.h> header file. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define if libtiff is available */
+#define HAVE_TIFF 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if support for XPM images is desired */
+#define HAVE_XPM 1
+
+/* Define to 1 if you have the <zlib.h> header file. */
+#define HAVE_ZLIB_H 1
+
+/* Define if locale support in X is needed */
+/* #undef I18N */
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "libAfterImage"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "libAfterImage 1.07"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "libAfterImage.tar"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "1.07"
+
+/* Support for shaped windows */
+#define SHAPE 1
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to 1 if your processor stores words with the most significant byte
+   first (like Motorola and SPARC, unlike Intel and VAX). */
+/* #undef WORDS_BIGENDIAN */
+
+/* Define if support for shared memory XImages is available */
+/* #undef XSHMIMAGE */
+
+/* Define to 1 if the X Window System is missing or not being used. */
+/* #undef X_DISPLAY_MISSING */
+
+/* Define to 1 if type `char' is unsigned and you are not using gcc.  */
+#ifndef __CHAR_UNSIGNED__
+/* # undef __CHAR_UNSIGNED__ */
+#endif
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
diff -Nur libAfterImage-1.07/apps/Makefile libAfterImage-1.07.new/apps/Makefile
--- libAfterImage-1.07/apps/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/apps/Makefile	2006-09-13 12:00:59.000000000 +0100
@@ -0,0 +1,224 @@
+
+PROGS= asview asscale astile asmerge asgrad asflip asi18n astext ascompose asvector
+
+
+CC		= gcc
+CCFLAGS         = -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall
+# -march=pentiumpro -mcpu=pentiumpro
+EXTRA_DEFINES	= 
+
+RANLIB		= ranlib
+AR		= ar clq
+CP		= /usr/bin/cp
+MV		= /usr/bin/mv
+RM		= /usr/bin/rm
+RMF		= /usr/bin/rm -f
+MKDIR		= /usr/bin/mkdir
+FIND		= /usr/bin/find
+XARGS		= /usr/bin/xargs
+LDCONFIG	= /sbin/ldconfig
+
+INSTALL		= /usr/bin/install -c
+INSTALL_PROGRAM	= /usr/bin/install -c -m 755
+INSTALL_DATA	= /usr/bin/install -c -m 644
+
+INCS_X		= 
+INCS_PRIVATE    = 
+INCLUDES	= $(INCS_X) $(INCS_PRIVATE)
+
+USER_LD_FLAGS	=  -rdynamic
+LIBS_X		= -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext
+LIBS_XEXTS	=
+LIBS_AFTERIMAGE = -L../ -lAfterImage -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm
+LIBRARIES	= $(USER_LD_FLAGS) $(LIBS_AFTERIMAGE) $(LIBS_X) $(LIBS_XEXTS)
+
+prefix          = /usr/local
+exec_prefix     = /usr/local
+LIBDIR		= $(DESTDIR)/usr/local/lib
+BIN_DIR		= $(DESTDIR)${exec_prefix}/bin
+MAN_DIR		= $(DESTDIR)/usr/local/man/man1
+AFTER_DIR	= @with_afterdir@
+
+# need this for dependancies :
+LIBAFTERIMAGE_PATH = ../../libAfterImage
+LIB_STATIC      = $(LIBAFTERIMAGE_PATH)/libAfterImage.a
+LIB_SHARED      = $(LIBAFTERIMAGE_PATH)/libAfterImage.so
+
+
+all:    $(PROGS)
+
+install.bin:	$(PROGS)
+		@for p in $(PROGS); do \
+	  		$(INSTALL_PROGRAM) $$p $(BIN_DIR) ; \
+		done
+
+install.man:
+		@for f in *.man; do \
+		  echo $(INSTALL_DATA) $$f $(MAN_DIR)/`basename $$f`.1x; \
+		  $(INSTALL_DATA) $$f $(MAN_DIR)/`basename $$f`.1x; \
+		done
+
+uninstall.bin:
+		$(RMF) $(AFTER_BIN_DIR)/$(PROGS)
+
+uninstall.man:
+		$(RMF) $(AFTER_MAN_DIR)/$(PROGS).1x
+
+clean:
+		$(RMF) $(PROGS) *.o *~ *% *.bak \#* core
+
+distclean:
+		$(RMF) $(PROGS) *.o *~ *% *.bak \#* *.orig core Makefile
+
+indent:
+		@SRCS=`find . -name "*.c"`; \
+		if test "x$$SRCS" == "x"; then exit; fi; \
+		for i in $$SRCS; do \
+		  if (indent -di14 -ts4 -i4 -l100 -lc80 -bad -nbbb -bli0 -c48 -cd48 -ce -cli1 -ncs -nbs -nbbo -hnl < $$i > /tmp/$$i); then \
+		    echo "indent $$i"; \
+		    mv /tmp/$$i $$i; \
+		  fi; \
+		done
+
+deps:
+		echo -n > .depend ; \
+		buf="" ; \
+		for f in `find . -name "*.h"` ; do \
+		  if test "x$$buf" != "x"; then \
+		      echo $$buf >>.depend ; \
+		      echo "" >>.depend ; \
+		  fi; \
+		  buf="$$f:"; \
+		  for d in `grep "#include \"" <$$f | awk -F \" '{print $$2}'`; do \
+		      if test "x$$buf" != "x"; then \
+		         echo $$buf \\ >>.depend ; \
+		      fi; \
+		      echo -n "		" >>.depend ; \
+		      buf="$$d "; \
+		  done; \
+		done; \
+		if test "x$$buf" != "x"; then \
+		  echo $$buf >>.depend ; \
+		  buf="" ; \
+		  echo "" >>.depend ; \
+		fi ; \
+		for file in `find . -name "*.c"` ; do \
+		  if test "x$$buf" != "x"; then \
+		      echo $$buf >>.depend ; \
+		      echo >>.depend ; \
+		  fi; \
+		  buf="."`echo $$file | awk -F . '{print $$2}'`".o:" ; \
+		  for d in `grep "#include \"" < $$file | awk -F \" '{print $$2}'`; do \
+		      if test "x$$buf" != "x"; then \
+		         echo $$buf \\ >>.depend ; \
+		      fi; \
+		      echo -n "		" >>.depend ; \
+		      buf="$$d "; \
+		  done; \
+		done; \
+		if test "x$$buf" != "x"; then \
+		  echo $$buf >>.depend ; \
+		fi
+
+asview: asview.o common.o $(LIB_STATIC)
+		$(CC) asview.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o asview
+
+asview_gl: asview_gl.o common.o $(LIB_STATIC)
+		$(CC) asview_gl.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -lGL -lGLU -o asview_gl
+
+asscale: asscale.o common.o $(LIB_STATIC)
+		$(CC) asscale.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o asscale
+
+astile: astile.o common.o $(LIB_STATIC)
+		$(CC) astile.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o astile
+
+asmerge: asmerge.o common.o $(LIB_STATIC)
+		$(CC) asmerge.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o asmerge
+
+asgrad: asgrad.o common.o $(LIB_STATIC)
+		$(CC) asgrad.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o asgrad
+
+asflip: asflip.o common.o $(LIB_STATIC)
+		$(CC) asflip.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o asflip
+
+asi18n: asi18n.o common.o $(LIB_STATIC)
+		$(CC) asi18n.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o asi18n
+
+astext: astext.o common.o $(LIB_STATIC)
+		$(CC) astext.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o astext
+
+ascompose: ascompose.o common.o $(LIB_STATIC)
+		$(CC) ascompose.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o ascompose
+
+asvector: asvector.o common.o $(LIB_STATIC)
+		$(CC) asvector.o common.o $(LIBRARIES) $(EXTRA_LIBRARIES) -o asvector
+
+
+
+.c.o:
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
+
+.c.s:
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -S $*.c
+
+.lo:	$*.c
+
+
+install:	install.bin
+
+uninstall:	uninstall.bin
+
+include .depend
+
+
+LIBAFTERIMAGE_OBJS = \
+		$(LIBAFTERIMAGE_PATH)/asimage.c \
+		$(LIBAFTERIMAGE_PATH)/ascmap.c \
+		$(LIBAFTERIMAGE_PATH)/asfont.c \
+		$(LIBAFTERIMAGE_PATH)/asimagexml.c \
+		$(LIBAFTERIMAGE_PATH)/asstorage.c \
+		$(LIBAFTERIMAGE_PATH)/asvisual.c \
+		$(LIBAFTERIMAGE_PATH)/blender.c \
+		$(LIBAFTERIMAGE_PATH)/bmp.c \
+		$(LIBAFTERIMAGE_PATH)/char2uni.c \
+		$(LIBAFTERIMAGE_PATH)/draw.c \
+		$(LIBAFTERIMAGE_PATH)/export.c \
+		$(LIBAFTERIMAGE_PATH)/imencdec.c \
+		$(LIBAFTERIMAGE_PATH)/import.c \
+		$(LIBAFTERIMAGE_PATH)/pixmap.c \
+		$(LIBAFTERIMAGE_PATH)/transform.c \
+		$(LIBAFTERIMAGE_PATH)/ungif.c \
+		$(LIBAFTERIMAGE_PATH)/xcf.c \
+		$(LIBAFTERIMAGE_PATH)/ximage.c \
+		$(LIBAFTERIMAGE_PATH)/xpm.c
+
+LIBAFTERIMAGE_INCS = \
+		$(LIBAFTERIMAGE_PATH)/afterimage.h \
+		$(LIBAFTERIMAGE_PATH)/config.h \
+		$(LIBAFTERIMAGE_PATH)/afterbase.h \
+		$(LIBAFTERIMAGE_PATH)/ascmap.h \
+		$(LIBAFTERIMAGE_PATH)/asfont.h \
+		$(LIBAFTERIMAGE_PATH)/asim_afterbase.h \
+		$(LIBAFTERIMAGE_PATH)/asimage.h \
+		$(LIBAFTERIMAGE_PATH)/asimagexml.h \
+		$(LIBAFTERIMAGE_PATH)/asstorage.h \
+		$(LIBAFTERIMAGE_PATH)/asvisual.h \
+		$(LIBAFTERIMAGE_PATH)/blender.h \
+		$(LIBAFTERIMAGE_PATH)/bmp.h \
+		$(LIBAFTERIMAGE_PATH)/char2uni.h \
+		$(LIBAFTERIMAGE_PATH)/draw.h \
+		$(LIBAFTERIMAGE_PATH)/export.h \
+		$(LIBAFTERIMAGE_PATH)/imencdec.h \
+		$(LIBAFTERIMAGE_PATH)/import.h \
+		$(LIBAFTERIMAGE_PATH)/pixmap.h \
+		$(LIBAFTERIMAGE_PATH)/transform.h \
+		$(LIBAFTERIMAGE_PATH)/ungif.h \
+		$(LIBAFTERIMAGE_PATH)/xcf.h \
+		$(LIBAFTERIMAGE_PATH)/ximage.h \
+		$(LIBAFTERIMAGE_PATH)/xpm.h
+
+$(LIBAFTERIMAGE_PATH)/libAfterImage.a: $(LIBAFTERIMAGE_OBJS) $(LIBAFTERIMAGE_INCS)
+		cd $(LIBAFTERIMAGE_PATH)/; ${MAKE} libAfterImage.a
+
+$(LIBAFTERIMAGE_PATH)/libAfterImage.so: $(LIBAFTERIMAGE_OBJS) $(LIBAFTERIMAGE_INCS)
+		cd $(LIBAFTERIMAGE_PATH)/; ${MAKE} libAfterImage.so
diff -Nur libAfterImage-1.07/apps/Makefile.in libAfterImage-1.07.new/apps/Makefile.in
--- libAfterImage-1.07/apps/Makefile.in	2005-02-28 14:52:47.000000000 +0000
+++ libAfterImage-1.07.new/apps/Makefile.in	2006-09-13 13:17:20.000000000 +0100
@@ -40,7 +40,7 @@
 AFTER_DIR	= @with_afterdir@
 
 # need this for dependancies :
-LIBAFTERIMAGE_PATH = ../../libAfterImage
+LIBAFTERIMAGE_PATH = ../
 LIB_STATIC      = $(LIBAFTERIMAGE_PATH)/libAfterImage.a
 LIB_SHARED      = $(LIBAFTERIMAGE_PATH)/libAfterImage.so
 
diff -Nur libAfterImage-1.07/config.h libAfterImage-1.07.new/config.h
--- libAfterImage-1.07/config.h	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/config.h	2006-09-13 12:00:59.000000000 +0100
@@ -0,0 +1,177 @@
+/* config.h.  Generated by configure.  */
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Define if memory allocation logging and debugging is desired */
+/* #undef DEBUG_ALLOCS */
+
+/* Define if libAfterBase is available */
+/* #undef HAVE_AFTERBASE */
+
+/* Define if using builtin libjpeg */
+/* #undef HAVE_BUILTIN_JPEG */
+
+/* Define if using builtin libpng */
+/* #undef HAVE_BUILTIN_PNG */
+
+/* Define if using builtin libungif */
+#define HAVE_BUILTIN_UNGIF 1
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+   */
+#define HAVE_DIRENT_H 1
+
+/* Define to 1 if you have the <errno.h> header file. */
+#define HAVE_ERRNO_H 1
+
+/* Define if libFreeType is available */
+#define HAVE_FREETYPE 1
+
+/* Define if libFreeType has freetype.h in freetype/ */
+#define HAVE_FREETYPE_FREETYPE 1
+
+/* Define to 1 if you have the <ft2build.h> header file. */
+#define HAVE_FT2BUILD_H 1
+
+/* Define if libgif/ungif is available */
+#define HAVE_GIF 1
+
+/* Support for OpenGL extention */
+#define HAVE_GLX 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if libjpeg is available */
+#define HAVE_JPEG 1
+
+/* Define if support for XPM images should be through libXpm */
+/* #undef HAVE_LIBXPM */
+
+/* Define if support for XPM images should be through libXpm library in Xlib
+   */
+/* #undef HAVE_LIBXPM_X11 */
+
+/* Define to 1 if the system has the type `long long'. */
+#define HAVE_LONG_LONG 1
+
+/* Define to 1 if you have the <malloc.h> header file. */
+#define HAVE_MALLOC_H 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define if CPU supports MMX instructions */
+#define HAVE_MMX 1
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+/* #undef HAVE_NDIR_H */
+
+/* Define if libpng is available */
+#define HAVE_PNG 1
+
+/* We always use function prototypes - not supporting old compilers */
+#define HAVE_PROTOTYPES 1
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#define HAVE_STDARG_H 1
+
+/* Define to 1 if you have the <stddef.h> header file. */
+#define HAVE_STDDEF_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/dirent.h> header file. */
+/* #undef HAVE_SYS_DIRENT_H */
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+   */
+/* #undef HAVE_SYS_DIR_H */
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+   */
+/* #undef HAVE_SYS_NDIR_H */
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <sys/wait.h> header file. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define if libtiff is available */
+#define HAVE_TIFF 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if support for XPM images is desired */
+#define HAVE_XPM 1
+
+/* Define to 1 if you have the <zlib.h> header file. */
+#define HAVE_ZLIB_H 1
+
+/* Define if locale support in X is needed */
+/* #undef I18N */
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "libAfterImage"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "libAfterImage 1.07"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "libAfterImage.tar"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "1.07"
+
+/* Support for shaped windows */
+#define SHAPE 1
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to 1 if your processor stores words with the most significant byte
+   first (like Motorola and SPARC, unlike Intel and VAX). */
+/* #undef WORDS_BIGENDIAN */
+
+/* Define if support for shared memory XImages is available */
+/* #undef XSHMIMAGE */
+
+/* Define to 1 if the X Window System is missing or not being used. */
+/* #undef X_DISPLAY_MISSING */
+
+/* Define to 1 if type `char' is unsigned and you are not using gcc.  */
+#ifndef __CHAR_UNSIGNED__
+/* # undef __CHAR_UNSIGNED__ */
+#endif
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
diff -Nur libAfterImage-1.07/config.log libAfterImage-1.07.new/config.log
--- libAfterImage-1.07/config.log	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/config.log	2006-09-13 12:01:00.000000000 +0100
@@ -0,0 +1,1234 @@
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by libAfterImage configure 1.07, which was
+generated by GNU Autoconf 2.59.  Invocation command line was
+
+  $ ./configure --enable-glx
+
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = mango
+uname -m = x86_64
+uname -r = 2.6.17-gentoo-r7
+uname -s = Linux
+uname -v = #1 PREEMPT Mon Sep 4 19:29:55 WEST 2006
+
+/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3500+
+/bin/uname -X     = unknown
+
+/bin/arch              = x86_64
+/usr/bin/arch -k       = unknown
+/usr/convex/getsysinfo = unknown
+hostinfo               = unknown
+/bin/machine           = unknown
+/usr/bin/oslevel       = unknown
+/bin/universe          = unknown
+
+PATH: .
+PATH: /home/seb/bin
+PATH: /usr/kde/3.5/bin
+PATH: /usr/local/bin
+PATH: /usr/bin
+PATH: /bin
+PATH: /opt/bin
+PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1
+PATH: /opt/blackdown-jdk-1.4.2.03/bin
+PATH: /opt/blackdown-jdk-1.4.2.03/jre/bin
+PATH: /usr/kde/3.5/bin
+PATH: /usr/qt/3/bin
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+configure:1631: checking for gcc
+configure:1647: found /usr/bin/gcc
+configure:1657: result: gcc
+configure:1901: checking for C compiler version
+configure:1904: gcc --version </dev/null >&5
+gcc (GCC) 4.1.1 (Gentoo 4.1.1)
+Copyright (C) 2006 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+configure:1907: $? = 0
+configure:1909: gcc -v </dev/null >&5
+Using built-in specs.
+Target: x86_64-pc-linux-gnu
+Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --enable-languages=c,c++,java,objc,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
+Thread model: posix
+gcc version 4.1.1 (Gentoo 4.1.1)
+configure:1912: $? = 0
+configure:1914: gcc -V </dev/null >&5
+gcc: '-V' option must have argument
+configure:1917: $? = 1
+configure:1940: checking for C compiler default output file name
+configure:1943: gcc    conftest.c  >&5
+configure:1946: $? = 0
+configure:1992: result: a.out
+configure:1997: checking whether the C compiler works
+configure:2003: ./a.out
+configure:2006: $? = 0
+configure:2023: result: yes
+configure:2030: checking whether we are cross compiling
+configure:2032: result: no
+configure:2035: checking for suffix of executables
+configure:2037: gcc -o conftest    conftest.c  >&5
+configure:2040: $? = 0
+configure:2065: result: 
+configure:2071: checking for suffix of object files
+configure:2092: gcc -c   conftest.c >&5
+configure:2095: $? = 0
+configure:2117: result: o
+configure:2121: checking whether we are using the GNU C compiler
+configure:2145: gcc -c   conftest.c >&5
+configure:2151: $? = 0
+configure:2155: test -z 
+			 || test ! -s conftest.err
+configure:2158: $? = 0
+configure:2161: test -s conftest.o
+configure:2164: $? = 0
+configure:2177: result: yes
+configure:2183: checking whether gcc accepts -g
+configure:2204: gcc -c -g  conftest.c >&5
+configure:2210: $? = 0
+configure:2214: test -z 
+			 || test ! -s conftest.err
+configure:2217: $? = 0
+configure:2220: test -s conftest.o
+configure:2223: $? = 0
+configure:2234: result: yes
+configure:2251: checking for gcc option to accept ANSI C
+configure:2321: gcc  -c -g -O2  conftest.c >&5
+configure:2327: $? = 0
+configure:2331: test -z 
+			 || test ! -s conftest.err
+configure:2334: $? = 0
+configure:2337: test -s conftest.o
+configure:2340: $? = 0
+configure:2358: result: none needed
+configure:2376: gcc -c -g -O2  conftest.c >&5
+conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
+configure:2382: $? = 1
+configure: failed program was:
+| #ifndef __cplusplus
+|   choke me
+| #endif
+configure:2515: checking whether ln -s works
+configure:2519: result: yes
+configure:2558: checking build system type
+configure:2576: result: x86_64-unknown-linux-gnu
+configure:2584: checking host system type
+configure:2598: result: x86_64-unknown-linux-gnu
+configure:2693: checking for a BSD-compatible install
+configure:2748: result: /usr/bin/install -c
+configure:2806: checking for ranlib
+configure:2822: found /usr/bin/ranlib
+configure:2833: result: ranlib
+configure:2847: checking for rm
+configure:2865: found /usr/bin/rm
+configure:2878: result: /usr/bin/rm
+configure:2887: checking for mv
+configure:2905: found /usr/bin/mv
+configure:2918: result: /usr/bin/mv
+configure:2927: checking for cp
+configure:2945: found /usr/bin/cp
+configure:2958: result: /usr/bin/cp
+configure:2967: checking for mkdir
+configure:2985: found /usr/bin/mkdir
+configure:2998: result: /usr/bin/mkdir
+configure:3007: checking for perl
+configure:3025: found /usr/bin/perl
+configure:3038: result: /usr/bin/perl
+configure:3047: checking for find
+configure:3065: found /usr/bin/find
+configure:3078: result: /usr/bin/find
+configure:3087: checking for xargs
+configure:3105: found /usr/bin/xargs
+configure:3118: result: /usr/bin/xargs
+configure:3127: checking for ldconfig
+configure:3146: found /sbin/ldconfig
+configure:3159: result: /sbin/ldconfig
+configure:3180: checking for MMX support
+configure:3213: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c  >&5
+configure:3216: $? = 0
+configure:3218: ./conftest
+configure:3221: $? = 0
+configure:3227: result: yes
+configure:3252: checking how to run the C preprocessor
+configure:3287: gcc -E  conftest.c
+configure:3293: $? = 0
+configure:3325: gcc -E  conftest.c
+conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
+configure:3331: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "libAfterImage"
+| #define PACKAGE_TARNAME "libAfterImage.tar"
+| #define PACKAGE_VERSION "1.07"
+| #define PACKAGE_STRING "libAfterImage 1.07"
+| #define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+| #define HAVE_MMX 1
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3370: result: gcc -E
+configure:3394: gcc -E  conftest.c
+configure:3400: $? = 0
+configure:3432: gcc -E  conftest.c
+conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
+configure:3438: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "libAfterImage"
+| #define PACKAGE_TARNAME "libAfterImage.tar"
+| #define PACKAGE_VERSION "1.07"
+| #define PACKAGE_STRING "libAfterImage 1.07"
+| #define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+| #define HAVE_MMX 1
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3482: checking for X
+configure:3587: gcc -E  conftest.c
+configure:3593: $? = 0
+configure:3712: result: libraries /usr/lib64, headers 
+configure:3884: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c   -L/usr/lib64 -lX11 >&5
+configure:3890: $? = 0
+configure:3894: test -z 
+			 || test ! -s conftest.err
+configure:3897: $? = 0
+configure:3900: test -s conftest
+configure:3903: $? = 0
+configure:4061: checking for gethostbyname
+configure:4118: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c  >&5
+configure:4124: $? = 0
+configure:4128: test -z 
+			 || test ! -s conftest.err
+configure:4131: $? = 0
+configure:4134: test -s conftest
+configure:4137: $? = 0
+configure:4149: result: yes
+configure:4300: checking for connect
+configure:4357: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c  >&5
+configure:4363: $? = 0
+configure:4367: test -z 
+			 || test ! -s conftest.err
+configure:4370: $? = 0
+configure:4373: test -s conftest
+configure:4376: $? = 0
+configure:4388: result: yes
+configure:4463: checking for remove
+configure:4520: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c  >&5
+configure:4526: $? = 0
+configure:4530: test -z 
+			 || test ! -s conftest.err
+configure:4533: $? = 0
+configure:4536: test -s conftest
+configure:4539: $? = 0
+configure:4551: result: yes
+configure:4626: checking for shmat
+configure:4683: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c  >&5
+configure:4689: $? = 0
+configure:4693: test -z 
+			 || test ! -s conftest.err
+configure:4696: $? = 0
+configure:4699: test -s conftest
+configure:4702: $? = 0
+configure:4714: result: yes
+configure:4798: checking for IceConnectionNumber in -lICE
+configure:4828: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic -L/usr/lib64 conftest.c -lICE   >&5
+configure:4834: $? = 0
+configure:4838: test -z 
+			 || test ! -s conftest.err
+configure:4841: $? = 0
+configure:4844: test -s conftest
+configure:4847: $? = 0
+configure:4860: result: yes
+configure:4888: checking for XOpenDisplay in -lX11
+configure:4918: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c -lX11  -rdynamic  -L/usr/lib64   -lSM -lICE  >&5
+configure:4924: $? = 0
+configure:4928: test -z 
+			 || test ! -s conftest.err
+configure:4931: $? = 0
+configure:4934: test -s conftest
+configure:4937: $? = 0
+configure:4950: result: yes
+configure:4960: checking whether byte ordering is bigendian
+configure:4987: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:4993: $? = 0
+configure:4997: test -z 
+			 || test ! -s conftest.err
+configure:5000: $? = 0
+configure:5003: test -s conftest.o
+configure:5006: $? = 0
+configure:5030: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+conftest.c: In function 'main':
+conftest.c:17: error: 'not' undeclared (first use in this function)
+conftest.c:17: error: (Each undeclared identifier is reported only once
+conftest.c:17: error: for each function it appears in.)
+conftest.c:17: error: expected ';' before 'big'
+configure:5036: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "libAfterImage"
+| #define PACKAGE_TARNAME "libAfterImage.tar"
+| #define PACKAGE_VERSION "1.07"
+| #define PACKAGE_STRING "libAfterImage 1.07"
+| #define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+| #define HAVE_MMX 1
+| /* end confdefs.h.  */
+| #include <sys/types.h>
+| #include <sys/param.h>
+| 
+| int
+| main ()
+| {
+| #if BYTE_ORDER != BIG_ENDIAN
+|  not big endian
+| #endif
+| 
+|   ;
+|   return 0;
+| }
+configure:5171: result: no
+configure:5190: checking for inline
+configure:5211: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5217: $? = 0
+configure:5221: test -z 
+			 || test ! -s conftest.err
+configure:5224: $? = 0
+configure:5227: test -s conftest.o
+configure:5230: $? = 0
+configure:5242: result: inline
+configure:5261: checking for egrep
+configure:5271: result: grep -E
+configure:5276: checking for ANSI C header files
+configure:5301: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5307: $? = 0
+configure:5311: test -z 
+			 || test ! -s conftest.err
+configure:5314: $? = 0
+configure:5317: test -s conftest.o
+configure:5320: $? = 0
+configure:5409: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c  >&5
+conftest.c: In function 'main':
+conftest.c:27: warning: implicit declaration of function 'exit'
+conftest.c:27: warning: incompatible implicit declaration of built-in function 'exit'
+configure:5412: $? = 0
+configure:5414: ./conftest
+configure:5417: $? = 0
+configure:5432: result: yes
+configure:5456: checking for sys/types.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for sys/stat.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for stdlib.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for string.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for memory.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for strings.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for inttypes.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for stdint.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5456: checking for unistd.h
+configure:5472: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5478: $? = 0
+configure:5482: test -z 
+			 || test ! -s conftest.err
+configure:5485: $? = 0
+configure:5488: test -s conftest.o
+configure:5491: $? = 0
+configure:5502: result: yes
+configure:5514: checking for long long
+configure:5538: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5544: $? = 0
+configure:5548: test -z 
+			 || test ! -s conftest.err
+configure:5551: $? = 0
+configure:5554: test -s conftest.o
+configure:5557: $? = 0
+configure:5568: result: yes
+configure:5580: checking whether time.h and sys/time.h may both be included
+configure:5605: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5611: $? = 0
+configure:5615: test -z 
+			 || test ! -s conftest.err
+configure:5618: $? = 0
+configure:5621: test -s conftest.o
+configure:5624: $? = 0
+configure:5635: result: yes
+configure:5666: checking sys/wait.h usability
+configure:5678: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5684: $? = 0
+configure:5688: test -z 
+			 || test ! -s conftest.err
+configure:5691: $? = 0
+configure:5694: test -s conftest.o
+configure:5697: $? = 0
+configure:5707: result: yes
+configure:5711: checking sys/wait.h presence
+configure:5721: gcc -E  conftest.c
+configure:5727: $? = 0
+configure:5747: result: yes
+configure:5782: checking for sys/wait.h
+configure:5789: result: yes
+configure:5666: checking sys/time.h usability
+configure:5678: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5684: $? = 0
+configure:5688: test -z 
+			 || test ! -s conftest.err
+configure:5691: $? = 0
+configure:5694: test -s conftest.o
+configure:5697: $? = 0
+configure:5707: result: yes
+configure:5711: checking sys/time.h presence
+configure:5721: gcc -E  conftest.c
+configure:5727: $? = 0
+configure:5747: result: yes
+configure:5782: checking for sys/time.h
+configure:5789: result: yes
+configure:5666: checking malloc.h usability
+configure:5678: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5684: $? = 0
+configure:5688: test -z 
+			 || test ! -s conftest.err
+configure:5691: $? = 0
+configure:5694: test -s conftest.o
+configure:5697: $? = 0
+configure:5707: result: yes
+configure:5711: checking malloc.h presence
+configure:5721: gcc -E  conftest.c
+configure:5727: $? = 0
+configure:5747: result: yes
+configure:5782: checking for malloc.h
+configure:5789: result: yes
+configure:5657: checking for stdlib.h
+configure:5662: result: yes
+configure:5657: checking for unistd.h
+configure:5662: result: yes
+configure:5666: checking stddef.h usability
+configure:5678: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5684: $? = 0
+configure:5688: test -z 
+			 || test ! -s conftest.err
+configure:5691: $? = 0
+configure:5694: test -s conftest.o
+configure:5697: $? = 0
+configure:5707: result: yes
+configure:5711: checking stddef.h presence
+configure:5721: gcc -E  conftest.c
+configure:5727: $? = 0
+configure:5747: result: yes
+configure:5782: checking for stddef.h
+configure:5789: result: yes
+configure:5666: checking stdarg.h usability
+configure:5678: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5684: $? = 0
+configure:5688: test -z 
+			 || test ! -s conftest.err
+configure:5691: $? = 0
+configure:5694: test -s conftest.o
+configure:5697: $? = 0
+configure:5707: result: yes
+configure:5711: checking stdarg.h presence
+configure:5721: gcc -E  conftest.c
+configure:5727: $? = 0
+configure:5747: result: yes
+configure:5782: checking for stdarg.h
+configure:5789: result: yes
+configure:5666: checking errno.h usability
+configure:5678: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:5684: $? = 0
+configure:5688: test -z 
+			 || test ! -s conftest.err
+configure:5691: $? = 0
+configure:5694: test -s conftest.o
+configure:5697: $? = 0
+configure:5707: result: yes
+configure:5711: checking errno.h presence
+configure:5721: gcc -E  conftest.c
+configure:5727: $? = 0
+configure:5747: result: yes
+configure:5782: checking for errno.h
+configure:5789: result: yes
+configure:6178: checking for XShapeCombineMask in -lXext
+configure:6208: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c -lXext  -rdynamic  -L/usr/lib64   -lSM -lICE  >&5
+configure:6214: $? = 0
+configure:6218: test -z 
+			 || test ! -s conftest.err
+configure:6221: $? = 0
+configure:6224: test -s conftest
+configure:6227: $? = 0
+configure:6240: result: yes
+configure:6253: checking for glDrawPixels in -lGL
+configure:6283: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c -lGL  -rdynamic  -L/usr/lib64   -lSM -lICE  >&5
+configure:6289: $? = 0
+configure:6293: test -z 
+			 || test ! -s conftest.err
+configure:6296: $? = 0
+configure:6299: test -s conftest
+configure:6302: $? = 0
+configure:6315: result: yes
+configure:6690: checking jpeglib.h usability
+configure:6702: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:6708: $? = 0
+configure:6712: test -z 
+			 || test ! -s conftest.err
+configure:6715: $? = 0
+configure:6718: test -s conftest.o
+configure:6721: $? = 0
+configure:6731: result: yes
+configure:6735: checking jpeglib.h presence
+configure:6745: gcc -E  conftest.c
+configure:6751: $? = 0
+configure:6771: result: yes
+configure:6806: checking for jpeglib.h
+configure:6813: result: yes
+configure:6860: checking for unsigned char
+configure:6884: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:6890: $? = 0
+configure:6894: test -z 
+			 || test ! -s conftest.err
+configure:6897: $? = 0
+configure:6900: test -s conftest.o
+configure:6903: $? = 0
+configure:6914: result: yes
+configure:6917: checking for unsigned short
+configure:6941: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:6947: $? = 0
+configure:6951: test -z 
+			 || test ! -s conftest.err
+configure:6954: $? = 0
+configure:6957: test -s conftest.o
+configure:6960: $? = 0
+configure:6971: result: yes
+configure:6974: checking for an ANSI C-conforming const
+configure:7041: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+conftest.c: In function 'main':
+conftest.c:62: warning: unused variable 's'
+conftest.c:82: warning: unused variable 'foo'
+conftest.c:49: warning: unused variable 'zero'
+conftest.c:43: warning: unused variable 'x'
+conftest.c:64: warning: 't' is used uninitialized in this function
+conftest.c:79: warning: 'b' is used uninitialized in this function
+configure:7047: $? = 0
+configure:7051: test -z 
+			 || test ! -s conftest.err
+configure:7054: $? = 0
+configure:7057: test -s conftest.o
+configure:7060: $? = 0
+configure:7071: result: yes
+configure:7082: checking whether char is unsigned
+configure:7105: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:7111: $? = 0
+configure:7115: test -z 
+			 || test ! -s conftest.err
+configure:7118: $? = 0
+configure:7121: test -s conftest.o
+configure:7124: $? = 0
+configure:7135: result: no
+configure:7159: checking zlib.h usability
+configure:7171: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:7177: $? = 0
+configure:7181: test -z 
+			 || test ! -s conftest.err
+configure:7184: $? = 0
+configure:7187: test -s conftest.o
+configure:7190: $? = 0
+configure:7200: result: yes
+configure:7204: checking zlib.h presence
+configure:7214: gcc -E  conftest.c
+configure:7220: $? = 0
+configure:7240: result: yes
+configure:7275: checking for zlib.h
+configure:7282: result: yes
+configure:7317: checking png.h usability
+configure:7329: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:7335: $? = 0
+configure:7339: test -z 
+			 || test ! -s conftest.err
+configure:7342: $? = 0
+configure:7345: test -s conftest.o
+configure:7348: $? = 0
+configure:7358: result: yes
+configure:7362: checking png.h presence
+configure:7372: gcc -E  conftest.c
+configure:7378: $? = 0
+configure:7398: result: yes
+configure:7433: checking for png.h
+configure:7440: result: yes
+configure:7450: checking for png_get_sRGB in png.h
+configure:7469: result: yes
+configure:7688: checking using built-in UNGIF library
+configure:7702: result: yes
+configure:7733: checking tiffio.h usability
+configure:7745: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:7751: $? = 0
+configure:7755: test -z 
+			 || test ! -s conftest.err
+configure:7758: $? = 0
+configure:7761: test -s conftest.o
+configure:7764: $? = 0
+configure:7774: result: yes
+configure:7778: checking tiffio.h presence
+configure:7788: gcc -E  conftest.c
+configure:7794: $? = 0
+configure:7814: result: yes
+configure:7849: checking for tiffio.h
+configure:7856: result: yes
+configure:7888: checking headers required by TTF support
+configure:7906: result:  -I/usr/include/freetype2
+configure:7927: checking ft2build.h usability
+configure:7939: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  -I/usr/include/freetype2        -I/usr/include/freetype2  conftest.c >&5
+configure:7945: $? = 0
+configure:7949: test -z 
+			 || test ! -s conftest.err
+configure:7952: $? = 0
+configure:7955: test -s conftest.o
+configure:7958: $? = 0
+configure:7968: result: yes
+configure:7972: checking ft2build.h presence
+configure:7982: gcc -E  -I/usr/include/freetype2  conftest.c
+configure:7988: $? = 0
+configure:8008: result: yes
+configure:8043: checking for ft2build.h
+configure:8050: result: yes
+configure:8063: checking freetype/freetype.h 
+In file included from conftest.c:41:
+/usr/include/freetype2/freetype/freetype.h:20:2: error: #error "`ft2build.h' hasn't been included yet!"
+/usr/include/freetype2/freetype/freetype.h:21:2: error: #error "Please always use macros to include FreeType header files."
+/usr/include/freetype2/freetype/freetype.h:22:2: error: #error "Example:"
+/usr/include/freetype2/freetype/freetype.h:23:2: error: #error "  #include <ft2build.h>"
+/usr/include/freetype2/freetype/freetype.h:24:2: error: #error "  #include FT_FREETYPE_H"
+configure:8207: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  -I/usr/include/freetype2        -I/usr/include/freetype2   -rdynamic conftest.c  >&5
+conftest.c: In function 'main':
+conftest.c:43: warning: unused variable 'f'
+configure:8210: $? = 0
+configure:8212: ./conftest
+configure:8215: $? = 0
+configure:8284: result: yes
+configure:8321: checking libAfterBase headers
+configure:8339: checking libAfterBase/astypes.h usability
+configure:8351: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+conftest.c:77:34: error: libAfterBase/astypes.h: No such file or directory
+configure:8357: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "libAfterImage"
+| #define PACKAGE_TARNAME "libAfterImage.tar"
+| #define PACKAGE_VERSION "1.07"
+| #define PACKAGE_STRING "libAfterImage 1.07"
+| #define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+| #define HAVE_MMX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_LONG_LONG 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_SYS_WAIT_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_MALLOC_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_STDDEF_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_ERRNO_H 1
+| #define SHAPE 1
+| #define HAVE_GLX 1
+| #define HAVE_XPM 1
+| #define HAVE_JPEG 1
+| #define HAVE_PROTOTYPES 1
+| #define HAVE_ZLIB_H 1
+| #define HAVE_PNG 1
+| #define HAVE_GIF 1
+| #define HAVE_BUILTIN_UNGIF 1
+| #define HAVE_TIFF 1
+| #define HAVE_FT2BUILD_H 1
+| #define HAVE_FREETYPE 1
+| #define HAVE_FREETYPE_FREETYPE 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #if HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #if HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #if STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # if HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #if HAVE_STRING_H
+| # if !STDC_HEADERS && HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #if HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #if HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #else
+| # if HAVE_STDINT_H
+| #  include <stdint.h>
+| # endif
+| #endif
+| #if HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <libAfterBase/astypes.h>
+configure:8380: result: no
+configure:8384: checking libAfterBase/astypes.h presence
+configure:8394: gcc -E  conftest.c
+conftest.c:43:34: error: libAfterBase/astypes.h: No such file or directory
+configure:8400: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "libAfterImage"
+| #define PACKAGE_TARNAME "libAfterImage.tar"
+| #define PACKAGE_VERSION "1.07"
+| #define PACKAGE_STRING "libAfterImage 1.07"
+| #define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+| #define HAVE_MMX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_LONG_LONG 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_SYS_WAIT_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_MALLOC_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_STDDEF_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_ERRNO_H 1
+| #define SHAPE 1
+| #define HAVE_GLX 1
+| #define HAVE_XPM 1
+| #define HAVE_JPEG 1
+| #define HAVE_PROTOTYPES 1
+| #define HAVE_ZLIB_H 1
+| #define HAVE_PNG 1
+| #define HAVE_GIF 1
+| #define HAVE_BUILTIN_UNGIF 1
+| #define HAVE_TIFF 1
+| #define HAVE_FT2BUILD_H 1
+| #define HAVE_FREETYPE 1
+| #define HAVE_FREETYPE_FREETYPE 1
+| /* end confdefs.h.  */
+| #include <libAfterBase/astypes.h>
+configure:8420: result: no
+configure:8455: checking for libAfterBase/astypes.h
+configure:8462: result: no
+configure:8513: result: none found
+configure:8524: checking for dirent.h that defines DIR
+configure:8548: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+configure:8554: $? = 0
+configure:8558: test -z 
+			 || test ! -s conftest.err
+configure:8561: $? = 0
+configure:8564: test -s conftest.o
+configure:8567: $? = 0
+configure:8578: result: yes
+configure:8591: checking for library containing opendir
+configure:8621: gcc -o conftest -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall   -rdynamic conftest.c  >&5
+configure:8627: $? = 0
+configure:8631: test -z 
+			 || test ! -s conftest.err
+configure:8634: $? = 0
+configure:8637: test -s conftest
+configure:8640: $? = 0
+configure:8710: result: none required
+configure:8860: checking sys/dirent.h usability
+configure:8872: gcc -c -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  conftest.c >&5
+conftest.c:78:24: error: sys/dirent.h: No such file or directory
+configure:8878: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "libAfterImage"
+| #define PACKAGE_TARNAME "libAfterImage.tar"
+| #define PACKAGE_VERSION "1.07"
+| #define PACKAGE_STRING "libAfterImage 1.07"
+| #define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+| #define HAVE_MMX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_LONG_LONG 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_SYS_WAIT_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_MALLOC_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_STDDEF_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_ERRNO_H 1
+| #define SHAPE 1
+| #define HAVE_GLX 1
+| #define HAVE_XPM 1
+| #define HAVE_JPEG 1
+| #define HAVE_PROTOTYPES 1
+| #define HAVE_ZLIB_H 1
+| #define HAVE_PNG 1
+| #define HAVE_GIF 1
+| #define HAVE_BUILTIN_UNGIF 1
+| #define HAVE_TIFF 1
+| #define HAVE_FT2BUILD_H 1
+| #define HAVE_FREETYPE 1
+| #define HAVE_FREETYPE_FREETYPE 1
+| #define HAVE_DIRENT_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #if HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #if HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #if STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # if HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #if HAVE_STRING_H
+| # if !STDC_HEADERS && HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #if HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #if HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #else
+| # if HAVE_STDINT_H
+| #  include <stdint.h>
+| # endif
+| #endif
+| #if HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/dirent.h>
+configure:8901: result: no
+configure:8905: checking sys/dirent.h presence
+configure:8915: gcc -E  conftest.c
+conftest.c:44:24: error: sys/dirent.h: No such file or directory
+configure:8921: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "libAfterImage"
+| #define PACKAGE_TARNAME "libAfterImage.tar"
+| #define PACKAGE_VERSION "1.07"
+| #define PACKAGE_STRING "libAfterImage 1.07"
+| #define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+| #define HAVE_MMX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_LONG_LONG 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_SYS_WAIT_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_MALLOC_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_STDDEF_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_ERRNO_H 1
+| #define SHAPE 1
+| #define HAVE_GLX 1
+| #define HAVE_XPM 1
+| #define HAVE_JPEG 1
+| #define HAVE_PROTOTYPES 1
+| #define HAVE_ZLIB_H 1
+| #define HAVE_PNG 1
+| #define HAVE_GIF 1
+| #define HAVE_BUILTIN_UNGIF 1
+| #define HAVE_TIFF 1
+| #define HAVE_FT2BUILD_H 1
+| #define HAVE_FREETYPE 1
+| #define HAVE_FREETYPE_FREETYPE 1
+| #define HAVE_DIRENT_H 1
+| /* end confdefs.h.  */
+| #include <sys/dirent.h>
+configure:8941: result: no
+configure:8976: checking for sys/dirent.h
+configure:8983: result: no
+configure:9169: creating ./config.status
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by libAfterImage config.status 1.07, which was
+generated by GNU Autoconf 2.59.  Invocation command line was
+
+  CONFIG_FILES    = 
+  CONFIG_HEADERS  = 
+  CONFIG_LINKS    = 
+  CONFIG_COMMANDS = 
+  $ ./config.status 
+
+on mango
+
+config.status:714: creating Makefile
+config.status:714: creating afterbase.h
+config.status:714: creating afterimage-libs
+config.status:714: creating afterimage-config
+config.status:714: creating apps/Makefile
+config.status:818: creating config.h
+
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+
+ac_cv_build=x86_64-unknown-linux-gnu
+ac_cv_build_alias=x86_64-unknown-linux-gnu
+ac_cv_c_bigendian=no
+ac_cv_c_char_unsigned=no
+ac_cv_c_compiler_gnu=yes
+ac_cv_c_const=yes
+ac_cv_c_inline=inline
+ac_cv_env_CC_set=
+ac_cv_env_CC_value=
+ac_cv_env_CFLAGS_set=
+ac_cv_env_CFLAGS_value=
+ac_cv_env_CPPFLAGS_set=
+ac_cv_env_CPPFLAGS_value=
+ac_cv_env_CPP_set=
+ac_cv_env_CPP_value=
+ac_cv_env_LDFLAGS_set=
+ac_cv_env_LDFLAGS_value=
+ac_cv_env_build_alias_set=
+ac_cv_env_build_alias_value=
+ac_cv_env_host_alias_set=
+ac_cv_env_host_alias_value=
+ac_cv_env_target_alias_set=
+ac_cv_env_target_alias_value=
+ac_cv_exeext=
+ac_cv_func_connect=yes
+ac_cv_func_gethostbyname=yes
+ac_cv_func_remove=yes
+ac_cv_func_shmat=yes
+ac_cv_have_x='have_x=yes 		ac_x_includes= ac_x_libraries=/usr/lib64'
+ac_cv_header_dirent_dirent_h=yes
+ac_cv_header_errno_h=yes
+ac_cv_header_ft2build_h=yes
+ac_cv_header_inttypes_h=yes
+ac_cv_header_jpeglib_h=yes
+ac_cv_header_libAfterBase_astypes_h=no
+ac_cv_header_malloc_h=yes
+ac_cv_header_memory_h=yes
+ac_cv_header_png_h=yes
+ac_cv_header_stdarg_h=yes
+ac_cv_header_stdc=yes
+ac_cv_header_stddef_h=yes
+ac_cv_header_stdint_h=yes
+ac_cv_header_stdlib_h=yes
+ac_cv_header_string_h=yes
+ac_cv_header_strings_h=yes
+ac_cv_header_sys_dirent_h=no
+ac_cv_header_sys_stat_h=yes
+ac_cv_header_sys_time_h=yes
+ac_cv_header_sys_types_h=yes
+ac_cv_header_sys_wait_h=yes
+ac_cv_header_tiffio_h=yes
+ac_cv_header_time=yes
+ac_cv_header_unistd_h=yes
+ac_cv_header_zlib_h=yes
+ac_cv_host=x86_64-unknown-linux-gnu
+ac_cv_host_alias=x86_64-unknown-linux-gnu
+ac_cv_lib_GL_glDrawPixels=yes
+ac_cv_lib_ICE_IceConnectionNumber=yes
+ac_cv_lib_X11_XOpenDisplay=yes
+ac_cv_lib_Xext_XShapeCombineMask=yes
+ac_cv_objext=o
+ac_cv_path_CP=/usr/bin/cp
+ac_cv_path_FIND=/usr/bin/find
+ac_cv_path_LDCONFIG=/sbin/ldconfig
+ac_cv_path_MKDIR=/usr/bin/mkdir
+ac_cv_path_MV=/usr/bin/mv
+ac_cv_path_PERL=/usr/bin/perl
+ac_cv_path_RM=/usr/bin/rm
+ac_cv_path_XARGS=/usr/bin/xargs
+ac_cv_path_install='/usr/bin/install -c'
+ac_cv_prog_CPP='gcc -E'
+ac_cv_prog_ac_ct_CC=gcc
+ac_cv_prog_ac_ct_RANLIB=ranlib
+ac_cv_prog_cc_g=yes
+ac_cv_prog_cc_stdc=
+ac_cv_prog_egrep='grep -E'
+ac_cv_search_opendir='none required'
+ac_cv_type_long_long=yes
+ac_cv_type_unsigned_char=yes
+ac_cv_type_unsigned_short=yes
+
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+
+AFTERBASE_C='afterbase.o'
+AFTERBASE_INCS_PATH=''
+AFTERIMAGE_APPS_LIBS='-L../ -lAfterImage -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm'
+AFTERIMAGE_LIBS='-L/usr/local/lib -lAfterImage  -lfreetype -lz -ltiff -lX11 -L/usr/lib64 -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm'
+AFTERIMAGE_LIBS_EXTERNAL='-lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm'
+AFTERIMAGE_LIB_LIBS='-L./ -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm'
+AFTERIMAGE_TEST_LIBS='-L./ -lAfterImage -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm'
+CC='gcc'
+CFLAGS='-O3 -DNO_DEBUG_OUTPUT -fPIC -Wall'
+CP='/usr/bin/cp'
+CPP='gcc -E'
+CPPFLAGS=''
+DEFINE_XLOCALE=''
+DEFS='-DHAVE_CONFIG_H'
+ECHO_C=''
+ECHO_N='-n'
+ECHO_T=''
+EGREP='grep -E'
+EXEEXT=''
+FIND='/usr/bin/find'
+GIF_CFLAGS=''
+HAVE_AFTERBASE_FLAG='0'
+INSTALL='/usr/bin/install -c'
+INSTALL_DATA='${INSTALL} -m 644'
+INSTALL_LIB=''
+INSTALL_PROGRAM='${INSTALL}'
+INSTALL_SCRIPT='${INSTALL}'
+JPEG_CFLAGS=''
+JPEG_OBJS=''
+LDCONFIG='/sbin/ldconfig'
+LDFLAGS=' -rdynamic'
+LEX=''
+LEXLIB=''
+LIBINSTALL='install.static'
+LIBOBJS=''
+LIBPROG='$(LIB_STATIC)'
+LIBS=''
+LN_S='ln -s'
+LTLIBOBJS=''
+MKDIR='/usr/bin/mkdir'
+MV='/usr/bin/mv'
+OBJEXT='o'
+PACKAGE_BUGREPORT='as-bugs@afterstep.org'
+PACKAGE_NAME='libAfterImage'
+PACKAGE_STRING='libAfterImage 1.07'
+PACKAGE_TARNAME='libAfterImage.tar'
+PACKAGE_VERSION='1.07'
+PATH_SEPARATOR=':'
+PERL='/usr/bin/perl'
+PNG_CFLAGS=''
+PNG_OBJS=''
+RANLIB='ranlib'
+RM='/usr/bin/rm'
+SHELL='/bin/sh'
+TIFF_CFLAGS=''
+TTF_INCLUDES=' -I/usr/include/freetype2'
+UNGIF_OBJS='$(LIBUNGIF_OBJS)'
+USE_DEFAULT_AFTERBASE='0'
+XARGS='/usr/bin/xargs'
+XPM_CFLAGS=''
+X_CFLAGS=''
+X_EXTRA_LIBS=''
+X_LIBS=' -L/usr/lib64'
+X_PRE_LIBS=' -lSM -lICE'
+YACC=''
+ZLIB_OBJS=''
+ac_ct_CC='gcc'
+ac_ct_RANLIB='ranlib'
+bindir='${exec_prefix}/bin'
+build='x86_64-unknown-linux-gnu'
+build_alias=''
+build_cpu='x86_64'
+build_os='linux-gnu'
+build_vendor='unknown'
+datadir='${prefix}/share'
+exec_prefix='/usr/local'
+have_afterbase='no'
+host='x86_64-unknown-linux-gnu'
+host_alias=''
+host_cpu='x86_64'
+host_os='linux-gnu'
+host_vendor='unknown'
+image_format='png'
+includedir='/usr/local/include'
+infodir='${prefix}/info'
+lib_file_name='libAfterImage'
+lib_name='LIBAFTERIMAGE'
+libdir='/usr/local/lib'
+libexecdir='${exec_prefix}/libexec'
+localstatedir='${prefix}/var'
+mandir='/usr/local/man'
+oldincludedir='/usr/include'
+prefix='/usr/local'
+program_transform_name='s,x,x,'
+sbindir='${exec_prefix}/sbin'
+sharedstatedir='${prefix}/com'
+sysconfdir='${prefix}/etc'
+target_alias=''
+user_ldflags=' -rdynamic'
+version='1.07'
+version_major='1'
+with_locale=''
+x_libs='-lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext'
+
+## ------------- ##
+## Output files. ##
+## ------------- ##
+
+LIBAFTERIMAGEFILES='.shared'
+
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+
+#define HAVE_BUILTIN_UNGIF 1
+#define HAVE_DIRENT_H 1
+#define HAVE_ERRNO_H 1
+#define HAVE_FREETYPE 1
+#define HAVE_FREETYPE_FREETYPE 1
+#define HAVE_FT2BUILD_H 1
+#define HAVE_GIF 1
+#define HAVE_GLX 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_JPEG 1
+#define HAVE_LONG_LONG 1
+#define HAVE_MALLOC_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_MMX 1
+#define HAVE_PNG 1
+#define HAVE_PROTOTYPES 1
+#define HAVE_STDARG_H 1
+#define HAVE_STDDEF_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SYS_TIME_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_WAIT_H 1
+#define HAVE_TIFF 1
+#define HAVE_UNISTD_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_XPM 1
+#define HAVE_ZLIB_H 1
+#define PACKAGE_BUGREPORT "as-bugs@afterstep.org"
+#define PACKAGE_NAME "libAfterImage"
+#define PACKAGE_STRING "libAfterImage 1.07"
+#define PACKAGE_TARNAME "libAfterImage.tar"
+#define PACKAGE_VERSION "1.07"
+#define SHAPE 1
+#define STDC_HEADERS 1
+#define TIME_WITH_SYS_TIME 1
+
+configure: exit 0
diff -Nur libAfterImage-1.07/config.status libAfterImage-1.07.new/config.status
--- libAfterImage-1.07/config.status	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/config.status	2006-09-13 12:00:57.000000000 +0100
@@ -0,0 +1,1037 @@
+#! /bin/sh
+# Generated by configure.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=${CONFIG_SHELL-/bin/sh}
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
+do
+  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
+    eval $as_var=C; export $as_var
+  else
+    $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)$' \| \
+	 .     : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\/\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  echo "#! /bin/sh" >conf$$.sh
+  echo  "exit 0"   >>conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  case $0 in
+    *[\\/]* ) as_myself=$0 ;;
+    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+
+       ;;
+  esac
+  # We did not find ourselves, most probably we were run as `sh COMMAND'
+  # in which case we are not to be found in the path.
+  if test "x$as_myself" = x; then
+    as_myself=$0
+  fi
+  if test ! -f "$as_myself"; then
+    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for as_base in sh bash ksh sh5; do
+	 case $as_dir in
+	 /*)
+	   if ("$as_dir/$as_base" -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+	     CONFIG_SHELL=$as_dir/$as_base
+	     export CONFIG_SHELL
+	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+	   fi;;
+	 esac
+       done
+done
+;;
+  esac
+
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, and appends trailing '-' during
+  # substitution so that $LINENO is not a special case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' <$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\n,,
+    ' >$as_me.lineno &&
+  chmod +x $as_me.lineno ||
+    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='	' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" 	$as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+exec 6>&1
+
+# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.  Logging --version etc. is OK.
+exec 5>>config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+} >&5
+cat >&5 <<_CSEOF
+
+This file was extended by libAfterImage $as_me 1.07, which was
+generated by GNU Autoconf 2.59.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+_CSEOF
+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+echo >&5
+config_files=" Makefile afterbase.h afterimage-libs afterimage-config apps/Makefile"
+config_headers=" config.h:config.h.in"
+
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number, then exit
+  -q, --quiet      do not print progress messages
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+  --file=FILE[:TEMPLATE]
+		   instantiate the configuration file FILE
+  --header=FILE[:TEMPLATE]
+		   instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Report bugs to <bug-autoconf@gnu.org>."
+ac_cs_version="\
+libAfterImage config.status 1.07
+configured by ./configure, generated by GNU Autoconf 2.59,
+  with options \"'--enable-glx'\"
+
+Copyright (C) 2003 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+srcdir=.
+INSTALL="/usr/bin/install -c"
+# If no file are specified by the user, then we need to provide default
+# value.  By we need to know if files were specified by the user.
+ac_need_defaults=:
+while test $# != 0
+do
+  case $1 in
+  --*=*)
+    ac_option=`expr "x$1" : 'x\([^=]*\)='`
+    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+    ac_shift=:
+    ;;
+  -*)
+    ac_option=$1
+    ac_optarg=$2
+    ac_shift=shift
+    ;;
+  *) # This is not an option, so the user has probably given explicit
+     # arguments.
+     ac_option=$1
+     ac_need_defaults=false;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --vers* | -V )
+    echo "$ac_cs_version"; exit 0 ;;
+  --he | --h)
+    # Conflict between --help and --header
+    { { echo "$as_me:$LINENO: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2;}
+   { (exit 1); exit 1; }; };;
+  --help | --hel | -h )
+    echo "$ac_cs_usage"; exit 0 ;;
+  --debug | --d* | -d )
+    debug=: ;;
+  --file | --fil | --fi | --f )
+    $ac_shift
+    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
+    ac_need_defaults=false;;
+  --header | --heade | --head | --hea )
+    $ac_shift
+    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
+    ac_need_defaults=false;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2;}
+   { (exit 1); exit 1; }; } ;;
+
+  *) ac_config_targets="$ac_config_targets $1" ;;
+
+  esac
+  shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+  exec 6>/dev/null
+  ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+if $ac_cs_recheck; then
+  echo "running /bin/sh ./configure " '--enable-glx' $ac_configure_extra_args " --no-create --no-recursion" >&6
+  exec /bin/sh ./configure '--enable-glx' $ac_configure_extra_args --no-create --no-recursion
+fi
+
+for ac_config_target in $ac_config_targets
+do
+  case "$ac_config_target" in
+  # Handling of arguments.
+  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+  "afterbase.h" ) CONFIG_FILES="$CONFIG_FILES afterbase.h" ;;
+  "afterimage-libs" ) CONFIG_FILES="$CONFIG_FILES afterimage-libs" ;;
+  "afterimage-config" ) CONFIG_FILES="$CONFIG_FILES afterimage-config" ;;
+  "apps/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
+  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
+  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason to put it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+
+{
+  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=./confstat$$-$RANDOM
+  (umask 077 && mkdir $tmp)
+} ||
+{
+   echo "$me: cannot create a temporary directory in ." >&2
+   { (exit 1); exit 1; }
+}
+
+
+#
+# CONFIG_FILES section.
+#
+
+# No need to generate the scripts if there are no CONFIG_FILES.
+# This happens for instance when ./config.status config.h
+if test -n "$CONFIG_FILES"; then
+  # Protect against being on the right side of a sed subst in config.status.
+  sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
+   s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF
+s,@SHELL@,/bin/sh,;t t
+s,@PATH_SEPARATOR@,:,;t t
+s,@PACKAGE_NAME@,libAfterImage,;t t
+s,@PACKAGE_TARNAME@,libAfterImage.tar,;t t
+s,@PACKAGE_VERSION@,1.07,;t t
+s,@PACKAGE_STRING@,libAfterImage 1.07,;t t
+s,@PACKAGE_BUGREPORT@,as-bugs@afterstep.org,;t t
+s,@exec_prefix@,/usr/local,;t t
+s,@prefix@,/usr/local,;t t
+s,@program_transform_name@,s,x,x,,;t t
+s,@bindir@,${exec_prefix}/bin,;t t
+s,@sbindir@,${exec_prefix}/sbin,;t t
+s,@libexecdir@,${exec_prefix}/libexec,;t t
+s,@datadir@,${prefix}/share,;t t
+s,@sysconfdir@,${prefix}/etc,;t t
+s,@sharedstatedir@,${prefix}/com,;t t
+s,@localstatedir@,${prefix}/var,;t t
+s,@libdir@,/usr/local/lib,;t t
+s,@includedir@,/usr/local/include,;t t
+s,@oldincludedir@,/usr/include,;t t
+s,@infodir@,${prefix}/info,;t t
+s,@mandir@,/usr/local/man,;t t
+s,@build_alias@,,;t t
+s,@host_alias@,,;t t
+s,@target_alias@,,;t t
+s,@DEFS@,-DHAVE_CONFIG_H,;t t
+s,@ECHO_C@,,;t t
+s,@ECHO_N@,-n,;t t
+s,@ECHO_T@,,;t t
+s,@LIBS@,,;t t
+s,@CC@,gcc,;t t
+s,@CFLAGS@,-O3 -DNO_DEBUG_OUTPUT -fPIC -Wall,;t t
+s,@LDFLAGS@, -rdynamic,;t t
+s,@CPPFLAGS@,,;t t
+s,@ac_ct_CC@,gcc,;t t
+s,@EXEEXT@,,;t t
+s,@OBJEXT@,o,;t t
+s,@LN_S@,ln -s,;t t
+s,@build@,x86_64-unknown-linux-gnu,;t t
+s,@build_cpu@,x86_64,;t t
+s,@build_vendor@,unknown,;t t
+s,@build_os@,linux-gnu,;t t
+s,@host@,x86_64-unknown-linux-gnu,;t t
+s,@host_cpu@,x86_64,;t t
+s,@host_vendor@,unknown,;t t
+s,@host_os@,linux-gnu,;t t
+s,@INSTALL@,/usr/bin/install -c,;t t
+s,@INSTALL_PROGRAM@,${INSTALL},;t t
+s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
+s,@INSTALL_LIB@,,;t t
+s,@RANLIB@,ranlib,;t t
+s,@RM@,/usr/bin/rm,;t t
+s,@MV@,/usr/bin/mv,;t t
+s,@CP@,/usr/bin/cp,;t t
+s,@MKDIR@,/usr/bin/mkdir,;t t
+s,@PERL@,/usr/bin/perl,;t t
+s,@FIND@,/usr/bin/find,;t t
+s,@XARGS@,/usr/bin/xargs,;t t
+s,@LDCONFIG@,/sbin/ldconfig,;t t
+s,@LEX@,,;t t
+s,@LEXLIB@,,;t t
+s,@YACC@,,;t t
+s,@INSTALL_SCRIPT@,${INSTALL},;t t
+s,@ac_ct_RANLIB@,ranlib,;t t
+s,@CPP@,gcc -E,;t t
+s,@X_CFLAGS@,,;t t
+s,@X_PRE_LIBS@, -lSM -lICE,;t t
+s,@X_LIBS@, -L/usr/lib64,;t t
+s,@X_EXTRA_LIBS@,,;t t
+s,@EGREP@,grep -E,;t t
+s,@XPM_CFLAGS@,,;t t
+s,@JPEG_CFLAGS@,,;t t
+s,@PNG_CFLAGS@,,;t t
+s,@GIF_CFLAGS@,,;t t
+s,@TIFF_CFLAGS@,,;t t
+s,@TTF_INCLUDES@, -I/usr/include/freetype2,;t t
+s,@JPEG_OBJS@,,;t t
+s,@ZLIB_OBJS@,,;t t
+s,@PNG_OBJS@,,;t t
+s,@UNGIF_OBJS@,$(LIBUNGIF_OBJS),;t t
+s,@AFTERIMAGE_LIBS_EXTERNAL@,-lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm,;t t
+s,@AFTERBASE_INCS_PATH@,,;t t
+s,@USE_DEFAULT_AFTERBASE@,0,;t t
+s,@HAVE_AFTERBASE_FLAG@,0,;t t
+s,@AFTERBASE_C@,afterbase.o,;t t
+s,@have_afterbase@,no,;t t
+s,@AFTERIMAGE_APPS_LIBS@,-L../ -lAfterImage -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm,;t t
+s,@AFTERIMAGE_TEST_LIBS@,-L./ -lAfterImage -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm,;t t
+s,@AFTERIMAGE_LIB_LIBS@,-L./ -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm,;t t
+s,@AFTERIMAGE_LIBS@,-L/usr/local/lib -lAfterImage  -lfreetype -lz -ltiff -lX11 -L/usr/lib64 -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm,;t t
+s,@image_format@,png,;t t
+s,@version@,1.07,;t t
+s,@version_major@,1,;t t
+s,@lib_name@,LIBAFTERIMAGE,;t t
+s,@lib_file_name@,libAfterImage,;t t
+s,@with_locale@,,;t t
+s,@user_ldflags@, -rdynamic,;t t
+s,@x_libs@,-lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext,;t t
+s,@LIBPROG@,$(LIB_STATIC),;t t
+s,@LIBINSTALL@,install.static,;t t
+s,@DEFINE_XLOCALE@,,;t t
+s,@LIBOBJS@,,;t t
+s,@LTLIBOBJS@,,;t t
+/@LIBAFTERIMAGEFILES@/r .shared
+s,@LIBAFTERIMAGEFILES@,,;t t
+CEOF
+
+  # Split the substitutions into bite-sized pieces for seds with
+  # small command number limits, like on Digital OSF/1 and HP-UX.
+  ac_max_sed_lines=48
+  ac_sed_frag=1 # Number of current file.
+  ac_beg=1 # First line for current file.
+  ac_end=$ac_max_sed_lines # Line after last line for current file.
+  ac_more_lines=:
+  ac_sed_cmds=
+  while $ac_more_lines; do
+    if test $ac_beg -gt 1; then
+      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    else
+      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    fi
+    if test ! -s $tmp/subs.frag; then
+      ac_more_lines=false
+    else
+      # The purpose of the label and of the branching condition is to
+      # speed up the sed processing (if there are no `@' at all, there
+      # is no need to browse any of the substitutions).
+      # These are the two extra sed commands mentioned above.
+      (echo ':t
+  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
+      if test -z "$ac_sed_cmds"; then
+	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+      else
+	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+      fi
+      ac_sed_frag=`expr $ac_sed_frag + 1`
+      ac_beg=$ac_end
+      ac_end=`expr $ac_end + $ac_max_sed_lines`
+    fi
+  done
+  if test -z "$ac_sed_cmds"; then
+    ac_sed_cmds=cat
+  fi
+fi # test -n "$CONFIG_FILES"
+
+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
+  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+	cat >$tmp/stdin
+	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$ac_file" : 'X\(//\)[^/]' \| \
+	 X"$ac_file" : 'X\(//\)$' \| \
+	 X"$ac_file" : 'X\(/\)' \| \
+	 .     : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+  { if $as_mkdir_p; then
+    mkdir -p "$ac_dir"
+  else
+    as_dir="$ac_dir"
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$as_dir" : 'X\(//\)[^/]' \| \
+	 X"$as_dir" : 'X\(//\)$' \| \
+	 X"$as_dir" : 'X\(/\)' \| \
+	 .     : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+   { (exit 1); exit 1; }; }; }
+
+  ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+  case "$ac_dir" in
+  .) ac_abs_builddir=`pwd`;;
+  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+  *) ac_abs_builddir=`pwd`/"$ac_dir";;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+  case ${ac_top_builddir}. in
+  .) ac_abs_top_builddir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+  case $ac_srcdir in
+  .) ac_abs_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+  case $ac_top_srcdir in
+  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+  esac;;
+esac
+
+
+  case $INSTALL in
+  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
+  esac
+
+  if test x"$ac_file" != x-; then
+    { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+    rm -f "$ac_file"
+  fi
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated by config.status.  */
+  if test x"$ac_file" = x-; then
+    configure_input=
+  else
+    configure_input="$ac_file.  "
+  fi
+  configure_input=$configure_input"Generated from `echo $ac_file_in |
+				     sed 's,.*/,,'` by configure."
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+	 # Absolute (can't be DOS-style, as IFS=:)
+	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+	 echo "$f";;
+      *) # Relative
+	 if test -f "$f"; then
+	   # Build tree
+	   echo "$f"
+	 elif test -f "$srcdir/$f"; then
+	   # Source tree
+	   echo "$srcdir/$f"
+	 else
+	   # /dev/null tree
+	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+	 fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+  sed "/^[	 ]*VPATH[	 ]*=/{
+s/:*\$(srcdir):*/:/;
+s/:*\${srcdir}:*/:/;
+s/:*@srcdir@:*/:/;
+s/^\([^=]*=[	 ]*\):*/\1/;
+s/:*$//;
+s/^[^=]*=[	 ]*$//;
+}
+
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s,@configure_input@,$configure_input,;t t
+s,@srcdir@,$ac_srcdir,;t t
+s,@abs_srcdir@,$ac_abs_srcdir,;t t
+s,@top_srcdir@,$ac_top_srcdir,;t t
+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
+s,@builddir@,$ac_builddir,;t t
+s,@abs_builddir@,$ac_abs_builddir,;t t
+s,@top_builddir@,$ac_top_builddir,;t t
+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
+s,@INSTALL@,$ac_INSTALL,;t t
+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+  rm -f $tmp/stdin
+  if test x"$ac_file" != x-; then
+    mv $tmp/out $ac_file
+  else
+    cat $tmp/out
+    rm -f $tmp/out
+  fi
+
+done
+
+#
+# CONFIG_HEADER section.
+#
+
+# These sed commands 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.
+#
+# ac_d sets the value in "#define NAME VALUE" lines.
+ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
+ac_dB='[	 ].*$,\1#\2'
+ac_dC=' '
+ac_dD=',;t'
+# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
+ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
+ac_uB='$,\1#\2define\3'
+ac_uC=' '
+ac_uD=',;t'
+
+for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
+  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+	cat >$tmp/stdin
+	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+	 # Absolute (can't be DOS-style, as IFS=:)
+	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+	 # Do quote $f, to prevent DOS paths from being IFS'd.
+	 echo "$f";;
+      *) # Relative
+	 if test -f "$f"; then
+	   # Build tree
+	   echo "$f"
+	 elif test -f "$srcdir/$f"; then
+	   # Source tree
+	   echo "$srcdir/$f"
+	 else
+	   # /dev/null tree
+	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+	 fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+  # Remove the trailing spaces.
+  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
+
+  # Handle all the #define templates only if necessary.
+  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then
+  # If there are no defines, we may have an empty if/fi
+  :
+  cat >$tmp/defines.sed <<CEOF
+/^[	 ]*#[	 ]*define/!b
+t clr
+: clr
+${ac_dA}PACKAGE_NAME${ac_dB}PACKAGE_NAME${ac_dC}"libAfterImage"${ac_dD}
+${ac_dA}PACKAGE_TARNAME${ac_dB}PACKAGE_TARNAME${ac_dC}"libAfterImage.tar"${ac_dD}
+${ac_dA}PACKAGE_VERSION${ac_dB}PACKAGE_VERSION${ac_dC}"1.07"${ac_dD}
+${ac_dA}PACKAGE_STRING${ac_dB}PACKAGE_STRING${ac_dC}"libAfterImage 1.07"${ac_dD}
+${ac_dA}PACKAGE_BUGREPORT${ac_dB}PACKAGE_BUGREPORT${ac_dC}"as-bugs@afterstep.org"${ac_dD}
+${ac_dA}HAVE_MMX${ac_dB}HAVE_MMX${ac_dC}1${ac_dD}
+${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
+${ac_dA}HAVE_SYS_TYPES_H${ac_dB}HAVE_SYS_TYPES_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_SYS_STAT_H${ac_dB}HAVE_SYS_STAT_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_STDLIB_H${ac_dB}HAVE_STDLIB_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_STRING_H${ac_dB}HAVE_STRING_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_MEMORY_H${ac_dB}HAVE_MEMORY_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_STRINGS_H${ac_dB}HAVE_STRINGS_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_INTTYPES_H${ac_dB}HAVE_INTTYPES_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_STDINT_H${ac_dB}HAVE_STDINT_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_UNISTD_H${ac_dB}HAVE_UNISTD_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_LONG_LONG${ac_dB}HAVE_LONG_LONG${ac_dC}1${ac_dD}
+${ac_dA}TIME_WITH_SYS_TIME${ac_dB}TIME_WITH_SYS_TIME${ac_dC}1${ac_dD}
+${ac_dA}HAVE_SYS_WAIT_H${ac_dB}HAVE_SYS_WAIT_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_SYS_TIME_H${ac_dB}HAVE_SYS_TIME_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_MALLOC_H${ac_dB}HAVE_MALLOC_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_STDLIB_H${ac_dB}HAVE_STDLIB_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_UNISTD_H${ac_dB}HAVE_UNISTD_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_STDDEF_H${ac_dB}HAVE_STDDEF_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_STDARG_H${ac_dB}HAVE_STDARG_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_ERRNO_H${ac_dB}HAVE_ERRNO_H${ac_dC}1${ac_dD}
+${ac_dA}SHAPE${ac_dB}SHAPE${ac_dC}1${ac_dD}
+${ac_dA}HAVE_GLX${ac_dB}HAVE_GLX${ac_dC}1${ac_dD}
+${ac_dA}HAVE_XPM${ac_dB}HAVE_XPM${ac_dC}1${ac_dD}
+${ac_dA}HAVE_JPEG${ac_dB}HAVE_JPEG${ac_dC}1${ac_dD}
+${ac_dA}HAVE_PROTOTYPES${ac_dB}HAVE_PROTOTYPES${ac_dC}1${ac_dD}
+${ac_dA}HAVE_ZLIB_H${ac_dB}HAVE_ZLIB_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_PNG${ac_dB}HAVE_PNG${ac_dC}1${ac_dD}
+${ac_dA}HAVE_GIF${ac_dB}HAVE_GIF${ac_dC}1${ac_dD}
+${ac_dA}HAVE_BUILTIN_UNGIF${ac_dB}HAVE_BUILTIN_UNGIF${ac_dC}1${ac_dD}
+${ac_dA}HAVE_TIFF${ac_dB}HAVE_TIFF${ac_dC}1${ac_dD}
+${ac_dA}HAVE_FT2BUILD_H${ac_dB}HAVE_FT2BUILD_H${ac_dC}1${ac_dD}
+${ac_dA}HAVE_FREETYPE${ac_dB}HAVE_FREETYPE${ac_dC}1${ac_dD}
+CEOF
+  sed -f $tmp/defines.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+
+  cat >$tmp/defines.sed <<CEOF
+/^[	 ]*#[	 ]*define/!b
+t clr
+: clr
+${ac_dA}HAVE_FREETYPE_FREETYPE${ac_dB}HAVE_FREETYPE_FREETYPE${ac_dC}1${ac_dD}
+${ac_dA}HAVE_DIRENT_H${ac_dB}HAVE_DIRENT_H${ac_dC}1${ac_dD}
+CEOF
+  sed -f $tmp/defines.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+
+  fi # grep
+
+  # Handle all the #undef templates
+  cat >$tmp/undefs.sed <<CEOF
+/^[	 ]*#[	 ]*undef/!b
+t clr
+: clr
+${ac_uA}PACKAGE_NAME${ac_uB}PACKAGE_NAME${ac_uC}"libAfterImage"${ac_uD}
+${ac_uA}PACKAGE_TARNAME${ac_uB}PACKAGE_TARNAME${ac_uC}"libAfterImage.tar"${ac_uD}
+${ac_uA}PACKAGE_VERSION${ac_uB}PACKAGE_VERSION${ac_uC}"1.07"${ac_uD}
+${ac_uA}PACKAGE_STRING${ac_uB}PACKAGE_STRING${ac_uC}"libAfterImage 1.07"${ac_uD}
+${ac_uA}PACKAGE_BUGREPORT${ac_uB}PACKAGE_BUGREPORT${ac_uC}"as-bugs@afterstep.org"${ac_uD}
+${ac_uA}HAVE_MMX${ac_uB}HAVE_MMX${ac_uC}1${ac_uD}
+${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
+${ac_uA}HAVE_SYS_TYPES_H${ac_uB}HAVE_SYS_TYPES_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_SYS_STAT_H${ac_uB}HAVE_SYS_STAT_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_STDLIB_H${ac_uB}HAVE_STDLIB_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_STRING_H${ac_uB}HAVE_STRING_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_MEMORY_H${ac_uB}HAVE_MEMORY_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_STRINGS_H${ac_uB}HAVE_STRINGS_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_INTTYPES_H${ac_uB}HAVE_INTTYPES_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_STDINT_H${ac_uB}HAVE_STDINT_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_UNISTD_H${ac_uB}HAVE_UNISTD_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_LONG_LONG${ac_uB}HAVE_LONG_LONG${ac_uC}1${ac_uD}
+${ac_uA}TIME_WITH_SYS_TIME${ac_uB}TIME_WITH_SYS_TIME${ac_uC}1${ac_uD}
+${ac_uA}HAVE_SYS_WAIT_H${ac_uB}HAVE_SYS_WAIT_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_SYS_TIME_H${ac_uB}HAVE_SYS_TIME_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_MALLOC_H${ac_uB}HAVE_MALLOC_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_STDLIB_H${ac_uB}HAVE_STDLIB_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_UNISTD_H${ac_uB}HAVE_UNISTD_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_STDDEF_H${ac_uB}HAVE_STDDEF_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_STDARG_H${ac_uB}HAVE_STDARG_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_ERRNO_H${ac_uB}HAVE_ERRNO_H${ac_uC}1${ac_uD}
+${ac_uA}SHAPE${ac_uB}SHAPE${ac_uC}1${ac_uD}
+${ac_uA}HAVE_GLX${ac_uB}HAVE_GLX${ac_uC}1${ac_uD}
+${ac_uA}HAVE_XPM${ac_uB}HAVE_XPM${ac_uC}1${ac_uD}
+${ac_uA}HAVE_JPEG${ac_uB}HAVE_JPEG${ac_uC}1${ac_uD}
+${ac_uA}HAVE_PROTOTYPES${ac_uB}HAVE_PROTOTYPES${ac_uC}1${ac_uD}
+${ac_uA}HAVE_ZLIB_H${ac_uB}HAVE_ZLIB_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_PNG${ac_uB}HAVE_PNG${ac_uC}1${ac_uD}
+${ac_uA}HAVE_GIF${ac_uB}HAVE_GIF${ac_uC}1${ac_uD}
+${ac_uA}HAVE_BUILTIN_UNGIF${ac_uB}HAVE_BUILTIN_UNGIF${ac_uC}1${ac_uD}
+${ac_uA}HAVE_TIFF${ac_uB}HAVE_TIFF${ac_uC}1${ac_uD}
+${ac_uA}HAVE_FT2BUILD_H${ac_uB}HAVE_FT2BUILD_H${ac_uC}1${ac_uD}
+${ac_uA}HAVE_FREETYPE${ac_uB}HAVE_FREETYPE${ac_uC}1${ac_uD}
+CEOF
+  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+
+  cat >$tmp/undefs.sed <<CEOF
+/^[	 ]*#[	 ]*undef/!b
+t clr
+: clr
+${ac_uA}HAVE_FREETYPE_FREETYPE${ac_uB}HAVE_FREETYPE_FREETYPE${ac_uC}1${ac_uD}
+${ac_uA}HAVE_DIRENT_H${ac_uB}HAVE_DIRENT_H${ac_uC}1${ac_uD}
+s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
+CEOF
+  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated by config.status.  */
+  if test x"$ac_file" = x-; then
+    echo "/* Generated by configure.  */" >$tmp/config.h
+  else
+    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
+  fi
+  cat $tmp/in >>$tmp/config.h
+  rm -f $tmp/in
+  if test x"$ac_file" != x-; then
+    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
+      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+echo "$as_me: $ac_file is unchanged" >&6;}
+    else
+      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$ac_file" : 'X\(//\)[^/]' \| \
+	 X"$ac_file" : 'X\(//\)$' \| \
+	 X"$ac_file" : 'X\(/\)' \| \
+	 .     : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+      { if $as_mkdir_p; then
+    mkdir -p "$ac_dir"
+  else
+    as_dir="$ac_dir"
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$as_dir" : 'X\(//\)[^/]' \| \
+	 X"$as_dir" : 'X\(//\)$' \| \
+	 X"$as_dir" : 'X\(/\)' \| \
+	 .     : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+   { (exit 1); exit 1; }; }; }
+
+      rm -f $ac_file
+      mv $tmp/config.h $ac_file
+    fi
+  else
+    cat $tmp/config.h
+    rm -f $tmp/config.h
+  fi
+done
+
+{ (exit 0); exit 0; }
diff -Nur libAfterImage-1.07/Makefile libAfterImage-1.07.new/Makefile
--- libAfterImage-1.07/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/Makefile	2006-09-13 12:00:58.000000000 +0100
@@ -0,0 +1,371 @@
+#
+# Copyright (c) 2001, Sasha Vasko <sasha at aftercode.net>
+# Copyright (c) 1998, Guylhem AZNAR <guylhem@oeil.qc.ca>
+#
+
+subdirs = libjpeg libpng libungif zlib
+
+LIBJPEG_OBJS = 	libjpeg/jcapimin.o libjpeg/jcapistd.o libjpeg/jccoefct.o \
+		libjpeg/jccolor.o libjpeg/jcdctmgr.o libjpeg/jchuff.o \
+		libjpeg/jcinit.o libjpeg/jcmainct.o libjpeg/jcmarker.o \
+		libjpeg/jcmaster.o libjpeg/jcomapi.o libjpeg/jcparam.o \
+		libjpeg/jcphuff.o libjpeg/jcprepct.o libjpeg/jcsample.o \
+		libjpeg/jctrans.o libjpeg/jdapimin.o libjpeg/jdapistd.o \
+		libjpeg/jdatadst.o libjpeg/jdatasrc.o libjpeg/jdcoefct.o \
+		libjpeg/jdcolor.o libjpeg/jddctmgr.o libjpeg/jdhuff.o \
+		libjpeg/jdinput.o libjpeg/jdmainct.o libjpeg/jdmarker.o \
+		libjpeg/jdmaster.o libjpeg/jdmerge.o libjpeg/jdphuff.o \
+		libjpeg/jdpostct.o libjpeg/jdsample.o libjpeg/jdtrans.o \
+		libjpeg/jerror.o libjpeg/jfdctflt.o libjpeg/jfdctfst.o \
+		libjpeg/jfdctint.o libjpeg/jidctflt.o libjpeg/jidctfst.o \
+		libjpeg/jidctint.o libjpeg/jidctred.o libjpeg/jquant1.o \
+		libjpeg/jquant2.o libjpeg/jutils.o libjpeg/jmemmgr.o libjpeg/jmemnobs.o
+
+LIBPNG_OBJS = 	libpng/png.o libpng/pngset.o libpng/pngget.o libpng/pngrutil.o \
+		libpng/pngtrans.o libpng/pngwutil.o libpng/pngread.o libpng/pngrio.o \
+		libpng/pngwio.o libpng/pngwrite.o libpng/pngrtran.o \
+		libpng/pngwtran.o libpng/pngmem.o libpng/pngerror.o \
+		libpng/pngpread.o libpng/pnggccrd.o
+
+ZLIB_OBJS = 	zlib/adler32.o 	zlib/compress.o zlib/crc32.o \
+		zlib/gzio.o 	zlib/uncompr.o 	zlib/deflate.o \
+		zlib/trees.o 	zlib/zutil.o 	zlib/inflate.o \
+		zlib/infback.o 	zlib/inftrees.o zlib/inffast.o
+
+LIBUNGIF_OBJS = libungif/dgif_lib.o libungif/egif_lib.o libungif/gifalloc.o libungif/gif_err.o
+
+AFTERIMAGE_OBJS= afterbase.o asimage.o ascmap.o asfont.o asimagexml.o asstorage.o \
+		asvisual.o blender.o bmp.o char2uni.o draw.o export.o imencdec.o import.o \
+		pixmap.o transform.o ungif.o xcf.o ximage.o xpm.o
+
+################################################################
+# library specifics :
+
+LIB_INCS= afterimage.h config.h afterbase.h ascmap.h asfont.h asim_afterbase.h \
+		asimage.h asimagexml.h asstorage.h asvisual.h blender.h bmp.h char2uni.h \
+		draw.h export.h imencdec.h import.h pixmap.h transform.h ungif.h \
+		xcf.h ximage.h xpm.h xwrap.h
+
+LIB_OBJS=          $(LIBUNGIF_OBJS) $(AFTERIMAGE_OBJS)
+
+APPS_SRCS=apps/common.c apps/ascompose.c apps/asview.c \
+		  apps/asscale.c apps/astile.c apps/asmerge.c \
+		  apps/asgrad.c apps/asflip.c apps/astext.c
+
+APPS_INCS=apps/common.h
+
+# end specifics
+################################################################
+# generic makefile stuff :
+
+LIB_DIR_NAME    = libAfterImage
+LIB_NAME        = LIBAFTERIMAGE
+LIB_STATIC      = libAfterImage.a
+LIB_SHARED      = libAfterImage.so
+LIB_SHARED_CYG  = cygAfterImage.dll
+LIB_SHARED_CYG_AR  = libAfterImage.dll.a
+LIBVER          = 0.99
+LIBVERMAJOR     = 0
+
+CC		= gcc
+CCFLAGS         = -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall
+# -march=pentiumpro -mcpu=pentiumpro
+EXTRA_DEFINES	= 
+
+RANLIB		= ranlib
+AR		= ar clq
+CP		= /usr/bin/cp
+MV		= /usr/bin/mv
+RM		= /usr/bin/rm
+RMF		= /usr/bin/rm -f
+MKDIR		= /usr/bin/mkdir
+FIND		= /usr/bin/find
+XARGS		= /usr/bin/xargs
+LDCONFIG	= /sbin/ldconfig
+ROBODOC     = robodoc
+LN_S		= ln -s
+
+YACC		= 
+LEX		= 
+YACCFLAGS	= -d
+LEXFLAGS	=
+
+INSTALL		= /usr/bin/install -c
+INSTALL_PROGRAM	= /usr/bin/install -c -s -m 755
+INSTALL_DATA	= /usr/bin/install -c -m 644
+INSTALL_HEADER	= /usr/bin/install -c -m 644
+INSTALL_LIB	= /usr/bin/install -c -m 755
+INSTALL_SCRIPT	= /usr/bin/install -c -m 755
+
+INCS_EXTRA	=       -I/usr/include/freetype2
+INCS_X		= 
+INCS_PRIVATE    = 
+INCLUDES	= $(INCS_EXTRA) $(INCS_PRIVATE) $(INCS_X)
+
+USER_LD_FLAGS	=  -rdynamic
+LIBS_X		= -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext
+LIBS_XEXTS	=
+LIBS_TEST	= -L./ -lAfterImage -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm
+LIBS_AFTERIMAGE = -L./ -lfreetype -lz -ltiff -lX11  -L/usr/lib64   -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm
+LIBRARIES	= $(LIBS_AFTERIMAGE) $(LIBS_X) $(LIBS_XEXTS)
+LIBRARIES_TEST	= $(LIBS_TEST) $(LIBS_X) $(LIBS_XEXTS)
+
+prefix          = /usr/local
+exec_prefix     = /usr/local
+LIBDIR          = $(DESTDIR)/usr/local/lib
+INCLUDEDIR      = $(DESTDIR)/usr/local/include
+AFTER_INC_DIR	= $(DESTDIR)/usr/local/include/$(LIB_DIR_NAME)
+AFTER_BIN_DIR	= $(DESTDIR)${exec_prefix}/bin
+AFTER_MAN_DIR	= $(DESTDIR)/usr/local/man/man3
+AFTER_APP_MAN_DIR	= $(DESTDIR)/usr/local/man/man1
+AFTER_SHAREDIR	= $(DESTDIR)${prefix}/share/$(LIB_DIR_NAME)
+AFTER_DOC_DIR	= $(AFTER_SHAREDIR)/doc
+
+# We want to build both static and dynamic libs, as some service apps may need 
+# static library as they gets run at compile time (ASDocGen for example)
+# but we only install whats selected
+all:            $(LIB_STATIC) $(LIB_STATIC) $(INSTALLONBUILD) apps
+
+install.bin:
+
+install.lib:	$(LIB_STATIC) install.static install.inc
+
+install.static:
+		$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR)
+		@(if [ -d $(LIBDIR) ] && [ -w $(LIBDIR) ]; then \
+		    echo "$(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR)"; \
+		    $(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR); \
+		    if [ `uname` = "Linux" ]; then \
+			if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
+		    	    echo "" > /dev/null; \
+			elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
+		    	    echo "" > /dev/null; \
+			else \
+		    	    echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
+		    	    echo "$(LIB_STATIC), you may need to add it or set LD_LIBRARY_PATH."; \
+			fi; \
+			if test -w /etc; then \
+			    echo "$(LDCONFIG)"; \
+			    $(LDCONFIG); \
+			fi; \
+		    fi ;\
+		fi \
+		)
+
+install.script:
+
+install.dyn:
+		@( echo "$(INSTALL_LIB) $(LIB_SHARED).$(LIBVER) $(LIBDIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED).$(LIBVER) $(LIBDIR); \
+		$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR); \
+		$(RM) -f $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
+		$(LN_S) -f $(LIB_SHARED).$(LIBVER) $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR); \
+		$(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
+		if test `uname` = "Linux"; then \
+		   if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
+		     echo "" > /dev/null; \
+		   elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
+		     echo "" > /dev/null; \
+		   else \
+		     echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
+		     echo "$(LIB_SHARED), you may need to add it or set LD_LIBRARY_PATH."; \
+		   fi; \
+		   echo "$(LDCONFIG)"; \
+		   $(LDCONFIG); \
+		 fi \
+		)
+
+install.cyg:
+		@( echo "$(INSTALL_LIB) $(LIB_SHARED_CYG) $(AFTER_BIN_DIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED_CYG) $(AFTER_BIN_DIR); \
+		echo "$(INSTALL_LIB) $(LIB_SHARED_CYG) $(LIBDIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED_CYG) $(LIBDIR); \
+		echo "$(INSTALL_LIB) $(LIB_SHARED_CYG_AR) $(LIBDIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED_CYG_AR) $(LIBDIR); \
+		echo "$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR)"; \
+		$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR); \
+		)
+
+install.inc:
+		@(if [ -d $(AFTER_INC_DIR) ]; then \
+		    echo "$(RM) $(AFTER_INC_DIR)/*"; \
+		    $(RM) $(AFTER_INC_DIR)/*; \
+		 else \
+		    if [ -d $(INCLUDEDIR) ]; then \
+		       echo "$(MKDIR) $(AFTER_INC_DIR)"; \
+		       if $(MKDIR) $(AFTER_INC_DIR); then \
+		          echo " ">/dev/null; \
+		       else \
+		    	  echo "failed to create include directory: $(AFTER_INC_DIR)"; \
+		       fi; \
+		    else \
+		       echo "$(MKDIR) $(INCLUDEDIR)"; \
+		       if $(MKDIR) $(INCLUDEDIR); then \
+		          echo "$(MKDIR) $(AFTER_INC_DIR)"; \
+		          if $(MKDIR) $(AFTER_INC_DIR) >/dev/null; then \
+		             echo " ">/dev/null; \
+		          else \
+		             echo "failed to create include directory: $(AFTER_INC_DIR)"; \
+			  fi; \
+		       else \
+		          echo "failed to create include directory: $(INCLUDEDIR)"; \
+		       fi; \
+		    fi; \
+		 fi; \
+		 if [ -d $(AFTER_INC_DIR) ]; then \
+		    for file in $(LIB_INCS) ; do  \
+			echo "$(INSTALL_HEADER) $$file $(AFTER_INC_DIR)"; \
+			$(INSTALL_HEADER) $$file $(AFTER_INC_DIR); \
+		    done; \
+		 fi \
+		)
+
+install.apps: install.lib
+		cd apps; make install; cd ..
+
+uninstall.bin:
+
+uninstall.lib:
+
+uninstall.man:
+
+uninstall.script:
+
+clean:
+		$(RMF) $(LIB_SHARED) $(LIB_SHARED_CYG) $(LIB_SHARED_CYG_AR) $(LIB_STATIC) *.so.* *.so *.o *~ *% *.bak \#* core ; \
+		for I in ${subdirs}; do $(RMF) $$I/*.o $$I/*.obj $$I/*.bak; done; \
+		cd apps; make clean; cd ..
+
+distclean: clean
+		$(RMF) $(LIB_SHARED) $(LIB_SHARED_CYG) $(LIB_SHARED_CYG_AR) $(LIB_STATIC)  *.o *.so.* *~ *% *.bak \#* *.orig core Makefile ; \
+		cd apps; make distclean; cd ..
+
+indent:
+		@SRCS=`echo "$(AFTERIMAGE_OBJS) " | sed "s/.o /.c /g"`; \
+		if test "x$$SRCS" == "x"; then exit; fi; \
+		for i in $$SRCS; do \
+		  if (indent -di14 -ts4 -i4 -l120 -lc80 -bad -nbbb -bli0 -c48 -cd48 -ce -cli1 -ncs -nbs -nbbo -hnl < $$i > /tmp/$$i); then \
+		    echo "indent $$i"; \
+		    mv /tmp/$$i $$i; \
+		  fi; \
+		done ; \
+		cd apps; make indent; cd ..
+
+deps:
+		echo -n > .depend ; \
+		buf="" ; \
+		SRCS=`echo "$(AFTERIMAGE_OBJS) " | sed "s/.o /.c /g"`; \
+		echo -n $(LIB_NAME)_OBJS = > .shared ; \
+		for file in $$SRCS; do \
+		  echo " \\" >> .shared ; \
+		  echo -n '		$$('$(LIB_NAME)_PATH')'/$$file >> .shared ; \
+		  if test "x$$buf" != "x"; then \
+		      echo $$buf >>.depend ; \
+		      echo >>.depend ; \
+		  fi; \
+		  buf="./"`echo "$$file " | sed "s/.c /.o /g"`: ; \
+		  for d in `grep "#include \"" < $$file | awk -F \" '{print $$2}'`; do \
+		      if test "x$$buf" != "x"; then \
+		         echo $$buf \\ >>.depend ; \
+		      fi; \
+		      echo -n "		" >>.depend ; \
+		      buf="$$d "; \
+		  done; \
+		done; \
+		if test "x$$buf" != "x"; then \
+		  echo $$buf >>.depend ; \
+		fi; \
+		echo "">> .shared ; \
+		echo "">> .shared ; \
+		echo -n $(LIB_NAME)_INCS = >> .shared ; \
+		for f in $(LIB_INCS); do \
+		  echo " \\" >> .shared ; \
+		  echo -n '		$$('$(LIB_NAME)_PATH')'/$$f >> .shared ; \
+		done; \
+		echo "" >> .shared ; \
+		cd apps; make deps; cd ..
+
+apps: 	$(LIB_STATIC) $(LIB_OBJS) $(LIB_INCS) $(APPS_SRCS) $(APPS_INCS)
+		cd apps; make ; cd ..
+
+
+$(LIB_STATIC):	$(LIB_OBJS) $(LIB_INCS) config.h
+		$(RMF) $(LIB_STATIC)
+		$(AR) $(LIB_STATIC) $(LIB_OBJS)
+		$(RANLIB) $(LIB_STATIC)
+
+test_asstorage.o: asstorage.c
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_ASSTORAGE $(INCLUDES) $(EXTRA_INCLUDES) -c asstorage.c -o test_asstorage.o
+
+test_asstorage:	test_asstorage.o
+		$(CC) test_asstorage.o $(USER_LD_FLAGS)  $(LIBRARIES_TEST) $(EXTRA_LIBRARIES) -o test_asstorage
+
+test_asdraw.o:	draw.c
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_ASDRAW $(INCLUDES) $(EXTRA_INCLUDES) -c draw.c -o test_asdraw.o
+
+test_asdraw:	test_asdraw.o
+		$(CC) test_asdraw.o $(USER_LD_FLAGS) $(LIBRARIES_TEST) $(EXTRA_LIBRARIES) -o test_asdraw
+
+
+
+.c.o:
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c -o $@
+
+.c.s:
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -S $*.c
+
+#
+# include dependency files if they exist
+#
+# this is merely a precaution, but as it does not work with ansi make
+# we took it out
+#ifneq ($(wildcard .depend),)
+include .depend
+#endif
+
+$(LIB_SHARED_CYG): $(LIB_OBJS) $(LIB_INCS)
+	$(CC) -shared -o $(LIB_SHARED_CYG) \
+    		-Wl,--out-implib=$(LIB_SHARED_CYG_AR) \
+    		-Wl,--export-all-symbols -Wl,--enable-auto-import \
+    		-Wl,--whole-archive ${LIB_OBJS} \
+    		$(USER_LD_FLAGS) -Wl,--no-whole-archive $(LIBRARIES)
+
+$(LIB_SHARED): $(LIB_SHARED).$(LIBVERMAJOR)
+	$(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIB_SHARED)
+
+$(LIB_SHARED).$(LIBVERMAJOR): $(LIB_SHARED).$(LIBVER)
+	$(LN_S) -f $(LIB_SHARED).$(LIBVER) $(LIB_SHARED).$(LIBVERMAJOR)
+
+$(LIB_SHARED).$(LIBVER): $(LIB_OBJS) $(LIB_INCS) config.h
+	$(CC) -shared -Wl,-soname,$(LIB_SHARED).$(LIBVERMAJOR) -o $(LIB_SHARED).$(LIBVER) \
+	 $(LIB_OBJS)
+
+install.man:
+		@if [ -d doc/man ] ; then \
+			cd doc/man; \
+			for f in `ls *.man`; do \
+				page_name=`echo $$f| awk -F . '{print $$1}'`; \
+	  			echo $(INSTALL_DATA) $$page_name.man $(AFTER_MAN_DIR)/$$page_name.1x; \
+	  			$(INSTALL_DATA) $$page_name.man $(AFTER_MAN_DIR)/$$page_name.1x; \
+			done; cd ../..; \
+		fi
+			
+
+install.doc:
+		@if [ -d doc/html ] ; then \
+			if [ ! -d $(AFTER_DOC_DIR)/html ] ; then \
+				$(MKDIR) -p $(AFTER_DOC_DIR)/html; \
+			fi; \
+			cd doc/html; \
+			for f in `ls *.html`; do \
+		  		echo $(INSTALL_DATA) $$f $(AFTER_DOC_DIR)/html/$$f; \
+		  		$(INSTALL_DATA) $$f $(AFTER_DOC_DIR)/html/$$f; \
+			done; \
+			cd ../..; \
+		fi
+
+install:	install.lib install.man install.doc install.apps
+
+
+uninstall:	uninstall.lib
+
diff -Nur libAfterImage-1.07/Makefile.in libAfterImage-1.07.new/Makefile.in
--- libAfterImage-1.07/Makefile.in	2005-06-03 21:44:06.000000000 +0100
+++ libAfterImage-1.07.new/Makefile.in	2006-09-13 15:10:03.000000000 +0100
@@ -78,7 +78,7 @@
 MV		= @MV@
 RM		= @RM@
 RMF		= @RM@ -f
-MKDIR		= @MKDIR@
+MKDIR		= @MKDIR@ -p
 FIND		= @FIND@
 XARGS		= @XARGS@
 LDCONFIG	= @LDCONFIG@
@@ -135,20 +135,6 @@
 		@(if [ -d $(LIBDIR) ] && [ -w $(LIBDIR) ]; then \
 		    echo "$(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR)"; \
 		    $(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR); \
-		    if [ `uname` = "Linux" ]; then \
-			if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
-		    	    echo "" > /dev/null; \
-			elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
-		    	    echo "" > /dev/null; \
-			else \
-		    	    echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
-		    	    echo "$(LIB_STATIC), you may need to add it or set LD_LIBRARY_PATH."; \
-			fi; \
-			if test -w /etc; then \
-			    echo "$(LDCONFIG)"; \
-			    $(LDCONFIG); \
-			fi; \
-		    fi ;\
 		fi \
 		)
 
@@ -161,18 +147,6 @@
 		$(RM) -f $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
 		$(LN_S) -f $(LIB_SHARED).$(LIBVER) $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR); \
 		$(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
-		if test `uname` = "Linux"; then \
-		   if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
-		     echo "" > /dev/null; \
-		   elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
-		     echo "" > /dev/null; \
-		   else \
-		     echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
-		     echo "$(LIB_SHARED), you may need to add it or set LD_LIBRARY_PATH."; \
-		   fi; \
-		   echo "$(LDCONFIG)"; \
-		   $(LDCONFIG); \
-		 fi \
 		)
 
 install.cyg:
@@ -221,7 +195,7 @@
 		)
 
 install.apps: install.lib
-		cd apps; make install; cd ..
+		cd apps; $(MAKE) install; cd ..
 
 uninstall.bin:
 
@@ -364,7 +338,7 @@
 			cd ../..; \
 		fi
 
-install:	install.lib install.man install.doc install.apps
+install:	install.lib install.man install.apps
 
 
 uninstall:	uninstall.lib
diff -Nur libAfterImage-1.07/Makefile.in~ libAfterImage-1.07.new/Makefile.in~
--- libAfterImage-1.07/Makefile.in~	1970-01-01 01:00:00.000000000 +0100
+++ libAfterImage-1.07.new/Makefile.in~	2006-09-13 14:25:30.000000000 +0100
@@ -0,0 +1,363 @@
+#
+# Copyright (c) 2001, Sasha Vasko <sasha at aftercode.net>
+# Copyright (c) 1998, Guylhem AZNAR <guylhem@oeil.qc.ca>
+#
+
+subdirs = libjpeg libpng libungif zlib
+
+LIBJPEG_OBJS = 	libjpeg/jcapimin.o libjpeg/jcapistd.o libjpeg/jccoefct.o \
+		libjpeg/jccolor.o libjpeg/jcdctmgr.o libjpeg/jchuff.o \
+		libjpeg/jcinit.o libjpeg/jcmainct.o libjpeg/jcmarker.o \
+		libjpeg/jcmaster.o libjpeg/jcomapi.o libjpeg/jcparam.o \
+		libjpeg/jcphuff.o libjpeg/jcprepct.o libjpeg/jcsample.o \
+		libjpeg/jctrans.o libjpeg/jdapimin.o libjpeg/jdapistd.o \
+		libjpeg/jdatadst.o libjpeg/jdatasrc.o libjpeg/jdcoefct.o \
+		libjpeg/jdcolor.o libjpeg/jddctmgr.o libjpeg/jdhuff.o \
+		libjpeg/jdinput.o libjpeg/jdmainct.o libjpeg/jdmarker.o \
+		libjpeg/jdmaster.o libjpeg/jdmerge.o libjpeg/jdphuff.o \
+		libjpeg/jdpostct.o libjpeg/jdsample.o libjpeg/jdtrans.o \
+		libjpeg/jerror.o libjpeg/jfdctflt.o libjpeg/jfdctfst.o \
+		libjpeg/jfdctint.o libjpeg/jidctflt.o libjpeg/jidctfst.o \
+		libjpeg/jidctint.o libjpeg/jidctred.o libjpeg/jquant1.o \
+		libjpeg/jquant2.o libjpeg/jutils.o libjpeg/jmemmgr.o libjpeg/jmemnobs.o
+
+LIBPNG_OBJS = 	libpng/png.o libpng/pngset.o libpng/pngget.o libpng/pngrutil.o \
+		libpng/pngtrans.o libpng/pngwutil.o libpng/pngread.o libpng/pngrio.o \
+		libpng/pngwio.o libpng/pngwrite.o libpng/pngrtran.o \
+		libpng/pngwtran.o libpng/pngmem.o libpng/pngerror.o \
+		libpng/pngpread.o libpng/pnggccrd.o
+
+ZLIB_OBJS = 	zlib/adler32.o 	zlib/compress.o zlib/crc32.o \
+		zlib/gzio.o 	zlib/uncompr.o 	zlib/deflate.o \
+		zlib/trees.o 	zlib/zutil.o 	zlib/inflate.o \
+		zlib/infback.o 	zlib/inftrees.o zlib/inffast.o
+
+LIBUNGIF_OBJS = libungif/dgif_lib.o libungif/egif_lib.o libungif/gifalloc.o libungif/gif_err.o
+
+AFTERIMAGE_OBJS= @AFTERBASE_C@ asimage.o ascmap.o asfont.o asimagexml.o asstorage.o \
+		asvisual.o blender.o bmp.o char2uni.o draw.o export.o imencdec.o import.o \
+		pixmap.o transform.o ungif.o xcf.o ximage.o xpm.o
+
+################################################################
+# library specifics :
+
+LIB_INCS= afterimage.h config.h afterbase.h ascmap.h asfont.h asim_afterbase.h \
+		asimage.h asimagexml.h asstorage.h asvisual.h blender.h bmp.h char2uni.h \
+		draw.h export.h imencdec.h import.h pixmap.h transform.h ungif.h \
+		xcf.h ximage.h xpm.h xwrap.h
+
+LIB_OBJS=       @JPEG_OBJS@ @ZLIB_OBJS@ @PNG_OBJS@ @UNGIF_OBJS@ $(AFTERIMAGE_OBJS)
+
+APPS_SRCS=apps/common.c apps/ascompose.c apps/asview.c \
+		  apps/asscale.c apps/astile.c apps/asmerge.c \
+		  apps/asgrad.c apps/asflip.c apps/astext.c
+
+APPS_INCS=apps/common.h
+
+# end specifics
+################################################################
+# generic makefile stuff :
+
+LIB_DIR_NAME    = libAfterImage
+LIB_NAME        = LIBAFTERIMAGE
+LIB_STATIC      = libAfterImage.a
+LIB_SHARED      = libAfterImage.so
+LIB_SHARED_CYG  = cygAfterImage.dll
+LIB_SHARED_CYG_AR  = libAfterImage.dll.a
+LIBVER          = 0.99
+LIBVERMAJOR     = 0
+
+CC		= @CC@
+CCFLAGS         = @CFLAGS@
+# -march=pentiumpro -mcpu=pentiumpro
+EXTRA_DEFINES	= @DEFINE_XLOCALE@
+
+RANLIB		= @RANLIB@
+AR		= ar clq
+CP		= @CP@
+MV		= @MV@
+RM		= @RM@
+RMF		= @RM@ -f
+MKDIR		= @MKDIR@ -p
+FIND		= @FIND@
+XARGS		= @XARGS@
+LDCONFIG	= @LDCONFIG@
+ROBODOC     = robodoc
+LN_S		= @LN_S@
+
+YACC		= @YACC@
+LEX		= @LEX@
+YACCFLAGS	= -d
+LEXFLAGS	=
+
+INSTALL		= @INSTALL@
+INSTALL_PROGRAM	= @INSTALL@ -s -m 755
+INSTALL_DATA	= @INSTALL@ -m 644
+INSTALL_HEADER	= @INSTALL@ -m 644
+INSTALL_LIB	= @INSTALL@ -m 755
+INSTALL_SCRIPT	= @INSTALL@ -m 755
+
+INCS_EXTRA	= @XPM_CFLAGS@ @JPEG_CFLAGS@ @PNG_CFLAGS@ @GIF_CFLAGS@ @TIFF_CFLAGS@ @TTF_INCLUDES@
+INCS_X		= @X_CFLAGS@
+INCS_PRIVATE    = 
+INCLUDES	= $(INCS_EXTRA) $(INCS_PRIVATE) $(INCS_X)
+
+USER_LD_FLAGS	= @user_ldflags@
+LIBS_X		= @x_libs@
+LIBS_XEXTS	=
+LIBS_TEST	= @AFTERIMAGE_TEST_LIBS@
+LIBS_AFTERIMAGE = @AFTERIMAGE_LIB_LIBS@
+LIBRARIES	= $(LIBS_AFTERIMAGE) $(LIBS_X) $(LIBS_XEXTS)
+LIBRARIES_TEST	= $(LIBS_TEST) $(LIBS_X) $(LIBS_XEXTS)
+
+prefix          = @prefix@
+exec_prefix     = @exec_prefix@
+LIBDIR          = $(DESTDIR)@libdir@
+INCLUDEDIR      = $(DESTDIR)@includedir@
+AFTER_INC_DIR	= $(DESTDIR)@includedir@/$(LIB_DIR_NAME)
+AFTER_BIN_DIR	= $(DESTDIR)@bindir@
+AFTER_MAN_DIR	= $(DESTDIR)@mandir@/man3
+AFTER_APP_MAN_DIR	= $(DESTDIR)@mandir@/man1
+AFTER_SHAREDIR	= $(DESTDIR)@datadir@/$(LIB_DIR_NAME)
+AFTER_DOC_DIR	= $(AFTER_SHAREDIR)/doc
+
+# We want to build both static and dynamic libs, as some service apps may need 
+# static library as they gets run at compile time (ASDocGen for example)
+# but we only install whats selected
+all:            $(LIB_STATIC) @LIBPROG@ $(INSTALLONBUILD) apps
+
+install.bin:
+
+install.lib:	@LIBPROG@ @LIBINSTALL@ install.inc
+
+install.static:
+		$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR)
+		@(if [ -d $(LIBDIR) ] && [ -w $(LIBDIR) ]; then \
+		    echo "$(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR)"; \
+		    $(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR); \
+		    if [ `uname` = "Linux" ]; then \
+			if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
+		    	    echo "" > /dev/null; \
+			elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
+		    	    echo "" > /dev/null; \
+			else \
+		    	    echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
+		    	    echo "$(LIB_STATIC), you may need to add it or set LD_LIBRARY_PATH."; \
+			fi; \
+			if test -w /etc; then \
+			    echo "$(LDCONFIG)"; \
+			    $(LDCONFIG); \
+			fi; \
+		    fi ;\
+		fi \
+		)
+
+install.script:
+
+install.dyn:
+		@( echo "$(INSTALL_LIB) $(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR); \
+		$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR); \
+		$(RM) -f $(LIBDIR)/$(LIB_SHARED); \
+		$(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
+		if test `uname` = "Linux"; then \
+		   if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
+		     echo "" > /dev/null; \
+		   elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
+		     echo "" > /dev/null; \
+		   else \
+		     echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
+		     echo "$(LIB_SHARED), you may need to add it or set LD_LIBRARY_PATH."; \
+		   fi; \
+		   echo "$(LDCONFIG)"; \
+		   $(LDCONFIG); \
+		 fi \
+		)
+
+install.cyg:
+		@( echo "$(INSTALL_LIB) $(LIB_SHARED_CYG) $(AFTER_BIN_DIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED_CYG) $(AFTER_BIN_DIR); \
+		echo "$(INSTALL_LIB) $(LIB_SHARED_CYG) $(LIBDIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED_CYG) $(LIBDIR); \
+		echo "$(INSTALL_LIB) $(LIB_SHARED_CYG_AR) $(LIBDIR)"; \
+		$(INSTALL_LIB) $(LIB_SHARED_CYG_AR) $(LIBDIR); \
+		echo "$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR)"; \
+		$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR); \
+		)
+
+install.inc:
+		@(if [ -d $(AFTER_INC_DIR) ]; then \
+		    echo "$(RM) $(AFTER_INC_DIR)/*"; \
+		    $(RM) $(AFTER_INC_DIR)/*; \
+		 else \
+		    if [ -d $(INCLUDEDIR) ]; then \
+		       echo "$(MKDIR) $(AFTER_INC_DIR)"; \
+		       if $(MKDIR) $(AFTER_INC_DIR); then \
+		          echo " ">/dev/null; \
+		       else \
+		    	  echo "failed to create include directory: $(AFTER_INC_DIR)"; \
+		       fi; \
+		    else \
+		       echo "$(MKDIR) $(INCLUDEDIR)"; \
+		       if $(MKDIR) $(INCLUDEDIR); then \
+		          echo "$(MKDIR) $(AFTER_INC_DIR)"; \
+		          if $(MKDIR) $(AFTER_INC_DIR) >/dev/null; then \
+		             echo " ">/dev/null; \
+		          else \
+		             echo "failed to create include directory: $(AFTER_INC_DIR)"; \
+			  fi; \
+		       else \
+		          echo "failed to create include directory: $(INCLUDEDIR)"; \
+		       fi; \
+		    fi; \
+		 fi; \
+		 if [ -d $(AFTER_INC_DIR) ]; then \
+		    for file in $(LIB_INCS) ; do  \
+			echo "$(INSTALL_HEADER) $$file $(AFTER_INC_DIR)"; \
+			$(INSTALL_HEADER) $$file $(AFTER_INC_DIR); \
+		    done; \
+		 fi \
+		)
+
+install.apps: install.lib
+		cd apps; $(MAKE) install; cd ..
+
+uninstall.bin:
+
+uninstall.lib:
+
+uninstall.man:
+
+uninstall.script:
+
+clean:
+		$(RMF) $(LIB_SHARED) $(LIB_SHARED_CYG) $(LIB_SHARED_CYG_AR) $(LIB_STATIC) *.so.* *.so *.o *~ *% *.bak \#* core ; \
+		for I in ${subdirs}; do $(RMF) $$I/*.o $$I/*.obj $$I/*.bak; done; \
+		cd apps; make clean; cd ..
+
+distclean: clean
+		$(RMF) $(LIB_SHARED) $(LIB_SHARED_CYG) $(LIB_SHARED_CYG_AR) $(LIB_STATIC)  *.o *.so.* *~ *% *.bak \#* *.orig core Makefile ; \
+		cd apps; make distclean; cd ..
+
+indent:
+		@SRCS=`echo "$(AFTERIMAGE_OBJS) " | sed "s/.o /.c /g"`; \
+		if test "x$$SRCS" == "x"; then exit; fi; \
+		for i in $$SRCS; do \
+		  if (indent -di14 -ts4 -i4 -l120 -lc80 -bad -nbbb -bli0 -c48 -cd48 -ce -cli1 -ncs -nbs -nbbo -hnl < $$i > /tmp/$$i); then \
+		    echo "indent $$i"; \
+		    mv /tmp/$$i $$i; \
+		  fi; \
+		done ; \
+		cd apps; make indent; cd ..
+
+deps:
+		echo -n > .depend ; \
+		buf="" ; \
+		SRCS=`echo "$(AFTERIMAGE_OBJS) " | sed "s/.o /.c /g"`; \
+		echo -n $(LIB_NAME)_OBJS = > .shared ; \
+		for file in $$SRCS; do \
+		  echo " \\" >> .shared ; \
+		  echo -n '		$$('$(LIB_NAME)_PATH')'/$$file >> .shared ; \
+		  if test "x$$buf" != "x"; then \
+		      echo $$buf >>.depend ; \
+		      echo >>.depend ; \
+		  fi; \
+		  buf="./"`echo "$$file " | sed "s/.c /.o /g"`: ; \
+		  for d in `grep "#include \"" < $$file | awk -F \" '{print $$2}'`; do \
+		      if test "x$$buf" != "x"; then \
+		         echo $$buf \\ >>.depend ; \
+		      fi; \
+		      echo -n "		" >>.depend ; \
+		      buf="$$d "; \
+		  done; \
+		done; \
+		if test "x$$buf" != "x"; then \
+		  echo $$buf >>.depend ; \
+		fi; \
+		echo "">> .shared ; \
+		echo "">> .shared ; \
+		echo -n $(LIB_NAME)_INCS = >> .shared ; \
+		for f in $(LIB_INCS); do \
+		  echo " \\" >> .shared ; \
+		  echo -n '		$$('$(LIB_NAME)_PATH')'/$$f >> .shared ; \
+		done; \
+		echo "" >> .shared ; \
+		cd apps; make deps; cd ..
+
+apps: 	@LIBPROG@ $(LIB_OBJS) $(LIB_INCS) $(APPS_SRCS) $(APPS_INCS)
+		cd apps; make ; cd ..
+
+
+$(LIB_STATIC):	$(LIB_OBJS) $(LIB_INCS) config.h
+		$(RMF) $(LIB_STATIC)
+		$(AR) $(LIB_STATIC) $(LIB_OBJS)
+		$(RANLIB) $(LIB_STATIC)
+
+test_asstorage.o: asstorage.c
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_ASSTORAGE $(INCLUDES) $(EXTRA_INCLUDES) -c asstorage.c -o test_asstorage.o
+
+test_asstorage:	test_asstorage.o
+		$(CC) test_asstorage.o $(USER_LD_FLAGS)  $(LIBRARIES_TEST) $(EXTRA_LIBRARIES) -o test_asstorage
+
+test_asdraw.o:	draw.c
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_ASDRAW $(INCLUDES) $(EXTRA_INCLUDES) -c draw.c -o test_asdraw.o
+
+test_asdraw:	test_asdraw.o
+		$(CC) test_asdraw.o $(USER_LD_FLAGS) $(LIBRARIES_TEST) $(EXTRA_LIBRARIES) -o test_asdraw
+
+
+
+.c.o:
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c -o $@
+
+.c.s:
+		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -S $*.c
+
+#
+# include dependency files if they exist
+#
+# this is merely a precaution, but as it does not work with ansi make
+# we took it out
+#ifneq ($(wildcard .depend),)
+include .depend
+#endif
+
+$(LIB_SHARED_CYG): $(LIB_OBJS) $(LIB_INCS)
+	$(CC) -shared -o $(LIB_SHARED_CYG) \
+	  	-Wl,--out-implib=$(LIB_SHARED_CYG_AR) \
+		-Wl,--export-all-symbols -Wl,--enable-auto-import \
+		-Wl,--whole-archive ${LIB_OBJS} \
+		$(USER_LD_FLAGS) -Wl,--no-whole-archive $(LIBRARIES)
+
+$(LIB_SHARED).$(LIBVERMAJOR): $(LIB_OBJS) $(LIB_INCS) config.h
+	$(CC) -shared -Wl,-soname,$(LIB_SHARED).$(LIBVERMAJOR) -o $(LIB_SHARED).$(LIBVERMAJOR) \
+	$(LIB_OBJS)
+
+install.man:
+		@if [ -d doc/man ] ; then \
+			cd doc/man; \
+			for f in `ls *.man`; do \
+				page_name=`echo $$f| awk -F . '{print $$1}'`; \
+	  			echo $(INSTALL_DATA) $$page_name.man $(AFTER_MAN_DIR)/$$page_name.1x; \
+	  			$(INSTALL_DATA) $$page_name.man $(AFTER_MAN_DIR)/$$page_name.1x; \
+			done; cd ../..; \
+		fi
+
+install.doc:
+		@if [ -d doc/html ] ; then \
+			if [ ! -d $(AFTER_DOC_DIR)/html ] ; then \
+				$(MKDIR) -p $(AFTER_DOC_DIR)/html; \
+			fi; \
+			cd doc/html; \
+			for f in `ls *.html`; do \
+		  		echo $(INSTALL_DATA) $$f $(AFTER_DOC_DIR)/html/$$f; \
+		  		$(INSTALL_DATA) $$f $(AFTER_DOC_DIR)/html/$$f; \
+			done; \
+			cd ../..; \
+		fi
+
+install:	install.lib install.man install.apps
+
+
+uninstall:	uninstall.lib
+