Commits

camlspotter committed c991964

configure

Comments (0)

Files changed (2)

 
 ##################################################### Auto configuration
 
+print_configured() =
+  println(--- Configuring)
+  println(wordsize  $(WORD_SIZE))
+  println(--- C libraries)
+  println(libgif:   $(HAVE_GIF))
+  println(libpng:	  $(HAVE_PNG))
+  println(libjpeg:  $(HAVE_JPEG))
+  println(libtiff:  $(HAVE_TIFF))
+  println(libxpm:	  $(HAVE_XPM))
+  println(libz:	  $(HAVE_Z))
+  println(--- Subpackages)
+  println(gif:      $(SUPPORT_GIF) \($(string $(LDFLAGS_gif)\)))
+  println(png:	  $(SUPPORT_PNG) \($(string $(LDFLAGS_png)\)))
+  println(jpeg:	  $(SUPPORT_JPEG) \($(string $(LDFLAGS_jpeg)\)))
+  println(tiff:	  $(SUPPORT_TIFF) \($(string $(LDFLAGS_tiff)\)))
+  println(xpm:	  $(SUPPORT_XPM) \($(string $(LDFLAGS_xpm)\)))
+  println(freetype: $(SUPPORT_FREETYPE) \($(PATH_FREETYPE_CONFIG)\) \($(string $(LDFLAGS_freetype))\))
+  println(ps:       $(SUPPORT_PS) \($(PATH_GS)\))
+  println(rgb.txt:  $(SUPPORT_RGB_TXT) \($(string $(PATH_RGB_TXT))\))
+  println(lablgtk2: $(SUPPORT_LABLGTK2))
+  println(graphics: $(SUPPORT_GRAPHICS))
+  println(--- Summary)
+  println(supported subpackages:  $(string $(SUPPORTED_SUBPACKAGES)))
+  println(supported formats:  $(string $(SUPPORTED_FORMATS)))
+  println(supported non-formats:  $(string $(SUPPORTED_NON_FORMATS)))
+  println(CFLAGS:   $(string $(CFLAGS)))
+  println(LDFLAGS:  $(string $(LDFLAGS)))
+  println(---)
+
 .STATIC:
   # Variables must be initialized inside .STATIC, if they should be
   # exported out.
   SUPPORT_RGB_TXT = $(Check_file_in_path $(PATH_RGB_TXT), rgb.txt)
   PATH_RGB_TXT = $(WHERE)
 
-  export
-
-println(--- Configuring)
-println(Remove .omakedb if you think results are not up-to-date.)
-println(---)
-println(wordsize  $(WORD_SIZE))
-println(--- C libraries)
-println(libgif:   $(HAVE_GIF))
-println(libpng:	  $(HAVE_PNG))
-println(libjpeg:  $(HAVE_JPEG))
-println(libtiff:  $(HAVE_TIFF))
-println(libxpm:	  $(HAVE_XPM))
-println(libz:	  $(HAVE_Z))
-println(--- Subpackages)
-println(gif:      $(SUPPORT_GIF) \($(string $(LDFLAGS_gif)\)))
-println(png:	  $(SUPPORT_PNG) \($(string $(LDFLAGS_png)\)))
-println(jpeg:	  $(SUPPORT_JPEG) \($(string $(LDFLAGS_jpeg)\)))
-println(tiff:	  $(SUPPORT_TIFF) \($(string $(LDFLAGS_tiff)\)))
-println(xpm:	  $(SUPPORT_XPM) \($(string $(LDFLAGS_xpm)\)))
-println(freetype: $(SUPPORT_FREETYPE) \($(PATH_FREETYPE_CONFIG)\) \($(string $(LDFLAGS_freetype))\))
-println(ps:       $(SUPPORT_PS) \($(PATH_GS)\))
-println(rgb.txt:  $(SUPPORT_RGB_TXT) \($(PATH_RGB_TXT)\))
-println(lablgtk2: $(SUPPORT_LABLGTK2))
-println(graphics: $(SUPPORT_GRAPHICS))
-println(--- Summary)
-println(supported subpackages:  $(string $(SUPPORTED_SUBPACKAGES)))
-println(supported formats:  $(string $(SUPPORTED_FORMATS)))
-println(supported non-formats:  $(string $(SUPPORTED_NON_FORMATS)))
-println(CFLAGS:   $(string $(CFLAGS)))
-println(LDFLAGS:  $(string $(LDFLAGS)))
-println(---)
+  print_configured()
 
 # for config.h
 CGeneratedFiles(config.h)
 USE_OCAMLFIND = true
 
 if $(not $(OCAMLFIND_EXISTS))
-   eprintln(This project requires ocamlfind, but is was not found.)
+   eprintln(This project requires ocamlfind\, but is was not found.)
    eprintln(You need to install ocamlfind and run "omake --configure".)
    exit 1