summaryrefslogtreecommitdiff
path: root/net/fetch/files/configure.ac
blob: ba2d7b541a8b998cba0bffdb20d861a271fcc09c (plain)
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
dnl $NetBSD: configure.ac,v 1.5 2011/12/05 22:54:22 joerg Exp $

dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT([fetch], [1.6], [joerg@NetBSD.org])
AC_CONFIG_HEADER(config.h)

AC_CANONICAL_HOST

AC_CHECK_HEADERS([sys/param.h sys/ioctl.h sys/socket.h sys/stat.h sys/time.h])
AC_CHECK_HEADERS([err.h stdint.h termios.h sysexists.h])

AC_TYPE_INTMAX_T

AC_CHECK_FUNCS([getpass getpassphrase setproctitle])
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, gethostbyname)
AC_CHECK_LIB(crypto, X509_get_issuer_name)
AC_CHECK_LIB(ssl, SSL_read)
AC_CHECK_LIB(fetch, fetchGet)

case "$host_os" in
netbsd)
	AC_DEFINE([PREFER_GETPASS], [], [getpass supports long passwords])
	;;
esac

AC_CONFIG_FILES([Makefile])
AC_OUTPUT