Automake 1.11 introduced the concept of "silent build rules" wherein the build commands are reported as CC spu_explicit.lo rather than something along the lines of /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../../opmtransport/src -I.. -O3 -DNDEBUG -Wall -Wextra -std=c99 -pedantic -march=native -mtune=native -MT spu_explicit.lo -MD -MP -MF .deps/spu_explicit.Tpo -c -o spu_explicit.lo ../../../../../opmtransport/src/spu_explicit.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../opmtransport/src -I.. -O3 -DNDEBUG -Wall -Wextra -std=c99 -pedantic -march=native -mtune=native -MT spu_explicit.lo -MD -MP -MF .deps/spu_explicit.Tpo -c ../../../../../opmtransport/src/spu_explicit.c -fPIC -DPIC -o .libs/spu_explicit.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../opmtransport/src -I.. -O3 -DNDEBUG -Wall -Wextra -std=c99 -pedantic -march=native -mtune=native -MT spu_explicit.lo -MD -MP -MF .deps/spu_explicit.Tpo -c ../../../../../opmtransport/src/spu_explicit.c -o spu_explicit.o >/dev/null 2>&1 The former is much easier to read and, consequently, more conducive to visually noticing diagnostics from the toolset (compiler, linker &c). On the other hand, only fairly recent editions of Automake have the "silent rule" capability, so enable silent rules only if available. In particular, Automake 1.10.x (the default Automake version in MacOS X 10.6) does not support the capability. Neither does the default Automake in CentOS 5.6. Further details on silent build rules can be found at http://sources.redhat.com/automake/automake.html#Options http://www.flameeyes.eu/autotools-mythbuster/automake/silent.html Thanks to Arne Morten Kvarving in Dune Flyspray issue #922 (http://www.dune-project.org/flyspray/index.php?do=details&task_id=922) for the tip on how to preserve "configure.ac" backwards compatibility with Automake < 1.11 .
46 lines
982 B
Plaintext
46 lines
982 B
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
AC_PREREQ([2.50])
|
|
|
|
AC_INIT([opmtransport], [0.1], [Jostein.R.Natvig@sintef.no])
|
|
|
|
AM_INIT_AUTOMAKE([foreign -Wall])
|
|
|
|
# Use "silent" rules by default if available in the Automake being used to
|
|
# process this setup. See, e.g.,
|
|
#
|
|
# http://www.flameeyes.eu/autotools-mythbuster/automake/silent.html
|
|
#
|
|
# for details, particularly concerning the backwards compatibility.
|
|
#
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
LT_INIT
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AC_CONFIG_SRCDIR([src/spu_explicit.h])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_LIBTOOL
|
|
|
|
# Checks for libraries.
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([assert.h stdlib.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_REALLOC
|
|
AC_CHECK_FUNCS([floor memmove memset])
|
|
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
src/Makefile
|
|
])
|
|
|
|
AC_OUTPUT
|