diff options
author | paul <paul> | 2005-04-11 07:10:47 +0000 |
---|---|---|
committer | paul <paul> | 2005-04-11 07:10:47 +0000 |
commit | 26275b05d6da500176d433523f659e0f6425558b (patch) | |
tree | ba86e8701da0cc11bfd99ea7715d02fa76402f07 | |
parent | 1b414a170015f47f1fd2f75be74b1444647ce25f (diff) |
2005-04-11 Paul Jakma <paul.jakma@sun.com>
* configure.ac: Call AC_CANONICAL_{BUILD,TARGET} macros. Target isnt
set otherwise, afaict. AC_SUBST enable_{user,group,vty_group} and
quagga_statedir - the Solaris package bits for one need this.
configure the solaris/ Makefile.
* Makefile.am: solaris is a subdir - unconditional or else it wont
be included in non-solaris made dists.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | Makefile.am | 6 | ||||
-rwxr-xr-x | configure.ac | 16 |
3 files changed, 25 insertions, 6 deletions
@@ -1,3 +1,12 @@ +2005-04-11 Paul Jakma <paul.jakma@sun.com> + + * configure.ac: Call AC_CANONICAL_{BUILD,TARGET} macros. Target isnt + set otherwise, afaict. AC_SUBST enable_{user,group,vty_group} and + quagga_statedir - the Solaris package bits for one need this. + configure the solaris/ Makefile. + * Makefile.am: solaris is a subdir - unconditional or else it wont + be included in non-solaris made dists. + 2005-04-10 Paul Jakma <paul.jakma@sun.com> * configure.ac: Fix host string recognition for Solaris Nevada aka diff --git a/Makefile.am b/Makefile.am index 4a1a4bfd..9765d796 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,10 +1,12 @@ ## Process this file with automake to produce Makefile.in. SUBDIRS = lib @ZEBRA@ @BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ \ - @ISISD@ @WATCHQUAGGA@ @VTYSH@ @OSPFCLIENT@ doc m4 @pkgsrcdir@ redhat + @ISISD@ @WATCHQUAGGA@ @VTYSH@ @OSPFCLIENT@ doc m4 @pkgsrcdir@ \ + redhat solaris DIST_SUBDIRS = lib zebra bgpd ripd ripngd ospfd ospf6d \ - isisd watchquagga vtysh ospfclient doc m4 pkgsrc redhat tests + isisd watchquagga vtysh ospfclient doc m4 pkgsrc redhat tests \ + solaris EXTRA_DIST = aclocal.m4 SERVICES TODO REPORTING-BUGS vtysh/Makefile.in \ vtysh/Makefile.am update-autotools \ diff --git a/configure.ac b/configure.ac index cb1343aa..8e0324dc 100755 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ ## Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org> ## Portions Copyright (c) 2003 Paul Jakma <paul@dishone.st> ## -## $Id: configure.ac,v 1.100 2005/04/10 16:31:51 paul Exp $ +## $Id: configure.ac,v 1.101 2005/04/11 07:10:47 paul Exp $ AC_PREREQ(2.53) AC_INIT(Quagga, 0.99.0, [http://bugzilla.quagga.net]) @@ -36,7 +36,9 @@ AC_SUBST(pkgsrcrcdir) dnl ----------------------------------- dnl Get hostname and other information. dnl ----------------------------------- -AC_CANONICAL_HOST +AC_CANONICAL_BUILD() +AC_CANONICAL_HOST() +AC_CANONICAL_TARGET() dnl ------------ dnl Check CFLAGS @@ -251,14 +253,12 @@ if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then elif test "${enable_user}" = "no"; then enable_user="root" fi -AC_DEFINE_UNQUOTED(QUAGGA_USER, "${enable_user}", Quagga User) if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then enable_group="quagga" elif test "${enable_group}" = "no"; then enable_group="root" fi -AC_DEFINE_UNQUOTED(QUAGGA_GROUP, "${enable_group}", Quagga Group) if test x"${enable_vty_group}" = x"yes" ; then AC_MSG_ERROR([--enable-vty-group requires a group as argument, not yes]) @@ -267,6 +267,11 @@ elif test x"${enable_vty_group}" != x""; then AC_DEFINE_UNQUOTED(VTY_GROUP, "${enable_vty_group}", VTY Sockets Group) fi fi +AC_SUBST([enable_user]) +AC_SUBST([enable_group]) +AC_SUBST([enable_vty_group]) +AC_DEFINE_UNQUOTED(QUAGGA_USER, "${enable_user}", Quagga User) +AC_DEFINE_UNQUOTED(QUAGGA_GROUP, "${enable_group}", Quagga Group) enable_configfile_mask=${enable_configfile_mask:-0600} AC_DEFINE_UNQUOTED(CONFIGFILE_MASK, ${enable_configfile_mask}, Mask for config files) @@ -1234,6 +1239,7 @@ else quagga_statedir=${localstatedir} AC_MSG_CHECKING(directory to use for state file) AC_MSG_RESULT(${quagga_statedir}) + AC_SUBST(quagga_statedir) fi if test $quagga_statedir = "/dev/null"; then AC_MSG_ERROR('STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!') @@ -1295,6 +1301,8 @@ AC_CONFIG_FILES([Makefile lib/Makefile zebra/Makefile ripd/Makefile isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh]) +AC_CONFIG_FILES([solaris/Makefile]) + AC_CONFIG_FILES([vtysh/extract.pl],[chmod +x vtysh/extract.pl]) ## Hack, but working solution to avoid rebuilding of quagga.info. ## It's already in CVS until texinfo 4.7 is more common. |