diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-20 02:48:48 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-20 02:48:48 +0000 |
commit | cc542269a165dac8adcf33d827e951df7259f516 (patch) | |
tree | 3e7dd26d1ad7a7cfd9170bbbb9eb913805801b72 | |
parent | 7b488a3befb0483e719f2751c4749e4b629921e5 (diff) |
Give third argument to AC_DEFINE_UNQUOTED
-rw-r--r-- | configure.ac | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 1abe464a1..61d813a47 100644 --- a/configure.ac +++ b/configure.ac @@ -1577,7 +1577,7 @@ fi dnl For some reason, the check above doesn't properly detect select() with dnl Msys/Mingw -if test "$ac_cv_func_select" != "yes"; then +if test "$ac_cv_func_select" = "no"; then AC_MSG_CHECKING([for select in ws2_32]) AC_TRY_LINK([ #undef inline @@ -1594,14 +1594,16 @@ if test "$ac_cv_func_select" != "yes"; then #endif #endif #endif - ], - [select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);], - [ dnl worked! - AC_MSG_RESULT([yes]) - HAVE_SELECT="1" - AC_DEFINE_UNQUOTED(HAVE_SELECT,1)], - [AC_MSG_ERROR(You can't compile without a select)] - ) + ],[ + select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL); + ],[ + AC_MSG_RESULT([yes]) + HAVE_SELECT="1" + AC_DEFINE_UNQUOTED(HAVE_SELECT, 1, + [Define to 1 if you have the select function.]) + ],[ + AC_MSG_ERROR(You can't compile without a select) + ]) fi dnl Msys/Mingw does not detect getnameinfo() in AC_CHECK_FUNCS. |