1 / 15

INTRODUCTION TO AUTOCONF AND AUTOMAKE

INTRODUCTION TO AUTOCONF AND AUTOMAKE. GNU BUILD SYSTEM 1)GNU AUTOCONF 2)GNU AUTOMAKE 3)GNU LIBTOOL 4)GNU GETTEXT. WHY AUTOTOOLS?.

Download Presentation

INTRODUCTION TO AUTOCONF AND AUTOMAKE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INTRODUCTION TO AUTOCONF AND AUTOMAKE

  2. GNU BUILD SYSTEM 1)GNU AUTOCONF 2)GNU AUTOMAKE 3)GNU LIBTOOL 4)GNU GETTEXT

  3. WHY AUTOTOOLS? • to produce portable packages. ... some C functions will have 1)different names 2)different prototypes 3)might not exist every where 4)might require specific libraries

  4. Developers need autoconf and automake software. Requirments • Users dont need automake or autoconf. They must have a shell and appropriate compilers to compile the package.

  5. The Big Picture

  6. Step involved in installing a software • tar -zxvpf software_01.tar.gz • cd software_01 • ./configure • make • make check • make install

  7. steps involved in creating a software • create source • create configure.ac • create makefile.am • aclocal • autoconf • automake -a //to add missing files

  8. Directory Structure • software name is software_01 • root of software is software_01 • software_01 will have lib, src, man, doc makefile.am, configure.ac

  9. To go • we will make a source tar ball of hello world program • we will make a source tar ball of experience hello world program

  10. src/hello.c #include<cstdio> main (void) { prinft(“Hello GNU Users\n”); return 0; }

  11. Makefile.am SUBDIRS=src doc data man1 EXTRA_DIST=doc/documentation.sxw EXTRA_DIST +=doc/analysis.sxw

  12. configure.ac AC_INIT(hello,0.01,bugs@bugs.org) AM_INIT_AUTOMAKE(dist-bzip2) #check for programs AC_PROG_CXX AC_PROG_INSTALL #check for libraries #check for header files #check for typedefs #check for structures #check for compiler characteristics #check for library functions #check for system services AC_OUTPUT(Makefile\ src/Makefile\ )

  13. Now run `autoconf': % aclocal % autoconf % automake -a % touch NEWS README AUTHORS ChangeLog % automake -a % configure % make % src/hello % su and make install; make uninstall % make distcheck

  14. % rm -f configure % automake % make distcheck You will notice that the `distcheck' target fails.

More Related