Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
12ff2dc5
Commit
12ff2dc5
authored
Jan 31, 2003
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically detect giflib.
parent
1ffb278b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
nt/configure.bat
nt/configure.bat
+35
-4
No files found.
nt/configure.bat
View file @
12ff2dc5
@echo
off
rem ----------------------------------------------------------------------
rem Configuration script for MS Windows 95/98 and NT/2000
rem Copyright (C) 1999-200
1
Free Software Foundation, Inc.
rem Configuration script for MS Windows 95/98
/Me
and NT/2000
/XP
rem Copyright (C) 1999-200
3
Free Software Foundation, Inc.
rem This file is part of GNU Emacs.
...
...
@@ -22,7 +22,7 @@ rem Boston, MA 02111-1307, USA.
rem ----------------------------------------------------------------------
rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS:
rem
rem + MS Windows 95/98 or NT/2000
rem + MS Windows 95/98
/Me
or NT/2000
/XP
rem + either MSVC 2.x or later, or gcc-2.95 or later (with gmake 3.75
rem or later) and the Mingw32 and W32 API headers and libraries
rem
...
...
@@ -87,6 +87,7 @@ if "%1" == "--cflags" goto usercflags
if
"
%
1"
==
"--ldflags"
goto
userldflags
if
"
%
1"
==
"--without-png"
goto
withoutpng
if
"
%
1"
==
"--without-jpeg"
goto
withoutjpeg
if
"
%
1"
==
"--without-gif"
goto
withoutgif
if
"
%
1"
==
""
goto
checkutils
:usage
echo
Usage
:
configure
[
options
]
...
...
@@ -101,6 +102,7 @@ echo. --cflags FLAG pass FLAG to compiler
echo
.
--ldflags
FLAG
pass
FLAG
to
compiler
when
linking
echo
.
--without-png
do
not
use
libpng
even
if
it
is
installed
echo
.
--without-jpeg
do
not
use
jpeglib
even
if
it
is
installed
echo
.
--without-gif
do
not
use
giflib
even
if
it
is
installed
goto
end
rem ----------------------------------------------------------------------
:setprefix
...
...
@@ -163,6 +165,14 @@ set HAVE_JPEG=
shift
goto
again
rem ----------------------------------------------------------------------
:withoutgif
set
gifsupport
=
N
set
HAVE_GIF
=
shift
goto
again
rem ----------------------------------------------------------------------
rem Check that necessary utilities (cp and rm) are present.
:checkutils
...
...
@@ -286,7 +296,7 @@ rm -f junk.c junk.obj
if
(
%jpegsupport%
)
==
(
N
)
goto
jpegDone
echo
Checking
for
jpeg
...
echo
Checking
for
jpeg
...
echo
#include
"jconfig.h"
>
junk
.c
echo
main
(){}
>>
junk
.c
rem -o option is ignored with cl, but allows result to be consistent.
...
...
@@ -304,6 +314,26 @@ set HAVE_JPEG=1
:jpegDone
rm
-f
junk
.c
junk
.obj
if
(
%gifsupport%
)
==
(
N
)
goto
gifDone
echo
Checking
for
gif
...
echo
#include
"gif_lib.h"
>
junk
.c
echo
main
(){}
>>
junk
.c
rem -o option is ignored with cl, but allows result to be consistent.
%COMPILER%
%usercflags%
-c
junk
.c
-o
junk
.obj
if
exist
junk
.obj
goto
haveGif
echo
...building
without
GIF
support
.
set
HAVE_GIF
=
goto
:gifDone
:haveGif
echo
...GIF
header
available
,
building
with
GIF
support
.
set
HAVE_GIF
=
1
:gifDone
rm
-f
junk
.c
junk
.obj
rem ----------------------------------------------------------------------
:genmakefiles
echo
Generating
makefiles
...
...
@@ -332,6 +362,7 @@ if not "(%usercflags%)" == "()" echo #define USER_CFLAGS " %usercflags%">>..\src
if
not
"(
%userldflags%
)"
==
"()"
echo
#define
USER_LDFLAGS
"
%userldflags%
"
>>
..\src\config.h
if
not
"(
%HAVE_PNG%
)"
==
"()"
echo
#define
HAVE_PNG
1
>>
..\src\config.h
if
not
"(
%HAVE_JPEG%
)"
==
"()"
echo
#define
HAVE_JPEG
1
>>
..\src\config.h
if
not
"(
%HAVE_GIF%
)"
==
"()"
echo
#define
HAVE_GIF
1
>>
..\src\config.h
echo
/
*
End
of
settings
from
configure
.bat.
*
/
>>
..\src\config.h
copy
paths
.h ..\src\epaths.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment