[oe-commits] org.oe.dev site-conf: Include builtin.m4 through aclocal.m4 and execute the defined function
freyther commit
openembedded-commits at lists.openembedded.org
Wed Nov 15 00:17:56 UTC 2006
site-conf: Include builtin.m4 through aclocal.m4 and execute the defined function
Document how to generate the configure script, document how to add a new
package and do that for the builtin functions
Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: 71b00416fc5d7e2ad6d8528560d8767973fd76c1
ViewMTN: http://monotone.openembedded.org/revision.psp?id=71b00416fc5d7e2ad6d8528560d8767973fd76c1
Files:
1
contrib/site-conf/confifure.ac
contrib/site-conf/configure.ac
contrib/site-conf/aclocal.m4
contrib/site-conf/README
Diffs:
#
# mt diff -rf3357ba264b30e1a3b62126789b3d86f8c8ed40b -r71b00416fc5d7e2ad6d8528560d8767973fd76c1
#
#
#
# rename "contrib/site-conf/confifure.ac"
# to "contrib/site-conf/configure.ac"
#
# add_file "contrib/site-conf/aclocal.m4"
# content [75f899497442002668cd39943bc6d43a3fe5504e]
#
# patch "contrib/site-conf/README"
# from [aeb196c2d4bd1e45b63c51ca18cec726ea0e9a6a]
# to [366b9bfef8e5b49a597e0ec8a66b41073fa105b9]
#
# patch "contrib/site-conf/configure.ac"
# from [a41efe0cffc61105507768d2e5a15d58529e9a7e]
# to [53e75d42eba17929941e801bb4317b188f5ee315]
#
============================================================
--- contrib/site-conf/aclocal.m4 75f899497442002668cd39943bc6d43a3fe5504e
+++ contrib/site-conf/aclocal.m4 75f899497442002668cd39943bc6d43a3fe5504e
@@ -0,0 +1,2 @@
+dnl # local file..
+m4_include(builtin.m4)
============================================================
--- contrib/site-conf/README aeb196c2d4bd1e45b63c51ca18cec726ea0e9a6a
+++ contrib/site-conf/README 366b9bfef8e5b49a597e0ec8a66b41073fa105b9
@@ -1,7 +1,30 @@ to write the right site-conf.
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
============================================================
--- contrib/site-conf/confifure.ac a41efe0cffc61105507768d2e5a15d58529e9a7e
+++ contrib/site-conf/configure.ac 53e75d42eba17929941e801bb4317b188f5ee315
@@ -1,2 +1,11 @@ AC_INIT([zeckes-tests], [aleph-1], [nore
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([])
-AC_OUTPUT
More information about the Openembedded-commits
mailing list