forked from perfsonar/i2util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
108 lines (95 loc) · 2.71 KB
/
configure.ac
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#
# $Id$
#
#########################################################################
# #
# Copyright (C) 2002 #
# Internet2 #
# All Rights Reserved #
# #
#########################################################################
#
# File: configure.ac
#
# Author: Jeff Boote
# Internet2
#
# Date: Wed Apr 24 09:32:50 EDT 2002
#
# Description: autoconfig input script for I2util build
#
# Usage: see bootstrap...
#
# Environment:
#
# Files:
#
#
# Options:
# Process this file with autoconf to produce a configure script.
PACKAGE=I2util
VERISION="1.5"
AC_INIT(I2util, 1.5, [email protected])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(I2util, 1.5, [no-define])
AC_CONFIG_SRCDIR(I2util/ErrLog.c)
AM_CONFIG_HEADER(I2util/config.h)
# Insert local symbols
I2UTILINCS='-I${top_srcdir}'
I2UTIL_dir='${top_srcdir}/I2util'
I2UTILLDFLAGS="-L$I2UTIL_dir"
I2UTILLIBS="$I2UTILLDFLAGS -lI2util"
I2UTILLIBDEPS="$I2UTIL_dir/libI2util.a"
AC_SUBST(I2UTILINCS)
AC_SUBST(I2UTILLIBS)
AC_SUBST(I2UTILLIBDEPS)
# Check for kernel support
I2_RANDOMDEV
# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
AC_CANONICAL_HOST
AC_DEFINE(_GNU_SOURCE, 1, "Use glibc features.")
AC_DEFINE(_LARGEFILE_SOURCE, 1, "Use largefile api.")
AM_CONDITIONAL(I2THREADS_ENABLE, 0)
case $host in
*-*-solaris*)
AC_DEFINE(__EXTENSIONS__, 1, "get decl for sockaddr_storage on Solaris")
AC_DEFINE(_XOPEN_SOURCE, 500, "get decl for msg_control on Solaris")
;;
esac
# Checks for libraries.
AC_SEARCH_LIBS(getaddrinfo, [socket nsl])
AC_SEARCH_LIBS(gethostbyname, nsl)
AC_SEARCH_LIBS(socket, socket)
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h stdlib.h string.h limits.h stddef.h paths.h])
# Checks for typedefs, structures, and compiler characteristics.
I2_C___ATTRIBUTE__
AC_C_CONST
AC_TYPE_SIZE_T
AC_STRUCT_TM
I2_C_SYSLOG_NAMES
I2_C_SYSLOG_PERROR
AC_CHECK_MEMBERS([struct sockaddr.sa_len], , ,
[#include <sys/types.h>
#include <sys/socket.h>])
AC_CHECK_DECLS([sys_nerr, sys_errlist], , ,
[#include <stdlib.h>
#include <stdio.h>])
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([memset strdup strerror strtol strtoul socket getaddrinfo])
# Check for MAN2HTML. The manpages will be compiled to html files if it's
# found.
AC_CHECK_PROGS([MAN2HTML], [man2html])
if test -n "${MAN2HTML}"; then
AC_DEFINE(MAN2HTML, 1, [MAN2HTML man-page converter])
do_man2html=true
fi
AM_CONDITIONAL([HAVE_MAN2HTML], test x$do_man2html = xtrue)
AC_SUBST(ac_aux_dir)
AC_OUTPUT([Makefile I2util/Makefile aespasswd/Makefile pfstore/Makefile doc/Makefile test/Makefile I2util.spec],
[test -z "$CONFIG_HEADERS" || echo timestamp > I2util/stamp-h.in])