gconf-cfg.sh 733 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. PKG="gtk+-2.0 gmodule-2.0 libglade-2.0"
  4. if [ -z "$(command -v pkg-config)" ]; then
  5. echo >&2 "*"
  6. echo >&2 "* 'make gconfig' requires 'pkg-config'. Please install it."
  7. echo >&2 "*"
  8. exit 1
  9. fi
  10. if ! pkg-config --exists $PKG; then
  11. echo >&2 "*"
  12. echo >&2 "* Unable to find the GTK+ installation. Please make sure that"
  13. echo >&2 "* the GTK+ 2.0 development package is correctly installed."
  14. echo >&2 "* You need $PKG"
  15. echo >&2 "*"
  16. exit 1
  17. fi
  18. if ! pkg-config --atleast-version=2.0.0 gtk+-2.0; then
  19. echo >&2 "*"
  20. echo >&2 "* GTK+ is present but version >= 2.0.0 is required."
  21. echo >&2 "*"
  22. exit 1
  23. fi
  24. echo cflags=\"$(pkg-config --cflags $PKG)\"
  25. echo libs=\"$(pkg-config --libs $PKG)\"