summaryrefslogtreecommitdiff
path: root/dev-embedded/srecord/files/srecord-1.57-libtool.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/srecord/files/srecord-1.57-libtool.patch')
-rw-r--r--dev-embedded/srecord/files/srecord-1.57-libtool.patch70
1 files changed, 70 insertions, 0 deletions
diff --git a/dev-embedded/srecord/files/srecord-1.57-libtool.patch b/dev-embedded/srecord/files/srecord-1.57-libtool.patch
new file mode 100644
index 000000000000..d1195726a3d2
--- /dev/null
+++ b/dev-embedded/srecord/files/srecord-1.57-libtool.patch
@@ -0,0 +1,70 @@
+--- srecord-1.57.orig/etc/configure.ac
++++ srecord-1.57/etc/configure.ac
+@@ -29,6 +29,10 @@
+ AC_CHECK_FUNCS(snprintf vsnprintf)
+ AC_CHECK_LIB(gcrypt, gcry_md_open)
+
++top_builddir=`pwd`
++AC_SUBST(top_builddir)
++LT_INIT
++
+ dnl
+ dnl Make sure Boost is installed.
+ dnl
+@@ -119,46 +123,6 @@
+ operating system has a libgcrypt that supports WHIRLPOOL.])
+ AC_MSG_RESULT(yes),AC_MSG_RESULT(no))dnl
+
+-dnl!
+-dnl! Now look for libtool.
+-dnl!
+-AC_CHECK_PROGS(LIBTOOL, libtool)
+-if test -z "$LIBTOOL"
+-then
+- AC_MSG_RESULT([
+- You must have GNU Libtool installed to build srecord.
+- Homepage: http://www.gnu.org/software/libtool/])
+- OK=no
+- if apt-get --version > /dev/null 2> /dev/null; then
+- AC_MSG_RESULT([
+- The following command may be used to install it:
+- sudo apt-get install libtool
+- ])
+- OK=yes
+- fi
+- if yum --version > /dev/null 2> /dev/null; then
+- AC_MSG_RESULT([
+- The following command may be used to install it:
+- sudo yum install libtool
+- ])
+- OK=yes
+- fi
+- if pkg_info -a > /dev/null 2> /dev/null; then
+- AC_MSG_RESULT([
+- The following command may be used to install it:
+- sudo pkg_add -r libtool
+- ])
+- OK=yes
+- fi
+- if test "$OK" != "yes"; then
+- AC_MSG_RESULT([
+- If you are using a package based install, you will need the
+- libtool package.
+- ])
+- fi
+- exit 1
+-fi
+-
+ dnl
+ dnl If the soelim program exists, and understands the -I option,
+ dnl arrange for the Makefile to install the .ps files from the
+--- srecord-1.57.orig/Makefile.in
++++ srecord-1.57/Makefile.in
+@@ -35,6 +35,7 @@
+ #
+ # directory containing the source
+ #
++top_builddir = @top_builddir@
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+