8197571: Change storage location for generated-configure.sh

Reviewed-by: tbell, simonis, stuefe
This commit is contained in:
Magnus Ihse Bursie 2018-02-12 16:36:15 +01:00
parent cc873b716f
commit bf480bcbfe
3 changed files with 17 additions and 5 deletions

View File

@ -1,5 +1,4 @@
^build/
^.build/
^dist/
^.idea/
nbproject/private/

View File

@ -814,6 +814,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
| $SED -e 's/config.log//g' \
-e 's/configure.log//g' \
-e 's/confdefs.h//g' \
-e 's/configure-support//g' \
-e 's/ //g' \
| $TR -d '\n'`
if test "x$filtered_files" != x; then

View File

@ -50,9 +50,21 @@ if test "x$CUSTOM_CONFIG_DIR" != x; then
echo "Error: Cannot continue" 1>&2
exit 1
fi
build_support_dir="$CUSTOM_ROOT/.build"
fi
CURRENT_DIR=`pwd`
if test "x$CURRENT_DIR" = "x$TOPDIR"; then
# We are running configure from the src root.
# Create '.configure-support' under $TOPDIR/build
build_support_dir="$TOPDIR/build/.configure-support"
elif test "x$CURRENT_DIR" = "x$CUSTOM_ROOT"; then
# We are running configure from the custom root.
# Create '.configure-support' under $CUSTOM_ROOT/build
build_support_dir="$CUSTOM_ROOT/build/.configure-support"
else
build_support_dir="$TOPDIR/.build"
# We are running configure from outside of the src dir.
# Create 'build_support_dir' in the current directory.
build_support_dir="$CURRENT_DIR/configure-support"
fi
conf_script_dir="$TOPDIR/make/autoconf"
@ -114,7 +126,7 @@ generate_configure_script() {
custom_patcher='cat'
fi
mkdir -p `dirname $generated_script`
mkdir -p $build_support_dir
# Call autoconf but replace the "magic" variable in configure.ac if requested.
cat $conf_script_dir/configure.ac | eval $custom_patcher | \
${AUTOCONF} -W all -I$conf_script_dir - > $generated_script
@ -164,7 +176,7 @@ else
fi
if test "x$run_autoconf" = xtrue; then
echo "Generating runnable configure script"
echo "Generating runnable configure script at $generated_script"
generate_configure_script
fi