Mercurial > emacs
comparison configure @ 108692:bd5f6b9253ef
Regenerate configure, src/config.in.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 18 May 2010 19:46:42 -0700 |
parents | 08c1b90a24ee |
children | c93b057383dc |
comparison
equal
deleted
inserted
replaced
108691:5a44435f0c71 | 108692:bd5f6b9253ef |
---|---|
816 CYGWIN_OBJ | 816 CYGWIN_OBJ |
817 PRE_ALLOC_OBJ | 817 PRE_ALLOC_OBJ |
818 POST_ALLOC_OBJ | 818 POST_ALLOC_OBJ |
819 LD_SWITCH_SYSTEM_TEMACS | 819 LD_SWITCH_SYSTEM_TEMACS |
820 LD_SWITCH_SYSTEM_EXTRA | 820 LD_SWITCH_SYSTEM_EXTRA |
821 YMF_PASS_LDFLAGS | |
822 LINKER | |
821 LIB_GCC | 823 LIB_GCC |
822 MOUSE_SUPPORT | 824 MOUSE_SUPPORT |
823 TOOLTIP_SUPPORT | 825 TOOLTIP_SUPPORT |
824 WINDOW_SUPPORT | 826 WINDOW_SUPPORT |
825 LTLIBOBJS' | 827 LTLIBOBJS' |
26614 LD_SWITCH_SYSTEM_EXTRA= | 26616 LD_SWITCH_SYSTEM_EXTRA= |
26615 fi | 26617 fi |
26616 | 26618 |
26617 | 26619 |
26618 | 26620 |
26621 LINKER= | |
26622 ORDINARY_LINK= | |
26623 case "$opsys" in | |
26624 ## gnu: GNU needs its own crt0. | |
26625 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; | |
26626 | |
26627 cygwin) LINKER="\$(CC)" ;; | |
26628 | |
26629 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the | |
26630 ## library search parth, i.e. it won't search /usr/lib for libc and | |
26631 ## friends. Using -nostartfiles instead avoids this problem, and | |
26632 ## will also work on earlier NetBSD releases. | |
26633 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;; | |
26634 | |
26635 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says | |
26636 ## MkLinux/LinuxPPC needs this. | |
26637 ## ibms390x only supports opsys = gnu-linux so it can be added here. | |
26638 gnu-*) | |
26639 case "$machine" in | |
26640 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;; | |
26641 esac | |
26642 ;; | |
26643 esac | |
26644 | |
26645 ## A macro which other sections of Makefile can redefine to munge the | |
26646 ## flags before they are passed to LD. This is helpful if you have | |
26647 ## redefined LD to something odd, like "gcc". | |
26648 ## (The YMF prefix is a holdover from the old name "ymakefile".) | |
26649 YMF_PASS_LDFLAGS=flags | |
26650 if test "x$ORDINARY_LINK" = "xyes"; then | |
26651 | |
26652 LINKER="\$(CC)" | |
26653 | |
26654 cat >>confdefs.h <<\_ACEOF | |
26655 #define ORDINARY_LINK 1 | |
26656 _ACEOF | |
26657 | |
26658 | |
26659 ## The system files defining neither ORDINARY_LINK nor LINKER are: | |
26660 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*. | |
26661 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then | |
26662 | |
26663 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure | |
26664 ## places that are difficult to figure out at make time. Fortunately, | |
26665 ## these same versions allow you to pass arbitrary flags on to the | |
26666 ## linker, so there is no reason not to use it as a linker. | |
26667 ## | |
26668 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from | |
26669 ## searching for libraries in its internal directories, so we have to | |
26670 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below). | |
26671 LINKER="\$(CC) -nostdlib" | |
26672 ## GCC passes any argument prefixed with -Xlinker directly to the linker. | |
26673 ## See prefix-args.c for an explanation of why we do not do this with the | |
26674 ## shell''s ``for'' construct. Note that sane people do not have '.' in | |
26675 ## their paths, so we must use ./prefix-args. | |
26676 ## TODO either make prefix-args check ORDINARY_LINK internally, | |
26677 ## or remove it altogether (bug#6184), removing the need for this macro. | |
26678 YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`' | |
26679 fi | |
26680 | |
26681 | |
26682 test "x$LINKER" = "x" && LINKER=ld | |
26683 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have? | |
26684 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" | |
26685 | |
26686 | |
26687 | |
26688 | |
26689 ## FIXME? The logic here is not precisely the same as that above | |
26690 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined | |
26691 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib? | |
26619 LIB_GCC= | 26692 LIB_GCC= |
26620 if test "x$GCC" = "xyes"; then | 26693 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then |
26621 | 26694 |
26622 case "$opsys" in | 26695 case "$opsys" in |
26623 ## cygwin: don't link against static libgcc. | 26696 ## cygwin: don't link against static libgcc. |
26624 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;; | 26697 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;; |
26625 | 26698 |