17 AM_CONDITIONAL(AIX, test "$aix" != no)dnl
18 AM_CONDITIONAL(AIX4, test "$aix" = 4)dnl
20 AC_ARG_ENABLE(dynamic-afs,
21 AS_HELP_STRING([--disable-dynamic-afs],
22 [do not use loaded AFS library with AIX]))
24 if test "$aix" != no; then
26 AC_DEFINE(NEED_QSORT, 1, [if your qsort is not a stable sort])
28 if test "$enable_dynamic_afs" != no; then
29 AC_REQUIRE([rk_DLOPEN])
30 if test "$ac_cv_func_dlopen" = no; then
31 AC_FIND_FUNC_NO_LIBS(loadquery, ld)
33 if test "$ac_cv_func_dlopen" != no; then
34 AIX_EXTRA_KAFS='$(LIB_dlopen)'
35 elif test "$ac_cv_func_loadquery" != no; then
36 AIX_EXTRA_KAFS='$(LIB_loadquery)'
38 AC_MSG_NOTICE([not using dynloaded AFS library])
47 AM_CONDITIONAL(AIX_DYNAMIC_AFS, test "$enable_dynamic_afs" != no)dnl
48 AC_SUBST(AIX_EXTRA_KAFS)dnl
50 if test "$aix" != no; then
51 AC_DEFINE([_ALL_SOURCE],1,[Required for functional/sane headers on AIX])
55 /* XXX this is gross, but kills about a gazillion warnings */