Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
protobuf-c
Commits
a2fb294a
Commit
a2fb294a
authored
Jan 13, 2014
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build system: add back the --disable-protoc option to configure
parent
4c7904fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
Makefile.am
Makefile.am
+4
-0
configure.ac
configure.ac
+13
-5
No files found.
Makefile.am
View file @
a2fb294a
...
...
@@ -52,6 +52,8 @@ EXTRA_DIST += protobuf-c/libprotobuf-c.pc.in
# protoc-c
#
if
BUILD_COMPILER
bin_PROGRAMS
+=
protoc-c/protoc-c
protoc_c_protoc_c_SOURCES
=
\
protoc-c/c_bytes_field.cc
\
...
...
@@ -143,6 +145,8 @@ BUILT_SOURCES += \
t/test-full.pb.cc t/test-full.pb.h
\
t/generated-code2/test-full-cxx-output.inc
endif
# BUILD_COMPILER
EXTRA_DIST
+=
\
t/test.proto
\
t/test-full.proto
\
...
...
configure.ac
View file @
a2fb294a
...
...
@@ -26,12 +26,20 @@ else
AC_MSG_ERROR([pkg-config is required!])
fi
PKG_CHECK_MODULES([protobuf], [protobuf])
AC_LANG_PUSH([C++])
AC_PATH_PROG(PROTOC, protoc)
if test -z "$PROTOC"; then
AC_ARG_ENABLE([protoc],
AS_HELP_STRING([--disable-protoc], [Disable building protoc_c (also disables tests)]))
if test "x$enable_protoc" != "xno"; then
PKG_CHECK_MODULES([protobuf], [protobuf])
AC_LANG_PUSH([C++])
AC_PATH_PROG(PROTOC, protoc)
if test -z "$PROTOC"; then
AC_MSG_ERROR([Please install the protobuf compiler from https://code.google.com/p/protobuf/.])
fi
PROTOBUF_VERSION="$($PROTOC --version)"
else
PROTOBUF_VERSION="not required, not building compiler"
fi
AM_CONDITIONAL([BUILD_COMPILER], [test "x$enable_protoc" != "xno"])
AC_C_BIGENDIAN
...
...
@@ -53,5 +61,5 @@ AC_MSG_RESULT([
pkgconfigdir: ${pkgconfigdir}
bigendian: ${ac_cv_c_bigendian}
protobuf version: $
($PROTOC --version)
protobuf version: $
{PROTOBUF_VERSION}
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment