aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-05-18 19:46:42 -0700
committerGlenn Morris2010-05-18 19:46:42 -0700
commitebbc2619f0c902a818c94ddeb46f8bbb6242303a (patch)
tree375cf597cc09d0cfd9521479306bf0cf655960c7
parentc1d0dcfd127b3f9742c31f794e2a6d886048bb1e (diff)
downloademacs-ebbc2619f0c902a818c94ddeb46f8bbb6242303a.tar.gz
emacs-ebbc2619f0c902a818c94ddeb46f8bbb6242303a.zip
Regenerate configure, src/config.in.
-rwxr-xr-xconfigure75
-rw-r--r--src/config.in3
2 files changed, 77 insertions, 1 deletions
diff --git a/configure b/configure
index 5cc425413cd..c41ccb95094 100755
--- a/configure
+++ b/configure
@@ -818,6 +818,8 @@ PRE_ALLOC_OBJ
818POST_ALLOC_OBJ 818POST_ALLOC_OBJ
819LD_SWITCH_SYSTEM_TEMACS 819LD_SWITCH_SYSTEM_TEMACS
820LD_SWITCH_SYSTEM_EXTRA 820LD_SWITCH_SYSTEM_EXTRA
821YMF_PASS_LDFLAGS
822LINKER
821LIB_GCC 823LIB_GCC
822MOUSE_SUPPORT 824MOUSE_SUPPORT
823TOOLTIP_SUPPORT 825TOOLTIP_SUPPORT
@@ -26616,8 +26618,79 @@ fi
26616 26618
26617 26619
26618 26620
26621LINKER=
26622ORDINARY_LINK=
26623case "$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 ;;
26643esac
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".)
26649YMF_PASS_LDFLAGS=flags
26650if test "x$ORDINARY_LINK" = "xyes"; then
26651
26652 LINKER="\$(CC)"
26653
26654cat >>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*.
26661elif 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`'
26679fi
26680
26681
26682test "x$LINKER" = "x" && LINKER=ld
26683## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26684test "$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?
26619LIB_GCC= 26692LIB_GCC=
26620if test "x$GCC" = "xyes"; then 26693if 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.
diff --git a/src/config.in b/src/config.in
index 99a95d7f15d..e00b9219982 100644
--- a/src/config.in
+++ b/src/config.in
@@ -841,6 +841,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
841/* Define to 1 if you are using NS windowing under GNUstep. */ 841/* Define to 1 if you are using NS windowing under GNUstep. */
842#undef NS_IMPL_GNUSTEP 842#undef NS_IMPL_GNUSTEP
843 843
844/* Define if the C compiler is the linker. */
845#undef ORDINARY_LINK
846
844/* Define to the address where bug reports for this package should be sent. */ 847/* Define to the address where bug reports for this package should be sent. */
845#undef PACKAGE_BUGREPORT 848#undef PACKAGE_BUGREPORT
846 849