8c0a1da2f24d24a5cc0cc3263a8186d91aeac473
[ircu2.10.12-pk.git] / libs / dbprim / acinclude.m4
1 ## DO NOT EDIT BELOW THIS LINE -- generated by acinclude
2
3 dnl @(#)$Id: acinclude.m4,v 1.1 2003-03-07 02:36:10 klmitch Exp $
4 dnl
5 dnl KLM_COM_ERR_OBJ
6 dnl
7 dnl Defines the given OBJ if com_err is enabled.
8
9 AC_DEFUN(KLM_COM_ERR_OBJ,
10 [AC_REQUIRE([KLM_WITH_COM_ERR])
11 if test "x$COM_ERR" = "xtrue"; then
12     $1="$2"
13 else
14     $1=
15 fi
16 AC_SUBST($1)
17 ])
18
19 dnl @(#)$Id: acinclude.m4,v 1.1 2003-03-07 02:36:10 klmitch Exp $
20 dnl
21 dnl KLM_WITH_COM_ERR
22 dnl
23 dnl Adds --with-com_err, which tells it where to look for com_err
24
25 AC_DEFUN(KLM_WITH_COM_ERR,
26 [klm_path_com_err=no
27
28 AC_ARG_WITH(com_err,
29 [  --with-com_err=dir      Use the com_err installed in dir (/usr/local)],
30 [if test "x${withval}" = "xyes"; then
31     klm_path_com_err=
32 else
33     klm_path_com_err="${withval}"
34 fi
35 ])
36
37 if test "x${klm_path_com_err}" != "xno"; then
38     AC_CACHE_CHECK([com_err install location], klm_cv_path_com_err,
39     [if test "x${klm_path_com_err}" = x; then
40         klm_cv_path_com_err=/usr/local
41     else
42         klm_cv_path_com_err="${klm_path_com_err}"
43     fi
44     ])
45
46     COM_ERR=true
47 else
48     klm_cv_path_com_err=
49     COM_ERR=false
50 fi
51 AC_SUBST(COM_ERR)
52 ])
53