autogen.sh: Add --no-symlinks option

This commit is contained in:
Erik de Castro Lopo 2015-08-01 17:54:49 +10:00
parent 9e2bf61d68
commit c3cf5312c1
1 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,18 @@
# We trust that the user has a recent enough autoconf & automake setup
# (not older than a few years...)
use_symlinks=" --symlink"
case $1 in
--no-symlink*)
use_symlinks=""
echo "Copying autotool files instead of using symlinks."
;;
*)
echo "Using symlinks to autotool files (use --no-symlinks to copy instead)."
;;
esac
test_program_errors=0
test_program () {
@ -40,5 +52,5 @@ test -n "$srcdir" && cd "$srcdir"
echo "Updating build configuration files for FLAC, please wait...."
touch config.rpath
autoreconf --install --symlink --force
autoreconf --install $use_symlinks --force
#./configure "$@" && echo