@@ -248,6 +248,9 @@ DEFAULT_FONT_PATH="${FONTDIR}/misc/,${FONTDIR}/100dpi/,${FONTDIR}/75dpi/"
248248AC_ARG_WITH ( default-font-path , AS_HELP_STRING ( [ --with-default-font-path=PATH] , [ Comma separated list of font dirs] ) ,
249249 [ FONTPATH="$withval" ] ,
250250 [ FONTPATH="${DEFAULT_FONT_PATH}" ] )
251+ AC_ARG_ENABLE ( libXfont2 , AS_HELP_STRING ( [ --enable-libXfont2] ,
252+ [ Build with libXfont2 (default: disabled)] ) ,
253+ [ XFONT2=$enableval] , [ XFONT2=no] )
251254
252255dnl Extensions.
253256AC_ARG_ENABLE ( xres , AS_HELP_STRING ( [ --disable-xres] , [ Build XRes extension (default: enabled)] ) , [ RES=$enableval] , [ RES=yes] )
@@ -319,9 +322,18 @@ XEXT_INC='-I$(top_srcdir)/Xext'
319322XEXT_LIB='$(top_builddir)/Xext/libXext.la'
320323XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
321324
325+ AM_CONDITIONAL(DEBUG, test "x$DEBUGGING" = xyes)
326+
327+ if test "x$XFONT2" = xyes; then
328+ AC_DEFINE ( XFONT2 , 1 , [ Build with libXfont2] )
329+ XFONT_LIB="xfont2"
330+ else
331+ XFONT_LIB="xfont"
332+ fi
333+
322334dnl Core modules for most extensions, et al.
323335REQUIRED_MODULES="[ randrproto >= 1.2] renderproto [ fixesproto >= 4.0] [ damageproto >= 1.1] xcmiscproto xextproto xproto xtrans xf86bigfontproto [ scrnsaverproto >= 1.1] bigreqsproto resourceproto fontsproto inputproto [ kbproto >= 1.0.3] "
324- REQUIRED_LIBS="xfont fontenc"
336+ REQUIRED_LIBS="$XFONT_LIB fontenc"
325337
326338AM_CONDITIONAL(SCREENSAVER, [ test "x$SCREENSAVER" = xyes] )
327339if test "x$SCREENSAVER" = xyes; then
0 commit comments