010-compile.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -31,30 +31,6 @@ AC_CANONICAL_HOST
  4. AM_PROG_CC_C_O
  5. AC_GNU_SOURCE
  6. -# Detect the distribution. This is used for the default configuration and
  7. -# for some distro-specific build options.
  8. -AC_MSG_CHECKING([host distribution])
  9. -AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, paldo, openmandriva or pardus.]))
  10. -if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
  11. - with_distro=`lsb_release -is`
  12. -fi
  13. -if test "z$with_distro" = "z"; then
  14. - AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
  15. - AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle")
  16. - AC_CHECK_FILE(/etc/centos-release,with_distro="centos")
  17. - AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora")
  18. - AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
  19. - AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
  20. - AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
  21. - AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
  22. - AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
  23. - AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
  24. - AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
  25. - AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
  26. - AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
  27. -fi
  28. -with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]'`
  29. -
  30. if test "z$with_distro" = "z"; then
  31. with_distro="unknown"
  32. fi