diff options
author | Brian J. Tarricone <brian@tarricone.org> | 2009-08-26 14:45:37 -0700 |
---|---|---|
committer | Brian J. Tarricone <brian@tarricone.org> | 2009-08-26 14:45:37 -0700 |
commit | 2aea2c13e03ac17169bbfd5cb279cca513c2ffd8 (patch) | |
tree | a546b91669d0bf3945be09e1557b4b7b51635e9c /scripts | |
parent | 1281d9011e8f3ac952e07c3190208c5388366b16 (diff) | |
download | xfce4-dev-tools-2aea2c13e03ac17169bbfd5cb279cca513c2ffd8.tar.gz |
make lookup_configure_ac_files act like lookup_configure_ac_in_files
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/xdt-autogen.in.in | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in index 818b2ac..6856b04 100644 --- a/scripts/xdt-autogen.in.in +++ b/scripts/xdt-autogen.in.in @@ -74,11 +74,12 @@ parse_configure_subdirs() } ## -## Helper function to lookup configure.{in,ac} files recursively. -## Sets $CONFIGURE_AC_FILES to the list of files found. +## Helper function to look up configure.{in,ac} files recursively. ## lookup_configure_ac_files() { + configure_ac_file="" + if test -f "$1/configure.ac"; then configure_ac_file="$1/configure.ac"; elif test -f "$1/configure.in"; then @@ -92,11 +93,7 @@ EOF exit 1 fi - if test x"$CONFIGURE_AC_FILES" = x""; then - CONFIGURE_AC_FILES="$configure_ac_file"; - else - CONFIGURE_AC_FILES="$CONFIGURE_AC_FILES $configure_ac_file"; - fi + test "x$configure_ac_file" != "x" && echo -n "$configure_ac_file " subdirs=`parse_configure_subdirs ${configure_ac_file}` for subdir in $subdirs; do @@ -104,6 +101,9 @@ EOF done } +## +## Helper function to look up configure.{in,ac}.in files recursively. +## lookup_configure_ac_in_files() { configure_ac_in_file="" @@ -251,8 +251,7 @@ done ## ## Search for the configure.{ac,in} files ## -CONFIGURE_AC_FILES="" -lookup_configure_ac_files "$MASTER_DIR" +CONFIGURE_AC_FILES=`lookup_configure_ac_files "$MASTER_DIR"` ## |