# HG changeset patch # User diego # Date 1231678686 0 # Node ID 89b5b5b03ff425b151b7cc53792e912aa3bb9048 # Parent 4e1becdb816eb41d13bbb17b17d3fa457a8fe52f cosmetics: Move some checks to more logical places. diff -r 4e1becdb816e -r 89b5b5b03ff4 configure --- a/configure Sun Jan 11 12:17:46 2009 +0000 +++ b/configure Sun Jan 11 12:58:06 2009 +0000 @@ -2977,6 +2977,53 @@ fi echores "$_network" + +echocheck "inet6" +if test "$_inet6" = auto ; then + cat > $TMPC << EOF +#include +#if !defined(_WIN32) || defined(__CYGWIN__) +#include +#include +#else +#include +#endif +int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); return 0; } +EOF + _inet6=no + if cc_check $_ld_sock ; then + _inet6=yes + fi +fi +if test "$_inet6" = yes ; then + _def_inet6='#define HAVE_AF_INET6 1' +else + _def_inet6='#undef HAVE_AF_INET6' +fi +echores "$_inet6" + + +echocheck "gethostbyname2" +if test "$_gethostbyname2" = auto ; then +cat > $TMPC << EOF +#include +#include +#include +int main(void) { gethostbyname2("", AF_INET); return 0; } +EOF + _gethostbyname2=no + if cc_check ; then + _gethostbyname2=yes + fi +fi +if test "$_gethostbyname2" = yes ; then + _def_gethostbyname2='#define HAVE_GETHOSTBYNAME2 1' +else + _def_gethostbyname2='#undef HAVE_GETHOSTBYNAME2' +fi +echores "$_gethostbyname2" + + echocheck "inttypes.h (required)" cat > $TMPC << EOF #include @@ -3074,6 +3121,16 @@ echores "$_alloca" +echocheck "fastmemcpy" +# fastmemcpy check is done earlier with tests of CPU & binutils features +if test "$_fastmemcpy" = yes ; then + _def_fastmemcpy='#define CONFIG_FASTMEMCPY 1' +else + _def_fastmemcpy='#undef CONFIG_FASTMEMCPY' +fi +echores "$_fastmemcpy" + + echocheck "mman.h" cat > $TMPC << EOF #include @@ -3517,6 +3574,15 @@ echores "$_posix_select" +echocheck "audio select()" +if test "$_select" = no ; then + _def_select='#undef HAVE_AUDIO_SELECT' +elif test "$_select" = yes ; then + _def_select='#define HAVE_AUDIO_SELECT 1' +fi +echores "$_select" + + echocheck "gettimeofday()" cat > $TMPC << EOF #include @@ -4988,25 +5054,6 @@ fi #if win32; then -echocheck "NAS" -if test "$_nas" = auto ; then - cat > $TMPC << EOF -#include