From: Akim Demaille Date: Mon, 5 Feb 2001 17:33:00 +0000 (+0000) Subject: acfunctions.m4 was still using the old AC_LIBOBJ_DECL. X-Git-Tag: autoconf-2.50~154 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bf59957c4da9057a3c3afa3a8a3292efb03be53;p=thirdparty%2Fautoconf.git acfunctions.m4 was still using the old AC_LIBOBJ_DECL. Reported by Derek R. Price. * tests/semantics.at (AC_REPLACE_FUNCS): New test. * acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use AC_LIBSOURCES. --- diff --git a/BUGS b/BUGS index 6f3bc0131..a2c91374b 100644 --- a/BUGS +++ b/BUGS @@ -15,9 +15,9 @@ address them. * Status - /*------------. - | Don't use. | - `------------*/ + /*-------------. + | Do not use. | + `-------------*/ * Serious Problems @@ -37,4 +37,17 @@ specified. ** 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. diff --git a/acgeneral.m4 b/acgeneral.m4 index 9e4a0d133..5a0e8ab5d 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1,6 +1,6 @@ # 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 @@ -662,7 +662,7 @@ m4_ifset([AC_PACKAGE_BUGREPORT], # ------------------ 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 @@ -1361,6 +1361,25 @@ fi])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. @@ -1446,6 +1465,8 @@ _AC_ARG_VAR_PRECIOUS(target_alias)dnl 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 @@ -2301,7 +2322,7 @@ $ac_includes_default])]) # 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 diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 9e4a0d133..5a0e8ab5d 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1,6 +1,6 @@ # 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 @@ -662,7 +662,7 @@ m4_ifset([AC_PACKAGE_BUGREPORT], # ------------------ 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 @@ -1361,6 +1361,25 @@ fi])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. @@ -1446,6 +1465,8 @@ _AC_ARG_VAR_PRECIOUS(target_alias)dnl 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 @@ -2301,7 +2322,7 @@ $ac_includes_default])]) # 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