Skip to content

Commit

Permalink
Make configure/autogen work without pkg-config.
Browse files Browse the repository at this point in the history
Fixes issue #14.
  • Loading branch information
rdoeffinger committed Mar 19, 2022
1 parent cdefe2c commit c9a9fd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ AM_PROG_CC_C_O
AC_PROG_INSTALL
LT_INIT

# add fallback if pkg-config is not installed
m4_ifdef([PKG_CHECK_MODULES],,[define(PKG_CHECK_MODULES, $4)])
PKG_CHECK_MODULES([POPT], [popt], ,
AC_SEARCH_LIBS([poptGetContext], [popt], POPT_LIBS=-lpopt,AC_MSG_ERROR([Missing library: popt not found.]))
)
Expand Down

0 comments on commit c9a9fd9

Please sign in to comment.