Skip to content

Commit

Permalink
configure: Improve error message when pkg-config is missing.
Browse files Browse the repository at this point in the history
Until now, when pkg-config is missing, Autoconf emitted this error:
    error: possibly undefined macro: PKG_CHECK_MODULES
This commit changes the message to:
    error: Please install pkg-config.
This should be easier for users to interpret.

Suggested-by: Ethan Jackson <[email protected]>
  • Loading branch information
blp committed Jul 13, 2011
1 parent b9ec4ff commit 2bc458b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ AC_DEFUN([OVS_CHECK_OPENSSL],
[ssl=check])
if test "$ssl" != false; then
dnl Make sure that pkg-config is installed.
m4_pattern_forbid([PKG_CHECK_MODULES])
m4_ifndef([PKG_CHECK_MODULES], [m4_fatal([Please install pkg-config.])])
PKG_CHECK_MODULES([SSL], [openssl],
[HAVE_OPENSSL=yes],
[HAVE_OPENSSL=no
Expand Down

0 comments on commit 2bc458b

Please sign in to comment.