diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-20 13:54:40 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-20 13:54:40 +0000 |
commit | fa832ddd5aa85f459403766d12733c52c971f9fb (patch) | |
tree | dad5c40613ed86b02e684f3374a542a94795df1b /configure.ac | |
parent | 1fa149c03f228d9ab2f55086a0eb3337cdb59992 (diff) | |
download | gsc-fa832ddd5aa85f459403766d12733c52c971f9fb.tar.gz gsc-fa832ddd5aa85f459403766d12733c52c971f9fb.tar.bz2 |
* jabberd/Makefile.am, cvs/Makefile.am, ckaliases/Makefile.am,
acinclude.m4, Makefile.am: Add copyright statements
* wydawca/sql.c (trim_length): Move to verify.c
* wydawca/verify.c (trim_length, trim)
(check_access_rights): New functions
(expand_param): Export
(verify_triplet): Call verify_directive_format and
check_access_rights
* wydawca/wydawca.h (trim_length, trim, directive_parse)
(directive_get_value, directive_pack_version)
(directive_version_in_range_p, verify_directive_format)
(directive_first, directive_next, process_directives)
(create_directory, move_file): New functions
(MIN_DIRECTIVE_VERSION,MAX_DIRECTIVE_VERSION)
(MKDIR_PERMISSIONS,CREAT_PERMISSIONS): New defines
* wydawca/gpg.c (wydawca_gpg_homedir): Return a meaningful value
(verify_directive_signature): Call directive_parse
* wydawca/process.c (parse_file_name): Return void
* wydawca/directive.c: New file
* wydawca/diskio.c: New file
* wydawca/triplet.c (triplet_processor): Call process_directives
(enumerate_triplets): Arg is not const
* wydawca/Makefile.am: Add new sources
* configure.ac: Check for sendfile
git-svn-id: file:///svnroot/gsc/trunk@278 d2de0444-eb31-0410-8365-af798a554d48
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 980d41b..ebeb7c3 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,19 @@ # -*- Autoconf -*- -# Process this file with autoconf to produce a configure script. +# This file is part of GSC +# Copyright (C) 2005, 2006, 2007 Sergey Poznyakoff +# +# GSC 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 3, or (at your option) +# any later version. +# +# GSC 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 GSC. If not, see <http://www.gnu.org/licenses/>. AC_PREREQ(2.59) AC_INIT([gsc], 1.1, [gray@gnu.org.ua]) @@ -19,7 +33,7 @@ AC_PROG_YACC # Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h]) +AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h sys/sendfile.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -75,6 +89,26 @@ else fi # *********************************** +# Sendfile +# *********************************** +AC_ARG_ENABLE([sendfile], + [AC_HELP_STRING([--enable-sendfile], + [Attempt to use sendfile(2) when possible])], + [case $enableval in + yes) USE_SENDFILE=1;; + no) USE_SENDFILE=0;; + *) AC_MSG_FAILURE([Invalid argument for --enable-sendfile]) + esac], + [USE_SENDFILE=1]) + +if test "$USE_SENDFILE" = 1; then + case $host in + *-linux-*) AC_DEFINE_UNQUOTED([USE_SENDFILE], 1, + [Define to 1 to use sendfile(2) on GNU/Linux]);; + esac +fi + +# *********************************** # Check for Emacs site-lisp directory # *********************************** AM_PATH_LISPDIR |