oops, in v7.x its USE_SYSLOG, not ENABLE_SYSLOG
authorMarc G. Fournier <[email protected]>
Mon, 28 Aug 2000 20:27:32 +0000 (20:27 +0000)
committerMarc G. Fournier <[email protected]>
Mon, 28 Aug 2000 20:27:32 +0000 (20:27 +0000)
modify config.h.in so that it gets set by configure properly

src/configure
src/configure.in
src/include/config.h.in

index 9aae9a5bb396d422de925da5730feb1326144d19..43598bc3c851f512784ce8fac14c5a237c949516 100755 (executable)
@@ -6540,7 +6540,7 @@ fi
 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
   echo "$ac_t""yes" 1>&6
   cat >> confdefs.h <<\EOF
-#define ENABLE_SYSLOG 1
+#define USE_SYSLOG 1
 EOF
 
 else
index 4d97122561039ca09fcd03a276d93c31651777e7..5e09f036dc08317e1ecebac7028e1e0832df3619 100644 (file)
@@ -946,7 +946,7 @@ AC_TRY_LINK([#include <setjmp.h>],
 
 AC_ARG_ENABLE(syslog, [  --enable-syslog         enable logging to syslog],
     [case $enableval in y|ye|yes)
-        AC_CHECK_FUNC(syslog, [AC_DEFINE(ENABLE_SYSLOG)], [AC_MSG_ERROR([no syslog interface found])])
+        AC_CHECK_FUNC(syslog, [AC_DEFINE(USE_SYSLOG)], [AC_MSG_ERROR([no syslog interface found])])
         ;;
      esac]
 )
index 7a3a61d8d1e28ccf50ea0c743b2c04060146f6a7..2a7ce348cf16acc12d257cb696bf13860e3b4732 100644 (file)
@@ -8,7 +8,7 @@
  * or in config.h afterwards.  Of course, if you edit config.h, then your
  * changes will be overwritten the next time you run configure.
  *
- * $Id: config.h.in,v 1.113 2000/05/12 13:58:25 scrappy Exp $
+ * $Id: config.h.in,v 1.113.2.1 2000/08/28 20:27:32 scrappy Exp $
  */
 
 #ifndef CONFIG_H
  */
 /* #define ELOG_TIMESTAMPS */
 
-/*
- * USE_SYSLOG: use syslog for elog and error messages printed by tprintf
- * and eprintf. This must be activated with the syslog flag in pg_options
- * (syslog=0 for stdio, syslog=1 for stdio+syslog, syslog=2 for syslog).
- * For information see backend/utils/misc/trace.c (Massimo Dal Zotto).
- */
-/* #define USE_SYSLOG */
-
 /* Debug #defines */
 /* #define IPORTAL_DEBUG  */
 /* #define HEAPDEBUGALL  */
  *------------------------------------------------------------------------
  */
 
+/*
+ * USE_SYSLOG: use syslog for elog and error messages printed by tprintf
+ * and eprintf. This must be activated with the syslog flag in pg_options
+ * (syslog=0 for stdio, syslog=1 for stdio+syslog, syslog=2 for syslog).
+ * For information see backend/utils/misc/trace.c (Massimo Dal Zotto).
+ */
+#undef USE_SYSLOG 
+
+
 /* Set to 1 if you want to USE_LOCALE */
 #undef USE_LOCALE