(Standard Targets): Use @smallexample.
[make.git] / aclocal.m4
blobd288743a89dfda4b15539e54d722c4b97ec21b0c
1 dnl
2 dnl Check for a symbol
3 dnl
4 AC_DEFUN(AC_CHECK_SYMBOL, [dnl
5 AC_MSG_CHECKING(for $1)
6 AC_CACHE_VAL(ac_cv_check_symbol_$1, [dnl
7 AC_TRY_LINK(, 
8 changequote(,)dnl
9 extern char *$1[]; puts(*$1);,
10 changequote([,])dnl
11             ac_cv_check_symbol_$1=yes, ac_cv_check_symbol_$1=no)])
12 if test "$ac_cv_check_symbol_$1" = yes; then
13 changequote(,)dnl
14   ac_tr_symbol=`echo $1 | tr '[a-z]' '[A-Z]'`
15 changequote([,])dnl
16   AC_DEFINE_UNQUOTED(HAVE_${ac_tr_symbol})
18 AC_MSG_RESULT($ac_cv_check_symbol_$1)])dnl
19 dnl