~brianaker/drizzle/warning-cleanup

« back to all changes in this revision

Viewing changes to m4/pandora_have_libv8.m4

  • Committer: Brian Aker
  • Date: 2012-12-31 11:49:21 UTC
  • mto: This revision was merged to the branch mainline in revision 2610.
  • Revision ID: brian@tangent.org-20121231114921-1axh6emzu6s7lat3
Allow for warnings in autoconf, but be realistic about our ability to handle obsoletes for the time being.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#--------------------------------------------------------------------
9
9
 
10
10
 
11
 
AC_DEFUN([_PANDORA_SEARCH_LIBV8],[
12
 
  AC_REQUIRE([AC_LIB_PREFIX])
13
 
 
14
 
  # v8 is written in C++, need to use g++ for test link below
15
 
  AC_LANG_CPLUSPLUS
16
 
 
17
 
  AC_LIB_HAVE_LINKFLAGS(v8, pthread,
18
 
  [
19
 
    #include <v8.h>
20
 
  ],[
21
 
    v8::HandleScope handle_scope;
22
 
  ]) 
23
 
 
24
 
  AM_CONDITIONAL(HAVE_LIBV8, [test "x${ac_cv_libv8}" = "xyes"])
25
 
])
 
11
AC_DEFUN([_PANDORA_SEARCH_LIBV8],
 
12
    [AC_REQUIRE([AC_LIB_PREFIX])
 
13
 
 
14
# v8 is written in C++, need to use g++ for test link below
 
15
    AC_LANG_PUSH([C++])
 
16
 
 
17
    AC_LIB_HAVE_LINKFLAGS([v8],[pthread],
 
18
      [
 
19
#include <v8.h>
 
20
      ],[
 
21
      v8::HandleScope handle_scope;
 
22
      ]) 
 
23
    AC_LANG_POP([C++])
 
24
 
 
25
    AM_CONDITIONAL(HAVE_LIBV8, [test "x${ac_cv_libv8}" = "xyes"])
 
26
    ])
26
27
 
27
28
AC_DEFUN([_PANDORA_HAVE_LIBV8],[
28
29
  AC_ARG_ENABLE([libv8],