OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.5 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../xfsprogs/autoconf.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- xfsprogs-2.6.36.orig/configure.in 2005-08-01 16:20:46.000000000 +0200
  17. +++ xfsprogs-2.6.36/configure.in 2005-08-09 13:32:05.770058750 +0200
  18. @@ -1,6 +1,8 @@
  19. AC_INIT(include/libxfs.h)
  20. AC_CONFIG_HEADER(include/platform_defs.h)
  21. +AC_PROG_CC
  22. +
  23. AC_ARG_ENABLE(shared,
  24. [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
  25. enable_shared=yes)
  26. @@ -30,6 +32,51 @@
  27. test $enable_termcap = yes && libtermcap="-ltermcap",)
  28. AC_SUBST(libtermcap)
  29. +# Generic macro, sets up all of the global packaging variables.
  30. +# The following environment variables may be set to override defaults:
  31. +# DEBUG OPTIMIZER MALLOCLIB PLATFORM DISTRIBUTION INSTALL_USER INSTALL_GROUP
  32. +# BUILD_VERSION
  33. +#
  34. +AC_DEFUN([AC_PACKAGE_GLOBALS],
  35. + [ pkg_name="$1"
  36. + AC_SUBST(pkg_name)
  37. +
  38. + . ./VERSION
  39. + pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
  40. + AC_SUBST(pkg_version)
  41. + pkg_release=$PKG_BUILD
  42. + test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
  43. + AC_SUBST(pkg_release)
  44. +
  45. + DEBUG=${DEBUG:-'-DDEBUG'} dnl -DNDEBUG
  46. + debug_build="$DEBUG"
  47. + AC_SUBST(debug_build)
  48. +
  49. + OPTIMIZER=${OPTIMIZER:-'-g'} dnl -O2
  50. + opt_build="$OPTIMIZER"
  51. + AC_SUBST(opt_build)
  52. +
  53. + MALLOCLIB=${MALLOCLIB:-''} dnl /usr/lib/libefence.a
  54. + malloc_lib="$MALLOCLIB"
  55. + AC_SUBST(malloc_lib)
  56. +
  57. + PKG_USER=${INSTALL_USER:-'root'}
  58. + pkg_user="$PKG_USER"
  59. + AC_SUBST(pkg_user)
  60. +
  61. + PKG_GROUP=${INSTALL_GROUP:-'root'}
  62. + pkg_group="$PKG_GROUP"
  63. + AC_SUBST(pkg_group)
  64. +
  65. + pkg_distribution=`uname -s`
  66. + test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
  67. + AC_SUBST(pkg_distribution)
  68. +
  69. + pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
  70. + test -z "$PLATFORM" || pkg_platform="$PLATFORM"
  71. + AC_SUBST(pkg_platform)
  72. + ])
  73. +
  74. AC_PACKAGE_GLOBALS(xfsprogs)
  75. AC_PACKAGE_UTILITIES(xfsprogs)