File: configure.in

package info (click to toggle)
hesiod 3.0.2-20
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 716 kB
  • ctags: 111
  • sloc: ansic: 1,269; sh: 236; makefile: 142
file content (35 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download | duplicates (5)
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
29
30
31
32
33
34
35
dnl Process this file with autoconf to produce a configure script.
AC_INIT([hesiod], [3.0.2])
AC_PREREQ(2.53)
AC_CONFIG_SRCDIR([hesiod.c])

test -z "$lbindir" && lbindir='${bindir}'
AC_SUBST([lbindir])

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB

AC_EGREP_HEADER([pw_quota], [pwd.h], [AC_DEFINE(HAVE_PW_QUOTA)])
AC_EGREP_HEADER([pw_comment], [pwd.h], [AC_DEFINE(HAVE_PW_COMMENT)])
AC_EGREP_HEADER([pw_class], [pwd.h], [AC_DEFINE(HAVE_PW_CLASS)])
AC_EGREP_HEADER([pw_change], [pwd.h], [AC_DEFINE(HAVE_PW_CHANGE)])
AC_EGREP_HEADER([pw_expire], [pwd.h], [AC_DEFINE(HAVE_PW_EXPIRE)])

AC_CHECK_FUNC([res_ninit], [:],
	[AC_MSG_CHECKING([for standalone resolver library existence])
	 old_LIBS="$LIBS"
	 LIBS="$LIBS -lresolv"
	 AC_LINK_IFELSE([AC_LANG_PROGRAM(
			   [[#include <resolv.h>]],
			   [[res_ninit((void *)0);]])],
			[AC_MSG_RESULT([found])],
			[LIBS="$old_LIBS"
			 AC_MSG_FAILURE([not found])])])

AC_CHECK_FUNCS([strerror_r])

AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT