Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (32 sloc) 1.449 kb
c98254b @novas0x2a relicense everything. woo.
novas0x2a authored
1 dnl __BEGIN_LICENSE__
426c2c3 @zmoratto all: Relicense VW as Apache 2
zmoratto authored
2 dnl Copyright (c) 2006-2012, United States Government as represented by the
3 dnl Administrator of the National Aeronautics and Space Administration. All
4 dnl rights reserved.
5 dnl
6 dnl The NASA Vision Workbench is licensed under the Apache License,
7 dnl Version 2.0 (the "License"); you may not use this file except in
8 dnl compliance with the License. You may obtain a copy of the License at
9 dnl http://www.apache.org/licenses/LICENSE-2.0
10 dnl
11 dnl Unless required by applicable law or agreed to in writing, software
12 dnl distributed under the License is distributed on an "AS IS" BASIS,
13 dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 dnl See the License for the specific language governing permissions and
15 dnl limitations under the License.
c98254b @novas0x2a relicense everything. woo.
novas0x2a authored
16 dnl __END_LICENSE__
17
18
97e588f @novas0x2a add support for generating a test coverage file. pass
novas0x2a authored
19 dnl Usage: AX_TRY_CPPFLAGS(flags,[action-if-yes,[action-if-no]])
20 dnl
21 dnl The default action-if-yes is to append the flags to CPPFLAGS
22
23 AC_DEFUN([AX_TRY_CPPFLAGS],
24 [
25 AS_VAR_PUSHDEF([ac_var], ac_cv_cppflags_[[$1]])dnl
26 AC_CACHE_CHECK([whether the current compiler supports $1], ac_var,
27 [
28 save_CPPFLAGS="$CPPFLAGS"
29 CPPFLAGS="$CPPFLAGS $1"
c4bf350 @novas0x2a fix warnings with autoconf 2.68
novas0x2a authored
30 AC_LINK_IFELSE([AC_LANG_PROGRAM()], [AS_VAR_SET(ac_var,yes)], [AS_VAR_SET(ac_var,no)])
97e588f @novas0x2a add support for generating a test coverage file. pass
novas0x2a authored
31 CPPFLAGS="$save_CPPFLAGS"
32 ])
33 AS_IF([test AS_VAR_GET(ac_var) = yes], [m4_default([$2], [CPPFLAGS="$CPPFLAGS $1"])], [$3])
34 AS_VAR_POPDEF([ac_var])dnl
35 ])
Something went wrong with that request. Please try again.