+AC_ARG_ENABLE(modules,[ --enable-modules=\"mod ..\" ill],[
+if test "$enable_modules" != "no"; then
+ EXTRAMODULE="$EXTRAMODULE $enable_modules"
+fi
+],[
+EXTRAMODULE="$EXTRAMODULE ill ccl"
+])
+EXTRALIB=""
+echo $EXTRAMODULE
+for module in $EXTRAMODULE; do
+ EXTRALIB="$EXTRALIB ../$module/lib${module}.la"
+ if test $module = "z39.50"; then
+ module=z3950
+ fi
+ AC_DEFINE_UNQUOTED(YAZ_MODULE_${module})
+done
+