2 dnl $Heimdal: aix.m4 14147 2004-08-25 14:14:01Z joda $
18 AM_CONDITIONAL(AIX, test "$aix" != no)dnl
19 AM_CONDITIONAL(AIX4, test "$aix" = 4)
22 AC_ARG_ENABLE(dynamic-afs,
23 AS_HELP_STRING([--disable-dynamic-afs],
24 [do not use loaded AFS library with AIX]))
26 if test "$aix" != no; then
27 if test "$enable_dynamic_afs" != no; then
28 AC_REQUIRE([rk_DLOPEN])
29 if test "$ac_cv_func_dlopen" = no; then
30 AC_FIND_FUNC_NO_LIBS(loadquery, ld)
32 if test "$ac_cv_func_dlopen" != no; then
33 AIX_EXTRA_KAFS='$(LIB_dlopen)'
34 elif test "$ac_cv_func_loadquery" != no; then
35 AIX_EXTRA_KAFS='$(LIB_loadquery)'
37 AC_MSG_NOTICE([not using dynloaded AFS library])
46 AM_CONDITIONAL(AIX_DYNAMIC_AFS, test "$enable_dynamic_afs" != no)dnl
47 AC_SUBST(AIX_EXTRA_KAFS)dnl
51 /* XXX this is gross, but kills about a gazillion warnings */