File: configure.in

package info (click to toggle)
libnss-lwres 0.93-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 628 kB
  • ctags: 18
  • sloc: sh: 6,585; ansic: 128; makefile: 49
file content (30 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (6)
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
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
AC_INIT(lwres-host.c)
AM_INIT_AUTOMAKE(nss_lwres, 0.93)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP			dnl Later checks need this.
AM_DISABLE_STATIC		dnl Makes no sense for a NSS module
AM_PROG_LIBTOOL

dnl Check for bind v9
AC_PATH_PROG(ISC_CONFIG_SH,isc-config.sh, no)
if test "$ISC_CONFIG_SH" != "no"; then
  LWRES_CFLAGS=`$ISC_CONFIG_SH --cflags lwres`
  LWRES_LIBS=`$ISC_CONFIG_SH --libs lwres`
else
  LWRES_CFLAGS=""
  LWRES_LIBS=""
  AC_CHECK_LIB(lwres, lwres_getipnodebyaddr)
  if test "$ac_cv_lib_lwres_lwres_getipnodebyaddr" = no; then
    AC_MSG_ERROR([liblwres not found])
  fi
  AC_CHECK_HEADERS(lwres/netdb.h)
  if test "$ac_cv_header_lwres_netdb_h" = no; then
    AC_MSG_ERROR([<lwres/netdb.h> not found])
  fi
fi
AC_SUBST(LWRES_CFLAGS)
AC_SUBST(LWRES_LIBS)
AC_OUTPUT(Makefile)