From b84eb0130dc729d2cd6b53d15520f969713548e8 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Fri, 22 Dec 2000 15:56:10 +0000 Subject: [PATCH] ... --- helm/configuration/configure.in | 44 +++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/helm/configuration/configure.in b/helm/configuration/configure.in index 5831be210..d3180c1af 100644 --- a/helm/configuration/configure.in +++ b/helm/configuration/configure.in @@ -21,28 +21,46 @@ dnl Only for GtkMathview XML configuration HELM_DICTIONARY_PATH=$HELM_ETC_DIR/helm-dictionary.xml AC_CHECK_PROG(HAVE_GTKMATHVIEW_CONFIG,gtkmathview-config,yes,no) -if test $HAVE_GTKMATHVIEW_CONFIG = yes ; then - GTKMATHVIEW_PREFIX=`gtkmathview-config --prefix 2> /dev/null` +if test $HAVE_GTKMATHVIEW_CONFIG = no ; then + AC_MSG_ERROR(Could not find gtkmathview-config) +fi +GTKMATHVIEW_PREFIX=`gtkmathview-config --prefix` + +AC_MSG_CHECKING("for dictionary.xml") +AC_CACHE_VAL(GTKMATHVIEW_DICTIONARY_PATH, GTKMATHVIEW_DICTIONARY_PATH=$GTKMATHVIEW_PREFIX/share/gtkmathview/dictionary.xml if test ! -f $GTKMATHVIEW_DICTIONARY_PATH ; then + echo "" AC_MSG_WARN(Could not find dictionary.xml. Where is it?) read GTKMATHVIEW_DICTIONARY_PATH + else + AC_MSG_RESULT("yes") fi -else - AC_MSG_ERROR(Could not find gtkmathview-config) -fi +) GTKMATHVIEW_FONT_CONFIGURATION_PATH=$GTKMATHVIEW_PREFIX/share/gtkmathview/font-configuration.xml -if test ! -f $GTKMATHVIEW_FONT_CONFIGURATION_PATH ; then - AC_MSG_WARN(Could not find font-configuration.xml. Where is it?) - read GTKMATHVIEW_FONT_CONFIGURATION_PATH -fi +AC_MSG_CHECKING("for font-configuration.xml") +AC_CACHE_VAL(GTKMATHVIEW_FONT_CONFIGURATION_PATH, + if test ! -f $GTKMATHVIEW_FONT_CONFIGURATION_PATH ; then + echo "" + AC_MSG_WARN(Could not find font-configuration.xml. Where is it?) + read GTKMATHVIEW_FONT_CONFIGURATION_PATH + else + AC_MSG_RESULT("yes") + fi +) GTKMATHVIEW_T1_CONFIG_FILE=$GTKMATHVIEW_PREFIX/share/gtkmathview/t1.config -if test ! -f $GTKMATHVIEW_T1_CONFIG_FILE ; then - AC_MSG_WARN(Could not find t1.config. Where is it?) - read GTKMATHVIEW_T1_CONFIG_FILE -fi +AC_MSG_CHECKING("for t1.config") +AC_CACHE_VAL(GTKMATHVIEW_T1_CONFIG_FILE, + if test ! -f $GTKMATHVIEW_T1_CONFIG_FILE ; then + echo "" + AC_MSG_WARN(Could not find t1.config. Where is it?) + read GTKMATHVIEW_T1_CONFIG_FILE + else + AC_MSG_RESULT("yes") + fi +) HELM_FONT_CONFIGURATION_PATH=$HELM_ETC_DIR/helm-font-configuration.xml -- 2.39.2