All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] configure: Improve error message on missing pkg-config
@ 2021-02-15 11:04 Petr Vorel
  2021-02-16 10:36 ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2021-02-15 11:04 UTC (permalink / raw)
  To: ltp

make autotools
configure:7350: error: possibly undefined macro: AC_DEFINE

Fixes: #787

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index d4bef5e45..c1f24891d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,9 @@ AC_DEFUN([AC_PROG_STRIP], [AC_CHECK_TOOL(STRIP, strip, :)])
 AC_PROG_STRIP
 AC_PROG_YACC
 
+m4_ifndef([PKG_PREREQ],
+	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency)])])
+
 AC_PREFIX_DEFAULT(/opt/ltp)
 
 AC_CHECK_DECLS([IFLA_NET_NS_PID],,,[#include <linux/if_link.h>])
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [LTP] [PATCH 1/1] configure: Improve error message on missing pkg-config
  2021-02-15 11:04 [LTP] [PATCH 1/1] configure: Improve error message on missing pkg-config Petr Vorel
@ 2021-02-16 10:36 ` Petr Vorel
  2021-02-18 10:16   ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2021-02-16 10:36 UTC (permalink / raw)
  To: ltp

Hi,

> +++ b/configure.ac
> @@ -30,6 +30,9 @@ AC_DEFUN([AC_PROG_STRIP], [AC_CHECK_TOOL(STRIP, strip, :)])
>  AC_PROG_STRIP
>  AC_PROG_YACC

> +m4_ifndef([PKG_PREREQ],
> +	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency)])])
Maybe mention also INSTALL file (feedback from
https://github.com/linux-test-project/ltp/issues/787):

	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL for all dependencies])])

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH 1/1] configure: Improve error message on missing pkg-config
  2021-02-16 10:36 ` Petr Vorel
@ 2021-02-18 10:16   ` Cyril Hrubis
  2021-02-18 13:55     ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2021-02-18 10:16 UTC (permalink / raw)
  To: ltp

Hi!
> > +m4_ifndef([PKG_PREREQ],
> > +	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency)])])
> Maybe mention also INSTALL file (feedback from
> https://github.com/linux-test-project/ltp/issues/787):
> 
> 	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL for all dependencies])])

Maybe just shorten it to "..., see INSTALL"

Other than that no complaints, anything that prints reasonable message
is much better than the cryptic error we produce without this patch.

So Acked-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH 1/1] configure: Improve error message on missing pkg-config
  2021-02-18 10:16   ` Cyril Hrubis
@ 2021-02-18 13:55     ` Petr Vorel
  2021-02-18 14:36       ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2021-02-18 13:55 UTC (permalink / raw)
  To: ltp

Hi Cyril,

> > 	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL for all dependencies])])

> Maybe just shorten it to "..., see INSTALL"
Good point, merged with this change.
Thanks for your review!

Petr

> Other than that no complaints, anything that prints reasonable message
> is much better than the cryptic error we produce without this patch.

> So Acked-by: Cyril Hrubis <chrubis@suse.cz>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH 1/1] configure: Improve error message on missing pkg-config
  2021-02-18 13:55     ` Petr Vorel
@ 2021-02-18 14:36       ` Petr Vorel
  0 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2021-02-18 14:36 UTC (permalink / raw)
  To: ltp

Hi Cyril,

> > > 	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL for all dependencies])])

> > Maybe just shorten it to "..., see INSTALL"
> Good point, merged with this change.
> Thanks for your review!

It looks it broke Centos 7, looking into it.

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-18 14:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 11:04 [LTP] [PATCH 1/1] configure: Improve error message on missing pkg-config Petr Vorel
2021-02-16 10:36 ` Petr Vorel
2021-02-18 10:16   ` Cyril Hrubis
2021-02-18 13:55     ` Petr Vorel
2021-02-18 14:36       ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.