From: Akim Demaille Date: Thu, 11 Jan 2001 15:17:13 +0000 (+0000) Subject: * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): New. X-Git-Tag: autoconf-2.50~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e20443008d6acf3324a7b4f548814b9bebd7e25d;p=thirdparty%2Fautoconf.git * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): New. (AC_PROG_CC, AC_PROG_CXX): Use it. (AC_PROG_CC_STDC): Be sure to remove tmp files. * tests/compile.at (AC_TRY_LINK_FUNC): Don't use exit to test it, since it produces a prototype which conflicts with the one computed by _AC_PROG_CXX_EXIT_DECLARATION. * tests/semantics.at (AC_CHECK_FUNCS, AC_HAVE_FUNCS): Likewise. (AC_HAVE_FUNCS): Test AC_HAVE_FUNCS! --- diff --git a/ChangeLog b/ChangeLog index 3370612e7..f5d3523f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2001-01-11 Akim Demaille + + * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): New. + (AC_PROG_CC, AC_PROG_CXX): Use it. + (AC_PROG_CC_STDC): Be sure to remove tmp files. + * tests/compile.at (AC_TRY_LINK_FUNC): Don't use exit to test it, + since it produces a prototype which conflicts with the one + computed by _AC_PROG_CXX_EXIT_DECLARATION. + * tests/semantics.at (AC_CHECK_FUNCS, AC_HAVE_FUNCS): Likewise. + (AC_HAVE_FUNCS): Test AC_HAVE_FUNCS! + 2001-01-11 Kevin Ryde * autoconf.texi (Shellology): Fix an @end itemize, and a typo. diff --git a/TODO b/TODO index 2ef384c77..3b301fbeb 100644 --- a/TODO +++ b/TODO @@ -40,6 +40,12 @@ Write a test that checks that it honors the values set by the user. Chose a means to declare patterns to catch, means to escape the control, and document it. +** AC_CHECK_FUNCS and AC_TRY_LINK_FUNC +I have still not understood what's the difference between the two +which requires to have two different sources: AC_LANG_CALL and +AC_LANG_FUNC_LINK_TRY (which names seem to be inappropriate). +Wouldn't one be enough? + * Autoconf 2.51 or so ** AC_FUNC_GETLOADAVG diff --git a/aclang.m4 b/aclang.m4 index d60782df1..58650bdb2 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -405,7 +405,7 @@ m4_define([AC_LANG_BOOL_COMPILE_TRY(C)], # We need `stdio.h' to open a `FILE', so the prologue defaults to the # inclusion of `stdio.h'. m4_define([AC_LANG_INT_SAVE(C)], -[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])], +[AC_LANG_PROGRAM([m4_default([$1], [@%:@include ])], [FILE *f = fopen ("conftestval", "w"); if (!f) exit (1); @@ -419,42 +419,31 @@ fclose (f);])]) # AC_LANG_SOURCE(C++)(BODY) # ------------------------- -m4_define([AC_LANG_SOURCE(C++)], -[#line __oline__ "configure" -#include "confdefs.h" -#ifdef __cplusplus -extern "C" void exit (int); -#endif -$1]) +m4_copy([AC_LANG_SOURCE(C)], [AC_LANG_SOURCE(C++)]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # ---------------------------------------- -# Same as C. m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)]) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # ------------------------------------- -# Same as C. m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)]) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # ------------------------------------ -# Same as C. m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)]) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # --------------------------------------------------- -# Same as C. m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)]) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # ------------------------------------------- -# Same as C. m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)]) @@ -879,6 +868,14 @@ GCC=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CC_G +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +_AC_COMPILE_IFELSE([@%:@ifndef __cplusplus + choke me +@%:@endif], + [_AC_PROG_CXX_EXIT_DECLARATION]) AC_LANG_POP ])# AC_PROG_CC @@ -987,7 +984,6 @@ fi ])# AC_PROG_CC_C_O - # ---------------------- # # 3c. The C++ compiler. # # ---------------------- # @@ -1076,6 +1072,7 @@ GXX=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CXX_G +_AC_PROG_CXX_EXIT_DECLARATION AC_LANG_POP ])# AC_PROG_CXX @@ -1111,6 +1108,32 @@ fi[]dnl ])# _AC_PROG_CXX_G +# _AC_PROG_CXX_EXIT_DECLARATION +# ----------------------------- +# Find a valid prototype for exit and declare it in confdefs.h. +m4_define([_AC_PROG_CXX_EXIT_DECLARATION], +[for ac_declaration in \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' \ + '' +do + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include +$ac_declaration], + [exit (42);])], + [], + [continue]) + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration], + [exit (42);])], + [break]) +done +echo '#ifdef __cplusplus' >>confdefs.h +echo $ac_declaration >>confdefs.h +echo '#endif' >>confdefs.h +])# _AC_PROG_CXX_EXIT_DECLARATION + # ----------------------------- # # 3d. The Fortran 77 compiler. # @@ -1317,9 +1340,9 @@ do CC="$ac_save_CC $ac_arg" AC_COMPILE_IFELSE([], [ac_cv_prog_cc_stdc=$ac_arg -rm -f conftest.$ac_ext conftest.$ac_objext break]) done +rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC ]) case "x$ac_cv_prog_cc_stdc" in diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index d60782df1..58650bdb2 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -405,7 +405,7 @@ m4_define([AC_LANG_BOOL_COMPILE_TRY(C)], # We need `stdio.h' to open a `FILE', so the prologue defaults to the # inclusion of `stdio.h'. m4_define([AC_LANG_INT_SAVE(C)], -[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])], +[AC_LANG_PROGRAM([m4_default([$1], [@%:@include ])], [FILE *f = fopen ("conftestval", "w"); if (!f) exit (1); @@ -419,42 +419,31 @@ fclose (f);])]) # AC_LANG_SOURCE(C++)(BODY) # ------------------------- -m4_define([AC_LANG_SOURCE(C++)], -[#line __oline__ "configure" -#include "confdefs.h" -#ifdef __cplusplus -extern "C" void exit (int); -#endif -$1]) +m4_copy([AC_LANG_SOURCE(C)], [AC_LANG_SOURCE(C++)]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # ---------------------------------------- -# Same as C. m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)]) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # ------------------------------------- -# Same as C. m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)]) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # ------------------------------------ -# Same as C. m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)]) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # --------------------------------------------------- -# Same as C. m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)]) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # ------------------------------------------- -# Same as C. m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)]) @@ -879,6 +868,14 @@ GCC=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CC_G +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +_AC_COMPILE_IFELSE([@%:@ifndef __cplusplus + choke me +@%:@endif], + [_AC_PROG_CXX_EXIT_DECLARATION]) AC_LANG_POP ])# AC_PROG_CC @@ -987,7 +984,6 @@ fi ])# AC_PROG_CC_C_O - # ---------------------- # # 3c. The C++ compiler. # # ---------------------- # @@ -1076,6 +1072,7 @@ GXX=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CXX_G +_AC_PROG_CXX_EXIT_DECLARATION AC_LANG_POP ])# AC_PROG_CXX @@ -1111,6 +1108,32 @@ fi[]dnl ])# _AC_PROG_CXX_G +# _AC_PROG_CXX_EXIT_DECLARATION +# ----------------------------- +# Find a valid prototype for exit and declare it in confdefs.h. +m4_define([_AC_PROG_CXX_EXIT_DECLARATION], +[for ac_declaration in \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' \ + '' +do + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include +$ac_declaration], + [exit (42);])], + [], + [continue]) + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration], + [exit (42);])], + [break]) +done +echo '#ifdef __cplusplus' >>confdefs.h +echo $ac_declaration >>confdefs.h +echo '#endif' >>confdefs.h +])# _AC_PROG_CXX_EXIT_DECLARATION + # ----------------------------- # # 3d. The Fortran 77 compiler. # @@ -1317,9 +1340,9 @@ do CC="$ac_save_CC $ac_arg" AC_COMPILE_IFELSE([], [ac_cv_prog_cc_stdc=$ac_arg -rm -f conftest.$ac_ext conftest.$ac_objext break]) done +rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC ]) case "x$ac_cv_prog_cc_stdc" in diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index d60782df1..58650bdb2 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -405,7 +405,7 @@ m4_define([AC_LANG_BOOL_COMPILE_TRY(C)], # We need `stdio.h' to open a `FILE', so the prologue defaults to the # inclusion of `stdio.h'. m4_define([AC_LANG_INT_SAVE(C)], -[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])], +[AC_LANG_PROGRAM([m4_default([$1], [@%:@include ])], [FILE *f = fopen ("conftestval", "w"); if (!f) exit (1); @@ -419,42 +419,31 @@ fclose (f);])]) # AC_LANG_SOURCE(C++)(BODY) # ------------------------- -m4_define([AC_LANG_SOURCE(C++)], -[#line __oline__ "configure" -#include "confdefs.h" -#ifdef __cplusplus -extern "C" void exit (int); -#endif -$1]) +m4_copy([AC_LANG_SOURCE(C)], [AC_LANG_SOURCE(C++)]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # ---------------------------------------- -# Same as C. m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)]) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # ------------------------------------- -# Same as C. m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)]) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # ------------------------------------ -# Same as C. m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)]) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # --------------------------------------------------- -# Same as C. m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)]) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # ------------------------------------------- -# Same as C. m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)]) @@ -879,6 +868,14 @@ GCC=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CC_G +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +_AC_COMPILE_IFELSE([@%:@ifndef __cplusplus + choke me +@%:@endif], + [_AC_PROG_CXX_EXIT_DECLARATION]) AC_LANG_POP ])# AC_PROG_CC @@ -987,7 +984,6 @@ fi ])# AC_PROG_CC_C_O - # ---------------------- # # 3c. The C++ compiler. # # ---------------------- # @@ -1076,6 +1072,7 @@ GXX=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CXX_G +_AC_PROG_CXX_EXIT_DECLARATION AC_LANG_POP ])# AC_PROG_CXX @@ -1111,6 +1108,32 @@ fi[]dnl ])# _AC_PROG_CXX_G +# _AC_PROG_CXX_EXIT_DECLARATION +# ----------------------------- +# Find a valid prototype for exit and declare it in confdefs.h. +m4_define([_AC_PROG_CXX_EXIT_DECLARATION], +[for ac_declaration in \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' \ + '' +do + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include +$ac_declaration], + [exit (42);])], + [], + [continue]) + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration], + [exit (42);])], + [break]) +done +echo '#ifdef __cplusplus' >>confdefs.h +echo $ac_declaration >>confdefs.h +echo '#endif' >>confdefs.h +])# _AC_PROG_CXX_EXIT_DECLARATION + # ----------------------------- # # 3d. The Fortran 77 compiler. # @@ -1317,9 +1340,9 @@ do CC="$ac_save_CC $ac_arg" AC_COMPILE_IFELSE([], [ac_cv_prog_cc_stdc=$ac_arg -rm -f conftest.$ac_ext conftest.$ac_objext break]) done +rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC ]) case "x$ac_cv_prog_cc_stdc" in diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index d60782df1..58650bdb2 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -405,7 +405,7 @@ m4_define([AC_LANG_BOOL_COMPILE_TRY(C)], # We need `stdio.h' to open a `FILE', so the prologue defaults to the # inclusion of `stdio.h'. m4_define([AC_LANG_INT_SAVE(C)], -[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])], +[AC_LANG_PROGRAM([m4_default([$1], [@%:@include ])], [FILE *f = fopen ("conftestval", "w"); if (!f) exit (1); @@ -419,42 +419,31 @@ fclose (f);])]) # AC_LANG_SOURCE(C++)(BODY) # ------------------------- -m4_define([AC_LANG_SOURCE(C++)], -[#line __oline__ "configure" -#include "confdefs.h" -#ifdef __cplusplus -extern "C" void exit (int); -#endif -$1]) +m4_copy([AC_LANG_SOURCE(C)], [AC_LANG_SOURCE(C++)]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # ---------------------------------------- -# Same as C. m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)]) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # ------------------------------------- -# Same as C. m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)]) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # ------------------------------------ -# Same as C. m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)]) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # --------------------------------------------------- -# Same as C. m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)]) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # ------------------------------------------- -# Same as C. m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)]) @@ -879,6 +868,14 @@ GCC=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CC_G +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +_AC_COMPILE_IFELSE([@%:@ifndef __cplusplus + choke me +@%:@endif], + [_AC_PROG_CXX_EXIT_DECLARATION]) AC_LANG_POP ])# AC_PROG_CC @@ -987,7 +984,6 @@ fi ])# AC_PROG_CC_C_O - # ---------------------- # # 3c. The C++ compiler. # # ---------------------- # @@ -1076,6 +1072,7 @@ GXX=`test $ac_compiler_gnu = yes && echo yes` AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl _AC_PROG_CXX_G +_AC_PROG_CXX_EXIT_DECLARATION AC_LANG_POP ])# AC_PROG_CXX @@ -1111,6 +1108,32 @@ fi[]dnl ])# _AC_PROG_CXX_G +# _AC_PROG_CXX_EXIT_DECLARATION +# ----------------------------- +# Find a valid prototype for exit and declare it in confdefs.h. +m4_define([_AC_PROG_CXX_EXIT_DECLARATION], +[for ac_declaration in \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' \ + '' +do + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include +$ac_declaration], + [exit (42);])], + [], + [continue]) + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration], + [exit (42);])], + [break]) +done +echo '#ifdef __cplusplus' >>confdefs.h +echo $ac_declaration >>confdefs.h +echo '#endif' >>confdefs.h +])# _AC_PROG_CXX_EXIT_DECLARATION + # ----------------------------- # # 3d. The Fortran 77 compiler. # @@ -1317,9 +1340,9 @@ do CC="$ac_save_CC $ac_arg" AC_COMPILE_IFELSE([], [ac_cv_prog_cc_stdc=$ac_arg -rm -f conftest.$ac_ext conftest.$ac_objext break]) done +rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC ]) case "x$ac_cv_prog_cc_stdc" in diff --git a/tests/compile.at b/tests/compile.at index 0adda3c99..817ef1df8 100644 --- a/tests/compile.at +++ b/tests/compile.at @@ -109,8 +109,8 @@ AT_CLEANUP ## ------------------ ## AT_CHECK_MACRO([AC_TRY_LINK_FUNC], -[AC_TRY_LINK_FUNC(exit,, - [AC_MSG_ERROR([cannot find `exit'])]) +[AC_TRY_LINK_FUNC(printf,, + [AC_MSG_ERROR([cannot find `printf'])]) AC_TRY_LINK_FUNC(Be_doomed_if_your_libc_has_a_function_named_like_this, [AC_MSG_ERROR([found a nonexistent function])])]) diff --git a/tests/semantics.at b/tests/semantics.at index fd470e62e..6d4adf80f 100644 --- a/tests/semantics.at +++ b/tests/semantics.at @@ -38,12 +38,12 @@ AT_CHECK_MACRO([AC_CHECK_DECLS], # AC_CHECK_FUNCS # -------------- # Check that it performs the correct actions: -# Must define HAVE_EXIT, but not HAVE_AUTOCONF_TIXE +# Must define HAVE_PRINTF, but not HAVE_AUTOCONF_FTNIRP AT_CHECK_MACRO([AC_CHECK_FUNCS], -[AC_CHECK_FUNCS(exit autoconf_tixe)], +[AC_CHECK_FUNCS(printf autoconf_ftnirp)], [AT_CHECK_DEFINES( -[/* #undef HAVE_AUTOCONF_TIXE */ -#define HAVE_EXIT 1 +[/* #undef HAVE_AUTOCONF_FTNIRP */ +#define HAVE_PRINTF 1 ])]) @@ -52,10 +52,10 @@ AT_CHECK_MACRO([AC_CHECK_FUNCS], # This macro is an obsolete version of AC_CHECK_FUNCS. Running this # test allows to check that AU_ALIAS'ed macros work properly. AT_CHECK_MACRO([AC_HAVE_FUNCS], -[AC_CHECK_FUNCS(exit autoconf_tixe)], +[AC_HAVE_FUNCS(printf autoconf_ftnirp)], [AT_CHECK_DEFINES( -[/* #undef HAVE_AUTOCONF_TIXE */ -#define HAVE_EXIT 1 +[/* #undef HAVE_AUTOCONF_FTNIRP */ +#define HAVE_PRINTF 1 ])])