Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

caca-config.in 1.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #! /bin/sh
  2. ## config script for libcaca -- Sam Hocevar <sam@zoy.org>
  3. ## $Id$
  4. prefix=@prefix@
  5. exec_prefix=@exec_prefix@
  6. lib_dir=@libdir@
  7. include_dir=@includedir@
  8. usage()
  9. {
  10. cat <<EOF
  11. Usage: caca-config [OPTIONS] [LIBRARIES]
  12. Options:
  13. [--prefix[=DIR]]
  14. [--exec-prefix[=DIR]]
  15. [--version]
  16. [--libs]
  17. [--plugin-libs]
  18. [--ldflags]
  19. [--cflags]
  20. EOF
  21. exit $1
  22. }
  23. if test $# -eq 0
  24. then
  25. usage 1 1>&2
  26. fi
  27. while test $# -gt 0
  28. do
  29. case "$1" in
  30. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  31. *) optarg= ;;
  32. esac
  33. case $1 in
  34. --prefix=*)
  35. prefix=$optarg
  36. local_prefix=yes
  37. ;;
  38. --prefix)
  39. echo_prefix=yes
  40. ;;
  41. --exec-prefix=*)
  42. exec_prefix=$optarg
  43. exec_prefix_set=yes
  44. local_prefix=yes
  45. ;;
  46. --exec-prefix)
  47. echo_exec_prefix=yes
  48. ;;
  49. --version)
  50. echo @VERSION@
  51. exit 0
  52. ;;
  53. --cflags)
  54. echo_cflags=yes
  55. ;;
  56. --ldflags)
  57. echo_ldflags=yes
  58. ;;
  59. @NEED_PIC_TRUE@ --libs)
  60. @NEED_PIC_FALSE@ --libs | --plugin-libs)
  61. echo_libs=yes
  62. ;;
  63. @NEED_PIC_TRUE@ --plugin-libs)
  64. @NEED_PIC_TRUE@ echo_plugin_libs=yes
  65. @NEED_PIC_TRUE@ ;;
  66. *)
  67. usage 1 1>&2
  68. ;;
  69. esac
  70. shift
  71. done
  72. if test "$local_prefix" = "yes"
  73. then
  74. if test "$exec_prefix_set" != "yes"
  75. then
  76. exec_prefix=$prefix
  77. fi
  78. fi
  79. if test "$echo_prefix" = "yes"
  80. then
  81. echo $prefix
  82. fi
  83. if test "$echo_exec_prefix" = "yes"
  84. then
  85. echo $exec_prefix
  86. fi
  87. if test "$echo_cflags" = "yes"
  88. then
  89. cflags="-I$include_dir/"
  90. echo $cflags
  91. fi
  92. if test "$echo_ldflags" = "yes"
  93. then
  94. ldflags="-L$lib_dir"
  95. echo $ldflags
  96. fi
  97. if test "$echo_libs" = "yes"
  98. then
  99. echo -L@libdir@ -lcaca @CACA_LIBS@
  100. fi
  101. @NEED_PIC_TRUE@if test "$echo_plugin_libs" = "yes"
  102. @NEED_PIC_TRUE@then
  103. @NEED_PIC_TRUE@ echo -L@libdir@ -lcaca_pic @CACA_LIBS@
  104. @NEED_PIC_TRUE@fi