Skip to content

Instantly share code, notes, and snippets.

@emersonmx
Last active December 11, 2015 04:19
Show Gist options
  • Save emersonmx/4544106 to your computer and use it in GitHub Desktop.
Save emersonmx/4544106 to your computer and use it in GitHub Desktop.
Arquivos de configuração para projeto usando autotools.
#! /bin/sh
mkdir -p m4
set -e
autoreconf --install --force
rm -rf autom4te.cache
# Prelude
AC_INIT([project], [1.0], [emersonmx@gmail.com])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
# AC_PROG_CC
AC_PROG_CXX
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures and compiler characteristics.
# Checks for library functions.
# Output files.
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment