summaryrefslogtreecommitdiff
path: root/.pc/tizen.patch/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to '.pc/tizen.patch/autogen.sh')
-rwxr-xr-x.pc/tizen.patch/autogen.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/.pc/tizen.patch/autogen.sh b/.pc/tizen.patch/autogen.sh
new file mode 100755
index 0000000..326c76a
--- /dev/null
+++ b/.pc/tizen.patch/autogen.sh
@@ -0,0 +1,45 @@
+#! /bin/sh
+
+LIBTOOLIZE=libtoolize
+AUTOMAKE=automake
+ACLOCAL=aclocal
+AUTOCONF=autoconf
+AUTOHEADER=autoheader
+GTKDOCIZE=gtkdocize
+
+# Check for binaries
+
+[ "x$(which ${LIBTOOLIZE})x" = "xx" ] && {
+ echo "${LIBTOOLIZE} not found. Please install it."
+ exit 1
+}
+
+[ "x$(which ${AUTOMAKE})x" = "xx" ] && {
+ echo "${AUTOMAKE} not found. Please install it."
+ exit 1
+}
+
+[ "x$(which ${ACLOCAL})x" = "xx" ] && {
+ echo "${ACLOCAL} not found. Please install it."
+ exit 1
+}
+
+[ "x$(which ${AUTOCONF})x" = "xx" ] && {
+ echo "${AUTOCONF} not found. Please install it."
+ exit 1
+}
+
+[ "x$(which ${GTKDOCIZE})x" = "xx" ] && {
+ echo "${GTKDOCIZE} not found. Please install it."
+ exit 1
+}
+
+gtkdocize || exit 1
+
+"${ACLOCAL}" \
+&& "${LIBTOOLIZE}" \
+&& "${AUTOHEADER}" \
+&& "${AUTOMAKE}" --add-missing \
+&& "${AUTOCONF}"
+
+$(dirname "${0}")/configure "$@"