basho-labs / riak-c-client

Riak C Client
Apache License 2.0
20 stars 8 forks source link

add initial autotools support #25

Closed vinoski closed 10 years ago

vinoski commented 10 years ago

Add support for generating Makefiles and configure scripts with autotools. To use:

  1. run the ./autogen.sh script in top level directory
  2. ./configure
  3. make

Rename the current Makefile to Makefile.scons so autotools won't overwrite it.

In this commit the autotools support builds only libriak_c_client and riakc_example. It doesn't build any tests. Also "make distcheck" works, which is critical for making sure release packages will build and install properly.

Add generated protobuf files, generated release tarballs and a few other files to .gitignore. Add generated protobuf files and src subdirectories to distribution.

vinoski commented 10 years ago

Thanks for the feedback @javajolt. I've amended the commit to add support for "make check" to build and run the tests, and also fixed "make install" to install include files.

hazen commented 10 years ago

Changes look good. Let's merge and go boldly on, where no one has gone before.

:+1: