Changeset f9c43ae
- Timestamp:
- Sep 21, 2002, 7:52:22 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- bde7714
- Parents:
- 1583c90
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r1583c90 rf9c43ae 12 12 The built-in personal filter is updated to do so 13 13 Fixed a bug in moving the poiner after an expunge 14 Fixed up the normal scrolling code. Now it should always 15 land on a message, but it's still not optimal. 16 Added the variable 'smartstrip' which will strip kerberos 17 instances out for the 'reply' command. 18 Added -R/usr/athena/lib to the build for Athena 14 19 15 20 1.2.3 -
configure
r6794f72 rf9c43ae 763 763 echo "configure:764: checking for /usr/athena/lib" >&5 764 764 if test -d /usr/athena/lib; then 765 LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}765 LDFLAGS=-L/usr/athena/lib\ -R/usr/athena/lib\ ${LDFLAGS} 766 766 echo "$ac_t""yes" 1>&6 767 767 else … … 769 769 fi 770 770 771 772 773 774 775 776 771 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 777 echo "configure:77 8: checking for initscr in -lncurses" >&5772 echo "configure:773: checking for initscr in -lncurses" >&5 778 773 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 779 774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 783 778 LIBS="-lncurses $LIBS" 784 779 cat > conftest.$ac_ext <<EOF 785 #line 78 6"configure"780 #line 781 "configure" 786 781 #include "confdefs.h" 787 782 /* Override any gcc2 internal prototype to avoid an error. */ … … 794 789 ; return 0; } 795 790 EOF 796 if { (eval echo configure:79 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then791 if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 797 792 rm -rf conftest* 798 793 eval "ac_cv_lib_$ac_lib_var=yes" … … 820 815 echo "$ac_t""no" 1>&6 821 816 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6 822 echo "configure:8 23: checking for initscr in -lcurses" >&5817 echo "configure:818: checking for initscr in -lcurses" >&5 823 818 ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'` 824 819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 828 823 LIBS="-lcurses $LIBS" 829 824 cat > conftest.$ac_ext <<EOF 830 #line 8 31"configure"825 #line 826 "configure" 831 826 #include "confdefs.h" 832 827 /* Override any gcc2 internal prototype to avoid an error. */ … … 839 834 ; return 0; } 840 835 EOF 841 if { (eval echo configure:8 42: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then836 if { (eval echo configure:837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 842 837 rm -rf conftest* 843 838 eval "ac_cv_lib_$ac_lib_var=yes" … … 870 865 871 866 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 872 echo "configure:8 73: checking for com_err in -lcom_err" >&5867 echo "configure:868: checking for com_err in -lcom_err" >&5 873 868 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 874 869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 878 873 LIBS="-lcom_err $LIBS" 879 874 cat > conftest.$ac_ext <<EOF 880 #line 8 81"configure"875 #line 876 "configure" 881 876 #include "confdefs.h" 882 877 /* Override any gcc2 internal prototype to avoid an error. */ … … 889 884 ; return 0; } 890 885 EOF 891 if { (eval echo configure:8 92: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then886 if { (eval echo configure:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 892 887 rm -rf conftest* 893 888 eval "ac_cv_lib_$ac_lib_var=yes" … … 917 912 918 913 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 919 echo "configure:9 20: checking for gethostbyname in -lnsl" >&5914 echo "configure:915: checking for gethostbyname in -lnsl" >&5 920 915 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 921 916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 925 920 LIBS="-lnsl $LIBS" 926 921 cat > conftest.$ac_ext <<EOF 927 #line 92 8"configure"922 #line 923 "configure" 928 923 #include "confdefs.h" 929 924 /* Override any gcc2 internal prototype to avoid an error. */ … … 936 931 ; return 0; } 937 932 EOF 938 if { (eval echo configure:93 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then933 if { (eval echo configure:934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 939 934 rm -rf conftest* 940 935 eval "ac_cv_lib_$ac_lib_var=yes" … … 964 959 965 960 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 966 echo "configure:96 7: checking for socket in -lsocket" >&5961 echo "configure:962: checking for socket in -lsocket" >&5 967 962 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 968 963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 972 967 LIBS="-lsocket $LIBS" 973 968 cat > conftest.$ac_ext <<EOF 974 #line 97 5"configure"969 #line 970 "configure" 975 970 #include "confdefs.h" 976 971 /* Override any gcc2 internal prototype to avoid an error. */ … … 983 978 ; return 0; } 984 979 EOF 985 if { (eval echo configure:98 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then980 if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 986 981 rm -rf conftest* 987 982 eval "ac_cv_lib_$ac_lib_var=yes" … … 1011 1006 1012 1007 echo $ac_n "checking for krb5_derive_key in -lk5crypto""... $ac_c" 1>&6 1013 echo "configure:10 14: checking for krb5_derive_key in -lk5crypto" >&51008 echo "configure:1009: checking for krb5_derive_key in -lk5crypto" >&5 1014 1009 ac_lib_var=`echo k5crypto'_'krb5_derive_key | sed 'y%./+-%__p_%'` 1015 1010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1019 1014 LIBS="-lk5crypto $LIBS" 1020 1015 cat > conftest.$ac_ext <<EOF 1021 #line 10 22"configure"1016 #line 1017 "configure" 1022 1017 #include "confdefs.h" 1023 1018 /* Override any gcc2 internal prototype to avoid an error. */ … … 1030 1025 ; return 0; } 1031 1026 EOF 1032 if { (eval echo configure:10 33: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1027 if { (eval echo configure:1028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1033 1028 rm -rf conftest* 1034 1029 eval "ac_cv_lib_$ac_lib_var=yes" … … 1058 1053 1059 1054 echo $ac_n "checking for des425_req_act_vno in -ldes425""... $ac_c" 1>&6 1060 echo "configure:10 61: checking for des425_req_act_vno in -ldes425" >&51055 echo "configure:1056: checking for des425_req_act_vno in -ldes425" >&5 1061 1056 ac_lib_var=`echo des425'_'des425_req_act_vno | sed 'y%./+-%__p_%'` 1062 1057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1066 1061 LIBS="-ldes425 $LIBS" 1067 1062 cat > conftest.$ac_ext <<EOF 1068 #line 106 9"configure"1063 #line 1064 "configure" 1069 1064 #include "confdefs.h" 1070 1065 /* Override any gcc2 internal prototype to avoid an error. */ … … 1077 1072 ; return 0; } 1078 1073 EOF 1079 if { (eval echo configure:10 80: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1074 if { (eval echo configure:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1080 1075 rm -rf conftest* 1081 1076 eval "ac_cv_lib_$ac_lib_var=yes" … … 1105 1100 1106 1101 echo $ac_n "checking for krb5_get_credentials in -lkrb5""... $ac_c" 1>&6 1107 echo "configure:110 8: checking for krb5_get_credentials in -lkrb5" >&51102 echo "configure:1103: checking for krb5_get_credentials in -lkrb5" >&5 1108 1103 ac_lib_var=`echo krb5'_'krb5_get_credentials | sed 'y%./+-%__p_%'` 1109 1104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1113 1108 LIBS="-lkrb5 $LIBS" 1114 1109 cat > conftest.$ac_ext <<EOF 1115 #line 111 6"configure"1110 #line 1111 "configure" 1116 1111 #include "confdefs.h" 1117 1112 /* Override any gcc2 internal prototype to avoid an error. */ … … 1124 1119 ; return 0; } 1125 1120 EOF 1126 if { (eval echo configure:112 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1121 if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1127 1122 rm -rf conftest* 1128 1123 eval "ac_cv_lib_$ac_lib_var=yes" … … 1152 1147 1153 1148 echo $ac_n "checking for krb_sendauth in -lkrb4""... $ac_c" 1>&6 1154 echo "configure:115 5: checking for krb_sendauth in -lkrb4" >&51149 echo "configure:1150: checking for krb_sendauth in -lkrb4" >&5 1155 1150 ac_lib_var=`echo krb4'_'krb_sendauth | sed 'y%./+-%__p_%'` 1156 1151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1160 1155 LIBS="-lkrb4 $LIBS" 1161 1156 cat > conftest.$ac_ext <<EOF 1162 #line 11 63"configure"1157 #line 1158 "configure" 1163 1158 #include "confdefs.h" 1164 1159 /* Override any gcc2 internal prototype to avoid an error. */ … … 1171 1166 ; return 0; } 1172 1167 EOF 1173 if { (eval echo configure:11 74: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1168 if { (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1174 1169 rm -rf conftest* 1175 1170 eval "ac_cv_lib_$ac_lib_var=yes" … … 1199 1194 1200 1195 echo $ac_n "checking for ZGetSender in -lzephyr""... $ac_c" 1>&6 1201 echo "configure:1 202: checking for ZGetSender in -lzephyr" >&51196 echo "configure:1197: checking for ZGetSender in -lzephyr" >&5 1202 1197 ac_lib_var=`echo zephyr'_'ZGetSender | sed 'y%./+-%__p_%'` 1203 1198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1207 1202 LIBS="-lzephyr $LIBS" 1208 1203 cat > conftest.$ac_ext <<EOF 1209 #line 12 10"configure"1204 #line 1205 "configure" 1210 1205 #include "confdefs.h" 1211 1206 /* Override any gcc2 internal prototype to avoid an error. */ … … 1218 1213 ; return 0; } 1219 1214 EOF 1220 if { (eval echo configure:12 21: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1221 1216 rm -rf conftest* 1222 1217 eval "ac_cv_lib_$ac_lib_var=yes" … … 1247 1242 1248 1243 echo $ac_n "checking for ZInitLocationInfo in -lzephyr""... $ac_c" 1>&6 1249 echo "configure:12 50: checking for ZInitLocationInfo in -lzephyr" >&51244 echo "configure:1245: checking for ZInitLocationInfo in -lzephyr" >&5 1250 1245 ac_lib_var=`echo zephyr'_'ZInitLocationInfo | sed 'y%./+-%__p_%'` 1251 1246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1255 1250 LIBS="-lzephyr $LIBS" 1256 1251 cat > conftest.$ac_ext <<EOF 1257 #line 125 8"configure"1252 #line 1253 "configure" 1258 1253 #include "confdefs.h" 1259 1254 /* Override any gcc2 internal prototype to avoid an error. */ … … 1266 1261 ; return 0; } 1267 1262 EOF 1268 if { (eval echo configure:126 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1263 if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1269 1264 rm -rf conftest* 1270 1265 eval "ac_cv_lib_$ac_lib_var=yes" … … 1291 1286 1292 1287 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1293 echo "configure:12 94: checking how to run the C preprocessor" >&51288 echo "configure:1289: checking how to run the C preprocessor" >&5 1294 1289 # On Suns, sometimes $CPP names a directory. 1295 1290 if test -n "$CPP" && test -d "$CPP"; then … … 1306 1301 # not just through cpp. 1307 1302 cat > conftest.$ac_ext <<EOF 1308 #line 130 9"configure"1303 #line 1304 "configure" 1309 1304 #include "confdefs.h" 1310 1305 #include <assert.h> … … 1312 1307 EOF 1313 1308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1314 { (eval echo configure:131 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1309 { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1315 1310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1316 1311 if test -z "$ac_err"; then … … 1323 1318 CPP="${CC-cc} -E -traditional-cpp" 1324 1319 cat > conftest.$ac_ext <<EOF 1325 #line 132 6"configure"1320 #line 1321 "configure" 1326 1321 #include "confdefs.h" 1327 1322 #include <assert.h> … … 1329 1324 EOF 1330 1325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1331 { (eval echo configure:13 32: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1326 { (eval echo configure:1327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1332 1327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1333 1328 if test -z "$ac_err"; then … … 1340 1335 CPP="${CC-cc} -nologo -E" 1341 1336 cat > conftest.$ac_ext <<EOF 1342 #line 13 43"configure"1337 #line 1338 "configure" 1343 1338 #include "confdefs.h" 1344 1339 #include <assert.h> … … 1346 1341 EOF 1347 1342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1348 { (eval echo configure:134 9: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1343 { (eval echo configure:1344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1349 1344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1350 1345 if test -z "$ac_err"; then … … 1371 1366 1372 1367 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1373 echo "configure:13 74: checking for ANSI C header files" >&51368 echo "configure:1369: checking for ANSI C header files" >&5 1374 1369 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1375 1370 echo $ac_n "(cached) $ac_c" 1>&6 1376 1371 else 1377 1372 cat > conftest.$ac_ext <<EOF 1378 #line 137 9"configure"1373 #line 1374 "configure" 1379 1374 #include "confdefs.h" 1380 1375 #include <stdlib.h> … … 1384 1379 EOF 1385 1380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1386 { (eval echo configure:138 7: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1381 { (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1387 1382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1388 1383 if test -z "$ac_err"; then … … 1401 1396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1402 1397 cat > conftest.$ac_ext <<EOF 1403 #line 1 404"configure"1398 #line 1399 "configure" 1404 1399 #include "confdefs.h" 1405 1400 #include <string.h> … … 1419 1414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1420 1415 cat > conftest.$ac_ext <<EOF 1421 #line 14 22"configure"1416 #line 1417 "configure" 1422 1417 #include "confdefs.h" 1423 1418 #include <stdlib.h> … … 1440 1435 else 1441 1436 cat > conftest.$ac_ext <<EOF 1442 #line 14 43"configure"1437 #line 1438 "configure" 1443 1438 #include "confdefs.h" 1444 1439 #include <ctype.h> … … 1451 1446 1452 1447 EOF 1453 if { (eval echo configure:14 54: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1448 if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1454 1449 then 1455 1450 : … … 1475 1470 1476 1471 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1477 echo "configure:147 8: checking for sys/wait.h that is POSIX.1 compatible" >&51472 echo "configure:1473: checking for sys/wait.h that is POSIX.1 compatible" >&5 1478 1473 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1479 1474 echo $ac_n "(cached) $ac_c" 1>&6 1480 1475 else 1481 1476 cat > conftest.$ac_ext <<EOF 1482 #line 14 83"configure"1477 #line 1478 "configure" 1483 1478 #include "confdefs.h" 1484 1479 #include <sys/types.h> … … 1496 1491 ; return 0; } 1497 1492 EOF 1498 if { (eval echo configure:149 9: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1493 if { (eval echo configure:1494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1499 1494 rm -rf conftest* 1500 1495 ac_cv_header_sys_wait_h=yes … … 1520 1515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1521 1516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1522 echo "configure:15 23: checking for $ac_hdr" >&51517 echo "configure:1518: checking for $ac_hdr" >&5 1523 1518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1524 1519 echo $ac_n "(cached) $ac_c" 1>&6 1525 1520 else 1526 1521 cat > conftest.$ac_ext <<EOF 1527 #line 152 8"configure"1522 #line 1523 "configure" 1528 1523 #include "confdefs.h" 1529 1524 #include <$ac_hdr> 1530 1525 EOF 1531 1526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1532 { (eval echo configure:15 33: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1527 { (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1533 1528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1534 1529 if test -z "$ac_err"; then … … 1562 1557 1563 1558 echo $ac_n "checking for the perl xsubpp precompiler""... $ac_c" 1>&6 1564 echo "configure:156 5: checking for the perl xsubpp precompiler" >&51559 echo "configure:1560: checking for the perl xsubpp precompiler" >&5 1565 1560 XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`" 1566 1561 if test -n "${XSUBPPDIR}"; then … … 1577 1572 ac_safe=`echo "/usr/share/terminfo" | sed 'y%./+-%__p_%'` 1578 1573 echo $ac_n "checking for /usr/share/terminfo""... $ac_c" 1>&6 1579 echo "configure:15 80: checking for /usr/share/terminfo" >&51574 echo "configure:1575: checking for /usr/share/terminfo" >&5 1580 1575 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 1581 1576 echo $ac_n "(cached) $ac_c" 1>&6 … … 1602 1597 ac_safe=`echo "/usr/share/lib/terminfo" | sed 'y%./+-%__p_%'` 1603 1598 echo $ac_n "checking for /usr/share/lib/terminfo""... $ac_c" 1>&6 1604 echo "configure:160 5: checking for /usr/share/lib/terminfo" >&51599 echo "configure:1600: checking for /usr/share/lib/terminfo" >&5 1605 1600 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 1606 1601 echo $ac_n "(cached) $ac_c" 1>&6 -
configure.in
r5145235 rf9c43ae 22 22 AC_MSG_CHECKING(for /usr/athena/lib) 23 23 if test -d /usr/athena/lib; then 24 LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}24 LDFLAGS=-L/usr/athena/lib\ -R/usr/athena/lib\ ${LDFLAGS} 25 25 AC_MSG_RESULT(yes) 26 26 else -
functions.c
r1583c90 rf9c43ae 759 759 recwinlines=owl_global_get_recwin_lines(&g); 760 760 761 /* 761 762 if (owl_view_get_size(v) < 1) { 762 763 return; 763 764 } 765 */ 764 766 765 767 switch (owl_global_get_scrollmode(&g)) { 766 768 case OWL_SCROLLMODE_TOP: 767 topmsg = owl_function_calculate_topmsg_top(direction, v, curmsg, 768 topmsg, recwinlines); 769 topmsg = owl_function_calculate_topmsg_top(direction, v, curmsg, topmsg, recwinlines); 769 770 break; 770 771 case OWL_SCROLLMODE_NEARTOP: 771 topmsg = owl_function_calculate_topmsg_neartop(direction, v, curmsg, 772 topmsg, recwinlines); 772 topmsg = owl_function_calculate_topmsg_neartop(direction, v, curmsg, topmsg, recwinlines); 773 773 break; 774 774 case OWL_SCROLLMODE_CENTER: 775 topmsg = owl_function_calculate_topmsg_center(direction, v, curmsg, 776 topmsg, recwinlines); 775 topmsg = owl_function_calculate_topmsg_center(direction, v, curmsg, topmsg, recwinlines); 777 776 break; 778 777 case OWL_SCROLLMODE_PAGED: 779 topmsg = owl_function_calculate_topmsg_paged(direction, v, curmsg, 780 topmsg, recwinlines, 0); 778 topmsg = owl_function_calculate_topmsg_paged(direction, v, curmsg, topmsg, recwinlines, 0); 781 779 break; 782 780 case OWL_SCROLLMODE_PAGEDCENTER: 783 topmsg = owl_function_calculate_topmsg_paged(direction, v, curmsg, 784 topmsg, recwinlines, 1); 781 topmsg = owl_function_calculate_topmsg_paged(direction, v, curmsg, topmsg, recwinlines, 1); 785 782 break; 786 783 case OWL_SCROLLMODE_NORMAL: 787 784 default: 788 topmsg = owl_function_calculate_topmsg_normal(direction, v, curmsg, 789 topmsg, recwinlines); 785 topmsg = owl_function_calculate_topmsg_normal(direction, v, curmsg, topmsg, recwinlines); 790 786 } 791 787 owl_function_debugmsg("Calculated a topmsg of %i", topmsg); … … 801 797 */ 802 798 int owl_function_calculate_topmsg_top(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines) { 803 return curmsg;799 return(curmsg); 804 800 } 805 801 … … 808 804 && (owl_message_get_numlines(owl_view_get_element(v, curmsg-1)) 809 805 < recwinlines/2)) { 810 return curmsg-1;806 return(curmsg-1); 811 807 } else { 812 return curmsg;808 return(curmsg); 813 809 } 814 810 } … … 824 820 last = i; 825 821 } 826 return last;822 return(last); 827 823 } 828 824 … … 841 837 } 842 838 if (center_on_page) { 843 return owl_function_calculate_topmsg_center(direction, v, curmsg, 0, recwinlines);839 return(owl_function_calculate_topmsg_center(direction, v, curmsg, 0, recwinlines)); 844 840 } else { 845 return last;841 return(last); 846 842 } 847 843 } … … 856 852 if (savey > recwinlines) { 857 853 if (center_on_page) { 858 return owl_function_calculate_topmsg_center(direction, v, curmsg, 0, recwinlines);854 return(owl_function_calculate_topmsg_center(direction, v, curmsg, 0, recwinlines)); 859 855 } else { 860 return curmsg;856 return(curmsg); 861 857 } 862 858 } 863 859 864 860 /* else just stay as we are... */ 865 return topmsg;861 return(topmsg); 866 862 } 867 863 … … 869 865 int owl_function_calculate_topmsg_normal(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines) { 870 866 int savey, j, i, foo, y; 871 867 868 /* If we're off the top of the screen then center */ 869 if (curmsg<topmsg) { 870 topmsg=owl_function_calculate_topmsg_center(direction, v, curmsg, 0, recwinlines); 871 } 872 872 873 /* Find number of lines from top to bottom of curmsg (store in savey) */ 873 874 savey=0; … … 876 877 } 877 878 878 /* If the direction is DOWNWARDS but we're off the bottom of the 879 * screen, then set the topmsg to curmsg and scroll UPWARDS 880 */ 881 if (direction == OWL_DIRECTION_DOWNWARDS) { 882 if (savey > recwinlines) { 883 topmsg=curmsg; 884 savey=owl_message_get_numlines(owl_view_get_element(v, i)); 885 direction=OWL_DIRECTION_UPWARDS; 886 } 887 } 888 879 /* If we're off the bottom of the screen, set the topmsg to curmsg 880 * and scroll upwards */ 881 if (savey > recwinlines) { 882 topmsg=curmsg; 883 savey=owl_message_get_numlines(owl_view_get_element(v, i)); 884 direction=OWL_DIRECTION_UPWARDS; 885 } 886 889 887 /* If our bottom line is less than 1/4 down the screen then scroll up */ 890 888 if (direction == OWL_DIRECTION_UPWARDS || direction == OWL_DIRECTION_NONE) { … … 904 902 } 905 903 if (j<0) j=0; 906 return j;904 return(j); 907 905 } 908 906 } … … 920 918 j--; 921 919 } 922 return j+1;923 } 924 } 925 926 return topmsg;920 return(j+1); 921 } 922 } 923 924 return(topmsg); 927 925 } 928 926 … … 1554 1552 } 1555 1553 1556 1557 1554 /* first check if we catch the reply-lockout filter */ 1558 1555 f=owl_global_get_filter(&g, "reply-lockout"); … … 1568 1565 owl_global_set_buffercommand(&g, owl_message_get_zwriteline(m)); 1569 1566 } else if (owl_message_is_type_admin(m)) { 1570 owl_function_makemsg("You cannot reply to thisadmin message");1567 owl_function_makemsg("You cannot reply to an admin message"); 1571 1568 } else { 1572 1569 if (owl_message_is_login(m)) { … … 1603 1600 } 1604 1601 if (*to != '\0') { 1605 char *tmp, *oldtmp; 1606 tmp=short_zuser(to); 1602 char *tmp, *oldtmp, *tmp2; 1607 1603 if (cc) { 1608 1604 tmp = owl_util_uniq(oldtmp=tmp, cc, "-"); … … 1612 1608 } else { 1613 1609 tmp=short_zuser(to); 1610 if (owl_global_is_smartstrip(&g)) { 1611 tmp2=tmp; 1612 tmp=smartstripped_user(tmp2); 1613 owl_free(tmp2); 1614 } 1614 1615 buff = owl_sprintf("%s %s", oldbuff=buff, tmp); 1615 1616 owl_free(oldbuff); … … 1748 1749 owl_view *v; 1749 1750 owl_filter *f; 1750 int curid=-1, newpos ;1751 owl_message *curm ;1751 int curid=-1, newpos, curmsg; 1752 owl_message *curm=NULL; 1752 1753 1753 1754 v=owl_global_get_current_view(&g); 1754 curm=owl_view_get_element(v, owl_global_get_curmsg(&g)); 1755 if (curm) { 1756 curid = owl_message_get_id(curm); 1757 owl_view_save_curmsgid(v, curid); 1758 } 1759 1755 curmsg=owl_global_get_curmsg(&g); 1756 if (curmsg==-1) { 1757 owl_function_debugmsg("Hit the curmsg==-1 case in change_view"); 1758 } else { 1759 curm=owl_view_get_element(v, curmsg); 1760 if (curm) { 1761 curid=owl_message_get_id(curm); 1762 owl_view_save_curmsgid(v, curid); 1763 } 1764 } 1765 1766 /* grab the filter */; 1760 1767 f=owl_global_get_filter(&g, filtname); 1761 1768 if (!f) { … … 1764 1771 } 1765 1772 1773 /* free the existing view and create a new one based on the filter */ 1766 1774 owl_view_free(v); 1767 1775 owl_view_create(v, f); 1768 1776 1769 /* Figure out wh ereto set the current message to.1770 * - If the previous view hadmessages in it, go to the closest message1771 * to the last message in that view.1772 * - If the previous view was empty, attemptsto restore the position1773 * from the last time we were in th atview. */1777 /* Figure out what to set the current message to. 1778 * - If the view we're leaving has messages in it, go to the closest message 1779 * to the last message pointed to in that view. 1780 * - If the view we're leaving is empty, try to restore the position 1781 * from the last time we were in the new view. */ 1774 1782 if (curm) { 1775 1783 newpos = owl_view_get_nearest_to_msgid(v, curid); … … 1780 1788 owl_global_set_curmsg(&g, newpos); 1781 1789 1782 owl_global_set_curmsg_vert_offset(&g, 0); 1790 owl_function_calculate_topmsg(OWL_DIRECTION_DOWNWARDS); 1791 owl_mainwin_redisplay(owl_global_get_mainwin(&g)); 1783 1792 owl_global_set_direction_downwards(&g); 1784 owl_function_calculate_topmsg(OWL_DIRECTION_NONE);1785 owl_mainwin_redisplay(owl_global_get_mainwin(&g));1786 1793 } 1787 1794 -
util.c
r42abb10 rf9c43ae 411 411 } 412 412 413 413 414 char *long_zuser(char *in) { 414 415 char *ptr; … … 421 422 } 422 423 } 423 424 425 426 char *smartstripped_user(char *in) { 427 /* strip out the instance from a zsender's principal. 428 * Preserves the realm if present. 429 * the caller must free the return */ 430 431 char *ptr, *realm, *out; 432 433 out=owl_strdup(in); 434 435 /* bail immeaditly if we don't have to do any work */ 436 ptr=strchr(in, '.'); 437 if (!strchr(in, '/') && !ptr) { 438 return(out); 439 } 440 if (ptr && strchr(in, '@') && (ptr > strchr(in, '@'))) { 441 return(out); 442 } 443 444 /* remove the realm from ptr, but hold on to it */ 445 realm=strchr(out, '@'); 446 if (realm) realm[0]='\0'; 447 448 /* strip */ 449 ptr=strchr(out, '.'); 450 if (!ptr) ptr=strchr(out, '/'); 451 ptr[0]='\0'; 452 453 /* reattach the realm if we had one */ 454 if (realm) { 455 strcat(out, "@"); 456 strcat(out, realm+1); 457 } 458 459 return(out); 460 } 424 461 425 462 char *owl_getquoting(char *line) { -
variable.c
r61e79a9 rf9c43ae 81 81 OWLVAR_BOOL( "txping" /* %OwlVarStub */, 1, 82 82 "send pings", "" ), 83 84 OWLVAR_BOOL( "smartstrip" /* %OwlVarStub */, 1, 85 "strip kerberos instance for reply", ""), 83 86 84 87 OWLVAR_BOOL( "displayoutgoing" /* %OwlVarStub */, 1,
Note: See TracChangeset
for help on using the changeset viewer.