Add -lgflags into LD_FLAGS when gflags is detected and --with-gflags isn't specified. Thanks kzk for this patch!

git-svn-id: https://google-glog.googlecode.com/svn/trunk@49 eb4d4688-79bd-11dd-afb4-1d65580434c0
This commit is contained in:
2009-04-22 04:28:59 +00:00
parent ca448a53a0
commit 94a3b0ed4f
2 changed files with 6 additions and 0 deletions

3
configure vendored
View File

@ -23944,6 +23944,9 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_LIB_GFLAGS 1
_ACEOF
if test x"$GFLAGS_LIBS" = x""; then
GFLAGS_LIBS="-lgflags"
fi
else
GFLAGS_CFLAGS=
GFLAGS_LIBS=

View File

@ -110,6 +110,9 @@ AC_ARG_WITH(gflags, AS_HELP_STRING[--with-gflags=GFLAGS_DIR],
AC_CHECK_LIB(gflags, main, ac_cv_have_libgflags=1, ac_cv_have_libgflags=0)
if test x"$ac_cv_have_libgflags" = x"1"; then
AC_DEFINE(HAVE_LIB_GFLAGS, 1, [define if you have google gflags library])
if test x"$GFLAGS_LIBS" = x""; then
GFLAGS_LIBS="-lgflags"
fi
else
GFLAGS_CFLAGS=
GFLAGS_LIBS=