Lines 4233-4241
Link Here
|
4233 |
|
4233 |
|
4234 |
done |
4234 |
done |
4235 |
|
4235 |
|
4236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf_c_data_buffer_init in -lprotobuf-c" >&5 |
4236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf_c_version_number in -lprotobuf-c" >&5 |
4237 |
$as_echo_n "checking for protobuf_c_data_buffer_init in -lprotobuf-c... " >&6; } |
4237 |
$as_echo_n "checking for protobuf_c_version_number in -lprotobuf-c... " >&6; } |
4238 |
if ${ac_cv_lib_protobuf_c_protobuf_c_data_buffer_init+:} false; then : |
4238 |
if ${ac_cv_lib_protobuf_c_version_number+:} false; then : |
4239 |
$as_echo_n "(cached) " >&6 |
4239 |
$as_echo_n "(cached) " >&6 |
4240 |
else |
4240 |
else |
4241 |
ac_check_lib_save_LIBS=$LIBS |
4241 |
ac_check_lib_save_LIBS=$LIBS |
Lines 4246-4275
Link Here
|
4246 |
/* Override any GCC internal prototype to avoid an error. |
4246 |
/* Override any GCC internal prototype to avoid an error. |
4247 |
Use char because int might match the return type of a GCC |
4247 |
Use char because int might match the return type of a GCC |
4248 |
builtin and then its argument prototype would still apply. */ |
4248 |
builtin and then its argument prototype would still apply. */ |
|
|
4249 |
#include <stdint.h> |
4249 |
#ifdef __cplusplus |
4250 |
#ifdef __cplusplus |
4250 |
extern "C" |
4251 |
extern "C" |
4251 |
#endif |
4252 |
#endif |
4252 |
char protobuf_c_data_buffer_init (); |
4253 |
uint32_t protobuf_c_version_number (); |
4253 |
int |
4254 |
int |
4254 |
main () |
4255 |
main () |
4255 |
{ |
4256 |
{ |
4256 |
return protobuf_c_data_buffer_init (); |
4257 |
return protobuf_c_version_number () == 0; |
4257 |
; |
4258 |
; |
4258 |
return 0; |
4259 |
return 0; |
4259 |
} |
4260 |
} |
4260 |
_ACEOF |
4261 |
_ACEOF |
4261 |
if ac_fn_c_try_link "$LINENO"; then : |
4262 |
if ac_fn_c_try_link "$LINENO"; then : |
4262 |
ac_cv_lib_protobuf_c_protobuf_c_data_buffer_init=yes |
4263 |
ac_cv_lib_protobuf_c_version_number=yes |
4263 |
else |
4264 |
else |
4264 |
ac_cv_lib_protobuf_c_protobuf_c_data_buffer_init=no |
4265 |
ac_cv_lib_protobuf_c_version_number=no |
4265 |
fi |
4266 |
fi |
4266 |
rm -f core conftest.err conftest.$ac_objext \ |
4267 |
rm -f core conftest.err conftest.$ac_objext \ |
4267 |
conftest$ac_exeext conftest.$ac_ext |
4268 |
conftest$ac_exeext conftest.$ac_ext |
4268 |
LIBS=$ac_check_lib_save_LIBS |
4269 |
LIBS=$ac_check_lib_save_LIBS |
4269 |
fi |
4270 |
fi |
4270 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_protobuf_c_protobuf_c_data_buffer_init" >&5 |
4271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_protobuf_c_version_number" >&5 |
4271 |
$as_echo "$ac_cv_lib_protobuf_c_protobuf_c_data_buffer_init" >&6; } |
4272 |
$as_echo "$ac_cv_lib_protobuf_c_version_number" >&6; } |
4272 |
if test "x$ac_cv_lib_protobuf_c_protobuf_c_data_buffer_init" = xyes; then : |
4273 |
if test "x$ac_cv_lib_protobuf_c_version_number" = xyes; then : |
4273 |
cat >>confdefs.h <<_ACEOF |
4274 |
cat >>confdefs.h <<_ACEOF |
4274 |
#define HAVE_LIBPROTOBUF_C 1 |
4275 |
#define HAVE_LIBPROTOBUF_C 1 |
4275 |
_ACEOF |
4276 |
_ACEOF |