Skip to content

cmake: delete unused NEED_LBER_H, HAVE_LDAP_H - #14690

Closed
vszakats wants to merge 7 commits into
curl:masterfrom
vszakats:del-NEED_LBER_H
Closed

cmake: delete unused NEED_LBER_H, HAVE_LDAP_H#14690
vszakats wants to merge 7 commits into
curl:masterfrom
vszakats:del-NEED_LBER_H

Conversation

@vszakats

@vszakats vszakats commented Aug 26, 2024

Copy link
Copy Markdown
Member

Both are used by ./configure internally, not by curl C code.
CMake adds NEED_LBER_H to CURL_TEST_DEFINES, which is used by
curl_internal_test(), but there is no LDAP-related test made with that
call.

Thus, stop detecting and publishing these from CMake.

NEED_LBER_H added in 7320e53.
HAVE_LDAP_H added in 4c5307b (initial CMake commit).

@vszakats
vszakats marked this pull request as draft August 26, 2024 12:06
@vszakats vszakats changed the title build: delete unused HAVE_LDAP_H (C macro) and NEED_LBER_H build: delete unused NEED_LBER_H Aug 26, 2024
@github-actions github-actions Bot added the CI Continuous Integration label Aug 26, 2024
@vszakats vszakats changed the title build: delete unused NEED_LBER_H cmake: delete unused NEED_LBER_H, HAVE_LDAP_H Aug 26, 2024
@vszakats vszakats added cmake and removed build labels Aug 26, 2024
@vszakats
vszakats marked this pull request as ready for review August 26, 2024 14:37
@vszakats

Copy link
Copy Markdown
Member Author

NEED_LBER_H was added in 7320e53.
Unless I'm missing something, this macro also wasn't used by this initial commit.

@vszakats vszakats closed this in 8d32e87 Sep 19, 2024
@vszakats
vszakats deleted the del-NEED_LBER_H branch September 19, 2024 15:49
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Both are used by `./configure` internally, not by curl C code.
CMake adds `NEED_LBER_H` to `CURL_TEST_DEFINES`, which is used by
`curl_internal_test()`, but there is no LDAP-related test made with that
call.

Thus, stop detecting and publishing these from CMake.

`NEED_LBER_H` added in 7320e53.
`HAVE_LDAP_H` added in 4c5307b (initial CMake commit).

Closes curl#14690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration cmake LDAP tidy-up

Development

Successfully merging this pull request may close these issues.

1 participant