-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.in
76 lines (60 loc) · 2.47 KB
/
configure.in
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
# Copyright (C) 2001-2003 Bart Trojanowski <[email protected]>
#
# This file is a part of the elfsign utility
# Process this file with autoconf to produce a configure script.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ident "%Z%%M% %I% %E% Bart Trojanowski <[email protected]>"
AC_INIT(src/main.c)
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(elfgpg, 0.1.6)
dnl Checks for programs.
AC_PROG_CC
dnl Checks for libraries.
AC_CHECK_LIB(elf, elf_version,, [
echo "ERROR: You need libelf to build elfgpg.";
AC_MSG_ERROR([Fatal: libelf not found.])])
AC_CHECK_LIB(gpgme, gpgme_new,, [
echo "ERROR: You need libgpgme to build elfgpg.";
AC_MSG_ERROR([Fatal: libgpgme not found.])])
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h fcntl.h stdio.h stdlib.h string.h sys/stat.h sys/types.h termios.h unistd.h getopt.h],, [
echo "ERROR: You need libc to build elfgpg.";
AC_MSG_ERROR([Fatal: libc headers not found.])])
AC_CHECK_HEADERS(libelf.h,, [
echo "ERROR: You need libelf to build elfgpg.";
AC_MSG_ERROR([Fatal: elf headers not found.])])
AC_CHECK_HEADERS(gpgme.h,, [
echo "ERROR: You need libgpgme to build elfgpg.";
AC_MSG_ERROR([Fatal: gpgme headers not found.])])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(strerror)
AC_SUBST(ac_aux_dir)
AC_OUTPUT(Makefile src/Makefile)
echo \
"------------------------------------------------------------------------
Configuration:
Source code location: ${srcdir}
Compiler: ${CC}
Compiler flags: ${CFLAGS}
Host System Type: ${host}
Install path: ${prefix}
See config.h for further configuration information.
------------------------------------------------------------------------"