X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=configure.ac;h=4dba234be16cb30df7c5f9df39a6e0f2356194a4;hb=HEAD;hp=26bfa8a0d49cce4482a3d7676248ee06dc71b973;hpb=9c6bfc2452dbc302d879b68c67489a14cd4fdd21;p=template.git diff --git a/configure.ac b/configure.ac index 26bfa8a..4dba234 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. dnl dnl This is the foobar configure script. dnl -dnl Copyright (C) 2010 Sebastian Harl +dnl Copyright (C) 2012 Sebastian 'tokkee' Harl 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 @@ -40,8 +40,13 @@ dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -AC_INIT([foobar],[m4_esyscmd(./version-gen.sh)], - [Sebastian Harl ]) +AC_INIT([foobar full name],[m4_esyscmd(./version-gen.sh)], + [sh@tokkee.org], + [foobar], + [http://git.tokkee.org/?p=template.git]) +PACKAGE_MAINTAINER="Sebastian 'tokkee' Harl " +AC_DEFINE_UNQUOTED([PACKAGE_MAINTAINER], ["$PACKAGE_MAINTAINER"], + [Define to the name of the maintainer of this package.]) AC_CONFIG_SRCDIR([src/foobar.c]) AC_CONFIG_HEADERS([src/config.h]) AC_PREFIX_DEFAULT([/opt/foobar]) @@ -60,10 +65,19 @@ AC_PROG_MAKE_SET 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() {}]) + AC_LANG_CONFTEST([AC_LANG_PROGRAM([[ ]], [[ ]])]) $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null ret=$? rm -f conftest.o @@ -164,8 +178,7 @@ if test "x$enable_strict_checks" = "xyes"; then -Wpointer-arith \ -Wshadow \ -Wstrict-prototypes \ - -Wunreachable-code \ - -Wvla; do + -Wunreachable-code; do AC_MSG_CHECKING([whether $CC accepts $flag]) if test_cc_flags $flag; then @@ -178,41 +191,52 @@ if test "x$enable_strict_checks" = "xyes"; then 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_OUTPUT - -cat <