[CDRIVER-114] Autotools build system Created: 19/Feb/12  Updated: 03/May/17  Resolved: 23/Mar/12

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 0.5
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Luca Barbato Assignee: Kyle Banker
Resolution: Won't Fix Votes: 0
Labels: build
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Any



 Description   

The scons build system doesn't have an install target and is lacking a pkgconfig.

I drafted in my github https://github.com/lu-zero/mongo-c-driver a simple autotools based build system to cover that part, it is quite bare but works as proof of concept.

I'll need such system to get the driver in Gentoo.



 Comments   
Comment by Luca Barbato [ 23/Mar/12 ]

scons based systems do not cross compile sanely, the main reason I'm using autotools and I'm providing autotools build systems to projects is that there isn't any alternative to autotools to sanely and simply support cross compilation.

Comment by Kyle Banker [ 23/Mar/12 ]

Actually, I'd rather not introduce Autotools at this point. Can you use the existing SConsfile?

Comment by Luca Barbato [ 23/Mar/12 ]

If you don't mind I'll update the autotools system using the information from your makefile and then issue a pull request. That would make my life easier in packaging the driver for Gentoo. (the Makefile doesn't cross compile)

Comment by Kyle Banker [ 23/Mar/12 ]

I've added a Makefile, which includes an install target. Still iterating on it, but it should work on all *nix platforms.

Comment by Kyle Banker [ 19/Feb/12 ]

Thanks. This is something we've been wanting to do for a while. I'll take a closer look this week and consider pulling it in.

Generated at Wed Feb 07 21:08:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.