~chasedouglas/frame/ubuntu-upstream-xi

« back to all changes in this revision

Viewing changes to m4/gtest.m4

  • Committer: Chase Douglas
  • Date: 2011-12-09 01:36:45 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: chase.douglas@ubuntu.com-20111209013645-n24l4myiumblzsfu
* New upstream release.
  - Version 2 adds a new API built on top of XInput multitouch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Checks whether the gtest library is available on the system
 
2
# Allows for adjusting the include and library path.
 
3
# Sets have_gtest=yes if the library is present and
 
4
# reports the compiler and linker flags in 
 
5
# GTEST_CXXFLAGS AND GTEST_LDFLAGS, respectively.
 
6
AC_DEFUN([AC_CHECK_GTEST],
 
7
[
 
8
  AC_ARG_WITH([gtest-include-path],
 
9
  [AS_HELP_STRING([--with-gtest-include-path],
 
10
    [location of the Google test headers, defaults to /usr/include])],
 
11
  [GTEST_CXXFLAGS="-I$withval"],
 
12
  [GTEST_CXXFLAGS='-I/usr/include'])
 
13
 
 
14
  AC_ARG_WITH([gtest-lib-path],
 
15
  [AS_HELP_STRING([--with-gtest-lib-path], [location of the Google test libraries])],
 
16
  [GTEST_LDFLAGS="-L$withval -lpthread"],
 
17
  [GTEST_LDFLAGS='-lgtest -lpthread'])
 
18
 
 
19
  AC_HAVE_LIBRARY( [gtest], 
 
20
                [have_gtest=yes], 
 
21
                 AC_MSG_WARN([package 'gtest' not found: tests disabled]))
 
22
 
 
23
]) # AC_CHECK_GTEST
 
24