Commit f3ffb56a authored by Rafaël Carré's avatar Rafaël Carré

configure.ac: nicer output if .pc files are not found

parent a9aa594f
......@@ -155,6 +155,7 @@ AC_ARG_VAR([MOZILLA_LIBS], [linker flags for Mozilla, overriding pkg-config])
AC_LANG_PUSH(C++)
AC_MSG_CHECKING([Mozilla headers])
found=0
if test -z "$MOZILLA_CFLAGS" -a -z "$MOZILLA_LIBS" -a -n "$PKG_CONFIG"
then
dnl pkg-config
......@@ -169,12 +170,13 @@ dnl we can't use the pkg-config macros.
MOZILLA_CFLAGS=$(eval $PKG_CONFIG --cflags "$i" )
MOZILLA_LIBS=$(eval $PKG_CONFIG --libs "$i" )
AC_MSG_RESULT([yes (${i})])
found=1
break
fi
AC_MSG_RESULT([no])
fi
done
fi
test "$found" = 0 && AC_MSG_RESULT([no])
CPPFLAGS="${CPPFLAGS} ${MOZILLA_CFLAGS}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment