Commit a6ffefa7 authored by Shinichiro Hamaji's avatar Shinichiro Hamaji Committed by GitHub

Revert "configure.ac: Allow user to disable gflags"

parent dc8aa29f
...@@ -136,16 +136,16 @@ AC_ARG_WITH(gflags, AS_HELP_STRING[--with-gflags=GFLAGS_DIR], ...@@ -136,16 +136,16 @@ AC_ARG_WITH(gflags, AS_HELP_STRING[--with-gflags=GFLAGS_DIR],
CFLAGS="$CFLAGS $GFLAGS_CFLAGS" CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
LIBS="$LIBS $GFLAGS_LIBS" LIBS="$LIBS $GFLAGS_LIBS"
) )
AC_CHECK_LIB(gflags, main, ac_cv_have_libgflags=1, ac_cv_have_libgflags=0)
AS_IF([test "x$with_gflags" != xno], if test x"$ac_cv_have_libgflags" = x"1"; then
[AC_CHECK_LIB(gflags, main, AC_DEFINE(HAVE_LIB_GFLAGS, 1, [define if you have google gflags library])
[AC_DEFINE(HAVE_LIB_GFLAGS, 1, [Define if you have Google gflags library]) if test x"$GFLAGS_LIBS" = x""; then
if test x"$GFLAGS_LIBS" = x""; then GFLAGS_LIBS="-lgflags"
GFLAGS_LIBS="-lgflags" fi
fi else
ac_cv_have_libgflags=1], GFLAGS_CFLAGS=
AC_MSG_FAILURE([gflags test failed (--without-gflags to disable)]))], GFLAGS_LIBS=
ac_cv_have_libgflags=0) fi
CFLAGS="$SAVE_CFLAGS" CFLAGS="$SAVE_CFLAGS"
LIBS="$SAVE_LIBS" LIBS="$SAVE_LIBS"
......
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