Re: How to autotools figure what library need to be linked to?

2021-03-30 Thread Bob Friesenhahn
On Tue, 30 Mar 2021, Peng Yu wrote: I am confused about what belongs to autoconf and what belongs to automake. For the usually configure -> make -> make install, what belongs to autoconf what belongs to automake? It is reasonable to be confused about this unless one reads the documentation.

Re: How to autotools figure what library need to be linked to?

2021-03-30 Thread Peng Yu
I am confused about what belongs to autoconf and what belongs to automake. For the usually configure -> make -> make install, what belongs to autoconf what belongs to automake? Thanks. On 3/30/21, Bob Friesenhahn wrote: > On Mon, 29 Mar 2021, Peng Yu wrote: > >> Hi, >> >> crypt(3) does not

Re: How to autotools figure what library need to be linked to?

2021-03-30 Thread Bob Friesenhahn
On Mon, 29 Mar 2021, Peng Yu wrote: Hi, crypt(3) does not need -lcrypt on macOS, but need -lcrypt on Linux. How does autotools determine what library is need to be linked based on the source code? Thanks. This is really an Autoconf (configure script) issue and not an Automake issue. The

Re: ***UNCHECKED*** How to autotools figure what library need to be linked to?

2021-03-29 Thread Simon Richter
Hi, On 29.03.21 16:20, Peng Yu wrote: > crypt(3) does not need -lcrypt on macOS, but need -lcrypt on Linux. > How does autotools determine what library is need to be linked based > on the source code? Thanks. It compiles a short test program that calls crypt, then tries to link it without any

How to autotools figure what library need to be linked to?

2021-03-29 Thread Peng Yu
Hi, crypt(3) does not need -lcrypt on macOS, but need -lcrypt on Linux. How does autotools determine what library is need to be linked based on the source code? Thanks. -- Regards, Peng