Ver Fonte

autotools: fix actually wrong use of AC_MSG_RESULT

Ozkan Sezer há 1 ano atrás
pai
commit
657f5f791c
2 ficheiros alterados com 7 adições e 7 exclusões
  1. 5 5
      configure
  2. 2 2
      configure.ac

+ 5 - 5
configure

@@ -19219,13 +19219,15 @@ then :
   ac_cv_func_alloca_works=yes
 else $as_nop
   ac_cv_func_alloca_works=no
+
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam \
     conftest$ac_exeext conftest.$ac_ext
 fi
+
+fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
-fi
 
 if test $ac_cv_func_alloca_works = yes; then
 
@@ -20135,15 +20137,13 @@ printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
               fi
            fi
            if test x$use_libiconv = xyes; then
-              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -- Using iconv() from libiconv" >&5
-printf "%s\n" "-- Using iconv() from libiconv" >&6; }
 
 printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
 
               EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
+              echo "-- Using iconv from libiconv"
            else
-              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -- Using iconv() from libc" >&5
-printf "%s\n" "-- Using iconv() from libc" >&6; }
+              echo "-- Using iconv from libc"
            fi
         fi
     fi

+ 2 - 2
configure.ac

@@ -398,11 +398,11 @@ dnl Checks for library functions.
               fi
            fi
            if test x$use_libiconv = xyes; then
-              AC_MSG_RESULT([-- Using iconv() from libiconv])
               AC_DEFINE(SDL_USE_LIBICONV,1,[ ])
               EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
+              echo "-- Using iconv from libiconv"
            else
-              AC_MSG_RESULT([-- Using iconv() from libc])
+              echo "-- Using iconv from libc"
            fi
         fi
     fi