-pre3 (sigh)
[freeradius.git] / configure.in
index 0f5de99..0596cd0 100644 (file)
@@ -26,7 +26,7 @@ AC_REVISION($Revision$)dnl
 
 dnl # The version of the software
 RADIUSD_MAJOR_VERSION=0
-RADIUSD_MINOR_VERSION=9-pre1
+RADIUSD_MINOR_VERSION=9.0-pre3
 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
 
 dnl #############################################################
@@ -765,6 +765,7 @@ dnl #
 dnl # Figure out where libtool is located,
 dnl #
 top_builddir=`pwd`
+export top_builddir
 AC_MSG_RESULT([top_builddir=$top_builddir])
 AC_SUBST(top_builddir)
 AC_SUBST(LIBLTDL)
@@ -787,17 +788,17 @@ dnl #############################################################
 
 mysubdirs=
 if test "x$EXPERIMENTAL" = "xyes"; then
-  for foo in `find src/modules/rlm_* -maxdepth 1 -name configure -print`; do
-    bar=`echo $foo | sed 's%/configure$%%g'`
-    mysubdirs="$mysubdirs $bar"
-  done
+  bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
+  dnl # get rid of LF's.
+  mysubdirs=`echo $bar`
 else
-   dnl # 
-   dnl # Find 'configure' in ONLY the stable modules
-   dnl # 
-   for foo in `find \`cat src/modules/stable | sed 's%rlm%src/modules/rlm%g'\` -maxdepth 1 -name configure -print`; do
-    bar=`echo $foo | sed 's%/configure$%%g'`
-    mysubdirs="$mysubdirs $bar"
+  dnl # 
+  dnl # Find 'configure' in ONLY the stable modules
+  dnl # 
+  for bar in `cat src/modules/stable`; do
+    if test -f src/modules/$bar/configure; then
+      mysubdirs="$mysubdirs src/modules/$bar"
+    fi
   done
 fi
 
@@ -806,7 +807,7 @@ dnl # make modules by list
 dnl #############################################################
 MODULES=
 if test "x$EXPERIMENTAL" = "xyes"; then
-  for foo in `ls src/modules | grep rlm_`; do
+  for foo in `ls -1d src/modules | grep rlm_`; do
     MODULES="$MODULES $foo"
   done
 else