From 7b8b13316cf04ca246502b9c4801c3017cd7bfcc Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Wed, 8 Oct 2008 04:08:28 +0000 Subject: [PATCH] Revise configure.in to be more sensible. Reduce the number of header files checked in configure. Source code doesn't really use the output, and we're linux specific. Other configure.in parts are fixed to use m4 features rather than relying on shell features. --- configure.in | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/configure.in b/configure.in index b50cefb..efc46d5 100644 --- a/configure.in +++ b/configure.in @@ -1,32 +1,15 @@ AC_INIT(lsyncd.c) -PACKAGE=lsyncd -VERSION=1.0 -AM_INIT_AUTOMAKE($PACKAGE,$VERSION) +m4_define(LSYNCD_PACKAGE,lsyncd) +m4_define(LSYNCD_VERSION,1.0) +AM_INIT_AUTOMAKE(LSYNCD_PACKAGE,LSYNCD_VERSION) AM_MAINTAINER_MODE AC_PROG_CC AC_PROG_LIBTOOL AC_PROG_INSTALL -AC_CHECK_HEADERS(\ -sys/types.h \ -sys/stat.h \ -sys/wait.h \ -sys/inotify.h \ -stdio.h \ -stdlib.h \ -stdarg.h \ -stdbool.h \ -string.h \ -unistd.h \ -errno.h \ -time.h \ -dirent.h \ -getopt.h -) +AC_CHECK_HEADERS([sys/inotify.h]) -AC_CONFIG_HEADERS(\ -config.h -) +AC_CONFIG_HEADERS([config.h]) AC_OUTPUT(Makefile)