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 /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 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/Makefile.in | 64 |
2 files changed, 7 insertions, 62 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e62f3cb8bc3..e353c9e1147 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-03-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF) | ||
| 4 | (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp. | ||
| 5 | |||
| 1 | 2010-03-15 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-03-15 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * xfns.c (Fx_create_frame): | 8 | * xfns.c (Fx_create_frame): |
diff --git a/src/Makefile.in b/src/Makefile.in index 06b4ef0e645..5ac83e71e95 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -369,76 +369,16 @@ LIBXT=$(LIBW) | |||
| 369 | #endif | 369 | #endif |
| 370 | #endif /* not USE_X_TOOLKIT */ | 370 | #endif /* not USE_X_TOOLKIT */ |
| 371 | 371 | ||
| 372 | #if HAVE_XFT | ||
| 373 | XFT_LIBS=@XFT_LIBS@ | ||
| 374 | #endif /* HAVE_XFT */ | ||
| 375 | |||
| 376 | #if HAVE_XPM | ||
| 377 | #ifndef LIBXPM | ||
| 378 | #define LIBXPM -lXpm | ||
| 379 | #endif /* not defined LIBXPM */ | ||
| 380 | #else /* not HAVE_XPM */ | ||
| 381 | #define LIBXPM | ||
| 382 | #endif /* not HAVE_XPM */ | ||
| 383 | |||
| 384 | #if HAVE_JPEG | ||
| 385 | #ifndef LIBJPEG | ||
| 386 | #define LIBJPEG -ljpeg | ||
| 387 | #endif /* not defined LIBJPEG */ | ||
| 388 | #else /* not HAVE_JPEG */ | ||
| 389 | #define LIBJPEG | ||
| 390 | #endif /* not HAVE_JPEG */ | ||
| 391 | |||
| 392 | #if HAVE_PNG | ||
| 393 | #ifndef LIBPNG | ||
| 394 | #define LIBPNG -lpng -lz -lm | ||
| 395 | #endif /* not defined LIBPNG */ | ||
| 396 | #else /* not HAVE_PNG */ | ||
| 397 | #define LIBPNG | ||
| 398 | #endif /* not HAVE_PNG */ | ||
| 399 | |||
| 400 | #if HAVE_TIFF | ||
| 401 | #ifndef LIBTIFF | ||
| 402 | #define LIBTIFF -ltiff | ||
| 403 | #endif /* not defined LIBTIFF */ | ||
| 404 | #else /* not HAVE_TIFF */ | ||
| 405 | #define LIBTIFF | ||
| 406 | #endif /* not HAVE_TIFF */ | ||
| 407 | |||
| 408 | #if HAVE_GIF | ||
| 409 | #ifndef LIBGIF | ||
| 410 | #define LIBGIF -lgif | ||
| 411 | #endif /* not defined LIBGIF */ | ||
| 412 | #else /* not HAVE_GIF */ | ||
| 413 | #define LIBGIF | ||
| 414 | #endif /* not HAVE_GIF */ | ||
| 415 | |||
| 416 | #ifdef HAVE_X11 | 372 | #ifdef HAVE_X11 |
| 417 | /* LD_SWITCH_X_DEFAULT comes after everything else that specifies | 373 | /* LD_SWITCH_X_DEFAULT comes after everything else that specifies |
| 418 | options for where to find X libraries, but before those libraries. */ | 374 | options for where to find X libraries, but before those libraries. */ |
| 419 | X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT | 375 | X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT |
| 420 | LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_SYSTEM $(XFT_LIBS) | 376 | LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) @LIBTIFF@ @LIBJPEG@ @LIBPNG@ @LIBGIF@ @LIBXPM@ LIB_X11_LIB LIBX11_SYSTEM @XFT_LIBS@ |
| 421 | #else /* not HAVE_X11 */ | 377 | #else /* not HAVE_X11 */ |
| 422 | LIBX= $(LIBXMENU) LD_SWITCH_X_SITE | 378 | LIBX= $(LIBXMENU) LD_SWITCH_X_SITE |
| 423 | #endif /* not HAVE_X11 */ | 379 | #endif /* not HAVE_X11 */ |
| 424 | #endif /* not HAVE_X_WINDOWS */ | 380 | #endif /* not HAVE_X_WINDOWS */ |
| 425 | 381 | ||
| 426 | #if HAVE_GPM | ||
| 427 | #ifndef LIBGPM | ||
| 428 | #define LIBGPM -lgpm | ||
| 429 | #endif /* not defined LIBGPM */ | ||
| 430 | #else /* not HAVE_GPM */ | ||
| 431 | #define LIBGPM | ||
| 432 | #endif /* not HAVE_GPM */ | ||
| 433 | |||
| 434 | #if HAVE_LIBRESOLV | ||
| 435 | #ifndef LIBRESOLV | ||
| 436 | #define LIBRESOLV -lresolv | ||
| 437 | #endif /* not defined LIBRESOLV */ | ||
| 438 | #else /* not HAVE_LIBRESOLV */ | ||
| 439 | #define LIBRESOLV | ||
| 440 | #endif /* not HAVE_LIBRESOLV */ | ||
| 441 | |||
| 442 | LIBSOUND= @LIBSOUND@ | 382 | LIBSOUND= @LIBSOUND@ |
| 443 | CFLAGS_SOUND= @CFLAGS_SOUND@ | 383 | CFLAGS_SOUND= @CFLAGS_SOUND@ |
| 444 | 384 | ||
| @@ -908,7 +848,7 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \ | |||
| 908 | with GCC, we might need gnulib again after them. */ | 848 | with GCC, we might need gnulib again after them. */ |
| 909 | 849 | ||
| 910 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \ | 850 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \ |
| 911 | LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ | 851 | @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ |
| 912 | LIBS_DEBUG $(GETLOADAVG_LIBS) ${GCONF_LIBS} \ | 852 | LIBS_DEBUG $(GETLOADAVG_LIBS) ${GCONF_LIBS} \ |
| 913 | @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ | 853 | @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ |
| 914 | $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR) | 854 | $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR) |