Sha256: 94e3d4c68611b3fc577748e46148176d784d24780bd3eb4120c34bdb54530e77

Contents?: true

Size: 1009 Bytes

Versions: 7

Compression:

Stored size: 1009 Bytes

Contents

class Rake::Builder
  class ConfigureAc
    # source_file - the relative path to any one source file in the project
    def initialize(project_title, version, source_file)
      @project_title, @version, @source_file = project_title, version, source_file
    end

    def to_s
      <<EOT
AC_PREREQ(2.61)
AC_INIT(#{@project_title}, #{@version})
AC_CONFIG_SRCDIR([#{@source_file}])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([#{@project_title}], [#{@version}])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_RANLIB

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_STRUCT_TM

# Checks for library functions.
AC_FUNC_LSTAT
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MEMCMP
AC_HEADER_STDC
AC_CHECK_FUNCS([memset strcasecmp])

AC_CONFIG_FILES([Makefile])

AC_OUTPUT
EOT
    end

    def save
      File.open('configure.ac', 'w') do |f|
        f.write to_s
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rake-builder-0.10.1 lib/rake/builder/configure_ac.rb
rake-builder-0.9.2 lib/rake/builder/configure_ac.rb
rake-builder-0.9.1 lib/rake/builder/configure_ac.rb
rake-builder-0.9.0 lib/rake/builder/configure_ac.rb
rake-builder-0.8.0 lib/rake/builder/configure_ac.rb
rake-builder-0.7.0 lib/rake/builder/configure_ac.rb
rake-builder-0.0.19 lib/rake/builder/configure_ac.rb