Skip to content

Commit 497ca1a

Browse files
committed
correct JQ_CFLAGS for usage of --with-jq without a path
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent f3513d3 commit 497ca1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ AC_ARG_WITH([jq], AS_HELP_STRING([--with-jq=PATH], [location of libjq developmen
164164
if test -n "$with_jq"
165165
then
166166
if test "$JQ_CFLAGS" == ""; then
167-
JQ_CFLAGS="-I$with_jq/include"
167+
if test "$with_jq" == "yes"; then
168+
JQ_CFLAGS="/usr/include"
169+
else
170+
JQ_CFLAGS="-I$with_jq/include"
171+
fi
168172
fi
169173
if test "$JQ_LIBS" == ""; then
170174
if test "$with_jq" == "yes"; then

0 commit comments

Comments
 (0)