X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=438c5495884b547cccba7a419e9ee5991750b197;hb=1d6f1a9cb0fb1be8467d8e2c0fbda1b7eca70c66;hp=5f509a46b03433acbdcb0550e4663abfe0942832;hpb=e7b49d4fb2eacf2a2e114203f74ba386f04b5bc0;p=febootstrap.git diff --git a/configure.ac b/configure.ac index 5f509a4..438c549 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl febootstrap configure.ac -dnl (C) Copyright 2009-2010 Red Hat Inc. +dnl (C) Copyright 2009-2011 Red Hat Inc. dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnl dnl Written by Richard W.M. Jones -AC_INIT(febootstrap,3.1) +AC_INIT(febootstrap,3.9) AM_INIT_AUTOMAKE dnl Check for basic C environment. @@ -62,29 +62,32 @@ AC_CHECK_PROG(YUMDOWNLOADER,[yumdownloader],[yumdownloader],[no]) dnl For Debian handler. AC_CHECK_PROG(APTITUDE,[aptitude],[aptitude],[no]) +AC_CHECK_PROG(APT_CACHE,[apt-cache],[apt-cache],[no]) AC_CHECK_PROG(DPKG,[dpkg],[dpkg],[no]) +dnl Include workaround for broken apt-cache depends --recurse (Ubuntu 10.04)? +if test "x$APT_CACHE" != "xno"; then + AC_MSG_CHECKING([if apt-cache depends --recurse is broken]) + if ! $APT_CACHE depends --recurse -i bash | grep -q '^libc6$'; then + AC_MSG_RESULT([yes]) + APT_CACHE_DEPENDS_RECURSE_BROKEN=true + else + AC_MSG_RESULT([no]) + APT_CACHE_DEPENDS_RECURSE_BROKEN=false + fi +else + APT_CACHE_DEPENDS_RECURSE_BROKEN=false +fi +AC_SUBST([APT_CACHE_DEPENDS_RECURSE_BROKEN]) + dnl For ArchLinux handler. AC_CHECK_PROG(PACMAN,[pacman],[pacman],[no]) dnl Required programs, libraries. -AC_PATH_PROG([INSMODSTATIC],[insmod.static],[no]) -if test "x$INSMODSTATIC" = "xno" ; then - AC_MSG_FAILURE([insmod.static program not found - -Is /sbin in your current path? - -Note that Debian/Ubuntu do not package this file from module-init-tools. -Sorry, please fix your distribution. In the meantime you can copy -/sbin/insmod.static from a Fedora machine. -]) -fi -AC_DEFINE_UNQUOTED([INSMODSTATIC],["$INSMODSTATIC"], - [Full path to the insmod.static program.]) - -AC_PATH_PROG([MKE2FS],[mke2fs],[no]) +AC_PATH_PROG([MKE2FS],[mke2fs],[no], + [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR]) if test "x$MKE2FS" = "xno" ; then - AC_MSG_FAILURE([mke2fs program not found (is /sbin in your current path?)]) + AC_MSG_FAILURE([mke2fs program not found]) fi AC_DEFINE_UNQUOTED([MKE2FS],["$MKE2FS"], [Full path to the mke2fs program.]) @@ -105,6 +108,16 @@ AC_CHECK_HEADER([ext2fs/ext2fs.h],[],[ AC_MSG_FAILURE([Header not found (part of e2fsprogs)]) ]) +AC_CHECK_PROG(GAWK,[gawk],[gawk],[no]) +if test "x$GAWK" = "xno" ; then + AC_MSG_FAILURE([gawk (GNU awk) not found]) +fi + AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([config.ml Makefile lib/Makefile helper/Makefile]) +AC_CONFIG_FILES([Makefile + debian/changelog + helper/Makefile + lib/Makefile + src/config.ml + src/Makefile]) AC_OUTPUT