dnl Copyright (C) 2004-2005 Glenn ROLLAND. dnl dnl This program 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 This program 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 requirements AC_INIT([CryptAfinity], [0.2], [glenux@fr.st]) AC_PREREQ(2.50) AC_CANONICAL_HOST AC_CANONICAL_TARGET AM_INIT_AUTOMAKE([CryptAfinity],[0.2]) #AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(src/config.h) AC_CONFIG_SRCDIR([src/lib/cryptafinity.hh]) AC_PROG_INSTALL ## information on the package ## ## checks for programs ## checks for libraries ## checks for header files ## checks for types ## checks for structures ## checks for compiler characteristics ## checks for library functions ## checks for system services AM_CONFIG_HEADER(config.h) ## required for c sources AC_ISC_POSIX AC_PROG_CC ## required for c++ sources AC_PROG_CXX AC_PROG_CPP # AC_PROG_RANLIB obsoleted bu LIBTOOL AC_LANG_SAVE AC_LANG_CPLUSPLUS # AC_PROG_YACC # AC_PROG_LEX # AM_PROG_LEX dnl Checks for library functions. AC_HEADER_STDC([]) #TODO: uncomment AC_CHECK_HEADERS([vector set map iostream sstream string algorithm list memory iterator exception utility],, AC_MSG_ERROR([You need to have the libstdc++ headers installed])) dnl *************************************************************************** dnl Gettext stuff. dnl *************************************************************************** dnl Check for programs dnl Check for build configuration. AM_PROG_LIBTOOL dnl Checks for header files. glib_deps="glib-2.0 >= 2.0" PKG_CHECK_MODULES(GLIB2,$glib_deps, build_glib=yes, build_glib=no) AC_SUBST(GLIB2_CFLAGS) AC_SUBST(GLIB2_LIBS) ########## # Figure out where to get the READLINE header files. # #AC_MSG_CHECKING([readline header files]) #found=no #if test "$config_TARGET_READLINE_INC" != ""; then # TARGET_READLINE_INC=$config_TARGET_READLINE_INC # found=yes #fi #if test "$found" = "yes"; then # AC_MSG_RESULT($TARGET_READLINE_INC) #else # AC_MSG_RESULT(not specified: still searching...) # AC_CHECK_HEADER(readline.h, [found=yes]) #fi #if test "$found" = "no"; then # for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do # AC_CHECK_FILE($dir/include/readline.h, found=yes) # if test "$found" = "yes"; then # TARGET_READLINE_INC="-I$dir/include" # break # fi # AC_CHECK_FILE($dir/include/readline/readline.h, found=yes) # if test "$found" = "yes"; then # TARGET_READLINE_INC="-I$dir/include/readline" # break # fi # done #fi #if test "$found" = "yes"; then # if test "$TARGET_READLINE_LIBS" = ""; then # TARGET_HAVE_READLINE=0 # else # TARGET_HAVE_READLINE=1 # fi #else # TARGET_HAVE_READLINE=0 #fi #AC_SUBST(TARGET_READLINE_INC) #AC_SUBST(TARGET_HAVE_READLINE) AC_CONFIG_FILES([Makefile doc/Makefile data/Makefile src/Makefile src/lib/Makefile src/tools/Makefile ]) AC_OUTPUT dnl configure.in ends here