It's been a long since this question was asked, yet I have similar problems (in fact two of them) when building/configuring old Vim version (v8.0.0000), when current one is v9.1.1043. My first problem is not related to your problem but second one is and I want to share solution for both of them.
Trying to ./configure v8.0.0000
I got:
checking for tgetent in -lcurses... yes
curses library is not usable
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
To handle this, see what change is introduced in v8.2.5135. You can do this by:
git show v8.2.5135
Applying these changes (in fact adding static
to two functions and make all main()
functions return int
if they don't) fixes that problem.
And now get back to original problem:
checking uint32_t is 32 bits... configure: error: WRONG! uint32_t not defined correctly.
Fix for that problem was introduced in v8.2.1119
git show v8.2.1119
Apply these changes (replace exit()
with return
) and you are good to go.