summaryrefslogtreecommitdiff
path: root/package/elfutils/patches/patch-configure_ac
blob: 40b65da79b2259b3e8faf32645821254ea3e8ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- elfutils-0.189.orig/configure.ac	2023-03-03 16:42:26.000000000 +0100
+++ elfutils-0.189/configure.ac	2025-01-08 20:12:14.302360288 +0100
@@ -422,6 +422,12 @@ AS_HELP_STRING([--enable-tests-rpath],[b
 	       [tests_use_rpath=$enableval], [tests_use_rpath=no])
 AM_CONDITIONAL(TESTS_RPATH, test "$tests_use_rpath" = yes)
 
+AC_ARG_ENABLE([progs],
+	AS_HELP_STRING([--enable-progs], [enable progs]),
+	enable_progs=$enableval,
+	enable_progs=yes)
+AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
+
 dnl zlib is mandatory.
 save_LIBS="$LIBS"
 LIBS=
@@ -659,7 +665,7 @@ saved_LIBS="$LIBS"
 AC_SEARCH_LIBS([_obstack_free], [obstack])
 LIBS="$saved_LIBS"
 case "$ac_cv_search__obstack_free" in
-        no) AC_MSG_FAILURE([failed to find _obstack_free]) ;;
+        no) obstack_LIBS= ;;
         -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;;
         *) obstack_LIBS= ;;
 esac