1m4_include(m4/acx_pthread.m4) 2 3# At this point, the Xcode project assumes the version string will be three 4# integers separated by periods and surrounded by square brackets (e.g. 5# "[1.0.1]"). It also asumes that there won't be any closing parenthesis 6# between "AC_INIT(" and the closing ")" including comments and strings. 7AC_INIT([Google C++ Testing Framework], 8 [1.4.0], 9 [googletestframework@googlegroups.com], 10 [gtest]) 11 12# Provide various options to initialize the Autoconf and configure processes. 13AC_PREREQ([2.59]) 14AC_CONFIG_SRCDIR([./COPYING]) 15AC_CONFIG_AUX_DIR([build-aux]) 16AC_CONFIG_HEADERS([build-aux/config.h]) 17AC_CONFIG_FILES([Makefile]) 18AC_CONFIG_FILES([scripts/gtest-config], [chmod +x scripts/gtest-config]) 19 20# Initialize Automake with various options. We require at least v1.9, prevent 21# pedantic complaints about package files, and enable various distribution 22# targets. 23AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects]) 24 25# Check for programs used in building Google Test. 26AC_PROG_CC 27AC_PROG_CXX 28AC_LANG([C++]) 29AC_PROG_LIBTOOL 30 31# TODO(chandlerc@google.com): Currently we aren't running the Python tests 32# against the interpreter detected by AM_PATH_PYTHON, and so we condition 33# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's 34# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env" 35# hashbang. 36PYTHON= # We *do not* allow the user to specify a python interpreter 37AC_PATH_PROG([PYTHON],[python],[:]) 38AS_IF([test "$PYTHON" != ":"], 39 [AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])]) 40AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"]) 41 42# Check for pthreads. 43ACX_PTHREAD 44 45# TODO(chandlerc@google.com) Check for the necessary system headers. 46 47# TODO(chandlerc@google.com) Check the types, structures, and other compiler 48# and architecture characteristics. 49 50# Output the generated files. No further autoconf macros may be used. 51AC_OUTPUT 52