## Process this file with autoconf to produce a configure script. ## ## $Id: configure.ac 138 2006-08-03 21:40:15Z jari $ ## ## If you grabbed the source from subversion you should, at top-level, ## execute: ## ./bootstrap # Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson # # This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat # # svnstat 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. # # svnstat 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. AC_PREREQ(2.57) AC_INIT([[svnstat]],[pre0.3],[jari@thep.lu.se]) AC_CONFIG_SRCDIR([lib/File.h]) AC_CONFIG_AUX_DIR([autotools]) AC_PREFIX_DEFAULT([/usr/local]) test $prefix = NONE && prefix=/usr/local AM_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT) # Checks for programs. AC_PROG_CPP AC_PROG_CXX AC_PROG_INSTALL AC_PROG_RANLIB # -Wno-long-long is needed to suppress compiler diagnostics regarding # using extension beyond the C++ standard (usage of non C++ standard # 'long long' types). CXXFLAGS="-g -O -Wall -pedantic -Wno-long-long" CPPFLAGS="-DHAVE_INLINE=1" # Use these flags when compiling a production library #CXXFLAGS="-O3 -Wall -pedantic -Wno-long-long" #CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1" AC_ARG_WITH(apr, [ --with-apr=DIR prefix for installed APR or path to APR build tree [[PREFIX]]], [ APR_PATH=$withval ], [ APR_PATH=$prefix ]) AC_SUBST(APR_PATH) AC_ARG_WITH(svn, [ --with-svn=DIR prefix for svn developer files [[PREFIX]]], [ SVN_PATH=$withval ], [ SVN_PATH=$prefix ]) AC_SUBST(SVN_PATH) AC_CONFIG_FILES([Makefile bin/Makefile lib/Makefile test/Makefile]) AC_OUTPUT