-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite build system using automake #6
Conversation
Initial commit, only linux tested so far.
Solaris automake doesn't have AM_COND_IF yet. It was introduced in automake 1.10.2.
Include sys/filio.h explicitly as solaris doesn't define BSD_COMP and thus doesn't pull this header via sys/ioctl.h. Needed for FIONREAD.
It doesn't seem to be in use anymore?
Just to give my 2 cents here. I think libnfs with such a buildsys is a big step for getting it into the distros ... :D |
Can you re-do the patch for my current git tree. I tried to back the changes I have made to Makefile.in that prevented the merge from working originally |
Never mind. There were some junk in my local git tree. Thanks! |
Great. Thanks for the merge. Feel free to contact me if you have any questions re autotools in the future. I'm no pro but I'm sure I can help you along. |
Thanks. Did you compile and run this successfully from Solaris? If so, could you create a patch for README that Solaris works ? Also, If you want to, I would be very grateful if you volunteer to do the same kind of autotools conversion for libiscsi too :-) thanks for your help to make libnfs better. ronnie s |
I'm another xbmc dev. I tested with opensolaris. I'm not sure what the differences are between that and the real deal. I don't have Solaris available. I'll try to take a look at libiscsi if I can get some free time in the next week. |
I think the main difference between the two for an application is It even works on weirdo PPC/AIX afaik with its weird changes to :-) On Sat, Jul 2, 2011 at 3:28 PM, t-nelson
|
Ouch, that reminds me. Your patch quite likely actually broke AIX and all other legacy unixens that have a #ifdef HAVE_SOCK_SIN_LEN This kind of code. On legacy unixen we need to know if sockaddr structure needs a sin_len assigment or things will break. Could you add detection of whether HAVE_SOCK_SIN_LEN checks back to the configure checks and to config.h, else legacy unixens will break. |
Oh man This just reminded me on why and how much I hate libtools with such a passion. Do you know the command line to use to get meaningful valgrind output regards On Sat, Jul 2, 2011 at 11:26 AM, t-nelson
|
nelson11@zoidberg:~/code/libnfs/examples$ libtool --mode=execute valgrind -v --leak-check=full --show-reachable=yes ./nfsclient-bcast Seems to do the trick. |
Title says it all.
This should improve portability and cross builds by eliminating assumptions and custom tests.
I think I got most of the functionality of the current build system back in place. The log path configure withvar was left out since I didn't see where it was used anymore. Versioning was also change to the Right Way(tm) according to libtool. See http://www.gnu.org/software/libtool/manual/html_node/Versioning.html#Versioning