File: acinclude.m4

package info (click to toggle)
oleo 1.6-16
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,640 kB
  • ctags: 3,139
  • sloc: ansic: 39,221; yacc: 1,737; sh: 362; makefile: 88
file content (37 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AC_DEFUN(AC_C_VOLATILE,
[dnl This message is consistent in form with the other checking messages,
dnl and with the result message.
AC_CACHE_CHECK([for working volatile], ac_cv_c_volatile,
[AC_TRY_COMPILE(,
changequote(<<, >>)dnl
<<
{ 
  volatile int foo = 10;
}
>>,
changequote([, ])dnl
ac_cv_c_volatile=yes, ac_cv_c_volatile=no)])
if test $ac_cv_c_volatile = no; then
  AC_DEFINE(volatile, )
fi
])

AC_DEFUN(AC_C_VOIDSTAR,
[dnl This message is consistent in form with the other checking messages,
dnl and with the result message.
AC_CACHE_CHECK([for working void *], ac_cv_c_void_star,
[AC_TRY_COMPILE(,
changequote(<<, >>)dnl
<<
{ 
  void * foo;
}
>>,
changequote([, ])dnl
ac_cv_c_void_star=yes, ac_cv_c_void_star=no)])
if test $ac_cv_c_void_star = no; then
  AC_DEFINE(VOIDSTAR, char *)
else
  AC_DEFINE(VOIDSTAR, void *)
fi
])