Reported by Derek R. Price.
* tests/semantics.at (AC_REPLACE_FUNCS): New test.
* acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use
AC_LIBSOURCES.
* Status
- /*------------.
- | Don't use. |
- `------------*/
+ /*-------------.
+ | Do not use. |
+ `-------------*/
* Serious Problems
** AC_TRY_EVAL of multi line commands
-Is broken.
+Is broken. The problem is mostly that, again, the policy wrt special
+characters is not clearly defined. Because of this,
+_AC_INIT_PREPARE_FS_SEPARATORS will output undesired messages, but is
+not guilty.
+
+./configure: /home/lrde/prof/akim/src/ace/tests; conftest.sh: Aucun fichier ou répertoire de ce type
+
+AC_TRY_COMMAND is.
+
+** AC_CHECK_PROG
+
+and all the macros that use it, are paying the change for test -f to
+test -x to determine whether a candidate path is an executable: now we
+have false positives with directories which, indeed, are test -x.
# This file is part of Autoconf. -*- Autoconf -*-
# Parameterized macros.
-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# ------------------
m4_define([_AC_INIT_COPYRIGHT],
[AC_COPYRIGHT(
-[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.])dnl
])# _AC_INIT_VERSION
+# _AC_INIT_PREPARE_FS_SEPARATORS
+# ------------------------------
+# Compute the directory and path separators.
+# FIXME: Full version should include dir separator, documentation about
+# AC_SUBST'ed variables etc.
+m4_define([_AC_INIT_PREPARE_FS_SEPARATORS],
+[echo "#! $SHELL" >conftest.sh
+echo "exit 0" >>conftest.sh
+chmod +x conftest.sh
+if AC_TRY_COMMAND([PATH=".;`pwd`"; conftest.sh]); then
+ ac_path_separator=';'
+else
+ ac_path_separator=:
+fi
+AC_SUBST([PATH_SEPARATOR], "$ac_path_separator")dnl
+rm -f conftest.sh
+])
+
+
# _AC_INIT_PREPARE
# ----------------
# Called by AC_INIT to build the preamble of the `configure' scripts.
AC_LANG_PUSH(C)
_AC_PROG_ECHO()dnl
+_AC_INIT_PREPARE_FS_SEPARATORS
+
dnl Substitute for predefined variables.
AC_SUBST(DEFS)dnl
AC_SUBST(LIBS)dnl
# expansions, not every word. This closes a longstanding sh security
# hole.
m4_define([AC_SHELL_PATH_WALK],
-[ac_save_IFS=$IFS; IFS=':'
+[ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="m4_default([$1], [$PATH])"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
# This file is part of Autoconf. -*- Autoconf -*-
# Parameterized macros.
-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# ------------------
m4_define([_AC_INIT_COPYRIGHT],
[AC_COPYRIGHT(
-[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.])dnl
])# _AC_INIT_VERSION
+# _AC_INIT_PREPARE_FS_SEPARATORS
+# ------------------------------
+# Compute the directory and path separators.
+# FIXME: Full version should include dir separator, documentation about
+# AC_SUBST'ed variables etc.
+m4_define([_AC_INIT_PREPARE_FS_SEPARATORS],
+[echo "#! $SHELL" >conftest.sh
+echo "exit 0" >>conftest.sh
+chmod +x conftest.sh
+if AC_TRY_COMMAND([PATH=".;`pwd`"; conftest.sh]); then
+ ac_path_separator=';'
+else
+ ac_path_separator=:
+fi
+AC_SUBST([PATH_SEPARATOR], "$ac_path_separator")dnl
+rm -f conftest.sh
+])
+
+
# _AC_INIT_PREPARE
# ----------------
# Called by AC_INIT to build the preamble of the `configure' scripts.
AC_LANG_PUSH(C)
_AC_PROG_ECHO()dnl
+_AC_INIT_PREPARE_FS_SEPARATORS
+
dnl Substitute for predefined variables.
AC_SUBST(DEFS)dnl
AC_SUBST(LIBS)dnl
# expansions, not every word. This closes a longstanding sh security
# hole.
m4_define([AC_SHELL_PATH_WALK],
-[ac_save_IFS=$IFS; IFS=':'
+[ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="m4_default([$1], [$PATH])"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS