hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.1k stars 359 forks source link

File "configure" missing and autoconf errors. INSTALL obsolete/incomplete? #218

Closed Ben-Voris closed 1 year ago

Ben-Voris commented 2 years ago

INSTALL says to run ./configure. There is no such file.

I think that this file was deleted in https://github.com/hyperrealm/libconfig/commit/8a1f6cf2aefd5274a5fa6222a8d3ae1b55955ee3.

I guessed that one must generate "install" from autoconf but I see nothing about that.

My goal was to build on Cygwin, so I tried there first, using GNU Autoconf 2.69. There, autoconf produced this output:

configure.ac:19: warning: The macro `AC_GNU_SOURCE' is obsolete.
configure.ac:19: You should run autoupdate.
/mnt/share/cygpkgs/autoconf2.7/autoconf2.7.noarch/src/autoconf-2.71/lib/autoconf/specific.m4:312: AC_GNU_SOURCE is expanded from...
configure.ac:19: the top level
configure.ac:78: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:78: You should run autoupdate.
/mnt/share/cygpkgs/autoconf2.7/autoconf2.7.noarch/src/autoconf-2.71/lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:78: the top level
configure.ac:149: warning: AC_OUTPUT should be used without arguments.
configure.ac:149: You should run autoupdate.
configure.ac:8: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:25: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:27: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.ac:28: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:30: error: possibly undefined macro: AM_PROG_LEX
configure.ac:100: error: possibly undefined macro: AM_CONDITIONAL

To see if the problem, I ran GNU Autoconf 2.69 on Ubuntu and got this output:

configure.ac:8: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:25: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:27: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.ac:28: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:30: error: possibly undefined macro: AM_PROG_LEX
configure.ac:100: error: possibly undefined macro: AM_CONDITIONAL

Since Cygwin suggested "autoupdate", I ran it and got this:

configure.ac:78: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
  Except in unusual embedded environments, you can safely include all
  ISO C90 headers unconditionally.

After that, autoconf outputs:

configure.ac:77: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
configure.ac:77:   Except in unusual embedded environments, you can safely include all
configure.ac:77:   ISO C90 headers unconditionally.
configure.ac:7: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:24: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:26: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.ac:27: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:29: error: possibly undefined macro: AM_PROG_LEX
configure.ac:107: error: possibly undefined macro: AM_CONDITIONAL
hyperrealm commented 2 years ago

INSTALL instructions refer to the .tar.gz which you can download at https://hyperrealm.github.io/libconfig/.

To regenerate the configure script and the other supporting files you need to run 'autoreconf'

sfhacker commented 2 years ago

We don't use Cygwin but MSYS/MinGW. No issues with GNU autoconf at all!

@Ben-Voris Most probably your environment is broken somehow. Where did you get Cygwin from?

hyperrealm commented 1 year ago

Closing since this seems to be an issue with the user's environment, and they haven't responded.