-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
73 lines (60 loc) · 2.24 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
dnl This file is part of GPar2 (a PAR 2.0 compatible file verification and
dnl repair GUI). See http://parchive.sourceforge.net for details of PAR 2.0.
dnl
dnl Copyright (c) 2005 Francois Lesueur
dnl Copyright (c) 2006 John Augustine
dnl
dnl GPar2 is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl GPar2 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 You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.58a)
AC_INIT([gpar2], [0.3], [[email protected]])
AC_CONFIG_SRCDIR([gpar2.cc])
AC_CANONICAL_HOST
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gpar2,0.3)
dnl Checks for programs.
AC_PROG_CXX
AC_LANG_CPLUSPLUS
AC_PROG_INSTALL
dnl Checks for libraries.
AC_CHECK_LIB(stdc++, main,,AC_MSG_ERROR(You need libstdc++))
dnl AC_CHECK_LIB(sigc-2.0, main,,AC_MSG_ERROR(You need libsigc++))
dnl AC_CHECK_LIB(gtkmm-2.4, main,,AC_MSG_ERROR(You need libgtkmm))
AC_CHECK_LIB(par2, main,,AC_MSG_ERROR(You need libpar2))
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDBOOL
AC_HEADER_STDC
AC_CHECK_HEADERS([stdio.h] [endian.h])
AC_CHECK_HEADERS([getopt.h])
AC_CHECK_HEADERS(["libpar2/par2cmdline.h"])
PKG_CHECK_MODULES(SIGC, sigc++-2.0 )
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 )
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_C_BIGENDIAN
AC_C_CONST
AC_C_INLINE
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([stricmp] [strcasecmp])
AC_CHECK_FUNCS([strchr] [memcpy])
AC_CHECK_FUNCS([getopt] [getopt_long])
AM_PO_SUBDIRS
AC_CONFIG_FILES([Makefile po/Makefile.in m4/Makefile])
AC_OUTPUT