aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-05-25 23:41:58 -0700
committerGlenn Morris2010-05-25 23:41:58 -0700
commit90278cb61102b1bcf2c9a2837cb301af06a18127 (patch)
tree4ecd18fa52c2317a32ab158489880080853a2507
parent021eb8d750547099c7edcb537f46478276d7dc8c (diff)
downloademacs-90278cb61102b1bcf2c9a2837cb301af06a18127.tar.gz
emacs-90278cb61102b1bcf2c9a2837cb301af06a18127.zip
Replace YMF_PASS_LDFLAGS with autoconf.
* configure.in (YMF_PASS_LDFLAGS): Remove. (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): New output variables. * configure: Regenerate. * src/Makefile.in (YMF_PASS_LDFLAGS): Remove. (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS. * msdos/sed1v2.inp (@PRE_EDIT_LDFLAGS@, @POST_EDIT_LDFLAGS@): Edit to nothing.
-rw-r--r--ChangeLog3
-rwxr-xr-xconfigure17
-rw-r--r--configure.in16
-rw-r--r--msdos/ChangeLog4
-rw-r--r--msdos/sed1v2.inp2
-rw-r--r--src/ChangeLog3
-rw-r--r--src/Makefile.in8
7 files changed, 34 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index 0eb8fc8c8e0..f17fd567624 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
12010-05-26 Glenn Morris <rgm@gnu.org> 12010-05-26 Glenn Morris <rgm@gnu.org>
2 2
3 * configure.in (YMF_PASS_LDFLAGS): Remove.
4 (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): New output variables.
5
3 * configure.in (CPPFLAGS, CFLAGS, REAL_CFLAGS): 6 * configure.in (CPPFLAGS, CFLAGS, REAL_CFLAGS):
4 Add $GNUSTEP_LOCAL_HEADERS. 7 Add $GNUSTEP_LOCAL_HEADERS.
5 (LDFLAGS, LD_SWITCH_SYSTEM_TEMACS): Add $GNUSTEP_LOCAL_LIBRARIES. 8 (LDFLAGS, LD_SWITCH_SYSTEM_TEMACS): Add $GNUSTEP_LOCAL_LIBRARIES.
diff --git a/configure b/configure
index 83b74eaafdf..7895df600a2 100755
--- a/configure
+++ b/configure
@@ -818,7 +818,8 @@ CYGWIN_OBJ
818PRE_ALLOC_OBJ 818PRE_ALLOC_OBJ
819POST_ALLOC_OBJ 819POST_ALLOC_OBJ
820LD_SWITCH_SYSTEM_TEMACS 820LD_SWITCH_SYSTEM_TEMACS
821YMF_PASS_LDFLAGS 821PRE_EDIT_LDFLAGS
822POST_EDIT_LDFLAGS
822LINKER 823LINKER
823LIB_GCC 824LIB_GCC
824MOUSE_SUPPORT 825MOUSE_SUPPORT
@@ -26655,11 +26656,9 @@ case "$opsys" in
26655 ;; 26656 ;;
26656esac 26657esac
26657 26658
26658## A macro which other sections of Makefile can redefine to munge the 26659
26659## flags before they are passed to LD. This is helpful if you have 26660PRE_EDIT_LDFLAGS=
26660## redefined LD to something odd, like "gcc". 26661POST_EDIT_LDFLAGS=
26661## (The YMF prefix is a holdover from the old name "ymakefile".)
26662YMF_PASS_LDFLAGS=flags
26663if test "x$ORDINARY_LINK" = "xyes"; then 26662if test "x$ORDINARY_LINK" = "xyes"; then
26664 26663
26665 LINKER="\$(CC)" 26664 LINKER="\$(CC)"
@@ -26687,11 +26686,13 @@ elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26687 ## shell''s ``for'' construct. Note that sane people do not have '.' in 26686 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26688 ## their paths, so we must use ./prefix-args. 26687 ## their paths, so we must use ./prefix-args.
26689 ## TODO either make prefix-args check ORDINARY_LINK internally, 26688 ## TODO either make prefix-args check ORDINARY_LINK internally,
26690 ## or remove it altogether (bug#6184), removing the need for this macro. 26689 ## or remove it altogether (bug#6184), removing the need for this hack.
26691 YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`' 26690 PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker'
26691 POST_EDIT_LDFLAGS='`'
26692fi 26692fi
26693 26693
26694 26694
26695
26695test "x$LINKER" = "x" && LINKER=ld 26696test "x$LINKER" = "x" && LINKER=ld
26696## FIXME? What setting of YMF_PASS_LDFLAGS should this have? 26697## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26697test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" 26698test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
diff --git a/configure.in b/configure.in
index 01b52e3e38a..7cdf520dc5d 100644
--- a/configure.in
+++ b/configure.in
@@ -3335,11 +3335,9 @@ case "$opsys" in
3335 ;; 3335 ;;
3336esac 3336esac
3337 3337
3338## A macro which other sections of Makefile can redefine to munge the 3338
3339## flags before they are passed to LD. This is helpful if you have 3339PRE_EDIT_LDFLAGS=
3340## redefined LD to something odd, like "gcc". 3340POST_EDIT_LDFLAGS=
3341## (The YMF prefix is a holdover from the old name "ymakefile".)
3342YMF_PASS_LDFLAGS=flags
3343if test "x$ORDINARY_LINK" = "xyes"; then 3341if test "x$ORDINARY_LINK" = "xyes"; then
3344 3342
3345 LINKER="\$(CC)" 3343 LINKER="\$(CC)"
@@ -3363,10 +3361,12 @@ elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
3363 ## shell''s ``for'' construct. Note that sane people do not have '.' in 3361 ## shell''s ``for'' construct. Note that sane people do not have '.' in
3364 ## their paths, so we must use ./prefix-args. 3362 ## their paths, so we must use ./prefix-args.
3365 ## TODO either make prefix-args check ORDINARY_LINK internally, 3363 ## TODO either make prefix-args check ORDINARY_LINK internally,
3366 ## or remove it altogether (bug#6184), removing the need for this macro. 3364 ## or remove it altogether (bug#6184), removing the need for this hack.
3367 YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`' 3365 PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker'
3366 POST_EDIT_LDFLAGS='`'
3368fi 3367fi
3369AC_SUBST(YMF_PASS_LDFLAGS) 3368AC_SUBST(PRE_EDIT_LDFLAGS)
3369AC_SUBST(POST_EDIT_LDFLAGS)
3370 3370
3371test "x$LINKER" = "x" && LINKER=ld 3371test "x$LINKER" = "x" && LINKER=ld
3372## FIXME? What setting of YMF_PASS_LDFLAGS should this have? 3372## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index db8a37896b8..b868d714295 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,5 +1,7 @@
12010-05-26 Glenn Morris <rgm@gnu.org> 12010-05-26 Glenn Morris <rgm@gnu.org>
2 2
3 * sed1v2.inp (@PRE_EDIT_LDFLAGS@, @POST_EDIT_LDFLAGS@): Edit to nothing.
4
3 * sed1v2.inp (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): 5 * sed1v2.inp (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4 No longer present. 6 No longer present.
5 7
@@ -9,7 +11,7 @@
9 11
102010-05-21 Glenn Morris <rgm@gnu.org> 122010-05-21 Glenn Morris <rgm@gnu.org>
11 13
12 * sed1v2.inp(@ns_frag@): Edit to nothing. 14 * sed1v2.inp (@ns_frag@): Edit to nothing.
13 15
14 * sed1x.inp (OLDXMENU): Replace any initial value. 16 * sed1x.inp (OLDXMENU): Replace any initial value.
15 * sed1v2.inp (OLDXMENU): Edit to "nothing". 17 * sed1v2.inp (OLDXMENU): Edit to "nothing".
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index eec6be62195..6b85d986ecf 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -147,6 +147,8 @@ s/\.h\.in/.h-in/
147s/@YMF_PASS_LDFLAGS@/flags/ 147s/@YMF_PASS_LDFLAGS@/flags/
148s/@deps_frag@// 148s/@deps_frag@//
149s/@ns_frag@// 149s/@ns_frag@//
150s/@PRE_EDIT_LDFLAGS@//
151s/@POST_EDIT_LDFLAGS@//
150s/bootstrap-emacs/b-emacs/ 152s/bootstrap-emacs/b-emacs/
151s/bootstrap-temacs/b-temacs/ 153s/bootstrap-temacs/b-temacs/
152s/bootstrap-doc/b-doc/ 154s/bootstrap-doc/b-doc/
diff --git a/src/ChangeLog b/src/ChangeLog
index ba513b1bcf2..83d2e956af6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12010-05-26 Glenn Morris <rgm@gnu.org> 12010-05-26 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
5
3 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): 6 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4 Remove. 7 Remove.
5 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS. 8 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
diff --git a/src/Makefile.in b/src/Makefile.in
index bbe573e69be..ea84fa08429 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -634,10 +634,14 @@ ${libsrc}make-docfile${EXEEXT}:
634buildobj.h: Makefile 634buildobj.h: Makefile
635 echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h 635 echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h
636 636
637#define YMF_PASS_LDFLAGS(flags) @YMF_PASS_LDFLAGS@
638 637
638/* We cannot define variables for PRE_EDIT and POST_EDIT.
639 If !ORDINARY_LINK && !LINKER && GCC, they add a
640 \`./prefix-args -Xlinker ... \` wrapper, otherwise they are empty.
641 One alternative to this approach would be to always call prefix-args,
642 and have it DTRT in all cases, by testing the above defines. */
639temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} 643temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT}
640 $(LD) YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} ) \ 644 $(LD) @PRE_EDIT_LDFLAGS@ ${TEMACS_LDFLAGS} @POST_EDIT_LDFLAGS@ \
641 ${TEMACS_LDFLAGS2} \ 645 ${TEMACS_LDFLAGS2} \
642 -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES} 646 -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES}
643 647