1dnl This file is part of libpar2 (a PAR 2.0 compatible file verification and 2dnl repair library). See http://parchive.sourceforge.net for details of PAR 2.0. 3dnl 4dnl Copyright (c) 2005 Francois Lesueur 5dnl Copyright (c) 2003 Peter Brian Clements 6dnl 7dnl par2cmdline is free software; you can redistribute it and/or modify 8dnl it under the terms of the GNU General Public License as published by 9dnl the Free Software Foundation; either version 2 of the License, or 10dnl (at your option) any later version. 11dnl 12dnl par2cmdline is distributed in the hope that it will be useful, 13dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15dnl GNU General Public License for more details. 16dnl 17dnl You should have received a copy of the GNU General Public License 18dnl along with this program; if not, write to the Free Software 19dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 20dnl -*- Autoconf -*- 21dnl Process this file with autoconf to produce a configure script. 22 23AC_PREREQ(2.58a) 24AC_INIT([libpar2], [0.3.1], [flesueur@users.sourceforge.net]) 25AC_CONFIG_SRCDIR([par2cmdline.cpp]) 26 27AC_CANONICAL_HOST 28 29AM_CONFIG_HEADER(config.h) 30AC_CONFIG_MACRO_DIR([m4]) 31AM_INIT_AUTOMAKE(libpar2,0.3.1) 32 33 34dnl Checks for programs. 35AC_PROG_CXX 36AC_LANG_CPLUSPLUS 37AC_PROG_INSTALL 38 39dnl Checks for libraries. 40AC_PROG_LIBTOOL 41AM_PROG_LIBTOOL 42AC_CHECK_LIB(stdc++, main,,AC_MSG_ERROR(You need libstdc++)) 43AC_CHECK_LIB(sigc-2.0, main,,AC_MSG_ERROR(You need libsigc++)) 44 45dnl Checks for header files. 46AC_HEADER_DIRENT 47AC_HEADER_STDBOOL 48AC_HEADER_STDC 49AC_CHECK_HEADERS([stdio.h] [endian.h]) 50AC_CHECK_HEADERS([getopt.h]) 51PKG_CHECK_MODULES([SIGC], [sigc++-2.0] ) 52dnl AC_CHECK_HEADERS([sigc++-2.0/sigc++/sigc++.h],[],AC_MSG_ERROR(You need libsigc++ headers)) 53 54dnl Checks for typedefs, structures, and compiler characteristics. 55AC_TYPE_SIZE_T 56AC_C_BIGENDIAN 57AC_C_CONST 58AC_C_INLINE 59AC_SYS_LARGEFILE 60AC_FUNC_FSEEKO 61 62dnl Checks for library functions. 63AC_FUNC_MEMCMP 64AC_CHECK_FUNCS([stricmp] [strcasecmp]) 65AC_CHECK_FUNCS([strchr] [memcpy]) 66 67AC_CHECK_FUNCS([getopt] [getopt_long]) 68 69 70AC_CONFIG_FILES([Makefile]) 71AC_OUTPUT 72 73