diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-15 08:19:27 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-15 08:19:27 +0000 |
commit | 5ad5b475cc0211e3d48232660a9f1548ac2aadb5 (patch) | |
tree | 8828e1ca68606e563aede87ea2a699fcf60c8543 /Build/source/texk/dvi2tty | |
parent | b9a895c295af055dfbc9599c2a763ed0d443d109 (diff) |
minor cleanup
git-svn-id: svn://tug.org/texlive/trunk@17034 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvi2tty')
-rw-r--r-- | Build/source/texk/dvi2tty/ChangeLog | 4 | ||||
-rwxr-xr-x | Build/source/texk/dvi2tty/configure | 38 | ||||
-rw-r--r-- | Build/source/texk/dvi2tty/disdvi.c | 2 | ||||
-rw-r--r-- | Build/source/texk/dvi2tty/dvi2tty.h | 2 |
4 files changed, 44 insertions, 2 deletions
diff --git a/Build/source/texk/dvi2tty/ChangeLog b/Build/source/texk/dvi2tty/ChangeLog index 06a9ba33e49..e5c84b44fda 100644 --- a/Build/source/texk/dvi2tty/ChangeLog +++ b/Build/source/texk/dvi2tty/ChangeLog @@ -1,3 +1,7 @@ +2010-02-12 Peter Breitenlohner <peb@mppmu.mpg.de> + + * disdvi.c, dvi2tty.h: #define NO_DEBUG as 1, to avoid warning. + 2009-08-23 Peter Breitenlohner <peb@mppmu.mpg.de> Avoid maximal compiler warnings. diff --git a/Build/source/texk/dvi2tty/configure b/Build/source/texk/dvi2tty/configure index 0a04fc239af..859b7ace552 100755 --- a/Build/source/texk/dvi2tty/configure +++ b/Build/source/texk/dvi2tty/configure @@ -11388,6 +11388,9 @@ WARNING_CFLAGS=$kpse_cv_warning_cflags ac_config_headers="$ac_config_headers c-auto.h:c-auto.in" +kpse_save_CPPFLAGS=$CPPFLAGS +kpse_save_LIBS=$LIBS + ## _KPSE_INIT: Initialize TL infrastructure kpse_BLD=`(cd "./../../." && pwd)` kpse_SRC=`(cd "$srcdir/../../." && pwd)` @@ -12799,6 +12802,41 @@ ${top_builddir}/../kpathsea/paths.h: cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild' fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5 +$as_echo_n "checking if libkpathsea supports debugging... " >&6; } +if test "${kpse_cv_kpse_debug+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\" +eval LIBS=\"$KPATHSEA_LIBS \$LIBS\" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <kpathsea/kpathsea.h> +int +main () +{ +FILE *f = fopen("f", "r") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + kpse_cv_kpse_debug=yes +else + kpse_cv_kpse_debug=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CPPFLAGS=$kpse_save_CPPFLAGS +LIBS=$kpse_save_LIBS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5 +$as_echo "$kpse_cv_kpse_debug" >&6; } +if test "x$kpse_cv_kpse_debug" != xyes; then : + KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG" +fi ac_config_files="$ac_config_files Makefile" diff --git a/Build/source/texk/dvi2tty/disdvi.c b/Build/source/texk/dvi2tty/disdvi.c index 1296f26f174..b65c3ed514b 100644 --- a/Build/source/texk/dvi2tty/disdvi.c +++ b/Build/source/texk/dvi2tty/disdvi.c @@ -21,7 +21,7 @@ char *disdvi = "@(#) disdvi.c 2.1 19/01/90 M.J.E. Mol (c) 1989, 1990"; #include "commands.h" #if defined(KPATHSEA) -#define NO_DEBUG +#define NO_DEBUG 1 #include <kpathsea/config.h> #include <kpathsea/lib.h> #else diff --git a/Build/source/texk/dvi2tty/dvi2tty.h b/Build/source/texk/dvi2tty/dvi2tty.h index 5a31a610d8f..19225a823d3 100644 --- a/Build/source/texk/dvi2tty/dvi2tty.h +++ b/Build/source/texk/dvi2tty/dvi2tty.h @@ -14,7 +14,7 @@ Copyright (C) 1988 M.J.E. Mol 1989, 1990" #endif #if defined(KPATHSEA) -#define NO_DEBUG +#define NO_DEBUG 1 #include <kpathsea/config.h> #endif |