From: Akim Demaille Date: Wed, 11 Oct 2000 14:51:28 +0000 (+0000) Subject: * acgeneral.m4 (AC_RUN_IFELSE): Add missing executable suffix. X-Git-Tag: autoconf-2.50~591 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=505d2c60df6720f532fb7a6957f3a43c406ffc43;p=thirdparty%2Fautoconf.git * acgeneral.m4 (AC_RUN_IFELSE): Add missing executable suffix. * aclang.m4 (_AC_LANG_COMPILER_WORKS): Likewise. * aclang.m4 (AC_PROG_CC_C_O, AC_PROG_F77_C_O): Fix typos where $objext were used instead of $ac_objext. --- diff --git a/ChangeLog b/ChangeLog index 2a40f252b..d3922f2b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-10-11 Morten Eriksen + + * acgeneral.m4 (AC_RUN_IFELSE): Add missing executable suffix. + * aclang.m4 (_AC_LANG_COMPILER_WORKS): Likewise. + * aclang.m4 (AC_PROG_CC_C_O, AC_PROG_F77_C_O): Fix typos where + $objext were used instead of $ac_objext. + 2000-10-05 Akim Demaille Check that updated scripts are valid scripts. diff --git a/acgeneral.m4 b/acgeneral.m4 index a7490277e..8b5b89a80 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -3455,7 +3455,7 @@ AC_DEFUN([AC_RUN_IFELSE], [AC_LANG_COMPILER_REQUIRE()dnl m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl if AC_TRY_EVAL(ac_link) && - test -s conftest$ac_exeext && (./conftest; exit) 2>/dev/null; then + test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null; then m4_default([$2], :) else echo "configure: failed program was:" >&AC_FD_LOG diff --git a/aclang.m4 b/aclang.m4 index ec69db300..2382fd737 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -523,7 +523,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM()], [# FIXME: these cross compiler hacks should be removed for autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then - if AC_TRY_COMMAND(./conftest); then + if AC_TRY_COMMAND(./conftest$ac_exeext); then cross_compiling=no else if test "$cross_compiling" = maybe; then @@ -796,9 +796,9 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. -ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' +ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then @@ -806,7 +806,7 @@ then if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AC_FD_LOG); then ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then # cc works too. : @@ -1089,8 +1089,8 @@ AC_CACHE_CHECK([whether $F77 understand -c and -o together], # We do the `AC_TRY_EVAL' test twice because some compilers refuse to # overwrite an existing `.o' file with `-o', although they will create # one. -ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' -if AC_TRY_EVAL(ac_try) && test -f conftest.$objext && AC_TRY_EVAL(ac_try); then +ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' +if AC_TRY_EVAL(ac_try) && test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then ac_cv_prog_f77_c_o=yes else ac_cv_prog_f77_c_o=no diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index ec69db300..2382fd737 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -523,7 +523,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM()], [# FIXME: these cross compiler hacks should be removed for autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then - if AC_TRY_COMMAND(./conftest); then + if AC_TRY_COMMAND(./conftest$ac_exeext); then cross_compiling=no else if test "$cross_compiling" = maybe; then @@ -796,9 +796,9 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. -ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' +ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then @@ -806,7 +806,7 @@ then if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AC_FD_LOG); then ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then # cc works too. : @@ -1089,8 +1089,8 @@ AC_CACHE_CHECK([whether $F77 understand -c and -o together], # We do the `AC_TRY_EVAL' test twice because some compilers refuse to # overwrite an existing `.o' file with `-o', although they will create # one. -ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' -if AC_TRY_EVAL(ac_try) && test -f conftest.$objext && AC_TRY_EVAL(ac_try); then +ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' +if AC_TRY_EVAL(ac_try) && test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then ac_cv_prog_f77_c_o=yes else ac_cv_prog_f77_c_o=no diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index ec69db300..2382fd737 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -523,7 +523,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM()], [# FIXME: these cross compiler hacks should be removed for autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then - if AC_TRY_COMMAND(./conftest); then + if AC_TRY_COMMAND(./conftest$ac_exeext); then cross_compiling=no else if test "$cross_compiling" = maybe; then @@ -796,9 +796,9 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. -ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' +ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then @@ -806,7 +806,7 @@ then if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AC_FD_LOG); then ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then # cc works too. : @@ -1089,8 +1089,8 @@ AC_CACHE_CHECK([whether $F77 understand -c and -o together], # We do the `AC_TRY_EVAL' test twice because some compilers refuse to # overwrite an existing `.o' file with `-o', although they will create # one. -ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' -if AC_TRY_EVAL(ac_try) && test -f conftest.$objext && AC_TRY_EVAL(ac_try); then +ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' +if AC_TRY_EVAL(ac_try) && test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then ac_cv_prog_f77_c_o=yes else ac_cv_prog_f77_c_o=no diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index a7490277e..8b5b89a80 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -3455,7 +3455,7 @@ AC_DEFUN([AC_RUN_IFELSE], [AC_LANG_COMPILER_REQUIRE()dnl m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl if AC_TRY_EVAL(ac_link) && - test -s conftest$ac_exeext && (./conftest; exit) 2>/dev/null; then + test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null; then m4_default([$2], :) else echo "configure: failed program was:" >&AC_FD_LOG diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index ec69db300..2382fd737 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -523,7 +523,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM()], [# FIXME: these cross compiler hacks should be removed for autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then - if AC_TRY_COMMAND(./conftest); then + if AC_TRY_COMMAND(./conftest$ac_exeext); then cross_compiling=no else if test "$cross_compiling" = maybe; then @@ -796,9 +796,9 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. -ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' +ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then @@ -806,7 +806,7 @@ then if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AC_FD_LOG); then ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' if AC_TRY_EVAL(ac_try) && - test -f conftest.$objext && AC_TRY_EVAL(ac_try); + test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then # cc works too. : @@ -1089,8 +1089,8 @@ AC_CACHE_CHECK([whether $F77 understand -c and -o together], # We do the `AC_TRY_EVAL' test twice because some compilers refuse to # overwrite an existing `.o' file with `-o', although they will create # one. -ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG' -if AC_TRY_EVAL(ac_try) && test -f conftest.$objext && AC_TRY_EVAL(ac_try); then +ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG' +if AC_TRY_EVAL(ac_try) && test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then ac_cv_prog_f77_c_o=yes else ac_cv_prog_f77_c_o=no