diff --git a/configure.ac b/configure.ac
index 22214b49d3f15d77d885fa2200f91bda1d018e10..dff4b9bde8eb21e35a781c24eb2bd01f11deb3d9 100644 (file)
--- a/configure.ac
+++ b/configure.ac
dnl
dnl This is the foobar configure script.
dnl
-dnl Copyright (C) 2010 Sebastian Harl <sh@tokkee.org>
+dnl Copyright (C) 2011 Sebastian 'tokkee' Harl <sh@tokkee.org>
dnl
dnl This program is free software; you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by the
dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AC_INIT([foobar],[m4_esyscmd(./version-gen.sh)],
- [Sebastian Harl <sh@tokkee.org>])
+ [Sebastian 'tokkee' Harl <sh@tokkee.org>], [],
+ [http://git.tokkee.org/?p=template.git])
AC_CONFIG_SRCDIR([src/foobar.c])
AC_CONFIG_HEADERS([src/config.h])
AC_PREFIX_DEFAULT([/opt/foobar])
AM_PROG_CC_C_O
-AC_PROG_LIBTOOL
+m4_ifdef([LT_INIT],
+ [
+ LT_INIT
+ ],
+ # else
+ # (older libtools)
+ [
+ AC_PROG_LIBTOOL
+ ]
+)
test_cc_flags() {
AC_LANG_CONFTEST([int main() {}])
fi
AC_SUBST([STRICT_CFLAGS])
-build_date="`date --utc '+%F %T'` (UTC)"
-AC_DEFINE_UNQUOTED([BUILD_DATE], ["$build_date"],
- [Define to the date the package has been built on.])
-
-dnl Version information provided by fb_features.h.
-FB_VERSION_MAJOR=`echo $PACKAGE_VERSION | cut -d'.' -f1`
-FB_VERSION_MINOR=`echo $PACKAGE_VERSION | cut -d'.' -f2`
-FB_VERSION_PATCH=`echo $PACKAGE_VERSION | cut -d'.' -f3`
-FB_VERSION_EXTRA=`echo $PACKAGE_VERSION | cut -d'.' -f4-`
-FB_VERSION_STRING="$FB_VERSION_MAJOR.$FB_VERSION_MINOR.$FB_VERSION_PATCH"
-
-AC_SUBST(FB_VERSION_MAJOR)
-AC_SUBST(FB_VERSION_MINOR)
-AC_SUBST(FB_VERSION_PATCH)
-AC_SUBST(FB_VERSION_EXTRA)
-AC_SUBST(FB_VERSION_STRING)
-
AC_CHECK_HEADERS(libgen.h)
-AC_CONFIG_FILES([Makefile src/Makefile src/fb_features.h])
+AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
cat <<EOF;
Configuration summary:
package version: $PACKAGE_VERSION
- build date: $build_date
+ build date: `date --utc '+%F %T'` (UTC)
Please report bugs to $PACKAGE_BUGREPORT.