xml2-config 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #! /bin/sh
  2. prefix=/croot/libxml2_1678468322584/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold
  3. exec_prefix=${prefix}
  4. includedir=${prefix}/include
  5. libdir=${exec_prefix}/lib
  6. cflags=
  7. libs=
  8. usage()
  9. {
  10. cat <<EOF
  11. Usage: xml2-config [OPTION]
  12. Known values for OPTION are:
  13. --prefix=DIR change libxml prefix [default $prefix]
  14. --exec-prefix=DIR change libxml exec prefix [default $exec_prefix]
  15. --libs print library linking information
  16. add --dynamic to print only shared libraries
  17. --cflags print pre-processor and compiler flags
  18. --modules module support enabled
  19. --help display this help and exit
  20. --version output version information
  21. EOF
  22. exit $1
  23. }
  24. if test $# -eq 0; then
  25. usage 1
  26. fi
  27. while test $# -gt 0; do
  28. case "$1" in
  29. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  30. *) optarg= ;;
  31. esac
  32. case "$1" in
  33. --prefix=*)
  34. prefix=$optarg
  35. includedir=$prefix/include
  36. libdir=$prefix/lib
  37. ;;
  38. --prefix)
  39. echo $prefix
  40. ;;
  41. --exec-prefix=*)
  42. exec_prefix=$optarg
  43. libdir=$exec_prefix/lib
  44. ;;
  45. --exec-prefix)
  46. echo $exec_prefix
  47. ;;
  48. --version)
  49. echo 2.10.3
  50. exit 0
  51. ;;
  52. --help)
  53. usage 0
  54. ;;
  55. --cflags)
  56. cflags="-I${includedir}/libxml2 -I/croot/libxml2_1678468322584/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include "
  57. ;;
  58. --libtool-libs)
  59. if [ -r ${libdir}/libxml2.la ]
  60. then
  61. echo ${libdir}/libxml2.la
  62. fi
  63. ;;
  64. --modules)
  65. echo 1
  66. ;;
  67. --libs)
  68. if [ "$2" = "--dynamic" ]; then
  69. shift
  70. libs="-lxml2"
  71. else
  72. libs="-lxml2 -L/croot/libxml2_1678468322584/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib -lz -L/croot/libxml2_1678468322584/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib -llzma -L/croot/libxml2_1678468322584/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib -L/croot/libxml2_1678468322584/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib -licui18n -licuuc -licudata -lm -ldl "
  73. fi
  74. if [ "-L${libdir}" != "-L/usr/lib" -a "-L${libdir}" != "-L/usr/lib64" ]; then
  75. libs="-L${libdir} $libs"
  76. fi
  77. ;;
  78. *)
  79. usage 1
  80. ;;
  81. esac
  82. shift
  83. done
  84. if test -n "$cflags$libs"; then
  85. echo $cflags $libs
  86. fi
  87. exit 0