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 $NetBSD: configure.ac,v 1.2 2009/11/19 22:55:53 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(fetch, fetchGet, [], [
AC_CHECK_LIB(fetch, fetchGet, [], [] [-lssl -lcrypto])
])
case "$host_os" in
netbsd)
AC_DEFINE([PREFER_GETPASS], [], [getpass supports long passwords])
;;
esac
AC_DEFINE([HAVE_CONFIG_H], [], [Include config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|