]> matita.cs.unibo.it Git - helm.git/commitdiff
Some advancements
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 22 Dec 2000 12:03:38 +0000 (12:03 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 22 Dec 2000 12:03:38 +0000 (12:03 +0000)
helm/configuration/configure.in
helm/configuration/etc/configuration.xml.in
helm/configuration/etc/helm-math-engine-configuration.xml.in

index 9609651aee212db23b4ab0abc0138720981bff1a..0d31a63c647af1ff5b4d37fb973b1004a7f7e4fe 100644 (file)
@@ -15,13 +15,15 @@ fi
 dnl General
 HELM_LIB_DIR=$RESOLVED_EXEC_PREFIX/lib/helm
 HELM_ETC_DIR=$RESOLVED_PREFIX/etc/helm
+HELM_SHARE_DIR=$RESOLVED_PREFIX/share/helm
 
 dnl Only for GtkMathview XML configuration
 HELM_DICTIONARY_PATH=/projects/helm/V7/phd/local/etc/helm/helm-dictionary.xml
 
 AC_CHECK_PROG(HAVE_GTKMATHVIEW_CONFIG,gtkmathview-config,yes,no)
 if test $HAVE_GTKMATHVIEW_CONFIG = yes ; then
-   GTKMATHVIEW_DICTIONARY_PATH=`gtkmathview-config --prefix 2> /dev/null`/share/gtkmathview/dictionary.xml
+   GTKMATHVIEW_PREFIX=`gtkmathview-config --prefix 2> /dev/null`
+   GTKMATHVIEW_DICTIONARY_PATH=$GTKMATHVIEW_PREFIX/share/gtkmathview/dictionary.xml
    if test ! -f $GTKMATHVIEW_DICTIONARY_PATH ; then
       AC_MSG_WARN(Could not find dictionary.xml. Where is it?)
       read GTKMATHVIEW_DICTIONARY_PATH
@@ -30,23 +32,38 @@ else
    AC_MSG_ERROR(Could not find gtkmathview-config)
 fi
 
-GTKMATHVIEW_FONT_CONFIGURATION_PATH=`gtkmathview-config --prefix 2> /dev/null`/share/gtkmathview/font-configuration.xml
+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
 
+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
 
-HELM_T1_CONFIG_FILE=/projects/helm/local/share/gtkmathview/t1.config
-HELM_FONT_CONFIGURATION_PATH=/projects/helm/V7/phd/local/etc/helm/helm-font-configuration.xml
+HELM_FONT_CONFIGURATION_PATH=$HELM_ETC_DIR/helm-font-configuration.xml
 
 dnl Only for HELM XML configuration
-CONFIGURATION_HELM_DIR=/home/pauillac/coq3/sacerdot/HELM/V6.2/examples
-CONFIGURATION_DTD_DIR=/home/pauillac/coq3/sacerdot/HELM/dtd
-CONFIGURATION_SERVERS_FILE=/home/pauillac/coq3/sacerdot/HELM/V6.2/servers.txt
-CONFIGURATION_URIS_DBM=/home/pauillac/coq3/sacerdot/HELM/V6.2/urls_of_uris
-CONFIGURATION_TMPDIR=/tmp
-CONFIGURATION_GETTER_URL=http://localhost:8081/get?uri=
+
+AC_MSG_WARN(Where should I put the downloaded library?)
+AC_MSG_WARN(WARNING: the directory and all the files and subdirectories recursively in it should be world writeable)
+read $HELM_LIBRARY_PREFIX
+
+CONFIGURATION_HELM_DIR=$HELM_LIBRARY_PREFIX/examples
+dnl CSC: ERROR: getters should download the DTDs
+CONFIGURATION_DTD_DIR=$HELM_SHARE_DIR/dtd
+CONFIGURATION_SERVERS_FILE=$HELM_LIBRARY_PREFIX/servers.txt
+CONFIGURATION_URIS_DBM=$HELM_LIBRARY_PREFIX/urls_of_uris
+
+if test -d "/tmp" ; then
+   CONFIGURATION_TMPDIR=/tmp
+else
+   AC_MSG_WARN(Could not find /tmp. What directory could I use instead?)
+   read $CONFIGURATION_TMPDIR
+fi
 
 AC_SUBST(HELM_LIB_DIR)
 AC_SUBST(HELM_ETC_DIR)
@@ -54,13 +71,12 @@ AC_SUBST(HELM_DICTIONARY_PATH)
 AC_SUBST(GTKMATHVIEW_DICTIONARY_PATH)
 AC_SUBST(HELM_FONT_CONFIGURATION_PATH)
 AC_SUBST(GTKMATHVIEW_FONT_CONFIGURATION_PATH)
-AC_SUBST(HELM_T1_CONFIG_FILE)
+AC_SUBST(GTKMATHVIEW_T1_CONFIG_FILE)
 AC_SUBST(CONFIGURATION_HELM_DIR)
 AC_SUBST(CONFIGURATION_DTD_DIR)
 AC_SUBST(CONFIGURATION_SERVERS_FILE)
 AC_SUBST(CONFIGURATION_URIS_DBM)
 AC_SUBST(CONFIGURATION_TMPDIR)
-AC_SUBST(CONFIGURATION_GETTER_URL)
 
 AC_OUTPUT(
 [Makefile
index dbed3aa0c4f52bb538d9c3f522cca7805952d579..d1e65434db4e17060751e6c273b00ad61e6cb381 100644 (file)
@@ -18,5 +18,5 @@
  <webeqp_url>http://localhost/cgi-bin/helm/webeqp.pl</webeqp_url>
  <use_webeqp_url>http://localhost/cgi-bin/helm/use_webeqp.pl</use_webeqp_url>
  <html_link><value-of var="getheader_url"/>?baseurl=<value-of var="style_url"/>&amp;stylesheet1=rootcontent.xsl&amp;stylesheet2=content_to_html.xsl&amp;xmluri=</html_link>
- <getter_url>@CONFIGURATION_GETTER_URL@</getter_url>
+ <getter_url>http://localhost:8081/get?uri=</getter_url>
 </configuration>
index 2ea57d23447e17ea40d679d6bf399a0863452f04..fc43038eabb14860652f646d3027350b36974d0c 100644 (file)
@@ -29,7 +29,7 @@ http://cs.unibo.it/~lpadovan/mml-widget, or send a mail to
   <dictionary-path>@GTKMATHVIEW_DICTIONARY_PATH@</dictionary-path>
   <font-configuration-path>@HELM_FONT_CONFIGURATION_PATH@</font-configuration-path>
   <font-configuration-path>@GTKMATHVIEW_FONT_CONFIGURATION_PATH@</font-configuration-path>
-  <t1-config-file>@HELM_T1_CONFIG_FILE@</t1-config-file>
+  <t1-config-file>@GTKMATHVIEW_T1_CONFIG_FILE@</t1-config-file>
   <font-size     size="14pt"/>
   <color         foreground="black" background="white"/>
   <link-color    foreground="#32648b" background="white"/>