PageRenderTime 17ms CodeModel.GetById 15ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/configure.ac

http://cmockery.googlecode.com/
m4 | 69 lines | 40 code | 10 blank | 19 comment | 0 complexity | 708c11ae447368de3dd6e693a35154c0 MD5 | raw file
 1## This is a boilerplate file for Google opensource projects.
 2## To make it useful, replace <<TEXT>> with actual text for your project.
 3## Also, look at comments with "## double hashes" to see if any are worth
 4## uncommenting or modifying.
 5
 6## Process this file with autoconf to produce configure.
 7## In general, the safest way to proceed is to run ./autogen.sh
 8
 9# make sure we're interpreted by some minimal autoconf
10AC_PREREQ(2.57)
11
12AC_INIT(cmockery, 0.1.2, opensource@google.com)
13# The argument here is just something that should be in the current directory
14# (for sanity checking)
15AC_CONFIG_SRCDIR(README)
16AM_INIT_AUTOMAKE
17AM_CONFIG_HEADER(src/config.h)
18
19# Checks for programs.
20AC_PROG_CC
21AC_PROG_CPP
22AC_PROG_CXX
23AM_CONDITIONAL(GCC, test "$GCC" = yes)   # let the Makefile know if we're gcc
24
25# Uncomment this if you'll be exporting libraries (.so's)
26AC_PROG_LIBTOOL
27AC_SUBST(LIBTOOL_DEPS)
28
29# Check whether some low-level functions/files are available
30AC_HEADER_STDC
31
32# Here are some examples of how to check for the existence of a fn or file
33##AC_CHECK_FUNCS(memmove)
34##AC_CHECK_HEADERS(sys/resource.h)
35AC_CHECK_FUNCS(setjmp)
36AC_CHECK_FUNCS(longjmp)
37AC_CHECK_FUNCS(strcmp)
38AC_CHECK_FUNCS(strcpy)
39AC_CHECK_FUNCS(memcpy)
40AC_CHECK_FUNCS(memset)
41AC_CHECK_FUNCS(malloc)
42AC_CHECK_FUNCS(calloc)
43AC_CHECK_FUNCS(free)
44AC_CHECK_FUNCS(exit)
45AC_CHECK_FUNCS(signal)
46AC_CHECK_FUNCS(printf)
47AC_CHECK_FUNCS(fprintf)
48AC_CHECK_FUNCS(snprintf)
49AC_CHECK_FUNCS(vsnprintf)
50AC_CHECK_HEADERS(assert.h)
51AC_CHECK_HEADERS(malloc.h)
52AC_CHECK_HEADERS(setjmp.h)
53AC_CHECK_HEADERS(stdarg.h)
54AC_CHECK_HEADERS(stddef.h)
55AC_CHECK_HEADERS(stdio.h)
56AC_CHECK_HEADERS(stdlib.h)
57AC_CHECK_HEADERS(string.h)
58AC_CHECK_HEADERS(signal.h)
59
60# Find out what namespace 'normal' STL code lives in, and also what namespace
61# the user wants our classes to be defined in
62AC_CXX_STL_NAMESPACE
63AC_DEFINE_GOOGLE_NAMESPACE(google)
64
65## Check out ../autoconf/ for other macros you can call to do useful stuff
66
67# Write generated configuration file
68AC_CONFIG_FILES([Makefile])
69AC_OUTPUT