summaryrefslogtreecommitdiff
path: root/Build/source/texk/dtl/configure
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-17 08:29:54 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-17 08:29:54 +0000
commit2442de62d6f8c96d9f2c4ad3a04e6b7869cb0438 (patch)
tree995a934a092f0a6149ef1bb43256d741ab16277d /Build/source/texk/dtl/configure
parentf966f4f7a16830d004bbd771a2dccdacb96f7e7f (diff)
dtl: Reduce TL/W32TeX diffs (from Akira)
git-svn-id: svn://tug.org/texlive/trunk@27991 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dtl/configure')
-rwxr-xr-xBuild/source/texk/dtl/configure37
1 files changed, 35 insertions, 2 deletions
diff --git a/Build/source/texk/dtl/configure b/Build/source/texk/dtl/configure
index 5d9125fe49d..334cb768de1 100755
--- a/Build/source/texk/dtl/configure
+++ b/Build/source/texk/dtl/configure
@@ -13014,7 +13014,6 @@ _ACEOF
ac_config_headers="$ac_config_headers config.h"
-# We don't use libpathsea, so add '-DNO_DEBUG' not to overload fopen.
kpse_save_CPPFLAGS=$CPPFLAGS
kpse_save_LIBS=$LIBS
@@ -14438,7 +14437,41 @@ ${top_builddir}/../kpathsea/paths.h:
cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
fi
-KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
+$as_echo_n "checking if libkpathsea supports debugging... " >&6; }
+if ${kpse_cv_kpse_debug+:} false; 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"