Changeset ac70242
- Timestamp:
- Apr 20, 2003, 12:05:15 PM (21 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:
- 69894d2
- Parents:
- 801c7cb
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
rd54838d rac70242 45 45 fixes to owl_function_do_newmsgproc from Stephen 46 46 converted functions.c to new code style, which I'm giving a shot 47 Makefile.in: define DATADIR, for default owlconf. 48 Makefile.in: provide "all" and "install" rules. 49 configure.in: try also libdes and libkrb4, for people using heimdal 50 configure.in: see if des_ecb_encrypt is already prototyped. 51 configure.in: minor changes to work with new autoconf without needing acconfig.h. 52 configure.in: find the install program. 53 configure.in: test for use_default_colors since some versions of 54 solaris don't have it, so we can at least compile something 55 vaguely working there. 56 keypress.c: ifdefs for keys not defined on at least some solarises. 57 owl.c: don't call use_default_colors if we don't have it 58 readconfig.c: added *commented out* code to try to find a 59 system-default owlconf if the user doesn't have one. Have to 60 ponder if I want this 61 zcrypt.c: don't prototype des_ecb_encrypt if there is a prototype in 62 des.h. 63 zcrypt.c: include owl.h so we get the configure-generated config.h 64 Change to codelist.pl to deal with new code style 47 65 48 66 1.2.8 -
Makefile.in
re9b1f60 rac70242 1 1 2 2 # $Id$ 3 4 srcdir = @srcdir@ 5 VPATH = @srcdir@ 6 7 prefix = @prefix@ 8 exec_prefix = @exec_prefix@ 9 10 datadir = @datadir@ 11 bindir = @bindir@ 12 mandir = @mandir@ 3 13 4 14 CC=@CC@ 5 15 LIBS=@LIBS@ 6 16 #CFLAGS=@CFLAGS@ @DEFS@ 7 CFLAGS=@CFLAGS@ 17 CFLAGS=@CFLAGS@ -DDATADIR=\"${datadir}\" 8 18 LDFLAGS=@LDFLAGS@ 9 19 XSUBPPDIR=@XSUBPPDIR@ 20 INSTALL = @INSTALL@ 21 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 22 INSTALL_DATA = @INSTALL_DATA@ 10 23 11 24 OBJS=list.o message.o mainwin.o popwin.o zephyr.o messagelist.o commands.o \ … … 40 53 perl stubgen.pl > varstubs.c 41 54 55 all: owl 56 57 install: all installdirs 58 ${INSTALL_PROGRAM} owl ${bindir}/owl 59 ${INSTALL_DATA} doc/owl.1 ${mandir}/man1/owl.1 60 61 installdirs: mkinstalldirs 62 ${srcdir}/mkinstalldirs ${bindir} ${mandir}/man1 ${datadir}/owl 63 42 64 # Only move owl_prototypes.h into place if the new one is different 43 65 owl_prototypes.h: codelist.pl varstubs.c $(OBJS:.o=.c) -
codelist.pl
r1aee7d9 rac70242 13 13 while (<FILE>) { 14 14 if (/^\S/ 15 && /\{\s*$/15 && (/\{\s*$/ || /\)\s*$/) 16 16 && !/\}/ 17 17 && !/^\{/ 18 && !/^# include/18 && !/^#/ 19 19 && !/^static/ 20 && !/^#define/21 20 && !/\/\*/) 22 {s/\s+\{/\;/; print "extern "; print;}21 {s/\s+\{/\;/; s/\)[ \t]*$/\)\;/; print "extern "; print;} 23 22 24 23 } -
configure.in
r316962a rac70242 35 35 AC_CHECK_LIB(k5crypto, krb5_derive_key) 36 36 AC_CHECK_LIB(des425, des425_req_act_vno) 37 AC_CHECK_LIB(des, des_quad_cksum) 37 38 AC_CHECK_LIB(krb5, krb5_get_credentials) 38 39 AC_CHECK_LIB(krb4, krb_sendauth) 40 AC_CHECK_LIB(krb, krb_sendauth) 39 41 AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.)) 40 AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE(HAVE_LIBZEPHYR_ZINITLOCATIONINFO),) 42 AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),) 43 44 AC_MSG_CHECKING(for des_ecb_encrypt prototype) 45 AC_TRY_COMPILE([#include <des.h> 46 int des_ecb_encrypt(char foo[], char bar[], des_key_schedule baz, int qux);], 47 [int foo = des_ecb_encrypt(0,0,0,0);], 48 ac_cv_des_ecb_encrypt_proto=no, 49 ac_cv_des_ecb_encrypt_proto=yes) 50 AC_MSG_RESULT($ac_cv_des_ecb_encrypt_proto) 51 if test "$ac_cv_des_ecb_encrypt_proto" = yes; then 52 AC_DEFINE([HAVE_DES_ECB_ENCRYPT_PROTO], [], [have proto for des_ecb_encrypt]) 53 fi 41 54 42 55 dnl Checks for header files. … … 65 78 66 79 dnl Checks for typedefs, structures, and compiler characteristics. 67 AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo" ),68 AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo" ),80 AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo", [Have terminfo]), 81 AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo", [Have terminfo]), 69 82 AC_MSG_ERROR(No terminfo found for this system))) 70 83 71 84 dnl Checks for library functions. 72 85 dnl AC_PROG_GCC_TRADITIONAL 73 dnl AC_CHECK_FUNCS(gethostname strdup )86 dnl AC_CHECK_FUNCS(gethostname strdup use_default_colors) 74 87 75 88 AC_SUBST(XSUBPPDIR) 76 89 90 AC_PROG_INSTALL 91 77 92 AC_OUTPUT(Makefile) -
keypress.c
r1aee7d9 rac70242 9 9 char *ks; 10 10 } specialmap[] = { 11 #ifdef KEY_CODE_YES 11 12 { KEY_CODE_YES, "CODE_YES" }, 13 #endif 12 14 { KEY_MIN, "MIN" }, 13 15 { KEY_BREAK, "BREAK" }, … … 113 115 { KEY_UNDO, "UNDO" }, 114 116 { KEY_MOUSE, "MOUSE" }, 117 #ifdef KEY_RESIZE 115 118 { KEY_RESIZE, "RESIZE" }, 119 #endif 116 120 { KEY_MAX, "MAX" }, 117 121 { ' ', "SPACE" }, -
owl.c
recd5dc5 rac70242 106 106 initscr(); 107 107 start_color(); 108 #ifdef HAVE_USE_DEFAULT_COLORS 108 109 use_default_colors(); 110 #endif 109 111 raw(); 110 112 noecho(); -
readconfig.c
rb45293f rac70242 11 11 static const char fileIdent[] = "$Id$"; 12 12 13 14 15 13 extern XS(boot_owl); 16 14 … … 45 43 perl_construct(p); 46 44 45 /* start by assuming no config */ 47 46 owl_global_set_no_have_config(&g); 48 47 … … 52 51 } 53 52 53 /* This is the CMU code for reading a site owlconf. Not sure if I 54 want it yet */ 55 /* 56 ret=stat(filename, &statbuff); 57 if (ret) { 58 sprintf(filename, "%s/%s", DATADIR, "owl/owlconf"); 59 ret=stat(filename, &statbuff); 60 if (ret) { 61 return(0); 62 } 63 } 64 */ 65 54 66 ret=perl_parse(p, owl_perl_xs_init, 2, embedding, NULL); 55 67 if (ret) return(-1); 56 57 68 ret=perl_run(p); 58 69 if (ret) return(-1); 59 70 71 /* if we get this far, we have a good config file */ 60 72 owl_global_set_have_config(&g); 61 73 -
zcrypt.c
r0ba59d2 rac70242 16 16 #include <sys/types.h> 17 17 #include <sys/wait.h> 18 #include "owl.h" 18 19 19 20 #define BASE_CODE 70 … … 65 66 int do_decrypt(char *keystring); 66 67 68 #ifndef HAVE_DES_ECB_ENCRYPT_PROTO 67 69 int des_ecb_encrypt(char [], char [], des_key_schedule, int); 70 #endif 68 71 69 72 #define M_NONE 0
Note: See TracChangeset
for help on using the changeset viewer.