diff options
| author | Glenn Morris | 2010-03-17 22:49:31 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-03-17 22:49:31 -0700 |
| commit | aded53ff76daa41822954fc42df797b1e0c5a5f4 (patch) | |
| tree | b87f8469b983d27d79478edfd478e4ec62993ab0 /lib-src | |
| parent | 1a355d092be234a0cb5b2cf0956a090aad7fa1a2 (diff) | |
| download | emacs-aded53ff76daa41822954fc42df797b1e0c5a5f4.tar.gz emacs-aded53ff76daa41822954fc42df797b1e0c5a5f4.zip | |
Replace some cpp with autoconf.
* configure.in (--with-mmdf, --with-mail-unlink):
New options, off by default.
(--with-mailhost): New option to set default POP host.
(LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF, LIBGPM, LIBS_MAIL)
(LIBHESIOD, LIBRESOLV, COM_ERRLIB, CRYPTOLIB, KRB5LIB, DESLIB, KRB4LIB):
New variables, substituted in Makefiles.
(try_libungif, ac_gif_lib_name): Replace with HAVE_GIF=maybe, LIBGIF.
(LIBGIF): Use AC_SUBST rather than AC_DEFINE.
(HAVE_LIBMAIL, HAVE_LIBLOCKFILE, HAVE_LIBCOM_ERR, HAVE_LIBCRYPTO)
(HAVE_LIBK5CRYPTO, HAVE_LIBKRB5, HAVE_LIBDES425, HAVE_LIBDES)
(HAVE_LIBKRB4, HAVE_LIBKRB): New AC_DEFINEs.
* lib-src/Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
(HESIODLIB, LIBS_MAIL): Set using autoconf rather than cpp.
(BASE_CFLAGS): Remove (identical to CPP_CFLAGS).
* src/Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
(LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 86 |
2 files changed, 20 insertions, 72 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a6b003d2150..998d3370c44 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-03-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB) | ||
| 4 | (HESIODLIB, LIBS_MAIL): Set using autoconf rather than cpp. | ||
| 5 | (BASE_CFLAGS): Remove (identical to CPP_CFLAGS). | ||
| 6 | |||
| 1 | 2010-03-18 Tetsurou Okazaki <okazaki@be.to> (tiny change) | 7 | 2010-03-18 Tetsurou Okazaki <okazaki@be.to> (tiny change) |
| 2 | 8 | ||
| 3 | * Makefile.in (uninstall): Handle the case where archlibdir does not | 9 | * Makefile.in (uninstall): Handle the case where archlibdir does not |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 8a147038a4c..fa928745996 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | # Makefile for lib-src subdirectory in GNU Emacs. | 1 | # Makefile for lib-src subdirectory in GNU Emacs. |
| 2 | # Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004, | 2 | # Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004, |
| 3 | # 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 3 | # 2005, 2006, 2007, 2008, 2009, 2010 |
| 4 | # Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | # This file is part of GNU Emacs. | 6 | # This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -122,20 +123,11 @@ SCRIPTS= rcs2log vcdiff | |||
| 122 | 123 | ||
| 123 | EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | 124 | EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
| 124 | 125 | ||
| 125 | # Additional -D flags for movemail (add to MOVE_FLAGS if desired): | 126 | # Specify additional -D flags for movemail. Options: |
| 126 | # MAIL_USE_POP Support mail retrieval from a POP mailbox. | 127 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). |
| 127 | # MAIL_USE_MMDF Support MMDF mailboxes. | 128 | # See the comments about locking in movemail.c. Normally the values |
| 128 | # MAIL_USE_FLOCK Use flock for file locking (see the comments | 129 | # in ../src/[ms]/*.h should be correct and you should not need to do anything. |
| 129 | # about locking in movemail.c) | 130 | # If neither flag is set, blessmail is used. |
| 130 | # MAIL_UNLINK_SPOOL Unlink the user's spool mailbox after reading | ||
| 131 | # it (instead of just emptying it). | ||
| 132 | # KERBEROS Support Kerberized POP. | ||
| 133 | # KRB5 Support Kerberos Version 5 pop instead of | ||
| 134 | # Version 4 (define this in addition to | ||
| 135 | # KERBEROS). | ||
| 136 | # HESIOD Support Hesiod lookups of user mailboxes. | ||
| 137 | # MAILHOST A string, the host name of the default POP | ||
| 138 | # mail host for the site. | ||
| 139 | MOVE_FLAGS= | 131 | MOVE_FLAGS= |
| 140 | 132 | ||
| 141 | # ========================== start of cpp stuff ======================= | 133 | # ========================== start of cpp stuff ======================= |
| @@ -176,72 +168,21 @@ MOVE_FLAGS= | |||
| 176 | #define BLESSMAIL | 168 | #define BLESSMAIL |
| 177 | #endif | 169 | #endif |
| 178 | 170 | ||
| 179 | #ifdef KERBEROS | 171 | LIBS_MOVE=@KRB4LIB@ @DESLIB@ @KRB5LIB@ @CRYPTOLIB@ @COM_ERRLIB@ @LIBHESIOD@ @LIBRESOLV@ |
| 180 | # ifdef HAVE_LIBKRB | ||
| 181 | KRB4LIB = -lkrb | ||
| 182 | # else | ||
| 183 | # ifdef HAVE_LIBKRB4 | ||
| 184 | KRB4LIB = -lkrb4 | ||
| 185 | # endif | ||
| 186 | # endif | ||
| 187 | # ifdef HAVE_LIBDES | ||
| 188 | DESLIB = -ldes | ||
| 189 | # else | ||
| 190 | # ifdef HAVE_LIBDES425 | ||
| 191 | DESLIB = -ldes425 | ||
| 192 | # endif | ||
| 193 | # endif | ||
| 194 | # ifdef HAVE_LIBKRB5 | ||
| 195 | KRB5LIB = -lkrb5 | ||
| 196 | # endif | ||
| 197 | # ifdef HAVE_LIBK5CRYPTO | ||
| 198 | CRYPTOLIB = -lk5crypto | ||
| 199 | # else | ||
| 200 | # ifdef HAVE_LIBCRYPTO | ||
| 201 | CRYPTOLIB = -lcrypto | ||
| 202 | # endif | ||
| 203 | # endif | ||
| 204 | # ifdef HAVE_LIBCOM_ERR | ||
| 205 | COM_ERRLIB = -lcom_err | ||
| 206 | # endif | ||
| 207 | #endif /* KERBEROS */ | ||
| 208 | |||
| 209 | /* If HESIOD is defined, set this to "-lhesiod". */ | ||
| 210 | #ifdef HAVE_LIBHESIOD | ||
| 211 | # ifdef HAVE_LIBRESOLV | ||
| 212 | HESIODLIB= -lhesiod -lresolv | ||
| 213 | # else | ||
| 214 | HESIODLIB= -lhesiod | ||
| 215 | # endif | ||
| 216 | #endif | ||
| 217 | |||
| 218 | LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB) | ||
| 219 | 172 | ||
| 220 | #ifdef HAVE_LIBLOCKFILE | 173 | LIBS_MAIL=@LIBS_MAIL@ |
| 221 | LIBS_MAIL=-llockfile | ||
| 222 | #else | ||
| 223 | #ifdef HAVE_LIBMAIL | ||
| 224 | LIBS_MAIL=-lmail | ||
| 225 | #endif | ||
| 226 | #endif | ||
| 227 | 174 | ||
| 228 | LOADLIBES=LIBS_SYSTEM LIBS_MACHINE | 175 | LOADLIBES=LIBS_SYSTEM LIBS_MACHINE |
| 229 | 176 | ||
| 230 | /* We need to #define emacs to get the right versions of some files. | 177 | /* Those files shared with other GNU utilities need HAVE_CONFIG_H |
| 231 | Some other files - those shared with other GNU utilities - need | 178 | defined before they know they can take advantage of the information |
| 232 | HAVE_CONFIG_H #defined before they know they can take advantage of | 179 | in ../src/config.h. */ |
| 233 | the information in ../src/config.h. */ | ||
| 234 | ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ | 180 | ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
| 235 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} | 181 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 236 | LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ | 182 | LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
| 237 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} | 183 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} |
| 238 | CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ | 184 | CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
| 239 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | 185 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} |
| 240 | /* This was all of CPP_CFLAGS except -Demacs. | ||
| 241 | Now that -Demacs has been deleted from CPP_CFLAGS, | ||
| 242 | this is actually the same as CPP_CFLAGS, but let\'s not delete it yet. */ | ||
| 243 | BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ | ||
| 244 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | ||
| 245 | 186 | ||
| 246 | .SUFFIXES: .m | 187 | .SUFFIXES: .m |
| 247 | 188 | ||
| @@ -394,7 +335,7 @@ REGEXPOBJ = regex.o | |||
| 394 | REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h | 335 | REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h |
| 395 | 336 | ||
| 396 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h | 337 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h |
| 397 | ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c | 338 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c |
| 398 | 339 | ||
| 399 | etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h | 340 | etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h |
| 400 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags | 341 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags |
| @@ -426,6 +367,7 @@ b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) | |||
| 426 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) | 367 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) |
| 427 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail | 368 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail |
| 428 | 369 | ||
| 370 | /* We need to define emacs to get the right version of something (what?). */ | ||
| 429 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) | 371 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) |
| 430 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c | 372 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c |
| 431 | 373 | ||