Skip to content
Snippets Groups Projects
Commit e249665f authored by Markus Blatt's avatar Markus Blatt
Browse files

Make autotools the default build system.

One can select CMake using the --use-cmake switch. This prepares
the merge to the trunk.


[[Imported from SVN: r7117]]
parent 72387bbe
No related branches found
No related tags found
No related merge requests found
......@@ -166,9 +166,9 @@ load_opts() {
BUILDDIR=$DUNE_BUILDDIR
if test "x$DUNE_OPTS_FILE" != "x"; then
# use build dir from opts file if set
OPS_FILE_BUILDDIR="$(eval BUILDDIR=""; . $DUNE_OPTS_FILE; eval echo \$BUILDDIR)"
if test -n "$OPS_FILE_BUILDDIR"; then
BUILDDIR="$OPS_FILE_BUILDDIR"
OPTS_FILE_BUILDDIR="$(eval BUILDDIR=""; . $DUNE_OPTS_FILE; eval echo \$BUILDDIR)"
if test -n "$OPTS_FILE_BUILDDIR"; then
BUILDDIR="$OPTS_FILE_BUILDDIR"
fi
CMAKE_FLAGS="$(. $DUNE_OPTS_FILE; eval echo \$CMAKE_FLAGS)"
CMD_FLAGS_FROM_FILE="$(eval ${COMMAND}_FLAGS=""; . $DUNE_OPTS_FILE; eval echo \$${COMMAND}_FLAGS)"
......@@ -350,7 +350,6 @@ run_default_update () {
}
run_default_autogen () {
echo "autogen USE_CMAKE=$USE_CMAKE"
if test "x$USE_CMAKE" != "xyes" || test ! -e $(eval "echo \$PATH_$module")/CMakeLists.txt ; then
PARAMS="$CMD_FLAGS"
local M4_PATH=""
......@@ -500,7 +499,7 @@ usage () {
echo "OPTIONS:"
echo " -h, --help show this help"
echo " --debug enable debug output of this script"
echo " --use-autotools use autotools instead of cmake for building"
echo " --use-cmake use cmake instead autotools of cmake for building"
echo " --module=mod only apply the actions on module mod"
echo " and all modules it depends on"
echo " --only=mod only apply the actions on module mod"
......@@ -592,7 +591,7 @@ export ONLY=""
export RESUME_FLAG=no
export REVERSE_FLAG=no
export SKIPFIRST=no
export USE_CMAKE=yes
export USE_CMAKE=no
# parse commandline parameters
while test $# -gt 0; do
......@@ -701,8 +700,8 @@ while test $# -gt 0; do
--skipfirst)
export SKIPFIRST=yes
;;
--use-autotools)
export USE_CMAKE=no
--use-cmake)
export USE_CMAKE=yes
;;
--debug) true ;; # ignore this option, it is handled right at the beginning
--*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment