]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Port to POSIX 1003.1-2001.
authorDaniel Jacobowitz <drow@false.org>
Fri, 20 Dec 2002 20:23:08 +0000 (20:23 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 20 Dec 2002 20:23:08 +0000 (20:23 +0000)
* acinclude.m4 (AM_INSTALL_LIBBFD): Do not rely on "test -o".
* configure.in (build-warnings): Likewise.
(Horrible hacks to build DLLs on Windows): Do not rely on "tail -1".
* aclocal.m4: Regenerate.
* configure: Regenerate.

bfd/ChangeLog
bfd/acinclude.m4
bfd/aclocal.m4
bfd/configure
bfd/configure.in

index 14a8d77d31e776266381cbc737141c56b76665e8..5b57c5e8808b15403412435a7b2fceda11d3f17d 100644 (file)
@@ -1,3 +1,12 @@
+2002-12-20  Paul Eggert  <eggert@twinsun.com>
+
+       Port to POSIX 1003.1-2001.
+       * acinclude.m4 (AM_INSTALL_LIBBFD): Do not rely on "test -o".
+       * configure.in (build-warnings): Likewise.
+       (Horrible hacks to build DLLs on Windows): Do not rely on "tail -1".
+       * aclocal.m4: Regenerate.
+       * configure: Regenerate.
+
 2002-12-19  Alan Modra  <amodra@bigpond.net.au>
 
        * coff-h8300.c: Include libiberty.h.
index b3c6ccffb6c5a351030dc1f02d8b898f28c65dad..7c2902c133010eb9cd1a72c6b3a04ef86d579ebb 100644 (file)
@@ -129,7 +129,7 @@ AC_DEFUN([AM_INSTALL_LIBBFD],
   AC_ARG_ENABLE(install-libbfd,
 [  --install-libbfd controls installation of libbfd and related headers],
       install_libbfd_p=$enableval,
-      if test "${host}" = "${target}" -o "$enable_shared" = "yes"; then
+      if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
         install_libbfd_p=yes
       else
         install_libbfd_p=no
index b6dfcbe31d0caf682f605a75548e7f829fb85ae0..fd54b1b00705e56a1942e57c269cf3f6fbf832c3 100644 (file)
@@ -141,7 +141,7 @@ AC_DEFUN([AM_INSTALL_LIBBFD],
   AC_ARG_ENABLE(install-libbfd,
 [  --install-libbfd controls installation of libbfd and related headers],
       install_libbfd_p=$enableval,
-      if test "${host}" = "${target}" -o "$enable_shared" = "yes"; then
+      if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
         install_libbfd_p=yes
       else
         install_libbfd_p=no
index 2eca955472a7f71606992a02c8e710f4163423d9..c307f0f87bbc68c71277865d020cd4c50291f970 100755 (executable)
@@ -2327,7 +2327,7 @@ if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
 fi
 fi
 WARN_CFLAGS=""
-if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
+if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
     WARN_CFLAGS="${build_warnings}"
 fi
 
@@ -2370,7 +2370,7 @@ if test "${enable_install_libbfd+set}" = set; then
   enableval="$enable_install_libbfd"
   install_libbfd_p=$enableval
 else
-  if test "${host}" = "${target}" -o "$enable_shared" = "yes"; then
+  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
         install_libbfd_p=yes
       else
         install_libbfd_p=no
@@ -5933,7 +5933,7 @@ case "${host}" in
     fi
     ;;
   *)
-    x=`sed -n -e 's/^[         ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | tail -1`
+    x=`sed -n -e 's/^[         ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
     if test -n "$x"; then
       WIN32LIBADD="-L../libiberty/pic -liberty"
     fi
index 4db2520995a4c8cd2baa07c1a8e7f3aac48b16cd..ccf8af18792f5ee772279fe7db0cd6fee682c08d 100644 (file)
@@ -86,7 +86,7 @@ if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   echo "Setting warning flags = $build_warnings" 6>&1
 fi])dnl
 WARN_CFLAGS=""
-if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
+if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
     WARN_CFLAGS="${build_warnings}"
 fi
 AC_SUBST(WARN_CFLAGS)
@@ -446,7 +446,7 @@ case "${host}" in
     ;;
   *)
 changequote(,)dnl
-    x=`sed -n -e 's/^[         ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | tail -1`
+    x=`sed -n -e 's/^[         ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
 changequote([,])dnl
     if test -n "$x"; then
       WIN32LIBADD="-L../libiberty/pic -liberty"