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.

57 lines
1.0 KiB

  1. #!/bin/sh
  2. prefix=@prefix@
  3. exec_prefix=@exec_prefix@
  4. exec_prefix_set=no
  5. usage="\
  6. Usage: cln-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cppflags]"
  7. if test $# -eq 0; then
  8. echo "${usage}" 1>&2
  9. exit 1
  10. fi
  11. while test $# -gt 0; do
  12. case "$1" in
  13. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  14. *) optarg= ;;
  15. esac
  16. case $1 in
  17. --prefix=*)
  18. prefix=$optarg
  19. if test $exec_prefix_set = no ; then
  20. exec_prefix=$optarg
  21. fi
  22. ;;
  23. --prefix)
  24. echo $prefix
  25. ;;
  26. --exec-prefix=*)
  27. exec_prefix=$optarg
  28. exec_prefix_set=yes
  29. ;;
  30. --exec-prefix)
  31. echo $exec_prefix
  32. ;;
  33. --version)
  34. echo @CL_VERSION@
  35. ;;
  36. --cppflags)
  37. if test @includedir@ != /usr/include ; then
  38. includes=-I@includedir@
  39. fi
  40. echo $includes @CPPFLAGS@
  41. ;;
  42. --libs)
  43. libdirs=-L@libdir@
  44. echo $libdirs -lcln @LIBS@
  45. ;;
  46. *)
  47. echo "${usage}" 1>&2
  48. exit 1
  49. ;;
  50. esac
  51. shift
  52. done