1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- m4_include(m4/acx_pthread.m4)
- AC_INIT([Google C++ Testing Framework],
- [1.8.0],
- [googletestframework@googlegroups.com],
- [gtest])
- AC_PREREQ([2.59])
- AC_CONFIG_SRCDIR([./LICENSE])
- AC_CONFIG_MACRO_DIR([m4])
- AC_CONFIG_AUX_DIR([build-aux])
- AC_CONFIG_HEADERS([build-aux/config.h])
- AC_CONFIG_FILES([Makefile])
- AC_CONFIG_FILES([scripts/gtest-config], [chmod +x scripts/gtest-config])
- AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects])
- AC_PROG_CC
- AC_PROG_CXX
- AC_LANG([C++])
- AC_PROG_LIBTOOL
- PYTHON= # We *do not* allow the user to specify a python interpreter
- AC_PATH_PROG([PYTHON],[python],[:])
- AS_IF([test "$PYTHON" != ":"],
- [AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])])
- AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"])
- AC_ARG_WITH([pthreads],
- [AS_HELP_STRING([--with-pthreads],
- [use pthreads (default is yes)])],
- [with_pthreads=$withval],
- [with_pthreads=check])
- have_pthreads=no
- AS_IF([test "x$with_pthreads" != "xno"],
- [ACX_PTHREAD(
- [],
- [AS_IF([test "x$with_pthreads" != "xcheck"],
- [AC_MSG_FAILURE(
- [--with-pthreads was specified, but unable to be used])])])
- have_pthreads="$acx_pthread_ok"])
- AM_CONDITIONAL([HAVE_PTHREADS],[test "x$have_pthreads" = "xyes"])
- AC_SUBST(PTHREAD_CFLAGS)
- AC_SUBST(PTHREAD_LIBS)
- AC_OUTPUT
|