Infrastructure: if we don't find the ical headers during boostrap, abort.
[citadel.git] / webcit / bootstrap
index bf42772201682557bbb9daea93e8c96af256f5c8..9f9d712afd453edf486c5245fed6dbe419605a2a 100755 (executable)
@@ -1,3 +1,37 @@
 #!/bin/sh
+#
+# run me after checking WebCit out of svn.
+#
 
-autoconf
+# Remove any vestiges of pre-6.05 build environments
+rm -f .libs modules *.so *.lo *.la 2>/dev/null
+
+if ./scripts/get_ical_data.sh; then
+
+    echo ... running aclocal ...
+    aclocal
+    
+    echo ... running autoconf ...
+    autoconf
+
+# If your autoconf version changes, the autom4te.cache stuff will mess you up.
+# Get rid of it.
+    echo ... removing autoheader cache files ...
+    rm -rf autom4te*.cache
+    
+    echo ... running autoheader ...
+    autoheader
+    
+    echo ... mk_module_init.sh ...
+    ./scripts/mk_module_init.sh
+
+
+    echo
+    echo This script has been tested with autoconf 2.53 and
+    echo automake 1.5. Other versions may work, but I recommend the latest
+    echo compatible versions of these.
+    echo
+    echo Also note that autoconf and automake should be configured
+    echo with the same prefix.
+    echo
+fi