]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2003-09-24 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Wed, 24 Sep 2003 05:09:26 +0000 (05:09 +0000)
committerpaul <paul>
Wed, 24 Sep 2003 05:09:26 +0000 (05:09 +0000)
        * lib/version.h: moved to version.h.in
        * lib/version.h.in: New file, from version.h. Change hardcoded
          package name and version to use the autoconf defined substition
          variables.
        * configure.ac: Fix up AC/AM_INIT* to new style. Remove the sed'ing
          through lib/version.h for VERSION. Add lib/version.h to the
          AC_OUTPUT list. Update the text output of quagga version at end
          of configure run to use PACKAGE_VERSION.
        * doc/.cvsignore: ignore quagga.pdf
        * doc/.cvsignore: ignore version.h, its now autogenerated.

configure.ac
doc/.cvsignore
lib/.cvsignore
lib/version.h [deleted file]
lib/version.h.in [new file with mode: 0644]

index fe8e311fafa05addf34011316dca05948bb3a284..23f7b0a12319a5f517d1665af7952a5a84785a48 100755 (executable)
@@ -7,8 +7,9 @@
 ##
 AC_PREREQ(2.53)
 
-AC_INIT(lib/zebra.h)
-AM_INIT_AUTOMAKE(quagga, 0.96.2)
+AC_INIT(quagga, 0.96.2, [bug-zebra@gnu.org])
+AC_CONFIG_SRCDIR(lib/zebra.h)
+AM_INIT_AUTOMAKE()
 AM_CONFIG_HEADER(config.h)
 
 dnl -----------------------------------
@@ -935,13 +936,6 @@ if test x"${ac_cv_header_execinfo_h}" = x"yes"; then
   )
 fi
 
-dnl -------------
-dnl check version
-dnl -------------
-file="${srcdir}/lib/version.h"
-VERSION=`sed -ne 's/^#.*QUAGGA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
-AC_SUBST(VERSION)
-
 dnl ----------
 dnl configure date
 dnl ----------
@@ -1015,12 +1009,13 @@ AC_OUTPUT(Makefile lib/Makefile zebra/Makefile ripd/Makefile
          ripngd/Makefile bgpd/Makefile ospfd/Makefile 
          ospf6d/Makefile vtysh/Makefile doc/Makefile 
          ospfclient/Makefile
-         redhat/quagga.spec)
+         redhat/quagga.spec
+         lib/version.h)
 
 echo "
 zebra configuration
 -------------------
-quagga version           : ${VERSION}
+quagga version           : ${PACKAGE_VERSION}
 host operationg system  : ${host_os}
 source code location    : ${srcdir}
 compiler                : ${CC}
index 52e888adea4fea5de414451af58fe1769b99b26a..a12ecd858fe9f47c37b23910ec9ec2ea3a4f8ced 100644 (file)
@@ -5,3 +5,4 @@ zebra.info-*
 zebra.html
 quagga.info*
 quagga.html
+quagga.pdf
index b8e258be48b07dcdfb3247ac5cf87ead2654c50f..d95f62f785f67c19267b7654ab2e6c4cc6fc64f5 100644 (file)
@@ -2,4 +2,5 @@ Makefile
 Makefile.in
 *.o
 version.c
+version.h
 .deps
diff --git a/lib/version.h b/lib/version.h
deleted file mode 100644 (file)
index 9280613..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Zebra version
- * Copyright (C) 1997, 1999 Kunihiro Ishiguro
- *
- * This file is part of GNU Zebra.
- *
- * GNU Zebra is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2, or (at your option) any
- * later version.
- *
- * GNU Zebra is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.  
- */
-
-#ifndef _ZEBRA_VERSION_H
-#define _ZEBRA_VERSION_H
-
-#define QUAGGA_PROGNAME   "quagga"
-
-#define QUAGGA_VERSION     "0.96.2"
-
-#define ZEBRA_BUG_ADDRESS "bug-zebra@gnu.org"
-
-#define ZEBRA_URL "http://www.quagga.net"
-
-extern char *host_name;
-
-void print_version(char *);
-pid_t pid_output (char *);
-pid_t pid_output_lock (char *);
-
-#ifndef HAVE_DAEMON
-int daemon(int, int);
-#endif
-
-#endif /* _ZEBRA_VERSION_H */
diff --git a/lib/version.h.in b/lib/version.h.in
new file mode 100644 (file)
index 0000000..8b8b9f6
--- /dev/null
@@ -0,0 +1,43 @@
+/* Zebra version
+ * Copyright (C) 1997, 1999 Kunihiro Ishiguro
+ *
+ * This file is part of GNU Zebra.
+ *
+ * GNU Zebra is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2, or (at your option) any
+ * later version.
+ *
+ * GNU Zebra is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Zebra; see the file COPYING.  If not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.  
+ */
+
+#ifndef _ZEBRA_VERSION_H
+#define _ZEBRA_VERSION_H
+
+#define QUAGGA_PROGNAME   "@PACKAGE_NAME@"
+
+#define QUAGGA_VERSION     "@PACKAGE_VERSION@"
+
+#define ZEBRA_BUG_ADDRESS "@PACKAGE_BUGREPORT@"
+
+#define QUAGGA_URL "http://www.quagga.net"
+
+extern char *host_name;
+
+void print_version(char *);
+pid_t pid_output (char *);
+pid_t pid_output_lock (char *);
+
+#ifndef HAVE_DAEMON
+int daemon(int, int);
+#endif
+
+#endif /* _ZEBRA_VERSION_H */