2003-02-13 Theodore A. Roth * AUTHORS: * ChangeLog: * Makefile.am: * NEWS: * README: * avr.c: * bootstrap: * config.c: * config.h: * config_gram.y: * configure.ac: * fileio.c: * lexer.l: * lists.c: * main.c: * par.c: * pgm.c: * ppi.c: * stk500.c: * term.c: Index: AUTHORS =================================================================== RCS file: AUTHORS diff -N AUTHORS Index: ChangeLog =================================================================== RCS file: ChangeLog diff -N ChangeLog Index: Makefile.am =================================================================== RCS file: Makefile.am diff -N Makefile.am --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Makefile.am 13 Feb 2003 23:19:39 -0000 @@ -0,0 +1,62 @@ +# +# avrdude - A Downloader/Uploader for AVR device programmers +# Copyright (C) 2003 Theodore A. Roth +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +# +# $Id: avr.c,v 1.45 2003/02/09 13:36:47 bdean Exp $ +# + +AM_YFLAGS = -d + +CPPFLAGS = -DCONFIG_DIR=\"$(sysconfdir)\" + +bin_PROGRAMS = avrdude + +avrdude_SOURCES = \ + config_gram.y \ + lexer.l \ + avr.c \ + avr.h \ + avrpart.h \ + config.c \ + config.h \ + fileio.c \ + fileio.h \ + linux_ppdev.h \ + lists.c \ + lists.h \ + main.c \ + par.c \ + par.h \ + pgm.c \ + pgm.h \ + pindefs.h \ + ppi.c \ + ppi.h \ + stk500.c \ + stk500.h \ + stk500_private.h \ + term.c \ + term.h + +man_MANS = avrdude.1 + +sysconf_DATA = avrdude.conf + +avrdude.conf: avrdude.conf.sample + cp $< $@ Index: NEWS =================================================================== RCS file: NEWS diff -N NEWS Index: README =================================================================== RCS file: README diff -N README Index: avr.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/avr.c,v retrieving revision 1.45 diff -u -r1.45 avr.c --- avr.c 9 Feb 2003 13:36:47 -0000 1.45 +++ avr.c 13 Feb 2003 23:19:39 -0000 @@ -19,6 +19,8 @@ /* $Id: avr.c,v 1.45 2003/02/09 13:36:47 bdean Exp $ */ +#include "ac_cfg.h" + #include #include #include Index: bootstrap =================================================================== RCS file: bootstrap diff -N bootstrap --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ bootstrap 13 Feb 2003 23:19:39 -0000 @@ -0,0 +1,8 @@ +#! /bin/sh + +set -x + +aclocal-1.6 +autoheader-2.53 +autoconf-2.53 +automake-1.6 -a -c Index: config.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/config.c,v retrieving revision 1.10 diff -u -r1.10 config.c --- config.c 9 Feb 2003 13:36:47 -0000 1.10 +++ config.c 13 Feb 2003 23:19:39 -0000 @@ -19,6 +19,8 @@ /* $Id: config.c,v 1.10 2003/02/09 13:36:47 bdean Exp $ */ +#include "ac_cfg.h" + #include #include #include @@ -26,7 +28,7 @@ #include "avr.h" #include "config.h" -#include "y.tab.h" +#include "config_gram.h" char string_buf[MAX_STR_CONST]; char *string_buf_ptr; Index: config.h =================================================================== RCS file: /cvsroot/avrdude/avrdude/config.h,v retrieving revision 1.10 diff -u -r1.10 config.h --- config.h 9 Feb 2003 13:36:47 -0000 1.10 +++ config.h 13 Feb 2003 23:19:39 -0000 @@ -54,7 +54,7 @@ extern LISTID string_list; extern LISTID number_list; -#if 0 +#if !defined(HAS_YYSTYPE) #define YYSTYPE struct token_t * #endif extern YYSTYPE yylval; Index: config_gram.y =================================================================== RCS file: /cvsroot/avrdude/avrdude/config_gram.y,v retrieving revision 1.24 diff -u -r1.24 config_gram.y --- config_gram.y 13 Feb 2003 19:27:50 -0000 1.24 +++ config_gram.y 13 Feb 2003 23:19:39 -0000 @@ -20,6 +20,8 @@ /* $Id: config_gram.y,v 1.24 2003/02/13 19:27:50 bdean Exp $ */ %{ +#include "ac_cfg.h" + #include #include #include Index: configure.ac =================================================================== RCS file: configure.ac diff -N configure.ac --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ configure.ac 13 Feb 2003 23:19:39 -0000 @@ -0,0 +1,31 @@ +# Process this file with autoconf to produce a configure script. +AC_INIT(avrdude, 3.1.0cvs, address@hidden) +AC_CONFIG_SRCDIR([main.c]) +AM_INIT_AUTOMAKE +AM_CONFIG_HEADER([ac_cfg.h]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_YACC +AM_PROG_LEX + +# Checks for libraries. +AC_CHECK_LIB([termcap], [tputs]) +AC_CHECK_LIB([readline], [readline]) + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_HEADER_TIME + +# Checks for library functions. +AC_PROG_GCC_TRADITIONAL +AC_FUNC_MALLOC +AC_CHECK_FUNCS([memset select strcasecmp strdup strerror strncasecmp strtol strtoul]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT Index: fileio.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/fileio.c,v retrieving revision 1.20 diff -u -r1.20 fileio.c --- fileio.c 9 Feb 2003 13:36:47 -0000 1.20 +++ fileio.c 13 Feb 2003 23:19:39 -0000 @@ -19,6 +19,8 @@ /* $Id: fileio.c,v 1.20 2003/02/09 13:36:47 bdean Exp $ */ +#include "ac_cfg.h" + #include #include #include Index: lexer.l =================================================================== RCS file: /cvsroot/avrdude/avrdude/lexer.l,v retrieving revision 1.18 diff -u -r1.18 lexer.l --- lexer.l 13 Feb 2003 19:27:50 -0000 1.18 +++ lexer.l 13 Feb 2003 23:19:39 -0000 @@ -29,7 +29,7 @@ #include #include "config.h" -#include "y.tab.h" +#include "config_gram.h" #include "lists.h" extern int lineno; Index: lists.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/lists.c,v retrieving revision 1.8 diff -u -r1.8 lists.c --- lists.c 9 Feb 2003 13:36:47 -0000 1.8 +++ lists.c 13 Feb 2003 23:19:40 -0000 @@ -36,6 +36,9 @@ Author : Brian Dean Date : 10 January, 1990 ------------------------------------------------------------------------*/ + +#include "ac_cfg.h" + #include #include Index: main.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/main.c,v retrieving revision 1.56 diff -u -r1.56 main.c --- main.c 13 Feb 2003 19:27:50 -0000 1.56 +++ main.c 13 Feb 2003 23:19:40 -0000 @@ -65,6 +65,8 @@ * */ +#include "ac_cfg.h" + #include #include #include Index: par.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/par.c,v retrieving revision 1.1 diff -u -r1.1 par.c --- par.c 13 Feb 2003 19:27:50 -0000 1.1 +++ par.c 13 Feb 2003 23:19:40 -0000 @@ -19,6 +19,8 @@ /* $Id: par.c,v 1.1 2003/02/13 19:27:50 bdean Exp $ */ +#include "ac_cfg.h" + #include #include #include Index: pgm.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/pgm.c,v retrieving revision 1.8 diff -u -r1.8 pgm.c --- pgm.c 11 Feb 2003 21:58:07 -0000 1.8 +++ pgm.c 13 Feb 2003 23:19:40 -0000 @@ -19,6 +19,8 @@ /* $Id: pgm.c,v 1.8 2003/02/11 21:58:07 joerg_wunsch Exp $ */ +#include "ac_cfg.h" + #include #include #include Index: ppi.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/ppi.c,v retrieving revision 1.19 diff -u -r1.19 ppi.c --- ppi.c 13 Feb 2003 19:27:50 -0000 1.19 +++ ppi.c 13 Feb 2003 23:19:40 -0000 @@ -21,6 +21,8 @@ #if defined(__FreeBSD__) || defined(__linux__) +#include "ac_cfg.h" + #include #include #include Index: stk500.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/stk500.c,v retrieving revision 1.16 diff -u -r1.16 stk500.c --- stk500.c 13 Feb 2003 19:27:50 -0000 1.16 +++ stk500.c 13 Feb 2003 23:19:40 -0000 @@ -28,6 +28,8 @@ * */ +#include "ac_cfg.h" + #include #include #include Index: term.c =================================================================== RCS file: /cvsroot/avrdude/avrdude/term.c,v retrieving revision 1.28 diff -u -r1.28 term.c --- term.c 9 Feb 2003 13:36:48 -0000 1.28 +++ term.c 13 Feb 2003 23:19:40 -0000 @@ -19,6 +19,7 @@ /* $Id: term.c,v 1.28 2003/02/09 13:36:48 bdean Exp $ */ +#include "ac_cfg.h" #include #include