File: com_err.m4

package info (click to toggle)
mpack 1.6-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,300 kB
  • sloc: ansic: 8,791; sh: 330; makefile: 25; perl: 25
file content (28 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
dnl com_err.m4--com_err detection macro
dnl Rob Earhart
dnl $Id: com_err.m4,v 1.5 2002/05/25 19:57:41 leg Exp $

AC_DEFUN(CMU_COMERR, [
	 cmu_need_compile_et=no
	 AC_CHECK_PROGS(COMPILE_ET, compile_et, no)
	 if test "$COMPILE_ET" = no; then
	    COMPILE_ET="\$(top_builddir)/com_err/compile_et"
	    cmu_need_to_compile_com_err=yes
	 fi
	 AC_CHECK_HEADER(com_err.h,,CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/com_err")
	 cmu_save_LIBS="$LIBS"
	 AC_CHECK_LIB(com_err, com_err,
		      LIB_COMERR="-lcom_err",
		      LDFLAGS="$LDFLAGS -L`pwd`/com_err"
			LIB_COMERR="\$(top_builddir)/com_err/libcom_err.la"
		      cmu_need_to_compile_com_err=yes)
	 AC_SUBST(LIB_COMERR)
	 LIBS="$cmu_save_LIBS"
	 AC_MSG_CHECKING(whether we need to compile com_err)
	 if test "$cmu_need_to_compile_com_err" = yes; then
	   AC_MSG_RESULT(yes)
	   AC_CONFIG_SUBDIRS(com_err)
	 else
	   AC_MSG_RESULT(no)
	 fi
	 ])