diff options
author | Holger Freyther <zecke@selfish.org> | 2006-11-15 00:11:44 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2006-11-15 00:11:44 +0000 |
commit | 5f4be6e3b31d552dc6d293adebf03415532592e9 (patch) | |
tree | 6751696a15d119417ef659f53815c0659c868253 /contrib | |
parent | 942f721377d2a42a1f130d774858333d58ee7767 (diff) |
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
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/site-conf/README | 23 | ||||
-rw-r--r-- | contrib/site-conf/aclocal.m4 | 2 | ||||
-rw-r--r-- | contrib/site-conf/confifure.ac | 2 | ||||
-rw-r--r-- | contrib/site-conf/configure.ac | 11 |
4 files changed, 36 insertions, 2 deletions
diff --git a/contrib/site-conf/README b/contrib/site-conf/README index 08976970d7..b28e545288 100644 --- a/contrib/site-conf/README +++ b/contrib/site-conf/README @@ -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 index 0000000000..8d4b7eed8c --- /dev/null +++ b/contrib/site-conf/aclocal.m4 @@ -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 index 8b02750dec..0000000000 --- a/contrib/site-conf/confifure.ac +++ /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 index 0000000000..0f08732a08 --- /dev/null +++ b/contrib/site-conf/configure.ac @@ -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([]) |