Red Antigua Logo
Yet another piece of web.
Search this site (by Google)
Tools    (top)
Check a site for broken links
(W3C)

Perl modules    (top)
Tree::Numbered::Tools
(CPAN)
Perl tutorials    (top)
Perl modules
HTML::Template
CGI::Application
Cookies with CGI::Application
Upload files with CGI::Application
Download files with CGI::Application
Redirect with CGI::Application
CPAN shell
Install DBD::mysql from the CPAN shell
Perl trim function
Validate an IP with Perl
Run suid Perl scripts under Apache
Perl taint mode
Perl date functions with Date::Calc

In Spanish
Curso de Perl

C tutorials    (top)
C - Introduction
C - Absolute beginner's Emacs
C - Examples for beginners
C - Makefile examples
C - Autotools examples
Server configurations    (top)
DNS
Apache
Apache Authentication and Access Control
mod_perl on FreeBSD
MySQL
MySQL add account
phpMyAdmin
Squid
DHCP

UNIX on Windows    (top)
MSYS2 - UNIX environment for MS Windows 32/64 bits
Apache setup on Windows
MySQL setup on Windows
PHP setup on Windows
Perl setup on Windows
Emacs setup on Windows
PuTTY
WinSCP
GIMP on Windows
MinGW - gcc on Windows
MSYS - UNIX-styled shell on Windows
msysDTK - autotools on Windows
GDB for MinGW on Windows

Misc. FreeBSD/UNIX    (top)
'portupgrade' on FreeBSD
'ipf' on FreeBSD
'pf' on FreeBSD
'su' on FreeBSD
Mount an ISO image under FreeBSD
Load the correct sound driver under FreeBSD without knowing what sound card you are using
Simultaneous sound channels on FreeBSD
FreeBSD network stuff
DOS-to-UNIX file conversion
favicon.ico on UNIX
Emacs tips
Command Line Calculator
Save multimedia streams with 'mplayer'
xargs - solution to 'Argument list too long'
Process multiple images from the command line using 'ImageMagick'
Turn the system bell off under X Windows
Process each line in an input file from the command line (or in a shell script)
How to keep a program running in the background using 'nohup'
How to remove symbolic links in the current directory using 'find' and 'rm'
How to remove Emacs backup files in the current directory and all subdirectories using 'find' and 'rm'
How to execute .profile without logging in
Configure X to handle non-English characters
How to move /var to /usr/var

Redirect a web page    (top)
Redirect to another web page
Apache redirect
C redirect
Perl redirect
PHP redirect
HTML redirect
JavaScript redirect

Javascript    (top)
Trim function
Login form
Register form
Popup window

C - Autotools examples - Index
C tutorials » Autotools examples - Index

WORK IN PROGRESS

What is Autotools?

From automake manual - Introducing the GNU Build System:
"In 1991, David J. MacKenzie got tired of customizing Makefile for the 20 platforms he had to deal with. Instead, he handcrafted a little shell script called configure to automatically adjust the Makefile... Compiling his package was now as simple as running ./configure && make."

From autoconf manual - Introduction:
"Autoconf is a tool for producing shell scripts that automatically configure software source code packages to adapt to many kinds of Posix-like systems..."

From automake manual - Introduction:
"Automake is a tool for automatically generating Makefile.ins... The generated Makefile.ins are compliant with the GNU Makefile standards... The goal of Automake is to remove the burden of Makefile maintenance..."

From libtool manual - Introduction:
"In the past, if a source code package developer wanted to take advantage of the power of shared libraries, he needed to write custom support code for each platform... GNU Libtool simplifies the developer's job..."

From gettext manual - Purpouse:
"...Using a common language is quite handy for communication between developers, maintainers and users from all countries. On the other hand, most people are less comfortable with English than with their own native language, and would prefer to use their mother tongue for day to day's work, as far as possible. Many would simply love to see their computer screen showing a lot less of English, and far more of their own language...
The Translation Project... has a good chance to get all of us nearer the achievement of a truly multi-lingual set of programs."


TODO: INCLUDE gettext IN glibc EXAMPLES INSTEAD OF LIST IT HERE?


What is Autotools NOT?
Autotools is NOT a piece of software that automagically ports all your software to any existing platform.
For example, UNIX sleep() will not automatically work on MS Windows, which uses Sleep() instead, just because you use Autotools.
You still haved to port your software:
#include <stdio.h>
#ifdef WIN32
#include <windows.h>         /* Needed for Windows Sleep() */
#define sleep(x) (Sleep(x * 1000))
#else
#include <unistd.h>          /* Needed for BSD sleep() */
#endif

The examples:
  1. autoconf hello
  2. autoconf layout
  3. autoconf autoscan
Last modified: Wed Sep 7 11:48:24 EDT 2016