summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKO Myung-Hun <komh@chollian.net>2014-11-19 14:58:22 +0000
committerGary V. Vaughan <gary@gnu.org>2014-11-20 20:52:01 +0000
commit0ea9ccbb6e77ade9956d951cd2d206ef67acd2c3 (patch)
tree5175146449dc2ff6765e72bbd06bca2ff982e8c1
parent2590c2dcf1db82aa46e5f81a8de214c21fb9a8a9 (diff)
downloadm4-0ea9ccbb6e77ade9956d951cd2d206ef67acd2c3.tar.gz
configury: add -Zargs-resp to LDFLAGS on OS/2.
-Zargs-resp enables a response file support on OS/2. * configure.ac (OS2_LDFLAGS): Add -Zargs-resp on *-*-os2*. * Makefile.am (AM_LDFLAGS): Add OS2_LDFLAGS. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac5
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 08a2d393..6cf5ea75 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,6 +63,7 @@ EXTRA_LTLIBRARIES=
# given in build-aux/git-version-gen.
AM_CPPFLAGS += -Im4/gnu -I$(srcdir)/m4/gnu \
-Im4 -I$(srcdir)/m4
+AM_LDFLAGS += $(OS2_LDFLAGS)
EXTRA_DIST += bootstrap cfg.mk maint.mk .version .prev-version \
$(config_macro_dir)/gnulib-cache.m4 $(gitlog_to_changelog)
BUILT_SOURCES += .version
diff --git a/configure.ac b/configure.ac
index 2fe6d9e8..a219665f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,7 @@ case "$CFLAGS" in
;;
esac
+
## ------------------------------- ##
## Preloaded module configuration. ##
## ------------------------------- ##
@@ -213,7 +214,6 @@ AM_GNU_GETTEXT_VERSION([0.16])
M4_GNU_GETTEXT
-
## --------------- ##
## Gnulib support. ##
## --------------- ##
@@ -235,6 +235,8 @@ M4_RENAME
AC_TYPE_SIZE_T
AC_CHECK_SIZEOF([long long int])
+AS_CASE([$host], [*-*-os2*], [OS2_LDFLAGS=-Zargs-resp])
+AC_SUBST([OS2_LDFLAGS])
## ------------------------- ##
@@ -250,7 +252,6 @@ fi
AC_SUBST([INCLUDE_STDBOOL_H])
-
## --------------------------------- ##
## Library functions required by M4. ##
## --------------------------------- ##