Skip to content
Snippets Groups Projects
Commit 29660ed0 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Make './autogen.sh' switch to the top source directory.

parent 387ed16d
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ init_nv2130
# We want to check with the Debian version of Libtool, which is patched to
# avoid overlinking. Therefore, we regenerate the Autotools files even if they
# are already available:
cd "${top_srcdir}" && ./autogen.sh
"${top_srcdir}/autogen.sh"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
......
......@@ -9,7 +9,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_cray1100
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
......
......@@ -9,7 +9,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_pgi2011
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
......
......@@ -9,7 +9,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_gcc640
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
......
......@@ -9,7 +9,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_intel1706
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# Create a subdirectory for building and switch to it:
mkdir build && cd build
......
......@@ -9,7 +9,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_nag626223
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# Create a distribution file with minimalistic configuration:
switch_for_module texlive
......
......@@ -9,7 +9,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_pgi1990
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
......
......@@ -9,7 +9,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_nag626223
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# When configured as part of ICON, C headers, Fortran modules and library files
# of YAXT and PPM become available only at the build time. The following
......
......@@ -8,7 +8,7 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_gcc640
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# The configure wrappers of ICON export LD_LIBRARY_PATH:
export LD_LIBRARY_PATH="${NETCDF_ROOT}/lib:${GRIBAPI_ROOT}/lib:${LD_LIBRARY_PATH-}"
......
......@@ -26,6 +26,11 @@ EOF
esac
done
script_dir=`echo "$0" | sed 's@[^/]*$@@'`
echo "Running autoreconf in $script_dir"
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cd "$script_dir"
autoreconf -fvi || exit $?
# The following is not needed as long as we do not patch libtool.m4:
......
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