class Mkduino::ConfigureAc

Attributes

makefile_am[RW]
output_filename[RW]

Public Class Methods

new(makefile_am, output_filename = 'configure.ac', options = {}) click to toggle source
Calls superclass method Mkduino::GeneratedFile::new
# File lib/configure_ac.rb, line 25
def initialize makefile_am, output_filename = 'configure.ac', options = {}
  super output_filename, options
  @makefile_am = makefile_am
end

Public Instance Methods

write_configure_ac() click to toggle source
# File lib/configure_ac.rb, line 30
    def write_configure_ac
      write_file do |f|
        f.puts <<-CONFIGURE_AC
dnl Process this file with autoconf to produce a configure script.")
AC_INIT([#{makefile_am.project_name}], [1.0])
dnl AC_CONFIG_SRCDIR( [ Makefile.am ] )
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
dnl AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_CC( avr-gcc )
AC_PROG_CXX( avr-g++ )
AC_PROG_RANLIB( avr-ranlib )
AC_PATH_PROG(OBJCOPY, avr-objcopy)
AC_PATH_PROG(AVRDUDE, avrdude)

AC_ISC_POSIX

dnl Checks for libraries.

dnl Checks for header files.
AC_HAVE_HEADERS( Arduino.h )

dnl Checks for library functions.

dnl Check for st_blksize in struct stat


dnl internationalization macros
AC_OUTPUT([Makefile])

CONFIGURE_AC
      end
      return

    end