summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-03-30 02:41:24 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-03-30 02:41:24 +0000
commite540079b6095dd3305a650e1c2b19b4feef37b50 (patch)
treefc4882cf50e6bd6060ceb8560175b1ec1f352500 /m4
parent75994ca3458b4d87274c699b9a723857f191ba0e (diff)
downloadATCD-e540079b6095dd3305a650e1c2b19b4feef37b50.tar.gz
Forgot to finish modifying some of the asynch IO test reorganization.
Diffstat (limited to 'm4')
-rw-r--r--m4/features.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/m4/features.m4 b/m4/features.m4
index b247ff6e97a..9960cb8c26d 100644
--- a/m4/features.m4
+++ b/m4/features.m4
@@ -29,6 +29,13 @@ AC_DEFUN(ACE_CHECK_ASYNCH_IO, dnl
AC_REQUIRE([AC_PROG_CXXCPP])
AC_REQUIRE([AC_LANG_CPLUSPLUS])
+ dnl In case a library with the asynchronous libraries is found but
+ dnl the asynchronous IO support is not functional then save a copy
+ dnl of the list of libraries before the asynch IO function library
+ dnl is added to the list so that we can revert the list to its
+ dnl pre-asynch-IO check state.
+ ace_save_LIBS="$LIBS"
+
dnl Asynchronous IO library check
dnl Some platforms, such as Solaris puts aio_read in -lposix4, for example.
dnl In some cases, the thread library must be linked to in addition to the
@@ -540,6 +547,6 @@ main (int, char *[])
ace_cv_feature_aio_calls=no
])
])
- ], AC_DEFINE(ACE_HAS_AIO_CALLS),)
+ ], AC_DEFINE(ACE_HAS_AIO_CALLS), LIBS="$ace_save_LIBS")
fi dnl test "$ace_has_aio_funcs" = yes
])