diff options
| author | Jason Rumney | 2007-06-20 22:10:31 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-06-20 22:10:31 +0000 |
| commit | 32154d10f62a314fd2e1099b8ced0e2f7c1e0c08 (patch) | |
| tree | 9dca52cc628a43f053d91376494b61fed7283361 | |
| parent | fab8b787ff048bddd6c0c91b23d40e34482c76b1 (diff) | |
| download | emacs-32154d10f62a314fd2e1099b8ced0e2f7c1e0c08.tar.gz emacs-32154d10f62a314fd2e1099b8ced0e2f7c1e0c08.zip | |
Complain if image libraries are missing.
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rwxr-xr-x | nt/configure.bat | 55 |
2 files changed, 54 insertions, 5 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index c1f5293059b..92334d83cee 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-06-20 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * configure.bat: Complain if image libraries are missing. | ||
| 4 | |||
| 1 | 2007-06-15 Jason Rumney <jasonr@gnu.org> | 5 | 2007-06-15 Jason Rumney <jasonr@gnu.org> |
| 2 | 6 | ||
| 3 | * emacs.manifest: New file. | 7 | * emacs.manifest: New file. |
diff --git a/nt/configure.bat b/nt/configure.bat index 2ff90186445..9c97f179a90 100755 --- a/nt/configure.bat +++ b/nt/configure.bat | |||
| @@ -118,11 +118,11 @@ echo. --no-opt disable optimization | |||
| 118 | echo. --no-cygwin use -mno-cygwin option with GCC | 118 | echo. --no-cygwin use -mno-cygwin option with GCC |
| 119 | echo. --cflags FLAG pass FLAG to compiler | 119 | echo. --cflags FLAG pass FLAG to compiler |
| 120 | echo. --ldflags FLAG pass FLAG to compiler when linking | 120 | echo. --ldflags FLAG pass FLAG to compiler when linking |
| 121 | echo. --without-png do not use libpng even if it is installed | 121 | echo. --without-png do not use libpng |
| 122 | echo. --without-jpeg do not use jpeg-6b even if it is installed | 122 | echo. --without-jpeg do not use jpeg-6b |
| 123 | echo. --without-gif do not use libungif even if it is installed | 123 | echo. --without-gif do not use giflib or libungif |
| 124 | echo. --without-tiff do not use libtiff even if it is installed | 124 | echo. --without-tiff do not use libtiff |
| 125 | echo. --without-xpm do not use libXpm even if it is installed | 125 | echo. --without-xpm do not use libXpm |
| 126 | goto end | 126 | goto end |
| 127 | rem ---------------------------------------------------------------------- | 127 | rem ---------------------------------------------------------------------- |
| 128 | :setprefix | 128 | :setprefix |
| @@ -533,6 +533,51 @@ copy subdirs.el ..\site-lisp\subdirs.el | |||
| 533 | 533 | ||
| 534 | :dontUpdateSubdirs | 534 | :dontUpdateSubdirs |
| 535 | echo. | 535 | echo. |
| 536 | |||
| 537 | rem check that we have all the libraries we need. | ||
| 538 | set libsOK=1 | ||
| 539 | |||
| 540 | if not "(%HAVE_XPM%)" == "()" goto checkpng | ||
| 541 | if (%xpmsupport%) == (N) goto checkpng | ||
| 542 | set libsOK=0 | ||
| 543 | echo XPM support is missing. It is required for color icons in the toolbar. | ||
| 544 | echo Install libXpm development files or use --without-xpm | ||
| 545 | |||
| 546 | :checkpng | ||
| 547 | if not "(%HAVE_PNG%)" == "()" goto checkjpeg | ||
| 548 | if (%pngsupport%) == (N) goto checkjpeg | ||
| 549 | set libsOK=0 | ||
| 550 | echo PNG support is missing. | ||
| 551 | echo Install libpng development files or use --without-png | ||
| 552 | |||
| 553 | :checkjpeg | ||
| 554 | if not "(%HAVE_JPEG%)" == "()" goto checktiff | ||
| 555 | if (%jpegsupport%) == (N) goto checktiff | ||
| 556 | set libsOK=0 | ||
| 557 | echo JPEG support is missing. | ||
| 558 | echo Install jpeg development files or use --without-jpeg | ||
| 559 | |||
| 560 | :checktiff | ||
| 561 | if not "(%HAVE_TIFF%)" == "()" goto checkgif | ||
| 562 | if (%tiffsupport%) == (N) goto checkgif | ||
| 563 | set libsOK=0 | ||
| 564 | echo TIFF support is missing. | ||
| 565 | echo Install libtiff development files or use --without-tiff | ||
| 566 | |||
| 567 | :checkgif | ||
| 568 | if not "(%HAVE_GIF%)" == "()" goto donelibchecks | ||
| 569 | if (%gifsupport%) == (N) goto donelibchecks | ||
| 570 | set libsOK=0 | ||
| 571 | echo GIF support is missing. | ||
| 572 | echo Install giflib or libungif development files or use --without-gif | ||
| 573 | |||
| 574 | :donelibchecks | ||
| 575 | if (%libsOK%) == (1) goto success | ||
| 576 | echo. | ||
| 577 | echo Important libraries are missing. Fix these issues before running make. | ||
| 578 | goto end | ||
| 579 | |||
| 580 | :success | ||
| 536 | echo Emacs successfully configured. | 581 | echo Emacs successfully configured. |
| 537 | echo Emacs successfully configured. >>config.log | 582 | echo Emacs successfully configured. >>config.log |
| 538 | echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install. | 583 | echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install. |