VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/m4/ax_check_define.m4@ 95070

最後變更 在這個檔案從95070是 91612,由 vboxsync 提交於 3 年 前

src/libs: Export libtpms-0.9.0, bugref:10078

檔案大小: 627 位元組
 
1# SYNOPSIS
2#
3# AX_CHECK_DEFINE(includefile, define, [ACTION-SUCCESS], [ACTION-FAILURE])
4#
5# DESCRIPTION
6#
7# Check whether the given #define is available in the given #include file
8#
9# LICENSE
10#
11# See the root directory of the libtpms project for the LICENSE
12#
13AC_DEFUN([AX_CHECK_DEFINE],
14 [AC_PREREQ(2.63)
15 AC_MSG_CHECKING(whether $2 is defined in $1)
16 AC_COMPILE_IFELSE(
17 [AC_LANG_PROGRAM([[#include $1]],
18 [[#ifndef $2
19 #error $2 not defined
20 #endif]])],
21 [
22 AC_MSG_RESULT([yes])
23 [$3]
24 ],
25 [
26 AC_MSG_RESULT([no])
27 [$4]
28 ]
29 )
30 ]
31)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette