]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Configure PATH_CONTROL_SOCKET.
authorMartin Mares <mj@ucw.cz>
Fri, 29 Oct 1999 10:08:09 +0000 (10:08 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 29 Oct 1999 10:08:09 +0000 (10:08 +0000)
autoconf.h is now written to obj/sysdep, the source tree is hopefully
completely read-only now.

configure.in
sysdep/autoconf.h.in
sysdep/config.h
tools/mergedirs

index 6419e1272904941524394a2f5f740d87d48daa18..f32324faa3555bbd7752d6a49ac91a7c00bac75f 100644 (file)
@@ -122,6 +122,7 @@ BIRD_CHECK_STRUCT_IP_MREQN
 
 if test "$enable_debug" = yes ; then
        AC_DEFINE(PATH_CONFIG_DIR, ".")
+       AC_DEFINE(PATH_CONTROL_SOCKET_DIR, ".")
        AC_DEFINE(DEBUGGING)
        AC_CHECK_LIB(dmalloc, dmalloc_debug)
        if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then
@@ -129,9 +130,11 @@ if test "$enable_debug" = yes ; then
        fi
 else
        AC_DEFINE_UNQUOTED(PATH_CONFIG_DIR, "$sysconfdir")
+       AC_DEFINE_UNQUOTED(PATH_CONTROL_SOCKET_DIR, "$localstatedir")
 fi
 
-AC_CONFIG_HEADER(sysdep/autoconf.h)
+mkdir -p $objdir/sysdep
+AC_CONFIG_HEADER($objdir/sysdep/autoconf.h:sysdep/autoconf.h.in)
 AC_OUTPUT_COMMANDS(,[CPP="$CPP" $srcdir/tools/mergedirs $srcdir $srcdir_rel $objdir $sysdep_dirs])
 AC_OUTPUT($makefiles)
 
index 6c76f1a9c4fba26926d7a0c9ffdefd95989a2dd1..8d2ebf381f22ffbfb7358bca119a89675bdb66fd 100644 (file)
@@ -44,5 +44,8 @@
 /* Path to configuration files */
 #define PATH_CONFIG_DIR ?
 
+/* Path to control socket */
+#define PATH_CONTROL_SOCKET_DIR ?
+
 /* Are we using dmalloc? */
 #undef HAVE_LIBDMALLOC
index 6b2f94abe2078dbbe4cd93b34b692c1db68b7b8d..4699b4f766c9d9885d8b74b65b235d162475e729 100644 (file)
@@ -39,5 +39,6 @@ typedef u16 word;
 
 /* Path to configuration file */
 #define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
+#define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
 
 #endif
index 61b092f410b347822fa65a78778996102580cbef..33bcbdaa1036e70602a6b85aaecb8072321c1e7c 100755 (executable)
@@ -21,7 +21,7 @@ shift
 echo "Merging system-dependent modules ($@)"
 MODULES=`for a in $@ ; do
                cat $SRCDIR/sysdep/config.h $SRCDIR/$a/Modules |
-               $cpp -U unix -D MACROS_ONLY - |
+               $cpp -U unix -D MACROS_ONLY -I $OBJDIR - |
                sed "/^[ ]*\$/d;/^#/d;s@\\(.*\\)@\\1 $a/\\1@"
                done |
        sort +0 -1 -u |