From 001be2972da4d8a3039110ffefafbdde2cb4c4e3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 6 May 2002 15:03:29 +0000 Subject: [PATCH] * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed 1q to port to POSIX 1003.1-2001 hosts, like textutils 2.0.21 with _POSIX2_VERSION=200112. --- ChangeLog | 6 ++++++ libtool.m4 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e31f4311a..ea4214e78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-05-06 Paul Eggert + + * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed 1q to + port to POSIX 1003.1-2001 hosts, like textutils 2.0.21 with + _POSIX2_VERSION=200112. + 2002-05-06 Paul Eggert * ltmain.in: Don't assume that "sort +2" works, as POSIX diff --git a/libtool.m4 b/libtool.m4 index 3562bb6bd..3832d8f20 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4539,7 +4539,7 @@ EOF # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -1 $export_symbols`" = xEXPORTS; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`sed 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def; -- 2.47.3