File: configure.ac

package info (click to toggle)
lbcd 3.3.0-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 492 kB
  • ctags: 345
  • sloc: ansic: 2,907; sh: 242; makefile: 161; perl: 97
file content (30 lines) | stat: -rw-r--r-- 843 bytes parent folder | download
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.
dnl $Id: configure.ac 229 2006-10-06 22:51:01Z rra $

AC_REVISION([$Revision: 229 $])
AC_PREREQ(2.57)
AC_INIT([lbcd], [3.3.0], [rra@stanford.edu])

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET

AC_CHECK_HEADERS([utmp.h utmpx.h sys/statvfs.h sys/vfs.h malloc.h search.h])
AC_CHECK_HEADERS([sys/select.h])

AC_SEARCH_LIBS([kvm_open], [kvm])
AC_SEARCH_LIBS([kstat_open], [kstat])
AC_CHECK_LIB([mld], [main], [LIBS="$LIBS -lmld"])
AC_SEARCH_LIBS([nlist], [elf])
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([socket], [socket], ,
    [AC_CHECK_LIB([nsl], [socket], [LIBS="$LIBS -lsocket -lnsl"], ,
        [-lsocket])])

AC_CHECK_FUNCS([hsearch getutent])
AC_FUNC_ALLOCA
AC_FUNC_SETPGRP

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile modules/Makefile])
AC_OUTPUT