[84] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id: configure.ac 138 2006-08-03 21:40:15Z jari $ |
---|
| 4 | ## |
---|
| 5 | ## If you grabbed the source from subversion you should, at top-level, |
---|
| 6 | ## execute: |
---|
| 7 | ## ./bootstrap |
---|
| 8 | |
---|
| 9 | # Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson |
---|
[2] | 10 | # |
---|
[84] | 11 | # This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat |
---|
[2] | 12 | # |
---|
[84] | 13 | # svnstat is free software; you can redistribute it and/or modify it |
---|
| 14 | # under the terms of the GNU General Public License as published by |
---|
| 15 | # the Free Software Foundation; either version 2 of the License, or |
---|
| 16 | # (at your option) any later version. |
---|
[2] | 17 | # |
---|
[84] | 18 | # svnstat is distributed in the hope that it will be useful, but |
---|
| 19 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 21 | # General Public License for more details. |
---|
[2] | 22 | # |
---|
[84] | 23 | # You should have received a copy of the GNU General Public License |
---|
| 24 | # along with this program; if not, write to the Free Software |
---|
| 25 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
| 26 | # 02111-1307, USA. |
---|
[2] | 27 | |
---|
| 28 | AC_PREREQ(2.57) |
---|
[84] | 29 | AC_INIT([[svnstat]],[pre0.3],[jari@thep.lu.se]) |
---|
[5] | 30 | AC_CONFIG_SRCDIR([lib/File.h]) |
---|
[2] | 31 | AC_CONFIG_AUX_DIR([autotools]) |
---|
| 32 | AC_PREFIX_DEFAULT([/usr/local]) |
---|
[96] | 33 | test $prefix = NONE && prefix=/usr/local |
---|
[2] | 34 | |
---|
| 35 | AM_CONFIG_HEADER([config.h]) |
---|
| 36 | AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT) |
---|
| 37 | |
---|
| 38 | # Checks for programs. |
---|
| 39 | AC_PROG_CPP |
---|
| 40 | AC_PROG_CXX |
---|
| 41 | AC_PROG_INSTALL |
---|
| 42 | AC_PROG_RANLIB |
---|
| 43 | |
---|
[138] | 44 | # -Wno-long-long is needed to suppress compiler diagnostics regarding |
---|
| 45 | # using extension beyond the C++ standard (usage of non C++ standard |
---|
| 46 | # 'long long' types). |
---|
| 47 | CXXFLAGS="-g -O -Wall -pedantic -Wno-long-long" |
---|
[12] | 48 | CPPFLAGS="-DHAVE_INLINE=1" |
---|
[2] | 49 | # Use these flags when compiling a production library |
---|
[138] | 50 | #CXXFLAGS="-O3 -Wall -pedantic -Wno-long-long" |
---|
[12] | 51 | #CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1" |
---|
[2] | 52 | |
---|
[96] | 53 | AC_ARG_WITH(apr, |
---|
| 54 | [ --with-apr=DIR prefix for installed APR or path to APR build |
---|
| 55 | tree [[PREFIX]]], |
---|
| 56 | [ APR_PATH=$withval ], |
---|
| 57 | [ APR_PATH=$prefix ]) |
---|
| 58 | AC_SUBST(APR_PATH) |
---|
| 59 | |
---|
| 60 | AC_ARG_WITH(svn, |
---|
| 61 | [ --with-svn=DIR prefix for svn developer files [[PREFIX]]], |
---|
| 62 | [ SVN_PATH=$withval ], |
---|
| 63 | [ SVN_PATH=$prefix ]) |
---|
| 64 | AC_SUBST(SVN_PATH) |
---|
| 65 | |
---|
[2] | 66 | AC_CONFIG_FILES([Makefile |
---|
[21] | 67 | bin/Makefile |
---|
| 68 | lib/Makefile |
---|
| 69 | test/Makefile]) |
---|
[2] | 70 | |
---|
| 71 | AC_OUTPUT |
---|