pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pdf-devel] Debug options: autotools errors


From: gerel
Subject: [pdf-devel] Debug options: autotools errors
Date: Thu, 28 Feb 2008 03:16:37 -0300

Hey, I've been trying to add the debug options to configure.ac, but I get a 
weird
error. I'm pretty new to autotools also.

Here is the patch. Followed by the error messages.

Index: configure.ac
===================================================================
RCS file: /sources/pdf/libgnupdf/configure.ac,v
retrieving revision 1.27
diff -u -r1.27 configure.ac
--- configure.ac        23 Feb 2008 21:07:59 -0000      1.27
+++ configure.ac        28 Feb 2008 06:14:00 -0000
@@ -135,6 +135,33 @@
 
 fi # prmgt_mode
 
+# debug_*_mode
+debug_base_mode=no
+debug_object_mode=no
+debug_document_mode=no
+debug_page_mode=no
+AC_ARG_ENABLE([debug-base], AS_HELP_STRING([--enable-debug-base],
+                                      [debug mode at the base layer (default 
is NO)]), 
+              [debug_base_mode=yes], [debug_base_mode=no])
+
+AC_ARG_ENABLE([debug-object], AS_HELP_STRING([--enable-debug-object],
+                                      [debug mode at the object layer (default 
is NO)]), 
+              [debug_object_mode=yes], [debug_object_mode=no])
+
+AC_ARG_ENABLE([debug-document], AS_HELP_STRING([--enable-debug-document],
+                                      [debug mode at the document layer 
(default is NO)]), 
+              [debug_document_mode=yes], [debug_document_mode=no])
+
+AC_ARG_ENABLE([debug-page], AS_HELP_STRING([--enable-debug-page],
+                                      [debug mode at the page layer (default 
is NO)]), 
+              [debug_page_mode=yes], [debug_page_mode=no])
+
+AC_DEFINE_UNQUOTED ([HAVE_DEBUG_BASE], [$debug_base_mode],)
+AC_DEFINE_UNQUOTED ([HAVE_DEBUG_OBJECT], [$debug_object_mode],)
+AC_DEFINE_UNQUOTED ([HAVE_DEBUG_DOCUMENT], [$debug_document_mode],)
+AC_DEFINE_UNQUOTED ([HAVE_DEBUG_PAGE], [$debug_page_mode],)
+# end debug_*_mode
+
 dnl Generate output files
 AC_OUTPUT(Makefile lib/Makefile src/Makefile torture/Makefile 
torture/unit/Makefile doc/Makefile utils/Makefile prmgt/Makefile 
prmgt/pmccabe2html src/extract-public-hdr)
 
##
Error message:

autoheader: warning: missing template: 
autoheader: Use AC_DEFINE([], [], [Description])
autoreconf: /usr/bin/autoheader failed with exit status: 1
###


thanks in advance.

-gerel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]