File: configure.in

package info (click to toggle)
libproplist 0.9.1-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 772 kB
  • ctags: 381
  • sloc: sh: 8,260; ansic: 2,786; lex: 172; yacc: 139; makefile: 79
file content (52 lines) | stat: -rw-r--r-- 1,228 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dnl Process this file with autoconf to produce a configure script.
AC_INIT(proplist.l)

AM_INIT_AUTOMAKE(libPropList, 0.9.1)

AM_PROG_LIBTOOL

dnl Checks for programs.
AC_PROG_CC


dnl ARGH!! This is a pain. Automake will cause configure to abort if
dnl lex is not in the system, even though lex is not required by us.
dnl And if we use AC_PROG_LEX it will complain. 
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_MAKE_SET
AM_PROG_LIBTOOL

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h unistd.h crypt.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME

dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL

AC_CHECK_FUNCS(gethostname gettimeofday mkdir rmdir select strstr)

AC_CHECK_FUNC(socket,,
        AC_CHECK_LIB(socket, socket, XTRALIBS="$XTRALIBS -lsocket",))

AC_CHECK_FUNC(gethostbyname,,
        AC_CHECK_LIB(gethostbyname, nsl, XTRALIBS="$XTRALIBS -lnsl",))

AC_CHECK_FUNC(crypt,,
        AC_CHECK_LIB(crypt, crypt, LIBCRYPT="-lcrypt", LIBCRYPT=""))

dnl AC_CHECK_LIB(crypt, crypt, LIBCRYPT="-lcrypt", LIBCRYPT="")


dnl AC_SUBST(LIBSOCK)
AC_SUBST(LIBCRYPT)
AC_SUBST(XTRALIBS)

AC_OUTPUT(Makefile)