[PATCH 2/8] Fix widgets autotools generation.

David Shea dshea at redhat.com
Thu Sep 5 14:42:39 UTC 2013


Remove the old gettext.h symlink if present. Add --foreign to the
automake options in configure.ac so that things work better if someone
tries to run autoreconf.
---
 widgets/autogen.sh   | 3 +++
 widgets/configure.ac | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/widgets/autogen.sh b/widgets/autogen.sh
index 6633647..e18b17c 100755
--- a/widgets/autogen.sh
+++ b/widgets/autogen.sh
@@ -7,4 +7,7 @@ autoconf
 autoheader --force
 automake --foreign --add-missing --copy
 rm -rf autom4te.cache
+
+# Remove the old symlink if present
+if [ -h src/gettext.h ] ; then rm src/gettext.h ; fi
 cp -f /usr/share/gettext/gettext.h src
diff --git a/widgets/configure.ac b/widgets/configure.ac
index e4223f3..b0d5f58 100644
--- a/widgets/configure.ac
+++ b/widgets/configure.ac
@@ -21,7 +21,7 @@
 
 AC_PREREQ([2.63])
 AC_INIT([AnacondaWidgets], [1.0], [clumens at redhat.com])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([foreign])
 AM_SILENT_RULES([yes])
 
 AM_PATH_PYTHON
-- 
1.8.3.1



More information about the anaconda-patches mailing list