1995-02-18 01:27:10 +00:00
|
|
|
dnl We define the macro GLIBC_PROVIDES to do an AC_PROVIDE for each macro
|
|
|
|
dnl which appears in configure.in before the sysdep configure scripts are run.
|
|
|
|
dnl Each sysdep configure.in does GLIBC_PROVIDES first, to avoid any
|
|
|
|
dnl AC_REQUIREs or AC_BEFOREs duplicating their code.
|
|
|
|
dnl
|
1996-05-10 22:06:47 +00:00
|
|
|
define(AC_FD_MSG,6)dnl Autoconf lossage.
|
|
|
|
define(AC_FD_CC,5)dnl Autoconf lossage.
|
1995-02-18 01:27:10 +00:00
|
|
|
AC_DEFUN([GLIBC_PROVIDES], [dnl
|
|
|
|
AC_PROVIDE([AC_PROG_INSTALL])dnl
|
|
|
|
AC_PROVIDE([AC_PROG_RANLIB])dnl
|
|
|
|
AC_PROVIDE([AC_PROG_CC])dnl
|
|
|
|
AC_PROVIDE([AC_PROG_CPP])dnl
|
|
|
|
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
|
|
|
|
])dnl
|
|
|
|
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
|
1996-05-10 22:06:47 +00:00
|
|
|
AC_TRY_LINK(,
|
1995-02-18 01:27:10 +00:00
|
|
|
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
|