anchor.diff:  goto end_detect_java
   :detect_java_pf_detected
   for /F %%_ in ('dir "%PL~TARGET_PROGRAM_FILES%\Java\jdk*" /A:D /B') do (set "PL~JAVA_JDK_VERSION=%%_")
  -set PL~JAVA_HOME=%PL~TARGET_PROGRAM_FILES%\Java\%PL~JAVA_SDK_VERSION%
  +set "PL~JAVA_HOME=%PL~TARGET_PROGRAM_FILES%\Java\%PL~JAVA_SDK_VERSION%"
   goto detect_java_detected
   :detect_java_sd_detected
   for /F %%_ in ('dir "%SystemDrive%\Java\jdk*" /A:D /B') do (set "PL~JAVA_JDK_VERSION=%%_")
  -set PL~JAVA_HOME=%SystemDrive%\Java\%PL~JAVA_SDK_VERSION%
  +set "PL~JAVA_HOME=%SystemDrive%\Java\%PL~JAVA_SDK_VERSION%"
   goto detect_java_detected
   :detect_java_sdnjd_detected
   for /F %%_ in ('dir "%SystemDrive%\jdk*" /A:D /B') do (set "PL~JAVA_JDK_VERSION=%%_")
  -set PL~JAVA_HOME=%SystemDrive%\%PL~JAVA_SDK_VERSION%
  +set "PL~JAVA_HOME=%SystemDrive%\%PL~JAVA_SDK_VERSION%"
   goto detect_java_detected
   :detect_java_detected
   if not exist "%PL~HOME%\lib\junit.jar" (goto detect_junit_jar_not_detected)
  -set PL~JUNIT=%PL~HOME%\lib\junit.jar
  +set "PL~JUNIT=%PL~HOME%\lib\junit.jar"
   echo Java %PL~JAVA_JDK_VERSION% found, jpl included in build...
   set "PL~BUILD_JPL=jpl"
   goto end_detect_java
  
positive.code: del "%PL~HOME%\include\*.*" /Q /S > nul
  del "%PL~HOME%\lib\*.*" /Q /S > nul
  xcopy "%PL~HOME%\%PL~TARGET_OS_ARCH%\*.*" "%PL~HOME%\" /E /I /Q /R /Y
  :end_clean_and_copy_libs
  
  
  
negative.code: set "PL~GMP_LIB="
  goto end_detect_gmp
  :detect_gmp_detected
  echo GMP found...
  set "PL~GMP=true"
  set "PL~GMP_LIB=gmp.lib"
  :end_detect_gmp
  
  
  :detect_ssl
  if exist "%PL~TARGET_PROGRAM_FILES%\OpenSSL" (goto detect_ssl_pf_detected)
  if exist "%SystemDrive%\OpenSSL" (goto detect_ssl_sd_detected)
  cls
  echo Welcome to SWI-Prolog Windows Build Environment Configuration Utility
  echo Copyright (c) 1990-2009 University of Amsterdam.
  echo SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
  echo and you are welcome to redistribute it under certain conditions.
  echo Please visit http://www.swi-prolog.org for details.
  echo.
  echo OpenSSl must be installed in "Program Files". For building a 32-bit target on a
  echo 64-bit host OS, OpenSSL must be installed in "Program Files (x86)". During
  echo installation, you are asked where to install the executables. They should
  echo be installed in the OpenSSL directory. This is NOT the default!
  echo.
  echo OpenSSL not found, OpenSSL must be installed in %PL~TARGET_PROGRAM_FILES%\OpenSSL.
  echo.
  echo The OpenSSL for Windows packages can be downloaded at:
  echo http://www.slproweb.com/products/Win32OpenSSL.html. Choose the full (i.e. not
  echo light) distribution package.
  echo.
  echo The build will continue without OpenSSL, it's functionality will not be
  echo available. If OpenSSL is required, install OpenSSL following the above
  echo  instructions and run this script again.
  echo.
  set "PL~BUILD_SSL="
  pause
  goto end_detect_ssl
  :detect_ssl_pf_detected
  echo OpenSSL found...
  set "PL~BUILD_SSL=ssl"
  set "PL~OPENSSL=%PL~TARGET_PROGRAM_FILES%\OpenSSL"
  set "PL~OPENSSL_CONF=%PL~TARGET_PROGRAM_FILES%\OpenSSL\bin\openssl.cfg"
  goto detect_ssl_detected
  :detect_ssl_sd_detected
  echo OpenSSL found...
  set "PL~BUILD_SSL=ssl"
  set "PL~OPENSSL=%SystemDrive%\OpenSSL"
  set "PL~OPENSSL_CONF=%SystemDrive%\OpenSSL\bin\openssl.cfg"
  goto detect_ssl_detected
  :detect_ssl_detected
  if exist "%PL~OPENSSL%\lib\VC\libeay32.lib" (copy /Y "%PL~OPENSSL%\lib\VC\libeay32.lib" "%PL~EXTRALIBDIR%" > nul)
  if exist "%PL~OPENSSL%\lib\VC\ssleay32.lib" (copy /Y "%PL~OPENSSL%\lib\VC\ssleay32.lib" "%PL~EXTRALIBDIR%" > nul)
  :end_detect_ssl
  
  
  