GSS_S_PROMPTING_NEEDED is a bit
[cyrus-sasl.git] / cmulocal / com_err.m4
1 dnl com_err.m4--com_err detection macro
2 dnl Rob Earhart
3 dnl $Id: com_err.m4,v 1.6 2003/10/08 20:35:24 rjs3 Exp $
4
5 AC_DEFUN([CMU_COMERR], [
6          cmu_need_compile_et=no
7          AC_CHECK_PROGS(COMPILE_ET, compile_et, no)
8          if test "$COMPILE_ET" = no; then
9             COMPILE_ET="\$(top_builddir)/com_err/compile_et"
10             cmu_need_to_compile_com_err=yes
11          fi
12          AC_CHECK_HEADER(com_err.h,,CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/com_err")
13          cmu_save_LIBS="$LIBS"
14          AC_CHECK_LIB(com_err, com_err,
15                       LIB_COMERR="-lcom_err",
16                       LDFLAGS="$LDFLAGS -L`pwd`/com_err"
17                         LIB_COMERR="\$(top_builddir)/com_err/libcom_err.la"
18                       cmu_need_to_compile_com_err=yes)
19          AC_SUBST(LIB_COMERR)
20          LIBS="$cmu_save_LIBS"
21          AC_MSG_CHECKING(whether we need to compile com_err)
22          if test "$cmu_need_to_compile_com_err" = yes; then
23            AC_MSG_RESULT(yes)
24            AC_CONFIG_SUBDIRS(com_err)
25          else
26            AC_MSG_RESULT(no)
27          fi
28          ])