diff options
author | Roland McGrath <roland@redhat.com> | 1995-03-07 23:44:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1995-03-07 23:44:43 +0000 |
commit | ce40d6af9f8a3b2095f4e112c9f16b009deefe9b (patch) | |
tree | ae47a32751815a86213f7ae059811a30fa7a2df9 /aclocal.m4 | |
parent | 636435e5c25d39fc5d52edf936e8e7a410b31b1a (diff) | |
download | make-ce40d6af9f8a3b2095f4e112c9f16b009deefe9b.tar.gz |
.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..d288743 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,19 @@ +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 |