Skip to content
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

List curl options using preprocessor #37

Closed
jeroen opened this issue Aug 13, 2015 · 1 comment
Closed

List curl options using preprocessor #37

jeroen opened this issue Aug 13, 2015 · 1 comment

Comments

@jeroen
Copy link
Owner

jeroen commented Aug 13, 2015

This runs the preprocessor -E over curl.h to resolve symbols. We extract only option symbols:

CFLAGS=$(pkg-config --cflags libcurl)
echo '#include <curl/curl.h>' | cc $CFLAGS -std=gnu99 -E -xc - | grep "^[ \t]*CURLOPT_*"

Thereby we do not have to search for curl.h but instead use cflags from pkg-config.

@jeroen jeroen changed the title Find curl.h List curl options using preprocessor Aug 13, 2015
@jeroen
Copy link
Owner Author

jeroen commented Aug 18, 2015

Done.

@jeroen jeroen closed this as completed Aug 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant