bug-gnulib
[Top][All Lists]
Advanced

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

gnulib update broke clisp


From: Sam Steingold
Subject: gnulib update broke clisp
Date: Thu, 15 Jan 2009 11:11:16 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080506)

Hi,
I updated gnulib files in clisp (last time I did it was in late October), and now clisp configure scripts break. this can be tracked down to AC_CONFIG_AUX_DIR_DEFAULT being expanded _before_ my AC_CONFIG_AUX_DIR(../../src/build-aux), thus I have both

============================== AC_CONFIG_AUX_DIR_DEFAULT
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
============================== AC_CONFIG_AUX_DIR_DEFAULT
and
============================== AC_CONFIG_AUX_DIR(../../src/build-aux)
for ac_dir in ../../src/build-aux "$srcdir"/../../src/build-aux; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../src/build-aux \"$srcdir\"/../../src/build-aux" >&5 $as_echo "$as_me: error: cannot find install-sh or install.sh in ../../src/build-aux \"$srcdir\"/../../src/build-aux" >&2;}
   { (exit 1); exit 1; }; }
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
============================== AC_CONFIG_AUX_DIR(../../src/build-aux)

the configure.in is:
============================== configure.in
AC_PREREQ(2.57)
AC_INIT(i18n, 1.0, clisp-list)
AC_CONFIG_SRCDIR(i18n.lisp)
AC_CONFIG_HEADERS(config.h)

RSE_BOLD
BOLD_MSG([I18N (Common)])
CL_MODULE_COMMON_CHECKS(../../src/build-aux)
============================== configure.in
and

AC_DEFUN([CL_MODULE_COMMON_CHECKS],
[AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_CPP])dnl
AC_REQUIRE([AC_GNU_SOURCE])dnl
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])dnl
AC_CONFIG_AUX_DIR($1)dnl
AC_CHECK_HEADERS(time.h sys/time.h)dnl
])

I decided to move AC_CONFIG_AUX_DIR($1) up:

AC_DEFUN([CL_MODULE_COMMON_CHECKS],[dnl
AC_CONFIG_AUX_DIR($1)dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_CPP])dnl
AC_REQUIRE([AC_GNU_SOURCE])dnl
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])dnl
AC_CHECK_HEADERS(time.h sys/time.h)dnl
])

and indeed now the configure files have just one section trying to set ac_aux_dir, but this section somehow comes after the AC_CANONICAL_BUILD (which I do not call myself):

==============================
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   { (exit 1); exit 1; }; }
==============================

comes before the code which sets ac_aux_dir thus I get this error:

configure: loading cache ../config.cache
configure: ** I18N (Common)
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
configure: error: cannot run /bin/sh /config.sub
make: *** [i18n] Error 1

I am lost.
Any suggestions?

Sam.





reply via email to

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