bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] ./configure: No such file or directory


From: Felix Schütt
Subject: [bug-gnu-libiconv] ./configure: No such file or directory
Date: Thu, 21 Jul 2016 20:42:03 +0000

Hi,

I am trying to build libiconv using MSYS2 64-bit on Windows 10 and I wanted to ask why there is no configure script in the latest libiconv version or how I can get the configure script.

What I did:

$ mkdir libiconv
$ cd libiconv
$ git clone git://git.savannah.gnu.org/libiconv.git
$ ./configure
bash: ./configure: No such file or directory
$ ls
ABOUT-NLS   ChangeLog     DEPENDENCIES  gnulib-local     lib             Makefile.in  os2      README        srclib  windows
AUTHORS     configure.ac  DESIGN        HACKING          libcharset      man          po       README.djgpp  tests   woe32dll
autogen.sh  COPYING       djgpp         include          m4              NEWS         PORTS    README.woe32  THANKS
build-aux   COPYING.LIB   extras        INSTALL.generic  Makefile.devel  NOTES        preload  src           tools

As you can see, there is no configure script, but the installation instructions say to run "./configure", which doesn't work because there is no configure script. Could someone please tell me how to obtain one?

Other things:
- The following files are outdated and should be updated in order for the configuration process to recognize Windows 10:
build-aux/config.guess
build-aux/config.sub
libcharset/build-aux/config.guess
libcharset/build-aux/config.sub

The files are from 2009 and will fail to recognize Windows 10 as a valid build system. They will notoriously fail:

$ ./configure (on a version of libiconv downloaded from http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make sets $(MAKE)... (cached) no
checking for gcc... D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc accepts -g... yes
checking for D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc option to accept ISO C89... none needed
checking for style of include used by make... none
checking dependency style of D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc... none
checking how to run the C preprocessor... D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc -E
checking for strip... /mingw/bin/strip
checking build system type... build-aux/config.guess: unable to guess system type

This script, last modified 2009-02-03, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (build-aux/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <address@hidden> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-02-03

uname -m = x86_64
uname -r = 2.4.1(0.294/5/3)
uname -s = MSYS_NT-10.0
uname -v = 2016-02-03 10:57

/usr/bin/uname -p = unknown
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              = x86_64
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = x86_64
UNAME_RELEASE = 2.4.1(0.294/5/3)
UNAME_SYSTEM  = MSYS_NT-10.0
UNAME_VERSION = 2016-02-03 10:57
configure: error: cannot guess build type; you must specify one

The way to fix this error is to download the files and replace the 2009 scripts in the libiconv folder (see https://sourceforge.net/p/msys2/discussion/general/thread/8d346729/ and http://stackoverflow.com/questions/38421135/windows-automake-not-available-in-msys64).

The current files are available at #
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD (config.guess) and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD (config.sub).

HOWEVER:
The current scripts (from 2016) are broken. Running "./configure" results in:
./configure: line 4305: gl_EARLY: command not found
./configure: line 4308: syntax error near unexpected token `srclib'
./configure: line 4308: `gl_RELOCATABLE(srclib)'

I do not have much experience in linux or autotools, could someone please fix the scripts so that they actually work? Or provide a valid ./configure script?

Thanks in advance,

Felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]