forked from geodynamics/ellipsis3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
59 lines (50 loc) · 1.75 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
dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Copyright (C) 1995 The GeoFramework Consortium
dnl
dnl This file is part of Ellipsis3D.
dnl
dnl Ellipsis3D is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License, version 2,
dnl as published by the Free Software Foundation.
dnl
dnl Ellipsis3D is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl Author:
dnl Louis Moresi <[email protected]>
dnl
# $Id$
AC_PREREQ(2.59)
AC_INIT([Ellipsis3D], [1.0.0], [[email protected]], [Ellipsis3D])
AC_CONFIG_AUX_DIR([./aux-config])
AC_CONFIG_SRCDIR([Ellipsis3D.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([foreign])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([malloc.h rpc/rpc.h stdlib.h string.h strings.h sys/resource.h sys/time.h sys/times.h time.h unistd.h])
AC_CHECK_HEADERS([rpc/xdr.h], [], [],
[#if HAVE_RPC_RPC_H
#include <rpc/rpc.h>
#endif
])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
# Checks for library functions.
AC_SEARCH_LIBS([sqrt], [m])
AC_CHECK_FUNCS([floor pow sqrt], [], [AC_MSG_FAILURE([missing math function '$ac_func'])])
AC_CHECK_FUNCS([getrusage times])
AC_SEARCH_LIBS([xdrstdio_create], [], [
AC_DEFINE([HAVE_LIBXDR], [1], [Define to 1 if you have library routines for external data representation.])])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
dnl end of configure.ac