aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2012-06-25 18:05:39 -0700
committerPaul Eggert2012-06-25 18:05:39 -0700
commitcf38a720e81b545f90dc7be81891d94df6ed059a (patch)
tree421932c3315e5ded7dab371d26820ed3172bfd23 /lib-src
parent414e642ca92b569cd74d26a2879e0e8fe9f8d6be (diff)
downloademacs-cf38a720e81b545f90dc7be81891d94df6ed059a.tar.gz
emacs-cf38a720e81b545f90dc7be81891d94df6ed059a.zip
Clean out last vestiges of the old HAVE_CONFIG_H stuff.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog10
-rw-r--r--lib-src/Makefile.in5
-rw-r--r--lib-src/etags.c16
-rw-r--r--lib-src/hexl.c2
-rw-r--r--lib-src/makefile.w32-in2
-rw-r--r--lib-src/pop.c6
6 files changed, 14 insertions, 27 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index a04fe215f99..3b4465df607 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,13 @@
12012-06-26 Paul Eggert <eggert@cs.ucla.edu>
2
3 Clean out last vestiges of the old HAVE_CONFIG_H stuff.
4 * Makefile.in (BASE_CFLAGS):
5 * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
6 * etags.c, hexl.c, pop.c: Include <config.h> unconditionally.
7 * etags.c (DOS_NT):
8 * pop.c (MAIL_USE_POP, h_errno):
9 Remove code that was conditioned on !HAVE_CONFIG_H.
10
12012-06-25 Dmitry Antipov <dmantipov@yandex.ru> 112012-06-25 Dmitry Antipov <dmantipov@yandex.ru>
2 12
3 * etags.c (etags_strcasecmp, etags_strncasecmp): Define to 13 * etags.c (etags_strcasecmp, etags_strncasecmp): Define to
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index a325fc18aac..fe727c65730 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -169,12 +169,9 @@ LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \
169## Some systems define this to request special libraries. 169## Some systems define this to request special libraries.
170LIBS_SYSTEM = @LIBS_SYSTEM@ 170LIBS_SYSTEM = @LIBS_SYSTEM@
171 171
172# Those files shared with other GNU utilities need HAVE_CONFIG_H
173# defined before they know they can take advantage of the information
174# in ../src/config.h.
175BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ 172BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
176 $(WARN_CFLAGS) $(WERROR_CFLAGS) \ 173 $(WARN_CFLAGS) $(WERROR_CFLAGS) \
177 -DHAVE_CONFIG_H -I. -I../src -I../lib \ 174 -I. -I../src -I../lib \
178 -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib 175 -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib
179 176
180ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} 177ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
diff --git a/lib-src/etags.c b/lib-src/etags.c
index f44c1c05393..2e05e37e80f 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -91,9 +91,7 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
91# define NDEBUG /* disable assert */ 91# define NDEBUG /* disable assert */
92#endif 92#endif
93 93
94#ifdef HAVE_CONFIG_H 94#include <config.h>
95# include <config.h>
96#endif /* !HAVE_CONFIG_H */
97 95
98#ifndef _GNU_SOURCE 96#ifndef _GNU_SOURCE
99# define _GNU_SOURCE 1 /* enables some compiler checks on GNU */ 97# define _GNU_SOURCE 1 /* enables some compiler checks on GNU */
@@ -113,10 +111,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
113# include <fcntl.h> 111# include <fcntl.h>
114# include <sys/param.h> 112# include <sys/param.h>
115# include <io.h> 113# include <io.h>
116# ifndef HAVE_CONFIG_H
117# define DOS_NT
118# include <sys/config.h>
119# endif
120#else 114#else
121# define MSDOS FALSE 115# define MSDOS FALSE
122#endif /* MSDOS */ 116#endif /* MSDOS */
@@ -167,14 +161,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
167# include <getopt.h> 161# include <getopt.h>
168#endif /* NO_LONG_OPTIONS */ 162#endif /* NO_LONG_OPTIONS */
169 163
170#ifndef HAVE_CONFIG_H /* this is a standalone compilation */
171# ifdef __CYGWIN__ /* compiling on Cygwin */
172 !!! NOTICE !!!
173 the regex.h distributed with Cygwin is not compatible with etags, alas!
174If you want regular expression support, you should delete this notice and
175 arrange to use the GNU regex.h and regex.c.
176# endif
177#endif
178#include <regex.h> 164#include <regex.h>
179 165
180/* Define CTAGS to make the program "ctags" compatible with the usual one. 166/* Define CTAGS to make the program "ctags" compatible with the usual one.
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index d418eca78c2..08da0075269 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -20,9 +20,7 @@ You should have received a copy of the GNU General Public License
20along with this program. If not, see <http://www.gnu.org/licenses/>. */ 20along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 21
22 22
23#ifdef HAVE_CONFIG_H
24#include <config.h> 23#include <config.h>
25#endif
26 24
27#include <stdio.h> 25#include <stdio.h>
28#include <ctype.h> 26#include <ctype.h>
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index fea1d29592e..f1f42bccb68 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -24,7 +24,7 @@ ALL = $(BLD)/test-distrib.exe $(BLD)/make-docfile.exe $(BLD)/hexl.exe\
24.PHONY: make-docfile 24.PHONY: make-docfile
25 25
26LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \ 26LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \
27 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../lib \ 27 -DNO_ARCHIVES=1 -I../lib \
28 -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS) 28 -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS)
29 29
30LIBS = $(BASE_LIBS) $(ADVAPI32) 30LIBS = $(BASE_LIBS) $(ADVAPI32)
diff --git a/lib-src/pop.c b/lib-src/pop.c
index c4c7f2b4e2f..b8ed65c3eac 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -21,11 +21,7 @@ You should have received a copy of the GNU General Public License
21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 22
23 23
24#ifdef HAVE_CONFIG_H
25#include <config.h> 24#include <config.h>
26#else
27#define MAIL_USE_POP
28#endif
29 25
30#ifdef MAIL_USE_POP 26#ifdef MAIL_USE_POP
31 27
@@ -101,7 +97,7 @@ extern char *krb_realmofhost (/* char * */);
101#endif /* KERBEROS */ 97#endif /* KERBEROS */
102 98
103#ifndef WINDOWSNT 99#ifndef WINDOWSNT
104#if !defined (HAVE_H_ERRNO) || !defined (HAVE_CONFIG_H) 100#ifndef HAVE_H_ERRNO
105extern int h_errno; 101extern int h_errno;
106#endif 102#endif
107#endif 103#endif