~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to libtest/has.cc

  • Committer: Continuous Integration
  • Date: 2012-10-22 05:56:09 UTC
  • mfrom: (1086.1.8 libmemcached-1.0)
  • Revision ID: ci@tangent.org-20121022055609-cbooaw9bcdal4qge
Merge lp:~tangent-org/libmemcached/1.0-build Build: jenkins-Libmemcached-1.0-87

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
bool has_libmemcached(void)
46
46
{
 
47
#if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED
47
48
  if (HAVE_LIBMEMCACHED)
48
49
  {
49
50
    return true;
50
51
  }
 
52
#endif
51
53
 
52
54
  return false;
53
55
}
54
56
 
55
57
bool has_libdrizzle(void)
56
58
{
 
59
#if defined(HAVE_LIBDRIZZLE) && HAVE_LIBDRIZZLE
57
60
  if (HAVE_LIBDRIZZLE)
58
61
  {
59
62
    return true;
60
63
  }
 
64
#endif
61
65
 
62
66
  return false;
63
67
}
80
84
 
81
85
bool has_gearmand()
82
86
{
 
87
#if defined(HAVE_GEARMAND_BINARY) && HAVE_GEARMAND_BINARY
83
88
  if (HAVE_GEARMAND_BINARY)
84
89
  {
85
 
#if defined(HAVE_GEARMAND_BINARY) && HAVE_GEARMAND_BINARY
86
90
    std::stringstream arg_buffer;
87
91
 
88
92
    char *getenv_ptr;
98
102
    {
99
103
      return true;
100
104
    }
 
105
  }
101
106
#endif
102
 
  }
103
107
 
104
108
  return false;
105
109
}
136
140
 
137
141
bool has_memcached()
138
142
{
 
143
#if defined(HAVE_MEMCACHED_BINARY) && HAVE_MEMCACHED_BINARY
139
144
  if (HAVE_MEMCACHED_BINARY)
140
145
  {
141
146
    std::stringstream arg_buffer;
154
159
      return true;
155
160
    }
156
161
  }
 
162
#endif
157
163
 
158
164
  return false;
159
165
}