diff options
| author | Glenn Morris | 2010-05-09 19:16:09 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-09 19:16:09 -0700 |
| commit | 97efb62959d9ce3ad359243711ae2a7f55a38881 (patch) | |
| tree | 5f1bb2f037c080ff384c96808556075bc53e5050 /src | |
| parent | 7492acc936319de0fe4008faa17541c5b54d721d (diff) | |
| download | emacs-97efb62959d9ce3ad359243711ae2a7f55a38881.tar.gz emacs-97efb62959d9ce3ad359243711ae2a7f55a38881.zip | |
Move LIBS_SYSTEM from cpp to configure.
* configure.in (LIBS_SYSTEM): New output variable, replacing cpp.
* lib-src/Makefile.in (LIBS_SYSTEM) [!MSDOS]: Set with configure, not cpp.
(LIBS_SYSTEM) [MSDOS]: Use MSDOS_LIBS_SYSTEM.
(NOT_C_CODE): Remove, no longer used.
(config.h) [!MSDOS]: No longer include.
(LOADLIBES): Use LIBS_SYSTEM as a variable.
* src/Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
(LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
(LIBES): Use LIBS_SYSTEM as a variable.
* src/s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
* src/s/aix4-2.h (LIBS_SYSTEM):
* src/s/freebsd.h (LIBS_SYSTEM):
* src/s/hpux10-20.h (LIBS_SYSTEM):
* src/s/sol2-6.h (LIBS_SYSTEM):
* src/s/unixware.h (LIBS_SYSTEM):
Move to configure.
* msdos/sed1v2.inp, msdos/sed3v2.inp (LIBS_SYSTEM): Edit to empty.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/Makefile.in | 14 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 9 | ||||
| -rw-r--r-- | src/s/freebsd.h | 2 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 8 | ||||
| -rw-r--r-- | src/s/msdos.h | 7 | ||||
| -rw-r--r-- | src/s/sol2-6.h | 2 | ||||
| -rw-r--r-- | src/s/unixware.h | 7 |
8 files changed, 26 insertions, 34 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c0a264d46c9..c0e37f70c9c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2010-05-10 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-10 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp. | ||
| 4 | (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM. | ||
| 5 | (LIBES): Use LIBS_SYSTEM as a variable. | ||
| 6 | * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define. | ||
| 7 | * s/aix4-2.h (LIBS_SYSTEM): | ||
| 8 | * s/freebsd.h (LIBS_SYSTEM): | ||
| 9 | * s/hpux10-20.h (LIBS_SYSTEM): | ||
| 10 | * s/sol2-6.h (LIBS_SYSTEM): | ||
| 11 | * s/unixware.h (LIBS_SYSTEM): | ||
| 12 | Move to configure. | ||
| 13 | |||
| 3 | * s/aix4-2.h (MAIL_USE_LOCKF): | 14 | * s/aix4-2.h (MAIL_USE_LOCKF): |
| 4 | * s/bsd-common.h (MAIL_USE_FLOCK): | 15 | * s/bsd-common.h (MAIL_USE_FLOCK): |
| 5 | * s/darwin.h (MAIL_USE_FLOCK): | 16 | * s/darwin.h (MAIL_USE_FLOCK): |
diff --git a/src/Makefile.in b/src/Makefile.in index f956d03e337..69e37fb236a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -88,6 +88,9 @@ LD_SWITCH_SYSTEM_EXTRA=@LD_SWITCH_SYSTEM_EXTRA@ | |||
| 88 | ## Flags to pass to ld only for temacs. | 88 | ## Flags to pass to ld only for temacs. |
| 89 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_EXTRA) $(LD_SWITCH_SYSTEM_TEMACS) | 89 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_EXTRA) $(LD_SWITCH_SYSTEM_TEMACS) |
| 90 | 90 | ||
| 91 | ## Some systems define this to request special libraries. | ||
| 92 | LIBS_SYSTEM=@LIBS_SYSTEM@ | ||
| 93 | |||
| 91 | LIBTIFF=@LIBTIFF@ | 94 | LIBTIFF=@LIBTIFF@ |
| 92 | LIBJPEG=@LIBJPEG@ | 95 | LIBJPEG=@LIBJPEG@ |
| 93 | LIBPNG=@LIBPNG@ | 96 | LIBPNG=@LIBPNG@ |
| @@ -195,11 +198,6 @@ DEPFLAGS = -MMD -MF deps/$*.d | |||
| 195 | do not let it interfere with this file. */ | 198 | do not let it interfere with this file. */ |
| 196 | #undef register | 199 | #undef register |
| 197 | 200 | ||
| 198 | /* Some s/SYSTEM.h files define this to request special libraries. */ | ||
| 199 | #ifndef LIBS_SYSTEM | ||
| 200 | #define LIBS_SYSTEM | ||
| 201 | #endif | ||
| 202 | |||
| 203 | /* This macro is for switches specifically related to X Windows. */ | 201 | /* This macro is for switches specifically related to X Windows. */ |
| 204 | #ifndef LD_SWITCH_X_SITE | 202 | #ifndef LD_SWITCH_X_SITE |
| 205 | #define LD_SWITCH_X_SITE | 203 | #define LD_SWITCH_X_SITE |
| @@ -324,9 +322,9 @@ LD=ld | |||
| 324 | #endif | 322 | #endif |
| 325 | 323 | ||
| 326 | #ifdef MSDOS | 324 | #ifdef MSDOS |
| 325 | LIBS_SYSTEM = MSDOS_LIBS_SYSTEM | ||
| 327 | #ifdef HAVE_X_WINDOWS | 326 | #ifdef HAVE_X_WINDOWS |
| 328 | MSDOS_OBJ = dosfns.o msdos.o | 327 | MSDOS_OBJ = dosfns.o msdos.o |
| 329 | #define LIBS_SYSTEM -lxext -lsys | ||
| 330 | #else | 328 | #else |
| 331 | MSDOS_OBJ = dosfns.o msdos.o w16select.o termcap.o | 329 | MSDOS_OBJ = dosfns.o msdos.o w16select.o termcap.o |
| 332 | #endif | 330 | #endif |
| @@ -656,8 +654,8 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \ | |||
| 656 | with GCC, we might need gnulib again after them. */ | 654 | with GCC, we might need gnulib again after them. */ |
| 657 | 655 | ||
| 658 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ | 656 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ |
| 659 | $(RSVG_LIBS) $(DBUS_LIBS) @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM $(LIBS_TERMCAP) \ | 657 | $(RSVG_LIBS) $(DBUS_LIBS) @LIBGPM@ @LIBRESOLV@ $(LIBS_SYSTEM) \ |
| 660 | $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ | 658 | $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ |
| 661 | @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ | 659 | @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ |
| 662 | $(GNULIB_VAR) @LIB_MATH@ @LIB_STANDARD@ $(GNULIB_VAR) | 660 | $(GNULIB_VAR) @LIB_MATH@ @LIB_STANDARD@ $(GNULIB_VAR) |
| 663 | 661 | ||
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index dc6ba71ab6f..8f506cb1822 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -87,15 +87,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 87 | #define LINKER cc | 87 | #define LINKER cc |
| 88 | #endif | 88 | #endif |
| 89 | 89 | ||
| 90 | /* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless | ||
| 91 | on older versions of X where it happens to exist. */ | ||
| 92 | #ifdef HAVE_LIBPTHREADS | ||
| 93 | #define LIBS_SYSTEM -lrts -lIM -liconv -lpthreads | ||
| 94 | #else | ||
| 95 | /* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */ | ||
| 96 | #define LIBS_SYSTEM -lrts -lIM -liconv | ||
| 97 | #endif | ||
| 98 | |||
| 99 | /* The following definition seems to be needed in AIX version 3.1.6.8. | 90 | /* The following definition seems to be needed in AIX version 3.1.6.8. |
| 100 | It may not have been needed in certain earlier versions. */ | 91 | It may not have been needed in certain earlier versions. */ |
| 101 | #define HAVE_TCATTR | 92 | #define HAVE_TCATTR |
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index 50fdf65a1bc..78c7dfdf6bb 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -30,8 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | 30 | ||
| 31 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 31 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 32 | 32 | ||
| 33 | #define LIBS_SYSTEM -lutil | ||
| 34 | |||
| 35 | #undef LIB_GCC | 33 | #undef LIB_GCC |
| 36 | #define LIB_GCC | 34 | #define LIB_GCC |
| 37 | 35 | ||
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 8dc2f4d97df..0dc8276c44e 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* System description file for hpux version 10.20. | 1 | /* System description file for hpux version 10.20. |
| 2 | Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | 2 | |
| 3 | 2008, 2009, 2010 Free Software Foundation, Inc. | 3 | Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | 2009, 2010 Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -126,13 +127,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 126 | /* AlainF 20-Jul-1996 says this is right. */ | 127 | /* AlainF 20-Jul-1996 says this is right. */ |
| 127 | #define KERNEL_FILE "/stand/vmunix" | 128 | #define KERNEL_FILE "/stand/vmunix" |
| 128 | 129 | ||
| 129 | #define LIBS_SYSTEM -l:libdld.sl | ||
| 130 | |||
| 131 | 130 | ||
| 132 | /* Rainer Malzbender <rainer@displaytech.com> says definining | 131 | /* Rainer Malzbender <rainer@displaytech.com> says definining |
| 133 | HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 | 132 | HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 |
| 134 | using GCC. */ | 133 | using GCC. */ |
| 135 | |||
| 136 | #ifndef HAVE_XRMSETDATABASE | 134 | #ifndef HAVE_XRMSETDATABASE |
| 137 | #define HAVE_XRMSETDATABASE | 135 | #define HAVE_XRMSETDATABASE |
| 138 | #endif | 136 | #endif |
diff --git a/src/s/msdos.h b/src/s/msdos.h index 5199799a226..a594bb850f4 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* System description file for MS-DOS | 1 | /* System description file for MS-DOS |
| 2 | 2 | ||
| 3 | Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006, | 3 | Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006, |
| 4 | 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -140,8 +140,9 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 140 | commentary below, in the non-X branch. The 140KB number was | 140 | commentary below, in the non-X branch. The 140KB number was |
| 141 | measured on GNU/Linux and on MS-WIndows. */ | 141 | measured on GNU/Linux and on MS-WIndows. */ |
| 142 | #define SYSTEM_PURESIZE_EXTRA (-170000+140000) | 142 | #define SYSTEM_PURESIZE_EXTRA (-170000+140000) |
| 143 | #define LIBS_SYSTEM -lxext -lsys | 143 | #define MSDOS_LIBS_SYSTEM -lxext -lsys |
| 144 | #else | 144 | #else |
| 145 | #define MSDOS_LIBS_SYSTEM | ||
| 145 | /* We need a little extra space, see ../../lisp/loadup.el. | 146 | /* We need a little extra space, see ../../lisp/loadup.el. |
| 146 | As of 20091024, DOS-specific files use up 62KB of pure space. But | 147 | As of 20091024, DOS-specific files use up 62KB of pure space. But |
| 147 | overall, we end up wasting 130KB of pure space, because | 148 | overall, we end up wasting 130KB of pure space, because |
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h index 78d2bfb3b6b..f9a4c44d74e 100644 --- a/src/s/sol2-6.h +++ b/src/s/sol2-6.h | |||
| @@ -27,8 +27,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 27 | 27 | ||
| 28 | #define POSIX | 28 | #define POSIX |
| 29 | 29 | ||
| 30 | #define LIBS_SYSTEM -lsocket -lnsl -lkstat | ||
| 31 | |||
| 32 | /* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root. | 30 | /* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root. |
| 33 | ghazi@caip.rutgers.edu, 7/21/97. Don't redefine if already defined | 31 | ghazi@caip.rutgers.edu, 7/21/97. Don't redefine if already defined |
| 34 | (e.g., by config.h). */ | 32 | (e.g., by config.h). */ |
diff --git a/src/s/unixware.h b/src/s/unixware.h index 6e42a0d4c56..31d7b25269a 100644 --- a/src/s/unixware.h +++ b/src/s/unixware.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* s/ file for Unixware. | 1 | /* s/ file for Unixware. |
| 2 | 2 | ||
| 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -28,9 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | 28 | ||
| 29 | #undef HAVE_SYSV_SIGPAUSE | 29 | #undef HAVE_SYSV_SIGPAUSE |
| 30 | 30 | ||
| 31 | /* Motif needs -lgen. */ | ||
| 32 | #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen | ||
| 33 | |||
| 34 | /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock | 31 | /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock |
| 35 | rather than sighold/sigrelse, which appear to be BSD4.1 specific. | 32 | rather than sighold/sigrelse, which appear to be BSD4.1 specific. |
| 36 | It may also be appropriate for SVR4.x | 33 | It may also be appropriate for SVR4.x |