with Chat Rameys (still broken) macros and future CPP definitions in
libreadline's headers. Oh what a pain in the ass!
This file records noteworthy changes.
This file records noteworthy changes.
* color and clifford classes are functional and documented.
* New "spinidx" class for dotted/undotted indices.
* Predefined spinor metric tensor (created by spinor_metric()).
* color and clifford classes are functional and documented.
* New "spinidx" class for dotted/undotted indices.
* Predefined spinor metric tensor (created by spinor_metric()).
/* GiNaC archive file version age. */
#undef ARCHIVE_AGE
/* GiNaC archive file version age. */
#undef ARCHIVE_AGE
-/* Major version of libreadline. */
-#undef GINAC_RLVERSION_MAJOR
-
-/* Minor version of libreadline. */
-#undef GINAC_RLVERSION_MINOR
-
\f
/* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind:
\f
/* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind:
dnl they don't export the version to the preprocessor so we could kluge around
dnl incomatiblities. The only reliable way to figure out the version is by
dnl checking the extern variable rl_library_version at runtime. &#@$%*!
dnl they don't export the version to the preprocessor so we could kluge around
dnl incomatiblities. The only reliable way to figure out the version is by
dnl checking the extern variable rl_library_version at runtime. &#@$%*!
-AC_DEFUN(GINAC_RLVERSION,
+AC_DEFUN(GINAC_LIB_READLINE_VERSION,
[AC_CACHE_CHECK([for version of libreadline], ginac_cv_rlversion, [
AC_TRY_RUN([
#include <stdio.h>
[AC_CACHE_CHECK([for version of libreadline], ginac_cv_rlversion, [
AC_TRY_RUN([
#include <stdio.h>
exit(0);
}], ginac_cv_rlversion=`cat 'conftest.out'`, ginac_cv_rlversion='unknown', ginac_cv_rlversion='4.2')
if test "x${ginac_cv_rlversion}" != "xunknown"; then
exit(0);
}], ginac_cv_rlversion=`cat 'conftest.out'`, ginac_cv_rlversion='unknown', ginac_cv_rlversion='4.2')
if test "x${ginac_cv_rlversion}" != "xunknown"; then
- RLVERSION_MAJOR=`echo ${ginac_cv_rlversion} | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)/\1/'`
- AC_DEFINE_UNQUOTED(GINAC_RLVERSION_MAJOR, $RLVERSION_MAJOR)
- RLVERSION_MINOR=`echo ${ginac_cv_rlversion} | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)/\2/'`
- AC_DEFINE_UNQUOTED(GINAC_RLVERSION_MINOR, $RLVERSION_MINOR)
+ RL_VERSION_MAJOR=`echo ${ginac_cv_rlversion} | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)/\1/'`
+ AC_DEFINE_UNQUOTED(GINAC_RL_VERSION_MAJOR, $RL_VERSION_MAJOR, [Major version of installed readline library.])
+ RL_VERSION_MINOR=`echo ${ginac_cv_rlversion} | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)/\2/'`
+ AC_DEFINE_UNQUOTED(GINAC_RL_VERSION_MINOR, $RL_VERSION_MINOR, [Minor version of installed readline library.])
else
GINAC_WARNING([I could not run a test of libreadline (needed for building ginsh ginsh).])
fi
else
GINAC_WARNING([I could not run a test of libreadline (needed for building ginsh ginsh).])
fi
LIBS="$LIBTERMCAP $LIBS"
AC_CHECK_LIB(readline, readline)
if test "x${ac_cv_lib_readline_readline}" = "xyes"; then
LIBS="$LIBTERMCAP $LIBS"
AC_CHECK_LIB(readline, readline)
if test "x${ac_cv_lib_readline_readline}" = "xyes"; then
+ GINAC_LIB_READLINE_VERSION
else
GINAC_WARNING([I could not find libreadline (needed by ginsh).])
fi
else
GINAC_WARNING([I could not find libreadline (needed by ginsh).])
fi
// Original readline settings
static int orig_completion_append_character;
// Original readline settings
static int orig_completion_append_character;
-#if (GINAC_RLVERSION_MAJOR < 4) || (GINAC_RLVERSION_MAJOR == 4 && GINAC_RLVERSION_MINOR < 2)
+#if (GINAC_RL_VERSION_MAJOR < 4) || (GINAC_RL_VERSION_MAJOR == 4 && GINAC_RL_VERSION_MINOR < 2)
static char *orig_basic_word_break_characters;
#else
static const char *orig_basic_word_break_characters;
static char *orig_basic_word_break_characters;
#else
static const char *orig_basic_word_break_characters;
rl_completion_append_character = orig_completion_append_character;
rl_basic_word_break_characters = orig_basic_word_break_characters;
rl_completer_word_break_characters = rl_basic_word_break_characters;
rl_completion_append_character = orig_completion_append_character;
rl_basic_word_break_characters = orig_basic_word_break_characters;
rl_completer_word_break_characters = rl_basic_word_break_characters;
-#if (GINAC_RLVERSION_MAJOR < 4) || (GINAC_RLVERSION_MAJOR == 4 && GINAC_RLVERSION_MINOR < 2)
+#if (GINAC_RL_VERSION_MAJOR < 4) || (GINAC_RL_VERSION_MAJOR == 4 && GINAC_RL_VERSION_MINOR < 2)
return completion_matches(text, (CPFunction *)filename_completion_function);
#else
return rl_completion_matches(text, (CPFunction *)rl_filename_completion_function);
return completion_matches(text, (CPFunction *)filename_completion_function);
#else
return rl_completion_matches(text, (CPFunction *)rl_filename_completion_function);
rl_completion_append_character = '(';
rl_basic_word_break_characters = " \t\n\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~";
rl_completer_word_break_characters = rl_basic_word_break_characters;
rl_completion_append_character = '(';
rl_basic_word_break_characters = " \t\n\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~";
rl_completer_word_break_characters = rl_basic_word_break_characters;
-#if (GINAC_RLVERSION_MAJOR < 4) || (GINAC_RLVERSION_MAJOR == 4 && GINAC_RLVERSION_MINOR < 2)
+#if (GINAC_RL_VERSION_MAJOR < 4) || (GINAC_RL_VERSION_MAJOR == 4 && GINAC_RL_VERSION_MINOR < 2)
return completion_matches(text, (CPFunction *)fcn_generator);
#else
return rl_completion_matches(text, (CPFunction *)fcn_generator);
return completion_matches(text, (CPFunction *)fcn_generator);
#else
return rl_completion_matches(text, (CPFunction *)fcn_generator);