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.

48 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../automake/parse-config
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # If an application is running automake, it includes all the stuff
  16. # from usr/share/aclocal/ and so depends on all packages placing
  17. # something there.
  18. #
  19. # We can savely ignore those dependencies, since a package which is really
  20. # using an others package aclocal file will also access other files related
  21. # to the package outside of usr/share/aclocal.
  22. #
  23. var_append flistrfilter "|" ".*: /usr/share/aclocal/.*"
  24. automake_fixup() {
  25. local pref=$root
  26. if ! atstage native; then
  27. pref=$base/build/$SDECFG_ID/TOOLCHAIN/tools.cross
  28. fi
  29. if [ -d $pref/usr/share/automake/ ]; then
  30. # search (recursively) for the files
  31. find -name config.sub -o -name config.guess | while read file; do
  32. if grep -q Autoconf $file ; then
  33. echo "Updating $file"
  34. cp -fv $pref/usr/share/automake/${file##*/} $file
  35. fi
  36. done
  37. fi
  38. }
  39. # some packages do not include an up-to-date config.{sub,guess}
  40. if ! atstage toolchain && hasflag AUTOMAKE-QUIRK; then
  41. hook_add preconf 3 automake_fixup
  42. fi