bug-make
[Top][All Lists]
Advanced

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

problem with configure on solaris 7


From: Klaus Heinz
Subject: problem with configure on solaris 7
Date: Sat, 10 Feb 2001 16:53:20 +0100

Hi,

I wanted to install GNU Make version 3.76.1 on a SUN Ultra 10 with
Solaris 7. There seems to be a small problem with the following command

  $ ./configure --with-included-gettext
  
I was able to solve my problem by adding a line to 'acinclude.m4'.

Details:

The command './configure --with-included-gettext' stops with the following
error:

  checking whether NLS is wanted... yes
  checking whether to use included gettext... yes
  checking for getcwd... yes
  checking for setlocale... yes
  checking for stpcpy... no
  ./configure: test: argument expected

Further examination of 'configure' revealed that in line 2781 of 'configure' 

  if test $ac_cv_header_locale_h = yes; then

the variable 'ac_cv_header_locale_h' is tested without having a value,
producing the error mentioned above.

Although there is a check for the file 'locale.h' in 'configure' (beginning
in line 2547) it is not executed because it is surrounded by a test for
the absence of the command line option '--with-included-gettext' (beginning
in line 2537) which I _did_ supply. Thus, the variable 'ac_cv_header_locale_h'
had no value when I executed './configure --with-included-gettext'.

I tested this behaviour also on a NetBSD 1.5 machine: 

  checking for setlocale... yes
  checking for stpcpy... no
  test: yes: unexpected operator
  checking which translations to install... de es fr ja ko nl pl pt_BR ru
  checking for nanoseconds member of struct stat.st_mtim... no

Obviously, the error is not fatal for the 'test' command in NetBSD 1.5 but
it is in Solaris 7.

Solution:

Add the line:

  AC_CHECK_HEADER(locale.h)

after line 493 (AC_CHECK_FUNCS(getcwd setlocale stpcpy)) of the file
'acinclude.m4' and then run 'aclocal' and 'autoconf'. This ensures that
the test of 'ac_cv_header_locale_h', produced by the macro 'AM_LC_MESSAGES'
in the following line of 'acinclude.m4', runs correctly in 'configure'

ciao
     Klaus Heinz

PS: I noticed an old e-mail address of mine (Klaus Heinz
    <address@hidden>) in the file 'AUTHORS' in the GNU make
    archive. Please remove this old address which is not valid anymore.
    If you like, you can substitute it with '<address@hidden>'.



reply via email to

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