summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2002-05-27 13:32:47 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2002-05-27 13:32:47 +0000
commit48e8bb063303c8663b9d95d35242415ad2a5ca19 (patch)
treeef721c45b42c1763a41d604e278b02ddb77cfdc2
parent3ce22b87b251e36d30660b72b8020011246b0c64 (diff)
downloadgstreamer-common-48e8bb063303c8663b9d95d35242415ad2a5ca19.tar.gz
hey, who said only wtay gets to break stuff ?
Original commit message from CVS: hey, who said only wtay gets to break stuff ?
-rw-r--r--gst-autogen.sh31
-rw-r--r--m4/as-auto-alt.m450
2 files changed, 81 insertions, 0 deletions
diff --git a/gst-autogen.sh b/gst-autogen.sh
index 6c7c54b..7062242 100644
--- a/gst-autogen.sh
+++ b/gst-autogen.sh
@@ -127,9 +127,38 @@ aclocal_check ()
else
aclocal=`echo $automake | sed s/automake/aclocal/`
debug "aclocal: $aclocal"
+ if [ "$aclocal" != "aclocal" ];
+ then
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-aclocal=$aclocal"
+ fi
+ if [ ! -x $aclocal ]; then
+ echo "Error: cannot execute $aclocal !"
+ return 1
+ fi
fi
}
+autoheader_check ()
+{
+ # same here - autoheader is part of autoconf
+ # use the same voodoo
+ if [ -z "$autoconf" ]; then
+ echo "Error: no autoconf variable set !"
+ return 1
+ else
+ autoheader=`echo $autoconf | sed s/autoconf/autoheader/`
+ debug "autoheader: $autoheader"
+ if [ "$autoheader" != "autoheader" ];
+ then
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoheader=$autoheader"
+ fi
+ if [ ! -x $autoheader ]; then
+ echo "Error: cannot execute $autoheader !"
+ return 1
+ fi
+ fi
+
+}
autoconf_2.52d_check ()
{
# autoconf 2.52d has a weird issue involving a yes:no error
@@ -215,11 +244,13 @@ autogen_options ()
--with-automake)
AUTOMAKE=$2
echo "+ using alternate automake in $2"
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-automake=$AUTOMAKE"
shift 2
;;
--with-autoconf)
AUTOCONF=$2
echo "+ using alternate autoconf in $2"
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoconf=$AUTOCONF"
shift 2
;;
--) shift ; break ;;
diff --git a/m4/as-auto-alt.m4 b/m4/as-auto-alt.m4
new file mode 100644
index 0000000..7639ef0
--- /dev/null
+++ b/m4/as-auto-alt.m4
@@ -0,0 +1,50 @@
+dnl as-auto-alt.m4 0.0.1
+dnl autostars m4 macro for supplying alternate autotools versions to configure
+dnl thomas@apestaart.org
+dnl
+dnl AS_AUTOTOOLS_ALTERNATE()
+dnl
+dnl supplies --with arguments for autoconf, autoheader, automake, aclocal
+
+AC_DEFUN(AS_AUTOTOOLS_ALTERNATE,
+[
+ dnl allow for different autoconf version
+ AC_ARG_WITH(autoconf,
+ AC_HELP_STRING([--with-autoconf],
+ [use a different autoconf for regeneration of Makefiles]),
+ [
+ unset AUTOCONF
+ AM_MISSING_PROG(AUTOCONF, ${withval})
+ AC_MSG_NOTICE([Using $AUTOCONF as autoconf])
+ ])
+
+ dnl allow for different autoheader version
+ AC_ARG_WITH(autoheader,
+ AC_HELP_STRING([--with-autoheader],
+ [use a different autoheader for regeneration of Makefiles]),
+ [
+ unset AUTOHEADER
+ AM_MISSING_PROG(AUTOHEADER, ${withval})
+ AC_MSG_NOTICE([Using $AUTOHEADER as autoheader])
+ ])
+
+ dnl allow for different automake version
+ AC_ARG_WITH(automake,
+ AC_HELP_STRING([--with-automake],
+ [use a different automake for regeneration of Makefiles]),
+ [
+ unset AUTOMAKE
+ AM_MISSING_PROG(AUTOMAKE, ${withval})
+ AC_MSG_NOTICE([Using $AUTOMAKE as automake])
+ ])
+
+ dnl allow for different aclocal version
+ AC_ARG_WITH(aclocal,
+ AC_HELP_STRING([--with-aclocal],
+ [use a different aclocal for regeneration of Makefiles]),
+ [
+ unset ACLOCAL
+ AM_MISSING_PROG(ACLOCAL, ${withval})
+ AC_MSG_NOTICE([Using $ACLOCAL as aclocal])
+ ])
+])