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:
parent
ca448a53a0
commit
94a3b0ed4f
3
configure
vendored
3
configure
vendored
@ -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=
|
||||
|
||||
@ -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=
|
||||
|
||||
Loading…
Reference in New Issue
Block a user