Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

56 рядки
1.4 KiB

  1. dnl
  2. dnl Lol Engine
  3. dnl
  4. dnl Copyright © 2010—2016 Sam Hocevar <sam@hocevar.net>
  5. dnl
  6. dnl Lol Engine is free software. It comes without any warranty, to
  7. dnl the extent permitted by applicable law. You can redistribute it
  8. dnl and/or modify it under the terms of the Do What the Fuck You Want
  9. dnl to Public License, Version 2, as published by the WTFPL Task Force.
  10. dnl See http://www.wtfpl.net/ for more details.
  11. dnl
  12. # LOL_AC_SUBPROJECT()
  13. # ---------------------
  14. AC_DEFUN([LOL_AC_SUBPROJECT], [
  15. dnl
  16. dnl Parse build.config if present
  17. dnl
  18. AC_MSG_WARN([${srcdir}])
  19. ac_lol_configure_args=""
  20. if test -f ${srcdir}/build.config; then
  21. for x in `sed -ne 's,.*<enable_\(@<:@^>@:>@*\)>\(@<:@^<@:>@*\)</enable_@<:@^>@:>@*>.*,\1=\2,p' ${srcdir}/build.config`; do
  22. eval "enable_${x}"
  23. case ${x} in
  24. *=no) arg="--disable-${x%=no}" ;;
  25. *=yes) arg="--enable-${x%=yes}" ;;
  26. *) arg="" ;;
  27. esac
  28. ac_lol_configure_args="${ac_lol_configure_args} ${arg}"
  29. done
  30. fi
  31. dnl
  32. dnl Build and configure Lol Engine before our repository
  33. dnl Ensure $lol_srcdir and $lol_builddir are properly set
  34. dnl
  35. ac_configure_args="${ac_configure_args} --enable-subproject ${ac_lol_configure_args} $1"
  36. AC_CONFIG_SUBDIRS([lol])
  37. AC_SUBST(lol_srcdir, '${top_srcdir}/lol')
  38. AC_SUBST(lol_builddir, '${top_builddir}/lol')
  39. dnl
  40. dnl Subprojects use the same macros as us
  41. dnl
  42. LOL_AC_INIT()
  43. LOL_AC_CHECK()
  44. LOL_AC_FINI()
  45. ]) # LOL_AC_SUBPROJECT