summaryrefslogtreecommitdiffstats
path: root/contrib/RHEL4/configure.ac
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-03-25 15:17:21 -0400
committerSimo Sorce <ssorce@redhat.com>2008-03-25 15:17:21 -0400
commit934ac494b9c4f7e66dfbacaa0cc74944e9cc108a (patch)
tree15556b7ea5964253e8de79c5fd0e0cb3204dfb74 /contrib/RHEL4/configure.ac
parentc3a14e978ce39b1bbef5e7b6f76e6a84f0fc7df6 (diff)
downloadfreeipa-934ac494b9c4f7e66dfbacaa0cc74944e9cc108a.tar.gz
freeipa-934ac494b9c4f7e66dfbacaa0cc74944e9cc108a.tar.xz
freeipa-934ac494b9c4f7e66dfbacaa0cc74944e9cc108a.zip
Add autoconf and automake stuff and provide a spec file.
To build a package one need to run autoconf and then create a tarball of the RHEL4 directory so that the content is like this: $ ls -1 ipa-client-0.99.0 aclocal.m4 AUTHORS autom4te.cache ChangeLog configure configure.ac COPYING INSTALL install-sh ipachangeconf.py ipa-client-setup ipa.conf Makefile.am Makefile.in missing NEWS README setup.py the spec file will then be able to build a package for RHEL4
Diffstat (limited to 'contrib/RHEL4/configure.ac')
-rw-r--r--contrib/RHEL4/configure.ac55
1 files changed, 55 insertions, 0 deletions
diff --git a/contrib/RHEL4/configure.ac b/contrib/RHEL4/configure.ac
new file mode 100644
index 000000000..83676a37f
--- /dev/null
+++ b/contrib/RHEL4/configure.ac
@@ -0,0 +1,55 @@
+AC_PREREQ(2.59)
+AC_INIT([ipa-client],
+ [0.99.0],
+ [http://www.freeipa.org/])
+
+AM_INIT_AUTOMAKE
+
+AC_SUBST(VERSION)
+
+dnl ---------------------------------------------------------------------------
+dnl - Check for Python
+dnl ---------------------------------------------------------------------------
+
+AC_MSG_NOTICE([Checking for Python])
+have_python=no
+AM_PATH_PYTHON([2.3])
+
+if test "x$PYTHON" = "x" ; then
+ AC_MSG_ERROR([Python not found])
+fi
+
+dnl ---------------------------------------------------------------------------
+dnl - Set the data install directory since we don't use pkgdatadir
+dnl ---------------------------------------------------------------------------
+
+IPA_DATA_DIR="$datadir/ipa"
+AC_SUBST(IPA_DATA_DIR)
+
+dnl ---------------------------------------------------------------------------
+dnl Finish
+dnl ---------------------------------------------------------------------------
+
+# Files
+
+AC_CONFIG_FILES([
+ Makefile
+])
+
+AC_OUTPUT
+
+echo "
+ IPA client $VERSION
+ ========================
+
+ prefix: ${prefix}
+ exec_prefix: ${exec_prefix}
+ libdir: ${libdir}
+ bindir: ${bindir}
+ sbindir: ${sbindir}
+ sysconfdir: ${sysconfdir}
+ localstatedir: ${localstatedir}
+ datadir: ${datadir}
+ source code location: ${srcdir}
+ Maintainer mode: ${USE_MAINTAINER_MODE}
+"