]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Small change to make BIRD's IPv6 packaging easier
authorOndrej Filip <feela@majklik.network.cz>
Mon, 1 Jun 2009 22:28:08 +0000 (00:28 +0200)
committerOndrej Filip <feela@majklik.network.cz>
Mon, 1 Jun 2009 22:28:08 +0000 (00:28 +0200)
configure.in
sysdep/config.h
tools/Makefile.in

index d1b503b0b2af3bb503832439f305dadcf5528c6f..8d519fddf40b3bd2519e837f9a06f59fa5cfdc13 100644 (file)
@@ -42,11 +42,13 @@ AC_SUBST(srcdir_rel_mf)
 
 if test "$enable_ipv6" = yes ; then
        ip=ipv6
+       SUFFIX6=6
        if test "$with_protocols" = all ; then
                with_protocols=bgp,pipe,rip,static
        fi
 else
        ip=ipv4
+       SUFFIX6=""
        if test "$with_protocols" = all ; then
                with_protocols=bgp,ospf,pipe,rip,static
        fi
@@ -208,6 +210,7 @@ if test "$enable_client" = yes ; then
 fi
 AC_SUBST(CLIENT)
 AC_SUBST(CLIENT_LIBS)
+AC_SUBST(SUFFIX6)
 
 mkdir -p $objdir/sysdep
 AC_CONFIG_HEADERS([$objdir/sysdep/autoconf.h:sysdep/autoconf.h.in])
index 47d175bae5030cf1432200dd340226653c22cb70..f0a5ecc8030123281ffe69fe041774396496cc36 100644 (file)
@@ -38,11 +38,11 @@ typedef u16 word;
 /* Path to configuration file */
 #ifdef IPV6
 #  ifdef DEBUGGING
-#    define PATH_CONFIG "bird-6.conf"
-#    define PATH_CONTROL_SOCKET "bird-6.ctl"
+#    define PATH_CONFIG "bird6.conf"
+#    define PATH_CONTROL_SOCKET "bird6.ctl"
 #  else
-#    define PATH_CONFIG PATH_CONFIG_DIR "/bird-6.conf"
-#    define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird-6.ctl"
+#    define PATH_CONFIG PATH_CONFIG_DIR "/bird6.conf"
+#    define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird6.ctl"
 #  endif
 #else
 #  ifdef DEBUGGING
index 8b901efaff3cd44bfdd507862d0d25801b838156..17b4db7669417b3f3d910a6a31f74c926027424a 100644 (file)
@@ -44,12 +44,12 @@ tags:
 
 install: all
        $(INSTALL) -d $(sbindir) $(sysconfdir) $(localstatedir)
-       $(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/
+       $(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/bird@SUFFIX6@
        if test -n "@CLIENT@" ; then                                                            \
-               $(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/ ;                             \
+               $(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/birdc@SUFFIX6@ ;                               \
        fi
-       if ! test -f $(sysconfdir)/bird.conf ; then                                             \
-               $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird.conf ;       \
+       if ! test -f $(sysconfdir)/bird.@SUFFIX6@conf ; then                                            \
+               $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird@SUFFIX6@.conf ;      \
        else                                                                                    \
                echo "Not overwriting old bird.conf" ;                                          \
        fi