site-conf: Include builtin.m4 through aclocal.m4 and execute the defined function
authorHolger Freyther <zecke@selfish.org>
Wed, 15 Nov 2006 00:11:44 +0000 (00:11 +0000)
committerHolger Freyther <zecke@selfish.org>
Wed, 15 Nov 2006 00:11:44 +0000 (00:11 +0000)
    Document how to generate the configure script, document how to add a new
    package and do that for the builtin functions

contrib/site-conf/README
contrib/site-conf/aclocal.m4 [new file with mode: 0644]
contrib/site-conf/confifure.ac [deleted file]
contrib/site-conf/configure.ac [new file with mode: 0644]

index 0897697..b28e545 100644 (file)
@@ -4,4 +4,27 @@ Unified source of autoconf tests used to generate the site results
 Executing this on a new platform will generate the necessary results
 to write the right site-conf.
 
+1.) creating a configure script
+    '''use autoreconf -I m4'''
+
+
+2.) adding a test
+    '''vim m4/yourpackage.m4'''
+    '''add the functions'''
+    '''AC_DEFUN([OE_CHECK_YOURPACKAGE],
+       [
+        CALL_YOUR_FUNCTION_ONE_BY_ONE
+       ])
+    '''
+
+    Add to
+    '''vim aclocal.m4'''
+    '''m4_include(yourpackage,m4)'''
+
+    Add to
+    '''vim configure.ac'''
+    '''OE_CHECK_YOURPACKAGE
+
+
+
 Copy and paste the autoconf test to an approriate file
diff --git a/contrib/site-conf/aclocal.m4 b/contrib/site-conf/aclocal.m4
new file mode 100644 (file)
index 0000000..8d4b7ee
--- /dev/null
@@ -0,0 +1,2 @@
+dnl # local file..
+m4_include(builtin.m4)
diff --git a/contrib/site-conf/confifure.ac b/contrib/site-conf/confifure.ac
deleted file mode 100644 (file)
index 8b02750..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-AC_INIT([zeckes-tests], [aleph-1], [noreply@::1])
-AC_OUTPUT
diff --git a/contrib/site-conf/configure.ac b/contrib/site-conf/configure.ac
new file mode 100644 (file)
index 0000000..0f08732
--- /dev/null
@@ -0,0 +1,11 @@
+AC_INIT([zeckes-tests], [aleph-1], [noreply@::1])
+AC_PREREQ([2.60])
+
+#
+#AC_CONFIG_MACRO_DIR([m4])
+AC_GNU_SOURCE
+
+OE_CHECK_BUILTIN
+
+
+AC_OUTPUT([])