New build path variable
[freeradius.git] / autogen.sh
1 #!/bin/sh -e
2
3 parentdir=`dirname $0`
4
5 cd $parentdir
6 parentdir=`pwd`
7
8 libtoolize -f -c
9 #aclocal
10 autoheader
11 autoconf
12
13 mysubdirs="$mysubdirs `find src/modules/ -name configure -print | sed 's%/configure%%'`"
14 mysubdirs=`echo $mysubdirs`
15
16 for F in $mysubdirs
17 do
18         echo "Configuring in $F..."
19         (cd $F && grep "^AC_CONFIG_HEADER" configure.in > /dev/null && autoheader -I$parentdir)
20         (cd $F && autoconf -I$parentdir)
21 done