summaryrefslogtreecommitdiff
path: root/src/3rdParty/json-c/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdParty/json-c/autogen.sh')
-rwxr-xr-xsrc/3rdParty/json-c/autogen.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/3rdParty/json-c/autogen.sh b/src/3rdParty/json-c/autogen.sh
new file mode 100755
index 0000000..69e765a
--- /dev/null
+++ b/src/3rdParty/json-c/autogen.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+autoreconf -v --install || exit 1
+
+# If there are any options, assume the user wants to run configure.
+# To run configure w/o any options, use ./autogen.sh --configure
+if [ $# -gt 0 ] ; then
+ case "$1" in
+ --conf*)
+ shift 1
+ ;;
+ esac
+ exec ./configure "$@"
+fi