if "%1" == "--without-gif" goto withoutgif\r
if "%1" == "--without-tiff" goto withouttiff\r
if "%1" == "--without-xpm" goto withoutxpm\r
+if "%1" == "--with-font-backend" goto withfont\r
if "%1" == "" goto checkutils\r
:usage\r
echo Usage: configure [options]\r
echo. --without-gif do not use libungif even if it is installed\r
echo. --without-tiff do not use libtiff even if it is installed\r
echo. --without-xpm do not use libXpm even if it is installed\r
+echo. --with-font-backend use the experimental font backend\r
goto end\r
rem ----------------------------------------------------------------------\r
:setprefix\r
shift\r
goto again\r
\r
+:withfont\r
+set usercflags=%usercflags%%sep1%-DUSE_FONT_BACKEND\r
+set usefontbackend=Y\r
+shift\r
+goto again\r
+\r
rem ----------------------------------------------------------------------\r
rem Check that necessary utilities (cp and rm) are present.\r
:checkutils\r
if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings\r
if not "(%usercflags%)" == "()" echo USER_CFLAGS=%usercflags%>>config.settings\r
if not "(%userldflags%)" == "()" echo USER_LDFLAGS=%userldflags%>>config.settings\r
+if (%usefontbackend%) == (Y) echo USE_FONTBACKEND=1 >>config.settings\r
echo # End of settings from configure.bat>>config.settings\r
echo. >>config.settings\r
\r