mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 06:27:57 +00:00
20 lines
493 B
Text
20 lines
493 B
Text
|
dnl
|
||
|
dnl Check for a symbol
|
||
|
dnl
|
||
|
AC_DEFUN(AC_CHECK_SYMBOL, [dnl
|
||
|
AC_MSG_CHECKING(for $1)
|
||
|
AC_CACHE_VAL(ac_cv_check_symbol_$1, [dnl
|
||
|
AC_TRY_LINK(,
|
||
|
changequote(,)dnl
|
||
|
extern char *$1[]; puts(*$1);,
|
||
|
changequote([,])dnl
|
||
|
ac_cv_check_symbol_$1=yes, ac_cv_check_symbol_$1=no)])
|
||
|
if test "$ac_cv_check_symbol_$1" = yes; then
|
||
|
changequote(,)dnl
|
||
|
ac_tr_symbol=`echo $1 | tr '[a-z]' '[A-Z]'`
|
||
|
changequote([,])dnl
|
||
|
AC_DEFINE_UNQUOTED(HAVE_${ac_tr_symbol})
|
||
|
fi
|
||
|
AC_MSG_RESULT($ac_cv_check_symbol_$1)])dnl
|
||
|
dnl
|