mirror of the now-defunct rocklinux.org
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.

198 lines
6.2 KiB

  1. The pre-generated configure. Recent autoconf fail to generate it - so I used
  2. and ancient system to do so. Clean up majorly since each line-number reference
  3. changed and we do not want a multiple hundret kB diff ...
  4. - Rene Rebe <rene@rocklinux.org>
  5. diff -ur xemacs-21.5.17/configure xemacs-21.5.17-xft/configure
  6. --- xemacs-21.5.17/configure 2004-03-22 09:50:04.000000000 +0100
  7. +++ xemacs-21.5.17-xft/configure 2004-04-27 05:03:40.000000000 +0200
  8. @@ -364,6 +364,7 @@
  9. with_hesiod | \
  10. with_dnet | \
  11. with_infodock | \
  12. + with_xft | \
  13. with_netinstall | \
  14. with_ipv6_cname | \
  15. external_widget | \
  16. @@ -7393,25 +7387,156 @@
  17. fi
  18. fi
  19. +
  20. + if test "$with_xft" = "yes"; then
  21. + echo "checking xft-config program" 1>&6
  22. +echo "configure:7396: checking xft-config program" >&5
  23. + # Extract the first word of "xft-config", so it can be a program name with args.
  24. +set dummy xft-config; ac_word=$2
  25. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  26. +echo "configure:7400: checking for $ac_word" >&5
  27. +
  28. +if test -n "$XFT_CONFIG"; then
  29. + ac_cv_prog_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test.
  30. +else
  31. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  32. + ac_dummy="$PATH"
  33. + for ac_dir in $ac_dummy; do
  34. + test -z "$ac_dir" && ac_dir=.
  35. + if test -f $ac_dir/$ac_word; then
  36. + ac_cv_prog_XFT_CONFIG=""yes""
  37. + break
  38. + fi
  39. + done
  40. + IFS="$ac_save_ifs"
  41. + test -z "$ac_cv_prog_XFT_CONFIG" && ac_cv_prog_XFT_CONFIG=""no""
  42. +fi
  43. +XFT_CONFIG="$ac_cv_prog_XFT_CONFIG"
  44. +if test -n "$XFT_CONFIG"; then
  45. + echo "$ac_t""$XFT_CONFIG" 1>&6
  46. +else
  47. + echo "$ac_t""no" 1>&6
  48. +fi
  49. +
  50. +
  51. + if test "$XFT_CONFIG" = "yes"; then
  52. + echo "$ac_t""found" 1>&6
  53. + libs_x="`xft-config --libs` $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`xft-config --libs`\" to \$libs_x"; fi
  54. + X_CFLAGS="`xft-config --cflags` $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`xft-config --cflags`\" to \$X_CFLAGS"; fi
  55. + else
  56. + echo "$ac_t""not found, checking for Xft 1.x" 1>&6
  57. +
  58. +echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
  59. +echo "configure:7433: checking for XRenderQueryExtension in -lXrender" >&5
  60. +ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
  61. +
  62. +xe_check_libs=" -lXrender "
  63. +cat > conftest.$ac_ext <<EOF
  64. +#line 7438 "configure"
  65. +#include "confdefs.h"
  66. +/* Override any gcc2 internal prototype to avoid an error. */
  67. +/* We use char because int might match the return type of a gcc2
  68. + builtin and then its argument prototype would still apply. */
  69. +char XRenderQueryExtension();
  70. +
  71. +int main() {
  72. +XRenderQueryExtension()
  73. +; return 0; }
  74. +EOF
  75. +if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  76. + rm -rf conftest*
  77. + eval "ac_cv_lib_$ac_lib_var=yes"
  78. +else
  79. + echo "configure: failed program was:" >&5
  80. + cat conftest.$ac_ext >&5
  81. + rm -rf conftest*
  82. + eval "ac_cv_lib_$ac_lib_var=no"
  83. +fi
  84. +rm -f conftest*
  85. +xe_check_libs=""
  86. +
  87. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
  88. + echo "$ac_t""yes" 1>&6
  89. + libs_x="-lXrender $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXrender\" to \$libs_x"; fi
  90. +else
  91. + echo "$ac_t""no" 1>&6
  92. +(echo "$progname: Usage error:"
  93. +echo " " "Unable to find libXrender for --with-xft"
  94. +echo " Use \`$progname --help' to show usage.") >&2 && exit 1
  95. +fi
  96. +
  97. +
  98. +
  99. +echo $ac_n "checking for XftFontOpen in -lXft""... $ac_c" 1>&6
  100. +echo "configure:7474: checking for XftFontOpen in -lXft" >&5
  101. +ac_lib_var=`echo Xft'_'XftFontOpen | sed 'y%./+-%__p_%'`
  102. +
  103. +xe_check_libs=" -lXft "
  104. +cat > conftest.$ac_ext <<EOF
  105. +#line 7479 "configure"
  106. +#include "confdefs.h"
  107. +/* Override any gcc2 internal prototype to avoid an error. */
  108. +/* We use char because int might match the return type of a gcc2
  109. + builtin and then its argument prototype would still apply. */
  110. +char XftFontOpen();
  111. +
  112. +int main() {
  113. +XftFontOpen()
  114. +; return 0; }
  115. +EOF
  116. +if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  117. + rm -rf conftest*
  118. + eval "ac_cv_lib_$ac_lib_var=yes"
  119. +else
  120. + echo "configure: failed program was:" >&5
  121. + cat conftest.$ac_ext >&5
  122. + rm -rf conftest*
  123. + eval "ac_cv_lib_$ac_lib_var=no"
  124. +fi
  125. +rm -f conftest*
  126. +xe_check_libs=""
  127. +
  128. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
  129. + echo "$ac_t""yes" 1>&6
  130. + libs_x="-lXft $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXft\" to \$libs_x"; fi
  131. +else
  132. + echo "$ac_t""no" 1>&6
  133. +(echo "$progname: Usage error:"
  134. +echo " " "Unable to find libXft for --with-xft"
  135. +echo " Use \`$progname --help' to show usage.") >&2 && exit 1
  136. +fi
  137. +
  138. +
  139. + fi
  140. + { test "$extra_verbose" = "yes" && cat << \EOF
  141. + Defining USE_XFT
  142. +EOF
  143. +cat >> confdefs.h <<\EOF
  144. +#define USE_XFT 1
  145. +EOF
  146. +}
  147. +
  148. + fi
  149. +
  150. fi
  151. if test "$with_msw" != "no"; then
  152. echo "checking for MS-Windows" 1>&6
  153. -echo "configure:7400: checking for MS-Windows" >&5
  154. +echo "configure:7527: checking for MS-Windows" >&5
  155. echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
  156. -echo "configure:7403: checking for main in -lgdi32" >&5
  157. +echo "configure:7530: checking for main in -lgdi32" >&5
  158. ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
  159. xe_check_libs=" -lgdi32 "
  160. cat > conftest.$ac_ext <<EOF
  161. -#line 7408 "configure"
  162. +#line 7535 "configure"
  163. #include "confdefs.h"
  164. int main() {
  165. main()
  166. ; return 0; }
  167. EOF
  168. -if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  169. +if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  170. rm -rf conftest*
  171. eval "ac_cv_lib_$ac_lib_var=yes"
  172. else
  173. @@ -16173,6 +16298,9 @@
  174. if test "$with_xauth" != yes; then
  175. echo " - Xau (X authority) not available."
  176. fi
  177. + if test "$with_xft" = "yes"; then
  178. + echo " Compiling in support for Xft antialiased fonts."
  179. + fi
  180. if test "$with_xmu" != yes; then
  181. echo " - Xmu library not available; substituting equivalent routines."
  182. fi
  183. @@ -16460,6 +16588,7 @@
  184. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  185. s%@X_LIBS@%$X_LIBS%g
  186. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  187. +s%@XFT_CONFIG@%$XFT_CONFIG%g
  188. s%@install_pp@%$install_pp%g
  189. s%@libs_xauth@%$libs_xauth%g
  190. s%@dnd_objs@%$dnd_objs%g